@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
|
@@ -83,23 +83,25 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
83
|
deep: true
|
|
84
84
|
});
|
|
85
85
|
const renderRemoveBtn = (index) => {
|
|
86
|
+
let _slot2;
|
|
86
87
|
if (!props.controller.enableDelete) {
|
|
87
88
|
return null;
|
|
88
89
|
}
|
|
89
90
|
if (ibiz.config.form.mdCtrlConfirmBeforeRemove) {
|
|
90
91
|
return vue.createVNode(vue.resolveComponent("el-popconfirm"), {
|
|
91
|
-
"title": "
|
|
92
|
-
"confirm-button-text": "
|
|
93
|
-
"cancel-button-text": "
|
|
92
|
+
"title": ibiz.i18n.t("control.form.repeaterGrid.promptInformation"),
|
|
93
|
+
"confirm-button-text": ibiz.i18n.t("app.confirm"),
|
|
94
|
+
"cancel-button-text": ibiz.i18n.t("app.cancel"),
|
|
94
95
|
"onConfirm": () => props.controller.remove(index)
|
|
95
96
|
}, {
|
|
96
97
|
reference: () => {
|
|
98
|
+
let _slot;
|
|
97
99
|
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
98
100
|
"text": true,
|
|
99
101
|
"type": "danger",
|
|
100
102
|
"class": [ns.be("index", "remove")]
|
|
101
|
-
}, {
|
|
102
|
-
default: () => [
|
|
103
|
+
}, _isSlot(_slot = ibiz.i18n.t("app.delete")) ? _slot : {
|
|
104
|
+
default: () => [_slot]
|
|
103
105
|
});
|
|
104
106
|
}
|
|
105
107
|
});
|
|
@@ -109,8 +111,8 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
111
|
"type": "danger",
|
|
110
112
|
"class": [ns.be("index", "remove")],
|
|
111
113
|
"onClick": () => props.controller.remove(index)
|
|
112
|
-
}, {
|
|
113
|
-
default: () => [
|
|
114
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.delete")) ? _slot2 : {
|
|
115
|
+
default: () => [_slot2]
|
|
114
116
|
});
|
|
115
117
|
};
|
|
116
118
|
return {
|
|
@@ -121,6 +123,7 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
121
123
|
};
|
|
122
124
|
},
|
|
123
125
|
render() {
|
|
126
|
+
let _slot3;
|
|
124
127
|
return vue.createVNode("div", {
|
|
125
128
|
"class": this.ns.b()
|
|
126
129
|
}, [this.controller.enableCreate && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
@@ -128,8 +131,8 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
131
|
"onClick": () => {
|
|
129
132
|
this.controller.create();
|
|
130
133
|
}
|
|
131
|
-
}, {
|
|
132
|
-
default: () => [
|
|
134
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("app.add")) ? _slot3 : {
|
|
135
|
+
default: () => [_slot3]
|
|
133
136
|
}), vue.createVNode(vue.resolveComponent("el-table"), {
|
|
134
137
|
"class": this.ns.e("table"),
|
|
135
138
|
"show-header": true,
|
|
@@ -174,7 +177,7 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
174
177
|
} = opts;
|
|
175
178
|
const formC = vue.toRaw(this.formControllers[$index]);
|
|
176
179
|
if (!formC || !formC.state.isLoaded) {
|
|
177
|
-
return vue.createVNode("div", null, [
|
|
180
|
+
return vue.createVNode("div", null, [ibiz.i18n.t("control.form.repeaterGrid.absentOrLoad")]);
|
|
178
181
|
}
|
|
179
182
|
const formItemC = formC.formItems.find((x) => x.name === item.id);
|
|
180
183
|
let editor = null;
|
|
@@ -46,7 +46,7 @@ const RepeaterSingleForm = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
},
|
|
47
47
|
render() {
|
|
48
48
|
if (!this.controller.repeatedForm) {
|
|
49
|
-
throw new core.RuntimeError("
|
|
49
|
+
throw new core.RuntimeError(ibiz.i18n.t("control.form.repeaterSingleForm.errorMessage"));
|
|
50
50
|
}
|
|
51
51
|
return vue.createVNode(vue.resolveComponent("iBizControlShell"), {
|
|
52
52
|
"class": this.ns.b(),
|
|
@@ -61,7 +61,7 @@ const FormMDCtrl = /* @__PURE__ */ vue.defineComponent({
|
|
|
61
61
|
}, null);
|
|
62
62
|
break;
|
|
63
63
|
default:
|
|
64
|
-
vue.createVNode("div", null, [
|
|
64
|
+
vue.createVNode("div", null, [ibiz.i18n.t("app.noSupport")]);
|
|
65
65
|
break;
|
|
66
66
|
}
|
|
67
67
|
return vue.createVNode("div", {
|
|
@@ -31,7 +31,9 @@ class FormMDCtrlProvider {
|
|
|
31
31
|
default:
|
|
32
32
|
throw new core.ModelError(
|
|
33
33
|
detailModel,
|
|
34
|
-
"
|
|
34
|
+
"".concat(ibiz.i18n.t("control.form.formMDctrl.errorMessage", {
|
|
35
|
+
contentType: detailModel.contentType
|
|
36
|
+
}))
|
|
35
37
|
);
|
|
36
38
|
}
|
|
37
39
|
await c.init();
|
|
@@ -5,6 +5,9 @@ var vue3Util = require('@ibiz-template/vue3-util');
|
|
|
5
5
|
require('./mdctrl-container.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 MDCtrlContainer = /* @__PURE__ */ vue.defineComponent({
|
|
9
12
|
name: "IBizMDCtrlContainer",
|
|
10
13
|
props: {
|
|
@@ -33,30 +36,33 @@ const MDCtrlContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
36
|
return props.enableCreate || props.enableDelete;
|
|
34
37
|
});
|
|
35
38
|
const renderAddBtn = () => {
|
|
39
|
+
let _slot;
|
|
36
40
|
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
37
41
|
"class": [ns.be("item-actions", "create"), ns.be("item-actions", "btn")],
|
|
38
42
|
"onClick": () => emit("addClick")
|
|
39
|
-
}, {
|
|
40
|
-
default: () => [
|
|
43
|
+
}, _isSlot(_slot = ibiz.i18n.t("app.add")) ? _slot : {
|
|
44
|
+
default: () => [_slot]
|
|
41
45
|
});
|
|
42
46
|
};
|
|
43
47
|
const renderRemoveBtn = (item, index) => {
|
|
48
|
+
let _slot3;
|
|
44
49
|
if (!props.enableDelete) {
|
|
45
50
|
return null;
|
|
46
51
|
}
|
|
47
52
|
if (ibiz.config.form.mdCtrlConfirmBeforeRemove) {
|
|
48
53
|
return vue.createVNode(vue.resolveComponent("el-popconfirm"), {
|
|
49
|
-
"title": "
|
|
50
|
-
"confirm-button-text": "
|
|
51
|
-
"cancel-button-text": "
|
|
54
|
+
"title": ibiz.i18n.t("control.form.mdCtrlContainer.promptInformation"),
|
|
55
|
+
"confirm-button-text": ibiz.i18n.t("app.confirm"),
|
|
56
|
+
"cancel-button-text": ibiz.i18n.t("app.cancel"),
|
|
52
57
|
"onConfirm": () => emit("removeClick", item, index)
|
|
53
58
|
}, {
|
|
54
59
|
reference: () => {
|
|
60
|
+
let _slot2;
|
|
55
61
|
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
56
62
|
"type": "danger",
|
|
57
63
|
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn")]
|
|
58
|
-
}, {
|
|
59
|
-
default: () => [
|
|
64
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.delete")) ? _slot2 : {
|
|
65
|
+
default: () => [_slot2]
|
|
60
66
|
});
|
|
61
67
|
}
|
|
62
68
|
});
|
|
@@ -65,8 +71,8 @@ const MDCtrlContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
65
71
|
"type": "danger",
|
|
66
72
|
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn")],
|
|
67
73
|
"onClick": () => emit("removeClick", item, index)
|
|
68
|
-
}, {
|
|
69
|
-
default: () => [
|
|
74
|
+
}, _isSlot(_slot3 = ibiz.i18n.t("app.delete")) ? _slot3 : {
|
|
75
|
+
default: () => [_slot3]
|
|
70
76
|
});
|
|
71
77
|
};
|
|
72
78
|
return {
|
|
@@ -84,7 +90,7 @@ const MDCtrlContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
84
90
|
const formComponent = this.$slots.item ? this.$slots.item({
|
|
85
91
|
data: item,
|
|
86
92
|
index
|
|
87
|
-
}) : vue.createVNode("div", null, [
|
|
93
|
+
}) : vue.createVNode("div", null, [ibiz.i18n.t("control.form.mdCtrlContainer.noSlot")]);
|
|
88
94
|
return vue.createVNode("div", {
|
|
89
95
|
"class": this.ns.b("item")
|
|
90
96
|
}, [formComponent, this.showActions && vue.createVNode("div", {
|
|
@@ -139,10 +139,19 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
139
139
|
c.onDbTreeNodeClick(nodeData);
|
|
140
140
|
};
|
|
141
141
|
const onNodeExpand = (nodeData) => {
|
|
142
|
+
c.onExpandChange(nodeData, true);
|
|
142
143
|
if (nodeData && !nodeData._children) {
|
|
143
144
|
c.refreshNodeChildren(nodeData);
|
|
144
145
|
}
|
|
145
146
|
};
|
|
147
|
+
c.evt.on("onDefaultExpand", (event) => {
|
|
148
|
+
if (ganttRef.value) {
|
|
149
|
+
ganttRef.value.refresh();
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
const onNodeCollapse = (nodeData) => {
|
|
153
|
+
c.onExpandChange(nodeData, false);
|
|
154
|
+
};
|
|
146
155
|
c.evt.on("onNewRow", (event) => {
|
|
147
156
|
if (ganttRef.value) {
|
|
148
157
|
const nodeData = event.row.data;
|
|
@@ -319,19 +328,19 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
319
328
|
"class": "detail"
|
|
320
329
|
}, [vue.createVNode("div", {
|
|
321
330
|
"class": "caption"
|
|
322
|
-
}, [
|
|
331
|
+
}, [ibiz.i18n.t("control.gantt.complete")]), vue.createVNode("div", {
|
|
323
332
|
"class": "description"
|
|
324
333
|
}, [item._finishDataItemValue])]), vue.createVNode("div", {
|
|
325
334
|
"class": "detail"
|
|
326
335
|
}, [vue.createVNode("div", {
|
|
327
336
|
"class": "caption"
|
|
328
|
-
}, [
|
|
337
|
+
}, [ibiz.i18n.t("control.gantt.total")]), vue.createVNode("div", {
|
|
329
338
|
"class": "description"
|
|
330
339
|
}, [item._totalDataItemValue])]), vue.createVNode("div", {
|
|
331
340
|
"class": "detail"
|
|
332
341
|
}, [vue.createVNode("div", {
|
|
333
342
|
"class": "caption"
|
|
334
|
-
}, [
|
|
343
|
+
}, [ibiz.i18n.t("control.gantt.deadline")]), vue.createVNode("div", {
|
|
335
344
|
"class": "description"
|
|
336
345
|
}, [dayjs(item._endDataItemValue).format("YYYY-MM-DD HH:mm:ss")])])])]);
|
|
337
346
|
};
|
|
@@ -392,6 +401,7 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
392
401
|
onNodeClick,
|
|
393
402
|
onNodeDbClick,
|
|
394
403
|
onNodeExpand,
|
|
404
|
+
onNodeCollapse,
|
|
395
405
|
renderContent,
|
|
396
406
|
onSliderMove,
|
|
397
407
|
renderNoData
|
|
@@ -419,6 +429,7 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
419
429
|
"locale": this.locale,
|
|
420
430
|
"showCheckbox": !this.c.state.singleSelect,
|
|
421
431
|
"onNodeExpand": this.onNodeExpand,
|
|
432
|
+
"onNodeCollapse": this.onNodeCollapse,
|
|
422
433
|
"onRowClick": this.onNodeClick,
|
|
423
434
|
"onRowDblClick": this.onNodeDbClick,
|
|
424
435
|
"onRowChecked": this.onCheck,
|
|
@@ -215,7 +215,9 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
215
215
|
"class": ns.b("batch-toolbar-content")
|
|
216
216
|
}, [vue.createVNode("div", {
|
|
217
217
|
"class": ns.b("batch-toolbar-text")
|
|
218
|
-
}, [
|
|
218
|
+
}, [ibiz.i18n.t("control.common.itemsSelected", {
|
|
219
|
+
length: c.state.selectedData.length
|
|
220
|
+
})]), vue.createVNode("div", {
|
|
219
221
|
"class": ns.b("batch-toolbar-separator")
|
|
220
222
|
}, [vue.createTextVNode("|")]), vue.createVNode(vue.resolveComponent("iBizToolbarControl"), {
|
|
221
223
|
"modelData": batchToolbar,
|
|
@@ -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
|
);
|