cnhis-design-vue 3.1.33-beta.2 → 3.1.33-beta.21

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 (114) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +2 -2
  3. package/es/components/big-table/src/BigTable.vue.d.ts +2 -2
  4. package/es/components/big-table/src/BigTable.vue2.js +11 -14
  5. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  7. package/es/components/big-table/src/components/edit-form/edit-time.js +7 -4
  8. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
  9. package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
  10. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  11. package/es/components/button-print/index.d.ts +13 -0
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  14. package/es/components/button-print/src/utils/print.d.ts +2 -2
  15. package/es/components/button-print/src/utils/print.js +7 -4
  16. package/es/components/fabric-chart/index.d.ts +392 -180
  17. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +181 -0
  18. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +172 -0
  19. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +395 -182
  20. package/es/components/fabric-chart/src/FabricChart.vue.js +33 -324
  21. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +214 -0
  22. package/es/components/fabric-chart/src/TemperatureChart.vue.js +359 -0
  23. package/es/components/fabric-chart/src/components/PopupMenu.js +3 -3
  24. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  25. package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  27. package/es/components/fabric-chart/src/hooks/index.js +2 -1
  28. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +26 -0
  29. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +419 -0
  30. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  31. package/es/components/fabric-chart/src/hooks/useCenter.js +26 -45
  32. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  33. package/es/components/fabric-chart/src/hooks/useCommon.js +31 -0
  34. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +9 -2
  35. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +34 -1
  36. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +2 -2
  37. package/es/components/fabric-chart/src/hooks/useGrid.js +28 -18
  38. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  39. package/es/components/fabric-chart/src/hooks/useLeft.js +11 -7
  40. package/es/components/fabric-chart/src/interface.d.ts +24 -6
  41. package/es/components/fabric-chart/src/interface.js +0 -3
  42. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  43. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  44. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -4
  45. package/es/components/form-render/src/hooks/useFormRenderOptions.js +14 -8
  46. package/es/components/iho-table/index.d.ts +1 -0
  47. package/es/components/iho-table/index.js +1 -1
  48. package/es/components/iho-table/src/IhoTable.vue.d.ts +1 -0
  49. package/es/components/iho-table/src/IhoTable.vue.js +7 -1
  50. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  51. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -0
  52. package/es/components/iho-table/src/hooks/tapHooks/index.js +3 -1
  53. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +11 -0
  54. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +26 -0
  55. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +5 -1
  56. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +2 -1
  57. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +17 -12
  58. package/es/components/iho-table/src/plugins/filterPlugin/index.js +16 -5
  59. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -0
  60. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +8 -22
  61. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +8 -16
  62. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  63. package/es/components/iho-table/src/types/index.d.ts +9 -1
  64. package/es/components/iho-table/src/types/index.js +1 -1
  65. package/es/components/iho-table/src/types/pluginType.d.ts +4 -0
  66. package/es/components/iho-table/src/types/pluginType.js +3 -1
  67. package/es/components/iho-table/style/index.css +1 -1
  68. package/es/components/index.css +1 -1
  69. package/es/components/index.js +1 -1
  70. package/es/components/info-header/index.d.ts +2 -0
  71. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
  72. package/es/components/info-header/src/InfoHeader.vue.js +72 -56
  73. package/es/components/info-header/style/index.css +1 -1
  74. package/es/components/keyboard/index.d.ts +62 -1
  75. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  76. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  77. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  78. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  79. package/es/components/keyboard/style/index.css +1 -1
  80. package/es/components/shortcut-provider/src/utils/index.d.ts +0 -1
  81. package/es/components/shortcut-provider/src/utils/index.js +26 -3
  82. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +3 -0
  83. package/es/shared/assets/img/failure.js +1 -1
  84. package/es/shared/assets/img/failure.png.js +1 -1
  85. package/es/shared/assets/img/icon-asc.js +1 -1
  86. package/es/shared/assets/img/icon-desc.js +1 -1
  87. package/es/shared/assets/img/no-permission.js +1 -1
  88. package/es/shared/assets/img/no-permission.png.js +1 -1
  89. package/es/shared/assets/img/nodata.js +1 -1
  90. package/es/shared/assets/img/nodata.png.js +1 -1
  91. package/es/shared/assets/img/notfound.js +1 -1
  92. package/es/shared/assets/img/notfound.png.js +1 -1
  93. package/es/shared/assets/img/qr.js +1 -1
  94. package/es/shared/assets/img/qr.png.js +1 -1
  95. package/es/shared/assets/img/success.js +1 -1
  96. package/es/shared/assets/img/success.png.js +1 -1
  97. package/es/shared/assets/img/video.js +1 -1
  98. package/es/shared/assets/img/video.png.js +1 -1
  99. package/es/shared/assets/img/video_default_cover.js +1 -1
  100. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  101. package/es/shared/assets/img/video_hover.js +1 -1
  102. package/es/shared/assets/img/video_play_hover.js +1 -1
  103. package/es/shared/assets/img/xb_big.js +1 -1
  104. package/es/shared/assets/img/xb_big.png.js +1 -1
  105. package/es/shared/assets/img/xb_small.js +1 -1
  106. package/es/shared/assets/img/xb_small.png.js +1 -1
  107. package/package.json +2 -2
  108. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  109. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  110. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  111. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  112. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  113. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  114. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -131,6 +131,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
131
131
  }[]>;
132
132
  updateColumn: () => Promise<void>;
133
133
  timer: any;
134
+ stopInterval: () => void;
134
135
  startInterval: () => void;
135
136
  NDescriptions: any;
136
137
  NDescriptionsItem: import("vue").DefineComponent<{
@@ -153,6 +154,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
153
154
  readonly span: number;
154
155
  }>;
155
156
  NTag: any;
157
+ NScrollbar: any;
156
158
  SlotRender: import("vue").DefineComponent<{
157
159
  renderer: {
158
160
  type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../es/shared/types").Func<any[], any>>;
@@ -133,6 +133,7 @@ declare const _default: import("vue").DefineComponent<{
133
133
  }[]>;
134
134
  updateColumn: () => Promise<void>;
135
135
  timer: any;
136
+ stopInterval: () => void;
136
137
  startInterval: () => void;
137
138
  NDescriptions: any;
138
139
  NDescriptionsItem: import("vue").DefineComponent<{
@@ -155,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{
155
156
  readonly span: number;
156
157
  }>;
157
158
  NTag: any;
159
+ NScrollbar: any;
158
160
  SlotRender: import("vue").DefineComponent<{
159
161
  renderer: {
160
162
  type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../es/shared/types").Func<any[], any>>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, nextTick, onMounted, watch, onBeforeUnmount, onDeactivated, onActivated, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createCommentVNode, Fragment, toDisplayString, renderList, withDirectives, createBlock, unref, mergeProps, withCtx, createTextVNode, vShow, createVNode } from 'vue';
2
- import { NTag, NDescriptions, NDescriptionsItem } from 'naive-ui';
2
+ import { NTag, NScrollbar, NDescriptions, NDescriptionsItem } from 'naive-ui';
3
3
  import { useThrottleFn, useEventListener } from '@vueuse/core';
4
4
  import script$1 from '../../../shared/components/SlotRender/SlotRender.js';
5
5
  import InfoEllipsis from './InfoEllipsis.vue.js';
@@ -25,10 +25,12 @@ const _hoisted_7 = {
25
25
  key: 2,
26
26
  class: "c-info-header__patientHeader--age"
27
27
  };
28
- const _hoisted_8 = { class: "c-info-header__setting" };
29
- const _hoisted_9 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji" }, null, -1);
30
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi" }, null, -1);
31
- const _hoisted_11 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia" }, null, -1);
28
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("section", { style: { "height": "12px" } }, null, -1);
29
+ const _hoisted_9 = /* @__PURE__ */ createElementVNode("section", { style: { "height": "12px" } }, null, -1);
30
+ const _hoisted_10 = { class: "c-info-header__setting" };
31
+ const _hoisted_11 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji" }, null, -1);
32
+ const _hoisted_12 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi" }, null, -1);
33
+ const _hoisted_13 = /* @__PURE__ */ createElementVNode("i", { class: "iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia" }, null, -1);
32
34
  const _sfc_main = /* @__PURE__ */ defineComponent({
33
35
  __name: "InfoHeader",
34
36
  props: {
@@ -38,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
40
  infoList: { type: Array, required: true },
39
41
  labelField: { type: String, default: "label" },
40
42
  valueField: { type: String, default: "value" },
41
- minColumnWidth: { type: [String, Number], default: 240 },
43
+ minColumnWidth: { type: [String, Number], default: 180 },
42
44
  rowHeight: { type: [String, Number], default: 32 }
43
45
  },
44
46
  emits: [
@@ -112,12 +114,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
114
  });
113
115
  useEventListener(window, "resize", updateColumn);
114
116
  let timer;
117
+ function stopInterval() {
118
+ clearInterval(timer);
119
+ }
115
120
  function startInterval() {
121
+ stopInterval();
116
122
  timer = setInterval(updateColumn, 700);
117
123
  }
118
- onBeforeUnmount(() => clearInterval(timer));
119
- onDeactivated(() => clearInterval(timer));
124
+ onBeforeUnmount(stopInterval);
125
+ onDeactivated(stopInterval);
120
126
  onActivated(startInterval);
127
+ onMounted(startInterval);
121
128
  return (_ctx, _cache) => {
122
129
  return openBlock(), createElementBlock("div", {
123
130
  class: normalizeClass(["c-info-header", { "is-compact": __props.compact }]),
@@ -158,54 +165,63 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
158
165
  ]),
159
166
  createElementVNode("section", {
160
167
  class: "c-info-header__info",
161
- style: normalizeStyle({ "--row-num": __props.compact ? 1 : 2 }),
162
168
  ref_key: "infoRef",
163
169
  ref: infoRef
164
170
  }, [
165
- renderSlot(_ctx.$slots, "info", {}, () => [
166
- createVNode(unref(NDescriptions), {
167
- "label-align": "right",
168
- style: { width: "100%" },
169
- "label-placement": "left",
170
- separator: ":",
171
- column: columnNum.value
172
- }, {
173
- default: withCtx(() => [
174
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.infoList, (item, index) => {
175
- return openBlock(), createBlock(unref(NDescriptionsItem), {
176
- key: item[__props.labelField],
177
- label: item[__props.labelField]
178
- }, {
179
- default: withCtx(() => [
180
- item.slot ? (openBlock(), createBlock(unref(script$1), {
181
- key: 0,
182
- renderer: item.slot,
183
- "root-slots": _ctx.$slots,
184
- item,
185
- style: normalizeStyle(getDescriptionItemStyle(item)),
186
- width: descriptionWidthList.value[index]
187
- }, null, 8, ["renderer", "root-slots", "item", "style", "width"])) : needHidden(item) ? (openBlock(), createBlock(HiddenContent, {
188
- key: 1,
189
- content: item[__props.valueField],
190
- tip: item.tip,
191
- "content-style": getDescriptionItemStyle(item),
192
- width: descriptionWidthList.value[index]
193
- }, null, 8, ["content", "tip", "content-style", "width"])) : (openBlock(), createBlock(InfoEllipsis, {
194
- key: 2,
195
- "content-style": getEllipsisStyle(index, item),
196
- content: item[__props.valueField],
197
- tip: item.tip
198
- }, null, 8, ["content-style", "content", "tip"]))
199
- ]),
200
- _: 2
201
- }, 1032, ["label"]);
202
- }), 128))
203
- ]),
204
- _: 1
205
- }, 8, ["column"])
206
- ])
207
- ], 4),
208
- createElementVNode("section", _hoisted_8, [
171
+ createVNode(unref(NScrollbar), {
172
+ class: "c-info-header__infoWrapper",
173
+ style: normalizeStyle({ "--row-num": __props.compact ? 1 : 2 })
174
+ }, {
175
+ default: withCtx(() => [
176
+ renderSlot(_ctx.$slots, "info", {}, () => [
177
+ _hoisted_8,
178
+ createVNode(unref(NDescriptions), {
179
+ "label-align": "right",
180
+ style: { width: "100%" },
181
+ "label-placement": "left",
182
+ separator: ":",
183
+ column: columnNum.value
184
+ }, {
185
+ default: withCtx(() => [
186
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.infoList, (item, index) => {
187
+ return openBlock(), createBlock(unref(NDescriptionsItem), {
188
+ key: item[__props.labelField],
189
+ label: item[__props.labelField]
190
+ }, {
191
+ default: withCtx(() => [
192
+ item.slot ? (openBlock(), createBlock(unref(script$1), {
193
+ key: 0,
194
+ renderer: item.slot,
195
+ "root-slots": _ctx.$slots,
196
+ item,
197
+ style: normalizeStyle(getDescriptionItemStyle(item)),
198
+ width: descriptionWidthList.value[index]
199
+ }, null, 8, ["renderer", "root-slots", "item", "style", "width"])) : needHidden(item) ? (openBlock(), createBlock(HiddenContent, {
200
+ key: 1,
201
+ content: item[__props.valueField],
202
+ tip: item.tip,
203
+ "content-style": getDescriptionItemStyle(item),
204
+ width: descriptionWidthList.value[index]
205
+ }, null, 8, ["content", "tip", "content-style", "width"])) : (openBlock(), createBlock(InfoEllipsis, {
206
+ key: 2,
207
+ "content-style": getEllipsisStyle(index, item),
208
+ content: item[__props.valueField],
209
+ tip: item.tip
210
+ }, null, 8, ["content-style", "content", "tip"]))
211
+ ]),
212
+ _: 2
213
+ }, 1032, ["label"]);
214
+ }), 128))
215
+ ]),
216
+ _: 1
217
+ }, 8, ["column"]),
218
+ _hoisted_9
219
+ ])
220
+ ]),
221
+ _: 3
222
+ }, 8, ["style"])
223
+ ], 512),
224
+ createElementVNode("section", _hoisted_10, [
209
225
  renderSlot(_ctx.$slots, "setting"),
210
226
  !_ctx.$slots.setting ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
211
227
  createElementVNode("div", {
@@ -213,7 +229,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
213
229
  onClick: openPatientInfo
214
230
  }, [
215
231
  renderSlot(_ctx.$slots, "patientInfoIcon", {}, () => [
216
- _hoisted_9
232
+ _hoisted_11
217
233
  ])
218
234
  ]),
219
235
  createElementVNode("div", {
@@ -221,7 +237,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
221
237
  onClick: fieldSet
222
238
  }, [
223
239
  renderSlot(_ctx.$slots, "fieldSetIcon", {}, () => [
224
- _hoisted_10
240
+ _hoisted_12
225
241
  ])
226
242
  ]),
227
243
  createElementVNode("div", {
@@ -229,7 +245,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
229
245
  onClick: toggleCompact
230
246
  }, [
231
247
  renderSlot(_ctx.$slots, "compactIcon", {}, () => [
232
- _hoisted_11
248
+ _hoisted_13
233
249
  ])
234
250
  ])
235
251
  ], 64)) : createCommentVNode("v-if", true)
@@ -1 +1 @@
1
- .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;justify-content:space-between;padding:16px}@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.c-info-header .iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{display:flex;gap:12px;margin-right:34px}.c-info-header__patientHeader{align-items:baseline;display:flex;gap:6px;vertical-align:bottom}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{align-self:flex-start;border-radius:4px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;height:calc(var(--row-height)*var(--row-num)*1px);justify-content:flex-start;overflow:hidden}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);padding-bottom:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{cursor:pointer}.c-info-header__setting .iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s ease-in-out}.c-info-header.is-compact [compact-hidden]{display:none!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}
1
+ .c-info-header{align-items:center;background:#fff;box-shadow:0 2px 4px 0 hsla(0,0%,69%,.46);display:flex;gap:18px;justify-content:space-between;padding:16px}@font-face{font-family:iconfont;src:url(iconfont.ttf) format("truetype")}.c-info-header .iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:iconfont!important;font-size:16px;font-style:normal}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia:before{content:"\c1003"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantoushang:before{content:"\c1004"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi:before{content:"\c1005"}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaobianji:before{content:"\c1006"}.c-info-header .info-header--icon-guanbi-yanjing:before{content:"\c1001"}.c-info-header .info-header--icon-faxian-yanjing:before{content:"\c1002"}.c-info-header__divider{align-self:stretch;background:#d5d5d566;width:1px}.c-info-header__patient{display:flex;flex-wrap:nowrap;gap:12px;margin-right:34px}.c-info-header__patientHeader{align-items:baseline;display:flex;gap:6px;vertical-align:bottom}.c-info-header__patientHeader--name{font-size:20px;font-weight:700;margin-right:6px}.c-info-header__patientHeader .n-tag{align-self:flex-start;border-radius:4px}.c-info-header__info{display:flex;flex:1;flex-wrap:wrap;font-size:14px;justify-content:flex-start;width:100%}.c-info-header__infoWrapper{box-sizing:border-box;height:calc((var(--row-height)*var(--row-num) + 20)*1px);margin:-10px 0;max-height:calc((var(--row-height)*var(--row-num) + 20)*1px)}.c-info-header__info td{text-align:left}.c-info-header__info .n-descriptions-table-content{height:calc(var(--row-height)*1px);max-width:calc(var(--column-width)*1px);padding-bottom:0!important;vertical-align:middle!important}.c-info-header__info .n-descriptions-table-content__label{display:inline-block}.c-info-header__setting{align-self:flex-start;display:flex;gap:8px}.c-info-header__settingIcon{cursor:pointer}.c-info-header__setting .iconfont{color:#000;display:inline-block;font-size:20px;transition:all .2s ease-in-out}.c-info-header.is-compact [compact-hidden]{display:none!important}.c-info-header.is-compact .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(0deg)}.c-info-header .info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia{transform:rotate(180deg)}.c-info-header__hidden{align-items:center;display:inline-flex;font-size:14px;gap:8px;vertical-align:middle}.c-info-header__hidden--icon{color:inherit!important;cursor:pointer;font-size:14px;text-decoration:none!important}
@@ -93,6 +93,24 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
93
93
  mode: {
94
94
  type: StringConstructor;
95
95
  };
96
+ positionInitialValue: {
97
+ type: import("vue").PropType<import("@vueuse/core").Position>;
98
+ default: () => {
99
+ x: number;
100
+ y: number;
101
+ };
102
+ };
103
+ moveOffset: {
104
+ type: import("vue").PropType<import("@vueuse/core").Position>;
105
+ default: () => {
106
+ x: number;
107
+ y: number;
108
+ };
109
+ };
110
+ drag: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
96
114
  }, {
97
115
  NUMBERKEYS: string;
98
116
  DAYS: number[];
@@ -103,6 +121,24 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
103
121
  mode: {
104
122
  type: StringConstructor;
105
123
  };
124
+ positionInitialValue: {
125
+ type: import("vue").PropType<import("@vueuse/core").Position>;
126
+ default: () => {
127
+ x: number;
128
+ y: number;
129
+ };
130
+ };
131
+ moveOffset: {
132
+ type: import("vue").PropType<import("@vueuse/core").Position>;
133
+ default: () => {
134
+ x: number;
135
+ y: number;
136
+ };
137
+ };
138
+ drag: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
106
142
  }>> & {
107
143
  onChange?: ((...args: any[]) => any) | undefined;
108
144
  }>>;
@@ -119,9 +155,12 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
119
155
  inputValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
120
156
  numeratorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
121
157
  denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
158
+ keyboardRef: import("vue").Ref<HTMLElement | null>;
122
159
  history: import("vue").Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
123
160
  undo: () => void;
124
161
  redo: () => void;
162
+ style: import("vue").ComputedRef<string> | undefined;
163
+ init: () => import("vue").ComputedRef<string> | undefined;
125
164
  keydown: (key: string | number) => void;
126
165
  updateFraction: (value: number) => void;
127
166
  calculateFraction: () => void;
@@ -198,9 +237,31 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
198
237
  mode: {
199
238
  type: StringConstructor;
200
239
  };
240
+ positionInitialValue: {
241
+ type: import("vue").PropType<import("@vueuse/core").Position>;
242
+ default: () => {
243
+ x: number;
244
+ y: number;
245
+ };
246
+ };
247
+ moveOffset: {
248
+ type: import("vue").PropType<import("@vueuse/core").Position>;
249
+ default: () => {
250
+ x: number;
251
+ y: number;
252
+ };
253
+ };
254
+ drag: {
255
+ type: BooleanConstructor;
256
+ default: boolean;
257
+ };
201
258
  }>> & {
202
259
  onChange?: ((...args: any[]) => any) | undefined;
203
- }, {}>;
260
+ }, {
261
+ drag: boolean;
262
+ positionInitialValue: import("@vueuse/core").Position;
263
+ moveOffset: import("@vueuse/core").Position;
264
+ }>;
204
265
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
205
266
  mode: {
206
267
  type: import("vue").PropType<"day" | "dose" | "english">;
@@ -94,6 +94,24 @@ declare const _default: import("vue").DefineComponent<{
94
94
  mode: {
95
95
  type: StringConstructor;
96
96
  };
97
+ positionInitialValue: {
98
+ type: PropType<Position>;
99
+ default: () => {
100
+ x: number;
101
+ y: number;
102
+ };
103
+ };
104
+ moveOffset: {
105
+ type: PropType<Position>;
106
+ default: () => {
107
+ x: number;
108
+ y: number;
109
+ };
110
+ };
111
+ drag: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
97
115
  }, {
98
116
  NUMBERKEYS: string;
99
117
  DAYS: number[];
@@ -104,6 +122,24 @@ declare const _default: import("vue").DefineComponent<{
104
122
  mode: {
105
123
  type: StringConstructor;
106
124
  };
125
+ positionInitialValue: {
126
+ type: PropType<Position>;
127
+ default: () => {
128
+ x: number;
129
+ y: number;
130
+ };
131
+ };
132
+ moveOffset: {
133
+ type: PropType<Position>;
134
+ default: () => {
135
+ x: number;
136
+ y: number;
137
+ };
138
+ };
139
+ drag: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
107
143
  }>> & {
108
144
  onChange?: ((...args: any[]) => any) | undefined;
109
145
  }>>;
@@ -120,9 +156,12 @@ declare const _default: import("vue").DefineComponent<{
120
156
  inputValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
121
157
  numeratorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
122
158
  denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
159
+ keyboardRef: import("vue").Ref<HTMLElement | null>;
123
160
  history: import("vue").Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
124
161
  undo: () => void;
125
162
  redo: () => void;
163
+ style: import("vue").ComputedRef<string> | undefined;
164
+ init: () => import("vue").ComputedRef<string> | undefined;
126
165
  keydown: (key: string | number) => void;
127
166
  updateFraction: (value: number) => void;
128
167
  calculateFraction: () => void;
@@ -199,9 +238,31 @@ declare const _default: import("vue").DefineComponent<{
199
238
  mode: {
200
239
  type: StringConstructor;
201
240
  };
241
+ positionInitialValue: {
242
+ type: PropType<Position>;
243
+ default: () => {
244
+ x: number;
245
+ y: number;
246
+ };
247
+ };
248
+ moveOffset: {
249
+ type: PropType<Position>;
250
+ default: () => {
251
+ x: number;
252
+ y: number;
253
+ };
254
+ };
255
+ drag: {
256
+ type: BooleanConstructor;
257
+ default: boolean;
258
+ };
202
259
  }>> & {
203
260
  onChange?: ((...args: any[]) => any) | undefined;
204
- }, {}>;
261
+ }, {
262
+ drag: boolean;
263
+ positionInitialValue: Position;
264
+ moveOffset: Position;
265
+ }>;
205
266
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
206
267
  mode: {
207
268
  type: PropType<"day" | "dose" | "english">;
@@ -96,8 +96,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
96
  key: 1,
97
97
  mode: __props.mode,
98
98
  defaultValue: __props.defaultValue,
99
+ positionInitialValue: __props.positionInitialValue,
100
+ moveOffset: __props.moveOffset,
101
+ drag: __props.drag,
99
102
  onChange: onchange
100
- }, null, 8, ["mode", "defaultValue"])) : (openBlock(), createElementBlock("div", {
103
+ }, null, 8, ["mode", "defaultValue", "positionInitialValue", "moveOffset", "drag"])) : (openBlock(), createElementBlock("div", {
101
104
  key: 2,
102
105
  class: normalizeClass(["c-keyboard-english", { isFixed: __props.drag }]),
103
106
  ref_key: "englishKeyboardRef",
@@ -1,4 +1,5 @@
1
- import { Ref } from 'vue';
1
+ import { Ref, PropType } from 'vue';
2
+ import { Position } from '@vueuse/core';
2
3
  import { FormValidationStatus } from 'naive-ui/es/form/src/interface';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  defaultValue: {
@@ -7,6 +8,24 @@ declare const _default: import("vue").DefineComponent<{
7
8
  mode: {
8
9
  type: StringConstructor;
9
10
  };
11
+ positionInitialValue: {
12
+ type: PropType<Position>;
13
+ default: () => {
14
+ x: number;
15
+ y: number;
16
+ };
17
+ };
18
+ moveOffset: {
19
+ type: PropType<Position>;
20
+ default: () => {
21
+ x: number;
22
+ y: number;
23
+ };
24
+ };
25
+ drag: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
10
29
  }, {
11
30
  NUMBERKEYS: string;
12
31
  DAYS: number[];
@@ -17,6 +36,24 @@ declare const _default: import("vue").DefineComponent<{
17
36
  mode: {
18
37
  type: StringConstructor;
19
38
  };
39
+ positionInitialValue: {
40
+ type: PropType<Position>;
41
+ default: () => {
42
+ x: number;
43
+ y: number;
44
+ };
45
+ };
46
+ moveOffset: {
47
+ type: PropType<Position>;
48
+ default: () => {
49
+ x: number;
50
+ y: number;
51
+ };
52
+ };
53
+ drag: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
20
57
  }>> & {
21
58
  onChange?: ((...args: any[]) => any) | undefined;
22
59
  }>>;
@@ -33,9 +70,12 @@ declare const _default: import("vue").DefineComponent<{
33
70
  inputValueStatus: Ref<FormValidationStatus>;
34
71
  numeratorValueStatus: Ref<FormValidationStatus>;
35
72
  denominatorValueStatus: Ref<FormValidationStatus>;
73
+ keyboardRef: Ref<HTMLElement | null>;
36
74
  history: Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
37
75
  undo: () => void;
38
76
  redo: () => void;
77
+ style: import("vue").ComputedRef<string> | undefined;
78
+ init: () => import("vue").ComputedRef<string> | undefined;
39
79
  keydown: (key: string | number) => void;
40
80
  updateFraction: (value: number) => void;
41
81
  calculateFraction: () => void;
@@ -54,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
54
94
  default: boolean;
55
95
  };
56
96
  status: {
57
- type: import("vue").PropType<FormValidationStatus>;
97
+ type: PropType<FormValidationStatus>;
58
98
  default: string;
59
99
  };
60
100
  }, {
@@ -68,7 +108,7 @@ declare const _default: import("vue").DefineComponent<{
68
108
  default: boolean;
69
109
  };
70
110
  status: {
71
- type: import("vue").PropType<FormValidationStatus>;
111
+ type: PropType<FormValidationStatus>;
72
112
  default: string;
73
113
  };
74
114
  }>> & {
@@ -94,7 +134,7 @@ declare const _default: import("vue").DefineComponent<{
94
134
  default: boolean;
95
135
  };
96
136
  status: {
97
- type: import("vue").PropType<FormValidationStatus>;
137
+ type: PropType<FormValidationStatus>;
98
138
  default: string;
99
139
  };
100
140
  }>> & {
@@ -112,7 +152,29 @@ declare const _default: import("vue").DefineComponent<{
112
152
  mode: {
113
153
  type: StringConstructor;
114
154
  };
155
+ positionInitialValue: {
156
+ type: PropType<Position>;
157
+ default: () => {
158
+ x: number;
159
+ y: number;
160
+ };
161
+ };
162
+ moveOffset: {
163
+ type: PropType<Position>;
164
+ default: () => {
165
+ x: number;
166
+ y: number;
167
+ };
168
+ };
169
+ drag: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
115
173
  }>> & {
116
174
  onChange?: ((...args: any[]) => any) | undefined;
117
- }, {}>;
175
+ }, {
176
+ drag: boolean;
177
+ positionInitialValue: Position;
178
+ moveOffset: Position;
179
+ }>;
118
180
  export default _default;