cnhis-design-vue 3.3.3-beta.73 → 3.3.3-beta.75

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 (59) hide show
  1. package/README.md +87 -87
  2. package/es/components/big-table/src/hooks/useBatchEditing.js +25 -24
  3. package/es/components/classification/index.d.ts +16 -258
  4. package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -258
  5. package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -258
  6. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  7. package/es/components/classification/src/index.vue.d.ts +16 -258
  8. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  9. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  10. package/es/components/form-render/src/constants/index.d.ts +1 -1
  11. package/es/components/iho-chat/index.d.ts +19 -2
  12. package/es/components/iho-chat/src/Index.vue.d.ts +19 -2
  13. package/es/components/iho-chat/src/Index.vue2.js +14 -6
  14. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  15. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  16. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +0 -1
  17. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +0 -20
  18. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  19. package/es/components/iho-chat/src/components/Video.vue.d.ts +6 -1
  20. package/es/components/iho-chat/src/components/Video.vue2.js +23 -11
  21. package/es/components/iho-chat/src/hooks/useVideo.d.ts +8 -8
  22. package/es/components/iho-chat/src/hooks/useVideo.js +22 -2
  23. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  24. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -22
  25. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
  26. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
  27. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
  28. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  29. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  30. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  31. package/es/components/info-header/index.d.ts +9 -17
  32. package/es/components/info-header/src/InfoHeader.vue.d.ts +9 -17
  33. package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
  34. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -2
  35. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
  36. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -17
  37. package/es/components/info-header/src/constants/index.d.ts +1 -1
  38. package/es/components/search-cascader/src/utils/index.d.ts +1 -1
  39. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  40. package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
  41. package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
  42. package/es/components/shortcut-provider/src/utils/index.js +3 -1
  43. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -258
  44. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +7 -129
  45. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +107 -13
  46. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +7 -129
  47. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +7 -129
  48. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +2 -8
  49. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -258
  50. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +26 -1
  51. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -258
  52. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +3 -1
  53. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +16 -1
  54. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  55. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  56. package/es/components/table-filter/src/types/enums.js +1 -0
  57. package/es/env.d.ts +25 -25
  58. package/es/shared/package.json.js +1 -1
  59. package/package.json +2 -3
@@ -165,7 +165,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
165
165
  startTimer();
166
166
  }
167
167
  installEventHandlers({
168
- handleError,
169
168
  handleRemoteUserEnter,
170
169
  handleRemoteAudioAvailable,
171
170
  handleRemoteUserExit,
@@ -189,7 +188,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
189
188
  try {
190
189
  state.showVideo = false;
191
190
  uninstallEventHandlers({
192
- handleError,
193
191
  handleRemoteUserEnter,
194
192
  handleRemoteAudioAvailable,
195
193
  handleRemoteUserExit,
@@ -232,21 +230,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
232
230
  console.log("Remote user exited:", event.userId);
233
231
  handleExit();
234
232
  }
235
- function handleError(error) {
236
- console.error("TRTC error in single video:", error);
237
- $message.error("\u89C6\u9891\u901A\u8BDD\u51FA\u73B0\u9519\u8BEF");
238
- state.showVideo = false;
239
- }
240
- watch(() => status.value, (value) => {
233
+ const statusHandlers = {
234
+ [AV_STATUS.IN_CALL]: () => init(),
235
+ [AV_STATUS.CALL_BUSY]: () => {
236
+ $message.error("\u5BF9\u65B9\u7E41\u5FD9\uFF01");
237
+ handleExit();
238
+ },
239
+ [AV_STATUS.NO_RESPONSE]: () => {
240
+ $message.error("\u5BF9\u65B9\u672A\u63A5\u542C!");
241
+ handleExit();
242
+ },
243
+ [AV_STATUS.REJECTED]: () => {
244
+ $message.error("\u5BF9\u65B9\u5DF2\u62D2\u7EDD!");
245
+ handleExit();
246
+ }
247
+ };
248
+ watch(status, (newStatus, oldStatus) => {
249
+ if (newStatus === oldStatus)
250
+ return;
241
251
  if (!state.showVideo)
242
252
  return;
243
- if (value === AV_STATUS.IN_CALL) {
244
- init();
253
+ const handler = statusHandlers[newStatus];
254
+ if (handler) {
255
+ handler();
245
256
  } else {
246
257
  handleExit();
247
258
  }
248
259
  }, {
249
- immediate: true
260
+ immediate: true,
261
+ flush: "post"
250
262
  });
251
263
  onBeforeUnmount(() => {
252
264
  handleExit();
@@ -1,3 +1,4 @@
1
+ import { Ref } from 'vue';
1
2
  import TRTC from 'trtc-sdk-v5';
2
3
  import { AnyFn } from '../../../../shared/types';
3
4
  export interface RemoteUser {
@@ -12,7 +13,6 @@ export interface TRTCEvent {
12
13
  available?: boolean;
13
14
  }
14
15
  export interface VideoEventHandlers {
15
- handleError: AnyFn;
16
16
  handleRemoteUserEnter: AnyFn;
17
17
  handleRemoteAudioAvailable: AnyFn;
18
18
  handleRemoteUserExit: AnyFn;
@@ -79,17 +79,17 @@ export declare function useVideo(config?: VideoConfig): {
79
79
  };
80
80
  isForward: boolean;
81
81
  };
82
- trtcProxy: import("vue").Ref<any>;
82
+ trtcProxy: Ref<any>;
83
83
  sendMessage: (message: {
84
84
  chatType?: string | undefined;
85
85
  content: import("../../../../shared/types").AnyObject;
86
86
  receiver?: string | undefined;
87
87
  }) => Promise<void>;
88
88
  trtc: TRTC;
89
- timing: import("vue").Ref<string>;
90
- voiceClose: import("vue").Ref<boolean>;
91
- videocamClose: import("vue").Ref<boolean>;
92
- isConnect: import("vue").Ref<boolean>;
89
+ timing: Ref<string>;
90
+ voiceClose: Ref<boolean>;
91
+ videocamClose: Ref<boolean>;
92
+ isConnect: Ref<boolean>;
93
93
  isAudio: import("vue").ComputedRef<boolean>;
94
94
  isCall: import("vue").ComputedRef<boolean>;
95
95
  messageTypeText: import("vue").ComputedRef<"语音" | "视频">;
@@ -97,13 +97,13 @@ export declare function useVideo(config?: VideoConfig): {
97
97
  timer: any;
98
98
  seconds: number;
99
99
  };
100
- remoteUsers: import("vue").Ref<{
100
+ remoteUsers: Ref<{
101
101
  id: string;
102
102
  name: string;
103
103
  hasVideo?: boolean | undefined;
104
104
  hasAudio?: boolean | undefined;
105
105
  }[]>;
106
- videoRefs: import("vue").Ref<Map<string, HTMLElement>>;
106
+ videoRefs: Ref<Map<string, HTMLElement>>;
107
107
  startTimer: () => void;
108
108
  resetTimer: () => void;
109
109
  toggleAudio: () => Promise<void>;
@@ -378,12 +378,32 @@ function useVideo(config = {}) {
378
378
  }
379
379
  }
380
380
  }
381
+ function handleError(error) {
382
+ console.error("TRTC error occurred:", error);
383
+ if (error.code) {
384
+ switch (error.code) {
385
+ case -3301:
386
+ $message.error("\u8FDB\u5165\u623F\u95F4\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5");
387
+ break;
388
+ case -3302:
389
+ $message.warning("\u7F51\u7EDC\u8FDE\u63A5\u65AD\u5F00\uFF0C\u6B63\u5728\u5C1D\u8BD5\u91CD\u8FDE...");
390
+ break;
391
+ case TRTC.ERROR_CODE.DEVICE_ERROR:
392
+ $message.warning("\u83B7\u53D6\u8BBE\u5907\u6216\u8005\u91C7\u96C6\u97F3\u89C6\u9891\u51FA\u73B0\u5F02\u5E38");
393
+ break;
394
+ default:
395
+ $message.error(`\u901A\u8BDD\u51FA\u73B0\u9519\u8BEF: ${error.message || "\u672A\u77E5\u9519\u8BEF"}`);
396
+ }
397
+ } else {
398
+ $message.error("\u901A\u8BDD\u51FA\u73B0\u672A\u77E5\u9519\u8BEF");
399
+ }
400
+ }
381
401
  function installEventHandlers(handlers) {
382
402
  console.log("Installing TRTC event handlers...");
383
403
  const wrappedHandlers = {
384
404
  handleError: (error) => {
385
405
  console.log("TRTC EVENT: ERROR", error);
386
- handlers.handleError(error);
406
+ handleError(error);
387
407
  },
388
408
  handleRemoteUserEnter: (event) => {
389
409
  console.log("TRTC EVENT: REMOTE_USER_ENTER", event);
@@ -419,7 +439,7 @@ function useVideo(config = {}) {
419
439
  }
420
440
  }
421
441
  function uninstallEventHandlers(handlers) {
422
- trtc.off(TRTC.EVENT.ERROR, handlers.handleError);
442
+ trtc.off(TRTC.EVENT.ERROR, handleError);
423
443
  trtc.off(TRTC.EVENT.REMOTE_USER_ENTER, handlers.handleRemoteUserEnter);
424
444
  trtc.off(TRTC.EVENT.REMOTE_AUDIO_AVAILABLE, handlers.handleRemoteAudioAvailable);
425
445
  trtc.off(TRTC.EVENT.REMOTE_USER_EXIT, handlers.handleRemoteUserExit);
@@ -39,7 +39,7 @@ function dateRendererPlugin() {
39
39
  });
40
40
  },
41
41
  apply(hooks) {
42
- useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.DATE, ".n-input__input-el", {
42
+ useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.DATE, ".n-input__input-el", {
43
43
  after: (fieldItem) => {
44
44
  Reflect.set(fieldItem.editRender, "autoselect", true);
45
45
  return fieldItem;
@@ -4,28 +4,6 @@ function useAutoFocus(hooks) {
4
4
  after,
5
5
  focusType = "function"
6
6
  } = {}) {
7
- hooks.fieldHooks.field.tap(pluginName, (fieldItem) => {
8
- var _a;
9
- function createAutoFocusFn(selector2) {
10
- const autofocusFn = ({
11
- cell
12
- } = {}) => {
13
- const ele = cell && cell.querySelector(selector2);
14
- ele && ele.click();
15
- return ele;
16
- };
17
- autofocusFn.toString = () => selector2;
18
- return autofocusFn;
19
- }
20
- if (((_a = fieldItem.editRender) == null ? void 0 : _a.name) === type) {
21
- fieldItem = before ? before(fieldItem) : fieldItem;
22
- if (fieldItem.editRender && !Reflect.has(fieldItem.editRender, "autofocus")) {
23
- Reflect.set(fieldItem.editRender, "autofocus", focusType === "class" ? selector : focusType === "function" ? createAutoFocusFn(selector) : void 0);
24
- }
25
- return after ? after(fieldItem) : fieldItem;
26
- }
27
- return fieldItem;
28
- });
29
7
  }
30
8
  return {
31
9
  bindAutoFocusConfig
@@ -97,7 +97,7 @@ function inputRendererPlugin() {
97
97
  });
98
98
  },
99
99
  apply(hooks) {
100
- useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.INPUT, ".n-input__input-el,.n-input__textarea-el", {
100
+ useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.INPUT, ".n-input__input-el,.n-input__textarea-el", {
101
101
  focusType: "class"
102
102
  });
103
103
  }
@@ -81,7 +81,7 @@ function levelSearchCascadePlugin() {
81
81
  });
82
82
  },
83
83
  apply(hooks) {
84
- useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.LEVEL_SEARCH_CASCADE, "input");
84
+ useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.LEVEL_SEARCH_CASCADE, "input");
85
85
  }
86
86
  });
87
87
  }
@@ -99,7 +99,7 @@ function numberRendererPlugin() {
99
99
  });
100
100
  },
101
101
  apply(hooks) {
102
- useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.NUMBER, ".n-input__input-el", {
102
+ useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.NUMBER, ".n-input__input-el", {
103
103
  focusType: "class"
104
104
  });
105
105
  }
@@ -96,7 +96,7 @@ function selectRendererPlugin() {
96
96
  });
97
97
  },
98
98
  apply(hooks) {
99
- useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SELECT, ".n-base-selection-input,.n-base-selection-tags");
99
+ useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SELECT, ".n-base-selection-input,.n-base-selection-tags");
100
100
  hooks.fieldHooks.fieldList.tap(pluginName, (fieldList, {
101
101
  uuid
102
102
  }) => {
@@ -96,7 +96,7 @@ function separateRendererPlugins() {
96
96
  });
97
97
  },
98
98
  apply(hooks) {
99
- useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SEPARATE, ".iho-table__separateText");
99
+ useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.SEPARATE, ".iho-table__separateText");
100
100
  hooks.eventHooks.onEditClosed.tap(pluginName, ({
101
101
  row,
102
102
  column,
@@ -36,7 +36,7 @@ function timeRendererPlugin() {
36
36
  });
37
37
  },
38
38
  apply(hooks) {
39
- useAutoFocus(hooks).bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.TIME, ".n-input__input-el", {
39
+ useAutoFocus().bindAutoFocusConfig(pluginName, EDITABLE_WIDGET_TYPE.TIME, ".n-input__input-el", {
40
40
  after: (fieldItem) => {
41
41
  Reflect.set(fieldItem.editRender, "autoselect", true);
42
42
  return fieldItem;
@@ -438,7 +438,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
438
438
  };
439
439
  encrypted: {
440
440
  type: BooleanConstructor;
441
- required: true;
441
+ required: false;
442
442
  };
443
443
  }, {
444
444
  props: {
@@ -566,10 +566,10 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
566
566
  linebreaksToTitle: boolean;
567
567
  dialogFn: any;
568
568
  }>>;
569
- encrypted: boolean;
569
+ encrypted?: boolean | undefined;
570
570
  };
571
571
  themeOverrides: import("naive-ui").GlobalThemeOverrides;
572
- globEmit: ((eventName: string, ...payload: any[]) => void) | undefined;
572
+ globEmit: ((eventName: "openPatientInfo" | "fieldSet" | "update:compact" | "formChange", ...payload: any[]) => void) | undefined;
573
573
  hasForm: import("vue").ComputedRef<boolean>;
574
574
  initialData: import("vue").ComputedRef<Record<string, any>>;
575
575
  onFormChange: (payload: import("..").FormChangePayload) => void;
@@ -577,17 +577,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
577
577
  columnNum: import("vue").Ref<number>;
578
578
  infoRef: import("vue").Ref<HTMLElement | undefined>;
579
579
  maxColumnWidth: import("vue").Ref<number>;
580
- descriptionWidthList: import("vue").Ref<{
581
- toString: (radix?: number | undefined) => string;
582
- toFixed: (fractionDigits?: number | undefined) => string;
583
- toExponential: (fractionDigits?: number | undefined) => string;
584
- toPrecision: (precision?: number | undefined) => string;
585
- valueOf: () => number;
586
- toLocaleString: {
587
- (locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
588
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
589
- };
590
- }[]>;
580
+ descriptionWidthList: import("vue").Ref<number[]>;
591
581
  updateColumn: () => Promise<void>;
592
582
  timer: any;
593
583
  stopInterval: () => void;
@@ -630,7 +620,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
630
620
  };
631
621
  encrypted: {
632
622
  type: BooleanConstructor;
633
- required: true;
623
+ required: false;
634
624
  };
635
625
  }, {
636
626
  descriptionStyle: {
@@ -1155,12 +1145,13 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
1155
1145
  };
1156
1146
  encrypted: {
1157
1147
  type: BooleanConstructor;
1158
- required: true;
1148
+ required: false;
1159
1149
  };
1160
1150
  }>>, {
1161
1151
  infoList: unknown[];
1162
1152
  labelField: string;
1163
1153
  valueField: string;
1154
+ encrypted: boolean;
1164
1155
  descriptionWidthList: unknown[];
1165
1156
  columnNum: number;
1166
1157
  inForm: boolean;
@@ -2230,7 +2221,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2230
2221
  };
2231
2222
  encrypted: {
2232
2223
  type: BooleanConstructor;
2233
- required: true;
2224
+ required: false;
2234
2225
  };
2235
2226
  }>>, {
2236
2227
  infoList: unknown[];
@@ -2238,6 +2229,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2238
2229
  valueField: string;
2239
2230
  minColumnWidth: string | number;
2240
2231
  formProps: Record<string, any>;
2232
+ encrypted: boolean;
2241
2233
  }>;
2242
2234
  PatientInfo: import("vue").DefineComponent<{
2243
2235
  patientInfo: {
@@ -432,7 +432,7 @@ declare const _default: import("vue").DefineComponent<{
432
432
  };
433
433
  encrypted: {
434
434
  type: BooleanConstructor;
435
- required: true;
435
+ required: false;
436
436
  };
437
437
  }, {
438
438
  props: {
@@ -560,10 +560,10 @@ declare const _default: import("vue").DefineComponent<{
560
560
  linebreaksToTitle: boolean;
561
561
  dialogFn: any;
562
562
  }>>;
563
- encrypted: boolean;
563
+ encrypted?: boolean | undefined;
564
564
  };
565
565
  themeOverrides: import("naive-ui").GlobalThemeOverrides;
566
- globEmit: ((eventName: string, ...payload: any[]) => void) | undefined;
566
+ globEmit: ((eventName: "openPatientInfo" | "fieldSet" | "update:compact" | "formChange", ...payload: any[]) => void) | undefined;
567
567
  hasForm: import("vue").ComputedRef<boolean>;
568
568
  initialData: import("vue").ComputedRef<Record<string, any>>;
569
569
  onFormChange: (payload: import("../../../components/form-render").FormChangePayload) => void;
@@ -571,17 +571,7 @@ declare const _default: import("vue").DefineComponent<{
571
571
  columnNum: import("vue").Ref<number>;
572
572
  infoRef: import("vue").Ref<HTMLElement | undefined>;
573
573
  maxColumnWidth: import("vue").Ref<number>;
574
- descriptionWidthList: import("vue").Ref<{
575
- toString: (radix?: number | undefined) => string;
576
- toFixed: (fractionDigits?: number | undefined) => string;
577
- toExponential: (fractionDigits?: number | undefined) => string;
578
- toPrecision: (precision?: number | undefined) => string;
579
- valueOf: () => number;
580
- toLocaleString: {
581
- (locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
582
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
583
- };
584
- }[]>;
574
+ descriptionWidthList: import("vue").Ref<number[]>;
585
575
  updateColumn: () => Promise<void>;
586
576
  timer: any;
587
577
  stopInterval: () => void;
@@ -624,7 +614,7 @@ declare const _default: import("vue").DefineComponent<{
624
614
  };
625
615
  encrypted: {
626
616
  type: BooleanConstructor;
627
- required: true;
617
+ required: false;
628
618
  };
629
619
  }, {
630
620
  descriptionStyle: {
@@ -1149,12 +1139,13 @@ declare const _default: import("vue").DefineComponent<{
1149
1139
  };
1150
1140
  encrypted: {
1151
1141
  type: BooleanConstructor;
1152
- required: true;
1142
+ required: false;
1153
1143
  };
1154
1144
  }>>, {
1155
1145
  infoList: unknown[];
1156
1146
  labelField: string;
1157
1147
  valueField: string;
1148
+ encrypted: boolean;
1158
1149
  descriptionWidthList: unknown[];
1159
1150
  columnNum: number;
1160
1151
  inForm: boolean;
@@ -2224,7 +2215,7 @@ declare const _default: import("vue").DefineComponent<{
2224
2215
  };
2225
2216
  encrypted: {
2226
2217
  type: BooleanConstructor;
2227
- required: true;
2218
+ required: false;
2228
2219
  };
2229
2220
  }>>, {
2230
2221
  infoList: unknown[];
@@ -2232,6 +2223,7 @@ declare const _default: import("vue").DefineComponent<{
2232
2223
  valueField: string;
2233
2224
  minColumnWidth: string | number;
2234
2225
  formProps: Record<string, any>;
2226
+ encrypted: boolean;
2235
2227
  }>;
2236
2228
  PatientInfo: import("vue").DefineComponent<{
2237
2229
  patientInfo: {
@@ -176,9 +176,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
176
176
  }, _ctx.$props), {
177
177
  info: withCtx(() => [createCommentVNode(" \u4FE1\u606F\u63CF\u8FF0\u533A\u63D2\u69FD "), renderSlot(_ctx.$slots, "info")]),
178
178
  _: 3
179
- }, 16, ["root-slot"]), createElementVNode("section", _hoisted_3, [createCommentVNode(" \u8BBE\u7F6E\u533A\u63D2\u69FD "), renderSlot(_ctx.$slots, "setting", {}, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(settingIconList), (item) => {
179
+ }, 16, ["root-slot"]), createElementVNode("section", _hoisted_3, [createCommentVNode(" \u8BBE\u7F6E\u533A\u63D2\u69FD "), renderSlot(_ctx.$slots, "setting", {}, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(settingIconList), (item, index) => {
180
180
  return openBlock(), createElementBlock("div", {
181
- key: item,
181
+ key: index,
182
182
  class: "c-info-header__settingIcon",
183
183
  onClick: item.event
184
184
  }, [(openBlock(), createBlock(resolveDynamicComponent(item.render)))], 8, _hoisted_4);
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
35
35
  };
36
36
  encrypted: {
37
37
  type: BooleanConstructor;
38
- required: true;
38
+ required: false;
39
39
  };
40
40
  }, {
41
41
  descriptionStyle: {
@@ -560,12 +560,13 @@ declare const _default: import("vue").DefineComponent<{
560
560
  };
561
561
  encrypted: {
562
562
  type: BooleanConstructor;
563
- required: true;
563
+ required: false;
564
564
  };
565
565
  }>>, {
566
566
  infoList: unknown[];
567
567
  labelField: string;
568
568
  valueField: string;
569
+ encrypted: boolean;
569
570
  descriptionWidthList: unknown[];
570
571
  columnNum: number;
571
572
  inForm: boolean;
@@ -55,7 +55,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  "root-slot": __props.rootSlot,
56
56
  "label-field": __props.labelField,
57
57
  "value-field": __props.valueField,
58
- encrypted: __props.encrypted
58
+ encrypted: !!__props.encrypted
59
59
  }, null, 8, ["info-item", "width", "root-slot", "label-field", "value-field", "encrypted"]))]),
60
60
  _: 2
61
61
  }, 1032, ["label"]);
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
33
33
  };
34
34
  encrypted: {
35
35
  type: BooleanConstructor;
36
- required: true;
36
+ required: false;
37
37
  };
38
38
  }, {
39
39
  props: {
@@ -43,10 +43,10 @@ declare const _default: import("vue").DefineComponent<{
43
43
  minColumnWidth: string | number;
44
44
  rootSlot: Record<string, AnyFn>;
45
45
  formProps: Partial<FormRenderProps>;
46
- encrypted: boolean;
46
+ encrypted?: boolean | undefined;
47
47
  };
48
48
  themeOverrides: import("naive-ui").GlobalThemeOverrides;
49
- globEmit: ((eventName: string, ...payload: any[]) => void) | undefined;
49
+ globEmit: ((eventName: "openPatientInfo" | "fieldSet" | "update:compact" | "formChange", ...payload: any[]) => void) | undefined;
50
50
  hasForm: import("vue").ComputedRef<boolean>;
51
51
  initialData: import("vue").ComputedRef<Record<string, any>>;
52
52
  onFormChange: (payload: FormChangePayload) => void;
@@ -54,17 +54,7 @@ declare const _default: import("vue").DefineComponent<{
54
54
  columnNum: import("vue").Ref<number>;
55
55
  infoRef: import("vue").Ref<HTMLElement | undefined>;
56
56
  maxColumnWidth: import("vue").Ref<number>;
57
- descriptionWidthList: import("vue").Ref<{
58
- toString: (radix?: number | undefined) => string;
59
- toFixed: (fractionDigits?: number | undefined) => string;
60
- toExponential: (fractionDigits?: number | undefined) => string;
61
- toPrecision: (precision?: number | undefined) => string;
62
- valueOf: () => number;
63
- toLocaleString: {
64
- (locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
65
- (locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
66
- };
67
- }[]>;
57
+ descriptionWidthList: import("vue").Ref<number[]>;
68
58
  updateColumn: () => Promise<void>;
69
59
  timer: any;
70
60
  stopInterval: () => void;
@@ -107,7 +97,7 @@ declare const _default: import("vue").DefineComponent<{
107
97
  };
108
98
  encrypted: {
109
99
  type: BooleanConstructor;
110
- required: true;
100
+ required: false;
111
101
  };
112
102
  }, {
113
103
  descriptionStyle: {
@@ -632,12 +622,13 @@ declare const _default: import("vue").DefineComponent<{
632
622
  };
633
623
  encrypted: {
634
624
  type: BooleanConstructor;
635
- required: true;
625
+ required: false;
636
626
  };
637
627
  }>>, {
638
628
  infoList: unknown[];
639
629
  labelField: string;
640
630
  valueField: string;
631
+ encrypted: boolean;
641
632
  descriptionWidthList: unknown[];
642
633
  columnNum: number;
643
634
  inForm: boolean;
@@ -1707,7 +1698,7 @@ declare const _default: import("vue").DefineComponent<{
1707
1698
  };
1708
1699
  encrypted: {
1709
1700
  type: BooleanConstructor;
1710
- required: true;
1701
+ required: false;
1711
1702
  };
1712
1703
  }>>, {
1713
1704
  infoList: unknown[];
@@ -1715,5 +1706,6 @@ declare const _default: import("vue").DefineComponent<{
1715
1706
  valueField: string;
1716
1707
  minColumnWidth: string | number;
1717
1708
  formProps: Record<string, any>;
1709
+ encrypted: boolean;
1718
1710
  }>;
1719
1711
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { InjectionKey, Ref } from 'vue';
2
2
  import { FormRenderExpose } from '../../../../components/form-render';
3
3
  export declare const InjectionInfoHeaderFormRef: InjectionKey<Ref<undefined | FormRenderExpose>>;
4
- export declare const InjectionInfoHeaderEmit: InjectionKey<(eventName: string, ...payload: any[]) => void>;
4
+ export declare const InjectionInfoHeaderEmit: InjectionKey<(eventName: 'openPatientInfo' | 'fieldSet' | 'update:compact' | 'formChange', ...payload: any[]) => void>;
@@ -1,2 +1,2 @@
1
1
  import { AnyObject } from '../../../../shared/types';
2
- export declare function getParentNodeList(node: AnyObject): never[];
2
+ export declare function getParentNodeList(node: AnyObject): AnyObject[];
@@ -93,7 +93,7 @@ class ShortcutManager {
93
93
  const shortcutItem = Object.values(this.shortcutCache.value).find((item) => item.currentKeySignature === keySignature);
94
94
  if (!shortcutItem || shortcutItem.status !== ShortcutStatus.ACTIVE || shortcutItem.disabled)
95
95
  return;
96
- if (isInvalidSignatureAtInput(event) && (!shortcutItem.allowPureNumber || !/^\d$/.test(event.key))) {
96
+ if (isInvalidSignatureAtInput(event, shortcutItem.allowSpace) && (!shortcutItem.allowPureNumber || !/^\d$/.test(event.key))) {
97
97
  return;
98
98
  }
99
99
  if (isFunction(shortcutItem.beforeTrigger) && !shortcutItem.beforeTrigger(event))
@@ -37,6 +37,7 @@ export type ShortcutOption = {
37
37
  };
38
38
  triggerOnInput: boolean;
39
39
  allowPureNumber: boolean;
40
+ allowSpace: boolean;
40
41
  beforeTrigger: (event: KeyboardEvent) => boolean;
41
42
  /**
42
43
  * 快捷键编辑组件的操作按钮
@@ -3,7 +3,7 @@ export declare function isKeyboardEvent(event: any): event is KeyboardEvent;
3
3
  export declare function normalizeSignatureInfo(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): Required<ShortcutSignatureInfo>;
4
4
  export declare function getKeySignature(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): string;
5
5
  export declare function inKeyBlackList(key: string): boolean;
6
- export declare function isInvalidSignatureAtInput(info: KeyboardEvent): boolean;
6
+ export declare function isInvalidSignatureAtInput(info: KeyboardEvent, allowSpace?: boolean): boolean;
7
7
  export declare function isInvalidSignature(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): boolean;
8
8
  export declare function getDisplaySignature(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): string;
9
9
  export declare function transformKey2DisplaySignature(keySignature: string): string;
@@ -47,7 +47,7 @@ function inKeyBlackList(key) {
47
47
  return false;
48
48
  return keyBlackList.includes(key.toUpperCase());
49
49
  }
50
- function isInvalidSignatureAtInput(info) {
50
+ function isInvalidSignatureAtInput(info, allowSpace) {
51
51
  const target = info.target;
52
52
  if (target.classList.contains("shortcut-setter-item"))
53
53
  return true;
@@ -61,6 +61,8 @@ function isInvalidSignatureAtInput(info) {
61
61
  return false;
62
62
  if (shift)
63
63
  return isFnNumberChar(key);
64
+ if (key === " ")
65
+ return !allowSpace;
64
66
  return isAlphanumeric(key) || isPunctuation(key);
65
67
  }
66
68
  function isInvalidSignature(info) {