@ibiz-template/vue3-components 0.7.41-alpha.112 → 0.7.41-alpha.114
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/{index-BLBroBhu.js → index-B3O6yu1f.js} +1 -1
- package/dist/index-BugLIX5r.js +339 -0
- package/dist/{index-C-9vEACb.js → index-qO4rCmKY.js} +1 -1
- package/dist/{index.es-Dsu1bPbQ.js → index.es-EGP1S-jJ.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-4OTQfjW9.js → wang-editor-CBp2ammw.js} +1 -1
- package/dist/{xlsx-util--TUzshNx.js → xlsx-util-NIbtpljc.js} +1 -1
- package/es/common/button-list/button-list.mjs +6 -1
- package/es/common/data-import/data-import.mjs +11 -8
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +2 -2
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +1 -2
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +2 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +48 -13
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/drtab/flow-drtab.mjs +9 -9
- package/es/control/exp-bar/render-util.mjs +2 -2
- package/es/control/medit-view-panel/medit-view-panel.mjs +1 -1
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/tree.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +1 -0
- package/es/editor/check-box-list/checkbox-list-editor.controller.mjs +11 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +9 -4
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -1
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +4 -4
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.mjs +17 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +19 -4
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +24 -7
- package/es/editor/list-box/list-box-editor.controller.mjs +11 -0
- package/es/editor/list-box/list-box-picker-editor.controller.mjs +11 -0
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -0
- package/es/editor/radio-button-list/radio-button-list.controller.mjs +11 -1
- package/es/locale/en/index.mjs +1 -0
- package/es/locale/zh-CN/index.mjs +1 -0
- package/es/panel-component/global-search/global-search.mjs +2 -1
- package/es/panel-component/nav-tabs/nav-tabs.mjs +12 -3
- package/es/panel-component/short-cut/short-cut.mjs +2 -1
- package/es/panel-component/user-message/user-message.mjs +1 -0
- package/es/util/ai-chat-util/ai-chat-util.mjs +11 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/lib/common/button-list/button-list.cjs +6 -1
- package/lib/common/data-import/data-import.cjs +11 -8
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +2 -2
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +1 -2
- package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +2 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +48 -13
- package/lib/control/drtab/flow-drtab.cjs +9 -9
- package/lib/control/exp-bar/render-util.cjs +2 -2
- package/lib/control/medit-view-panel/medit-view-panel.cjs +1 -1
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/tree.cjs +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -0
- package/lib/editor/check-box-list/checkbox-list-editor.controller.cjs +11 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +9 -4
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -1
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +4 -4
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.cjs +17 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +19 -4
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +24 -7
- package/lib/editor/list-box/list-box-editor.controller.cjs +11 -0
- package/lib/editor/list-box/list-box-picker-editor.controller.cjs +11 -0
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +7 -0
- package/lib/editor/radio-button-list/radio-button-list.controller.cjs +11 -1
- package/lib/locale/en/index.cjs +1 -0
- package/lib/locale/zh-CN/index.cjs +1 -0
- package/lib/panel-component/global-search/global-search.cjs +2 -1
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +12 -3
- package/lib/panel-component/short-cut/short-cut.cjs +2 -1
- package/lib/panel-component/user-message/user-message.cjs +1 -0
- package/lib/util/ai-chat-util/ai-chat-util.cjs +11 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/package.json +5 -5
- package/src/common/button-list/button-list.tsx +4 -1
- package/src/common/data-import/data-import.tsx +16 -9
- package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +2 -2
- package/src/control/calendar/components/custom-calendar/custom-calendar.tsx +1 -1
- package/src/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.tsx +2 -0
- package/src/control/drtab/drtab.controller.ts +54 -14
- package/src/control/drtab/drtab.tsx +1 -1
- package/src/control/drtab/flow-drtab.tsx +9 -9
- package/src/control/exp-bar/render-util.tsx +3 -3
- package/src/control/medit-view-panel/medit-view-panel.tsx +1 -1
- package/src/control/toolbar/toolbar.tsx +1 -0
- package/src/control/tree/tree.tsx +1 -1
- package/src/control/tree-grid-ex/tree-grid-ex.tsx +1 -0
- package/src/editor/check-box-list/checkbox-list-editor.controller.ts +11 -0
- package/src/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.tsx +28 -6
- package/src/editor/date-picker/ibiz-date-picker/ibiz-date-picker.tsx +1 -0
- package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +8 -5
- package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +3 -1
- package/src/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.tsx +28 -1
- package/src/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.tsx +31 -4
- package/src/editor/list-box/ibiz-list-box/ibiz-list-box.tsx +45 -9
- package/src/editor/list-box/list-box-editor.controller.ts +11 -0
- package/src/editor/list-box/list-box-picker-editor.controller.ts +11 -0
- package/src/editor/radio-button-list/ibiz-radio/ibiz-radio.tsx +13 -0
- package/src/editor/radio-button-list/radio-button-list.controller.ts +11 -0
- package/src/locale/en/index.ts +1 -0
- package/src/locale/zh-CN/index.ts +1 -0
- package/src/panel-component/global-search/global-search.tsx +1 -0
- package/src/panel-component/nav-tabs/nav-tabs.tsx +9 -0
- package/src/panel-component/short-cut/short-cut.tsx +1 -0
- package/src/panel-component/user-message/user-message.tsx +1 -0
- package/src/util/ai-chat-util/ai-chat-util.ts +13 -0
- package/dist/index-XI8ySm9i.js +0 -339
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -17,13 +17,24 @@ class ListBoxEditorController extends CodeListEditorController {
|
|
|
17
17
|
* @Date: 2023-05-24 10:55:50
|
|
18
18
|
*/
|
|
19
19
|
__publicField(this, "codeList");
|
|
20
|
+
/**
|
|
21
|
+
* @description 自动选中第一个
|
|
22
|
+
* @memberof ListBoxEditorController
|
|
23
|
+
*/
|
|
24
|
+
__publicField(this, "autoSelectFirstOption", false);
|
|
20
25
|
}
|
|
21
26
|
async onInit() {
|
|
27
|
+
var _a;
|
|
22
28
|
super.onInit();
|
|
23
29
|
if (this.model.appCodeListId) {
|
|
24
30
|
const app = await ibiz.hub.getApp(this.context.srfappid);
|
|
25
31
|
this.codeList = app.codeList.getCodeList(this.model.appCodeListId);
|
|
26
32
|
}
|
|
33
|
+
if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
|
|
34
|
+
this.autoSelectFirstOption = this.toBoolean(
|
|
35
|
+
this.editorParams.autoselectfirstoption
|
|
36
|
+
);
|
|
37
|
+
}
|
|
27
38
|
}
|
|
28
39
|
}
|
|
29
40
|
|
|
@@ -40,9 +40,20 @@ class ListBoxPickerEditorController extends EditorController {
|
|
|
40
40
|
* @type {IAcItemProvider}
|
|
41
41
|
*/
|
|
42
42
|
__publicField(this, "acItemProvider");
|
|
43
|
+
/**
|
|
44
|
+
* @description 自动选中第一个
|
|
45
|
+
* @memberof ListBoxPickerEditorController
|
|
46
|
+
*/
|
|
47
|
+
__publicField(this, "autoSelectFirstOption", false);
|
|
43
48
|
}
|
|
44
49
|
async onInit() {
|
|
50
|
+
var _a;
|
|
45
51
|
super.onInit();
|
|
52
|
+
if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
|
|
53
|
+
this.autoSelectFirstOption = this.toBoolean(
|
|
54
|
+
this.editorParams.autoselectfirstoption
|
|
55
|
+
);
|
|
56
|
+
}
|
|
46
57
|
if (this.model.editorType === "LISTBOXPICKUP") {
|
|
47
58
|
if (this.model.appDEDataSetId) {
|
|
48
59
|
this.interfaceName = this.model.appDEDataSetId;
|
|
@@ -71,9 +71,16 @@ const IBizRadio = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
useInValueChange();
|
|
72
72
|
};
|
|
73
73
|
const items = ref([]);
|
|
74
|
+
const autoSelectFirstOption = () => {
|
|
75
|
+
const item = items.value[0];
|
|
76
|
+
if (!c.autoSelectFirstOption || props.value || !item)
|
|
77
|
+
return;
|
|
78
|
+
emit("change", item.value, void 0, true);
|
|
79
|
+
};
|
|
74
80
|
watch(() => props.data, (newVal) => {
|
|
75
81
|
c.loadCodeList(newVal).then((_codeList) => {
|
|
76
82
|
items.value = _codeList;
|
|
83
|
+
autoSelectFirstOption();
|
|
77
84
|
});
|
|
78
85
|
}, {
|
|
79
86
|
immediate: true,
|
|
@@ -17,9 +17,14 @@ class RadioButtonListEditorController extends CodeListEditorController {
|
|
|
17
17
|
* @type {(number | undefined)}
|
|
18
18
|
*/
|
|
19
19
|
__publicField(this, "rowNumber");
|
|
20
|
+
/**
|
|
21
|
+
* @description 自动选中第一个
|
|
22
|
+
* @memberof RadioButtonListEditorController
|
|
23
|
+
*/
|
|
24
|
+
__publicField(this, "autoSelectFirstOption", false);
|
|
20
25
|
}
|
|
21
26
|
async onInit() {
|
|
22
|
-
var _a, _b;
|
|
27
|
+
var _a, _b, _c;
|
|
23
28
|
super.onInit();
|
|
24
29
|
if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
|
|
25
30
|
this.rowNumber = Number(this.editorParams.rowNumber);
|
|
@@ -27,6 +32,11 @@ class RadioButtonListEditorController extends CodeListEditorController {
|
|
|
27
32
|
if ((_b = this.editorParams) == null ? void 0 : _b.rownumber) {
|
|
28
33
|
this.rowNumber = Number(this.editorParams.rownumber);
|
|
29
34
|
}
|
|
35
|
+
if ((_c = this.editorParams) == null ? void 0 : _c.autoselectfirstoption) {
|
|
36
|
+
this.autoSelectFirstOption = this.toBoolean(
|
|
37
|
+
this.editorParams.autoselectfirstoption
|
|
38
|
+
);
|
|
39
|
+
}
|
|
30
40
|
}
|
|
31
41
|
}
|
|
32
42
|
|
package/es/locale/en/index.mjs
CHANGED
|
@@ -544,6 +544,7 @@ var index = {
|
|
|
544
544
|
importResults: "Import Results",
|
|
545
545
|
downloadTemplate: "Download the import template and fill in as required:",
|
|
546
546
|
templateFile: "Data import template file",
|
|
547
|
+
template: "Template",
|
|
547
548
|
continue: "Continue importing"
|
|
548
549
|
},
|
|
549
550
|
dataImport2: {
|
|
@@ -540,6 +540,7 @@ var index = {
|
|
|
540
540
|
importResults: "\u5BFC\u5165\u7ED3\u679C",
|
|
541
541
|
downloadTemplate: "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248\uFF0C\u5E76\u6309\u8981\u6C42\u586B\u5199\uFF1A",
|
|
542
542
|
templateFile: "\u6570\u636E\u5BFC\u5165\u6A21\u677F\u6587\u4EF6",
|
|
543
|
+
template: "\u6A21\u677F",
|
|
543
544
|
continue: "\u7EE7\u7EED\u5BFC\u5165"
|
|
544
545
|
},
|
|
545
546
|
dataImport2: {
|
|
@@ -233,7 +233,8 @@ const GlobalSearch = /* @__PURE__ */ defineComponent({
|
|
|
233
233
|
"width": "auto",
|
|
234
234
|
"visible": this.visible,
|
|
235
235
|
"placement": "bottom-start",
|
|
236
|
-
"popper-class": [this.ns.e("popper"), this.semanticClass("popup")]
|
|
236
|
+
"popper-class": [this.ns.e("popper"), this.semanticClass("popup")],
|
|
237
|
+
"popper-style": this.semanticStyle("popup")
|
|
237
238
|
}, {
|
|
238
239
|
reference: () => {
|
|
239
240
|
return createVNode(resolveComponent("el-input"), {
|
|
@@ -225,15 +225,24 @@ const NavTabs = /* @__PURE__ */ defineComponent({
|
|
|
225
225
|
}, [createVNode("span", {
|
|
226
226
|
"class": [this.ns.em("item", "captioninfo"), this.semanticClass("item.captioninfo", {
|
|
227
227
|
item: msg
|
|
228
|
-
})]
|
|
228
|
+
})],
|
|
229
|
+
"style": this.semanticStyle("item.captioninfo", {
|
|
230
|
+
item: msg
|
|
231
|
+
})
|
|
229
232
|
}, [msg.caption]), msg.dataInfo && createVNode("span", {
|
|
230
233
|
"class": [this.ns.em("item", "captiondivider"), this.semanticClass("item.captiondivider", {
|
|
231
234
|
item: msg
|
|
232
|
-
})]
|
|
235
|
+
})],
|
|
236
|
+
"style": this.semanticStyle("item.captiondivider", {
|
|
237
|
+
item: msg
|
|
238
|
+
})
|
|
233
239
|
}, [createTextVNode("\xA0-\xA0")]), msg.dataInfo && createVNode("span", {
|
|
234
240
|
"class": [this.ns.em("item", "datainfo"), this.semanticClass("item.datainfo", {
|
|
235
241
|
item: msg
|
|
236
|
-
})]
|
|
242
|
+
})],
|
|
243
|
+
"style": this.semanticStyle("item.datainfo", {
|
|
244
|
+
item: msg
|
|
245
|
+
})
|
|
237
246
|
}, [msg.dataInfo])])]);
|
|
238
247
|
}
|
|
239
248
|
});
|
|
@@ -217,7 +217,8 @@ const ShortCut = /* @__PURE__ */ defineComponent({
|
|
|
217
217
|
"placement": "top-start",
|
|
218
218
|
"trigger": "click",
|
|
219
219
|
"width": "auto",
|
|
220
|
-
"popper-class": [ns.e("popover"), semanticClass("popup")]
|
|
220
|
+
"popper-class": [ns.e("popover"), semanticClass("popup")],
|
|
221
|
+
"popper-style": semanticStyle("popup")
|
|
221
222
|
}, {
|
|
222
223
|
reference: () => {
|
|
223
224
|
return createVNode("div", {
|
|
@@ -104,6 +104,7 @@ const UserMessage = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
}, [createVNode(resolveComponent("el-popover"), {
|
|
105
105
|
"ref": "popoverRef",
|
|
106
106
|
"popper-class": [this.ns.b("popover"), this.semanticClass("popup")],
|
|
107
|
+
"popper-style": this.semanticStyle("popup"),
|
|
107
108
|
"placement": "bottom",
|
|
108
109
|
"trigger": "click",
|
|
109
110
|
"visible": this.showPopover,
|
|
@@ -507,6 +507,11 @@ class AIChatUtil {
|
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
|
+
let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
|
|
511
|
+
if (editorParams.srfuploadmaxsize) {
|
|
512
|
+
uploadMaxSize = Number(editorParams.srfuploadmaxsize);
|
|
513
|
+
}
|
|
514
|
+
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
510
515
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
511
516
|
var _a2, _b, _c;
|
|
512
517
|
const { id: id2, isPluginApp } = source;
|
|
@@ -1084,6 +1089,12 @@ class AIChatUtil {
|
|
|
1084
1089
|
);
|
|
1085
1090
|
}
|
|
1086
1091
|
};
|
|
1092
|
+
let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
|
|
1093
|
+
if (params.hasOwnProperty("srfuploadmaxsize")) {
|
|
1094
|
+
uploadMaxSize = Number(params.srfuploadmaxsize);
|
|
1095
|
+
delete params.srfuploadmaxsize;
|
|
1096
|
+
}
|
|
1097
|
+
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
1087
1098
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
1088
1099
|
var _a2, _b, _c;
|
|
1089
1100
|
const { id: id2, isPluginApp } = source;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -171,7 +171,12 @@ const IBizButtonList = /* @__PURE__ */ vue.defineComponent({
|
|
|
171
171
|
}
|
|
172
172
|
}]
|
|
173
173
|
},
|
|
174
|
-
"popper-style":
|
|
174
|
+
"popper-style": {
|
|
175
|
+
zIndex: zIndex.zIndex,
|
|
176
|
+
...props.semantic.semanticStyle("popup", {
|
|
177
|
+
model: detail
|
|
178
|
+
})
|
|
179
|
+
}
|
|
175
180
|
}, {
|
|
176
181
|
reference: () => {
|
|
177
182
|
var _a2, _b;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
require('./data-import.css');
|
|
6
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('./data-import.css');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
9
9
|
function _isSlot(s) {
|
|
@@ -34,6 +34,7 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
setup(props) {
|
|
37
|
+
var _a;
|
|
37
38
|
const ns = vue3Util.useNamespace("data-import");
|
|
38
39
|
const message = vue.ref({
|
|
39
40
|
state: "ready",
|
|
@@ -41,11 +42,12 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
42
|
});
|
|
42
43
|
const errorMessage = vue.ref("");
|
|
43
44
|
const isLoading = vue.ref(false);
|
|
45
|
+
const importTemplName = ibiz.config.common.importTemplNameMode === "custom" ? "".concat((_a = props.dataImport) == null ? void 0 : _a.name).concat(ibiz.i18n.t("component.dataImport.template")) : "".concat(props.appDataEntity.logicName).concat(ibiz.i18n.t("component.dataImport.templateFile"));
|
|
44
46
|
const onCancelButtonClick = () => {
|
|
45
47
|
props.dismiss();
|
|
46
48
|
};
|
|
47
49
|
const onLinkClick = async () => {
|
|
48
|
-
runtime.downloadImportTemplate(props.appDataEntity, props.dataImport, props.context, props.params);
|
|
50
|
+
runtime.downloadImportTemplate(props.appDataEntity, props.dataImport, props.context, props.params, ibiz.config.common.importTemplNameMode === "custom" ? importTemplName : void 0);
|
|
49
51
|
};
|
|
50
52
|
const selectFile = async () => {
|
|
51
53
|
isLoading.value = true;
|
|
@@ -86,12 +88,13 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
88
|
};
|
|
87
89
|
return {
|
|
88
90
|
ns,
|
|
89
|
-
onLinkClick,
|
|
90
|
-
selectFile,
|
|
91
|
-
onCancelButtonClick,
|
|
92
|
-
isLoading,
|
|
93
91
|
message,
|
|
94
|
-
|
|
92
|
+
isLoading,
|
|
93
|
+
errorMessage,
|
|
94
|
+
importTemplName,
|
|
95
|
+
selectFile,
|
|
96
|
+
onLinkClick,
|
|
97
|
+
onCancelButtonClick
|
|
95
98
|
};
|
|
96
99
|
},
|
|
97
100
|
render() {
|
|
@@ -126,7 +129,7 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
129
|
}, [vue.createVNode("ion-icon", {
|
|
127
130
|
"class": this.ns.e("link-icon"),
|
|
128
131
|
"name": "link"
|
|
129
|
-
}, null), this.
|
|
132
|
+
}, null), this.importTemplName])]), vue.createVNode("div", {
|
|
130
133
|
"class": this.ns.e("button-bar")
|
|
131
134
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
132
135
|
"onClick": this.onCancelButtonClick
|
|
@@ -124,11 +124,11 @@ const CalendarUser2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
124
124
|
"class": [this.ns.e("title"), this.ns.em("header", "left"), this.semanticClass("title")],
|
|
125
125
|
"style": this.semanticStyle("title")
|
|
126
126
|
}, [this.title]), vue.createVNode("div", {
|
|
127
|
-
"class": [this.ns.e("legend"), this.ns.em("header", "legend"), this.
|
|
127
|
+
"class": [this.ns.e("legend"), this.ns.em("header", "legend"), this.semanticClass("legend")],
|
|
128
128
|
"style": this.semanticStyle("legend")
|
|
129
129
|
}, [this.legends.length > 1 && this.legends.map((legend) => {
|
|
130
130
|
return vue.createVNode("div", {
|
|
131
|
-
"class": [this.ns.e("legend-item"), this.ns.em("legend", "item"), this.
|
|
131
|
+
"class": [this.ns.e("legend-item"), this.ns.em("legend", "item"), this.semanticClass("legend.item")],
|
|
132
132
|
"style": this.semanticStyle("legend.item"),
|
|
133
133
|
"onClick": () => this.$emit("legendClick", legend)
|
|
134
134
|
}, [vue.createVNode("div", {
|
|
@@ -109,8 +109,7 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
109
|
const renderDay = () => {
|
|
110
110
|
var _a;
|
|
111
111
|
return vue.createVNode("div", {
|
|
112
|
-
"class": ns.e("calendar-day")
|
|
113
|
-
"style": props.semanticStyle("day")
|
|
112
|
+
"class": ns.e("calendar-day")
|
|
114
113
|
}, [(slots == null ? void 0 : slots.header) ? vue.createVNode("div", {
|
|
115
114
|
"class": [ns.e("header"), ns.em("calendar-day", "header"), props.semanticClass("header")],
|
|
116
115
|
"style": props.semanticStyle("header")
|
|
@@ -173,6 +173,7 @@ const AppMenuPortletControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
173
173
|
let _slot;
|
|
174
174
|
content = vue.createVNode(vue.resolveComponent("el-collapse"), {
|
|
175
175
|
"class": [this.ns.e("content"), this.semanticClass("content")],
|
|
176
|
+
"style": this.semanticStyle("content"),
|
|
176
177
|
"modelValue": this.defaultOpens,
|
|
177
178
|
"onUpdate:modelValue": ($event) => this.defaultOpens = $event
|
|
178
179
|
}, _isSlot(_slot = model.appMenuItems.map((item) => {
|
|
@@ -186,6 +187,7 @@ const AppMenuPortletControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
186
187
|
}
|
|
187
188
|
return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
188
189
|
"class": [this.ns.b(), this.semanticClass("root")],
|
|
190
|
+
"style": this.semanticStyle("root"),
|
|
189
191
|
"controller": this.c
|
|
190
192
|
}, _isSlot(content) ? content : {
|
|
191
193
|
default: () => [content]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -261,7 +261,7 @@ const DRTabControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
261
261
|
"style": this.semanticStyle("root"),
|
|
262
262
|
"semanticClass": this.semanticClass,
|
|
263
263
|
"semanticStyle": this.semanticStyle,
|
|
264
|
-
"
|
|
264
|
+
"pagesState": this.visibleItems,
|
|
265
265
|
"drtabpages": this.modelData.dedrtabPages,
|
|
266
266
|
"context": this.c.context,
|
|
267
267
|
"params": this.c.params,
|
|
@@ -34,6 +34,12 @@ class DRTabController extends runtime.ControlController {
|
|
|
34
34
|
* @memberof DRTabController
|
|
35
35
|
*/
|
|
36
36
|
__publicField(this, "srfCacheKeyTempl", "");
|
|
37
|
+
/**
|
|
38
|
+
* @description 显示位置
|
|
39
|
+
* @type {(string | undefined)}
|
|
40
|
+
* @memberof DRTabController
|
|
41
|
+
*/
|
|
42
|
+
__publicField(this, "tabPosition");
|
|
37
43
|
/**
|
|
38
44
|
* Router 对象
|
|
39
45
|
*
|
|
@@ -148,6 +154,7 @@ class DRTabController extends runtime.ControlController {
|
|
|
148
154
|
super.initState();
|
|
149
155
|
this.state.drTabPages = [];
|
|
150
156
|
this.state.showMore = false;
|
|
157
|
+
this.state.expViewParams = {};
|
|
151
158
|
this.state.hideEditItem = !!this.model.hideEditItem;
|
|
152
159
|
}
|
|
153
160
|
/**
|
|
@@ -157,6 +164,8 @@ class DRTabController extends runtime.ControlController {
|
|
|
157
164
|
* @memberof DRTabController
|
|
158
165
|
*/
|
|
159
166
|
async onCreated() {
|
|
167
|
+
var _a;
|
|
168
|
+
this.tabPosition = (_a = this.view.model.tabLayout) == null ? void 0 : _a.toLowerCase();
|
|
160
169
|
await super.onCreated();
|
|
161
170
|
await this.initCounter();
|
|
162
171
|
this.srfCacheKeyTempl = this.controlParams.srfcachekeytempl || "";
|
|
@@ -362,7 +371,7 @@ class DRTabController extends runtime.ControlController {
|
|
|
362
371
|
testScriptCode,
|
|
363
372
|
counterMode
|
|
364
373
|
} = item;
|
|
365
|
-
|
|
374
|
+
const drTabPage = {
|
|
366
375
|
tag: item.id,
|
|
367
376
|
caption: item.caption,
|
|
368
377
|
sysImage: item.sysImage,
|
|
@@ -374,7 +383,15 @@ class DRTabController extends runtime.ControlController {
|
|
|
374
383
|
testAppDELogicId,
|
|
375
384
|
testScriptCode,
|
|
376
385
|
counterMode
|
|
377
|
-
}
|
|
386
|
+
};
|
|
387
|
+
if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
|
|
388
|
+
const { context, params } = this.prepareParams(item);
|
|
389
|
+
Object.assign(drTabPage, {
|
|
390
|
+
context,
|
|
391
|
+
params
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
drTabPages.push(drTabPage);
|
|
378
395
|
});
|
|
379
396
|
this.state.drTabPages = drTabPages;
|
|
380
397
|
this.state.defaultName = drTabPages[0].tag;
|
|
@@ -451,12 +468,12 @@ class DRTabController extends runtime.ControlController {
|
|
|
451
468
|
/**
|
|
452
469
|
* 准备参数
|
|
453
470
|
*
|
|
454
|
-
* @param {IDEDRCtrlItem}
|
|
471
|
+
* @param {IDEDRCtrlItem} drTabPage 关系分页
|
|
455
472
|
* @return {*}
|
|
456
473
|
* @memberof DRTabController
|
|
457
474
|
*/
|
|
458
|
-
prepareParams(
|
|
459
|
-
const { navigateContexts, navigateParams } =
|
|
475
|
+
prepareParams(drTabPage) {
|
|
476
|
+
const { navigateContexts, navigateParams } = drTabPage;
|
|
460
477
|
const model = {
|
|
461
478
|
navContexts: navigateContexts,
|
|
462
479
|
navParams: navigateParams
|
|
@@ -468,9 +485,13 @@ class DRTabController extends runtime.ControlController {
|
|
|
468
485
|
};
|
|
469
486
|
const { resultContext, resultParams } = runtime.calcNavParams(model, originParams);
|
|
470
487
|
const context = Object.assign(this.context.clone(), resultContext, {
|
|
471
|
-
currentSrfNav:
|
|
488
|
+
currentSrfNav: drTabPage.id
|
|
472
489
|
});
|
|
473
|
-
const params = {
|
|
490
|
+
const params = {
|
|
491
|
+
...this.params,
|
|
492
|
+
...resultParams,
|
|
493
|
+
...this.state.expViewParams
|
|
494
|
+
};
|
|
474
495
|
return { context, params };
|
|
475
496
|
}
|
|
476
497
|
/**
|
|
@@ -478,20 +499,20 @@ class DRTabController extends runtime.ControlController {
|
|
|
478
499
|
*
|
|
479
500
|
* @author lxm
|
|
480
501
|
* @date 2023-12-21 05:40:07
|
|
481
|
-
* @param {IDEDRCtrlItem}
|
|
502
|
+
* @param {IDEDRCtrlItem} drTabPage
|
|
482
503
|
* @param {boolean} [isRoutePushed=false]
|
|
483
504
|
* @return {*} {Promise<void>}
|
|
484
505
|
*/
|
|
485
|
-
async openNavPosView(
|
|
506
|
+
async openNavPosView(drTabPage, isRoutePushed = false, navViewKey) {
|
|
486
507
|
var _a;
|
|
487
|
-
const { context, params } = this.prepareParams(
|
|
488
|
-
if (!
|
|
508
|
+
const { context, params } = this.prepareParams(drTabPage);
|
|
509
|
+
if (!drTabPage.appViewId)
|
|
489
510
|
return;
|
|
490
511
|
(_a = this.navPos) == null ? void 0 : _a.openView({
|
|
491
|
-
key: navViewKey ||
|
|
512
|
+
key: navViewKey || drTabPage.id,
|
|
492
513
|
context,
|
|
493
514
|
params,
|
|
494
|
-
viewId:
|
|
515
|
+
viewId: drTabPage.appViewId,
|
|
495
516
|
isRoutePushed
|
|
496
517
|
});
|
|
497
518
|
}
|
|
@@ -526,6 +547,20 @@ class DRTabController extends runtime.ControlController {
|
|
|
526
547
|
*/
|
|
527
548
|
async refresh() {
|
|
528
549
|
var _a;
|
|
550
|
+
if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
|
|
551
|
+
this.state.drTabPages.forEach((tabPageState) => {
|
|
552
|
+
var _a2;
|
|
553
|
+
const dedrtabPage = (_a2 = this.model.dedrtabPages) == null ? void 0 : _a2.find(
|
|
554
|
+
(item) => item.id === tabPageState.tag
|
|
555
|
+
);
|
|
556
|
+
if (dedrtabPage) {
|
|
557
|
+
const { context, params } = this.prepareParams(dedrtabPage);
|
|
558
|
+
tabPageState.context = context;
|
|
559
|
+
tabPageState.params = params;
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
529
564
|
const { activeName } = this.state;
|
|
530
565
|
const drBarItem = (_a = this.model.dedrtabPages) == null ? void 0 : _a.find(
|
|
531
566
|
(item) => item.id === activeName
|
|
@@ -10,7 +10,7 @@ require('./flow-drtab.css');
|
|
|
10
10
|
const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
name: "FlowDrtab",
|
|
12
12
|
props: {
|
|
13
|
-
|
|
13
|
+
pagesState: {
|
|
14
14
|
type: Array,
|
|
15
15
|
default: () => []
|
|
16
16
|
},
|
|
@@ -73,7 +73,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
73
|
navbarpos.value = c.navbarpos;
|
|
74
74
|
navBarWidth.value = c.navbarwidth;
|
|
75
75
|
const allVisibleViews = vue.computed(() => {
|
|
76
|
-
return props.
|
|
76
|
+
return props.pagesState.filter((item) => {
|
|
77
77
|
const target = props.drtabpages.find((page) => {
|
|
78
78
|
return page.id === item.tag;
|
|
79
79
|
});
|
|
@@ -81,8 +81,8 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
}).length;
|
|
82
82
|
});
|
|
83
83
|
const allNavTags = vue.computed(() => {
|
|
84
|
-
if (props.
|
|
85
|
-
return props.
|
|
84
|
+
if (props.pagesState) {
|
|
85
|
+
return props.pagesState.map((item) => {
|
|
86
86
|
const target = props.drtabpages.find((page) => {
|
|
87
87
|
return page.id === item.tag;
|
|
88
88
|
});
|
|
@@ -174,7 +174,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
174
174
|
});
|
|
175
175
|
completedViews.value += 1;
|
|
176
176
|
if (completedViews.value === allVisibleViews.value && !navtag.value) {
|
|
177
|
-
navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.
|
|
177
|
+
navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.pagesState[0].tag);
|
|
178
178
|
}
|
|
179
179
|
const el = document.getElementById("".concat(target == null ? void 0 : target.appViewId, "_").concat(item.tag));
|
|
180
180
|
if (el) {
|
|
@@ -265,7 +265,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
265
265
|
"ref": (el) => {
|
|
266
266
|
navbarRef.value = el;
|
|
267
267
|
}
|
|
268
|
-
}, [props.
|
|
268
|
+
}, [props.pagesState.map((item) => {
|
|
269
269
|
const target = props.drtabpages.find((page) => {
|
|
270
270
|
return page.id === item.tag;
|
|
271
271
|
});
|
|
@@ -305,7 +305,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
305
305
|
},
|
|
306
306
|
render() {
|
|
307
307
|
var _a, _b;
|
|
308
|
-
const tabs = this.
|
|
308
|
+
const tabs = this.pagesState.map((item) => {
|
|
309
309
|
const counterNum = item.counterId ? this.counterData[item.counterId] : void 0;
|
|
310
310
|
const viewShell = vue.resolveComponent("IBizViewShell");
|
|
311
311
|
const target = this.drtabpages.find((page) => {
|
|
@@ -361,8 +361,8 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
361
361
|
})
|
|
362
362
|
}
|
|
363
363
|
}, [vue.h(viewShell, {
|
|
364
|
-
context: this.context,
|
|
365
|
-
params: this.params,
|
|
364
|
+
context: item.context || this.context,
|
|
365
|
+
params: item.params || this.params,
|
|
366
366
|
viewId: target.appViewId,
|
|
367
367
|
onMounted: () => this.onViewMounted(item)
|
|
368
368
|
})])]);
|
|
@@ -34,11 +34,11 @@ function useExpBarRender(c, ns) {
|
|
|
34
34
|
"style": semanticStyle("title"),
|
|
35
35
|
"class": [ns.b("caption"), expBarNs.b("caption"), semanticClass("title")]
|
|
36
36
|
}, [model.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
37
|
+
"class": [expBarNs.be("caption", "icon"), semanticClass("title.icon")],
|
|
37
38
|
"style": semanticStyle("title.icon"),
|
|
38
|
-
"class": [expBarNs.be("caption", "icon"), semanticStyle("title.icon")],
|
|
39
39
|
"icon": model.sysImage
|
|
40
40
|
}, null), title && vue.createVNode("span", {
|
|
41
|
-
"class": [ns.be("caption", "text"), expBarNs.be("caption", "text"),
|
|
41
|
+
"class": [ns.be("caption", "text"), expBarNs.be("caption", "text"), semanticClass("title.text")],
|
|
42
42
|
"style": semanticStyle("title.text")
|
|
43
43
|
}, [title])]);
|
|
44
44
|
};
|
|
@@ -144,7 +144,7 @@ const MEditViewPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
144
|
"class": [this.ns.be("tab-label", "remove"), this.semanticClass("tab.remove", {
|
|
145
145
|
item
|
|
146
146
|
})],
|
|
147
|
-
"style": this.
|
|
147
|
+
"style": this.semanticStyle("tab.remove", {
|
|
148
148
|
item
|
|
149
149
|
}),
|
|
150
150
|
"name": "close-outline",
|
|
@@ -306,6 +306,9 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
306
306
|
"popper-class": [ns2.b("popper"), ns2.b("dropdown-popper"), ns2.bm("dropdown-popper", toolbarStyle), ns2.em("dropdown-popper", groupButtonStyle.toLowerCase()), ns2.bm("dropdown-popper", calcCssName(item)), semanticClass("popup", {
|
|
307
307
|
item
|
|
308
308
|
})],
|
|
309
|
+
"popper-style": semanticStyle("popup", {
|
|
310
|
+
item
|
|
311
|
+
}),
|
|
309
312
|
"placement": "right-start",
|
|
310
313
|
"teleported": false,
|
|
311
314
|
"popper-options": {
|
|
@@ -966,7 +966,7 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
966
966
|
"ref": "treeviewRef",
|
|
967
967
|
"controller": this.c,
|
|
968
968
|
"class": this.semanticClass("root"),
|
|
969
|
-
"style": this.
|
|
969
|
+
"style": this.semanticStyle("root"),
|
|
970
970
|
"element-loading-text": this.c.state.loadingText
|
|
971
971
|
}, _isSlot(slots) ? slots : {
|
|
972
972
|
default: () => [slots]
|
|
@@ -299,6 +299,7 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
299
299
|
"ref": "tableRef",
|
|
300
300
|
"key": this.tableRefreshKey,
|
|
301
301
|
"class": [this.ns.e("table"), this.semanticClass("content")],
|
|
302
|
+
"style": this.semanticStyle("content"),
|
|
302
303
|
"border": true,
|
|
303
304
|
"row-key": "id",
|
|
304
305
|
"data": this.elTableData,
|
|
@@ -26,9 +26,14 @@ class CheckBoxListEditorController extends runtime.CodeListEditorController {
|
|
|
26
26
|
* @type {(number | undefined)}
|
|
27
27
|
*/
|
|
28
28
|
__publicField(this, "rowNumber");
|
|
29
|
+
/**
|
|
30
|
+
* @description 自动选中第一个
|
|
31
|
+
* @memberof CheckBoxListEditorController
|
|
32
|
+
*/
|
|
33
|
+
__publicField(this, "autoSelectFirstOption", false);
|
|
29
34
|
}
|
|
30
35
|
async onInit() {
|
|
31
|
-
var _a, _b;
|
|
36
|
+
var _a, _b, _c;
|
|
32
37
|
super.onInit();
|
|
33
38
|
if (this.model.appCodeListId) {
|
|
34
39
|
const app = await ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -40,6 +45,11 @@ class CheckBoxListEditorController extends runtime.CodeListEditorController {
|
|
|
40
45
|
if ((_b = this.editorParams) == null ? void 0 : _b.rownumber) {
|
|
41
46
|
this.rowNumber = Number(this.editorParams.rownumber);
|
|
42
47
|
}
|
|
48
|
+
if ((_c = this.editorParams) == null ? void 0 : _c.autoselectfirstoption) {
|
|
49
|
+
this.autoSelectFirstOption = this.toBoolean(
|
|
50
|
+
this.editorParams.autoselectfirstoption
|
|
51
|
+
);
|
|
52
|
+
}
|
|
43
53
|
}
|
|
44
54
|
}
|
|
45
55
|
|