@ibiz-template/vue3-components 0.7.41-alpha.113 → 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-BU8Fy5we.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-9zdglekK.js → wang-editor-CBp2ammw.js} +1 -1
- package/dist/{xlsx-util-DrUAhpzt.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/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -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/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -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/date-picker/ibiz-date-picker/ibiz-date-picker.tsx +1 -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-CkG9L_La.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
|
@@ -169,7 +169,12 @@ const IBizButtonList = /* @__PURE__ */ defineComponent({
|
|
|
169
169
|
}
|
|
170
170
|
}]
|
|
171
171
|
},
|
|
172
|
-
"popper-style":
|
|
172
|
+
"popper-style": {
|
|
173
|
+
zIndex: zIndex.zIndex,
|
|
174
|
+
...props.semantic.semanticStyle("popup", {
|
|
175
|
+
model: detail
|
|
176
|
+
})
|
|
177
|
+
}
|
|
173
178
|
}, {
|
|
174
179
|
reference: () => {
|
|
175
180
|
var _a2, _b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isVNode, defineComponent, withDirectives, createVNode, resolveComponent, resolveDirective, ref } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import './data-import.css';
|
|
4
3
|
import { downloadImportTemplate, selectAndImport } from '@ibiz-template/runtime';
|
|
4
|
+
import './data-import.css';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function _isSlot(s) {
|
|
@@ -32,6 +32,7 @@ const DataImport = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(props) {
|
|
35
|
+
var _a;
|
|
35
36
|
const ns = useNamespace("data-import");
|
|
36
37
|
const message = ref({
|
|
37
38
|
state: "ready",
|
|
@@ -39,11 +40,12 @@ const DataImport = /* @__PURE__ */ defineComponent({
|
|
|
39
40
|
});
|
|
40
41
|
const errorMessage = ref("");
|
|
41
42
|
const isLoading = ref(false);
|
|
43
|
+
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"));
|
|
42
44
|
const onCancelButtonClick = () => {
|
|
43
45
|
props.dismiss();
|
|
44
46
|
};
|
|
45
47
|
const onLinkClick = async () => {
|
|
46
|
-
downloadImportTemplate(props.appDataEntity, props.dataImport, props.context, props.params);
|
|
48
|
+
downloadImportTemplate(props.appDataEntity, props.dataImport, props.context, props.params, ibiz.config.common.importTemplNameMode === "custom" ? importTemplName : void 0);
|
|
47
49
|
};
|
|
48
50
|
const selectFile = async () => {
|
|
49
51
|
isLoading.value = true;
|
|
@@ -84,12 +86,13 @@ const DataImport = /* @__PURE__ */ defineComponent({
|
|
|
84
86
|
};
|
|
85
87
|
return {
|
|
86
88
|
ns,
|
|
87
|
-
onLinkClick,
|
|
88
|
-
selectFile,
|
|
89
|
-
onCancelButtonClick,
|
|
90
|
-
isLoading,
|
|
91
89
|
message,
|
|
92
|
-
|
|
90
|
+
isLoading,
|
|
91
|
+
errorMessage,
|
|
92
|
+
importTemplName,
|
|
93
|
+
selectFile,
|
|
94
|
+
onLinkClick,
|
|
95
|
+
onCancelButtonClick
|
|
93
96
|
};
|
|
94
97
|
},
|
|
95
98
|
render() {
|
|
@@ -124,7 +127,7 @@ const DataImport = /* @__PURE__ */ defineComponent({
|
|
|
124
127
|
}, [createVNode("ion-icon", {
|
|
125
128
|
"class": this.ns.e("link-icon"),
|
|
126
129
|
"name": "link"
|
|
127
|
-
}, null), this.
|
|
130
|
+
}, null), this.importTemplName])]), createVNode("div", {
|
|
128
131
|
"class": this.ns.e("button-bar")
|
|
129
132
|
}, [createVNode(resolveComponent("el-button"), {
|
|
130
133
|
"onClick": this.onCancelButtonClick
|
|
@@ -122,11 +122,11 @@ const CalendarUser2 = /* @__PURE__ */ defineComponent({
|
|
|
122
122
|
"class": [this.ns.e("title"), this.ns.em("header", "left"), this.semanticClass("title")],
|
|
123
123
|
"style": this.semanticStyle("title")
|
|
124
124
|
}, [this.title]), createVNode("div", {
|
|
125
|
-
"class": [this.ns.e("legend"), this.ns.em("header", "legend"), this.
|
|
125
|
+
"class": [this.ns.e("legend"), this.ns.em("header", "legend"), this.semanticClass("legend")],
|
|
126
126
|
"style": this.semanticStyle("legend")
|
|
127
127
|
}, [this.legends.length > 1 && this.legends.map((legend) => {
|
|
128
128
|
return createVNode("div", {
|
|
129
|
-
"class": [this.ns.e("legend-item"), this.ns.em("legend", "item"), this.
|
|
129
|
+
"class": [this.ns.e("legend-item"), this.ns.em("legend", "item"), this.semanticClass("legend.item")],
|
|
130
130
|
"style": this.semanticStyle("legend.item"),
|
|
131
131
|
"onClick": () => this.$emit("legendClick", legend)
|
|
132
132
|
}, [createVNode("div", {
|
|
@@ -107,8 +107,7 @@ const CustomCalendar = /* @__PURE__ */ defineComponent({
|
|
|
107
107
|
const renderDay = () => {
|
|
108
108
|
var _a;
|
|
109
109
|
return createVNode("div", {
|
|
110
|
-
"class": ns.e("calendar-day")
|
|
111
|
-
"style": props.semanticStyle("day")
|
|
110
|
+
"class": ns.e("calendar-day")
|
|
112
111
|
}, [(slots == null ? void 0 : slots.header) ? createVNode("div", {
|
|
113
112
|
"class": [ns.e("header"), ns.em("calendar-day", "header"), props.semanticClass("header")],
|
|
114
113
|
"style": props.semanticStyle("header")
|
|
@@ -171,6 +171,7 @@ const AppMenuPortletControl = /* @__PURE__ */ defineComponent({
|
|
|
171
171
|
let _slot;
|
|
172
172
|
content = createVNode(resolveComponent("el-collapse"), {
|
|
173
173
|
"class": [this.ns.e("content"), this.semanticClass("content")],
|
|
174
|
+
"style": this.semanticStyle("content"),
|
|
174
175
|
"modelValue": this.defaultOpens,
|
|
175
176
|
"onUpdate:modelValue": ($event) => this.defaultOpens = $event
|
|
176
177
|
}, _isSlot(_slot = model.appMenuItems.map((item) => {
|
|
@@ -184,6 +185,7 @@ const AppMenuPortletControl = /* @__PURE__ */ defineComponent({
|
|
|
184
185
|
}
|
|
185
186
|
return createVNode(resolveComponent("iBizControlBase"), {
|
|
186
187
|
"class": [this.ns.b(), this.semanticClass("root")],
|
|
188
|
+
"style": this.semanticStyle("root"),
|
|
187
189
|
"controller": this.c
|
|
188
190
|
}, _isSlot(content) ? content : {
|
|
189
191
|
default: () => [content]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, watchEffect, onUnmounted } from 'vue';
|
|
2
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
2
|
+
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';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -32,6 +32,12 @@ class DRTabController extends ControlController {
|
|
|
32
32
|
* @memberof DRTabController
|
|
33
33
|
*/
|
|
34
34
|
__publicField(this, "srfCacheKeyTempl", "");
|
|
35
|
+
/**
|
|
36
|
+
* @description 显示位置
|
|
37
|
+
* @type {(string | undefined)}
|
|
38
|
+
* @memberof DRTabController
|
|
39
|
+
*/
|
|
40
|
+
__publicField(this, "tabPosition");
|
|
35
41
|
/**
|
|
36
42
|
* Router 对象
|
|
37
43
|
*
|
|
@@ -146,6 +152,7 @@ class DRTabController extends ControlController {
|
|
|
146
152
|
super.initState();
|
|
147
153
|
this.state.drTabPages = [];
|
|
148
154
|
this.state.showMore = false;
|
|
155
|
+
this.state.expViewParams = {};
|
|
149
156
|
this.state.hideEditItem = !!this.model.hideEditItem;
|
|
150
157
|
}
|
|
151
158
|
/**
|
|
@@ -155,6 +162,8 @@ class DRTabController extends ControlController {
|
|
|
155
162
|
* @memberof DRTabController
|
|
156
163
|
*/
|
|
157
164
|
async onCreated() {
|
|
165
|
+
var _a;
|
|
166
|
+
this.tabPosition = (_a = this.view.model.tabLayout) == null ? void 0 : _a.toLowerCase();
|
|
158
167
|
await super.onCreated();
|
|
159
168
|
await this.initCounter();
|
|
160
169
|
this.srfCacheKeyTempl = this.controlParams.srfcachekeytempl || "";
|
|
@@ -360,7 +369,7 @@ class DRTabController extends ControlController {
|
|
|
360
369
|
testScriptCode,
|
|
361
370
|
counterMode
|
|
362
371
|
} = item;
|
|
363
|
-
|
|
372
|
+
const drTabPage = {
|
|
364
373
|
tag: item.id,
|
|
365
374
|
caption: item.caption,
|
|
366
375
|
sysImage: item.sysImage,
|
|
@@ -372,7 +381,15 @@ class DRTabController extends ControlController {
|
|
|
372
381
|
testAppDELogicId,
|
|
373
382
|
testScriptCode,
|
|
374
383
|
counterMode
|
|
375
|
-
}
|
|
384
|
+
};
|
|
385
|
+
if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
|
|
386
|
+
const { context, params } = this.prepareParams(item);
|
|
387
|
+
Object.assign(drTabPage, {
|
|
388
|
+
context,
|
|
389
|
+
params
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
drTabPages.push(drTabPage);
|
|
376
393
|
});
|
|
377
394
|
this.state.drTabPages = drTabPages;
|
|
378
395
|
this.state.defaultName = drTabPages[0].tag;
|
|
@@ -449,12 +466,12 @@ class DRTabController extends ControlController {
|
|
|
449
466
|
/**
|
|
450
467
|
* 准备参数
|
|
451
468
|
*
|
|
452
|
-
* @param {IDEDRCtrlItem}
|
|
469
|
+
* @param {IDEDRCtrlItem} drTabPage 关系分页
|
|
453
470
|
* @return {*}
|
|
454
471
|
* @memberof DRTabController
|
|
455
472
|
*/
|
|
456
|
-
prepareParams(
|
|
457
|
-
const { navigateContexts, navigateParams } =
|
|
473
|
+
prepareParams(drTabPage) {
|
|
474
|
+
const { navigateContexts, navigateParams } = drTabPage;
|
|
458
475
|
const model = {
|
|
459
476
|
navContexts: navigateContexts,
|
|
460
477
|
navParams: navigateParams
|
|
@@ -466,9 +483,13 @@ class DRTabController extends ControlController {
|
|
|
466
483
|
};
|
|
467
484
|
const { resultContext, resultParams } = calcNavParams(model, originParams);
|
|
468
485
|
const context = Object.assign(this.context.clone(), resultContext, {
|
|
469
|
-
currentSrfNav:
|
|
486
|
+
currentSrfNav: drTabPage.id
|
|
470
487
|
});
|
|
471
|
-
const params = {
|
|
488
|
+
const params = {
|
|
489
|
+
...this.params,
|
|
490
|
+
...resultParams,
|
|
491
|
+
...this.state.expViewParams
|
|
492
|
+
};
|
|
472
493
|
return { context, params };
|
|
473
494
|
}
|
|
474
495
|
/**
|
|
@@ -476,20 +497,20 @@ class DRTabController extends ControlController {
|
|
|
476
497
|
*
|
|
477
498
|
* @author lxm
|
|
478
499
|
* @date 2023-12-21 05:40:07
|
|
479
|
-
* @param {IDEDRCtrlItem}
|
|
500
|
+
* @param {IDEDRCtrlItem} drTabPage
|
|
480
501
|
* @param {boolean} [isRoutePushed=false]
|
|
481
502
|
* @return {*} {Promise<void>}
|
|
482
503
|
*/
|
|
483
|
-
async openNavPosView(
|
|
504
|
+
async openNavPosView(drTabPage, isRoutePushed = false, navViewKey) {
|
|
484
505
|
var _a;
|
|
485
|
-
const { context, params } = this.prepareParams(
|
|
486
|
-
if (!
|
|
506
|
+
const { context, params } = this.prepareParams(drTabPage);
|
|
507
|
+
if (!drTabPage.appViewId)
|
|
487
508
|
return;
|
|
488
509
|
(_a = this.navPos) == null ? void 0 : _a.openView({
|
|
489
|
-
key: navViewKey ||
|
|
510
|
+
key: navViewKey || drTabPage.id,
|
|
490
511
|
context,
|
|
491
512
|
params,
|
|
492
|
-
viewId:
|
|
513
|
+
viewId: drTabPage.appViewId,
|
|
493
514
|
isRoutePushed
|
|
494
515
|
});
|
|
495
516
|
}
|
|
@@ -524,6 +545,20 @@ class DRTabController extends ControlController {
|
|
|
524
545
|
*/
|
|
525
546
|
async refresh() {
|
|
526
547
|
var _a;
|
|
548
|
+
if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
|
|
549
|
+
this.state.drTabPages.forEach((tabPageState) => {
|
|
550
|
+
var _a2;
|
|
551
|
+
const dedrtabPage = (_a2 = this.model.dedrtabPages) == null ? void 0 : _a2.find(
|
|
552
|
+
(item) => item.id === tabPageState.tag
|
|
553
|
+
);
|
|
554
|
+
if (dedrtabPage) {
|
|
555
|
+
const { context, params } = this.prepareParams(dedrtabPage);
|
|
556
|
+
tabPageState.context = context;
|
|
557
|
+
tabPageState.params = params;
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
527
562
|
const { activeName } = this.state;
|
|
528
563
|
const drBarItem = (_a = this.model.dedrtabPages) == null ? void 0 : _a.find(
|
|
529
564
|
(item) => item.id === activeName
|
|
@@ -259,7 +259,7 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
259
259
|
"style": this.semanticStyle("root"),
|
|
260
260
|
"semanticClass": this.semanticClass,
|
|
261
261
|
"semanticStyle": this.semanticStyle,
|
|
262
|
-
"
|
|
262
|
+
"pagesState": this.visibleItems,
|
|
263
263
|
"drtabpages": this.modelData.dedrtabPages,
|
|
264
264
|
"context": this.c.context,
|
|
265
265
|
"params": this.c.params,
|
|
@@ -8,7 +8,7 @@ import './flow-drtab.css';
|
|
|
8
8
|
const FlowDrtab = /* @__PURE__ */ defineComponent({
|
|
9
9
|
name: "FlowDrtab",
|
|
10
10
|
props: {
|
|
11
|
-
|
|
11
|
+
pagesState: {
|
|
12
12
|
type: Array,
|
|
13
13
|
default: () => []
|
|
14
14
|
},
|
|
@@ -71,7 +71,7 @@ const FlowDrtab = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
navbarpos.value = c.navbarpos;
|
|
72
72
|
navBarWidth.value = c.navbarwidth;
|
|
73
73
|
const allVisibleViews = computed(() => {
|
|
74
|
-
return props.
|
|
74
|
+
return props.pagesState.filter((item) => {
|
|
75
75
|
const target = props.drtabpages.find((page) => {
|
|
76
76
|
return page.id === item.tag;
|
|
77
77
|
});
|
|
@@ -79,8 +79,8 @@ const FlowDrtab = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
}).length;
|
|
80
80
|
});
|
|
81
81
|
const allNavTags = computed(() => {
|
|
82
|
-
if (props.
|
|
83
|
-
return props.
|
|
82
|
+
if (props.pagesState) {
|
|
83
|
+
return props.pagesState.map((item) => {
|
|
84
84
|
const target = props.drtabpages.find((page) => {
|
|
85
85
|
return page.id === item.tag;
|
|
86
86
|
});
|
|
@@ -172,7 +172,7 @@ const FlowDrtab = /* @__PURE__ */ defineComponent({
|
|
|
172
172
|
});
|
|
173
173
|
completedViews.value += 1;
|
|
174
174
|
if (completedViews.value === allVisibleViews.value && !navtag.value) {
|
|
175
|
-
navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.
|
|
175
|
+
navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.pagesState[0].tag);
|
|
176
176
|
}
|
|
177
177
|
const el = document.getElementById("".concat(target == null ? void 0 : target.appViewId, "_").concat(item.tag));
|
|
178
178
|
if (el) {
|
|
@@ -263,7 +263,7 @@ const FlowDrtab = /* @__PURE__ */ defineComponent({
|
|
|
263
263
|
"ref": (el) => {
|
|
264
264
|
navbarRef.value = el;
|
|
265
265
|
}
|
|
266
|
-
}, [props.
|
|
266
|
+
}, [props.pagesState.map((item) => {
|
|
267
267
|
const target = props.drtabpages.find((page) => {
|
|
268
268
|
return page.id === item.tag;
|
|
269
269
|
});
|
|
@@ -303,7 +303,7 @@ const FlowDrtab = /* @__PURE__ */ defineComponent({
|
|
|
303
303
|
},
|
|
304
304
|
render() {
|
|
305
305
|
var _a, _b;
|
|
306
|
-
const tabs = this.
|
|
306
|
+
const tabs = this.pagesState.map((item) => {
|
|
307
307
|
const counterNum = item.counterId ? this.counterData[item.counterId] : void 0;
|
|
308
308
|
const viewShell = resolveComponent("IBizViewShell");
|
|
309
309
|
const target = this.drtabpages.find((page) => {
|
|
@@ -359,8 +359,8 @@ const FlowDrtab = /* @__PURE__ */ defineComponent({
|
|
|
359
359
|
})
|
|
360
360
|
}
|
|
361
361
|
}, [h(viewShell, {
|
|
362
|
-
context: this.context,
|
|
363
|
-
params: this.params,
|
|
362
|
+
context: item.context || this.context,
|
|
363
|
+
params: item.params || this.params,
|
|
364
364
|
viewId: target.appViewId,
|
|
365
365
|
onMounted: () => this.onViewMounted(item)
|
|
366
366
|
})])]);
|
|
@@ -32,11 +32,11 @@ function useExpBarRender(c, ns) {
|
|
|
32
32
|
"style": semanticStyle("title"),
|
|
33
33
|
"class": [ns.b("caption"), expBarNs.b("caption"), semanticClass("title")]
|
|
34
34
|
}, [model.sysImage && createVNode(resolveComponent("iBizIcon"), {
|
|
35
|
+
"class": [expBarNs.be("caption", "icon"), semanticClass("title.icon")],
|
|
35
36
|
"style": semanticStyle("title.icon"),
|
|
36
|
-
"class": [expBarNs.be("caption", "icon"), semanticStyle("title.icon")],
|
|
37
37
|
"icon": model.sysImage
|
|
38
38
|
}, null), title && createVNode("span", {
|
|
39
|
-
"class": [ns.be("caption", "text"), expBarNs.be("caption", "text"),
|
|
39
|
+
"class": [ns.be("caption", "text"), expBarNs.be("caption", "text"), semanticClass("title.text")],
|
|
40
40
|
"style": semanticStyle("title.text")
|
|
41
41
|
}, [title])]);
|
|
42
42
|
};
|
|
@@ -142,7 +142,7 @@ const MEditViewPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
142
142
|
"class": [this.ns.be("tab-label", "remove"), this.semanticClass("tab.remove", {
|
|
143
143
|
item
|
|
144
144
|
})],
|
|
145
|
-
"style": this.
|
|
145
|
+
"style": this.semanticStyle("tab.remove", {
|
|
146
146
|
item
|
|
147
147
|
}),
|
|
148
148
|
"name": "close-outline",
|
|
@@ -304,6 +304,9 @@ const ToolbarControl = /* @__PURE__ */ defineComponent({
|
|
|
304
304
|
"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", {
|
|
305
305
|
item
|
|
306
306
|
})],
|
|
307
|
+
"popper-style": semanticStyle("popup", {
|
|
308
|
+
item
|
|
309
|
+
}),
|
|
307
310
|
"placement": "right-start",
|
|
308
311
|
"teleported": false,
|
|
309
312
|
"popper-options": {
|
package/es/control/tree/tree.mjs
CHANGED
|
@@ -964,7 +964,7 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
964
964
|
"ref": "treeviewRef",
|
|
965
965
|
"controller": this.c,
|
|
966
966
|
"class": this.semanticClass("root"),
|
|
967
|
-
"style": this.
|
|
967
|
+
"style": this.semanticStyle("root"),
|
|
968
968
|
"element-loading-text": this.c.state.loadingText
|
|
969
969
|
}, _isSlot(slots) ? slots : {
|
|
970
970
|
default: () => [slots]
|
|
@@ -297,6 +297,7 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
297
297
|
"ref": "tableRef",
|
|
298
298
|
"key": this.tableRefreshKey,
|
|
299
299
|
"class": [this.ns.e("table"), this.semanticClass("content")],
|
|
300
|
+
"style": this.semanticStyle("content"),
|
|
300
301
|
"border": true,
|
|
301
302
|
"row-key": "id",
|
|
302
303
|
"data": this.elTableData,
|
|
@@ -189,7 +189,8 @@ const IBizDatePicker = /* @__PURE__ */ defineComponent({
|
|
|
189
189
|
}, this.$attrs), null);
|
|
190
190
|
const readonlyContent = this.formatValue;
|
|
191
191
|
const formDefaultContent = createVNode("div", {
|
|
192
|
-
"class": [this.ns.e("content"), this.ns.b("form-default-content"), this.semanticClass("editor.content")]
|
|
192
|
+
"class": [this.ns.e("content"), this.ns.b("form-default-content"), this.semanticClass("editor.content")],
|
|
193
|
+
"style": this.semanticStyle("editor.content")
|
|
193
194
|
}, [this.formatValue ? this.formatValue : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
194
195
|
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
195
196
|
"placeHolder": this.c.placeHolder
|
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) {
|