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

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 (156) hide show
  1. package/dist/chart-4KHwhatb.js +1 -0
  2. package/dist/index-X_i16UJh.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-z-jllHFG.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 +3 -2
  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.css +1 -1
  35. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +5 -2
  36. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +2 -2
  37. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +2 -1
  38. package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +2 -1
  39. package/es/control/grid/grid/grid.css +1 -1
  40. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +3 -2
  41. package/es/control/grid/row-edit-popover/row-edit-popover.d.ts +1 -1
  42. package/es/control/kanban/kanban.mjs +2 -2
  43. package/es/control/list/list.mjs +2 -1
  44. package/es/control/report-panel/report-panel.d.ts +1 -2
  45. package/es/control/report-panel/report-panel.mjs +3 -21
  46. package/es/control/search-bar/filter-tree/filter-tree.d.ts +1 -1
  47. package/es/control/search-bar/search-bar.mjs +3 -2
  48. package/es/control/search-bar/search-groups/search-groups.mjs +6 -6
  49. package/es/control/toolbar/export-excel/export-excel.mjs +3 -2
  50. package/es/control/toolbar/short-cut-button/short-cut-button.mjs +2 -4
  51. package/es/control/toolbar/toolbar.mjs +7 -6
  52. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +3 -2
  53. package/es/control/wizard-panel/wizard-panel.mjs +2 -1
  54. package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -0
  55. package/es/editor/array/ibiz-array/ibiz-array.mjs +12 -3
  56. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -1
  57. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -1
  58. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -1
  59. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -1
  60. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +9 -4
  61. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
  62. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +10 -3
  63. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
  64. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +5 -2
  65. package/es/editor/text-box/input/input.d.ts +1 -0
  66. package/es/editor/text-box/input/input.mjs +15 -2
  67. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +2 -1
  68. package/es/index.mjs +1 -0
  69. package/es/panel-component/auth-captcha/auth-captcha.mjs +2 -1
  70. package/es/panel-component/panel-button/panel-button.mjs +2 -1
  71. package/es/panel-component/short-cut/short-cut.mjs +2 -2
  72. package/es/panel-component/user-action/user-action.mjs +2 -1
  73. package/es/panel-component/user-message/async-action/async-action/async-action.mjs +2 -1
  74. package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +2 -1
  75. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.d.ts +1 -0
  76. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.mjs +10 -4
  77. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.provider.d.ts +1 -0
  78. package/es/panel-component/user-message/user-message.mjs +3 -2
  79. package/es/util/index.d.ts +1 -0
  80. package/es/util/index.mjs +1 -0
  81. package/es/util/notification-util/notification-util.mjs +3 -1
  82. package/es/util/wang-editor-util/wang-editor-util.d.ts +11 -0
  83. package/es/util/wang-editor-util/wang-editor-util.mjs +12 -0
  84. package/es/web-app/create-vue-app.mjs +8 -0
  85. package/lib/common/action-toolbar/action-toolbar.cjs +4 -3
  86. package/lib/common/custom-theme/custom-theme.cjs +3 -2
  87. package/lib/common/data-import2/data-import2.cjs +1 -4
  88. package/lib/common/emoji-select/components/categories/categories.cjs +2 -1
  89. package/lib/common/extend-action-timeline/extend-action-timeline.cjs +3 -2
  90. package/lib/common/grid-setting/grid-setting.cjs +2 -1
  91. package/lib/common/index.cjs +2 -0
  92. package/lib/common/pagination/pagination.cjs +2 -1
  93. package/lib/common/quick-edit/quick-edit.cjs +118 -0
  94. package/lib/common/quick-edit/quick-edit.css +1 -0
  95. package/lib/common/rawitem/rawitem.cjs +2 -1
  96. package/lib/control/app-menu/app-menu.cjs +1 -1
  97. package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -1
  98. package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +3 -2
  99. package/lib/control/calendar/calendar.cjs +2 -1
  100. package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +2 -1
  101. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +2 -1
  102. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +3 -2
  103. package/lib/control/chart/chart.cjs +8 -0
  104. package/lib/control/context-menu/context-menu.cjs +4 -3
  105. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +2 -1
  106. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +3 -2
  107. package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +3 -2
  108. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +2 -1
  109. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  110. package/lib/control/drtab/drtab.cjs +2 -1
  111. package/lib/control/form/form-detail/form-button/form-button.cjs +2 -1
  112. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +5 -2
  113. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  114. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
  115. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +2 -1
  116. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +2 -1
  117. package/lib/control/grid/grid/grid.css +1 -1
  118. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -2
  119. package/lib/control/kanban/kanban.cjs +1 -1
  120. package/lib/control/list/list.cjs +2 -1
  121. package/lib/control/report-panel/report-panel.cjs +1 -19
  122. package/lib/control/search-bar/search-bar.cjs +3 -2
  123. package/lib/control/search-bar/search-groups/search-groups.cjs +5 -5
  124. package/lib/control/toolbar/export-excel/export-excel.cjs +3 -2
  125. package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +2 -4
  126. package/lib/control/toolbar/toolbar.cjs +7 -6
  127. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -2
  128. package/lib/control/wizard-panel/wizard-panel.cjs +2 -1
  129. package/lib/editor/array/ibiz-array/ibiz-array.cjs +12 -3
  130. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -1
  131. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
  132. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -1
  133. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -1
  134. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +9 -4
  135. package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +10 -3
  136. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +5 -2
  137. package/lib/editor/text-box/input/input.cjs +15 -2
  138. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -1
  139. package/lib/index.cjs +2 -0
  140. package/lib/panel-component/auth-captcha/auth-captcha.cjs +2 -1
  141. package/lib/panel-component/panel-button/panel-button.cjs +2 -1
  142. package/lib/panel-component/short-cut/short-cut.cjs +1 -1
  143. package/lib/panel-component/user-action/user-action.cjs +2 -1
  144. package/lib/panel-component/user-message/async-action/async-action/async-action.cjs +2 -1
  145. package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +2 -1
  146. package/lib/panel-component/user-message/internal-message/internal-message-html/internal-message-html.cjs +9 -3
  147. package/lib/panel-component/user-message/user-message.cjs +3 -2
  148. package/lib/util/index.cjs +2 -0
  149. package/lib/util/notification-util/notification-util.cjs +3 -1
  150. package/lib/util/wang-editor-util/wang-editor-util.cjs +14 -0
  151. package/lib/web-app/create-vue-app.cjs +8 -0
  152. package/package.json +6 -6
  153. package/dist/chart-HuCq_rW2.js +0 -1
  154. package/dist/index-QB7iGpIB.js +0 -4
  155. /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_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
  156. /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_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
@@ -75,6 +75,11 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
75
75
  }
76
76
  return "";
77
77
  });
78
+ const onEmit = (val, eventName = "blur") => {
79
+ if (eventName === c.triggerMode) {
80
+ emit("change", val);
81
+ }
82
+ };
78
83
  const setEditable = (flag) => {
79
84
  if (flag) {
80
85
  isEditable.value = flag;
@@ -87,7 +92,13 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
87
92
  let blurCacheValue;
88
93
  const handleChange = (val) => {
89
94
  if (blurCacheValue !== val) {
90
- emit("change", val);
95
+ onEmit(val);
96
+ }
97
+ blurCacheValue = void 0;
98
+ };
99
+ const handleInput = (val) => {
100
+ if (blurCacheValue !== val) {
101
+ onEmit(val, "input");
91
102
  }
92
103
  blurCacheValue = void 0;
93
104
  };
@@ -100,7 +111,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
100
111
  const onBlur = (event) => {
101
112
  blurCacheValue = event.target.value;
102
113
  if (blurCacheValue != props.value) {
103
- emit("change", blurCacheValue);
114
+ onEmit(blurCacheValue);
104
115
  }
105
116
  emit("blur", event);
106
117
  setEditable(false);
@@ -239,6 +250,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
239
250
  currentVal,
240
251
  readonlyText,
241
252
  handleChange,
253
+ handleInput,
242
254
  handleKeyUp,
243
255
  onBlur,
244
256
  onFocus,
@@ -306,6 +318,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
306
318
  "minlength": this.c.model.minLength,
307
319
  "show-word-limit": this.showLimit && this.c.model.showMaxLength,
308
320
  "onChange": this.handleChange,
321
+ "onInput": this.handleInput,
309
322
  "onKeyup": this.handleKeyUp,
310
323
  "onBlur": this.onBlur,
311
324
  "onFocus": this.onFocus,
@@ -5,6 +5,7 @@ var vue3Util = require('@ibiz-template/vue3-util');
5
5
  require('./ibiz-searchcond-edit.css');
6
6
  var qxUtil = require('qx-util');
7
7
  var runtime = require('@ibiz-template/runtime');
8
+ var core = require('@ibiz-template/core');
8
9
 
9
10
  "use strict";
10
11
  const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
@@ -167,7 +168,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
167
168
  }, this.$attrs), null), vue.createVNode(vue.resolveComponent("el-button"), {
168
169
  "ref": "filterButtonRef",
169
170
  "type": "primary",
170
- "title": ibiz.env.enableTitle ? ibiz.i18n.t("app.edit") : void 0,
171
+ "title": core.showTitle(ibiz.i18n.t("app.edit")),
171
172
  "class": this.ns.b("filter"),
172
173
  "onClick": () => this.triggerFilter()
173
174
  }, {
package/lib/index.cjs CHANGED
@@ -126,6 +126,7 @@ var usePagination = require('./util/pagination/use-pagination.cjs');
126
126
  var noticeUtil = require('./util/notice-util/notice-util.cjs');
127
127
  var renderUtil = require('./util/render-util/render-util.cjs');
128
128
  var appUtil = require('./util/app-util/app-util.cjs');
129
+ var wangEditorUtil = require('./util/wang-editor-util/wang-editor-util.cjs');
129
130
  var authGuard = require('./web-app/guard/auth-guard/auth-guard.cjs');
130
131
  var main = require('./web-app/main.cjs');
131
132
  var index$18 = require('./web-app/router/index.cjs');
@@ -258,6 +259,7 @@ exports.usePagination = usePagination.usePagination;
258
259
  exports.NoticeUtil = noticeUtil.NoticeUtil;
259
260
  exports.RenderUtil = renderUtil.RenderUtil;
260
261
  exports.AppUtil = appUtil.AppUtil;
262
+ exports.parseHtml = wangEditorUtil.parseHtml;
261
263
  exports.AuthGuard = authGuard.AuthGuard;
262
264
  exports.runApp = main.runApp;
263
265
  exports.AppRouter = index$18.AppRouter;
@@ -4,6 +4,7 @@ var vue = require('vue');
4
4
  var vue3Util = require('@ibiz-template/vue3-util');
5
5
  var authCaptcha_controller = require('./auth-captcha.controller.cjs');
6
6
  require('./auth-captcha.css');
7
+ var core = require('@ibiz-template/core');
7
8
 
8
9
  "use strict";
9
10
  const AuthCaptcha = /* @__PURE__ */ vue.defineComponent({
@@ -57,7 +58,7 @@ const AuthCaptcha = /* @__PURE__ */ vue.defineComponent({
57
58
  "src": this.c.state.image,
58
59
  "class": this.ns.e("image"),
59
60
  "onClick": this.onClick,
60
- "title": "\u70B9\u51FB\u56FE\u7247\u5237\u65B0"
61
+ "title": core.showTitle("\u70B9\u51FB\u56FE\u7247\u5237\u65B0")
61
62
  }, {
62
63
  error: () => {
63
64
  return vue.createVNode("div", {
@@ -6,6 +6,7 @@ var vue = require('vue');
6
6
  var vue3Util = require('@ibiz-template/vue3-util');
7
7
  var panelButton_controller = require('./panel-button.controller.cjs');
8
8
  require('./panel-button.css');
9
+ var core = require('@ibiz-template/core');
9
10
 
10
11
  "use strict";
11
12
  const PanelButton = /* @__PURE__ */ vue.defineComponent({
@@ -105,7 +106,7 @@ const PanelButton = /* @__PURE__ */ vue.defineComponent({
105
106
  }, [vue.createVNode(vue.resolveComponent("el-button"), {
106
107
  "type": this.buttonType,
107
108
  "text": this.isText,
108
- "title": ibiz.env.enableTitle ? this.tooltip : void 0,
109
+ "title": core.showTitle(this.tooltip),
109
110
  "disabled": this.state.disabled,
110
111
  "loading": this.state.loading,
111
112
  "onClick": this.handleButtonClick
@@ -103,7 +103,7 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
103
103
  if (isVertical && !isShowToolbar.value || isVertical && isShowToolbar.value && index > 5 || !isVertical && index < 6) {
104
104
  return vue.createVNode("div", {
105
105
  "class": [ns.e("item"), ns.e("draggable-item")],
106
- "title": element.caption,
106
+ "title": core.showTitle(element.caption),
107
107
  "onClick": () => onClick(element)
108
108
  }, [vue.createVNode("svg", {
109
109
  "viewBox": "0 0 16 16",
@@ -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-action.css');
7
+ var core = require('@ibiz-template/core');
7
8
 
8
9
  "use strict";
9
10
  const UserAction = /* @__PURE__ */ vue.defineComponent({
@@ -76,7 +77,7 @@ const UserAction = /* @__PURE__ */ vue.defineComponent({
76
77
  render() {
77
78
  return vue.createVNode("div", {
78
79
  "class": this.ns.b(),
79
- "title": this.modelData.caption
80
+ "title": core.showTitle(this.modelData.caption)
80
81
  }, [vue.createVNode(vue.resolveComponent("i-biz-icon"), {
81
82
  "class": [this.ns.e("image")],
82
83
  "icon": this.sysImage,
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
+ var core = require('@ibiz-template/core');
4
5
  var vue3Util = require('@ibiz-template/vue3-util');
5
6
  require('./async-action.css');
6
7
  var lodashEs = require('lodash-es');
@@ -93,7 +94,7 @@ const AsyncAction = /* @__PURE__ */ vue.defineComponent({
93
94
  }, [vue.createVNode("div", {
94
95
  "class": this.ns.e("caption")
95
96
  }, [asyncacitonname]), this.showErrorInfo && vue.createVNode("div", {
96
- "title": this.action.actionresult,
97
+ "title": core.showTitle(this.action.actionresult),
97
98
  "class": this.ns.e("error-info")
98
99
  }, [this.action.actionresult]), this.actionstate === 20 ? vue.createVNode("div", {
99
100
  "class": this.ns.e("progress")
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
+ var core = require('@ibiz-template/core');
4
5
  var vue3Util = require('@ibiz-template/vue3-util');
5
6
  require('./internal-message-container.css');
6
7
 
@@ -92,7 +93,7 @@ const InternalMessageContainer = /* @__PURE__ */ vue.defineComponent({
92
93
  imagePath: "svg/read.svg"
93
94
  },
94
95
  "baseDir": "iconfont",
95
- "title": item.tooltip,
96
+ "title": core.showTitle(item.tooltip),
96
97
  "onClick": (e) => this.onToolbarClick(e, item.key)
97
98
  }, null);
98
99
  })]), vue.createVNode("div", {
@@ -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;
@@ -18,6 +18,14 @@ function createVueApp(rootComponent, rootProps) {
18
18
  app.use(plugin);
19
19
  };
20
20
  vue3Util.AppHooks.useComponent.tap(installPlugin);
21
+ const importBIReport = () => import('@ibiz-template-plugin/bi-report');
22
+ importBIReport().then((value) => {
23
+ const biReport = value.default;
24
+ vue3Util.AppHooks.useComponent.callSync(null, biReport);
25
+ vue3Util.AppHooks.createApp.tap((_, _app) => {
26
+ _app.use(biReport);
27
+ });
28
+ });
21
29
  if (rootProps) {
22
30
  const oldUnMounted = rootProps.unmounted;
23
31
  rootProps.unmounted = () => {
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",
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.8",
34
+ "@ibiz-template/core": "0.7.28",
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",
37
+ "@ibiz-template/runtime": "0.7.28",
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",
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])])]})}}))}}}));