cnhis-design-vue 3.1.33-beta.9 → 3.1.33

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 (99) hide show
  1. package/es/components/big-table/index.d.ts +1 -1
  2. package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
  3. package/es/components/big-table/src/BigTable.vue2.js +7 -9
  4. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  5. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-time.js +5 -3
  7. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
  8. package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
  9. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  10. package/es/components/button-print/index.d.ts +13 -0
  11. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  12. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  13. package/es/components/button-print/src/utils/print.d.ts +2 -2
  14. package/es/components/button-print/src/utils/print.js +7 -4
  15. package/es/components/fabric-chart/index.d.ts +133 -2
  16. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
  17. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
  18. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
  19. package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
  20. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
  21. package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
  22. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
  23. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  24. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  25. package/es/components/fabric-chart/src/hooks/index.js +1 -0
  26. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
  27. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
  28. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  29. package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
  30. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  31. package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
  32. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
  33. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
  34. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  35. package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
  36. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  37. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  38. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  39. package/es/components/iho-table/index.d.ts +4 -3
  40. package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
  41. package/es/components/iho-table/src/IhoTable.vue.js +6 -4
  42. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  43. package/es/components/iho-table/src/constants/index.d.ts +3 -3
  44. package/es/components/iho-table/src/constants/index.js +0 -1
  45. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
  46. package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
  47. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  48. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
  49. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
  50. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  51. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
  52. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
  53. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +6 -1
  54. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  55. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
  56. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
  57. package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
  58. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
  59. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
  60. package/es/components/iho-table/src/plugins/index.js +1 -1
  61. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  62. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +3 -1
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +3 -3
  65. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
  66. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
  67. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  68. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  69. package/es/components/iho-table/src/types/index.d.ts +10 -12
  70. package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
  71. package/es/components/iho-table/style/index.css +1 -1
  72. package/es/components/index.css +1 -1
  73. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  74. package/es/components/info-header/style/index.css +1 -1
  75. package/es/components/keyboard/index.d.ts +62 -1
  76. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  77. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  78. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  79. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  80. package/es/components/keyboard/style/index.css +1 -1
  81. package/package.json +2 -2
  82. package/es/components/big-table/src/components/edit-form/dist/edit-date.d.ts +0 -36
  83. package/es/components/big-table/src/components/edit-form/dist/edit-select.d.ts +0 -37
  84. package/es/components/big-table/src/components/edit-form/dist/edit-time.d.ts +0 -45
  85. package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
  86. package/es/components/fabric-chart/src/constants/index.js +0 -4
  87. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -65
  88. package/es/components/form-render/src/components/renderer/dist/radio.d.ts +0 -64
  89. package/es/components/form-render/src/components/renderer/dist/remoteSearch.d.ts +0 -46
  90. package/es/components/form-render/src/components/renderer/dist/search.d.ts +0 -56
  91. package/es/components/form-render/src/components/renderer/dist/select.d.ts +0 -55
  92. package/es/components/iho-table/src/components/dist/IhoTableColumn.d.ts +0 -20
  93. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  94. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/inputRendererPlugin.d.ts +0 -3
  95. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/numberRendererPlugin.d.ts +0 -3
  96. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/timeRendererPlugin.d.ts +0 -3
  97. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/editSelect.d.ts +0 -42
  98. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/index.d.ts +0 -3
  99. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/dist/index.d.ts +0 -3
@@ -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;
@@ -1,26 +1,28 @@
1
- import { defineComponent, computed, ref, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, renderList, normalizeClass, toDisplayString, createBlock, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, ref, openBlock, createElementBlock, normalizeClass, normalizeStyle, unref, createElementVNode, createVNode, withCtx, Fragment, renderList, toDisplayString, createBlock, createCommentVNode } from 'vue';
2
2
  import { NSpace, NIcon } from 'naive-ui';
3
3
  import { ArrowUndoSharp } from '@vicons/ionicons5';
4
4
  import InputNumber from './InputNumber.vue.js';
5
- import { useRefHistory } from '@vueuse/core';
5
+ import { useRefHistory, useDraggable } from '@vueuse/core';
6
6
  import { getNumber } from '../utils/index.js';
7
7
  import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
8
8
 
9
- const _hoisted_1 = { class: "c-keyboard" };
10
- const _hoisted_2 = { class: "left" };
11
- const _hoisted_3 = { class: "keys" };
9
+ const _hoisted_1 = { class: "left" };
10
+ const _hoisted_2 = { class: "keys" };
11
+ const _hoisted_3 = ["onClick"];
12
12
  const _hoisted_4 = ["onClick"];
13
- const _hoisted_5 = ["onClick"];
14
- const _hoisted_6 = { class: "btns" };
15
- const _hoisted_7 = ["onClick"];
16
- const _hoisted_8 = { class: "inputs" };
17
- const _hoisted_9 = { class: "inputs-right" };
18
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
13
+ const _hoisted_5 = { class: "btns" };
14
+ const _hoisted_6 = ["onClick"];
15
+ const _hoisted_7 = { class: "inputs" };
16
+ const _hoisted_8 = { class: "inputs-right" };
17
+ const _hoisted_9 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
19
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
20
19
  __name: "NumberPanel",
21
20
  props: {
22
21
  defaultValue: { type: Number },
23
- mode: { type: String }
22
+ mode: { type: String },
23
+ positionInitialValue: { type: Object, default: () => ({ x: 0, y: 0 }) },
24
+ moveOffset: { type: Object, default: () => ({ x: 0, y: 0 }) },
25
+ drag: { type: Boolean, default: false }
24
26
  },
25
27
  emits: ["change"],
26
28
  setup(__props, { emit }) {
@@ -39,10 +41,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
41
  const inputValueStatus = ref("success");
40
42
  const numeratorValueStatus = ref("success");
41
43
  const denominatorValueStatus = ref("success");
42
- if (props.defaultValue) {
43
- inputValue.value = props.defaultValue.toString();
44
- }
44
+ const keyboardRef = ref(null);
45
45
  const { history, undo, redo } = useRefHistory(inputValue);
46
+ const style = init();
47
+ function init() {
48
+ if (props.defaultValue) {
49
+ inputValue.value = props.defaultValue.toString();
50
+ }
51
+ if (props.drag) {
52
+ const { x, y, style: style2 } = useDraggable(keyboardRef, {
53
+ initialValue: props.positionInitialValue,
54
+ onMove: (position, event) => {
55
+ var _a, _b, _c, _d;
56
+ position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
57
+ position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
58
+ }
59
+ });
60
+ return style2;
61
+ }
62
+ }
46
63
  function keydown(key) {
47
64
  var _a, _b;
48
65
  switch (key) {
@@ -88,15 +105,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
88
105
  inputValueStatus.value = !inputValue.value ? "error" : "success";
89
106
  }
90
107
  return (_ctx, _cache) => {
91
- return openBlock(), createElementBlock("div", _hoisted_1, [
92
- createElementVNode("div", _hoisted_2, [
108
+ return openBlock(), createElementBlock("div", {
109
+ class: normalizeClass(["c-keyboard", { isFixed: __props.drag }]),
110
+ ref_key: "keyboardRef",
111
+ ref: keyboardRef,
112
+ style: normalizeStyle(unref(style))
113
+ }, [
114
+ createElementVNode("div", _hoisted_1, [
93
115
  createVNode(InputNumber, {
94
116
  modelValue: inputValue.value,
95
117
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
96
118
  status: inputValueStatus.value,
97
119
  "onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event)
98
120
  }, null, 8, ["modelValue", "status"]),
99
- createElementVNode("div", _hoisted_3, [
121
+ createElementVNode("div", _hoisted_2, [
100
122
  createVNode(unref(NSpace), null, {
101
123
  default: withCtx(() => [
102
124
  (openBlock(true), createElementBlock(Fragment, null, renderList(numberKeys.value, (key) => {
@@ -104,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
126
  key,
105
127
  class: normalizeClass(key === "0" ? "is-0" : ""),
106
128
  onClick: ($event) => keydown(key)
107
- }, toDisplayString(key), 11, _hoisted_4);
129
+ }, toDisplayString(key), 11, _hoisted_3);
108
130
  }), 128))
109
131
  ]),
110
132
  _: 1
@@ -138,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
160
  class: "btn",
139
161
  key: day,
140
162
  onClick: ($event) => keydown(day)
141
- }, toDisplayString(day) + "\u5929", 9, _hoisted_5);
163
+ }, toDisplayString(day) + "\u5929", 9, _hoisted_4);
142
164
  }), 128))
143
165
  ]),
144
166
  _: 1
@@ -149,13 +171,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
171
  "wrap-item": false
150
172
  }, {
151
173
  default: withCtx(() => [
152
- createElementVNode("div", _hoisted_6, [
174
+ createElementVNode("div", _hoisted_5, [
153
175
  (openBlock(true), createElementBlock(Fragment, null, renderList(doses.value, (dose) => {
154
176
  return openBlock(), createElementBlock("span", {
155
177
  class: "btn",
156
178
  key: dose,
157
179
  onClick: ($event) => updateFraction(dose)
158
- }, "1/" + toDisplayString(dose), 9, _hoisted_7);
180
+ }, "1/" + toDisplayString(dose), 9, _hoisted_6);
159
181
  }), 128))
160
182
  ]),
161
183
  createVNode(unref(NSpace), {
@@ -163,13 +185,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
163
185
  vertical: ""
164
186
  }, {
165
187
  default: withCtx(() => [
166
- createElementVNode("div", _hoisted_8, [
188
+ createElementVNode("div", _hoisted_7, [
167
189
  createVNode(InputNumber, {
168
190
  integer: "",
169
191
  modelValue: integerValue.value,
170
192
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => integerValue.value = $event)
171
193
  }, null, 8, ["modelValue"]),
172
- createElementVNode("div", _hoisted_9, [
194
+ createElementVNode("div", _hoisted_8, [
173
195
  createVNode(InputNumber, {
174
196
  integer: "",
175
197
  modelValue: numeratorValue.value,
@@ -177,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
199
  status: numeratorValueStatus.value,
178
200
  "onUpdate:status": _cache[6] || (_cache[6] = ($event) => numeratorValueStatus.value = $event)
179
201
  }, null, 8, ["modelValue", "status"]),
180
- _hoisted_10,
202
+ _hoisted_9,
181
203
  createVNode(InputNumber, {
182
204
  integer: "",
183
205
  modelValue: denominatorValue.value,
@@ -197,7 +219,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
197
219
  ]),
198
220
  _: 1
199
221
  })) : createCommentVNode("v-if", true)
200
- ]);
222
+ ], 6);
201
223
  };
202
224
  }
203
225
  });
@@ -1 +1 @@
1
- .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{display:flex;height:160px}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .btn:active{background:#2474ff;color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .left{border-right:1px solid #d5d5d5;box-sizing:border-box;padding:6px;width:130px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys .n-space{gap:4px 4px!important}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .left .keys span:active{background:#2474ff;color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;width:56px}.c-keyboard .right-dose{gap:8px 8px!important;padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;gap:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space{gap:0 0!important}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;gap:4px 4px;margin-top:5px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard-english .keys span:active{background:#2474ff;color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
1
+ .c-keyboard span,.c-keyboard-english .keys span{cursor:pointer}.c-keyboard{background:#fff;display:flex;height:160px}.c-keyboard.isFixed{position:fixed;z-index:1}.c-keyboard .btn{align-items:center;background:linear-gradient(180deg,#fff,#f2f2f2);border-radius:2px;box-shadow:0 2px 2px #00000036;box-sizing:border-box;display:inline-flex;font-size:14px;justify-content:center;text-align:center}.c-keyboard .btn:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .btn:active{background:#2474ff;color:#fff}.c-keyboard .btn:hover{box-shadow:none}.c-keyboard .left{border-right:1px solid #d5d5d5;box-sizing:border-box;padding:6px;width:130px}.c-keyboard .left .n-input{height:28px;width:100%}.c-keyboard .left .n-input .n-input__input-el{height:28px}.c-keyboard .left .keys{display:flex;margin-top:5px}.c-keyboard .left .keys .n-space{gap:4px 4px!important}.c-keyboard .left .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard .left .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard .left .keys span:active{background:#2474ff;color:#fff}.c-keyboard .left .keys span.opt{height:56px}.c-keyboard .left .keys span.is-0{width:56px}.c-keyboard .right-days{padding:0 12px}.c-keyboard .right-days .btn{height:26px;width:56px}.c-keyboard .right-dose{gap:8px 8px!important;padding:5px 12px 5px 5px}.c-keyboard .right-dose .btn{height:32px;width:100px}.c-keyboard .right-dose .btns{display:flex;flex-flow:column nowrap;height:100%;overflow-y:scroll;padding-right:6px}.c-keyboard .right-dose .btns .btn{height:20px;margin-top:4px;width:40px}.c-keyboard .right-dose .btns::-webkit-scrollbar{height:1px;width:2px}.c-keyboard .right-dose .btns::-webkit-scrollbar-track{background:#d8d8d8;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .btns::-webkit-scrollbar-thumb{background:#535353;border-radius:2px;box-shadow:inset 0 0 5px #fff}.c-keyboard .right-dose .inputs{align-items:center;display:flex;gap:8px}.c-keyboard .right-dose .inputs .n-input{height:32px;width:46px}.c-keyboard .right-dose .inputs .n-input .n-input__input-el{height:32px}.c-keyboard .n-input .n-input-wrapper{padding-right:5px}.c-keyboard .n-input .n-input-wrapper .n-input__suffix{line-height:0}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space{gap:0 0!important}.c-keyboard .n-input .n-input-wrapper .n-input__suffix .n-space .n-icon{cursor:pointer}.c-keyboard-english{background:#fff;box-sizing:border-box;padding:10px 6px;width:308px}.c-keyboard-english.isFixed{position:fixed;z-index:1}.c-keyboard-english .n-space span{font-size:12px}.c-keyboard-english .n-space .n-icon{cursor:pointer}.c-keyboard-english .keys{display:flex;flex-flow:row wrap;gap:4px 4px;margin-top:5px}.c-keyboard-english .keys span{align-items:center;background-color:#e8e8e8;border-radius:2px;box-sizing:border-box;display:inline-flex;font-size:14px;height:26px;justify-content:center;text-align:center;width:26px}.c-keyboard-english .keys span:hover{background:#2474ff33;border:1px solid #2474ff}.c-keyboard-english .keys span:active{background:#2474ff;color:#fff}.c-keyboard-english .keys span.key10,.c-keyboard-english .keys span.key27{margin-left:16px}.c-keyboard-english .keys span.key26{margin-right:25px}.c-keyboard-english .keys span.key19{margin-left:31px}.c-keyboard-english .keys span.key28{width:146px}.c-keyboard-english .keys span.key30{width:56px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.33-beta.9",
3
+ "version": "3.1.33",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "f761612c0928d25a924e23612d027ffc1e65de17"
64
+ "gitHead": "410dc2e066d1a4349f7239547679dd898c4be32f"
65
65
  }
@@ -1,36 +0,0 @@
1
- export const __esModule: true;
2
- declare const _default: vue_1.DefineComponent<{
3
- col: {
4
- type: ObjectConstructor;
5
- default: () => {};
6
- };
7
- row: {
8
- type: ObjectConstructor;
9
- default: () => {};
10
- };
11
- index: {
12
- type: (NumberConstructor | ObjectConstructor)[];
13
- default: number;
14
- };
15
- }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "formChange"[], "formChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
16
- col: {
17
- type: ObjectConstructor;
18
- default: () => {};
19
- };
20
- row: {
21
- type: ObjectConstructor;
22
- default: () => {};
23
- };
24
- index: {
25
- type: (NumberConstructor | ObjectConstructor)[];
26
- default: number;
27
- };
28
- }>> & {
29
- onFormChange?: ((...args: any[]) => any) | undefined;
30
- }, {
31
- row: Record<string, any>;
32
- index: number | Record<string, any>;
33
- col: Record<string, any>;
34
- }>;
35
- export default _default;
36
- import vue_1 = require("vue");
@@ -1,37 +0,0 @@
1
- export const __esModule: true;
2
- declare const _default: vue_1.DefineComponent<{
3
- col: {
4
- type: ObjectConstructor;
5
- default: () => {};
6
- };
7
- row: {
8
- type: ObjectConstructor;
9
- default: () => {};
10
- };
11
- index: {
12
- type: (NumberConstructor | ObjectConstructor)[];
13
- default: number;
14
- };
15
- }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("formChange" | "setOptions")[], "formChange" | "setOptions", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
16
- col: {
17
- type: ObjectConstructor;
18
- default: () => {};
19
- };
20
- row: {
21
- type: ObjectConstructor;
22
- default: () => {};
23
- };
24
- index: {
25
- type: (NumberConstructor | ObjectConstructor)[];
26
- default: number;
27
- };
28
- }>> & {
29
- onFormChange?: ((...args: any[]) => any) | undefined;
30
- onSetOptions?: ((...args: any[]) => any) | undefined;
31
- }, {
32
- row: Record<string, any>;
33
- index: number | Record<string, any>;
34
- col: Record<string, any>;
35
- }>;
36
- export default _default;
37
- import vue_1 = require("vue");
@@ -1,45 +0,0 @@
1
- export const __esModule: true;
2
- declare const _default: vue_1.DefineComponent<{
3
- type: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- col: {
8
- type: ObjectConstructor;
9
- default: () => {};
10
- };
11
- row: {
12
- type: ObjectConstructor;
13
- default: () => {};
14
- };
15
- index: {
16
- type: (NumberConstructor | ObjectConstructor)[];
17
- default: number;
18
- };
19
- }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "formChange"[], "formChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
20
- type: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- col: {
25
- type: ObjectConstructor;
26
- default: () => {};
27
- };
28
- row: {
29
- type: ObjectConstructor;
30
- default: () => {};
31
- };
32
- index: {
33
- type: (NumberConstructor | ObjectConstructor)[];
34
- default: number;
35
- };
36
- }>> & {
37
- onFormChange?: ((...args: any[]) => any) | undefined;
38
- }, {
39
- type: string;
40
- row: Record<string, any>;
41
- index: number | Record<string, any>;
42
- col: Record<string, any>;
43
- }>;
44
- export default _default;
45
- import vue_1 = require("vue");
@@ -1,4 +0,0 @@
1
- import { InjectionKey, Ref } from 'vue';
2
- import { fabric } from '../utils';
3
- export declare const InjectionCanvas: InjectionKey<Ref<fabric.Canvas>>;
4
- export declare const InjectionCanvasRef: InjectionKey<Ref<any | null>>;
@@ -1,4 +0,0 @@
1
- const InjectionCanvas = Symbol("canvas");
2
- const InjectionCanvasRef = Symbol();
3
-
4
- export { InjectionCanvas, InjectionCanvasRef };
@@ -1,65 +0,0 @@
1
- export const __esModule: true;
2
- export const LEVEL_SEARCH_CASCADER: vue_2.DefineComponent<{
3
- options: {
4
- type: ArrayConstructor;
5
- default: () => never[];
6
- };
7
- onFocus: {
8
- type: FunctionConstructor;
9
- };
10
- autograph: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- lazyRequest: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- requestCache: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- };
22
- wordbook: {
23
- type: ObjectConstructor;
24
- required: true;
25
- };
26
- onChange: {};
27
- value: {
28
- type: (ArrayConstructor | StringConstructor)[];
29
- };
30
- }, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
31
- options: {
32
- type: ArrayConstructor;
33
- default: () => never[];
34
- };
35
- onFocus: {
36
- type: FunctionConstructor;
37
- };
38
- autograph: {
39
- type: StringConstructor;
40
- required: true;
41
- };
42
- lazyRequest: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- requestCache: {
47
- type: BooleanConstructor;
48
- default: boolean;
49
- };
50
- wordbook: {
51
- type: ObjectConstructor;
52
- required: true;
53
- };
54
- onChange: {};
55
- value: {
56
- type: (ArrayConstructor | StringConstructor)[];
57
- };
58
- }>> & {
59
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
60
- }, {
61
- options: unknown[];
62
- lazyRequest: boolean;
63
- requestCache: boolean;
64
- }>;
65
- import vue_2 = require("vue");
@@ -1,64 +0,0 @@
1
- export const __esModule: true;
2
- export const RADIO: vue_2.DefineComponent<{
3
- value: {
4
- type: (NumberConstructor | StringConstructor)[];
5
- };
6
- options: {
7
- type: ArrayConstructor;
8
- default: () => never[];
9
- };
10
- autograph: {
11
- type: StringConstructor;
12
- };
13
- lazyRequest: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- requestCache: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- wordbook: {
22
- type: ObjectConstructor;
23
- };
24
- vertical: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- onChange: {};
29
- }, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
30
- value: {
31
- type: (NumberConstructor | StringConstructor)[];
32
- };
33
- options: {
34
- type: ArrayConstructor;
35
- default: () => never[];
36
- };
37
- autograph: {
38
- type: StringConstructor;
39
- };
40
- lazyRequest: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
- requestCache: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
48
- wordbook: {
49
- type: ObjectConstructor;
50
- };
51
- vertical: {
52
- type: BooleanConstructor;
53
- default: boolean;
54
- };
55
- onChange: {};
56
- }>> & {
57
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
58
- }, {
59
- options: unknown[];
60
- vertical: boolean;
61
- lazyRequest: boolean;
62
- requestCache: boolean;
63
- }>;
64
- import vue_2 = require("vue");
@@ -1,46 +0,0 @@
1
- export const __esModule: true;
2
- export const REMOTE_SEARCH: vue_2.DefineComponent<{
3
- value: {
4
- type: StringConstructor;
5
- };
6
- requestCache: {
7
- type: BooleanConstructor;
8
- default: boolean;
9
- };
10
- options: {
11
- type: ArrayConstructor;
12
- default: () => never[];
13
- };
14
- urlConfig: {
15
- type: ObjectConstructor;
16
- };
17
- onFocus: {
18
- type: FunctionConstructor;
19
- };
20
- onChange: {};
21
- }, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
22
- value: {
23
- type: StringConstructor;
24
- };
25
- requestCache: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
- options: {
30
- type: ArrayConstructor;
31
- default: () => never[];
32
- };
33
- urlConfig: {
34
- type: ObjectConstructor;
35
- };
36
- onFocus: {
37
- type: FunctionConstructor;
38
- };
39
- onChange: {};
40
- }>> & {
41
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
42
- }, {
43
- options: unknown[];
44
- requestCache: boolean;
45
- }>;
46
- import vue_2 = require("vue");
@@ -1,56 +0,0 @@
1
- export const __esModule: true;
2
- export const SEARCH: vue_2.DefineComponent<{
3
- value: {
4
- type: StringConstructor;
5
- };
6
- autograph: {
7
- type: StringConstructor;
8
- required: true;
9
- };
10
- lazyRequest: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- requestCache: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- wordbook: {
19
- type: ObjectConstructor;
20
- required: true;
21
- };
22
- onFocus: {
23
- type: FunctionConstructor;
24
- };
25
- onChange: {};
26
- }, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
27
- value: {
28
- type: StringConstructor;
29
- };
30
- autograph: {
31
- type: StringConstructor;
32
- required: true;
33
- };
34
- lazyRequest: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- requestCache: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
42
- wordbook: {
43
- type: ObjectConstructor;
44
- required: true;
45
- };
46
- onFocus: {
47
- type: FunctionConstructor;
48
- };
49
- onChange: {};
50
- }>> & {
51
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
52
- }, {
53
- lazyRequest: boolean;
54
- requestCache: boolean;
55
- }>;
56
- import vue_2 = require("vue");