cnhis-design-vue 3.1.31-beta.2 → 3.1.31-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/es/components/button-print/index.d.ts +1 -1
  2. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  3. package/es/components/button-print/src/components/{edit.js → EditFormat.js} +3 -3
  4. package/es/components/button-print/src/components/{edit.vue.d.ts → EditFormat.vue.d.ts} +0 -0
  5. package/es/components/button-print/src/components/IdentityVerification.js +2 -2
  6. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
  7. package/es/components/button-print/src/components/Preview.js +6 -0
  8. package/es/components/button-print/src/components/Preview.vue.d.ts +41 -0
  9. package/es/components/button-print/src/components/Preview.vue_vue_type_script_setup_true_lang.js +67 -0
  10. package/es/components/button-print/src/utils/browserPrint.d.ts +1 -1
  11. package/es/components/button-print/src/utils/browserPrint.js +1 -2
  12. package/es/components/button-print/src/utils/dialog.d.ts +5 -1
  13. package/es/components/button-print/src/utils/dialog.js +64 -22
  14. package/es/components/button-print/src/utils/print.d.ts +4 -1
  15. package/es/components/button-print/src/utils/print.js +11 -2
  16. package/es/components/button-print/style/index.css +1 -1
  17. package/es/components/iho-table/index.d.ts +124 -66
  18. package/es/components/iho-table/src/IhoTable.js +2 -1
  19. package/es/components/iho-table/src/IhoTable.vue.d.ts +124 -66
  20. package/es/components/iho-table/src/components/IhoTableColumn.js +14 -11
  21. package/es/components/iho-table/src/constants/index.d.ts +5 -3
  22. package/es/components/iho-table/src/constants/index.js +5 -3
  23. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +64 -5
  24. package/es/components/iho-table/src/hooks/tapHooks/index.js +17 -9
  25. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +60 -1
  26. package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
  27. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +3 -2
  28. package/es/components/iho-table/src/plugins/filterPlugin/filter.js +1 -0
  29. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +1 -1
  30. package/es/components/iho-table/src/plugins/index.js +14 -12
  31. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +1 -0
  32. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +32 -0
  33. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
  34. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +9 -11
  35. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +11 -15
  36. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +17 -24
  37. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +11 -13
  38. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.js +2 -1
  39. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
  40. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +8 -11
  41. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +13 -17
  42. package/es/components/iho-table/src/types/index.d.ts +6 -6
  43. package/es/components/iho-table/src/types/pluginType.d.ts +2 -1
  44. package/es/components/iho-table/src/utils/index.d.ts +12 -2
  45. package/es/components/iho-table/src/utils/index.js +33 -2
  46. package/es/components/iho-table/style/index.css +1 -1
  47. package/es/components/index.css +1 -1
  48. package/es/components/keyboard/index.d.ts +122 -64
  49. package/es/components/keyboard/src/Keyboard.js +109 -251
  50. package/es/components/keyboard/src/Keyboard.vue.d.ts +124 -66
  51. package/es/components/keyboard/src/components/InputNumber.vue.d.ts +6 -4
  52. package/es/components/keyboard/src/components/NumberPanel.js +206 -0
  53. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +118 -0
  54. package/es/components/search-cascader/src/components/SearchMenu.js +3 -3
  55. package/es/shared/utils/index.d.ts +1 -1
  56. package/es/shared/utils/index.js +3 -3
  57. package/package.json +2 -2
@@ -1,33 +1,21 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, unref, createElementVNode, createVNode, withCtx, renderList, normalizeClass, toDisplayString, createBlock, normalizeStyle, createTextVNode } from 'vue';
2
- import { NSpace, NIcon } from 'naive-ui';
3
- import { ArrowUndoSharp, Close, GitCompareOutline } from '@vicons/ionicons5';
4
- import InputNumber from './components/InputNumber.js';
5
- import { useRefHistory, useDraggable } from '@vueuse/core';
6
- import { getNumber } from './utils/index.js';
1
+ import { defineComponent, computed, ref, unref, openBlock, createBlock, withCtx, createVNode, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, createCommentVNode, createTextVNode, toDisplayString } from 'vue';
2
+ import { NPopover, NInputNumber, NSpace, NIcon } from 'naive-ui';
3
+ import { Close, GitCompareOutline, ArrowUndoSharp } from '@vicons/ionicons5';
4
+ import NumberPanel from './components/NumberPanel.js';
5
+ import { useDraggable } from '@vueuse/core';
7
6
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
8
7
 
9
- const _hoisted_1 = {
10
- key: 0,
11
- class: "c-keyboard"
12
- };
13
- const _hoisted_2 = { class: "left" };
14
- const _hoisted_3 = { class: "keys" };
15
- const _hoisted_4 = ["onClick"];
16
- const _hoisted_5 = ["onClick"];
17
- const _hoisted_6 = { class: "btns" };
18
- const _hoisted_7 = ["onClick"];
19
- const _hoisted_8 = { class: "inputs" };
20
- const _hoisted_9 = { class: "inputs-right" };
21
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
22
- const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, "\u952E\u76D8", -1);
23
- const _hoisted_12 = { class: "keys" };
24
- const _hoisted_13 = ["onClick"];
8
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "\u952E\u76D8", -1);
9
+ const _hoisted_2 = { class: "keys" };
10
+ const _hoisted_3 = ["onClick"];
25
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
26
12
  __name: "Keyboard",
27
13
  props: {
28
14
  mode: { type: String, default: "english" },
29
15
  dragable: { type: Boolean, default: false },
30
- positionInitialValue: { type: Object, default: () => ({ x: 0, y: 0 }) }
16
+ positionInitialValue: { type: Object, default: () => ({ x: 0, y: 0 }) },
17
+ defaultValue: { type: Number },
18
+ panel: { type: Boolean, default: true }
31
19
  },
32
20
  emits: [
33
21
  "change",
@@ -35,248 +23,118 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
23
  ],
36
24
  setup(__props, { emit }) {
37
25
  const props = __props;
38
- const NUMBERKEYS = "1234567890.";
39
- const DAYS = [3, 7, 14, 30];
40
26
  const ENGLISHKEY = "QWERTYUIOPASDFGHJKLZXCVBNM.";
41
27
  const ENGLISHOTHERKEY = ["Switch", " ", "Undo", "Enter"];
42
28
  const ENGLISHKEYS = ENGLISHKEY.split("").concat(ENGLISHOTHERKEY);
43
29
  const ENGLISHKEYS_ = ENGLISHKEY.split(".")[0].split("").sort().concat(["."], ENGLISHOTHERKEY);
30
+ const isDefault = computed(() => props.mode === "english");
31
+ const englishKeys = ref(ENGLISHKEYS.slice());
32
+ const popoverRef = ref(null);
44
33
  const englishKeyboardRef = ref(null);
45
34
  const keyboardDragRef = ref(null);
46
- const numberKeys = ref(NUMBERKEYS.split(""));
47
- const days = ref(DAYS);
48
- const doses = ref([2, 3, 4, 5, 6, 7, 8]);
49
- const englishKeys = ref(ENGLISHKEYS.slice());
50
- const value = ref();
51
- const inputValue = ref("");
52
- const integerValue = ref();
53
- const numeratorValue = ref();
54
- const denominatorValue = ref();
55
- const inputValueStatus = ref("success");
56
- const numeratorValueStatus = ref("success");
57
- const denominatorValueStatus = ref("success");
58
- const isDefault = computed(() => props.mode === "english");
59
- const isDay = computed(() => props.mode === "day");
60
- const isDose = computed(() => props.mode === "dose");
61
- const { history, undo, redo } = useRefHistory(inputValue);
62
- const { x, y, style } = useDraggable(englishKeyboardRef, {
63
- initialValue: props.positionInitialValue,
64
- preventDefault: true,
65
- handle: keyboardDragRef
66
- });
67
- function keydown(key) {
68
- var _a, _b;
69
- if (props.mode === "english") {
70
- if (key !== "Switch") {
71
- emit("keydown", key);
72
- } else {
73
- englishKeys.value = englishKeys.value[0] === "Q" ? ENGLISHKEYS_.slice() : ENGLISHKEYS.slice();
74
- }
75
- return;
35
+ const currentValue = ref();
36
+ const style = init();
37
+ function init() {
38
+ if (props.defaultValue) {
39
+ currentValue.value = props.defaultValue;
76
40
  }
77
- switch (key) {
78
- case "Undo": {
79
- undo();
80
- setInputValueStatus();
81
- break;
82
- }
83
- case "Enter":
84
- value.value = +inputValue.value;
85
- emit("change", value.value);
86
- break;
87
- default:
88
- if (typeof key === "number") {
89
- inputValue.value = key.toString();
90
- } else {
91
- inputValue.value = (((_b = (_a = inputValue.value) == null ? void 0 : _a.toString) == null ? void 0 : _b.call(_a)) || "") + key;
92
- }
93
- setInputValueStatus();
94
- break;
41
+ if (isDefault.value && props.dragable) {
42
+ const { x, y, style: style2 } = useDraggable(englishKeyboardRef, {
43
+ initialValue: props.positionInitialValue,
44
+ preventDefault: true,
45
+ handle: keyboardDragRef
46
+ });
47
+ return style2;
95
48
  }
96
49
  }
97
- function updateFraction(value2) {
98
- if (!setInputStatus(inputValue, inputValueStatus))
99
- return;
100
- inputValue.value = (Math.round(+inputValue.value * (1 / value2) * 100) / 100).toString();
101
- setInputValueStatus();
102
- }
103
- function calculateFraction() {
104
- if (!setInputStatus(inputValue, inputValueStatus) || !setInputStatus(numeratorValue, numeratorValueStatus, true) || !setInputStatus(denominatorValue, denominatorValueStatus, true))
105
- return;
106
- const value2 = getNumber(integerValue.value) + getNumber(numeratorValue.value) / getNumber(denominatorValue.value);
107
- inputValue.value = (Math.round(+inputValue.value * value2 * 100) / 100).toString();
108
- setInputValueStatus();
109
- }
110
- function setInputStatus(valueRef, statusRef, isInteger) {
111
- if (!isInteger && (!valueRef.value || valueRef.value === ".") || isInteger && !valueRef.value) {
112
- statusRef.value = "error";
113
- return;
50
+ function keydown(key) {
51
+ if (key !== "Switch") {
52
+ emit("keydown", key);
53
+ } else {
54
+ englishKeys.value = englishKeys.value[0] === "Q" ? ENGLISHKEYS_.slice() : ENGLISHKEYS.slice();
114
55
  }
115
- return true;
116
56
  }
117
- function setInputValueStatus() {
118
- inputValueStatus.value = !inputValue.value ? "error" : "success";
57
+ function onchange(value) {
58
+ var _a, _b;
59
+ (_b = (_a = popoverRef.value) == null ? void 0 : _a.setShow) == null ? void 0 : _b.call(_a, false);
60
+ currentValue.value = value;
61
+ emit("change", value);
119
62
  }
120
63
  return (_ctx, _cache) => {
121
- return openBlock(), createElementBlock(Fragment, null, [
122
- createCommentVNode(' <n-popover\r\n ref="popoverRef"\r\n v-if="!isDefault"\r\n trigger="click"\r\n :show-arrow="false"\r\n placement="bottom-start"\r\n style="padding: 0"\r\n display-directive="show"\r\n > '),
123
- createCommentVNode(' <template #trigger>\r\n <n-input-number v-model:value="value" :show-button="false" />\r\n </template> '),
124
- !unref(isDefault) ? (openBlock(), createElementBlock("div", _hoisted_1, [
125
- createElementVNode("div", _hoisted_2, [
126
- createVNode(InputNumber, {
127
- modelValue: inputValue.value,
128
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
129
- status: inputValueStatus.value,
130
- "onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event)
131
- }, null, 8, ["modelValue", "status"]),
132
- createElementVNode("div", _hoisted_3, [
133
- createVNode(unref(NSpace), null, {
134
- default: withCtx(() => [
135
- (openBlock(true), createElementBlock(Fragment, null, renderList(numberKeys.value, (key) => {
136
- return openBlock(), createElementBlock("span", {
137
- key,
138
- class: normalizeClass(key === "0" ? "is-0" : ""),
139
- onClick: ($event) => keydown(key)
140
- }, toDisplayString(key), 11, _hoisted_4);
141
- }), 128))
142
- ]),
143
- _: 1
144
- }),
145
- createVNode(unref(NSpace), null, {
146
- default: withCtx(() => [
147
- createElementVNode("span", {
148
- class: "opt",
149
- onClick: _cache[2] || (_cache[2] = ($event) => keydown("Undo"))
150
- }, [
151
- createVNode(unref(NIcon), { component: unref(ArrowUndoSharp) }, null, 8, ["component"])
152
- ]),
153
- createElementVNode("span", {
154
- class: "opt",
155
- onClick: _cache[3] || (_cache[3] = ($event) => keydown("Enter"))
156
- }, "\u786E\u5B9A")
157
- ]),
158
- _: 1
159
- })
160
- ])
64
+ return !unref(isDefault) && !__props.panel ? (openBlock(), createBlock(unref(NPopover), {
65
+ key: 0,
66
+ ref_key: "popoverRef",
67
+ ref: popoverRef,
68
+ trigger: "click",
69
+ "show-arrow": false,
70
+ placement: "bottom-start",
71
+ style: { "padding": "0" },
72
+ "display-directive": "show"
73
+ }, {
74
+ trigger: withCtx(() => [
75
+ createVNode(unref(NInputNumber), {
76
+ value: currentValue.value,
77
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => currentValue.value = $event),
78
+ "show-button": false
79
+ }, null, 8, ["value"])
80
+ ]),
81
+ default: withCtx(() => [
82
+ createVNode(NumberPanel, {
83
+ mode: __props.mode,
84
+ defaultValue: __props.defaultValue,
85
+ onChange: onchange
86
+ }, null, 8, ["mode", "defaultValue"])
87
+ ]),
88
+ _: 1
89
+ }, 512)) : !unref(isDefault) && __props.panel ? (openBlock(), createBlock(NumberPanel, {
90
+ key: 1,
91
+ mode: __props.mode,
92
+ defaultValue: __props.defaultValue,
93
+ onChange: onchange
94
+ }, null, 8, ["mode", "defaultValue"])) : (openBlock(), createElementBlock("div", {
95
+ key: 2,
96
+ class: normalizeClass(["c-keyboard-english", { isFixed: __props.dragable }]),
97
+ ref_key: "englishKeyboardRef",
98
+ ref: englishKeyboardRef,
99
+ style: normalizeStyle(unref(style))
100
+ }, [
101
+ createVNode(unref(NSpace), {
102
+ "wrap-item": false,
103
+ align: "center",
104
+ justify: "space-between",
105
+ ref_key: "keyboardDragRef",
106
+ ref: keyboardDragRef,
107
+ style: normalizeStyle({ cursor: __props.dragable ? "move" : "default" })
108
+ }, {
109
+ default: withCtx(() => [
110
+ _hoisted_1,
111
+ createVNode(unref(NIcon), {
112
+ onClick: _cache[1] || (_cache[1] = ($event) => keydown("close")),
113
+ component: unref(Close)
114
+ }, null, 8, ["component"])
161
115
  ]),
162
- unref(isDay) ? (openBlock(), createBlock(unref(NSpace), {
163
- key: 0,
164
- class: "right-days",
165
- justify: "center",
166
- vertical: ""
167
- }, {
168
- default: withCtx(() => [
169
- (openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day) => {
170
- return openBlock(), createElementBlock("span", {
171
- class: "btn",
172
- key: day,
173
- onClick: ($event) => keydown(day)
174
- }, toDisplayString(day) + "\u5929", 9, _hoisted_5);
175
- }), 128))
176
- ]),
177
- _: 1
178
- })) : createCommentVNode("v-if", true),
179
- unref(isDose) ? (openBlock(), createBlock(unref(NSpace), {
180
- key: 1,
181
- class: "right-dose",
182
- "wrap-item": false
183
- }, {
184
- default: withCtx(() => [
185
- createElementVNode("div", _hoisted_6, [
186
- (openBlock(true), createElementBlock(Fragment, null, renderList(doses.value, (dose) => {
187
- return openBlock(), createElementBlock("span", {
188
- class: "btn",
189
- key: dose,
190
- onClick: ($event) => updateFraction(dose)
191
- }, "1/" + toDisplayString(dose), 9, _hoisted_7);
192
- }), 128))
193
- ]),
194
- createVNode(unref(NSpace), {
195
- justify: "center",
196
- vertical: ""
197
- }, {
198
- default: withCtx(() => [
199
- createElementVNode("div", _hoisted_8, [
200
- createVNode(InputNumber, {
201
- integer: "",
202
- modelValue: integerValue.value,
203
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => integerValue.value = $event)
204
- }, null, 8, ["modelValue"]),
205
- createElementVNode("div", _hoisted_9, [
206
- createVNode(InputNumber, {
207
- integer: "",
208
- modelValue: numeratorValue.value,
209
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => numeratorValue.value = $event),
210
- status: numeratorValueStatus.value,
211
- "onUpdate:status": _cache[6] || (_cache[6] = ($event) => numeratorValueStatus.value = $event)
212
- }, null, 8, ["modelValue", "status"]),
213
- _hoisted_10,
214
- createVNode(InputNumber, {
215
- integer: "",
216
- modelValue: denominatorValue.value,
217
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => denominatorValue.value = $event),
218
- status: denominatorValueStatus.value,
219
- "onUpdate:status": _cache[8] || (_cache[8] = ($event) => denominatorValueStatus.value = $event)
220
- }, null, 8, ["modelValue", "status"])
221
- ])
222
- ]),
223
- createElementVNode("span", {
224
- class: "btn",
225
- onClick: calculateFraction
226
- }, "\u5206\u5B50\u5F0F\u5242\u91CF")
227
- ]),
228
- _: 1
229
- })
230
- ]),
231
- _: 1
232
- })) : createCommentVNode("v-if", true)
233
- ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
234
- createCommentVNode(" </n-popover> "),
235
- createElementVNode("div", {
236
- class: normalizeClass(["c-keyboard-english", { isFixed: __props.dragable }]),
237
- ref_key: "englishKeyboardRef",
238
- ref: englishKeyboardRef,
239
- style: normalizeStyle(unref(style))
240
- }, [
241
- createVNode(unref(NSpace), {
242
- "wrap-item": false,
243
- align: "center",
244
- justify: "space-between",
245
- ref_key: "keyboardDragRef",
246
- ref: keyboardDragRef,
247
- style: { "cursor": "move" }
248
- }, {
249
- default: withCtx(() => [
250
- _hoisted_11,
251
- createVNode(unref(NIcon), {
252
- onClick: _cache[9] || (_cache[9] = ($event) => keydown("close")),
253
- component: unref(Close)
254
- }, null, 8, ["component"])
255
- ]),
256
- _: 1
257
- }, 512),
258
- createElementVNode("div", _hoisted_12, [
259
- (openBlock(true), createElementBlock(Fragment, null, renderList(englishKeys.value, (key, index) => {
260
- return openBlock(), createElementBlock("span", {
261
- key,
262
- class: normalizeClass(["key" + index]),
263
- onClick: ($event) => keydown(key)
264
- }, [
265
- key === "Switch" ? (openBlock(), createBlock(unref(NIcon), {
266
- key: 0,
267
- component: unref(GitCompareOutline)
268
- }, null, 8, ["component"])) : createCommentVNode("v-if", true),
269
- key === "Undo" ? (openBlock(), createBlock(unref(NIcon), {
270
- key: 1,
271
- component: unref(ArrowUndoSharp)
272
- }, null, 8, ["component"])) : createCommentVNode("v-if", true),
273
- createTextVNode(" " + toDisplayString(!ENGLISHOTHERKEY.includes(key) || key === "Enter" ? key : key === "" ? "\u7A7A\u683C" : ""), 1)
274
- ], 10, _hoisted_13);
275
- }), 128))
276
- ])
277
- ], 6)
278
- ], 2112))
279
- ], 2112);
116
+ _: 1
117
+ }, 8, ["style"]),
118
+ createElementVNode("div", _hoisted_2, [
119
+ (openBlock(true), createElementBlock(Fragment, null, renderList(englishKeys.value, (key, index) => {
120
+ return openBlock(), createElementBlock("span", {
121
+ key,
122
+ class: normalizeClass(["key" + index]),
123
+ onClick: ($event) => keydown(key)
124
+ }, [
125
+ key === "Switch" ? (openBlock(), createBlock(unref(NIcon), {
126
+ key: 0,
127
+ component: unref(GitCompareOutline)
128
+ }, null, 8, ["component"])) : createCommentVNode("v-if", true),
129
+ key === "Undo" ? (openBlock(), createBlock(unref(NIcon), {
130
+ key: 1,
131
+ component: unref(ArrowUndoSharp)
132
+ }, null, 8, ["component"])) : createCommentVNode("v-if", true),
133
+ createTextVNode(" " + toDisplayString(!ENGLISHOTHERKEY.includes(key) || key === "Enter" ? key : key === "" ? "\u7A7A\u683C" : ""), 1)
134
+ ], 10, _hoisted_3);
135
+ }), 128))
136
+ ])
137
+ ], 6));
280
138
  };
281
139
  }
282
140
  });
@@ -1,4 +1,4 @@
1
- import { PropType, Ref } from 'vue';
1
+ import { PropType } from 'vue';
2
2
  declare type IPointer = {
3
3
  x: number;
4
4
  y: number;
@@ -19,9 +19,14 @@ declare const _default: import("vue").DefineComponent<{
19
19
  y: number;
20
20
  };
21
21
  };
22
+ defaultValue: {
23
+ type: NumberConstructor;
24
+ };
25
+ panel: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
22
29
  }, {
23
- NUMBERKEYS: string;
24
- DAYS: number[];
25
30
  ENGLISHKEY: string;
26
31
  ENGLISHOTHERKEY: string[];
27
32
  ENGLISHKEYS: string[];
@@ -42,59 +47,80 @@ declare const _default: import("vue").DefineComponent<{
42
47
  y: number;
43
48
  };
44
49
  };
50
+ defaultValue: {
51
+ type: NumberConstructor;
52
+ };
53
+ panel: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
45
57
  }>> & {
46
58
  onChange?: ((...args: any[]) => any) | undefined;
47
59
  onKeydown?: ((...args: any[]) => any) | undefined;
48
60
  }>>;
49
61
  emit: (event: "change" | "keydown", ...args: any[]) => void;
50
- englishKeyboardRef: Ref<HTMLElement | null>;
51
- keyboardDragRef: Ref<HTMLElement | null>;
52
- numberKeys: Ref<string[]>;
53
- days: Ref<number[]>;
54
- doses: Ref<number[]>;
55
- englishKeys: Ref<string[]>;
56
- value: Ref<any>;
57
- inputValue: Ref<string>;
58
- integerValue: Ref<any>;
59
- numeratorValue: Ref<any>;
60
- denominatorValue: Ref<any>;
61
- inputValueStatus: Ref<string>;
62
- numeratorValueStatus: Ref<string>;
63
- denominatorValueStatus: Ref<string>;
64
62
  isDefault: import("vue").ComputedRef<boolean>;
65
- isDay: import("vue").ComputedRef<boolean>;
66
- isDose: import("vue").ComputedRef<boolean>;
67
- history: Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
68
- undo: () => void;
69
- redo: () => void;
70
- x: Ref<number>;
71
- y: Ref<number>;
72
- style: import("vue").ComputedRef<string>;
63
+ englishKeys: import("vue").Ref<string[]>;
64
+ popoverRef: import("vue").Ref<null>;
65
+ englishKeyboardRef: import("vue").Ref<HTMLElement | null>;
66
+ keyboardDragRef: import("vue").Ref<HTMLElement | null>;
67
+ currentValue: import("vue").Ref<any>;
68
+ style: import("vue").ComputedRef<string> | undefined;
69
+ init: () => import("vue").ComputedRef<string> | undefined;
73
70
  keydown: (key: string | number) => void;
74
- updateFraction: (value: number) => void;
75
- calculateFraction: () => void;
76
- setInputStatus: (valueRef: Ref<string>, statusRef: Ref<string>, isInteger?: boolean) => true | undefined;
77
- setInputValueStatus: () => void;
71
+ onchange: (value: number) => void;
72
+ NPopover: any;
73
+ NInputNumber: any;
78
74
  NIcon: any;
79
75
  NSpace: any;
80
76
  ArrowUndoSharp: 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<{}>>, {}>;
81
77
  Close: 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<{}>>, {}>;
82
78
  GitCompareOutline: 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<{}>>, {}>;
83
- InputNumber: import("vue").DefineComponent<{
84
- modelValue: {
85
- type: StringConstructor;
86
- default: string;
87
- };
88
- integer: {
89
- type: BooleanConstructor;
90
- default: boolean;
79
+ NumberPanel: import("vue").DefineComponent<{
80
+ defaultValue: {
81
+ type: NumberConstructor;
91
82
  };
92
- status: {
83
+ mode: {
93
84
  type: StringConstructor;
94
- default: string;
95
85
  };
96
86
  }, {
87
+ NUMBERKEYS: string;
88
+ DAYS: number[];
97
89
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
90
+ defaultValue: {
91
+ type: NumberConstructor;
92
+ };
93
+ mode: {
94
+ type: StringConstructor;
95
+ };
96
+ }>> & {
97
+ onChange?: ((...args: any[]) => any) | undefined;
98
+ }>>;
99
+ emit: (event: "change", ...args: any[]) => void;
100
+ isDay: import("vue").ComputedRef<boolean>;
101
+ isDose: import("vue").ComputedRef<boolean>;
102
+ numberKeys: import("vue").Ref<string[]>;
103
+ days: import("vue").Ref<number[]>;
104
+ doses: import("vue").Ref<number[]>;
105
+ inputValue: import("vue").Ref<string>;
106
+ integerValue: import("vue").Ref<any>;
107
+ numeratorValue: import("vue").Ref<any>;
108
+ denominatorValue: import("vue").Ref<any>;
109
+ inputValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
110
+ numeratorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
111
+ denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
112
+ history: import("vue").Ref<import("@vueuse/core").UseRefHistoryRecord<string>[]>;
113
+ undo: () => void;
114
+ redo: () => void;
115
+ keydown: (key: string | number) => void;
116
+ updateFraction: (value: number) => void;
117
+ calculateFraction: () => void;
118
+ setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
119
+ setInputValueStatus: () => void;
120
+ NIcon: any;
121
+ NSpace: any;
122
+ ArrowUndoSharp: 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<{}>>, {}>;
123
+ InputNumber: import("vue").DefineComponent<{
98
124
  modelValue: {
99
125
  type: StringConstructor;
100
126
  default: string;
@@ -104,43 +130,67 @@ declare const _default: import("vue").DefineComponent<{
104
130
  default: boolean;
105
131
  };
106
132
  status: {
133
+ type: PropType<import("naive-ui/es/form/src/interface").FormValidationStatus>;
134
+ default: string;
135
+ };
136
+ }, {
137
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
138
+ modelValue: {
139
+ type: StringConstructor;
140
+ default: string;
141
+ };
142
+ integer: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ status: {
147
+ type: PropType<import("naive-ui/es/form/src/interface").FormValidationStatus>;
148
+ default: string;
149
+ };
150
+ }>> & {
151
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
152
+ "onUpdate:status"?: ((...args: any[]) => any) | undefined;
153
+ }>>;
154
+ emit: (event: "update:modelValue" | "update:status", ...args: any[]) => void;
155
+ update: (value: string | [string, string]) => void;
156
+ validator: (value: string) => boolean;
157
+ calculate: (type: string) => void;
158
+ NInput: any;
159
+ NIcon: any;
160
+ NSpace: any;
161
+ CaretDown: 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<{}>>, {}>;
162
+ CaretUp: 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<{}>>, {}>;
163
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status")[], "update:modelValue" | "update:status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
164
+ modelValue: {
107
165
  type: StringConstructor;
108
166
  default: string;
109
167
  };
168
+ integer: {
169
+ type: BooleanConstructor;
170
+ default: boolean;
171
+ };
172
+ status: {
173
+ type: PropType<import("naive-ui/es/form/src/interface").FormValidationStatus>;
174
+ default: string;
175
+ };
110
176
  }>> & {
111
177
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
112
178
  "onUpdate:status"?: ((...args: any[]) => any) | undefined;
113
- }>>;
114
- emit: (event: "update:modelValue" | "update:status", ...args: any[]) => void;
115
- update: (value: string | [string, string]) => void;
116
- validator: (value: string) => boolean;
117
- calculate: (type: string) => void;
118
- NInput: any;
119
- NIcon: any;
120
- NSpace: any;
121
- CaretDown: 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<{}>>, {}>;
122
- CaretUp: 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<{}>>, {}>;
123
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:status")[], "update:modelValue" | "update:status", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
124
- modelValue: {
125
- type: StringConstructor;
126
- default: string;
127
- };
128
- integer: {
129
- type: BooleanConstructor;
130
- default: boolean;
179
+ }, {
180
+ modelValue: string;
181
+ status: import("naive-ui/es/form/src/interface").FormValidationStatus;
182
+ integer: boolean;
183
+ }>;
184
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
185
+ defaultValue: {
186
+ type: NumberConstructor;
131
187
  };
132
- status: {
188
+ mode: {
133
189
  type: StringConstructor;
134
- default: string;
135
190
  };
136
191
  }>> & {
137
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
138
- "onUpdate:status"?: ((...args: any[]) => any) | undefined;
139
- }, {
140
- modelValue: string;
141
- status: string;
142
- integer: boolean;
143
- }>;
192
+ onChange?: ((...args: any[]) => any) | undefined;
193
+ }, {}>;
144
194
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "keydown")[], "change" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
145
195
  mode: {
146
196
  type: PropType<"day" | "dose" | "english">;
@@ -157,6 +207,13 @@ declare const _default: import("vue").DefineComponent<{
157
207
  y: number;
158
208
  };
159
209
  };
210
+ defaultValue: {
211
+ type: NumberConstructor;
212
+ };
213
+ panel: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
160
217
  }>> & {
161
218
  onChange?: ((...args: any[]) => any) | undefined;
162
219
  onKeydown?: ((...args: any[]) => any) | undefined;
@@ -164,5 +221,6 @@ declare const _default: import("vue").DefineComponent<{
164
221
  mode: "day" | "dose" | "english";
165
222
  dragable: boolean;
166
223
  positionInitialValue: IPointer;
224
+ panel: boolean;
167
225
  }>;
168
226
  export default _default;