@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.
Files changed (82) hide show
  1. package/dist/ibiz-markdown-editor-CUzKkFER.js +1 -0
  2. package/dist/{index-CaWTEUU1.js → index-DgqTP4Vw.js} +1 -1
  3. package/dist/{index-CD2XM6M6.js → index-Dr0VM8iS.js} +1 -1
  4. package/dist/index-DtEaU3-5.js +11 -0
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/wang-editor-CRWSwyXY.js +1 -0
  8. package/dist/{xlsx-util-B1eGfH7d.js → xlsx-util-CMJON8Uq.js} +1 -1
  9. package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +2 -1
  10. package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +22 -11
  11. package/es/control/toolbar/export-excel/export-excel.mjs +19 -4
  12. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +5 -2
  13. package/es/editor/code/monaco-editor/monaco-editor.mjs +8 -194
  14. package/es/editor/html/wang-editor/module/ai-module.mjs +1 -1
  15. package/es/editor/html/wang-editor/wang-editor.mjs +35 -207
  16. package/es/editor/markdown/ibiz-markdown-editor/custom-menu.mjs +11 -222
  17. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
  18. package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +23 -12
  19. package/es/editor/text-box/input/input.mjs +11 -197
  20. package/es/editor/text-box/signature/signature.mjs +28 -15
  21. package/es/editor/upload/upload-editor.controller.mjs +12 -1
  22. package/es/editor/upload/use/use-iview-upload.mjs +28 -13
  23. package/es/locale/en/index.mjs +29 -2
  24. package/es/locale/zh-CN/index.mjs +29 -2
  25. package/es/panel-component/coop-pos/coop-pos.controller.mjs +11 -1
  26. package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +3 -1
  27. package/es/panel-component/panel-app-title/panel-app-title.mjs +22 -43
  28. package/es/util/ai-chat-util/ai-chat-util.mjs +672 -7
  29. package/es/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
  30. package/es/util/ai-chat-util/ai-feedback/ai-feedback.mjs +130 -0
  31. package/es/util/app-util/app-util.mjs +26 -247
  32. package/es/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.css +1 -0
  33. package/es/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.mjs +56 -0
  34. package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.css +1 -0
  35. package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.mjs +52 -0
  36. package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.css +1 -0
  37. package/es/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.mjs +143 -0
  38. package/es/util/inline-ai-util/inline-ai-textarea/common/index.mjs +4 -0
  39. package/es/util/inline-ai-util/inline-ai-textarea/icon.mjs +52 -1
  40. package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.css +1 -1
  41. package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.hook.mjs +34 -4
  42. package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.mjs +32 -25
  43. package/es/util/inline-ai-util/inline-ai-textarea/interface.mjs +1 -0
  44. package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +2 -1
  45. package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +22 -11
  46. package/lib/control/toolbar/export-excel/export-excel.cjs +18 -3
  47. package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +5 -2
  48. package/lib/editor/code/monaco-editor/monaco-editor.cjs +8 -194
  49. package/lib/editor/html/wang-editor/module/ai-module.cjs +1 -1
  50. package/lib/editor/html/wang-editor/wang-editor.cjs +34 -206
  51. package/lib/editor/markdown/ibiz-markdown-editor/custom-menu.cjs +11 -222
  52. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +23 -12
  53. package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.css +1 -1
  54. package/lib/editor/text-box/input/input.cjs +10 -196
  55. package/lib/editor/text-box/signature/signature.cjs +28 -15
  56. package/lib/editor/upload/upload-editor.controller.cjs +12 -1
  57. package/lib/editor/upload/use/use-iview-upload.cjs +28 -13
  58. package/lib/locale/en/index.cjs +29 -2
  59. package/lib/locale/zh-CN/index.cjs +29 -2
  60. package/lib/panel-component/coop-pos/coop-pos.controller.cjs +11 -1
  61. package/lib/panel-component/panel-app-title/panel-app-title.cjs +21 -42
  62. package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +3 -1
  63. package/lib/util/ai-chat-util/ai-chat-util.cjs +670 -5
  64. package/lib/util/ai-chat-util/ai-feedback/ai-feedback.cjs +132 -0
  65. package/lib/util/ai-chat-util/ai-feedback/ai-feedback.css +1 -0
  66. package/lib/util/app-util/app-util.cjs +25 -246
  67. package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.cjs +58 -0
  68. package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-think/ai-think.css +1 -0
  69. package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.cjs +54 -0
  70. package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call/ai-tool-call.css +1 -0
  71. package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.cjs +145 -0
  72. package/lib/util/inline-ai-util/inline-ai-textarea/common/ai-tool-call-item/ai-tool-call-item.css +1 -0
  73. package/lib/util/inline-ai-util/inline-ai-textarea/common/index.cjs +9 -0
  74. package/lib/util/inline-ai-util/inline-ai-textarea/icon.cjs +54 -0
  75. package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.cjs +31 -24
  76. package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.css +1 -1
  77. package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.hook.cjs +34 -4
  78. package/lib/util/inline-ai-util/inline-ai-textarea/interface.cjs +3 -0
  79. package/package.json +7 -7
  80. package/dist/ibiz-markdown-editor-pEdb_gS_.js +0 -1
  81. package/dist/index-BObZTN7-.js +0 -11
  82. package/dist/wang-editor-Ck-JCWqK.js +0 -1
@@ -13,6 +13,7 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
13
13
  setup(props, {
14
14
  emit
15
15
  }) {
16
+ var _a;
16
17
  const ns = vue3Util.useNamespace("signature");
17
18
  const c = props.controller;
18
19
  const editorModel = c.model;
@@ -25,6 +26,7 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
25
26
  const fullScreen = vue.ref(false);
26
27
  const currentDataURL = vue.ref("");
27
28
  const currentVal = vue.ref("");
29
+ let enableNoAccess = ((_a = c == null ? void 0 : c.editorParams) == null ? void 0 : _a.enablenoaccess) === "true";
28
30
  let saveMode = "img";
29
31
  let buttons = [{
30
32
  label: ibiz.i18n.t("editor.signature.undo"),
@@ -48,6 +50,9 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
48
50
  ibiz.log.error(error);
49
51
  }
50
52
  }
53
+ if (editorModel.editorParams.enablenoaccess) {
54
+ enableNoAccess = editorModel.editorParams.enablenoaccess === "true";
55
+ }
51
56
  }
52
57
  const showFormDefaultContent = vue.computed(() => {
53
58
  if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
@@ -56,12 +61,12 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
56
61
  return false;
57
62
  });
58
63
  const restCavans = () => {
59
- var _a;
60
- (_a = signatureRef.value) == null ? void 0 : _a.updateSignaturePad(() => {
64
+ var _a2;
65
+ (_a2 = signatureRef.value) == null ? void 0 : _a2.updateSignaturePad(() => {
61
66
  vue.nextTick(() => {
62
- var _a2, _b;
67
+ var _a3, _b;
63
68
  if (currentDataURL.value) {
64
- (_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.fromDataURL(currentDataURL.value);
69
+ (_a3 = signatureRef.value) == null ? void 0 : _a3.signaturePad.fromDataURL(currentDataURL.value);
65
70
  } else {
66
71
  (_b = signatureRef.value) == null ? void 0 : _b.signaturePad.clear();
67
72
  }
@@ -69,7 +74,7 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
69
74
  });
70
75
  };
71
76
  const handleCurrentVal = async () => {
72
- var _a, _b;
77
+ var _a2, _b;
73
78
  if (currentVal.value) {
74
79
  ibiz.loading.showRedirect();
75
80
  if (saveMode === "img") {
@@ -79,7 +84,8 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
79
84
  const _url = downloadUrl.value.replace("%fileId%", fileData.id);
80
85
  try {
81
86
  const editorParams = {
82
- ...c.editorParams
87
+ ...c.editorParams,
88
+ enableNoAccess
83
89
  };
84
90
  if (editorParams.exportparams) {
85
91
  editorParams.exportParams = JSON.parse(editorParams.exportparams);
@@ -93,8 +99,8 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
93
99
  },
94
100
  extraParams: editorParams,
95
101
  downloadTicketParams: c.downloadTicketParams
96
- });
97
- const dataUrl = await ((_a = signatureRef.value) == null ? void 0 : _a.signaturePad.blobToDataURL(fileBlob));
102
+ }, void 0, enableNoAccess);
103
+ const dataUrl = await ((_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.blobToDataURL(fileBlob));
98
104
  currentDataURL.value = dataUrl;
99
105
  } catch (error) {
100
106
  ibiz.log.error(error);
@@ -108,7 +114,14 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
108
114
  };
109
115
  vue.watch(() => props.data, (newVal) => {
110
116
  if (newVal) {
111
- const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, c.editorParams);
117
+ const editorParams = {
118
+ ...c.editorParams,
119
+ enableNoAccess
120
+ };
121
+ if (editorParams.uploadparams) {
122
+ editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
123
+ }
124
+ const urls = ibiz.util.file.calcFileUpDownUrl(c.context, c.params, newVal, editorParams);
112
125
  uploadUrl.value = urls.uploadUrl;
113
126
  downloadUrl.value = urls.downloadUrl;
114
127
  }
@@ -151,8 +164,8 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
151
164
  return fileInfo;
152
165
  };
153
166
  const handleRemove = () => {
154
- var _a;
155
- (_a = signatureRef.value) == null ? void 0 : _a.signaturePad.clear();
167
+ var _a2;
168
+ (_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.clear();
156
169
  currentDataURL.value = "";
157
170
  handleEmit(null);
158
171
  };
@@ -164,9 +177,9 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
164
177
  }]));
165
178
  };
166
179
  const handleConfirm = () => {
167
- var _a, _b, _c;
180
+ var _a2, _b, _c;
168
181
  fullScreen.value = false;
169
- if (!((_a = signatureRef.value) == null ? void 0 : _a.signaturePad.isRedrawn()))
182
+ if (!((_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.isRedrawn()))
170
183
  return;
171
184
  if ((_b = signatureRef.value) == null ? void 0 : _b.signaturePad.isEmpty()) {
172
185
  handleRemove();
@@ -187,10 +200,10 @@ const IBizSignature = /* @__PURE__ */ vue.defineComponent({
187
200
  }
188
201
  };
189
202
  const handleButtonClick = (_type) => {
190
- var _a, _b;
203
+ var _a2, _b;
191
204
  switch (_type) {
192
205
  case "undo":
193
- (_a = signatureRef.value) == null ? void 0 : _a.signaturePad.undoLastStep();
206
+ (_a2 = signatureRef.value) == null ? void 0 : _a2.signaturePad.undoLastStep();
194
207
  break;
195
208
  case "rewrite":
196
209
  (_b = signatureRef.value) == null ? void 0 : _b.signaturePad.clear();
@@ -52,6 +52,13 @@ class UploadEditorController extends runtime.EditorController {
52
52
  * @memberof UploadEditorController
53
53
  */
54
54
  __publicField(this, "autoPreview", false);
55
+ /**
56
+ * 是否启用无权限
57
+ *
58
+ * @type {boolean}
59
+ * @memberof UploadEditorController
60
+ */
61
+ __publicField(this, "enableNoAccess", false);
55
62
  /**
56
63
  * 根据配置的映射关系转换对象属性
57
64
  * 将源对象的指定属性,按照映射规则映射到新对象的目标属性
@@ -115,7 +122,8 @@ class UploadEditorController extends runtime.EditorController {
115
122
  uploadparams,
116
123
  exportparams,
117
124
  autopreview,
118
- infomap
125
+ infomap,
126
+ enablenoaccess
119
127
  } = this.editorParams;
120
128
  if (isDrag) {
121
129
  this.isDrag = Boolean(isDrag);
@@ -141,6 +149,9 @@ class UploadEditorController extends runtime.EditorController {
141
149
  if (infomap) {
142
150
  this.infoMap = infomap;
143
151
  }
152
+ if (enablenoaccess) {
153
+ this.enableNoAccess = enablenoaccess === "true";
154
+ }
144
155
  if (uploadParams) {
145
156
  try {
146
157
  this.uploadParams = JSON.parse(uploadParams);
@@ -23,7 +23,10 @@ function useIViewUpload(props, valueChange, c) {
23
23
  { immediate: true }
24
24
  );
25
25
  const getDownloadUrl = (data, file) => {
26
- const editorParams = { ...c.editorParams };
26
+ const editorParams = {
27
+ ...c.editorParams,
28
+ enableNoAccess: c.enableNoAccess
29
+ };
27
30
  if (editorParams.exportparams) {
28
31
  editorParams.exportParams = JSON.parse(editorParams.exportparams);
29
32
  }
@@ -42,7 +45,10 @@ function useIViewUpload(props, valueChange, c) {
42
45
  () => props.data,
43
46
  (newVal) => {
44
47
  if (newVal) {
45
- const editorParams = { ...c.editorParams };
48
+ const editorParams = {
49
+ ...c.editorParams,
50
+ enableNoAccess: c.enableNoAccess
51
+ };
46
52
  if (editorParams.uploadparams) {
47
53
  editorParams.uploadParams = JSON.parse(editorParams.uploadparams);
48
54
  }
@@ -101,7 +107,7 @@ function useIViewUpload(props, valueChange, c) {
101
107
  newVal.forEach((file) => {
102
108
  const downloadUrl = getDownloadUrl(props.data, file);
103
109
  file.url = file.url || downloadUrl.replace("%fileId%", file.id);
104
- if (ibiz.config.common.enableDownloadTicket) {
110
+ if (ibiz.config.common.enableDownloadTicket && !c.enableNoAccess) {
105
111
  ibiz.util.file.getDownloadTicket(
106
112
  c.context,
107
113
  c.params,
@@ -161,7 +167,7 @@ function useIViewUpload(props, valueChange, c) {
161
167
  if (!response) {
162
168
  return;
163
169
  }
164
- if (ibiz.config.common.enableDownloadTicket && response.ticket) {
170
+ if (ibiz.config.common.enableDownloadTicket && !c.enableNoAccess && response.ticket) {
165
171
  ibiz.util.file.setDownloadTicket(response.id, response.ticket);
166
172
  }
167
173
  uploadCache.cacheFiles.push({
@@ -202,18 +208,27 @@ function useIViewUpload(props, valueChange, c) {
202
208
  const onDownload = (file) => {
203
209
  const downloadUrl = getDownloadUrl(props.data, file);
204
210
  const url = file.url || downloadUrl.replace("%fileId%", file.id);
205
- const editorParams = { ...c.editorParams };
211
+ const editorParams = {
212
+ ...c.editorParams,
213
+ enableNoAccess: c.enableNoAccess
214
+ };
206
215
  if (editorParams.exportparams) {
207
216
  editorParams.exportParams = JSON.parse(editorParams.exportparams);
208
217
  }
209
- ibiz.util.file.fileDownload(url, file.name, {
210
- context: c.context,
211
- params: c.params,
212
- data: props.data,
213
- file: { fileId: file.id, ...file },
214
- extraParams: editorParams,
215
- downloadTicketParams: c.downloadTicketParams
216
- });
218
+ ibiz.util.file.fileDownload(
219
+ url,
220
+ file.name,
221
+ {
222
+ context: c.context,
223
+ params: c.params,
224
+ data: props.data,
225
+ file: { fileId: file.id, ...file },
226
+ extraParams: editorParams,
227
+ downloadTicketParams: c.downloadTicketParams
228
+ },
229
+ void 0,
230
+ c.enableNoAccess
231
+ );
217
232
  };
218
233
  const limit = vue.computed(() => {
219
234
  return c.multiple ? 9999 : 1;
@@ -486,7 +486,7 @@ var index = {
486
486
  },
487
487
  toolbar: {
488
488
  exportExcel: {
489
- exportAll: "Export all(Export up to 1000 rows)",
489
+ exportAll: "Export all(Export up to {maxRowCount} rows)",
490
490
  expCurrentPage: "Export current page",
491
491
  expCurrentSelect: "Export the current selection",
492
492
  page: "Page",
@@ -851,7 +851,34 @@ var index = {
851
851
  warningTitle: "Confirm termination",
852
852
  warningDesc: "Are you sure to terminate the creation?",
853
853
  thinking: "In depth thinking",
854
- thinked: "Deeply pondered"
854
+ thinked: "Deeply pondered",
855
+ collapseToolCall: "Retract tool calls",
856
+ expandToolCall: "Expand all {number} tool calls",
857
+ error: "An error occurred",
858
+ copy: "Copied"
859
+ },
860
+ aiChartUtil: {
861
+ feedback: "Feedback",
862
+ description: "Description",
863
+ regardingIssue: "Regarding the problem",
864
+ understandProblem: "Not understanding the problem",
865
+ forgotContext: "Forgot the previous text",
866
+ notFollowingRequire: "Not Following Requirements",
867
+ regardingResponse: "Regarding the effectiveness of the answer",
868
+ incorrectAswer: "Incorrect answer",
869
+ logicalConfusion: "Logical confusion",
870
+ poorTimeliness: "Poor timeliness",
871
+ poorReadability: "Poor readability",
872
+ incompleteAnswer: "Incomplete answer",
873
+ unprofessional: "The answer is vague and unprofessional",
874
+ report: "Report",
875
+ pornographicVulgar: "Pornographic Vulgar",
876
+ politicallySensitive: "Politically sensitive",
877
+ illegalCriminal: "Illegal crime",
878
+ discriminationPrejudice: "Discrimination or Prejudice Answer",
879
+ violationPrivacy: "Violation of Privacy",
880
+ contentInfringement: "Content infringement",
881
+ placeholder: "Please enter"
855
882
  }
856
883
  },
857
884
  // runTime
@@ -482,7 +482,7 @@ var index = {
482
482
  },
483
483
  toolbar: {
484
484
  exportExcel: {
485
- exportAll: "\u5BFC\u51FA\u5168\u90E8(\u6700\u5927\u5BFC\u51FA1000\u884C)",
485
+ exportAll: "\u5BFC\u51FA\u5168\u90E8(\u6700\u5927\u5BFC\u51FA{maxRowCount}\u884C)",
486
486
  expCurrentPage: "\u5BFC\u51FA\u5F53\u524D\u9875",
487
487
  expCurrentSelect: "\u5BFC\u51FA\u5F53\u524D\u9009\u4E2D",
488
488
  page: "\u9875",
@@ -847,7 +847,34 @@ var index = {
847
847
  warningTitle: "\u786E\u8BA4\u4E2D\u6B62",
848
848
  warningDesc: "\u786E\u8BA4\u4E2D\u6B62\u521B\u4F5C\u5417\uFF1F",
849
849
  thinking: "\u6DF1\u5EA6\u601D\u8003\u4E2D",
850
- thinked: "\u5DF2\u6DF1\u5EA6\u601D\u8003"
850
+ thinked: "\u5DF2\u6DF1\u5EA6\u601D\u8003",
851
+ collapseToolCall: "\u6536\u8D77\u5DE5\u5177\u8C03\u7528",
852
+ expandToolCall: "\u5C55\u5F00\u5168\u90E8 {number} \u4E2A\u5DE5\u5177\u8C03\u7528",
853
+ error: "\u53D1\u751F\u9519\u8BEF",
854
+ copy: "\u5DF2\u590D\u5236"
855
+ },
856
+ aiChartUtil: {
857
+ feedback: "\u53CD\u9988",
858
+ description: "\u63CF\u8FF0",
859
+ regardingIssue: "\u9488\u5BF9\u95EE\u9898",
860
+ understandProblem: "\u4E0D\u7406\u89E3\u95EE\u9898",
861
+ forgotContext: "\u9057\u5FD8\u4E86\u4E0A\u6587",
862
+ notFollowingRequire: "\u4E0D\u9075\u5FAA\u8981\u6C42",
863
+ regardingResponse: "\u9488\u5BF9\u56DE\u7B54\u6548\u679C",
864
+ incorrectAswer: "\u56DE\u7B54\u9519\u8BEF",
865
+ logicalConfusion: "\u903B\u8F91\u6DF7\u4E71",
866
+ poorTimeliness: "\u65F6\u6548\u6027\u5DEE",
867
+ poorReadability: "\u53EF\u8BFB\u6027\u5DEE",
868
+ incompleteAnswer: "\u56DE\u7B54\u4E0D\u5B8C\u6574",
869
+ unprofessional: "\u56DE\u7B54\u7B3C\u7EDF\u4E0D\u4E13\u4E1A",
870
+ report: "\u4E3E\u62A5",
871
+ pornographicVulgar: "\u8272\u60C5\u4F4E\u4FD7",
872
+ politicallySensitive: "\u653F\u6CBB\u654F\u611F",
873
+ illegalCriminal: "\u8FDD\u6CD5\u72AF\u7F6A",
874
+ discriminationPrejudice: "\u6B67\u89C6\u6216\u504F\u89C1\u56DE\u7B54",
875
+ violationPrivacy: "\u4FB5\u72AF\u9690\u79C1",
876
+ contentInfringement: "\u5185\u5BB9\u4FB5\u6743",
877
+ placeholder: "\u8BF7\u8F93\u5165"
851
878
  }
852
879
  },
853
880
  // runTime
@@ -34,6 +34,13 @@ class CoopPosController extends runtime.PanelItemController {
34
34
  * @memberof CoopPosController
35
35
  */
36
36
  __publicField(this, "showMode", "default");
37
+ /**
38
+ * 是否启用无权限
39
+ *
40
+ * @type {boolean}
41
+ * @memberof CoopPosController
42
+ */
43
+ __publicField(this, "enableNoAccess", false);
37
44
  /**
38
45
  * 消息模式映射
39
46
  * - 视图打开数据模式映射消息类型
@@ -55,6 +62,7 @@ class CoopPosController extends runtime.PanelItemController {
55
62
  await super.onInit();
56
63
  this.handleRawItemParams();
57
64
  this.showMode = this.rawItemParams.showmode;
65
+ this.enableNoAccess = this.rawItemParams.enablenoaccess === "true";
58
66
  await this.getOperator();
59
67
  }
60
68
  /**
@@ -154,7 +162,9 @@ class CoopPosController extends runtime.PanelItemController {
154
162
  }
155
163
  const { downloadUrl } = ibiz.util.file.calcFileUpDownUrl(
156
164
  this.panel.context,
157
- this.panel.params
165
+ this.panel.params,
166
+ {},
167
+ { enableNoAccess: this.enableNoAccess }
158
168
  );
159
169
  return downloadUrl.replace("%fileId%", urlConfig[0].id);
160
170
  }
@@ -89,7 +89,7 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
89
89
  render() {
90
90
  const {
91
91
  icon,
92
- isSvg,
92
+ icon2,
93
93
  caption,
94
94
  caption2,
95
95
  subCaption,
@@ -105,23 +105,16 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
105
105
  } else {
106
106
  if (this.menuAlign === "LEFT") {
107
107
  if (this.isCollapse) {
108
- if (icon) {
109
- let tempIcon = null;
110
- if (isSvg) {
111
- tempIcon = vue.createVNode("ion-icon", {
112
- "class": this.ns.e("logo"),
113
- "icon": icon
114
- }, null);
115
- } else {
116
- tempIcon = vue.createVNode("span", {
117
- "class": this.ns.e("logo")
118
- }, [vue.createVNode("img", {
119
- "src": icon
120
- }, null)]);
121
- }
108
+ const collapseIcon = icon2 || icon;
109
+ if (collapseIcon) {
122
110
  iconVNode = vue.createVNode("div", {
123
111
  "class": this.ns.e("collpase-icon")
124
- }, [tempIcon]);
112
+ }, [vue.createVNode(vue.resolveComponent("iBizIcon"), {
113
+ "class": this.ns.e("logo"),
114
+ "icon": {
115
+ rawContent: collapseIcon
116
+ }
117
+ }, null)]);
125
118
  } else {
126
119
  iconVNode = vue.createVNode("div", {
127
120
  "class": this.ns.e("collapse-title")
@@ -132,19 +125,6 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
132
125
  }, [subCaption2])]);
133
126
  }
134
127
  } else if (this.showIcon && icon) {
135
- let tempIcon = null;
136
- if (isSvg) {
137
- tempIcon = vue.createVNode("ion-icon", {
138
- "class": this.ns.em("logo", "expand"),
139
- "icon": icon
140
- }, null);
141
- } else {
142
- tempIcon = vue.createVNode("span", {
143
- "class": this.ns.em("logo", "expand")
144
- }, [vue.createVNode("img", {
145
- "src": icon
146
- }, null)]);
147
- }
148
128
  let tempContent = vue.createVNode("g", {
149
129
  "id": "app-caption-panel",
150
130
  "stroke": "none",
@@ -185,7 +165,12 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
185
165
  }
186
166
  iconVNode = vue.createVNode("span", {
187
167
  "class": this.ns.e("logo")
188
- }, [tempIcon, vue.createVNode("svg", {
168
+ }, [vue.createVNode(vue.resolveComponent("iBizIcon"), {
169
+ "class": this.ns.em("logo", "expand"),
170
+ "icon": {
171
+ rawContent: icon
172
+ }
173
+ }, null), vue.createVNode("svg", {
189
174
  "width": "166px",
190
175
  "height": "80px",
191
176
  "viewBox": "0 0 166 90",
@@ -224,18 +209,12 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
224
209
  }
225
210
  } else if (this.menuAlign === "TOP") {
226
211
  if (icon) {
227
- if (isSvg) {
228
- iconVNode = vue.createVNode("ion-icon", {
229
- "class": this.ns.e("logo"),
230
- "icon": icon
231
- }, null);
232
- } else {
233
- iconVNode = vue.createVNode("span", {
234
- "class": this.ns.e("logo")
235
- }, [vue.createVNode("img", {
236
- "src": icon
237
- }, null)]);
238
- }
212
+ iconVNode = vue.createVNode(vue.resolveComponent("iBizIcon"), {
213
+ "class": this.ns.e("logo"),
214
+ "icon": {
215
+ rawContent: icon
216
+ }
217
+ }, null);
239
218
  }
240
219
  }
241
220
  if (this.menuAlign === "LEFT") {
@@ -58,7 +58,9 @@ class PanelAppTitleController extends runtime.PanelItemController {
58
58
  } else if (indexViewModel.appIconPath) {
59
59
  this.state.icon = indexViewModel.appIconPath;
60
60
  }
61
- if (indexViewModel.appIconPath2) {
61
+ if (indexViewModel.sysImage && indexViewModel.sysImage.rawContent) {
62
+ this.state.icon2 = indexViewModel.sysImage.rawContent;
63
+ } else if (indexViewModel.appIconPath2) {
62
64
  this.state.icon2 = indexViewModel.appIconPath2;
63
65
  }
64
66
  if (indexViewModel.caption) {