@ibiz-template/vue3-components 0.7.10 → 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 (121) 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-my1qbty8.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/wang-editor/ai/ai-modules.mjs +1 -1
  55. package/es/editor/html/wang-editor/wang-editor.mjs +11 -5
  56. package/es/index.mjs +1 -0
  57. package/es/locale/en/index.d.ts +109 -1
  58. package/es/locale/en/index.mjs +123 -15
  59. package/es/locale/zh-CN/index.d.ts +109 -1
  60. package/es/locale/zh-CN/index.mjs +113 -5
  61. package/es/panel-component/view-msg-pos/view-msg-pos.mjs +4 -1
  62. package/es/util/index.d.ts +1 -0
  63. package/es/util/index.mjs +1 -0
  64. package/es/util/render-util/render-util.d.ts +48 -0
  65. package/es/util/render-util/render-util.mjs +60 -0
  66. package/es/web-app/guard/auth-guard/auth-guard.mjs +6 -4
  67. package/es/web-app/main.mjs +2 -0
  68. package/lib/common/data-import2/data-import2.cjs +1 -1
  69. package/lib/common/doing-notice/doing-notice.cjs +6 -4
  70. package/lib/common/map-chart/map-chart.util.cjs +4 -1
  71. package/lib/common/view-message/view-message.cjs +52 -22
  72. package/lib/common/view-message/view-message.css +1 -1
  73. package/lib/control/app-menu/app-menu.cjs +6 -2
  74. package/lib/control/calendar/calendar.cjs +1 -1
  75. package/lib/control/chart/chart.cjs +1 -1
  76. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +1 -1
  77. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +1 -1
  78. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +3 -1
  79. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +13 -10
  80. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +1 -1
  81. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +1 -1
  82. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +3 -1
  83. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +16 -10
  84. package/lib/control/gantt/gantt.cjs +14 -3
  85. package/lib/control/grid/grid/grid.cjs +3 -1
  86. package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +3 -1
  87. package/lib/control/grid/row-edit-popover/row-edit-popover.cjs +8 -4
  88. package/lib/control/grid/row-edit-popover/use-row-edit-popover.cjs +3 -3
  89. package/lib/control/kanban/kanban.cjs +16 -8
  90. package/lib/control/report-panel/report-detail/user2-report-panel/user2-report-panel.cjs +1 -1
  91. package/lib/control/report-panel/report-panel.cjs +1 -1
  92. package/lib/control/search-bar/filter-tree/filter-tree.cjs +7 -5
  93. package/lib/control/search-bar/search-bar.cjs +2 -2
  94. package/lib/control/search-bar/search-groups/edit-group-util.cjs +10 -2
  95. package/lib/control/search-bar/search-groups/new-group-util.cjs +13 -3
  96. package/lib/control/search-bar/search-groups/search-groups.cjs +46 -37
  97. package/lib/control/toolbar/export-excel/export-excel.cjs +23 -21
  98. package/lib/control/tree/el-tree-util.cjs +4 -2
  99. package/lib/control/tree/tree.cjs +3 -1
  100. package/lib/control/tree-grid/tree-grid.cjs +3 -1
  101. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +3 -1
  102. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +6 -2
  103. package/lib/control/tree-grid-ex/use-row-edit-popover.cjs +3 -3
  104. package/lib/control/wizard-panel/wizard-panel.cjs +3 -3
  105. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
  106. package/lib/editor/html/wang-editor/ai/ai-modules.cjs +1 -1
  107. package/lib/editor/html/wang-editor/wang-editor.cjs +11 -5
  108. package/lib/index.cjs +2 -0
  109. package/lib/locale/en/index.cjs +123 -15
  110. package/lib/locale/zh-CN/index.cjs +113 -5
  111. package/lib/panel-component/view-msg-pos/view-msg-pos.cjs +4 -1
  112. package/lib/util/index.cjs +2 -0
  113. package/lib/util/render-util/render-util.cjs +62 -0
  114. package/lib/web-app/guard/auth-guard/auth-guard.cjs +6 -4
  115. package/lib/web-app/main.cjs +2 -0
  116. package/package.json +6 -6
  117. package/dist/index-GoU343c8.js +0 -4
  118. package/dist/index-dsmTOMa5.js +0 -1
  119. package/dist/index-sGpuIVYT.js +0 -1
  120. package/dist/map-chart-cmVrWpPw.js +0 -1
  121. package/dist/wang-editor-Vch7U079.js +0 -1
@@ -46,7 +46,9 @@ const GridFieldEditColumn = /* @__PURE__ */ vue.defineComponent({
46
46
  case "all":
47
47
  return allEdit.useAllEdit(props, componentRef);
48
48
  default:
49
- throw new core.RuntimeError("".concat(ibiz.config.grid.editShowMode, "\u6682\u672A\u652F\u6301"));
49
+ throw new core.RuntimeError(ibiz.i18n.t("control.common.noSupportItem", {
50
+ name: ibiz.config.grid.editShowMode
51
+ }));
50
52
  }
51
53
  };
52
54
  const {
@@ -5,6 +5,9 @@ var vue3Util = require('@ibiz-template/vue3-util');
5
5
  require('./row-edit-popover.css');
6
6
 
7
7
  "use strict";
8
+ function _isSlot(s) {
9
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
10
+ }
8
11
  const IBizRowEditPopover = /* @__PURE__ */ vue.defineComponent({
9
12
  name: "IBizRowEditPopover",
10
13
  props: {
@@ -48,16 +51,17 @@ const IBizRowEditPopover = /* @__PURE__ */ vue.defineComponent({
48
51
  };
49
52
  },
50
53
  render() {
54
+ let _slot, _slot2;
51
55
  return vue.createVNode("div", {
52
56
  "class": [this.ns.b(), this.ns.is("hidden", !this.show)]
53
57
  }, [vue.createVNode(vue.resolveComponent("el-button"), {
54
58
  "onClick": this.onConfirm
55
- }, {
56
- default: () => [vue.createTextVNode("\u786E\u5B9A")]
59
+ }, _isSlot(_slot = ibiz.i18n.t("control.common.determine")) ? _slot : {
60
+ default: () => [_slot]
57
61
  }), vue.createVNode(vue.resolveComponent("el-button"), {
58
62
  "onClick": this.onCancel
59
- }, {
60
- default: () => [vue.createTextVNode("\u53D6\u6D88")]
63
+ }, _isSlot(_slot2 = ibiz.i18n.t("app.cancel")) ? _slot2 : {
64
+ default: () => [_slot2]
61
65
  })]);
62
66
  }
63
67
  });
@@ -12,7 +12,7 @@ function useRowEditPopover(tableRef, c) {
12
12
  const popStyle = vue.reactive({});
13
13
  const findTrEl = (row) => {
14
14
  if (!tableRef.value) {
15
- throw new core.RuntimeError("\u627E\u4E0D\u5230\u8868\u683C\u7EC4\u4EF6\u5F15\u7528");
15
+ throw new core.RuntimeError(ibiz.i18n.t("control.common.citeErrMessage"));
16
16
  }
17
17
  const tableEl = tableRef.value.$el;
18
18
  let selector = ".el-table__row";
@@ -21,14 +21,14 @@ function useRowEditPopover(tableRef, c) {
21
21
  }
22
22
  const trEl = tableEl.querySelector(selector);
23
23
  if (!trEl) {
24
- throw new core.RuntimeError("\u627E\u4E0D\u5230\u5BF9\u5E94\u7684\u8868\u683C\u884Cdom\u5143\u7D20");
24
+ throw new core.RuntimeError(ibiz.i18n.t("control.common.noDomErrMessage"));
25
25
  }
26
26
  return trEl;
27
27
  };
28
28
  const showRowEditPop = async (row) => {
29
29
  const trEl = findTrEl(row);
30
30
  if (!popInstance) {
31
- throw new core.RuntimeError("\u62FF\u4E0D\u5230pop\u7EC4\u4EF6\u7684\u5B9E\u4F8B");
31
+ throw new core.RuntimeError(ibiz.i18n.t("control.common.noPopErrMessage"));
32
32
  }
33
33
  const popEl = popInstance.$el;
34
34
  const {
@@ -8,6 +8,9 @@ var core = require('@ibiz-template/core');
8
8
  require('./kanban.css');
9
9
 
10
10
  "use strict";
11
+ function _isSlot(s) {
12
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
13
+ }
11
14
  const KanbanControl = /* @__PURE__ */ vue.defineComponent({
12
15
  name: "IBizKanbanControl",
13
16
  components: {
@@ -169,6 +172,7 @@ const KanbanControl = /* @__PURE__ */ vue.defineComponent({
169
172
  }, null)]);
170
173
  };
171
174
  const renderBatchCheck = (group) => {
175
+ let _slot;
172
176
  const selectedData = group.selectedData || [];
173
177
  const checkAll = selectedData.length === group.children.length;
174
178
  const isIndeterminate = selectedData.length > 0 && selectedData.length < group.children.length;
@@ -178,11 +182,14 @@ const KanbanControl = /* @__PURE__ */ vue.defineComponent({
178
182
  "model-value": checkAll,
179
183
  "indeterminate": isIndeterminate,
180
184
  "onChange": () => handleCheckAllGroup(group, checkAll)
181
- }, {
182
- default: () => [vue.createTextVNode("\u5168\u9009")]
185
+ }, _isSlot(_slot = ibiz.i18n.t("control.kanban.selectAll")) ? _slot : {
186
+ default: () => [_slot]
183
187
  }), vue.createVNode("span", {
184
- "class": ns.be("batch", "info")
185
- }, [vue.createTextVNode("\u5DF2\u9009\u62E9"), vue.createVNode("span", null, [selectedData.length]), vue.createTextVNode("\u6761\u6570\u636E")])]);
188
+ "class": ns.be("batch", "info"),
189
+ "innerHTML": ibiz.i18n.t("control.kanban.selectedDataCount", {
190
+ length: selectedData.length
191
+ })
192
+ }, null)]);
186
193
  };
187
194
  const renderBatchContainer = (group) => {
188
195
  if (batchKey.value !== group.key) {
@@ -267,14 +274,15 @@ const KanbanControl = /* @__PURE__ */ vue.defineComponent({
267
274
  const renderGroupToolbar = (group) => {
268
275
  const showActionBar = c.model.groupUIActionGroup && group.groupActionGroupState || batchToolbarModel;
269
276
  if (batchKey.value === group.key) {
277
+ let _slot2;
270
278
  return vue.createVNode("span", {
271
279
  "class": ns.be("group", "header-right"),
272
280
  "onClick": (event) => stopPropagation(event)
273
281
  }, [vue.createVNode(vue.resolveComponent("el-button"), {
274
282
  "text": true,
275
283
  "onClick": () => c.closeBatch()
276
- }, {
277
- default: () => [vue.createTextVNode("\u5B8C\u6210")]
284
+ }, _isSlot(_slot2 = ibiz.i18n.t("app.complete")) ? _slot2 : {
285
+ default: () => [_slot2]
278
286
  })]);
279
287
  }
280
288
  return vue.createVNode("span", {
@@ -290,7 +298,7 @@ const KanbanControl = /* @__PURE__ */ vue.defineComponent({
290
298
  }, {
291
299
  default: () => [vue.createVNode("ion-icon", {
292
300
  "name": "add-outline",
293
- "title": "\u65B0\u5EFA"
301
+ "title": ibiz.i18n.t("control.kanban.newPrompt")
294
302
  }, null)]
295
303
  }), showActionBar && vue.createVNode(vue.resolveComponent("el-dropdown"), {
296
304
  "class": ns.be("group", "header-actions"),
@@ -314,7 +322,7 @@ const KanbanControl = /* @__PURE__ */ vue.defineComponent({
314
322
  }, {
315
323
  default: () => [vue.createVNode("ion-icon", {
316
324
  "name": "checkmark-sharp"
317
- }, null), vue.createTextVNode("\u6279\u91CF\u64CD\u4F5C")]
325
+ }, null), ibiz.i18n.t("control.kanban.natchOperation")]
318
326
  })])
319
327
  })]);
320
328
  };
@@ -59,7 +59,7 @@ const User2ReportPanel = /* @__PURE__ */ vue.defineComponent({
59
59
  }
60
60
  return vue.createVNode("div", {
61
61
  "class": this.ns.e("empty")
62
- }, [vue.createTextVNode("\u6682\u65E0\u6570\u636E")]);
62
+ }, [ibiz.i18n.t("control.common.currentNoData")]);
63
63
  }
64
64
  });
65
65
 
@@ -49,7 +49,7 @@ const ReportPanelControl = /* @__PURE__ */ vue.defineComponent({
49
49
  "controller": c
50
50
  }, null);
51
51
  default:
52
- return vue.createVNode("div", null, [vue.createTextVNode("\u6682\u672A\u5B9E\u73B0")]);
52
+ return vue.createVNode("div", null, [ibiz.i18n.t("control.reportPanel.unrealized")]);
53
53
  }
54
54
  };
55
55
  return {
@@ -358,6 +358,7 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
358
358
  })])]);
359
359
  };
360
360
  renderFilterItems = (node) => {
361
+ let _slot3;
361
362
  const itemsC = findFilterController(node);
362
363
  if (node.simple) {
363
364
  let _slot2;
@@ -396,8 +397,8 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
396
397
  "onClick": () => {
397
398
  addItem(node);
398
399
  }
399
- }, {
400
- default: () => [vue.createTextVNode("\u6DFB\u52A0\u9879")]
400
+ }, _isSlot(_slot3 = ibiz.i18n.t("control.searchBar.filterTree.addItem")) ? _slot3 : {
401
+ default: () => [_slot3]
401
402
  })]), vue.createVNode("div", {
402
403
  "class": ns.be("group", "list")
403
404
  }, [node.children.length > 0 && node.children.map((child, index) => {
@@ -434,6 +435,7 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
434
435
  };
435
436
  },
436
437
  render() {
438
+ let _slot4;
437
439
  return vue.createVNode("div", {
438
440
  "class": [this.ns.b()]
439
441
  }, [this.UiFilterNodes.length > 0 && this.UiFilterNodes.map((node) => {
@@ -448,13 +450,13 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
448
450
  this.onConfirm();
449
451
  }
450
452
  }, {
451
- default: () => [this.isInSearchBar ? "\u641C\u7D22" : "\u786E\u5B9A"]
453
+ default: () => [this.isInSearchBar ? ibiz.i18n.t("control.searchBar.filterTree.search") : ibiz.i18n.t("control.common.determine")]
452
454
  }), vue.createVNode(vue.resolveComponent("el-button"), {
453
455
  "onClick": () => {
454
456
  this.onCancel();
455
457
  }
456
- }, {
457
- default: () => [vue.createTextVNode("\u91CD\u7F6E")]
458
+ }, _isSlot(_slot4 = ibiz.i18n.t("control.searchBar.filterTree.reset")) ? _slot4 : {
459
+ default: () => [_slot4]
458
460
  })])]);
459
461
  }
460
462
  });
@@ -138,7 +138,7 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
138
138
  }, [groupItem.caption]);
139
139
  })])), this.c.model.enableGroup && this.c.isBackendSearchGroup && vue.createVNode(vue.resolveComponent("el-button"), {
140
140
  "class": this.ns.b("save"),
141
- "title": "\u4FDD\u5B58\u5206\u7EC4",
141
+ "title": ibiz.i18n.t("control.searchBar.saveGroup"),
142
142
  "onClick": this.handleSave
143
143
  }, {
144
144
  default: () => [vue.createVNode("ion-icon", {
@@ -162,7 +162,7 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
162
162
  }), this.c.enableFilter && vue.createVNode(vue.resolveComponent("el-button"), {
163
163
  "ref": "filterButtonRef",
164
164
  "type": "primary",
165
- "title": "\u8FC7\u6EE4",
165
+ "title": ibiz.i18n.t("control.searchBar.filter"),
166
166
  "class": this.ns.b("filter"),
167
167
  "onClick": () => this.triggerFilter()
168
168
  }, {
@@ -10,7 +10,13 @@ function useEditGroup(c) {
10
10
  });
11
11
  const editFormRef = vue.ref();
12
12
  const editFormRules = vue.reactive({
13
- caption: [{ required: true, message: "\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A", trigger: "blur" }]
13
+ caption: [
14
+ {
15
+ required: true,
16
+ message: ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),
17
+ trigger: "blur"
18
+ }
19
+ ]
14
20
  });
15
21
  const handleEditFormSubmit = async () => {
16
22
  if (editFormRef.value) {
@@ -30,7 +36,9 @@ function useEditGroup(c) {
30
36
  }
31
37
  }
32
38
  }
33
- ibiz.message.success("\u66F4\u65B0\u6210\u529F\uFF01");
39
+ ibiz.message.success(
40
+ "".concat(ibiz.i18n.t("control.common.updateSuccess"), "\uFF01")
41
+ );
34
42
  editDialogVisible.value = false;
35
43
  }
36
44
  }
@@ -10,7 +10,13 @@ function useNewGroup(c) {
10
10
  });
11
11
  const newFormRef = vue.ref();
12
12
  const newFormRules = vue.reactive({
13
- caption: [{ required: true, message: "\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A", trigger: "blur" }]
13
+ caption: [
14
+ {
15
+ required: true,
16
+ message: ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),
17
+ trigger: "blur"
18
+ }
19
+ ]
14
20
  });
15
21
  const handleNewFormCancel = () => {
16
22
  if (newFormRef.value) {
@@ -27,13 +33,17 @@ function useNewGroup(c) {
27
33
  return group.caption === newForm.caption;
28
34
  });
29
35
  if (sameCaptionGroup) {
30
- ibiz.message.error("\u5206\u7EC4\u540D\u79F0\u4E0D\u80FD\u91CD\u590D\uFF01");
36
+ ibiz.message.error(
37
+ ibiz.i18n.t("control.searchBar.searchGroups.errorMessage")
38
+ );
31
39
  return;
32
40
  }
33
41
  await c.service.create(newForm.caption);
34
42
  handleNewFormCancel();
35
43
  await c.initSearBarGroups();
36
- ibiz.message.success("\u65B0\u5EFA\u6210\u529F\uFF01");
44
+ ibiz.message.success(
45
+ "".concat(ibiz.i18n.t("control.common.newSuccCreated"), "\uFF01")
46
+ );
37
47
  }
38
48
  }
39
49
  );
@@ -10,6 +10,9 @@ var newGroupUtil = require('./new-group-util.cjs');
10
10
  var editGroupUtil = require('./edit-group-util.cjs');
11
11
 
12
12
  "use strict";
13
+ function _isSlot(s) {
14
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
15
+ }
13
16
  const SearchGroups = /* @__PURE__ */ vue.defineComponent({
14
17
  name: "IBizSearchGroups",
15
18
  components: {
@@ -59,11 +62,11 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
59
62
  const editLinkTitle = (groupItem) => {
60
63
  if (groupItem.saved) {
61
64
  if (groupItem.noEdit) {
62
- return "\u914D\u7F6E\u7684\u5206\u7EC4\u4E0D\u53EF\u7F16\u8F91";
65
+ return ibiz.i18n.t("control.searchBar.searchGroups.noEditPrompt");
63
66
  }
64
67
  return "";
65
68
  }
66
- return "\u8BF7\u5148\u4FDD\u5B58\u8BE5\u5206\u7EC4";
69
+ return ibiz.i18n.t("control.searchBar.searchGroups.savePrompt");
67
70
  };
68
71
  const onGroupClick = (item) => {
69
72
  c.handleGroupClick(item);
@@ -81,20 +84,23 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
81
84
  };
82
85
  const removeGroup = (groupItem) => {
83
86
  ElementPlus.ElMessageBox({
84
- title: "\u786E\u8BA4\u5220\u9664",
87
+ title: ibiz.i18n.t("control.searchBar.searchGroups.delTitle"),
85
88
  message: () => {
86
89
  return vue.createVNode("div", {
87
90
  "class": ns.b("remove-dialog")
88
91
  }, [vue.createVNode("div", {
89
- "class": ns.b("remove-dialog-content")
90
- }, [vue.createTextVNode("\u786E\u8BA4\u5220\u9664\u5206\u7EC4"), vue.createVNode("span", null, [groupItem.caption || groupItem.name]), vue.createTextVNode("\u5417\uFF1F")]), vue.createVNode("div", {
92
+ "class": ns.b("remove-dialog-content"),
93
+ "innerHTML": ibiz.i18n.t("control.searchBar.searchGroups.confirmDelPrompt", {
94
+ itemName: groupItem.caption || groupItem.name
95
+ })
96
+ }, null), vue.createVNode("div", {
91
97
  "class": ns.b("remove-dialog-tip")
92
- }, [vue.createTextVNode("\u5206\u7EC4\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D")])]);
98
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.unrecoverablePrompt")])]);
93
99
  },
94
100
  showCancelButton: true,
95
- confirmButtonText: "\u786E\u5B9A",
101
+ confirmButtonText: ibiz.i18n.t("control.common.determine"),
96
102
  confirmButtonClass: ns.b("remove-confirm-btn"),
97
- cancelButtonText: "\u53D6\u6D88",
103
+ cancelButtonText: ibiz.i18n.t("app.cancel"),
98
104
  cancelButtonClass: ns.b("remove-cancel-btn")
99
105
  }).then(async () => {
100
106
  if (groupItem.id) {
@@ -105,7 +111,7 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
105
111
  c.state.searchBarGroups.splice(index, 1);
106
112
  }
107
113
  }
108
- ibiz.message.success("\u5220\u9664\u6210\u529F\uFF01");
114
+ ibiz.message.success("".concat(ibiz.i18n.t("control.common.deleteSuccess"), "\uFF01"));
109
115
  await c.initSearBarGroups();
110
116
  }
111
117
  }).catch(() => {
@@ -195,7 +201,7 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
195
201
  }, {
196
202
  default: () => vue.createVNode("div", {
197
203
  "class": [this.ns.b("more"), this.ns.is("selected", this.isActiveMore)]
198
- }, [this.c.model.groupMoreText || "\u66F4\u591A", vue.createVNode("ion-icon", {
204
+ }, [this.c.model.groupMoreText || ibiz.i18n.t("app.more"), vue.createVNode("ion-icon", {
199
205
  "name": "chevron-down-outline"
200
206
  }, null)]),
201
207
  dropdown: () => vue.createVNode(vue.resolveComponent("el-dropdown-menu"), null, {
@@ -222,7 +228,7 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
222
228
  "name": "add-outline"
223
229
  }, null), vue.createVNode("span", {
224
230
  "class": this.ns.b("item-caption")
225
- }, [vue.createTextVNode("\u65B0\u5EFA\u5206\u7EC4")])]
231
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.newGroup")])]
226
232
  }), vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
227
233
  "onClick": this.manageGroup
228
234
  }, {
@@ -230,13 +236,13 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
230
236
  "name": "settings-outline"
231
237
  }, null), vue.createVNode("span", {
232
238
  "class": this.ns.b("item-caption")
233
- }, [vue.createTextVNode("\u5206\u7EC4\u7BA1\u7406")])]
239
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.groupManage")])]
234
240
  })]
235
241
  })
236
242
  }), vue.createVNode(vue.resolveComponent("el-dialog"), {
237
243
  "modelValue": this.newDialogVisible,
238
244
  "onUpdate:modelValue": ($event) => this.newDialogVisible = $event,
239
- "title": "\u65B0\u5EFA\u5206\u7EC4",
245
+ "title": ibiz.i18n.t("control.searchBar.searchGroups.newGroup"),
240
246
  "modal-class": this.ns.b("new-dialog")
241
247
  }, {
242
248
  default: () => {
@@ -247,36 +253,37 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
247
253
  "rules": this.newFormRules
248
254
  }, {
249
255
  default: () => [vue.createVNode(vue.resolveComponent("el-form-item"), {
250
- "label": "\u5206\u7EC4\u540D\u79F0",
256
+ "label": ibiz.i18n.t("control.searchBar.searchGroups.groupName"),
251
257
  "prop": "caption"
252
258
  }, {
253
259
  default: () => [vue.createVNode(vue.resolveComponent("el-input"), {
254
260
  "modelValue": this.newForm.caption,
255
261
  "onUpdate:modelValue": ($event) => this.newForm.caption = $event,
256
- "placeholder": "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0"
262
+ "placeholder": ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")
257
263
  }, null)]
258
264
  })]
259
265
  });
260
266
  },
261
267
  footer: () => {
268
+ let _slot, _slot2;
262
269
  return vue.createVNode("div", {
263
270
  "class": this.ns.b("new-dialog-footer")
264
271
  }, [vue.createVNode(vue.resolveComponent("el-button"), {
265
272
  "class": this.ns.b("cancel-btn"),
266
273
  "onClick": this.handleNewFormCancel
267
- }, {
268
- default: () => [vue.createTextVNode("\u53D6 \u6D88")]
274
+ }, _isSlot(_slot = ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel")) ? _slot : {
275
+ default: () => [_slot]
269
276
  }), vue.createVNode(vue.resolveComponent("el-button"), {
270
277
  "type": "primary",
271
278
  "onClick": this.handleNewFormSubmit
272
- }, {
273
- default: () => [vue.createTextVNode("\u786E \u5B9A")]
279
+ }, _isSlot(_slot2 = ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine")) ? _slot2 : {
280
+ default: () => [_slot2]
274
281
  })]);
275
282
  }
276
283
  }), vue.createVNode(vue.resolveComponent("el-dialog"), {
277
284
  "modelValue": this.editDialogVisible,
278
285
  "onUpdate:modelValue": ($event) => this.editDialogVisible = $event,
279
- "title": "\u7F16\u8F91\u5206\u7EC4",
286
+ "title": ibiz.i18n.t("control.searchBar.searchGroups.editGroup"),
280
287
  "modal-class": this.ns.b("edit-dialog")
281
288
  }, {
282
289
  default: () => {
@@ -287,36 +294,37 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
287
294
  "rules": this.editFormRules
288
295
  }, {
289
296
  default: () => [vue.createVNode(vue.resolveComponent("el-form-item"), {
290
- "label": "\u5206\u7EC4\u540D\u79F0",
297
+ "label": ibiz.i18n.t("control.searchBar.searchGroups.groupName"),
291
298
  "prop": "caption"
292
299
  }, {
293
300
  default: () => [vue.createVNode(vue.resolveComponent("el-input"), {
294
301
  "modelValue": this.editForm.caption,
295
302
  "onUpdate:modelValue": ($event) => this.editForm.caption = $event,
296
- "placeholder": "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D\u79F0"
303
+ "placeholder": ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")
297
304
  }, null)]
298
305
  })]
299
306
  });
300
307
  },
301
308
  footer: () => {
309
+ let _slot3, _slot4;
302
310
  return vue.createVNode("div", {
303
311
  "class": this.ns.b("edit-dialog-footer")
304
312
  }, [vue.createVNode(vue.resolveComponent("el-button"), {
305
313
  "class": this.ns.b("cancel-btn"),
306
314
  "onClick": this.handleEditFormCancel
307
- }, {
308
- default: () => [vue.createTextVNode("\u53D6 \u6D88")]
315
+ }, _isSlot(_slot3 = ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel")) ? _slot3 : {
316
+ default: () => [_slot3]
309
317
  }), vue.createVNode(vue.resolveComponent("el-button"), {
310
318
  "type": "primary",
311
319
  "onClick": this.handleEditFormSubmit
312
- }, {
313
- default: () => [vue.createTextVNode("\u786E \u5B9A")]
320
+ }, _isSlot(_slot4 = ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine")) ? _slot4 : {
321
+ default: () => [_slot4]
314
322
  })]);
315
323
  }
316
324
  }), vue.createVNode(vue.resolveComponent("el-dialog"), {
317
325
  "modelValue": this.manageDialogVisible,
318
326
  "onUpdate:modelValue": ($event) => this.manageDialogVisible = $event,
319
- "title": "\u5206\u7EC4\u7BA1\u7406",
327
+ "title": ibiz.i18n.t("control.searchBar.searchGroups.groupManage"),
320
328
  "modal-class": this.ns.b("manage-dialog")
321
329
  }, {
322
330
  default: () => [vue.createVNode("div", {
@@ -327,7 +335,7 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
327
335
  "class": this.ns.b("content-top-left")
328
336
  }, [vue.createVNode("ion-icon", {
329
337
  "name": "alert-circle-outline"
330
- }, null), vue.createTextVNode("Tips\uFF1A\u7BA1\u7406\u641C\u7D22\u680F\u7684\u5206\u7EC4")]), vue.createVNode("div", {
338
+ }, null), ibiz.i18n.t("control.searchBar.searchGroups.manageTips")]), vue.createVNode("div", {
331
339
  "class": this.ns.b("content-top-right")
332
340
  }, [vue.createVNode(vue.resolveComponent("el-button"), {
333
341
  "onClick": () => {
@@ -336,18 +344,18 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
336
344
  }, {
337
345
  default: () => [vue.createVNode("ion-icon", {
338
346
  "name": "add-outline"
339
- }, null), vue.createTextVNode("\u65B0\u5EFA\u5206\u7EC4")]
347
+ }, null), ibiz.i18n.t("control.searchBar.searchGroups.newGroup")]
340
348
  })])]), vue.createVNode("div", {
341
349
  "class": this.ns.b("content-bottom")
342
350
  }, [vue.createVNode("div", {
343
351
  "class": this.ns.b("table-header")
344
352
  }, [vue.createVNode("div", {
345
353
  "class": this.ns.b("name")
346
- }, [vue.createTextVNode("\u540D\u79F0")]), vue.createVNode("div", {
354
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.name")]), vue.createVNode("div", {
347
355
  "class": this.ns.b("show")
348
- }, [vue.createTextVNode("\u663E\u793A")]), vue.createVNode("div", {
356
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.show")]), vue.createVNode("div", {
349
357
  "class": this.ns.b("action")
350
- }, [vue.createTextVNode("\u64CD\u4F5C")])]), vue.createVNode(draggable, {
358
+ }, [ibiz.i18n.t("control.searchBar.searchGroups.operate")])]), vue.createVNode(draggable, {
351
359
  "class": this.ns.b("table-body"),
352
360
  "modelValue": this.c.state.searchBarGroups,
353
361
  "onUpdate:modelValue": ($event) => this.c.state.searchBarGroups = $event,
@@ -362,6 +370,7 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
362
370
  item: ({
363
371
  element: groupItem
364
372
  }) => {
373
+ let _slot5, _slot6;
365
374
  return vue.createVNode("div", {
366
375
  "class": this.ns.b("table-row")
367
376
  }, [vue.createVNode("div", {
@@ -378,15 +387,15 @@ const SearchGroups = /* @__PURE__ */ vue.defineComponent({
378
387
  "disabled": !groupItem.saved || groupItem.noEdit,
379
388
  "title": this.editLinkTitle(groupItem),
380
389
  "onClick": () => this.editGroup(groupItem)
381
- }, {
382
- default: () => [vue.createTextVNode("\u7F16\u8F91")]
390
+ }, _isSlot(_slot5 = ibiz.i18n.t("app.edit")) ? _slot5 : {
391
+ default: () => [_slot5]
383
392
  }), vue.createVNode(vue.resolveComponent("el-link"), {
384
393
  "type": "danger",
385
394
  "disabled": !groupItem.saved,
386
- "title": !groupItem.saved ? "\u8BF7\u5148\u4FDD\u5B58\u8BE5\u5206\u7EC4" : "",
395
+ "title": !groupItem.saved ? ibiz.i18n.t("control.searchBar.searchGroups.savePrompt") : "",
387
396
  "onClick": () => this.removeGroup(groupItem)
388
- }, {
389
- default: () => [vue.createTextVNode("\u5220\u9664")]
397
+ }, _isSlot(_slot6 = ibiz.i18n.t("app.delete")) ? _slot6 : {
398
+ default: () => [_slot6]
390
399
  })])]);
391
400
  }
392
401
  })])])]
@@ -72,21 +72,22 @@ const IBizExportExcel = /* @__PURE__ */ vue.defineComponent({
72
72
  });
73
73
  },
74
74
  default: () => {
75
+ let _slot2, _slot3, _slot4, _slot5;
75
76
  return [vue.createVNode(vue.resolveComponent("el-menu-item"), {
76
77
  "class": this.ns.b("menu-item"),
77
78
  "onClick": (e) => this.onCommand("maxRowCount", e)
78
- }, {
79
- default: () => [vue.createTextVNode("\u5BFC\u51FA\u5168\u90E8(\u6700\u5927\u5BFC\u51FA1000\u884C)")]
79
+ }, _isSlot(_slot2 = ibiz.i18n.t("control.toolbar.exportExcel.exportAll")) ? _slot2 : {
80
+ default: () => [_slot2]
80
81
  }), vue.createVNode(vue.resolveComponent("el-menu-item"), {
81
82
  "class": this.ns.b("menu-item"),
82
83
  "onClick": (e) => this.onCommand("activatedPage", e)
83
- }, {
84
- default: () => [vue.createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9875")]
84
+ }, _isSlot(_slot3 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage")) ? _slot3 : {
85
+ default: () => [_slot3]
85
86
  }), vue.createVNode(vue.resolveComponent("el-menu-item"), {
86
87
  "class": this.ns.b("menu-item"),
87
88
  "onClick": (e) => this.onCommand("selectedRows", e)
88
- }, {
89
- default: () => [vue.createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9009\u4E2D")]
89
+ }, _isSlot(_slot4 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect")) ? _slot4 : {
90
+ default: () => [_slot4]
90
91
  }), vue.createVNode(vue.resolveComponent("el-menu-item"), {
91
92
  "class": [this.ns.b("menu-item"), this.ns.e("custom")]
92
93
  }, {
@@ -121,11 +122,11 @@ const IBizExportExcel = /* @__PURE__ */ vue.defineComponent({
121
122
  "onClick": (event) => {
122
123
  event.stopPropagation();
123
124
  }
124
- }, [vue.createTextVNode("\u9875")]), vue.createVNode(vue.resolveComponent("el-button"), {
125
+ }, [ibiz.i18n.t("control.toolbar.exportExcel.page")]), vue.createVNode(vue.resolveComponent("el-button"), {
125
126
  "onClick": (e) => this.onCommand("customPage", e),
126
127
  "size": "small"
127
- }, {
128
- default: () => [vue.createTextVNode("\u5BFC\u51FA")]
128
+ }, _isSlot(_slot5 = ibiz.i18n.t("control.toolbar.exportExcel.export")) ? _slot5 : {
129
+ default: () => [_slot5]
129
130
  })]
130
131
  })];
131
132
  }
@@ -136,29 +137,30 @@ const IBizExportExcel = /* @__PURE__ */ vue.defineComponent({
136
137
  "trigger": "click"
137
138
  }, {
138
139
  default: () => {
139
- let _slot2;
140
+ let _slot6;
140
141
  return vue.createVNode(vue.resolveComponent("el-button"), {
141
142
  "title": this.item.tooltip,
142
143
  "size": this.$props.size,
143
144
  "class": this.ns.e("button")
144
- }, _isSlot(_slot2 = this.btnContent(this.item)) ? _slot2 : {
145
- default: () => [_slot2]
145
+ }, _isSlot(_slot6 = this.btnContent(this.item)) ? _slot6 : {
146
+ default: () => [_slot6]
146
147
  });
147
148
  },
148
149
  dropdown: () => {
150
+ let _slot7, _slot8, _slot9, _slot10;
149
151
  return vue.createVNode(vue.resolveComponent("el-dropdown-menu"), null, {
150
152
  default: () => [vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
151
153
  "command": "maxRowCount"
152
- }, {
153
- default: () => [vue.createTextVNode("\u5BFC\u51FA\u5168\u90E8(\u6700\u5927\u5BFC\u51FA1000\u884C)")]
154
+ }, _isSlot(_slot7 = ibiz.i18n.t("control.toolbar.exportExcel.exportAll")) ? _slot7 : {
155
+ default: () => [_slot7]
154
156
  }), vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
155
157
  "command": "activatedPage"
156
- }, {
157
- default: () => [vue.createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9875")]
158
+ }, _isSlot(_slot8 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage")) ? _slot8 : {
159
+ default: () => [_slot8]
158
160
  }), vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
159
161
  "command": "selectedRows"
160
- }, {
161
- default: () => [vue.createTextVNode("\u5BFC\u51FA\u5F53\u524D\u9009\u4E2D")]
162
+ }, _isSlot(_slot9 = ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect")) ? _slot9 : {
163
+ default: () => [_slot9]
162
164
  }), vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
163
165
  "class": this.ns.e("custom"),
164
166
  "command": ""
@@ -194,11 +196,11 @@ const IBizExportExcel = /* @__PURE__ */ vue.defineComponent({
194
196
  "onClick": (event) => {
195
197
  event.stopPropagation();
196
198
  }
197
- }, [vue.createTextVNode("\u9875")]), vue.createVNode(vue.resolveComponent("el-button"), {
199
+ }, [ibiz.i18n.t("control.toolbar.exportExcel.page")]), vue.createVNode(vue.resolveComponent("el-button"), {
198
200
  "onClick": (e) => this.onCommand("customPage", e),
199
201
  "size": "small"
200
- }, {
201
- default: () => [vue.createTextVNode("\u5BFC\u51FA")]
202
+ }, _isSlot(_slot10 = ibiz.i18n.t("control.toolbar.exportExcel.export")) ? _slot10 : {
203
+ default: () => [_slot10]
202
204
  })]
203
205
  })]
204
206
  });