@ibiz-template/vue3-components 0.7.9 → 0.7.11

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 (124) hide show
  1. package/dist/{chart-jfPZ04eU.js → chart-Wh3LMgZ1.js} +1 -1
  2. package/dist/index-0Z8KS6t6.js +1 -0
  3. package/dist/index-GZW20-jI.js +4 -0
  4. package/dist/index-OkS9bkdl.js +1 -0
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/map-chart-A4-TpWet.js +1 -0
  8. package/dist/wang-editor-HlmvPsb1.js +1 -0
  9. package/dist/{xlsx-util-Fc3O95jH.js → xlsx-util-lBpTaCO_.js} +1 -1
  10. package/es/common/data-import2/data-import2.mjs +1 -1
  11. package/es/common/doing-notice/doing-notice.mjs +7 -5
  12. package/es/common/map-chart/map-chart.util.mjs +4 -1
  13. package/es/common/view-message/view-message.css +1 -1
  14. package/es/common/view-message/view-message.d.ts +848 -1
  15. package/es/common/view-message/view-message.mjs +52 -22
  16. package/es/control/app-menu/app-menu.mjs +6 -2
  17. package/es/control/calendar/calendar.mjs +1 -1
  18. package/es/control/chart/chart.mjs +1 -1
  19. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +19000 -27
  20. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +1 -1
  21. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +1 -1
  22. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +4 -2
  23. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +64 -0
  24. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +14 -11
  25. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +1 -1
  26. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +2 -2
  27. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.mjs +3 -1
  28. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +17 -11
  29. package/es/control/gantt/gantt.d.ts +1 -0
  30. package/es/control/gantt/gantt.mjs +15 -4
  31. package/es/control/gantt/index.d.ts +1 -0
  32. package/es/control/grid/grid/grid.mjs +3 -1
  33. package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +3 -1
  34. package/es/control/grid/row-edit-popover/row-edit-popover.mjs +9 -5
  35. package/es/control/grid/row-edit-popover/use-row-edit-popover.mjs +3 -3
  36. package/es/control/kanban/kanban.mjs +17 -9
  37. package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.mjs +2 -2
  38. package/es/control/report-panel/report-panel.mjs +2 -2
  39. package/es/control/search-bar/filter-tree/filter-tree.mjs +7 -5
  40. package/es/control/search-bar/search-bar.mjs +2 -2
  41. package/es/control/search-bar/search-groups/edit-group-util.mjs +10 -2
  42. package/es/control/search-bar/search-groups/new-group-util.mjs +13 -3
  43. package/es/control/search-bar/search-groups/search-groups.d.ts +1 -1
  44. package/es/control/search-bar/search-groups/search-groups.mjs +47 -38
  45. package/es/control/toolbar/export-excel/export-excel.mjs +23 -21
  46. package/es/control/tree/el-tree-util.mjs +4 -2
  47. package/es/control/tree/tree.mjs +3 -1
  48. package/es/control/tree-grid/tree-grid.mjs +3 -1
  49. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +3 -1
  50. package/es/control/tree-grid-ex/tree-grid-ex.mjs +6 -2
  51. package/es/control/tree-grid-ex/use-row-edit-popover.mjs +3 -3
  52. package/es/control/wizard-panel/wizard-panel.mjs +3 -3
  53. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -1
  54. package/es/editor/html/html-editor.controller.mjs +11 -0
  55. package/es/editor/html/wang-editor/ai/ai-modules.d.ts +1 -0
  56. package/es/editor/html/wang-editor/ai/ai-modules.mjs +2 -2
  57. package/es/editor/html/wang-editor/wang-editor.mjs +11 -13
  58. package/es/index.mjs +1 -0
  59. package/es/locale/en/index.d.ts +109 -1
  60. package/es/locale/en/index.mjs +123 -15
  61. package/es/locale/zh-CN/index.d.ts +109 -1
  62. package/es/locale/zh-CN/index.mjs +113 -5
  63. package/es/panel-component/view-msg-pos/view-msg-pos.mjs +4 -1
  64. package/es/util/index.d.ts +1 -0
  65. package/es/util/index.mjs +1 -0
  66. package/es/util/render-util/render-util.d.ts +48 -0
  67. package/es/util/render-util/render-util.mjs +60 -0
  68. package/es/web-app/guard/auth-guard/auth-guard.mjs +6 -4
  69. package/es/web-app/main.mjs +2 -0
  70. package/lib/common/data-import2/data-import2.cjs +1 -1
  71. package/lib/common/doing-notice/doing-notice.cjs +6 -4
  72. package/lib/common/map-chart/map-chart.util.cjs +4 -1
  73. package/lib/common/view-message/view-message.cjs +52 -22
  74. package/lib/common/view-message/view-message.css +1 -1
  75. package/lib/control/app-menu/app-menu.cjs +6 -2
  76. package/lib/control/calendar/calendar.cjs +1 -1
  77. package/lib/control/chart/chart.cjs +1 -1
  78. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +1 -1
  79. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +1 -1
  80. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +3 -1
  81. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +13 -10
  82. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +1 -1
  83. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +1 -1
  84. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +3 -1
  85. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +16 -10
  86. package/lib/control/gantt/gantt.cjs +14 -3
  87. package/lib/control/grid/grid/grid.cjs +3 -1
  88. package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +3 -1
  89. package/lib/control/grid/row-edit-popover/row-edit-popover.cjs +8 -4
  90. package/lib/control/grid/row-edit-popover/use-row-edit-popover.cjs +3 -3
  91. package/lib/control/kanban/kanban.cjs +16 -8
  92. package/lib/control/report-panel/report-detail/user2-report-panel/user2-report-panel.cjs +1 -1
  93. package/lib/control/report-panel/report-panel.cjs +1 -1
  94. package/lib/control/search-bar/filter-tree/filter-tree.cjs +7 -5
  95. package/lib/control/search-bar/search-bar.cjs +2 -2
  96. package/lib/control/search-bar/search-groups/edit-group-util.cjs +10 -2
  97. package/lib/control/search-bar/search-groups/new-group-util.cjs +13 -3
  98. package/lib/control/search-bar/search-groups/search-groups.cjs +46 -37
  99. package/lib/control/toolbar/export-excel/export-excel.cjs +23 -21
  100. package/lib/control/tree/el-tree-util.cjs +4 -2
  101. package/lib/control/tree/tree.cjs +3 -1
  102. package/lib/control/tree-grid/tree-grid.cjs +3 -1
  103. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +3 -1
  104. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +6 -2
  105. package/lib/control/tree-grid-ex/use-row-edit-popover.cjs +3 -3
  106. package/lib/control/wizard-panel/wizard-panel.cjs +3 -3
  107. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
  108. package/lib/editor/html/html-editor.controller.cjs +11 -0
  109. package/lib/editor/html/wang-editor/ai/ai-modules.cjs +2 -2
  110. package/lib/editor/html/wang-editor/wang-editor.cjs +11 -13
  111. package/lib/index.cjs +2 -0
  112. package/lib/locale/en/index.cjs +123 -15
  113. package/lib/locale/zh-CN/index.cjs +113 -5
  114. package/lib/panel-component/view-msg-pos/view-msg-pos.cjs +4 -1
  115. package/lib/util/index.cjs +2 -0
  116. package/lib/util/render-util/render-util.cjs +62 -0
  117. package/lib/web-app/guard/auth-guard/auth-guard.cjs +6 -4
  118. package/lib/web-app/main.cjs +2 -0
  119. package/package.json +6 -6
  120. package/dist/index-GAvjatsT.js +0 -4
  121. package/dist/index-dsmTOMa5.js +0 -1
  122. package/dist/index-sGpuIVYT.js +0 -1
  123. package/dist/map-chart-cmVrWpPw.js +0 -1
  124. package/dist/wang-editor-mq8sQSDK.js +0 -1
@@ -136,7 +136,7 @@ const SearchBarControl = /* @__PURE__ */ defineComponent({
136
136
  }, [groupItem.caption]);
137
137
  })])), this.c.model.enableGroup && this.c.isBackendSearchGroup && createVNode(resolveComponent("el-button"), {
138
138
  "class": this.ns.b("save"),
139
- "title": "\u4FDD\u5B58\u5206\u7EC4",
139
+ "title": ibiz.i18n.t("control.searchBar.saveGroup"),
140
140
  "onClick": this.handleSave
141
141
  }, {
142
142
  default: () => [createVNode("ion-icon", {
@@ -160,7 +160,7 @@ const SearchBarControl = /* @__PURE__ */ defineComponent({
160
160
  }), this.c.enableFilter && createVNode(resolveComponent("el-button"), {
161
161
  "ref": "filterButtonRef",
162
162
  "type": "primary",
163
- "title": "\u8FC7\u6EE4",
163
+ "title": ibiz.i18n.t("control.searchBar.filter"),
164
164
  "class": this.ns.b("filter"),
165
165
  "onClick": () => this.triggerFilter()
166
166
  }, {
@@ -8,7 +8,13 @@ function useEditGroup(c) {
8
8
  });
9
9
  const editFormRef = ref();
10
10
  const editFormRules = reactive({
11
- caption: [{ required: true, message: "\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A", trigger: "blur" }]
11
+ caption: [
12
+ {
13
+ required: true,
14
+ message: ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),
15
+ trigger: "blur"
16
+ }
17
+ ]
12
18
  });
13
19
  const handleEditFormSubmit = async () => {
14
20
  if (editFormRef.value) {
@@ -28,7 +34,9 @@ function useEditGroup(c) {
28
34
  }
29
35
  }
30
36
  }
31
- ibiz.message.success("\u66F4\u65B0\u6210\u529F\uFF01");
37
+ ibiz.message.success(
38
+ "".concat(ibiz.i18n.t("control.common.updateSuccess"), "\uFF01")
39
+ );
32
40
  editDialogVisible.value = false;
33
41
  }
34
42
  }
@@ -8,7 +8,13 @@ function useNewGroup(c) {
8
8
  });
9
9
  const newFormRef = ref();
10
10
  const newFormRules = reactive({
11
- caption: [{ required: true, message: "\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A", trigger: "blur" }]
11
+ caption: [
12
+ {
13
+ required: true,
14
+ message: ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),
15
+ trigger: "blur"
16
+ }
17
+ ]
12
18
  });
13
19
  const handleNewFormCancel = () => {
14
20
  if (newFormRef.value) {
@@ -25,13 +31,17 @@ function useNewGroup(c) {
25
31
  return group.caption === newForm.caption;
26
32
  });
27
33
  if (sameCaptionGroup) {
28
- ibiz.message.error("\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u91CD\u590D\uFF01");
34
+ ibiz.message.error(
35
+ ibiz.i18n.t("control.searchBar.searchGroups.errorMessage")
36
+ );
29
37
  return;
30
38
  }
31
39
  await c.service.create(newForm.caption);
32
40
  handleNewFormCancel();
33
41
  await c.initSearBarGroups();
34
- ibiz.message.success("\u65B0\u5EFA\u6210\u529F\uFF01");
42
+ ibiz.message.success(
43
+ "".concat(ibiz.i18n.t("control.common.newSuccCreated"), "\uFF01")
44
+ );
35
45
  }
36
46
  }
37
47
  );
@@ -31,7 +31,7 @@ export declare const SearchGroups: import("vue").DefineComponent<{
31
31
  removeGroup: (groupItem: IBackendSearchBarGroup) => void;
32
32
  isActiveMore: import("vue").ComputedRef<boolean>;
33
33
  onDragChange: (evt: IData) => Promise<void>;
34
- editLinkTitle: (groupItem: IBackendSearchBarGroup) => "" | "配置的分组不可编辑" | "请先保存该分组";
34
+ editLinkTitle: (groupItem: IBackendSearchBarGroup) => string;
35
35
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  controller: {
37
37
  type: PropType<SearchBarController>;
@@ -1,4 +1,4 @@
1
- import { ref, computed, createTextVNode, createVNode, resolveComponent, defineComponent } from 'vue';
1
+ import { isVNode, ref, computed, createVNode, resolveComponent, defineComponent } from 'vue';
2
2
  import { useNamespace } from '@ibiz-template/vue3-util';
3
3
  import './search-groups.css';
4
4
  import { ElMessageBox } from 'element-plus';
@@ -8,6 +8,9 @@ import { useNewGroup } from './new-group-util.mjs';
8
8
  import { useEditGroup } from './edit-group-util.mjs';
9
9
 
10
10
  "use strict";
11
+ function _isSlot(s) {
12
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
13
+ }
11
14
  const SearchGroups = /* @__PURE__ */ defineComponent({
12
15
  name: "IBizSearchGroups",
13
16
  components: {
@@ -57,11 +60,11 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
57
60
  const editLinkTitle = (groupItem) => {
58
61
  if (groupItem.saved) {
59
62
  if (groupItem.noEdit) {
60
- return "\u914D\u7F6E\u7684\u5206\u7EC4\u4E0D\u53EF\u7F16\u8F91";
63
+ return ibiz.i18n.t("control.searchBar.searchGroups.noEditPrompt");
61
64
  }
62
65
  return "";
63
66
  }
64
- return "\u8BF7\u5148\u4FDD\u5B58\u8BE5\u5206\u7EC4";
67
+ return ibiz.i18n.t("control.searchBar.searchGroups.savePrompt");
65
68
  };
66
69
  const onGroupClick = (item) => {
67
70
  c.handleGroupClick(item);
@@ -79,20 +82,23 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
79
82
  };
80
83
  const removeGroup = (groupItem) => {
81
84
  ElMessageBox({
82
- title: "\u786E\u8BA4\u5220\u9664",
85
+ title: ibiz.i18n.t("control.searchBar.searchGroups.delTitle"),
83
86
  message: () => {
84
87
  return createVNode("div", {
85
88
  "class": ns.b("remove-dialog")
86
89
  }, [createVNode("div", {
87
- "class": ns.b("remove-dialog-content")
88
- }, [createTextVNode("\u786E\u8BA4\u5220\u9664\u5206\u7EC4"), createVNode("span", null, [groupItem.caption || groupItem.name]), createTextVNode("\u5417\uFF1F")]), createVNode("div", {
90
+ "class": ns.b("remove-dialog-content"),
91
+ "innerHTML": ibiz.i18n.t("control.searchBar.searchGroups.confirmDelPrompt", {
92
+ itemName: groupItem.caption || groupItem.name
93
+ })
94
+ }, null), createVNode("div", {
89
95
  "class": ns.b("remove-dialog-tip")
90
- }, [createTextVNode("\u5206\u7EC4\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D")])]);
96
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.unrecoverablePrompt")])]);
91
97
  },
92
98
  showCancelButton: true,
93
- confirmButtonText: "\u786E\u5B9A",
99
+ confirmButtonText: ibiz.i18n.t("control.common.determine"),
94
100
  confirmButtonClass: ns.b("remove-confirm-btn"),
95
- cancelButtonText: "\u53D6\u6D88",
101
+ cancelButtonText: ibiz.i18n.t("app.cancel"),
96
102
  cancelButtonClass: ns.b("remove-cancel-btn")
97
103
  }).then(async () => {
98
104
  if (groupItem.id) {
@@ -103,7 +109,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
103
109
  c.state.searchBarGroups.splice(index, 1);
104
110
  }
105
111
  }
106
- ibiz.message.success("\u5220\u9664\u6210\u529F\uFF01");
112
+ ibiz.message.success("".concat(ibiz.i18n.t("control.common.deleteSuccess"), "\uFF01"));
107
113
  await c.initSearBarGroups();
108
114
  }
109
115
  }).catch(() => {
@@ -193,7 +199,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
193
199
  }, {
194
200
  default: () => createVNode("div", {
195
201
  "class": [this.ns.b("more"), this.ns.is("selected", this.isActiveMore)]
196
- }, [this.c.model.groupMoreText || "\u66F4\u591A", createVNode("ion-icon", {
202
+ }, [this.c.model.groupMoreText || ibiz.i18n.t("app.more"), createVNode("ion-icon", {
197
203
  "name": "chevron-down-outline"
198
204
  }, null)]),
199
205
  dropdown: () => createVNode(resolveComponent("el-dropdown-menu"), null, {
@@ -220,7 +226,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
220
226
  "name": "add-outline"
221
227
  }, null), createVNode("span", {
222
228
  "class": this.ns.b("item-caption")
223
- }, [createTextVNode("\u65B0\u5EFA\u5206\u7EC4")])]
229
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.newGroup")])]
224
230
  }), createVNode(resolveComponent("el-dropdown-item"), {
225
231
  "onClick": this.manageGroup
226
232
  }, {
@@ -228,13 +234,13 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
228
234
  "name": "settings-outline"
229
235
  }, null), createVNode("span", {
230
236
  "class": this.ns.b("item-caption")
231
- }, [createTextVNode("\u5206\u7EC4\u7BA1\u7406")])]
237
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.groupManage")])]
232
238
  })]
233
239
  })
234
240
  }), createVNode(resolveComponent("el-dialog"), {
235
241
  "modelValue": this.newDialogVisible,
236
242
  "onUpdate:modelValue": ($event) => this.newDialogVisible = $event,
237
- "title": "\u65B0\u5EFA\u5206\u7EC4",
243
+ "title": ibiz.i18n.t("control.searchBar.searchGroups.newGroup"),
238
244
  "modal-class": this.ns.b("new-dialog")
239
245
  }, {
240
246
  default: () => {
@@ -245,36 +251,37 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
245
251
  "rules": this.newFormRules
246
252
  }, {
247
253
  default: () => [createVNode(resolveComponent("el-form-item"), {
248
- "label": "\u5206\u7EC4\u540D\u79F0",
254
+ "label": ibiz.i18n.t("control.searchBar.searchGroups.groupName"),
249
255
  "prop": "caption"
250
256
  }, {
251
257
  default: () => [createVNode(resolveComponent("el-input"), {
252
258
  "modelValue": this.newForm.caption,
253
259
  "onUpdate:modelValue": ($event) => this.newForm.caption = $event,
254
- "placeholder": "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0"
260
+ "placeholder": ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")
255
261
  }, null)]
256
262
  })]
257
263
  });
258
264
  },
259
265
  footer: () => {
266
+ let _slot, _slot2;
260
267
  return createVNode("div", {
261
268
  "class": this.ns.b("new-dialog-footer")
262
269
  }, [createVNode(resolveComponent("el-button"), {
263
270
  "class": this.ns.b("cancel-btn"),
264
271
  "onClick": this.handleNewFormCancel
265
- }, {
266
- default: () => [createTextVNode("\u53D6 \u6D88")]
272
+ }, _isSlot(_slot = ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel")) ? _slot : {
273
+ default: () => [_slot]
267
274
  }), createVNode(resolveComponent("el-button"), {
268
275
  "type": "primary",
269
276
  "onClick": this.handleNewFormSubmit
270
- }, {
271
- default: () => [createTextVNode("\u786E \u5B9A")]
277
+ }, _isSlot(_slot2 = ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine")) ? _slot2 : {
278
+ default: () => [_slot2]
272
279
  })]);
273
280
  }
274
281
  }), createVNode(resolveComponent("el-dialog"), {
275
282
  "modelValue": this.editDialogVisible,
276
283
  "onUpdate:modelValue": ($event) => this.editDialogVisible = $event,
277
- "title": "\u7F16\u8F91\u5206\u7EC4",
284
+ "title": ibiz.i18n.t("control.searchBar.searchGroups.editGroup"),
278
285
  "modal-class": this.ns.b("edit-dialog")
279
286
  }, {
280
287
  default: () => {
@@ -285,36 +292,37 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
285
292
  "rules": this.editFormRules
286
293
  }, {
287
294
  default: () => [createVNode(resolveComponent("el-form-item"), {
288
- "label": "\u5206\u7EC4\u540D\u79F0",
295
+ "label": ibiz.i18n.t("control.searchBar.searchGroups.groupName"),
289
296
  "prop": "caption"
290
297
  }, {
291
298
  default: () => [createVNode(resolveComponent("el-input"), {
292
299
  "modelValue": this.editForm.caption,
293
300
  "onUpdate:modelValue": ($event) => this.editForm.caption = $event,
294
- "placeholder": "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0"
301
+ "placeholder": ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")
295
302
  }, null)]
296
303
  })]
297
304
  });
298
305
  },
299
306
  footer: () => {
307
+ let _slot3, _slot4;
300
308
  return createVNode("div", {
301
309
  "class": this.ns.b("edit-dialog-footer")
302
310
  }, [createVNode(resolveComponent("el-button"), {
303
311
  "class": this.ns.b("cancel-btn"),
304
312
  "onClick": this.handleEditFormCancel
305
- }, {
306
- default: () => [createTextVNode("\u53D6 \u6D88")]
313
+ }, _isSlot(_slot3 = ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel")) ? _slot3 : {
314
+ default: () => [_slot3]
307
315
  }), createVNode(resolveComponent("el-button"), {
308
316
  "type": "primary",
309
317
  "onClick": this.handleEditFormSubmit
310
- }, {
311
- default: () => [createTextVNode("\u786E \u5B9A")]
318
+ }, _isSlot(_slot4 = ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine")) ? _slot4 : {
319
+ default: () => [_slot4]
312
320
  })]);
313
321
  }
314
322
  }), createVNode(resolveComponent("el-dialog"), {
315
323
  "modelValue": this.manageDialogVisible,
316
324
  "onUpdate:modelValue": ($event) => this.manageDialogVisible = $event,
317
- "title": "\u5206\u7EC4\u7BA1\u7406",
325
+ "title": ibiz.i18n.t("control.searchBar.searchGroups.groupManage"),
318
326
  "modal-class": this.ns.b("manage-dialog")
319
327
  }, {
320
328
  default: () => [createVNode("div", {
@@ -325,7 +333,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
325
333
  "class": this.ns.b("content-top-left")
326
334
  }, [createVNode("ion-icon", {
327
335
  "name": "alert-circle-outline"
328
- }, null), createTextVNode("Tips\uFF1A\u7BA1\u7406\u641C\u7D22\u680F\u7684\u5206\u7EC4")]), createVNode("div", {
336
+ }, null), ibiz.i18n.t("control.searchBar.searchGroups.manageTips")]), createVNode("div", {
329
337
  "class": this.ns.b("content-top-right")
330
338
  }, [createVNode(resolveComponent("el-button"), {
331
339
  "onClick": () => {
@@ -334,18 +342,18 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
334
342
  }, {
335
343
  default: () => [createVNode("ion-icon", {
336
344
  "name": "add-outline"
337
- }, null), createTextVNode("\u65B0\u5EFA\u5206\u7EC4")]
345
+ }, null), ibiz.i18n.t("control.searchBar.searchGroups.newGroup")]
338
346
  })])]), createVNode("div", {
339
347
  "class": this.ns.b("content-bottom")
340
348
  }, [createVNode("div", {
341
349
  "class": this.ns.b("table-header")
342
350
  }, [createVNode("div", {
343
351
  "class": this.ns.b("name")
344
- }, [createTextVNode("\u540D\u79F0")]), createVNode("div", {
352
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.name")]), createVNode("div", {
345
353
  "class": this.ns.b("show")
346
- }, [createTextVNode("\u663E\u793A")]), createVNode("div", {
354
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.show")]), createVNode("div", {
347
355
  "class": this.ns.b("action")
348
- }, [createTextVNode("\u64CD\u4F5C")])]), createVNode(draggable, {
356
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.operate")])]), createVNode(draggable, {
349
357
  "class": this.ns.b("table-body"),
350
358
  "modelValue": this.c.state.searchBarGroups,
351
359
  "onUpdate:modelValue": ($event) => this.c.state.searchBarGroups = $event,
@@ -360,6 +368,7 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
360
368
  item: ({
361
369
  element: groupItem
362
370
  }) => {
371
+ let _slot5, _slot6;
363
372
  return createVNode("div", {
364
373
  "class": this.ns.b("table-row")
365
374
  }, [createVNode("div", {
@@ -376,15 +385,15 @@ const SearchGroups = /* @__PURE__ */ defineComponent({
376
385
  "disabled": !groupItem.saved || groupItem.noEdit,
377
386
  "title": this.editLinkTitle(groupItem),
378
387
  "onClick": () => this.editGroup(groupItem)
379
- }, {
380
- default: () => [createTextVNode("\u7F16\u8F91")]
388
+ }, _isSlot(_slot5 = ibiz.i18n.t("app.edit")) ? _slot5 : {
389
+ default: () => [_slot5]
381
390
  }), createVNode(resolveComponent("el-link"), {
382
391
  "type": "danger",
383
392
  "disabled": !groupItem.saved,
384
- "title": !groupItem.saved ? "\u8BF7\u5148\u4FDD\u5B58\u8BE5\u5206\u7EC4" : "",
393
+ "title": !groupItem.saved ? ibiz.i18n.t("control.searchBar.searchGroups.savePrompt") : "",
385
394
  "onClick": () => this.removeGroup(groupItem)
386
- }, {
387
- default: () => [createTextVNode("\u5220\u9664")]
395
+ }, _isSlot(_slot6 = ibiz.i18n.t("app.delete")) ? _slot6 : {
396
+ default: () => [_slot6]
388
397
  })])]);
389
398
  }
390
399
  })])])]
@@ -70,21 +70,22 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
70
70
  });
71
71
  },
72
72
  default: () => {
73
+ let _slot2, _slot3, _slot4, _slot5;
73
74
  return [createVNode(resolveComponent("el-menu-item"), {
74
75
  "class": this.ns.b("menu-item"),
75
76
  "onClick": (e) => this.onCommand("maxRowCount", e)
76
- }, {
77
- default: () => [createTextVNode("\u5BFC\u51FA\u5168\u90E8(\u6700\u5927\u5BFC\u51FA1000\u884C)")]
77
+ }, _isSlot(_slot2 = ibiz.i18n.t("control.toolbar.exportExcel.exportAll")) ? _slot2 : {
78
+ default: () => [_slot2]
78
79
  }), createVNode(resolveComponent("el-menu-item"), {
79
80
  "class": this.ns.b("menu-item"),
80
81
  "onClick": (e) => this.onCommand("activatedPage", e)
81
- }, {
82
- default: () => [createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9875")]
82
+ }, _isSlot(_slot3 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage")) ? _slot3 : {
83
+ default: () => [_slot3]
83
84
  }), createVNode(resolveComponent("el-menu-item"), {
84
85
  "class": this.ns.b("menu-item"),
85
86
  "onClick": (e) => this.onCommand("selectedRows", e)
86
- }, {
87
- default: () => [createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9009\u4E2D")]
87
+ }, _isSlot(_slot4 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect")) ? _slot4 : {
88
+ default: () => [_slot4]
88
89
  }), createVNode(resolveComponent("el-menu-item"), {
89
90
  "class": [this.ns.b("menu-item"), this.ns.e("custom")]
90
91
  }, {
@@ -119,11 +120,11 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
119
120
  "onClick": (event) => {
120
121
  event.stopPropagation();
121
122
  }
122
- }, [createTextVNode("\u9875")]), createVNode(resolveComponent("el-button"), {
123
+ }, [ibiz.i18n.t("control.toolbar.exportExcel.page")]), createVNode(resolveComponent("el-button"), {
123
124
  "onClick": (e) => this.onCommand("customPage", e),
124
125
  "size": "small"
125
- }, {
126
- default: () => [createTextVNode("\u5BFC\u51FA")]
126
+ }, _isSlot(_slot5 = ibiz.i18n.t("control.toolbar.exportExcel.export")) ? _slot5 : {
127
+ default: () => [_slot5]
127
128
  })]
128
129
  })];
129
130
  }
@@ -134,29 +135,30 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
134
135
  "trigger": "click"
135
136
  }, {
136
137
  default: () => {
137
- let _slot2;
138
+ let _slot6;
138
139
  return createVNode(resolveComponent("el-button"), {
139
140
  "title": this.item.tooltip,
140
141
  "size": this.$props.size,
141
142
  "class": this.ns.e("button")
142
- }, _isSlot(_slot2 = this.btnContent(this.item)) ? _slot2 : {
143
- default: () => [_slot2]
143
+ }, _isSlot(_slot6 = this.btnContent(this.item)) ? _slot6 : {
144
+ default: () => [_slot6]
144
145
  });
145
146
  },
146
147
  dropdown: () => {
148
+ let _slot7, _slot8, _slot9, _slot10;
147
149
  return createVNode(resolveComponent("el-dropdown-menu"), null, {
148
150
  default: () => [createVNode(resolveComponent("el-dropdown-item"), {
149
151
  "command": "maxRowCount"
150
- }, {
151
- default: () => [createTextVNode("\u5BFC\u51FA\u5168\u90E8(\u6700\u5927\u5BFC\u51FA1000\u884C)")]
152
+ }, _isSlot(_slot7 = ibiz.i18n.t("control.toolbar.exportExcel.exportAll")) ? _slot7 : {
153
+ default: () => [_slot7]
152
154
  }), createVNode(resolveComponent("el-dropdown-item"), {
153
155
  "command": "activatedPage"
154
- }, {
155
- default: () => [createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9875")]
156
+ }, _isSlot(_slot8 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage")) ? _slot8 : {
157
+ default: () => [_slot8]
156
158
  }), createVNode(resolveComponent("el-dropdown-item"), {
157
159
  "command": "selectedRows"
158
- }, {
159
- default: () => [createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9009\u4E2D")]
160
+ }, _isSlot(_slot9 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect")) ? _slot9 : {
161
+ default: () => [_slot9]
160
162
  }), createVNode(resolveComponent("el-dropdown-item"), {
161
163
  "class": this.ns.e("custom"),
162
164
  "command": ""
@@ -192,11 +194,11 @@ const IBizExportExcel = /* @__PURE__ */ defineComponent({
192
194
  "onClick": (event) => {
193
195
  event.stopPropagation();
194
196
  }
195
- }, [createTextVNode("\u9875")]), createVNode(resolveComponent("el-button"), {
197
+ }, [ibiz.i18n.t("control.toolbar.exportExcel.page")]), createVNode(resolveComponent("el-button"), {
196
198
  "onClick": (e) => this.onCommand("customPage", e),
197
199
  "size": "small"
198
- }, {
199
- default: () => [createTextVNode("\u5BFC\u51FA")]
200
+ }, _isSlot(_slot10 = ibiz.i18n.t("control.toolbar.exportExcel.export")) ? _slot10 : {
201
+ default: () => [_slot10]
200
202
  })]
201
203
  })]
202
204
  });
@@ -13,7 +13,7 @@ function useElTreeUtil(treeRef, c) {
13
13
  const getTreeInstance = () => {
14
14
  const elTree = treeRef.value;
15
15
  if (!elTree) {
16
- throw new RuntimeError("\u627E\u4E0D\u5230el-tree\u5B9E\u4F8B\u5BF9\u8C61");
16
+ throw new RuntimeError(ibiz.i18n.t("control.tree.noFoundInstance"));
17
17
  }
18
18
  return elTree;
19
19
  };
@@ -66,7 +66,9 @@ function formatNodeDropType(dropType) {
66
66
  case "after":
67
67
  return "next";
68
68
  default:
69
- throw new RuntimeError("\u6682\u4E0D\u652F\u6301dropType:".concat(dropType));
69
+ throw new RuntimeError(
70
+ ibiz.i18n.t("control.tree.noSupported", { dropType })
71
+ );
70
72
  }
71
73
  }
72
74
 
@@ -349,7 +349,9 @@ const TreeControl = /* @__PURE__ */ defineComponent({
349
349
  const updateNodeExpand = (data, expanded) => {
350
350
  const nodeData = findNodeData(data._uuid, c);
351
351
  if (!nodeData) {
352
- throw new RuntimeError("\u6CA1\u6709\u627E\u5230_uuid\u4E3A".concat(data._uuid, "\u7684\u8282\u70B9"));
352
+ throw new RuntimeError(ibiz.i18n.t("control.common.noFoundNode", {
353
+ id: data._uuid
354
+ }));
353
355
  }
354
356
  c.onExpandChange(nodeData, expanded);
355
357
  };
@@ -153,7 +153,9 @@ const TreeGridControl = /* @__PURE__ */ defineComponent({
153
153
  "class": ns.b("batch-toolbar-content")
154
154
  }, [createVNode("div", {
155
155
  "class": ns.b("batch-toolbar-text")
156
- }, [createTextVNode("\u5DF2\u9009\u4E2D"), c.state.selectedData.length, createTextVNode("\u9879")]), createVNode("div", {
156
+ }, [ibiz.i18n.t("control.common.itemsSelected", {
157
+ length: c.state.selectedData.length
158
+ })]), createVNode("div", {
157
159
  "class": ns.b("batch-toolbar-separator")
158
160
  }, [createTextVNode("|")]), createVNode(resolveComponent("iBizToolbarControl"), {
159
161
  "modelData": batchToolbar,
@@ -41,7 +41,9 @@ const TreeGridExEditColumn = /* @__PURE__ */ defineComponent({
41
41
  case "all":
42
42
  return useAllEdit(props, componentRef);
43
43
  default:
44
- throw new RuntimeError("".concat(ibiz.config.grid.editShowMode, "\u6682\u672A\u652F\u6301"));
44
+ throw new RuntimeError(ibiz.i18n.t("control.common.noSupportItem", {
45
+ name: ibiz.config.grid.editShowMode
46
+ }));
45
47
  }
46
48
  };
47
49
  const {
@@ -108,7 +108,9 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
108
108
  if (row && row.showRowEdit !== true) {
109
109
  await c.switchRowEdit(row, true);
110
110
  } else {
111
- throw new RuntimeError("\u627E\u4E0D\u5230".concat(data.id, "\u7684\u884C\u6570\u636E\u5BF9\u8C61"));
111
+ throw new RuntimeError(ibiz.i18n.t("control.treeGridEx.noFoundMessage", {
112
+ id: data.id
113
+ }));
112
114
  }
113
115
  } else {
114
116
  c.onTreeNodeClick(nodeData, event);
@@ -151,7 +153,9 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
151
153
  const onExpandChange = (row, expanded) => {
152
154
  const nodeData = c.getNodeData(row._uuid);
153
155
  if (!nodeData) {
154
- throw new RuntimeError("\u6CA1\u6709\u627E\u5230_uuid\u4E3A".concat(row._uuid, "\u7684\u8282\u70B9"));
156
+ throw new RuntimeError(ibiz.i18n.t("control.common.noFoundNode", {
157
+ id: row._uuid
158
+ }));
155
159
  }
156
160
  c.onExpandChange(nodeData, expanded);
157
161
  };
@@ -11,7 +11,7 @@ function useRowEditPopover(tableRef, c) {
11
11
  const popStyle = reactive({});
12
12
  const findTrEl = (row) => {
13
13
  if (!tableRef.value) {
14
- throw new RuntimeError("\u627E\u4E0D\u5230\u8868\u683C\u7EC4\u4EF6\u5F15\u7528");
14
+ throw new RuntimeError(ibiz.i18n.t("control.common.citeErrMessage"));
15
15
  }
16
16
  const tableEl = tableRef.value.$el;
17
17
  let selector = ".el-table__row";
@@ -20,7 +20,7 @@ function useRowEditPopover(tableRef, c) {
20
20
  }
21
21
  const trEl = tableEl.querySelector(selector);
22
22
  if (!trEl) {
23
- throw new RuntimeError("\u627E\u4E0D\u5230\u5BF9\u5E94\u7684\u8868\u683C\u884Cdom\u5143\u7D20");
23
+ throw new RuntimeError(ibiz.i18n.t("control.common.noDomErrMessage"));
24
24
  }
25
25
  return trEl;
26
26
  };
@@ -29,7 +29,7 @@ function useRowEditPopover(tableRef, c) {
29
29
  const trEl = findTrEl(row);
30
30
  showPlaceholder.value = ((_a = trEl.parentNode) == null ? void 0 : _a.lastElementChild) === trEl;
31
31
  if (!popInstance) {
32
- throw new RuntimeError("\u62FF\u4E0D\u5230pop\u7EC4\u4EF6\u7684\u5B9E\u4F8B");
32
+ throw new RuntimeError(ibiz.i18n.t("control.common.noPopErrMessage"));
33
33
  }
34
34
  const popEl = popInstance.$el;
35
35
  const {
@@ -71,19 +71,19 @@ const WizardPanelControl = /* @__PURE__ */ defineComponent({
71
71
  this.c.onPrevClick();
72
72
  }
73
73
  }, {
74
- default: () => [dewizard.prevCaption ? dewizard.prevCaption : "\u540E\u9000"]
74
+ default: () => [dewizard.prevCaption ? dewizard.prevCaption : ibiz.i18n.t("control.common.retreat")]
75
75
  }), ((_c = buttonsState["".concat(activeFormTag, "@NEXT")]) == null ? void 0 : _c.visible) && createVNode(resolveComponent("el-button"), {
76
76
  "onClick": () => {
77
77
  this.c.onNextClick();
78
78
  }
79
79
  }, {
80
- default: () => [dewizard.nextCaption ? dewizard.nextCaption : "\u524D\u8FDB"]
80
+ default: () => [dewizard.nextCaption ? dewizard.nextCaption : ibiz.i18n.t("control.common.forward")]
81
81
  }), ((_d = buttonsState["".concat(activeFormTag, "@FINISH")]) == null ? void 0 : _d.visible) && createVNode(resolveComponent("el-button"), {
82
82
  "onClick": () => {
83
83
  this.c.onFinishClick();
84
84
  }
85
85
  }, {
86
- default: () => [dewizard.finishCaption ? dewizard.finishCaption : "\u5B8C\u6210"]
86
+ default: () => [dewizard.finishCaption ? dewizard.finishCaption : ibiz.i18n.t("app.complete")]
87
87
  })]);
88
88
  const {
89
89
  dewizardSteps
@@ -300,7 +300,8 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
300
300
  "onFocus": this.onFocus,
301
301
  "onBlur": this.onBlur,
302
302
  "onKeyup": this.handleKeyUp,
303
- "fit-input-width": isEllipsis
303
+ "fit-input-width": isEllipsis,
304
+ "remote-show-suffix": this.c.model.showTrigger
304
305
  }, this.$attrs), _isSlot(_slot = this.items.map((item) => {
305
306
  return createVNode(resolveComponent("el-option"), {
306
307
  "title": isEllipsis ? item[this.c.textName] : "",
@@ -1,4 +1,6 @@
1
1
  import { EditorController, getDeACMode } from '@ibiz-template/runtime';
2
+ import { Boot } from '@wangeditor/editor';
3
+ import { AIMenu } from './wang-editor/ai/ai-modules.mjs';
2
4
 
3
5
  "use strict";
4
6
  var __defProp = Object.defineProperty;
@@ -83,6 +85,15 @@ class HtmlEditorController extends EditorController {
83
85
  }
84
86
  }
85
87
  }
88
+ if (!window.aichartRegister) {
89
+ Boot.registerMenu({
90
+ key: "aichart",
91
+ factory() {
92
+ return new AIMenu();
93
+ }
94
+ });
95
+ window.aichartRegister = true;
96
+ }
86
97
  }
87
98
  }
88
99
 
@@ -1,6 +1,7 @@
1
1
  import { IButtonMenu, IDomEditor } from '@wangeditor/editor';
2
2
  export declare class AIMenu implements IButtonMenu {
3
3
  title: string;
4
+ iconSvg: string;
4
5
  tag: string;
5
6
  isActive(editor: IDomEditor): boolean;
6
7
  getValue(editor: IDomEditor): string | boolean;
@@ -7,13 +7,13 @@ var __publicField = (obj, key, value) => {
7
7
  };
8
8
  class AIMenu {
9
9
  constructor() {
10
- // TS 语法
11
10
  __publicField(this, "title", "AI");
11
+ __publicField(this, "iconSvg", '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <text x="0" y="13" font-size="16" fill="black">AI</text></svg>');
12
12
  __publicField(this, "tag", "button");
13
13
  }
14
14
  // 菜单是否需要激活(如选中加粗文本,“加粗”菜单会激活),用不到则返回 false
15
15
  isActive(editor) {
16
- return true;
16
+ return false;
17
17
  }
18
18
  // 获取菜单执行时的 value ,用不到则返回空 字符串或 false
19
19
  getValue(editor) {