@ibiz-template/vue3-components 0.7.41-alpha.42 → 0.7.41-alpha.44
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/ibiz-markdown-editor-CUzKkFER.js +1 -0
- package/dist/{index-CaWTEUU1.js → index-DgqTP4Vw.js} +1 -1
- package/dist/{index-CD2XM6M6.js → index-Dr0VM8iS.js} +1 -1
- package/dist/index-DtEaU3-5.js +11 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-CRWSwyXY.js +1 -0
- package/dist/{xlsx-util-B1eGfH7d.js → xlsx-util-CMJON8Uq.js} +1 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +2 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +22 -11
- package/es/control/toolbar/export-excel/export-excel.mjs +19 -4
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +5 -2
- package/es/editor/code/monaco-editor/monaco-editor.mjs +8 -194
- package/es/editor/html/wang-editor/module/ai-module.mjs +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +35 -207
- package/es/editor/markdown/ibiz-markdown-editor/custom-menu.mjs +11 -222
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +23 -12
- package/es/editor/text-box/input/input.mjs +11 -197
- package/es/editor/text-box/signature/signature.mjs +28 -15
- package/es/editor/upload/upload-editor.controller.mjs +12 -1
- package/es/editor/upload/use/use-iview-upload.mjs +28 -13
- package/es/locale/en/index.mjs +29 -2
- package/es/locale/zh-CN/index.mjs +29 -2
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +11 -1
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +3 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +22 -43
- package/es/util/ai-chat-util/ai-chat-util.mjs +672 -7
- package/es/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
- package/es/util/ai-chat-util/ai-feedback/ai-feedback.mjs +130 -0
- package/es/util/app-util/app-util.mjs +26 -247
- package/es/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.css +1 -0
- package/es/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.mjs +56 -0
- package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.css +1 -0
- package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.mjs +52 -0
- package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.css +1 -0
- package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.mjs +143 -0
- package/es/util/inline-ai-util/inline-ai-textarea/common/index.mjs +4 -0
- package/es/util/inline-ai-util/inline-ai-textarea/icon.mjs +52 -1
- package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.css +1 -1
- package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.hook.mjs +34 -4
- package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.mjs +32 -25
- package/es/util/inline-ai-util/inline-ai-textarea/interface.mjs +1 -0
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +2 -1
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +22 -11
- package/lib/control/toolbar/export-excel/export-excel.cjs +18 -3
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +5 -2
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +8 -194
- package/lib/editor/html/wang-editor/module/ai-module.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +34 -206
- package/lib/editor/markdown/ibiz-markdown-editor/custom-menu.cjs +11 -222
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +23 -12
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
- package/lib/editor/text-box/input/input.cjs +10 -196
- package/lib/editor/text-box/signature/signature.cjs +28 -15
- package/lib/editor/upload/upload-editor.controller.cjs +12 -1
- package/lib/editor/upload/use/use-iview-upload.cjs +28 -13
- package/lib/locale/en/index.cjs +29 -2
- package/lib/locale/zh-CN/index.cjs +29 -2
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +11 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +21 -42
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +3 -1
- package/lib/util/ai-chat-util/ai-chat-util.cjs +670 -5
- package/lib/util/ai-chat-util/ai-feedback/ai-feedback.cjs +132 -0
- package/lib/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
- package/lib/util/app-util/app-util.cjs +25 -246
- package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.cjs +58 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.css +1 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.cjs +54 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.css +1 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.cjs +145 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.css +1 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/common/index.cjs +9 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/icon.cjs +54 -0
- package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.cjs +31 -24
- package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.css +1 -1
- package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.hook.cjs +34 -4
- package/lib/util/inline-ai-util/inline-ai-textarea/interface.cjs +3 -0
- package/package.json +7 -7
- package/dist/ibiz-markdown-editor-pEdb_gS_.js +0 -1
- package/dist/index-BObZTN7-.js +0 -11
- package/dist/wang-editor-Ck-JCWqK.js +0 -1
|
@@ -32,6 +32,13 @@ class CoopPosController extends PanelItemController {
|
|
|
32
32
|
* @memberof CoopPosController
|
|
33
33
|
*/
|
|
34
34
|
__publicField(this, "showMode", "default");
|
|
35
|
+
/**
|
|
36
|
+
* 是否启用无权限
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof CoopPosController
|
|
40
|
+
*/
|
|
41
|
+
__publicField(this, "enableNoAccess", false);
|
|
35
42
|
/**
|
|
36
43
|
* 消息模式映射
|
|
37
44
|
* - 视图打开数据模式映射消息类型
|
|
@@ -53,6 +60,7 @@ class CoopPosController extends PanelItemController {
|
|
|
53
60
|
await super.onInit();
|
|
54
61
|
this.handleRawItemParams();
|
|
55
62
|
this.showMode = this.rawItemParams.showmode;
|
|
63
|
+
this.enableNoAccess = this.rawItemParams.enablenoaccess === "true";
|
|
56
64
|
await this.getOperator();
|
|
57
65
|
}
|
|
58
66
|
/**
|
|
@@ -152,7 +160,9 @@ class CoopPosController extends PanelItemController {
|
|
|
152
160
|
}
|
|
153
161
|
const { downloadUrl } = ibiz.util.file.calcFileUpDownUrl(
|
|
154
162
|
this.panel.context,
|
|
155
|
-
this.panel.params
|
|
163
|
+
this.panel.params,
|
|
164
|
+
{},
|
|
165
|
+
{ enableNoAccess: this.enableNoAccess }
|
|
156
166
|
);
|
|
157
167
|
return downloadUrl.replace("%fileId%", urlConfig[0].id);
|
|
158
168
|
}
|
|
@@ -56,7 +56,9 @@ class PanelAppTitleController extends PanelItemController {
|
|
|
56
56
|
} else if (indexViewModel.appIconPath) {
|
|
57
57
|
this.state.icon = indexViewModel.appIconPath;
|
|
58
58
|
}
|
|
59
|
-
if (indexViewModel.
|
|
59
|
+
if (indexViewModel.sysImage && indexViewModel.sysImage.rawContent) {
|
|
60
|
+
this.state.icon2 = indexViewModel.sysImage.rawContent;
|
|
61
|
+
} else if (indexViewModel.appIconPath2) {
|
|
60
62
|
this.state.icon2 = indexViewModel.appIconPath2;
|
|
61
63
|
}
|
|
62
64
|
if (indexViewModel.caption) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createVNode, inject, computed } from 'vue';
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, inject, computed } from 'vue';
|
|
2
2
|
import { useNamespace, route2routePath, routePath2string } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { useRoute, useRouter } from 'vue-router';
|
|
4
4
|
import { PanelAppTitleController } from './panel-app-title.controller.mjs';
|
|
@@ -85,7 +85,7 @@ const PanelAppTitle = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
render() {
|
|
86
86
|
const {
|
|
87
87
|
icon,
|
|
88
|
-
|
|
88
|
+
icon2,
|
|
89
89
|
caption,
|
|
90
90
|
caption2,
|
|
91
91
|
subCaption,
|
|
@@ -101,23 +101,16 @@ const PanelAppTitle = /* @__PURE__ */ defineComponent({
|
|
|
101
101
|
} else {
|
|
102
102
|
if (this.menuAlign === "LEFT") {
|
|
103
103
|
if (this.isCollapse) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
if (isSvg) {
|
|
107
|
-
tempIcon = createVNode("ion-icon", {
|
|
108
|
-
"class": this.ns.e("logo"),
|
|
109
|
-
"icon": icon
|
|
110
|
-
}, null);
|
|
111
|
-
} else {
|
|
112
|
-
tempIcon = createVNode("span", {
|
|
113
|
-
"class": this.ns.e("logo")
|
|
114
|
-
}, [createVNode("img", {
|
|
115
|
-
"src": icon
|
|
116
|
-
}, null)]);
|
|
117
|
-
}
|
|
104
|
+
const collapseIcon = icon2 || icon;
|
|
105
|
+
if (collapseIcon) {
|
|
118
106
|
iconVNode = createVNode("div", {
|
|
119
107
|
"class": this.ns.e("collpase-icon")
|
|
120
|
-
}, [
|
|
108
|
+
}, [createVNode(resolveComponent("iBizIcon"), {
|
|
109
|
+
"class": this.ns.e("logo"),
|
|
110
|
+
"icon": {
|
|
111
|
+
rawContent: collapseIcon
|
|
112
|
+
}
|
|
113
|
+
}, null)]);
|
|
121
114
|
} else {
|
|
122
115
|
iconVNode = createVNode("div", {
|
|
123
116
|
"class": this.ns.e("collapse-title")
|
|
@@ -128,19 +121,6 @@ const PanelAppTitle = /* @__PURE__ */ defineComponent({
|
|
|
128
121
|
}, [subCaption2])]);
|
|
129
122
|
}
|
|
130
123
|
} else if (this.showIcon && icon) {
|
|
131
|
-
let tempIcon = null;
|
|
132
|
-
if (isSvg) {
|
|
133
|
-
tempIcon = createVNode("ion-icon", {
|
|
134
|
-
"class": this.ns.em("logo", "expand"),
|
|
135
|
-
"icon": icon
|
|
136
|
-
}, null);
|
|
137
|
-
} else {
|
|
138
|
-
tempIcon = createVNode("span", {
|
|
139
|
-
"class": this.ns.em("logo", "expand")
|
|
140
|
-
}, [createVNode("img", {
|
|
141
|
-
"src": icon
|
|
142
|
-
}, null)]);
|
|
143
|
-
}
|
|
144
124
|
let tempContent = createVNode("g", {
|
|
145
125
|
"id": "app-caption-panel",
|
|
146
126
|
"stroke": "none",
|
|
@@ -181,7 +161,12 @@ const PanelAppTitle = /* @__PURE__ */ defineComponent({
|
|
|
181
161
|
}
|
|
182
162
|
iconVNode = createVNode("span", {
|
|
183
163
|
"class": this.ns.e("logo")
|
|
184
|
-
}, [
|
|
164
|
+
}, [createVNode(resolveComponent("iBizIcon"), {
|
|
165
|
+
"class": this.ns.em("logo", "expand"),
|
|
166
|
+
"icon": {
|
|
167
|
+
rawContent: icon
|
|
168
|
+
}
|
|
169
|
+
}, null), createVNode("svg", {
|
|
185
170
|
"width": "166px",
|
|
186
171
|
"height": "80px",
|
|
187
172
|
"viewBox": "0 0 166 90",
|
|
@@ -220,18 +205,12 @@ const PanelAppTitle = /* @__PURE__ */ defineComponent({
|
|
|
220
205
|
}
|
|
221
206
|
} else if (this.menuAlign === "TOP") {
|
|
222
207
|
if (icon) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
iconVNode = createVNode("span", {
|
|
230
|
-
"class": this.ns.e("logo")
|
|
231
|
-
}, [createVNode("img", {
|
|
232
|
-
"src": icon
|
|
233
|
-
}, null)]);
|
|
234
|
-
}
|
|
208
|
+
iconVNode = createVNode(resolveComponent("iBizIcon"), {
|
|
209
|
+
"class": this.ns.e("logo"),
|
|
210
|
+
"icon": {
|
|
211
|
+
rawContent: icon
|
|
212
|
+
}
|
|
213
|
+
}, null);
|
|
235
214
|
}
|
|
236
215
|
}
|
|
237
216
|
if (this.menuAlign === "LEFT") {
|