@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.
- package/dist/{chart-jfPZ04eU.js → chart-Wh3LMgZ1.js} +1 -1
- package/dist/index-0Z8KS6t6.js +1 -0
- package/dist/index-GZW20-jI.js +4 -0
- package/dist/index-OkS9bkdl.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-A4-TpWet.js +1 -0
- package/dist/wang-editor-HlmvPsb1.js +1 -0
- package/dist/{xlsx-util-Fc3O95jH.js → xlsx-util-lBpTaCO_.js} +1 -1
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/doing-notice/doing-notice.mjs +7 -5
- package/es/common/map-chart/map-chart.util.mjs +4 -1
- package/es/common/view-message/view-message.css +1 -1
- package/es/common/view-message/view-message.d.ts +848 -1
- package/es/common/view-message/view-message.mjs +52 -22
- package/es/control/app-menu/app-menu.mjs +6 -2
- package/es/control/calendar/calendar.mjs +1 -1
- package/es/control/chart/chart.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +19000 -27
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +4 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +64 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +14 -11
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +2 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.mjs +3 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +17 -11
- package/es/control/gantt/gantt.d.ts +1 -0
- package/es/control/gantt/gantt.mjs +15 -4
- package/es/control/gantt/index.d.ts +1 -0
- package/es/control/grid/grid/grid.mjs +3 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +3 -1
- package/es/control/grid/row-edit-popover/row-edit-popover.mjs +9 -5
- package/es/control/grid/row-edit-popover/use-row-edit-popover.mjs +3 -3
- package/es/control/kanban/kanban.mjs +17 -9
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.mjs +2 -2
- package/es/control/report-panel/report-panel.mjs +2 -2
- package/es/control/search-bar/filter-tree/filter-tree.mjs +7 -5
- package/es/control/search-bar/search-bar.mjs +2 -2
- package/es/control/search-bar/search-groups/edit-group-util.mjs +10 -2
- package/es/control/search-bar/search-groups/new-group-util.mjs +13 -3
- package/es/control/search-bar/search-groups/search-groups.d.ts +1 -1
- package/es/control/search-bar/search-groups/search-groups.mjs +47 -38
- package/es/control/toolbar/export-excel/export-excel.mjs +23 -21
- package/es/control/tree/el-tree-util.mjs +4 -2
- package/es/control/tree/tree.mjs +3 -1
- package/es/control/tree-grid/tree-grid.mjs +3 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +3 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +6 -2
- package/es/control/tree-grid-ex/use-row-edit-popover.mjs +3 -3
- package/es/control/wizard-panel/wizard-panel.mjs +3 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -1
- package/es/editor/html/html-editor.controller.mjs +11 -0
- package/es/editor/html/wang-editor/ai/ai-modules.d.ts +1 -0
- package/es/editor/html/wang-editor/ai/ai-modules.mjs +2 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +11 -13
- package/es/index.mjs +1 -0
- package/es/locale/en/index.d.ts +109 -1
- package/es/locale/en/index.mjs +123 -15
- package/es/locale/zh-CN/index.d.ts +109 -1
- package/es/locale/zh-CN/index.mjs +113 -5
- package/es/panel-component/view-msg-pos/view-msg-pos.mjs +4 -1
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/util/render-util/render-util.d.ts +48 -0
- package/es/util/render-util/render-util.mjs +60 -0
- package/es/web-app/guard/auth-guard/auth-guard.mjs +6 -4
- package/es/web-app/main.mjs +2 -0
- package/lib/common/data-import2/data-import2.cjs +1 -1
- package/lib/common/doing-notice/doing-notice.cjs +6 -4
- package/lib/common/map-chart/map-chart.util.cjs +4 -1
- package/lib/common/view-message/view-message.cjs +52 -22
- package/lib/common/view-message/view-message.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +6 -2
- package/lib/control/calendar/calendar.cjs +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +3 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +13 -10
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +3 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +16 -10
- package/lib/control/gantt/gantt.cjs +14 -3
- package/lib/control/grid/grid/grid.cjs +3 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +3 -1
- package/lib/control/grid/row-edit-popover/row-edit-popover.cjs +8 -4
- package/lib/control/grid/row-edit-popover/use-row-edit-popover.cjs +3 -3
- package/lib/control/kanban/kanban.cjs +16 -8
- package/lib/control/report-panel/report-detail/user2-report-panel/user2-report-panel.cjs +1 -1
- package/lib/control/report-panel/report-panel.cjs +1 -1
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +7 -5
- package/lib/control/search-bar/search-bar.cjs +2 -2
- package/lib/control/search-bar/search-groups/edit-group-util.cjs +10 -2
- package/lib/control/search-bar/search-groups/new-group-util.cjs +13 -3
- package/lib/control/search-bar/search-groups/search-groups.cjs +46 -37
- package/lib/control/toolbar/export-excel/export-excel.cjs +23 -21
- package/lib/control/tree/el-tree-util.cjs +4 -2
- package/lib/control/tree/tree.cjs +3 -1
- package/lib/control/tree-grid/tree-grid.cjs +3 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +3 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +6 -2
- package/lib/control/tree-grid-ex/use-row-edit-popover.cjs +3 -3
- package/lib/control/wizard-panel/wizard-panel.cjs +3 -3
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
- package/lib/editor/html/html-editor.controller.cjs +11 -0
- package/lib/editor/html/wang-editor/ai/ai-modules.cjs +2 -2
- package/lib/editor/html/wang-editor/wang-editor.cjs +11 -13
- package/lib/index.cjs +2 -0
- package/lib/locale/en/index.cjs +123 -15
- package/lib/locale/zh-CN/index.cjs +113 -5
- package/lib/panel-component/view-msg-pos/view-msg-pos.cjs +4 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/render-util/render-util.cjs +62 -0
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +6 -4
- package/lib/web-app/main.cjs +2 -0
- package/package.json +6 -6
- package/dist/index-GAvjatsT.js +0 -4
- package/dist/index-dsmTOMa5.js +0 -1
- package/dist/index-sGpuIVYT.js +0 -1
- package/dist/map-chart-cmVrWpPw.js +0 -1
- package/dist/wang-editor-mq8sQSDK.js +0 -1
|
@@ -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 "
|
|
65
|
+
return ibiz.i18n.t("control.searchBar.searchGroups.noEditPrompt");
|
|
63
66
|
}
|
|
64
67
|
return "";
|
|
65
68
|
}
|
|
66
|
-
return "
|
|
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: "
|
|
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
|
-
|
|
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
|
-
}, [
|
|
98
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.unrecoverablePrompt")])]);
|
|
93
99
|
},
|
|
94
100
|
showCancelButton: true,
|
|
95
|
-
confirmButtonText: "
|
|
101
|
+
confirmButtonText: ibiz.i18n.t("control.common.determine"),
|
|
96
102
|
confirmButtonClass: ns.b("remove-confirm-btn"),
|
|
97
|
-
cancelButtonText: "
|
|
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("\
|
|
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 || "
|
|
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
|
-
}, [
|
|
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
|
-
}, [
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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: () => [
|
|
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: () => [
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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: () => [
|
|
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: () => [
|
|
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": "
|
|
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),
|
|
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),
|
|
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
|
-
}, [
|
|
354
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.name")]), vue.createVNode("div", {
|
|
347
355
|
"class": this.ns.b("show")
|
|
348
|
-
}, [
|
|
356
|
+
}, [ibiz.i18n.t("control.searchBar.searchGroups.show")]), vue.createVNode("div", {
|
|
349
357
|
"class": this.ns.b("action")
|
|
350
|
-
}, [
|
|
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: () => [
|
|
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 ? "
|
|
395
|
+
"title": !groupItem.saved ? ibiz.i18n.t("control.searchBar.searchGroups.savePrompt") : "",
|
|
387
396
|
"onClick": () => this.removeGroup(groupItem)
|
|
388
|
-
}, {
|
|
389
|
-
default: () => [
|
|
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: () => [
|
|
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: () => [
|
|
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: () => [
|
|
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
|
-
}, [
|
|
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: () => [
|
|
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
|
|
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(
|
|
145
|
-
default: () => [
|
|
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: () => [
|
|
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: () => [
|
|
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: () => [
|
|
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
|
-
}, [
|
|
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: () => [
|
|
202
|
+
}, _isSlot(_slot10 = ibiz.i18n.t("control.toolbar.exportExcel.export")) ? _slot10 : {
|
|
203
|
+
default: () => [_slot10]
|
|
202
204
|
})]
|
|
203
205
|
})]
|
|
204
206
|
});
|
|
@@ -15,7 +15,7 @@ function useElTreeUtil(treeRef, c) {
|
|
|
15
15
|
const getTreeInstance = () => {
|
|
16
16
|
const elTree = treeRef.value;
|
|
17
17
|
if (!elTree) {
|
|
18
|
-
throw new core.RuntimeError("
|
|
18
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.tree.noFoundInstance"));
|
|
19
19
|
}
|
|
20
20
|
return elTree;
|
|
21
21
|
};
|
|
@@ -68,7 +68,9 @@ function formatNodeDropType(dropType) {
|
|
|
68
68
|
case "after":
|
|
69
69
|
return "next";
|
|
70
70
|
default:
|
|
71
|
-
throw new core.RuntimeError(
|
|
71
|
+
throw new core.RuntimeError(
|
|
72
|
+
ibiz.i18n.t("control.tree.noSupported", { dropType })
|
|
73
|
+
);
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
76
|
|
|
@@ -351,7 +351,9 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
351
351
|
const updateNodeExpand = (data, expanded) => {
|
|
352
352
|
const nodeData = elTreeUtil.findNodeData(data._uuid, c);
|
|
353
353
|
if (!nodeData) {
|
|
354
|
-
throw new core.RuntimeError(
|
|
354
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.common.noFoundNode", {
|
|
355
|
+
id: data._uuid
|
|
356
|
+
}));
|
|
355
357
|
}
|
|
356
358
|
c.onExpandChange(nodeData, expanded);
|
|
357
359
|
};
|
|
@@ -155,7 +155,9 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
155
155
|
"class": ns.b("batch-toolbar-content")
|
|
156
156
|
}, [vue.createVNode("div", {
|
|
157
157
|
"class": ns.b("batch-toolbar-text")
|
|
158
|
-
}, [
|
|
158
|
+
}, [ibiz.i18n.t("control.common.itemsSelected", {
|
|
159
|
+
length: c.state.selectedData.length
|
|
160
|
+
})]), vue.createVNode("div", {
|
|
159
161
|
"class": ns.b("batch-toolbar-separator")
|
|
160
162
|
}, [vue.createTextVNode("|")]), vue.createVNode(vue.resolveComponent("iBizToolbarControl"), {
|
|
161
163
|
"modelData": batchToolbar,
|
|
@@ -45,7 +45,9 @@ const TreeGridExEditColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
45
|
case "all":
|
|
46
46
|
return allEdit.useAllEdit(props, componentRef);
|
|
47
47
|
default:
|
|
48
|
-
throw new core.RuntimeError(
|
|
48
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.common.noSupportItem", {
|
|
49
|
+
name: ibiz.config.grid.editShowMode
|
|
50
|
+
}));
|
|
49
51
|
}
|
|
50
52
|
};
|
|
51
53
|
const {
|
|
@@ -110,7 +110,9 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
110
|
if (row && row.showRowEdit !== true) {
|
|
111
111
|
await c.switchRowEdit(row, true);
|
|
112
112
|
} else {
|
|
113
|
-
throw new core.RuntimeError(
|
|
113
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.treeGridEx.noFoundMessage", {
|
|
114
|
+
id: data.id
|
|
115
|
+
}));
|
|
114
116
|
}
|
|
115
117
|
} else {
|
|
116
118
|
c.onTreeNodeClick(nodeData, event);
|
|
@@ -153,7 +155,9 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
153
155
|
const onExpandChange = (row, expanded) => {
|
|
154
156
|
const nodeData = c.getNodeData(row._uuid);
|
|
155
157
|
if (!nodeData) {
|
|
156
|
-
throw new core.RuntimeError(
|
|
158
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.common.noFoundNode", {
|
|
159
|
+
id: row._uuid
|
|
160
|
+
}));
|
|
157
161
|
}
|
|
158
162
|
c.onExpandChange(nodeData, expanded);
|
|
159
163
|
};
|
|
@@ -13,7 +13,7 @@ function useRowEditPopover(tableRef, c) {
|
|
|
13
13
|
const popStyle = vue.reactive({});
|
|
14
14
|
const findTrEl = (row) => {
|
|
15
15
|
if (!tableRef.value) {
|
|
16
|
-
throw new core.RuntimeError("
|
|
16
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.common.citeErrMessage"));
|
|
17
17
|
}
|
|
18
18
|
const tableEl = tableRef.value.$el;
|
|
19
19
|
let selector = ".el-table__row";
|
|
@@ -22,7 +22,7 @@ function useRowEditPopover(tableRef, c) {
|
|
|
22
22
|
}
|
|
23
23
|
const trEl = tableEl.querySelector(selector);
|
|
24
24
|
if (!trEl) {
|
|
25
|
-
throw new core.RuntimeError("
|
|
25
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.common.noDomErrMessage"));
|
|
26
26
|
}
|
|
27
27
|
return trEl;
|
|
28
28
|
};
|
|
@@ -31,7 +31,7 @@ function useRowEditPopover(tableRef, c) {
|
|
|
31
31
|
const trEl = findTrEl(row);
|
|
32
32
|
showPlaceholder.value = ((_a = trEl.parentNode) == null ? void 0 : _a.lastElementChild) === trEl;
|
|
33
33
|
if (!popInstance) {
|
|
34
|
-
throw new core.RuntimeError("
|
|
34
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.common.noPopErrMessage"));
|
|
35
35
|
}
|
|
36
36
|
const popEl = popInstance.$el;
|
|
37
37
|
const {
|
|
@@ -73,19 +73,19 @@ const WizardPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
73
|
this.c.onPrevClick();
|
|
74
74
|
}
|
|
75
75
|
}, {
|
|
76
|
-
default: () => [dewizard.prevCaption ? dewizard.prevCaption : "
|
|
76
|
+
default: () => [dewizard.prevCaption ? dewizard.prevCaption : ibiz.i18n.t("control.common.retreat")]
|
|
77
77
|
}), ((_c = buttonsState["".concat(activeFormTag, "@NEXT")]) == null ? void 0 : _c.visible) && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
78
78
|
"onClick": () => {
|
|
79
79
|
this.c.onNextClick();
|
|
80
80
|
}
|
|
81
81
|
}, {
|
|
82
|
-
default: () => [dewizard.nextCaption ? dewizard.nextCaption : "
|
|
82
|
+
default: () => [dewizard.nextCaption ? dewizard.nextCaption : ibiz.i18n.t("control.common.forward")]
|
|
83
83
|
}), ((_d = buttonsState["".concat(activeFormTag, "@FINISH")]) == null ? void 0 : _d.visible) && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
84
84
|
"onClick": () => {
|
|
85
85
|
this.c.onFinishClick();
|
|
86
86
|
}
|
|
87
87
|
}, {
|
|
88
|
-
default: () => [dewizard.finishCaption ? dewizard.finishCaption : "
|
|
88
|
+
default: () => [dewizard.finishCaption ? dewizard.finishCaption : ibiz.i18n.t("app.complete")]
|
|
89
89
|
})]);
|
|
90
90
|
const {
|
|
91
91
|
dewizardSteps
|
|
@@ -302,7 +302,8 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
302
302
|
"onFocus": this.onFocus,
|
|
303
303
|
"onBlur": this.onBlur,
|
|
304
304
|
"onKeyup": this.handleKeyUp,
|
|
305
|
-
"fit-input-width": isEllipsis
|
|
305
|
+
"fit-input-width": isEllipsis,
|
|
306
|
+
"remote-show-suffix": this.c.model.showTrigger
|
|
306
307
|
}, this.$attrs), _isSlot(_slot = this.items.map((item) => {
|
|
307
308
|
return vue.createVNode(vue.resolveComponent("el-option"), {
|
|
308
309
|
"title": isEllipsis ? item[this.c.textName] : "",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var editor = require('@wangeditor/editor');
|
|
5
|
+
var aiModules = require('./wang-editor/ai/ai-modules.cjs');
|
|
4
6
|
|
|
5
7
|
"use strict";
|
|
6
8
|
var __defProp = Object.defineProperty;
|
|
@@ -85,6 +87,15 @@ class HtmlEditorController extends runtime.EditorController {
|
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
}
|
|
90
|
+
if (!window.aichartRegister) {
|
|
91
|
+
editor.Boot.registerMenu({
|
|
92
|
+
key: "aichart",
|
|
93
|
+
factory() {
|
|
94
|
+
return new aiModules.AIMenu();
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
window.aichartRegister = true;
|
|
98
|
+
}
|
|
88
99
|
}
|
|
89
100
|
}
|
|
90
101
|
|
|
@@ -9,13 +9,13 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
};
|
|
10
10
|
class AIMenu {
|
|
11
11
|
constructor() {
|
|
12
|
-
// TS 语法
|
|
13
12
|
__publicField(this, "title", "AI");
|
|
13
|
+
__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>');
|
|
14
14
|
__publicField(this, "tag", "button");
|
|
15
15
|
}
|
|
16
16
|
// 菜单是否需要激活(如选中加粗文本,“加粗”菜单会激活),用不到则返回 false
|
|
17
17
|
isActive(editor) {
|
|
18
|
-
return
|
|
18
|
+
return false;
|
|
19
19
|
}
|
|
20
20
|
// 获取菜单执行时的 value ,用不到则返回空 字符串或 false
|
|
21
21
|
getValue(editor) {
|
|
@@ -4,14 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var editorForVue = require('@wangeditor/editor-for-vue');
|
|
7
|
-
var editor = require('@wangeditor/editor');
|
|
8
7
|
var qxUtil = require('qx-util');
|
|
9
8
|
var ramda = require('ramda');
|
|
10
9
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
11
10
|
var core = require('@ibiz-template/core');
|
|
12
11
|
var ElementPlus = require('element-plus');
|
|
13
12
|
require('./wang-editor.css');
|
|
14
|
-
var aiModules = require('./ai/ai-modules.cjs');
|
|
15
13
|
|
|
16
14
|
"use strict";
|
|
17
15
|
const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -74,19 +72,15 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
72
|
const customParseLinkUrl = (url) => {
|
|
75
73
|
return url;
|
|
76
74
|
};
|
|
77
|
-
editor.Boot.registerMenu({
|
|
78
|
-
key: "aichart",
|
|
79
|
-
factory() {
|
|
80
|
-
return new aiModules.AIMenu();
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
75
|
const toolbarConfig = {
|
|
84
|
-
excludeKeys: ["group-video"]
|
|
85
|
-
|
|
76
|
+
excludeKeys: ["group-video"]
|
|
77
|
+
};
|
|
78
|
+
if (c.chatCompletion) {
|
|
79
|
+
toolbarConfig.insertKeys = {
|
|
86
80
|
index: 60,
|
|
87
81
|
keys: ["|", "aichart"]
|
|
88
|
-
}
|
|
89
|
-
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
90
84
|
const editorConfig = {
|
|
91
85
|
placeholder: c.placeHolder,
|
|
92
86
|
readOnly: hasEnableEdit.value ? readonlyState.value : props.readonly,
|
|
@@ -213,7 +207,11 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
|
213
207
|
},
|
|
214
208
|
action: (action, message) => {
|
|
215
209
|
if (action === "backfill") {
|
|
216
|
-
|
|
210
|
+
if (hasEnableEdit.value) {
|
|
211
|
+
valueHtml.value = message.content;
|
|
212
|
+
} else {
|
|
213
|
+
emit("change", message.content);
|
|
214
|
+
}
|
|
217
215
|
}
|
|
218
216
|
}
|
|
219
217
|
});
|
package/lib/index.cjs
CHANGED
|
@@ -122,6 +122,7 @@ var openViewUtil = require('./util/open-view-util/open-view-util.cjs');
|
|
|
122
122
|
var overlayController = require('./util/overlay-controller/overlay-controller.cjs');
|
|
123
123
|
var usePagination = require('./util/pagination/use-pagination.cjs');
|
|
124
124
|
var noticeUtil = require('./util/notice-util/notice-util.cjs');
|
|
125
|
+
var renderUtil = require('./util/render-util/render-util.cjs');
|
|
125
126
|
var authGuard = require('./web-app/guard/auth-guard/auth-guard.cjs');
|
|
126
127
|
var main = require('./web-app/main.cjs');
|
|
127
128
|
var index$17 = require('./web-app/router/index.cjs');
|
|
@@ -250,6 +251,7 @@ exports.OpenViewUtil = openViewUtil.OpenViewUtil;
|
|
|
250
251
|
exports.OverlayController = overlayController.OverlayController;
|
|
251
252
|
exports.usePagination = usePagination.usePagination;
|
|
252
253
|
exports.NoticeUtil = noticeUtil.NoticeUtil;
|
|
254
|
+
exports.RenderUtil = renderUtil.RenderUtil;
|
|
253
255
|
exports.AuthGuard = authGuard.AuthGuard;
|
|
254
256
|
exports.runApp = main.runApp;
|
|
255
257
|
exports.AppRouter = index$17.AppRouter;
|