cnhis-design-vue 3.2.15-beta.2 → 3.2.15-beta.20

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 (209) hide show
  1. package/README.md +87 -87
  2. package/es/components/ai-chat/index.d.ts +9 -0
  3. package/es/components/ai-chat/src/Index.vue.d.ts +9 -0
  4. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  5. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  6. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  7. package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
  8. package/es/components/ai-chat/style/index.css +1 -1
  9. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  10. package/es/components/branch-notice/index.d.ts +425 -9
  11. package/es/components/branch-notice/src/BranchNotice.vue.d.ts +378 -9
  12. package/es/components/branch-notice/src/BranchNotice.vue2.js +1 -1
  13. package/es/components/branch-notice/src/canstants.d.ts +2 -1
  14. package/es/components/branch-notice/src/canstants.js +1 -1
  15. package/es/components/branch-notice/src/components/NoticeItem.vue.d.ts +168 -44
  16. package/es/components/branch-notice/src/components/NoticeItem.vue.js +1 -0
  17. package/es/components/branch-notice/src/components/NoticeItem.vue2.js +1 -0
  18. package/es/components/branch-notice/src/components/NoticeItemAside.vue.d.ts +74 -5
  19. package/es/components/branch-notice/src/components/NoticeItemAside.vue.js +1 -0
  20. package/es/components/branch-notice/src/components/NoticeItemAside.vue2.js +1 -0
  21. package/es/components/branch-notice/src/components/NoticeOperationList.vue.js +1 -0
  22. package/es/components/branch-notice/src/components/NoticeOperationList.vue2.js +1 -0
  23. package/es/components/branch-notice/src/drawLine.js +1 -1
  24. package/es/components/branch-notice/src/hooks/useTheme.d.ts +1 -0
  25. package/es/components/branch-notice/src/hooks/useTheme.js +1 -0
  26. package/es/components/branch-notice/src/types.d.ts +22 -4
  27. package/es/components/branch-notice/style/index.css +1 -1
  28. package/es/components/button-print/src/components/IdentityVerification.vue2.js +1 -1
  29. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  30. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  31. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  32. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  33. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  34. package/es/components/classification/src/index.vue2.js +1 -1
  35. package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
  36. package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
  37. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  38. package/es/components/expand-field/src/index.vue2.js +1 -1
  39. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  40. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  43. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  45. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  46. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  47. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  48. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  49. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  50. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  51. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  52. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -0
  53. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  54. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  55. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  56. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  57. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  58. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  59. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  60. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  61. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  62. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -2
  63. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  64. package/es/components/fabric-chart/src/hooks/{temperature/useShadow.d.ts → useShadow.d.ts} +2 -2
  65. package/es/components/fabric-chart/src/hooks/useShadow.js +1 -0
  66. package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
  67. package/es/components/fabric-chart/src/utils/index.js +1 -1
  68. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  69. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  70. package/es/components/field-set/src/FieldFilter.vue.d.ts +3 -2
  71. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  72. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  73. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  74. package/es/components/field-set/src/TableStyle.vue2.js +1 -1
  75. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
  76. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
  77. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  78. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  79. package/es/components/field-set/src/constants/filter.js +1 -1
  80. package/es/components/field-set/src/constants/index.js +1 -1
  81. package/es/components/field-set/src/utils/index.js +1 -1
  82. package/es/components/form-config/index.d.ts +1021 -1
  83. package/es/components/form-config/src/FormConfig.vue.d.ts +1021 -1
  84. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
  85. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  86. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1019 -0
  87. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  88. package/es/components/form-config/src/constants/index.js +1 -1
  89. package/es/components/form-config/src/hooks/useLocale.js +1 -1
  90. package/es/components/form-config/style/index.css +1 -1
  91. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  92. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
  93. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  94. package/es/components/form-render/src/components/renderer/date.js +1 -1
  95. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  96. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  97. package/es/components/form-render/src/components/renderer/select.d.ts +6 -0
  98. package/es/components/form-render/src/components/renderer/select.js +1 -1
  99. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  100. package/es/components/form-render/src/components/renderer/text.js +1 -1
  101. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  102. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  103. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  104. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  105. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  106. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  107. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  108. package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
  109. package/es/components/form-render/src/utils/index.js +1 -1
  110. package/es/components/iho-chat/index.d.ts +518 -83
  111. package/es/components/iho-chat/src/Index.vue.d.ts +518 -83
  112. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  113. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +33 -8
  114. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  115. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +33 -8
  116. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  117. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +33 -8
  118. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +101 -26
  119. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +34 -9
  120. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  121. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +33 -34
  122. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  123. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +34 -9
  124. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  125. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +34 -8
  126. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  127. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +1 -1
  128. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +207 -4
  129. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  130. package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -0
  131. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  132. package/es/components/iho-chat/src/components/userItemRender.d.ts +18 -0
  133. package/es/components/iho-chat/src/components/userItemRender.js +1 -0
  134. package/es/components/iho-chat/src/hooks/useData.d.ts +6 -2
  135. package/es/components/iho-chat/src/hooks/useData.js +1 -1
  136. package/es/components/iho-chat/src/hooks/useVideo.d.ts +1 -0
  137. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  138. package/es/components/iho-chat/src/hooks/useWebSocket.js +1 -1
  139. package/es/components/iho-chat/src/types/index.d.ts +13 -0
  140. package/es/components/iho-chat/src/utils/index.js +1 -1
  141. package/es/components/iho-chat/style/iconfont.ttf +0 -0
  142. package/es/components/iho-chat/style/index.css +1 -1
  143. package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +1 -1
  144. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  145. package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
  146. package/es/components/iho-table/style/index.css +1 -1
  147. package/es/components/index.css +1 -1
  148. package/es/components/info-header/src/components/patientInfo/index.vue2.js +1 -1
  149. package/es/components/keyboard/src/components/NumberPanel.vue2.js +1 -1
  150. package/es/components/map/src/Map.vue2.js +1 -1
  151. package/es/components/quick-search/src/index.vue2.js +1 -1
  152. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  153. package/es/components/scale-view/src/components/formitem/r-sign.js +1 -1
  154. package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -1
  155. package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -1
  156. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  157. package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
  158. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
  159. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  160. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
  161. package/es/components/table-filter/src/components/bi-filter/helpers/options.js +1 -1
  162. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  163. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -1
  164. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  165. package/es/components/template-render/src/components/index.d.ts +23 -23
  166. package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
  167. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +1 -1
  168. package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
  169. package/es/shared/assets/img/ai__avatar.png.js +1 -1
  170. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  171. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  172. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  173. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  174. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  175. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  176. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  177. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  178. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  179. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  180. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  181. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  182. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  183. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  184. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  185. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  186. package/es/shared/assets/img/failure.png.js +1 -1
  187. package/es/shared/assets/img/logo.png.js +1 -1
  188. package/es/shared/assets/img/no-permission.png.js +1 -1
  189. package/es/shared/assets/img/nodata.png.js +1 -1
  190. package/es/shared/assets/img/notfound.png.js +1 -1
  191. package/es/shared/assets/img/qr.png.js +1 -1
  192. package/es/shared/assets/img/success.png.js +1 -1
  193. package/es/shared/assets/img/table_style_2.png.js +1 -1
  194. package/es/shared/assets/img/video.png.js +1 -1
  195. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  196. package/es/shared/assets/img/xb_big.png.js +1 -1
  197. package/es/shared/assets/img/xb_small.png.js +1 -1
  198. package/es/shared/hooks/useLevelSearchCascader.js +1 -1
  199. package/es/shared/package.json.js +1 -1
  200. package/es/shared/types/business.d.ts +4 -0
  201. package/package.json +2 -2
  202. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  203. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  204. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  205. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  206. package/es/components/fabric-chart/src/hooks/temperature/useShadow.js +0 -1
  207. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  208. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  209. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1,9 +1,31 @@
1
- import { arrayed } from '../../../shared/utils';
2
1
  import { PropType } from 'vue';
3
2
  import { BranchNotice } from '../../../components/branch-notice/src/types';
4
3
  declare const _default: import("vue").DefineComponent<{
5
4
  items: {
6
- type: PropType<BranchNotice.Item[]>;
5
+ type: PropType<Partial<{
6
+ header: string | import("../../../shared/types").AnyFn;
7
+ type: "warning" | "normal" | "primary";
8
+ icon: import("../../../shared/types").AnyFn | "warning";
9
+ topText: (string | import("../../../shared/types").AnyFn)[];
10
+ footerText: string | import("../../../shared/types").AnyFn;
11
+ content: string | import("../../../shared/types").AnyFn;
12
+ subContent: string | import("../../../shared/types").AnyFn;
13
+ noticeList: Partial<{
14
+ header: string | import("../../../shared/types").AnyFn;
15
+ content: string | import("../../../shared/types").AnyFn;
16
+ subContent: string | import("../../../shared/types").AnyFn;
17
+ }>[];
18
+ operationList: Partial<Partial<{
19
+ header: string | import("../../../shared/types").AnyFn;
20
+ content: string | import("../../../shared/types").AnyFn;
21
+ subContent: string | import("../../../shared/types").AnyFn;
22
+ }> & {
23
+ type: "warning" | "primary";
24
+ subHeader: string | import("../../../shared/types").AnyFn;
25
+ remark: string | import("../../../shared/types").AnyFn;
26
+ }>[];
27
+ children?: Partial<any>[][] | undefined;
28
+ }>[]>;
7
29
  default: () => never[];
8
30
  };
9
31
  rowCapacity: {
@@ -15,9 +37,33 @@ declare const _default: import("vue").DefineComponent<{
15
37
  default: number;
16
38
  };
17
39
  }, {
40
+ theme: import("vue").ComputedRef<import("../../../shared/types").AnyObject>;
18
41
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
19
42
  items: {
20
- type: PropType<BranchNotice.Item[]>;
43
+ type: PropType<Partial<{
44
+ header: string | import("../../../shared/types").AnyFn;
45
+ type: "warning" | "normal" | "primary";
46
+ icon: import("../../../shared/types").AnyFn | "warning";
47
+ topText: (string | import("../../../shared/types").AnyFn)[];
48
+ footerText: string | import("../../../shared/types").AnyFn;
49
+ content: string | import("../../../shared/types").AnyFn;
50
+ subContent: string | import("../../../shared/types").AnyFn;
51
+ noticeList: Partial<{
52
+ header: string | import("../../../shared/types").AnyFn;
53
+ content: string | import("../../../shared/types").AnyFn;
54
+ subContent: string | import("../../../shared/types").AnyFn;
55
+ }>[];
56
+ operationList: Partial<Partial<{
57
+ header: string | import("../../../shared/types").AnyFn;
58
+ content: string | import("../../../shared/types").AnyFn;
59
+ subContent: string | import("../../../shared/types").AnyFn;
60
+ }> & {
61
+ type: "warning" | "primary";
62
+ subHeader: string | import("../../../shared/types").AnyFn;
63
+ remark: string | import("../../../shared/types").AnyFn;
64
+ }>[];
65
+ children?: Partial<any>[][] | undefined;
66
+ }>[]>;
21
67
  default: () => never[];
22
68
  };
23
69
  rowCapacity: {
@@ -28,7 +74,11 @@ declare const _default: import("vue").DefineComponent<{
28
74
  type: (NumberConstructor | StringConstructor)[];
29
75
  default: number;
30
76
  };
31
- }>> & {}>>;
77
+ }>> & {
78
+ onItemClick?: ((...args: any[]) => any) | undefined;
79
+ }>>;
80
+ emit: (event: "itemClick", ...args: any[]) => void;
81
+ onClick: (item: BranchNotice.Item) => void;
32
82
  positionItems: (items: BranchNotice.Item[]) => BranchNotice.PositionedItem[];
33
83
  positionedItems: import("vue").ComputedRef<BranchNotice.PositionedItem[]>;
34
84
  itemStyle: (left: number, right: number) => {
@@ -42,10 +92,304 @@ declare const _default: import("vue").DefineComponent<{
42
92
  width: string;
43
93
  height: string;
44
94
  }>;
45
- arrayed: typeof arrayed;
46
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
95
+ NoticeItem: import("vue").DefineComponent<{
96
+ item: {
97
+ type: PropType<Partial<{
98
+ header: string | import("../../../shared/types").AnyFn;
99
+ type: "warning" | "normal" | "primary";
100
+ icon: import("../../../shared/types").AnyFn | "warning";
101
+ topText: (string | import("../../../shared/types").AnyFn)[];
102
+ footerText: string | import("../../../shared/types").AnyFn;
103
+ content: string | import("../../../shared/types").AnyFn;
104
+ subContent: string | import("../../../shared/types").AnyFn;
105
+ noticeList: Partial<{
106
+ header: string | import("../../../shared/types").AnyFn;
107
+ content: string | import("../../../shared/types").AnyFn;
108
+ subContent: string | import("../../../shared/types").AnyFn;
109
+ }>[];
110
+ operationList: Partial<Partial<{
111
+ header: string | import("../../../shared/types").AnyFn;
112
+ content: string | import("../../../shared/types").AnyFn;
113
+ subContent: string | import("../../../shared/types").AnyFn;
114
+ }> & {
115
+ type: "warning" | "primary";
116
+ subHeader: string | import("../../../shared/types").AnyFn;
117
+ remark: string | import("../../../shared/types").AnyFn;
118
+ }>[];
119
+ children?: Partial<any>[][] | undefined;
120
+ }>>;
121
+ required: true;
122
+ };
123
+ }, {
124
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
125
+ item: {
126
+ type: PropType<Partial<{
127
+ header: string | import("../../../shared/types").AnyFn;
128
+ type: "warning" | "normal" | "primary";
129
+ icon: import("../../../shared/types").AnyFn | "warning";
130
+ topText: (string | import("../../../shared/types").AnyFn)[];
131
+ footerText: string | import("../../../shared/types").AnyFn;
132
+ content: string | import("../../../shared/types").AnyFn;
133
+ subContent: string | import("../../../shared/types").AnyFn;
134
+ noticeList: Partial<{
135
+ header: string | import("../../../shared/types").AnyFn;
136
+ content: string | import("../../../shared/types").AnyFn;
137
+ subContent: string | import("../../../shared/types").AnyFn;
138
+ }>[];
139
+ operationList: Partial<Partial<{
140
+ header: string | import("../../../shared/types").AnyFn;
141
+ content: string | import("../../../shared/types").AnyFn;
142
+ subContent: string | import("../../../shared/types").AnyFn;
143
+ }> & {
144
+ type: "warning" | "primary";
145
+ subHeader: string | import("../../../shared/types").AnyFn;
146
+ remark: string | import("../../../shared/types").AnyFn;
147
+ }>[];
148
+ children?: Partial<any>[][] | undefined;
149
+ }>>;
150
+ required: true;
151
+ };
152
+ }>> & {}>>;
153
+ itemRef: import("vue").Ref<Partial<{
154
+ header: string | import("../../../shared/types").AnyFn;
155
+ type: "warning" | "normal" | "primary";
156
+ icon: import("../../../shared/types").AnyFn | "warning";
157
+ topText: (string | import("../../../shared/types").AnyFn)[];
158
+ footerText: string | import("../../../shared/types").AnyFn;
159
+ content: string | import("../../../shared/types").AnyFn;
160
+ subContent: string | import("../../../shared/types").AnyFn;
161
+ noticeList: Partial<{
162
+ header: string | import("../../../shared/types").AnyFn;
163
+ content: string | import("../../../shared/types").AnyFn;
164
+ subContent: string | import("../../../shared/types").AnyFn;
165
+ }>[];
166
+ operationList: Partial<Partial<{
167
+ header: string | import("../../../shared/types").AnyFn;
168
+ content: string | import("../../../shared/types").AnyFn;
169
+ subContent: string | import("../../../shared/types").AnyFn;
170
+ }> & {
171
+ type: "warning" | "primary";
172
+ subHeader: string | import("../../../shared/types").AnyFn;
173
+ remark: string | import("../../../shared/types").AnyFn;
174
+ }>[];
175
+ children?: Partial<any>[][] | undefined;
176
+ }>>;
177
+ classList: import("vue").ComputedRef<string[]>;
178
+ frontStyle: import("vue").ComputedRef<{
179
+ minHeight: string;
180
+ }>;
181
+ popperDisabled: import("vue").ComputedRef<boolean>;
182
+ renderIcon: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
183
+ [key: string]: any;
184
+ }> | import("../../../shared/types").AnyFn | null;
185
+ NoticeItemAside: import("vue").DefineComponent<{
186
+ item: {
187
+ type: PropType<Partial<{
188
+ header: string | import("../../../shared/types").AnyFn;
189
+ type: "warning" | "normal" | "primary";
190
+ icon: import("../../../shared/types").AnyFn | "warning";
191
+ topText: (string | import("../../../shared/types").AnyFn)[];
192
+ footerText: string | import("../../../shared/types").AnyFn;
193
+ content: string | import("../../../shared/types").AnyFn;
194
+ subContent: string | import("../../../shared/types").AnyFn;
195
+ noticeList: Partial<{
196
+ header: string | import("../../../shared/types").AnyFn;
197
+ content: string | import("../../../shared/types").AnyFn;
198
+ subContent: string | import("../../../shared/types").AnyFn;
199
+ }>[];
200
+ operationList: Partial<Partial<{
201
+ header: string | import("../../../shared/types").AnyFn;
202
+ content: string | import("../../../shared/types").AnyFn;
203
+ subContent: string | import("../../../shared/types").AnyFn;
204
+ }> & {
205
+ type: "warning" | "primary";
206
+ subHeader: string | import("../../../shared/types").AnyFn;
207
+ remark: string | import("../../../shared/types").AnyFn;
208
+ }>[];
209
+ children?: Partial<any>[][] | undefined;
210
+ }>>;
211
+ required: true;
212
+ };
213
+ }, {
214
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
215
+ item: {
216
+ type: PropType<Partial<{
217
+ header: string | import("../../../shared/types").AnyFn;
218
+ type: "warning" | "normal" | "primary";
219
+ icon: import("../../../shared/types").AnyFn | "warning";
220
+ topText: (string | import("../../../shared/types").AnyFn)[];
221
+ footerText: string | import("../../../shared/types").AnyFn;
222
+ content: string | import("../../../shared/types").AnyFn;
223
+ subContent: string | import("../../../shared/types").AnyFn;
224
+ noticeList: Partial<{
225
+ header: string | import("../../../shared/types").AnyFn;
226
+ content: string | import("../../../shared/types").AnyFn;
227
+ subContent: string | import("../../../shared/types").AnyFn;
228
+ }>[];
229
+ operationList: Partial<Partial<{
230
+ header: string | import("../../../shared/types").AnyFn;
231
+ content: string | import("../../../shared/types").AnyFn;
232
+ subContent: string | import("../../../shared/types").AnyFn;
233
+ }> & {
234
+ type: "warning" | "primary";
235
+ subHeader: string | import("../../../shared/types").AnyFn;
236
+ remark: string | import("../../../shared/types").AnyFn;
237
+ }>[];
238
+ children?: Partial<any>[][] | undefined;
239
+ }>>;
240
+ required: true;
241
+ };
242
+ }>> & {}>>;
243
+ getPositionInList: (index: number) => "center" | "first" | "last";
244
+ placementMap: {
245
+ first: string;
246
+ center: string;
247
+ last: string;
248
+ };
249
+ getPlacement: (index: number) => string;
250
+ getAsideClassList: (noticeItem: Partial<{
251
+ header: string | import("../../../shared/types").AnyFn;
252
+ content: string | import("../../../shared/types").AnyFn;
253
+ subContent: string | import("../../../shared/types").AnyFn;
254
+ }>, index: number) => (string | {
255
+ 'is-active': string | import("../../../shared/types").AnyFn | undefined;
256
+ })[];
257
+ theme: import("vue").ComputedRef<import("../../../shared/types").AnyObject>;
258
+ NPopover: any;
259
+ parseRender: typeof import("../../step-notice/src/utils").parseRender;
260
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
261
+ item: {
262
+ type: PropType<Partial<{
263
+ header: string | import("../../../shared/types").AnyFn;
264
+ type: "warning" | "normal" | "primary";
265
+ icon: import("../../../shared/types").AnyFn | "warning";
266
+ topText: (string | import("../../../shared/types").AnyFn)[];
267
+ footerText: string | import("../../../shared/types").AnyFn;
268
+ content: string | import("../../../shared/types").AnyFn;
269
+ subContent: string | import("../../../shared/types").AnyFn;
270
+ noticeList: Partial<{
271
+ header: string | import("../../../shared/types").AnyFn;
272
+ content: string | import("../../../shared/types").AnyFn;
273
+ subContent: string | import("../../../shared/types").AnyFn;
274
+ }>[];
275
+ operationList: Partial<Partial<{
276
+ header: string | import("../../../shared/types").AnyFn;
277
+ content: string | import("../../../shared/types").AnyFn;
278
+ subContent: string | import("../../../shared/types").AnyFn;
279
+ }> & {
280
+ type: "warning" | "primary";
281
+ subHeader: string | import("../../../shared/types").AnyFn;
282
+ remark: string | import("../../../shared/types").AnyFn;
283
+ }>[];
284
+ children?: Partial<any>[][] | undefined;
285
+ }>>;
286
+ required: true;
287
+ };
288
+ }>>, {}>;
289
+ NoticeOperationList: import("vue").DefineComponent<{
290
+ operationList: {
291
+ type: PropType<Partial<Partial<{
292
+ header: string | import("../../../shared/types").AnyFn;
293
+ content: string | import("../../../shared/types").AnyFn;
294
+ subContent: string | import("../../../shared/types").AnyFn;
295
+ }> & {
296
+ type: "warning" | "primary";
297
+ subHeader: string | import("../../../shared/types").AnyFn;
298
+ remark: string | import("../../../shared/types").AnyFn;
299
+ }>[] | undefined>;
300
+ required: true;
301
+ };
302
+ }, {
303
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
304
+ operationList: {
305
+ type: PropType<Partial<Partial<{
306
+ header: string | import("../../../shared/types").AnyFn;
307
+ content: string | import("../../../shared/types").AnyFn;
308
+ subContent: string | import("../../../shared/types").AnyFn;
309
+ }> & {
310
+ type: "warning" | "primary";
311
+ subHeader: string | import("../../../shared/types").AnyFn;
312
+ remark: string | import("../../../shared/types").AnyFn;
313
+ }>[] | undefined>;
314
+ required: true;
315
+ };
316
+ }>> & {}>>;
317
+ theme: import("vue").ComputedRef<import("../../../shared/types").AnyObject>;
318
+ CheckmarkCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
319
+ CloseCircle: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
320
+ parseRender: typeof import("../../step-notice/src/utils").parseRender;
321
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
322
+ operationList: {
323
+ type: PropType<Partial<Partial<{
324
+ header: string | import("../../../shared/types").AnyFn;
325
+ content: string | import("../../../shared/types").AnyFn;
326
+ subContent: string | import("../../../shared/types").AnyFn;
327
+ }> & {
328
+ type: "warning" | "primary";
329
+ subHeader: string | import("../../../shared/types").AnyFn;
330
+ remark: string | import("../../../shared/types").AnyFn;
331
+ }>[] | undefined>;
332
+ required: true;
333
+ };
334
+ }>>, {}>;
335
+ NPopover: any;
336
+ parseRender: typeof import("../../step-notice/src/utils").parseRender;
337
+ parseTitle: typeof import("../../step-notice/src/utils").parseTitle;
338
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
339
+ item: {
340
+ type: PropType<Partial<{
341
+ header: string | import("../../../shared/types").AnyFn;
342
+ type: "warning" | "normal" | "primary";
343
+ icon: import("../../../shared/types").AnyFn | "warning";
344
+ topText: (string | import("../../../shared/types").AnyFn)[];
345
+ footerText: string | import("../../../shared/types").AnyFn;
346
+ content: string | import("../../../shared/types").AnyFn;
347
+ subContent: string | import("../../../shared/types").AnyFn;
348
+ noticeList: Partial<{
349
+ header: string | import("../../../shared/types").AnyFn;
350
+ content: string | import("../../../shared/types").AnyFn;
351
+ subContent: string | import("../../../shared/types").AnyFn;
352
+ }>[];
353
+ operationList: Partial<Partial<{
354
+ header: string | import("../../../shared/types").AnyFn;
355
+ content: string | import("../../../shared/types").AnyFn;
356
+ subContent: string | import("../../../shared/types").AnyFn;
357
+ }> & {
358
+ type: "warning" | "primary";
359
+ subHeader: string | import("../../../shared/types").AnyFn;
360
+ remark: string | import("../../../shared/types").AnyFn;
361
+ }>[];
362
+ children?: Partial<any>[][] | undefined;
363
+ }>>;
364
+ required: true;
365
+ };
366
+ }>>, {}>;
367
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "itemClick"[], "itemClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
368
  items: {
48
- type: PropType<BranchNotice.Item[]>;
369
+ type: PropType<Partial<{
370
+ header: string | import("../../../shared/types").AnyFn;
371
+ type: "warning" | "normal" | "primary";
372
+ icon: import("../../../shared/types").AnyFn | "warning";
373
+ topText: (string | import("../../../shared/types").AnyFn)[];
374
+ footerText: string | import("../../../shared/types").AnyFn;
375
+ content: string | import("../../../shared/types").AnyFn;
376
+ subContent: string | import("../../../shared/types").AnyFn;
377
+ noticeList: Partial<{
378
+ header: string | import("../../../shared/types").AnyFn;
379
+ content: string | import("../../../shared/types").AnyFn;
380
+ subContent: string | import("../../../shared/types").AnyFn;
381
+ }>[];
382
+ operationList: Partial<Partial<{
383
+ header: string | import("../../../shared/types").AnyFn;
384
+ content: string | import("../../../shared/types").AnyFn;
385
+ subContent: string | import("../../../shared/types").AnyFn;
386
+ }> & {
387
+ type: "warning" | "primary";
388
+ subHeader: string | import("../../../shared/types").AnyFn;
389
+ remark: string | import("../../../shared/types").AnyFn;
390
+ }>[];
391
+ children?: Partial<any>[][] | undefined;
392
+ }>[]>;
49
393
  default: () => never[];
50
394
  };
51
395
  rowCapacity: {
@@ -56,8 +400,33 @@ declare const _default: import("vue").DefineComponent<{
56
400
  type: (NumberConstructor | StringConstructor)[];
57
401
  default: number;
58
402
  };
59
- }>>, {
60
- items: BranchNotice.Item[];
403
+ }>> & {
404
+ onItemClick?: ((...args: any[]) => any) | undefined;
405
+ }, {
406
+ items: Partial<{
407
+ header: string | import("../../../shared/types").AnyFn;
408
+ type: "warning" | "normal" | "primary";
409
+ icon: import("../../../shared/types").AnyFn | "warning";
410
+ topText: (string | import("../../../shared/types").AnyFn)[];
411
+ footerText: string | import("../../../shared/types").AnyFn;
412
+ content: string | import("../../../shared/types").AnyFn;
413
+ subContent: string | import("../../../shared/types").AnyFn;
414
+ noticeList: Partial<{
415
+ header: string | import("../../../shared/types").AnyFn;
416
+ content: string | import("../../../shared/types").AnyFn;
417
+ subContent: string | import("../../../shared/types").AnyFn;
418
+ }>[];
419
+ operationList: Partial<Partial<{
420
+ header: string | import("../../../shared/types").AnyFn;
421
+ content: string | import("../../../shared/types").AnyFn;
422
+ subContent: string | import("../../../shared/types").AnyFn;
423
+ }> & {
424
+ type: "warning" | "primary";
425
+ subHeader: string | import("../../../shared/types").AnyFn;
426
+ remark: string | import("../../../shared/types").AnyFn;
427
+ }>[];
428
+ children?: Partial<any>[][] | undefined;
429
+ }>[];
61
430
  rowCapacity: number;
62
431
  colSpace: string | number;
63
432
  }>;
@@ -1 +1 @@
1
- import{defineComponent as t,computed as e,openBlock as r,createElementBlock as a,normalizeStyle as n,unref as o,Fragment as l,renderList as i,normalizeClass as s,toDisplayString as c}from"vue";import{widthAppend as p,arrayed as h}from"../../../shared/utils/index.js";import{isEmpty as u,last as m}from"lodash-es";import{BRANCH_NOTICE_CONSTANTS as _}from"./canstants.js";import{lineToNextCard as y}from"./drawLine.js";const C={class:"branch-notice__itemContent"};var f=t({__name:"BranchNotice",props:{items:{type:Array,default:()=>[]},rowCapacity:{type:Number,default:7},colSpace:{type:[Number,String],default:125}},setup(t){const f=t;const d=e((()=>function(t){var e,r;let a=!u(null!=(r=null==(e=m(t))?void 0:e.children)?r:[]);const n=[];let o=null;if(t.forEach(((t,e)=>{const r=Math.floor(e/f.rowCapacity),a=e%f.rowCapacity*(_.CARD_WIDTH+_.CARD_SPACE),l=r*(_.CARD_HEIGHT+_.CARD_SPACE),i={item:t,x:a,y:l,class:`branch-notice__item branch-notice__item--${t.type||"primary"}`,style:A(a,l)};o&&n.push(...y(o,i)),n.push(o=i)})),a){const e=m(t).children;let r=0;const a=f.rowCapacity-t.length;e.forEach(((e,l)=>{Math.ceil(e.length/a);const i=e.reduce(((t,e,r)=>{const n=Math.floor(r/a);return t[n]||(t[n]=[]),t[n].push(e),t}),[]);let s=null;i.forEach(((e,a)=>{e.forEach(((e,l)=>{const i=(l+t.length)*(_.CARD_WIDTH+_.CARD_SPACE),c=r*(_.CARD_HEIGHT+_.CARD_SPACE),p={item:e,x:i,y:c,class:`branch-notice__item branch-notice__item--${e.type||"primary"}`,style:A(i,c)};0===a&&0===l&&n.push(...y(o,p)),s&&n.push(...y(s,p)),n.push(s=p)})),r+=1}))}))}return n}(f.items))),A=(t,e)=>({width:`${_.CARD_WIDTH}px`,height:`${_.CARD_HEIGHT}px`,left:`${t}px`,top:`${e}px`}),D=e((()=>({position:"relative",width:p(110+Math.max(...d.value.map((t=>t.x)))),height:p(74+Math.max(...d.value.map((t=>t.y))))})));return(t,e)=>(r(),a("section",{style:n(o(D))},[(r(!0),a(l,null,i(o(d),(t=>{var e,p;return r(),a("div",{style:n(t.style),class:s(t.class)},[(r(!0),a(l,null,i(o(h)(null!=(p=null==(e=t.item)?void 0:e.content)?p:[]),(t=>(r(),a("p",C,c(t),1)))),256))],6)})),256))],4))}});export{f as default};
1
+ import{defineComponent as t,computed as e,openBlock as o,createElementBlock as i,normalizeStyle as r,unref as s,Fragment as l,renderList as a,normalizeClass as n,createBlock as c,createCommentVNode as m}from"vue";import{widthAppend as p}from"../../../shared/utils/index.js";import{isEmpty as h,last as u}from"lodash-es";import{BRANCH_NOTICE_CONSTANTS as C}from"./canstants.js";import{lineToNextCard as f}from"./drawLine.js";import{useBranchNoticeTheme as _}from"./hooks/useTheme.js";import y from"./components/NoticeItem.vue.js";var d=t({__name:"BranchNotice",props:{items:{type:Array,default:()=>[]},rowCapacity:{type:Number,default:7},colSpace:{type:[Number,String],default:125}},emits:["itemClick"],setup(t,{emit:d}){const A=t,v=_();const D=e((()=>function(t){var e,o;let i=!h(null!=(o=null==(e=u(t))?void 0:e.children)?o:[]);const r=[];let s=null;if(t.forEach(((t,e)=>{const o=Math.floor(e/A.rowCapacity),i=e%A.rowCapacity*(C.CARD_WIDTH+C.CARD_X_SPACE),l=o*(C.CARD_HEIGHT+C.CARD_Y_SPACE),a={item:t,x:i,y:l,class:"branch-notice__item",style:x(i,l)};s&&r.push(...f(s,a)),r.push(s=a)})),i){const e=u(t).children;let o=0;const i=A.rowCapacity-t.length;e.forEach(((e,l)=>{Math.ceil(e.length/i);const a=e.reduce(((t,e,o)=>{const r=Math.floor(o/i);return t[r]||(t[r]=[]),t[r].push(e),t}),[]);let n=null;a.forEach(((e,i)=>{e.forEach(((e,l)=>{const a=(l+t.length)*(C.CARD_WIDTH+C.CARD_X_SPACE),c=o*(C.CARD_HEIGHT+C.CARD_Y_SPACE),m={item:e,x:a,y:c,class:"branch-notice__item",style:x(a,c)};0===i&&0===l&&r.push(...f(s,m)),n&&r.push(...f(n,m)),r.push(n=m)})),o+=1}))}))}return r}(A.items))),x=(t,e)=>({width:`${C.CARD_WIDTH}px`,height:`${C.CARD_HEIGHT}px`,left:`${t}px`,top:`${e}px`}),E=e((()=>({position:"relative",width:p(110+Math.max(...D.value.map((t=>t.x)))),height:p(74+Math.max(...D.value.map((t=>t.y)))),...v.value})));return(t,e)=>(o(),i("section",{style:r(s(E))},[(o(!0),i(l,null,a(s(D),(t=>(o(),i("div",{style:r(t.style),class:n(t.class)},[t.item?(o(),c(y,{key:0,item:t.item,onClick:e=>{return o=t.item,void d("itemClick",o);var o}},null,8,["item","onClick"])):m("v-if",!0)],6)))),256))],4))}});export{d as default};
@@ -1,7 +1,8 @@
1
1
  export declare const BRANCH_NOTICE_CONSTANTS: {
2
2
  CARD_WIDTH: number;
3
3
  CARD_HEIGHT: number;
4
- CARD_SPACE: number;
4
+ CARD_X_SPACE: number;
5
+ CARD_Y_SPACE: number;
5
6
  BRANCH_POINT_RADIUS: number;
6
7
  LINE_WIDTH: number;
7
8
  };
@@ -1 +1 @@
1
- const A={CARD_WIDTH:110,CARD_HEIGHT:74,CARD_SPACE:40,BRANCH_POINT_RADIUS:8,LINE_WIDTH:4};export{A as BRANCH_NOTICE_CONSTANTS};
1
+ const _={CARD_WIDTH:110,CARD_HEIGHT:74,CARD_X_SPACE:40,CARD_Y_SPACE:60,BRANCH_POINT_RADIUS:8,LINE_WIDTH:4};export{_ as BRANCH_NOTICE_CONSTANTS};