@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.
- 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-my1qbty8.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/wang-editor/ai/ai-modules.mjs +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +11 -5
- 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/wang-editor/ai/ai-modules.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +11 -5
- 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-GoU343c8.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-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(
|
|
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: () => [
|
|
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: () => [
|
|
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("
|
|
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("
|
|
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("
|
|
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: () => [
|
|
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
|
-
|
|
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: () => [
|
|
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": "
|
|
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),
|
|
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
|
-
}, [
|
|
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, [
|
|
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: () => [
|
|
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 ? "
|
|
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: () => [
|
|
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": "
|
|
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": "
|
|
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: [
|
|
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(
|
|
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: [
|
|
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(
|
|
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(
|
|
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 "
|
|
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
|
});
|