cnhis-design-vue 3.3.3-release.13 → 3.3.3-release.14

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 (57) hide show
  1. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +25 -4
  2. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +22 -4
  3. package/es/components/button-print/src/utils/print.d.ts +3 -3
  4. package/es/components/button-print/src/utils/print.js +11 -0
  5. package/es/components/calendar/src/Calendar.vue2.js +15 -5
  6. package/es/components/classification/index.d.ts +500 -5
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +500 -5
  8. package/es/components/classification/src/components/set-classification/index.vue.d.ts +500 -5
  9. package/es/components/classification/src/index.vue.d.ts +500 -5
  10. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
  11. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  12. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
  13. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
  14. package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
  15. package/es/components/form-render/src/components/renderer/date.js +12 -10
  16. package/es/components/form-render/src/components/renderer/radio_checkbox.js +7 -2
  17. package/es/components/form-render/style/index.css +1 -1
  18. package/es/components/iho-chat/index.d.ts +1 -1
  19. package/es/components/iho-chat/src/Index.vue.d.ts +1 -1
  20. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +0 -2
  21. package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
  22. package/es/components/iho-chat/src/hooks/useVideo.js +12 -14
  23. package/es/components/index.css +1 -1
  24. package/es/components/index.js +1 -1
  25. package/es/components/keyboard/index.d.ts +1 -0
  26. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -0
  27. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +1 -0
  28. package/es/components/keyboard/src/components/NumberPanel.vue2.js +23 -10
  29. package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
  30. package/es/components/table-filter/index.js +1 -1
  31. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +490 -1
  32. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
  33. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
  34. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
  35. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
  36. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +238 -0
  37. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
  38. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +239 -1
  39. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +51 -8
  40. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +477 -1
  41. package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
  42. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
  43. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +500 -5
  44. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +13 -6
  45. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  46. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  47. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  48. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
  49. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
  50. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
  51. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
  52. package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
  53. package/es/components/table-filter/src/types/enums.d.ts +4 -0
  54. package/es/components/table-filter/src/types/enums.js +5 -1
  55. package/es/shared/hooks/useDateTime.js +1 -1
  56. package/es/shared/package.json.js +2 -2
  57. package/package.json +4 -4
@@ -535,18 +535,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
535
535
  };
536
536
  const callLocalServicesErrorCb = (res) => {
537
537
  toggleExpandLoading(false);
538
+ let info = {
539
+ formatId: state.currentFormatId,
540
+ templateId: getTemplateIdByFormatId.value,
541
+ templateCode: getTemplateCodeByFormatId.value
542
+ };
538
543
  encapBrowserLog({
539
544
  type: "\u8FDB\u5165\u5931\u8D25\u7684\u56DE\u8C03",
540
545
  res
541
546
  }, "PRINT-SDK");
542
- emit("error", res);
547
+ emit("error", res, info);
543
548
  if (isObject(res) && res.type === "notInstalledApp") {
544
549
  $message.error(res.message);
545
550
  }
546
551
  };
547
552
  const callLocalServicesCancelCb = (res) => {
548
553
  toggleExpandLoading(false);
549
- emit("cancel", res);
554
+ let info = {
555
+ formatId: state.currentFormatId,
556
+ templateId: getTemplateIdByFormatId.value,
557
+ templateCode: getTemplateCodeByFormatId.value
558
+ };
559
+ emit("cancel", res, info);
550
560
  };
551
561
  const prevFnError = (type) => {
552
562
  const error = {
@@ -561,7 +571,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
561
571
  type,
562
572
  preExecution: true
563
573
  };
564
- emit("error", error);
574
+ let info = {
575
+ formatId: state.currentFormatId,
576
+ templateId: getTemplateIdByFormatId.value,
577
+ templateCode: getTemplateCodeByFormatId.value
578
+ };
579
+ emit("error", error, info);
565
580
  };
566
581
  const getPrintParams = () => {
567
582
  return JSON.stringify({
@@ -779,9 +794,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
779
794
  templateId,
780
795
  params: curPrintParamList
781
796
  }).then(() => {
797
+ var _a;
782
798
  state.curPrintParamList = curPrintParamList;
783
799
  const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), curPrintParamList[0], printCustomProps.value));
784
800
  const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(curPrintParamList, templateCode);
801
+ const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == formatId);
785
802
  const queryParams = {
786
803
  formatId,
787
804
  templateId,
@@ -794,7 +811,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
794
811
  resolution: props == null ? void 0 : props.resolution
795
812
  },
796
813
  params,
797
- signature: props.signature
814
+ signature: props.signature,
815
+ formatItem: curFormatIdObj
798
816
  };
799
817
  printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "preview"), callLocalServicesErrorCb);
800
818
  }).catch(() => {
@@ -1169,6 +1187,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1169
1187
  state.originParams = formatSomeOriginParams(state.templateParams, props.params);
1170
1188
  };
1171
1189
  const verifiySuccess = (token) => {
1190
+ var _a;
1172
1191
  state.identityVerification.visible = false;
1173
1192
  if (isIReport(state.currentFormatId))
1174
1193
  return callLocalServicesSuccessCb({
@@ -1177,10 +1196,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1177
1196
  }, "edit");
1178
1197
  const paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(getPrintParams()), state.curPrintParamList[0], printCustomProps.value));
1179
1198
  const params = props.strategy === "MULTI" ? paramsFirst : getOnceParams(state.curPrintParamList, getTemplateCodeByFormatId.value);
1199
+ const curFormatIdObj = (_a = state == null ? void 0 : state.formatList) == null ? void 0 : _a.find((item) => item.id == state.currentFormatId);
1180
1200
  const queryParams = {
1181
1201
  formatId: state.currentFormatId,
1182
1202
  number: state.number,
1183
1203
  templateId: getTemplateIdByFormatId.value,
1204
+ formatItem: curFormatIdObj,
1184
1205
  params,
1185
1206
  token
1186
1207
  };
@@ -274,14 +274,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
274
274
  };
275
275
  const callLocalServicesErrorCb = (res) => {
276
276
  state.spinning = false;
277
- emit("error", res);
277
+ let info = {
278
+ formatId: state.currentFormatId,
279
+ templateId: getTemplateIdByFormatId.value
280
+ };
281
+ emit("error", res, info);
278
282
  if (isObject(res) && res.type === "notInstalledApp") {
279
283
  $message.error(res.message);
280
284
  }
281
285
  };
282
286
  const callLocalServicesCancelCb = (res) => {
283
287
  state.spinning = false;
284
- emit("cancel", res);
288
+ let info = {
289
+ formatId: state.currentFormatId,
290
+ templateId: getTemplateIdByFormatId.value
291
+ };
292
+ emit("cancel", res, info);
285
293
  };
286
294
  const prevFnError = (type) => {
287
295
  const error = {
@@ -296,7 +304,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
296
304
  type,
297
305
  preExecution: true
298
306
  };
299
- emit("error", error);
307
+ let info = {
308
+ formatId: state.currentFormatId,
309
+ templateId: getTemplateIdByFormatId.value
310
+ };
311
+ emit("error", error, info);
300
312
  };
301
313
  const getPrintParams = (index = 0) => {
302
314
  var _a2;
@@ -434,7 +446,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
434
446
  formatId: state.currentFormatId,
435
447
  templateId: getTemplateIdByFormatId.value
436
448
  }).then(() => {
449
+ var _a2;
437
450
  const params = props.strategy === "MULTI" ? getPrintParams() : getOnceParams();
451
+ const curFormatIdObj = (_a2 = state == null ? void 0 : state.formatList) == null ? void 0 : _a2.find((item) => item.id == state.currentFormatId);
438
452
  const queryParams = {
439
453
  formatId: state.currentFormatId,
440
454
  iReportExecuteMode: state.iReportExecuteMode,
@@ -447,7 +461,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
447
461
  resolution: props == null ? void 0 : props.resolution
448
462
  },
449
463
  params,
450
- signature: props.signature
464
+ signature: props.signature,
465
+ formatItem: curFormatIdObj
451
466
  };
452
467
  printInstance.downloadPDF(queryParams, (res) => callLocalServicesSuccessCb(res, "download"), callLocalServicesErrorCb);
453
468
  }).catch(() => {
@@ -711,13 +726,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
711
726
  state.printParams = formatParams(state.templateParams, props.params);
712
727
  };
713
728
  const verifiySuccess = (token) => {
729
+ var _a2;
714
730
  state.identityVerification.visible = false;
715
731
  if (isIReport(state.currentFormatId))
716
732
  return callLocalServicesSuccessCb(null, "edit");
733
+ const curFormatIdObj = (_a2 = state == null ? void 0 : state.formatList) == null ? void 0 : _a2.find((item) => item.id == state.currentFormatId);
717
734
  const queryParams = {
718
735
  formatId: state.currentFormatId,
719
736
  number: state.number,
720
737
  templateId: getTemplateIdByFormatId.value,
738
+ formatItem: curFormatIdObj,
721
739
  params: getPrintParams(),
722
740
  token
723
741
  };
@@ -57,8 +57,8 @@ export declare class Print {
57
57
  pageCount: any;
58
58
  formatId: string;
59
59
  };
60
- _handleEventDirect({ templateId, formatId, number, svrUpdateIp, apptype, printname, uuid, priority, hideButtons, params, paramsArr, cmdid, print, signature, copies, printdlgshow, nobillnode, btnprint, messageTimeout }: AnyObject): Promise<any>;
61
- _handleEventEditFormat({ templateId, formatId, number, params, token, messageTimeout }: AnyObject): Promise<any>;
60
+ _handleEventDirect({ templateId, formatId, number, svrUpdateIp, apptype, printname, uuid, priority, hideButtons, params, paramsArr, cmdid, print, signature, copies, printdlgshow, watermark, nobillnode, btnprint, messageTimeout }: AnyObject): Promise<any>;
61
+ _handleEventEditFormat({ templateId, formatId, number, watermark, params, token, messageTimeout }: AnyObject): Promise<any>;
62
62
  _queryProxyOrigin(): Promise<void>;
63
63
  _queryPrintFile(formatId: string, params?: string): Promise<any>;
64
64
  paramsSerializer(params: AnyObject): AnyObject;
@@ -85,6 +85,6 @@ export declare class Print {
85
85
  formatId: string;
86
86
  }>;
87
87
  printFileData({ formatId, file, printerName }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | AnyObject>;
88
- editPrintFormat({ templateId, formatId, number, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
88
+ editPrintFormat({ templateId, formatId, number, formatItem, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
89
89
  addPrintFormat({ templateId, params, token }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
90
90
  }
@@ -699,6 +699,7 @@ class Print {
699
699
  signature,
700
700
  copies,
701
701
  printdlgshow = "0",
702
+ watermark,
702
703
  nobillnode = "1",
703
704
  btnprint = "1",
704
705
  messageTimeout = 0
@@ -717,6 +718,7 @@ class Print {
717
718
  cmdid,
718
719
  nobillnode,
719
720
  printdlgshow,
721
+ watermark,
720
722
  btnprint,
721
723
  copies,
722
724
  messageTimeout,
@@ -748,6 +750,7 @@ class Print {
748
750
  templateId,
749
751
  formatId = "",
750
752
  number,
753
+ watermark,
751
754
  params = "",
752
755
  token,
753
756
  messageTimeout = 0
@@ -763,6 +766,7 @@ class Print {
763
766
  templateId,
764
767
  formatId,
765
768
  number,
769
+ watermark,
766
770
  cmdid: "9",
767
771
  token,
768
772
  params: JSON.stringify(formatParams),
@@ -925,6 +929,7 @@ class Print {
925
929
  try {
926
930
  const hideButtonsValue = hideButtons ? hideButtons : (formatItem == null ? void 0 : formatItem.previewCanExport) === void 0 || (formatItem == null ? void 0 : formatItem.previewCanExport) ? void 0 : "Export";
927
931
  const btnprintValue = btnprint != "1" ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
932
+ const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
928
933
  const result = await this._handleEventDirect({
929
934
  templateId,
930
935
  number,
@@ -932,6 +937,7 @@ class Print {
932
937
  params,
933
938
  paramsArr,
934
939
  cmdid: this.isRemote ? PRINT_CMD_ID : PREVIEW_CMD_ID,
940
+ watermark,
935
941
  signature,
936
942
  btnprint: btnprintValue,
937
943
  hideButtons: hideButtonsValue,
@@ -1142,6 +1148,7 @@ class Print {
1142
1148
  this._notifyPrintQueueMap.callback.set(uuid, printQueueCallbackFn);
1143
1149
  }
1144
1150
  const printdlgshowValue = printdlgshow != "0" ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
1151
+ const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
1145
1152
  const result = await this._handleEventDirect({
1146
1153
  templateId,
1147
1154
  number,
@@ -1152,6 +1159,7 @@ class Print {
1152
1159
  print,
1153
1160
  signature,
1154
1161
  printdlgshow: printdlgshowValue,
1162
+ watermark,
1155
1163
  nobillnode,
1156
1164
  copies,
1157
1165
  svrUpdateIp,
@@ -1364,6 +1372,7 @@ class Print {
1364
1372
  templateId,
1365
1373
  formatId,
1366
1374
  number,
1375
+ formatItem,
1367
1376
  params,
1368
1377
  token,
1369
1378
  messageTimeout = 0
@@ -1371,9 +1380,11 @@ class Print {
1371
1380
  const testResult = await this._testConnection();
1372
1381
  if (!this._handleResultTest(testResult, errorCallbackFn))
1373
1382
  return false;
1383
+ const watermark = (formatItem == null ? void 0 : formatItem.showWatermark) ? "1" : void 0;
1374
1384
  const result = await this._handleEventEditFormat({
1375
1385
  templateId,
1376
1386
  formatId,
1387
+ watermark,
1377
1388
  number,
1378
1389
  params,
1379
1390
  token,
@@ -114,7 +114,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
114
114
  eventContent: eventContentRender,
115
115
  resourceLabelContent: resourceLabelContentRender,
116
116
  select: (...args) => emit("select", ...args),
117
- eventDrop: (...args) => emit("eventDrag", ...args),
117
+ eventDrop: (...args) => {
118
+ var _a, _b;
119
+ const [info] = args;
120
+ const eventId = info.event.id;
121
+ const targetEvent = props.events.find((event) => event.id === eventId);
122
+ if (targetEvent && targetEvent.resourceEditable === false) {
123
+ const oldResourceId = (_a = info.oldResource) == null ? void 0 : _a.id;
124
+ const newResourceId = (_b = info.newResource) == null ? void 0 : _b.id;
125
+ if (oldResourceId !== newResourceId) {
126
+ return;
127
+ }
128
+ }
129
+ emit("eventDrag", ...args);
130
+ },
118
131
  eventResize: (...args) => emit("eventResize", ...args),
119
132
  eventClick: (...args) => emit("eventClick", ...args)
120
133
  });
@@ -200,10 +213,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
200
213
  immediate: true
201
214
  });
202
215
  watch(() => props.events, (events) => {
203
- calendarOptions.events = cloneDeep(events).map((event) => ({
204
- ...event,
205
- resourceEditable: false
206
- }));
216
+ calendarOptions.events = cloneDeep(events);
207
217
  }, {
208
218
  deep: true,
209
219
  immediate: true