@ibiz-template/vue3-components 0.7.28-alpha.0 → 0.7.28-alpha.1

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 (149) hide show
  1. package/dist/chart-4KHwhatb.js +1 -0
  2. package/dist/index-5ZDQNjel.js +4 -0
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.system.min.js +1 -1
  5. package/dist/{xlsx-util-nADTbeWP.js → xlsx-util-nDELbrGS.js} +1 -1
  6. package/es/common/action-toolbar/action-toolbar.mjs +4 -3
  7. package/es/common/custom-theme/custom-theme.mjs +3 -2
  8. package/es/common/data-import2/data-import2.mjs +2 -5
  9. package/es/common/emoji-select/components/categories/categories.mjs +2 -1
  10. package/es/common/extend-action-timeline/extend-action-timeline.mjs +3 -2
  11. package/es/common/grid-setting/grid-setting.mjs +2 -1
  12. package/es/common/index.mjs +2 -0
  13. package/es/common/pagination/pagination.mjs +2 -1
  14. package/es/common/quick-edit/quick-edit.css +1 -0
  15. package/es/common/quick-edit/quick-edit.d.ts +38 -0
  16. package/es/common/quick-edit/quick-edit.mjs +116 -0
  17. package/es/common/rawitem/rawitem.mjs +2 -1
  18. package/es/control/app-menu/app-menu.mjs +2 -2
  19. package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +2 -2
  20. package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +3 -2
  21. package/es/control/calendar/calendar.mjs +2 -1
  22. package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +2 -1
  23. package/es/control/calendar/components/calendar-week/calendar-week.mjs +2 -1
  24. package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +3 -2
  25. package/es/control/chart/chart.mjs +8 -0
  26. package/es/control/context-menu/context-menu.mjs +4 -3
  27. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +2 -1
  28. package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -1
  29. package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +3 -2
  30. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +2 -1
  31. package/es/control/drtab/drtab-control.util.mjs +1 -1
  32. package/es/control/drtab/drtab.mjs +2 -1
  33. package/es/control/form/form-detail/form-button/form-button.mjs +2 -1
  34. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +3 -2
  35. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +2 -2
  36. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +2 -1
  37. package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +2 -1
  38. package/es/control/grid/grid/grid.css +1 -1
  39. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +3 -2
  40. package/es/control/grid/row-edit-popover/row-edit-popover.d.ts +1 -1
  41. package/es/control/kanban/kanban.mjs +2 -2
  42. package/es/control/list/list.mjs +2 -1
  43. package/es/control/search-bar/filter-tree/filter-tree.d.ts +1 -1
  44. package/es/control/search-bar/search-bar.mjs +3 -2
  45. package/es/control/search-bar/search-groups/search-groups.mjs +6 -6
  46. package/es/control/toolbar/export-excel/export-excel.mjs +3 -2
  47. package/es/control/toolbar/short-cut-button/short-cut-button.mjs +2 -4
  48. package/es/control/toolbar/toolbar.mjs +7 -6
  49. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +3 -2
  50. package/es/control/wizard-panel/wizard-panel.mjs +2 -1
  51. package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -0
  52. package/es/editor/array/ibiz-array/ibiz-array.mjs +12 -3
  53. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -1
  54. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -1
  55. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -1
  56. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -1
  57. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +9 -4
  58. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
  59. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +10 -3
  60. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
  61. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +5 -2
  62. package/es/editor/text-box/input/input.d.ts +1 -0
  63. package/es/editor/text-box/input/input.mjs +15 -2
  64. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +2 -1
  65. package/es/index.mjs +1 -0
  66. package/es/panel-component/auth-captcha/auth-captcha.mjs +2 -1
  67. package/es/panel-component/panel-button/panel-button.mjs +2 -1
  68. package/es/panel-component/short-cut/short-cut.mjs +2 -2
  69. package/es/panel-component/user-action/user-action.mjs +2 -1
  70. package/es/panel-component/user-message/async-action/async-action/async-action.mjs +2 -1
  71. package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +2 -1
  72. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.d.ts +1 -0
  73. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.mjs +10 -4
  74. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.provider.d.ts +1 -0
  75. package/es/panel-component/user-message/user-message.mjs +3 -2
  76. package/es/util/index.d.ts +1 -0
  77. package/es/util/index.mjs +1 -0
  78. package/es/util/notification-util/notification-util.mjs +3 -1
  79. package/es/util/wang-editor-util/wang-editor-util.d.ts +11 -0
  80. package/es/util/wang-editor-util/wang-editor-util.mjs +12 -0
  81. package/lib/common/action-toolbar/action-toolbar.cjs +4 -3
  82. package/lib/common/custom-theme/custom-theme.cjs +3 -2
  83. package/lib/common/data-import2/data-import2.cjs +1 -4
  84. package/lib/common/emoji-select/components/categories/categories.cjs +2 -1
  85. package/lib/common/extend-action-timeline/extend-action-timeline.cjs +3 -2
  86. package/lib/common/grid-setting/grid-setting.cjs +2 -1
  87. package/lib/common/index.cjs +2 -0
  88. package/lib/common/pagination/pagination.cjs +2 -1
  89. package/lib/common/quick-edit/quick-edit.cjs +118 -0
  90. package/lib/common/quick-edit/quick-edit.css +1 -0
  91. package/lib/common/rawitem/rawitem.cjs +2 -1
  92. package/lib/control/app-menu/app-menu.cjs +1 -1
  93. package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -1
  94. package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +3 -2
  95. package/lib/control/calendar/calendar.cjs +2 -1
  96. package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +2 -1
  97. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +2 -1
  98. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +3 -2
  99. package/lib/control/chart/chart.cjs +8 -0
  100. package/lib/control/context-menu/context-menu.cjs +4 -3
  101. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +2 -1
  102. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -1
  103. package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +3 -2
  104. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +2 -1
  105. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  106. package/lib/control/drtab/drtab.cjs +2 -1
  107. package/lib/control/form/form-detail/form-button/form-button.cjs +2 -1
  108. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +3 -2
  109. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
  110. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +2 -1
  111. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +2 -1
  112. package/lib/control/grid/grid/grid.css +1 -1
  113. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -2
  114. package/lib/control/kanban/kanban.cjs +1 -1
  115. package/lib/control/list/list.cjs +2 -1
  116. package/lib/control/search-bar/search-bar.cjs +3 -2
  117. package/lib/control/search-bar/search-groups/search-groups.cjs +5 -5
  118. package/lib/control/toolbar/export-excel/export-excel.cjs +3 -2
  119. package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +2 -4
  120. package/lib/control/toolbar/toolbar.cjs +7 -6
  121. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -2
  122. package/lib/control/wizard-panel/wizard-panel.cjs +2 -1
  123. package/lib/editor/array/ibiz-array/ibiz-array.cjs +12 -3
  124. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -1
  125. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
  126. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -1
  127. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -1
  128. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +9 -4
  129. package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +10 -3
  130. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +5 -2
  131. package/lib/editor/text-box/input/input.cjs +15 -2
  132. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -1
  133. package/lib/index.cjs +2 -0
  134. package/lib/panel-component/auth-captcha/auth-captcha.cjs +2 -1
  135. package/lib/panel-component/panel-button/panel-button.cjs +2 -1
  136. package/lib/panel-component/short-cut/short-cut.cjs +1 -1
  137. package/lib/panel-component/user-action/user-action.cjs +2 -1
  138. package/lib/panel-component/user-message/async-action/async-action/async-action.cjs +2 -1
  139. package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +2 -1
  140. package/lib/panel-component/user-message/internal-message/internal-message-html/internal-message-html.cjs +9 -3
  141. package/lib/panel-component/user-message/user-message.cjs +3 -2
  142. package/lib/util/index.cjs +2 -0
  143. package/lib/util/notification-util/notification-util.cjs +3 -1
  144. package/lib/util/wang-editor-util/wang-editor-util.cjs +14 -0
  145. package/package.json +6 -6
  146. package/dist/chart-HuCq_rW2.js +0 -1
  147. package/dist/index-QB7iGpIB.js +0 -4
  148. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.28-alpha.0_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.28-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  149. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.28-alpha.0_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.28-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -3,6 +3,8 @@
3
3
  var vue = require('vue');
4
4
  var vue3Util = require('@ibiz-template/vue3-util');
5
5
  require('./internal-message-html.css');
6
+ require('../../../../util/index.cjs');
7
+ var wangEditorUtil = require('../../../../util/wang-editor-util/wang-editor-util.cjs');
6
8
 
7
9
  "use strict";
8
10
  const InternalMessageHTML = /* @__PURE__ */ vue.defineComponent({
@@ -20,10 +22,14 @@ const InternalMessageHTML = /* @__PURE__ */ vue.defineComponent({
20
22
  emits: {
21
23
  close: () => true
22
24
  },
23
- setup() {
25
+ setup(props) {
24
26
  const ns = vue3Util.useNamespace("internal-message-html");
27
+ const msgContent = vue.computed(() => {
28
+ return wangEditorUtil.parseHtml(props.message.content);
29
+ });
25
30
  return {
26
- ns
31
+ ns,
32
+ msgContent
27
33
  };
28
34
  },
29
35
  render() {
@@ -35,7 +41,7 @@ const InternalMessageHTML = /* @__PURE__ */ vue.defineComponent({
35
41
  }, {
36
42
  default: () => [vue.createVNode("div", {
37
43
  "class": this.ns.e("content"),
38
- "innerHTML": this.message.content
44
+ "innerHTML": this.msgContent
39
45
  }, null)]
40
46
  });
41
47
  }
@@ -4,6 +4,7 @@ var vue = require('vue');
4
4
  var vue3Util = require('@ibiz-template/vue3-util');
5
5
  var runtime = require('@ibiz-template/runtime');
6
6
  require('./user-message.css');
7
+ var core = require('@ibiz-template/core');
7
8
  var asyncActionTab = require('./async-action/async-action-tab/async-action-tab.cjs');
8
9
  require('./internal-message/index.cjs');
9
10
  require('./internal-message/common/index.cjs');
@@ -86,7 +87,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
86
87
  },
87
88
  render() {
88
89
  return vue.createVNode("div", {
89
- "title": ibiz.i18n.t("panelComponent.userMessage.notice"),
90
+ "title": core.showTitle(ibiz.i18n.t("panelComponent.userMessage.notice")),
90
91
  "class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
91
92
  }, [vue.createVNode(vue.resolveComponent("el-popover"), {
92
93
  "ref": "popoverRef",
@@ -144,7 +145,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
144
145
  imagePath: "svg/read.svg"
145
146
  },
146
147
  "baseDir": "iconfont",
147
- "title": ibiz.i18n.t("panelComponent.userMessage.allRead"),
148
+ "title": core.showTitle(ibiz.i18n.t("panelComponent.userMessage.allRead")),
148
149
  "onClick": this.onBatchReadClick
149
150
  }, null)])]);
150
151
  }
@@ -11,6 +11,7 @@ var usePagination = require('./pagination/use-pagination.cjs');
11
11
  var noticeUtil = require('./notice-util/notice-util.cjs');
12
12
  var renderUtil = require('./render-util/render-util.cjs');
13
13
  var appUtil = require('./app-util/app-util.cjs');
14
+ var wangEditorUtil = require('./wang-editor-util/wang-editor-util.cjs');
14
15
 
15
16
  "use strict";
16
17
 
@@ -25,3 +26,4 @@ exports.usePagination = usePagination.usePagination;
25
26
  exports.NoticeUtil = noticeUtil.NoticeUtil;
26
27
  exports.RenderUtil = renderUtil.RenderUtil;
27
28
  exports.AppUtil = appUtil.AppUtil;
29
+ exports.parseHtml = wangEditorUtil.parseHtml;
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var ElementPlus = require('element-plus');
4
+ var wangEditorUtil = require('../wang-editor-util/wang-editor-util.cjs');
4
5
 
5
6
  "use strict";
6
7
  var __defProp = Object.defineProperty;
@@ -51,9 +52,10 @@ class NotificationUtil {
51
52
  */
52
53
  handleNotice(params, noticeType) {
53
54
  const duration = params.duration ? params.duration * 1e3 : 4500;
55
+ const msgContent = params.desc ? wangEditorUtil.parseHtml(params.desc) : params.desc;
54
56
  ElementPlus.ElNotification({
55
57
  title: params.title,
56
- message: params.desc,
58
+ message: msgContent,
57
59
  dangerouslyUseHTMLString: !!params.isHtmlDesc,
58
60
  type: noticeType,
59
61
  position: params.position || "top-right",
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ "use strict";
4
+ function parseHtml(str) {
5
+ return str.replaceAll(
6
+ /<span data-w-e-type="emoji" class='emoji'>(.+?)<\/span>/g,
7
+ (x, emoji) => {
8
+ const tempVal = decodeURIComponent(atob(emoji));
9
+ return "<span data-w-e-type=\"emoji\" class='emoji'>".concat(tempVal, "</span>");
10
+ }
11
+ );
12
+ }
13
+
14
+ exports.parseHtml = parseHtml;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.28-alpha.0",
3
+ "version": "0.7.28-alpha.1",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,13 +30,13 @@
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.5",
32
32
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.6",
33
- "@ibiz-template-plugin/bi-report": "0.0.6",
34
- "@ibiz-template/core": "0.7.28-alpha.0",
33
+ "@ibiz-template-plugin/bi-report": "0.0.7",
34
+ "@ibiz-template/core": "0.7.28-alpha.1",
35
35
  "@ibiz-template/devtool": "0.0.1-dev.6",
36
- "@ibiz-template/model-helper": "0.7.28-alpha.0",
37
- "@ibiz-template/runtime": "0.7.28-alpha.0",
36
+ "@ibiz-template/model-helper": "0.7.28-alpha.1",
37
+ "@ibiz-template/runtime": "0.7.28-alpha.1",
38
38
  "@ibiz-template/theme": "^0.7.0",
39
- "@ibiz-template/vue3-util": "0.7.28-alpha.0",
39
+ "@ibiz-template/vue3-util": "0.7.28-alpha.1",
40
40
  "@ibiz-template/web-theme": "^1.1.18",
41
41
  "@ibiz/model-core": "^0.1.42",
42
42
  "@imengyu/vue3-context-menu": "^1.3.5",
@@ -1 +0,0 @@
1
- System.register(["vue","@ibiz-template/vue3-util","echarts","qx-util","@ibiz-template/runtime"],(function(t){"use strict";var e,i,s,r,a,n,o,d,c,l,h,u,m,p;return{setters:[function(t){e=t.defineComponent,i=t.ref,s=t.watch,r=t.onMounted,a=t.onBeforeUnmount,n=t.createVNode,o=t.resolveComponent,d=t.nextTick,c=t.isVNode},function(t){l=t.useControlController,h=t.useNamespace},function(t){u=t.init},function(t){m=t.createUUID},function(t){p=t.ChartController}],execute:function(){t("default",e({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},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1}},setup(t){const e=l(((...t)=>new p(...t))),f=h("control-".concat(e.model.controlType.toLowerCase())),g=i(),v=i(0),b=m(),y=()=>{t.data&&(e.state.items=t.data,e.afterLoad({},e.state.items))};e.evt.on("onCreated",(async()=>{t.isSimple&&(y(),e.state.isSimple=!0,e.state.isLoaded=!0)})),s((()=>t.data),(()=>{t.isSimple&&y()}),{deep:!0});const w=async()=>{await d();const t=document.getElementById(b);t&&("bottom"===e.state.gridPosition||"top"===e.state.gridPosition?v.value=t.offsetHeight/2-8:v.value=t.offsetHeight-16)};r((()=>{const t=u(g.value);e.initChart(t),window.addEventListener("resize",w),w()})),s((()=>e.state.showGrid),(()=>{w()}),{immediate:!0});return a((()=>{window.removeEventListener("resize",w)})),{c:e,ns:f,chartRef:g,uuid:b,renderGrid:()=>{let t;return n(o("el-table"),{ref:"tableRef",data:e.state.gridData||[],border:!0,style:{width:"100%"},"max-height":v.value,"header-row-class-name":f.e("grid-header")},"function"==typeof(i=t=e.state.gridHeaders.map((t=>n(o("el-table-column"),{prop:t.id,align:"center",label:t.name},null))))||"[object Object]"===Object.prototype.toString.call(i)&&!c(i)?t:{default:()=>[t]});var i}}},render(){return n(o("iBizControlBase"),{controller:this.c},{default:()=>[n("div",{id:this.uuid,class:this.ns.b("chart-container")},[n(o("el-empty"),{class:[this.ns.e("empty"),this.ns.is("no-data",0===this.c.state.items.length)],description:ibiz.i18n.t("control.common.currentNoData")},null),n("div",{class:[this.ns.e("chart-grid"),this.ns.is("no-data",0===this.c.state.items.length),this.ns.is("show-grid",this.c.state.showGrid),{[this.ns.em("chart-grid",this.c.state.gridPosition)]:this.c.state.showGrid}]},[n("div",{class:[this.ns.e("chart-grid-container"),this.ns.is(this.c.state.gridPosition,this.c.state.showGrid),this.ns.is("no-grid",!this.c.state.showGrid)]},[n("div",{ref:"chartRef",class:[this.ns.e("chart")]},[ibiz.i18n.t("control.chart.chartPlaceholder")])]),this.c.state.showGrid?n("div",{class:this.ns.e("grid")},[this.renderGrid()]):null])])]})}}))}}}));