@ibiz-template/vue3-components 0.7.41-alpha.28 → 0.7.41-alpha.29
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-nGWWgnsc.js +11 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-C2Kvoo5k.js → wang-editor-vb19lrqQ.js} +1 -1
- package/dist/{xlsx-util-LtsAKql7.js → xlsx-util-Dj0CJwvb.js} +1 -1
- package/es/control/app-menu/app-menu.mjs +16 -2
- package/es/control/search-bar/search-bar.mjs +2 -1
- package/es/editor/text-box/input/input.mjs +12 -0
- package/lib/control/app-menu/app-menu.cjs +15 -1
- package/lib/control/search-bar/search-bar.cjs +2 -1
- package/lib/editor/text-box/input/input.cjs +12 -0
- package/package.json +5 -5
- package/dist/index-DXs5m_xe.js +0 -11
|
@@ -2,7 +2,7 @@ import { isVNode, createVNode, resolveComponent, defineComponent, mergeProps, re
|
|
|
2
2
|
import { RuntimeError, showTitle, findRecursiveChild } from '@ibiz-template/core';
|
|
3
3
|
import { useControlController, useNamespace, route2routePath } from '@ibiz-template/vue3-util';
|
|
4
4
|
import { createUUID } from 'qx-util';
|
|
5
|
-
import { ViewCallTag, AppMenuController, formatSeparator } from '@ibiz-template/runtime';
|
|
5
|
+
import { ScriptFactory, ViewCallTag, AppMenuController, formatSeparator } from '@ibiz-template/runtime';
|
|
6
6
|
import { useRoute } from 'vue-router';
|
|
7
7
|
import { MenuDesign } from './custom-menu-design/custom-menu-design.mjs';
|
|
8
8
|
import './app-menu.css';
|
|
@@ -11,6 +11,18 @@ import './app-menu.css';
|
|
|
11
11
|
function _isSlot(s) {
|
|
12
12
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
13
13
|
}
|
|
14
|
+
function renderAttrs(model, params) {
|
|
15
|
+
var _a;
|
|
16
|
+
const attrs = {};
|
|
17
|
+
(_a = model.controlAttributes) == null ? void 0 : _a.forEach((item) => {
|
|
18
|
+
if (item.attrName && item.attrValue) {
|
|
19
|
+
attrs[item.attrName] = ScriptFactory.execSingleLine(item.attrValue, {
|
|
20
|
+
...params
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return attrs;
|
|
25
|
+
}
|
|
14
26
|
function getMenus(items) {
|
|
15
27
|
return items.map((item) => {
|
|
16
28
|
var _a;
|
|
@@ -465,7 +477,9 @@ const AppMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
465
477
|
"mode": this.menuMode,
|
|
466
478
|
"ellipsis-icon": () => this.ellipsisSvg(),
|
|
467
479
|
"ellipsis": this.menuMode === "horizontal"
|
|
468
|
-
}, this.$attrs
|
|
480
|
+
}, this.$attrs, renderAttrs(this.c.model, {
|
|
481
|
+
...this.c.getEventArgs()
|
|
482
|
+
})), {
|
|
469
483
|
default: () => {
|
|
470
484
|
return this.menus.map((item) => {
|
|
471
485
|
var _a3;
|
|
@@ -87,7 +87,8 @@ const SearchBarControl = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
onSearch();
|
|
88
88
|
};
|
|
89
89
|
if (c.model.enableGroup && c.model.searchBarGroups && ((_a = c.model.searchBarGroups) == null ? void 0 : _a.length) > 0) {
|
|
90
|
-
|
|
90
|
+
const defaultGroup = c.model.searchBarGroups.find((x) => x.defaultGroup);
|
|
91
|
+
c.state.selectedGroupItem = defaultGroup || c.model.searchBarGroups[0];
|
|
91
92
|
}
|
|
92
93
|
const filterButtonRef = ref();
|
|
93
94
|
let popover;
|
|
@@ -30,6 +30,7 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
if (editorModel.editorType === "TEXTAREA_10") {
|
|
31
31
|
rows.value = 10;
|
|
32
32
|
}
|
|
33
|
+
let autoClose;
|
|
33
34
|
if (c.editorParams) {
|
|
34
35
|
if (c.editorParams.SHOWLIMIT === "false" || c.editorParams.showlimit === "false") {
|
|
35
36
|
showLimit.value = false;
|
|
@@ -37,6 +38,13 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
37
38
|
if (c.editorParams.ISAUTO === "true" || c.editorParams.isauto === "true") {
|
|
38
39
|
isAuto.value = true;
|
|
39
40
|
}
|
|
41
|
+
if (c.editorParams.autoclose) {
|
|
42
|
+
try {
|
|
43
|
+
autoClose = JSON.parse(c.editorParams.autoclose);
|
|
44
|
+
} catch (error) {
|
|
45
|
+
ibiz.log.error(error);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
40
48
|
}
|
|
41
49
|
const type = computed(() => {
|
|
42
50
|
switch (editorModel.editorType) {
|
|
@@ -199,6 +207,10 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
199
207
|
autoQuestion: c.editorParams.autoquestion !== "false",
|
|
200
208
|
// 自动填充
|
|
201
209
|
autoFill: c.editorParams.autofill === "true",
|
|
210
|
+
// 窗口的打开模式
|
|
211
|
+
openMode: c.editorParams.openmode,
|
|
212
|
+
// 窗口的自动关闭模式
|
|
213
|
+
autoClose,
|
|
202
214
|
// 编辑器参数srfaiappendcurcontent,传入编辑内容作为用户消息,获取历史数据后附加
|
|
203
215
|
appendCurContent: c.editorParams.srfaiappendcurcontent ? StringUtil.fill(c.editorParams.srfaiappendcurcontent, c.context, c.params, props.data) : void 0,
|
|
204
216
|
appDataEntityId,
|
|
@@ -13,6 +13,18 @@ require('./app-menu.css');
|
|
|
13
13
|
function _isSlot(s) {
|
|
14
14
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
15
15
|
}
|
|
16
|
+
function renderAttrs(model, params) {
|
|
17
|
+
var _a;
|
|
18
|
+
const attrs = {};
|
|
19
|
+
(_a = model.controlAttributes) == null ? void 0 : _a.forEach((item) => {
|
|
20
|
+
if (item.attrName && item.attrValue) {
|
|
21
|
+
attrs[item.attrName] = runtime.ScriptFactory.execSingleLine(item.attrValue, {
|
|
22
|
+
...params
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return attrs;
|
|
27
|
+
}
|
|
16
28
|
function getMenus(items) {
|
|
17
29
|
return items.map((item) => {
|
|
18
30
|
var _a;
|
|
@@ -467,7 +479,9 @@ const AppMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
467
479
|
"mode": this.menuMode,
|
|
468
480
|
"ellipsis-icon": () => this.ellipsisSvg(),
|
|
469
481
|
"ellipsis": this.menuMode === "horizontal"
|
|
470
|
-
}, this.$attrs
|
|
482
|
+
}, this.$attrs, renderAttrs(this.c.model, {
|
|
483
|
+
...this.c.getEventArgs()
|
|
484
|
+
})), {
|
|
471
485
|
default: () => {
|
|
472
486
|
return this.menus.map((item) => {
|
|
473
487
|
var _a3;
|
|
@@ -89,7 +89,8 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
89
|
onSearch();
|
|
90
90
|
};
|
|
91
91
|
if (c.model.enableGroup && c.model.searchBarGroups && ((_a = c.model.searchBarGroups) == null ? void 0 : _a.length) > 0) {
|
|
92
|
-
|
|
92
|
+
const defaultGroup = c.model.searchBarGroups.find((x) => x.defaultGroup);
|
|
93
|
+
c.state.selectedGroupItem = defaultGroup || c.model.searchBarGroups[0];
|
|
93
94
|
}
|
|
94
95
|
const filterButtonRef = vue.ref();
|
|
95
96
|
let popover;
|
|
@@ -32,6 +32,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
32
|
if (editorModel.editorType === "TEXTAREA_10") {
|
|
33
33
|
rows.value = 10;
|
|
34
34
|
}
|
|
35
|
+
let autoClose;
|
|
35
36
|
if (c.editorParams) {
|
|
36
37
|
if (c.editorParams.SHOWLIMIT === "false" || c.editorParams.showlimit === "false") {
|
|
37
38
|
showLimit.value = false;
|
|
@@ -39,6 +40,13 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
39
40
|
if (c.editorParams.ISAUTO === "true" || c.editorParams.isauto === "true") {
|
|
40
41
|
isAuto.value = true;
|
|
41
42
|
}
|
|
43
|
+
if (c.editorParams.autoclose) {
|
|
44
|
+
try {
|
|
45
|
+
autoClose = JSON.parse(c.editorParams.autoclose);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
ibiz.log.error(error);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
51
|
const type = vue.computed(() => {
|
|
44
52
|
switch (editorModel.editorType) {
|
|
@@ -201,6 +209,10 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
201
209
|
autoQuestion: c.editorParams.autoquestion !== "false",
|
|
202
210
|
// 自动填充
|
|
203
211
|
autoFill: c.editorParams.autofill === "true",
|
|
212
|
+
// 窗口的打开模式
|
|
213
|
+
openMode: c.editorParams.openmode,
|
|
214
|
+
// 窗口的自动关闭模式
|
|
215
|
+
autoClose,
|
|
204
216
|
// 编辑器参数srfaiappendcurcontent,传入编辑内容作为用户消息,获取历史数据后附加
|
|
205
217
|
appendCurContent: c.editorParams.srfaiappendcurcontent ? core.StringUtil.fill(c.editorParams.srfaiappendcurcontent, c.context, c.params, props.data) : void 0,
|
|
206
218
|
appDataEntityId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.29",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
32
32
|
"@floating-ui/dom": "^1.5.3",
|
|
33
|
-
"@ibiz-template-plugin/ai-chat": "^0.0.
|
|
33
|
+
"@ibiz-template-plugin/ai-chat": "^0.0.32",
|
|
34
34
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.316",
|
|
35
35
|
"@ibiz-template-plugin/bi-report": "0.0.27",
|
|
36
36
|
"@ibiz-template-plugin/data-view": "0.0.5",
|
|
37
37
|
"@ibiz-template/core": "0.7.41-alpha.28",
|
|
38
38
|
"@ibiz-template/devtool": "0.0.12",
|
|
39
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
40
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
39
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.29",
|
|
40
|
+
"@ibiz-template/runtime": "0.7.41-alpha.29",
|
|
41
41
|
"@ibiz-template/theme": "0.7.39",
|
|
42
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
42
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.29",
|
|
43
43
|
"@ibiz-template/web-theme": "3.8.0",
|
|
44
44
|
"@ibiz/model-core": "^0.1.82",
|
|
45
45
|
"@imengyu/vue3-context-menu": "^1.3.5",
|