cnhis-design-vue 3.3.3-release.12 → 3.3.3-release.14

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 (128) hide show
  1. package/README.md +87 -87
  2. package/es/components/button-print/index.d.ts +60 -0
  3. package/es/components/button-print/src/ButtonPrint.vue.d.ts +60 -0
  4. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
  5. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +18 -0
  6. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +33 -4
  7. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
  8. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +30 -4
  9. package/es/components/button-print/src/utils/print.d.ts +6 -4
  10. package/es/components/button-print/src/utils/print.js +176 -4
  11. package/es/components/calendar/src/Calendar.vue2.js +15 -5
  12. package/es/components/classification/index.d.ts +500 -5
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +500 -5
  14. package/es/components/classification/src/components/set-classification/index.vue.d.ts +500 -5
  15. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  16. package/es/components/classification/src/index.vue.d.ts +500 -5
  17. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
  18. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  19. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
  20. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
  21. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  22. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
  23. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  24. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  25. package/es/components/field-set/src/types/index.d.ts +1 -1
  26. package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
  27. package/es/components/form-render/src/components/renderer/date.js +12 -10
  28. package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -3
  29. package/es/components/form-render/style/index.css +1 -1
  30. package/es/components/iho-chat/index.d.ts +41 -50
  31. package/es/components/iho-chat/src/Index.vue.d.ts +41 -50
  32. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +6 -2
  33. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  34. package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +1 -1
  35. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +29 -28
  36. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +239 -94
  37. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  38. package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -24
  39. package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
  40. package/es/components/iho-chat/src/hooks/useVideo.d.ts +54 -10
  41. package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
  42. package/es/components/iho-chat/src/utils/index.d.ts +1 -0
  43. package/es/components/iho-chat/src/utils/index.js +7 -1
  44. package/es/components/iho-chat/style/index.css +1 -1
  45. package/es/components/index.css +1 -1
  46. package/es/components/index.d.ts +2 -0
  47. package/es/components/index.js +2 -1
  48. package/es/components/keyboard/index.d.ts +9 -0
  49. package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
  50. package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
  51. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
  52. package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
  53. package/es/components/keyboard/src/types.d.ts +17 -0
  54. package/es/components/keyboard/src/types.js +1 -0
  55. package/es/components/scale-view/index.d.ts +13 -0
  56. package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
  57. package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
  58. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
  59. package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
  60. package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
  61. package/es/components/table-filter/index.js +1 -1
  62. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +490 -1
  63. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
  64. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
  65. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
  66. package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
  67. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +238 -0
  68. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
  69. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +239 -1
  70. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +51 -8
  71. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +477 -1
  72. package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
  73. package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
  74. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +500 -5
  75. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +13 -6
  76. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  77. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  78. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  79. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
  80. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +32 -4
  81. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
  82. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
  83. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
  84. package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
  85. package/es/components/table-filter/src/tool/baseOptions.js +8 -1
  86. package/es/components/table-filter/src/types/enums.d.ts +4 -0
  87. package/es/components/table-filter/src/types/enums.js +5 -1
  88. package/es/components/vertify/index.d.ts +1 -0
  89. package/es/components/vertify/index.js +1 -0
  90. package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
  91. package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
  92. package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
  93. package/es/components/vertify/src/utils/dialog.d.ts +7 -0
  94. package/es/components/vertify/src/utils/dialog.js +73 -0
  95. package/es/components/vertify/src/utils/index.d.ts +11 -0
  96. package/es/components/vertify/src/utils/index.js +24 -0
  97. package/es/components/vod-chunk-upload/index.d.ts +13 -0
  98. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
  99. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
  100. package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
  101. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
  102. package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
  103. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
  104. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
  105. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
  106. package/es/components/vod-chunk-upload/style/index.css +1 -1
  107. package/es/env.d.ts +25 -25
  108. package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
  109. package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
  110. package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
  111. package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
  112. package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
  113. package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
  114. package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
  115. package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
  116. package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
  117. package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
  118. package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
  119. package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
  120. package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
  121. package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
  122. package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
  123. package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
  124. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  125. package/es/shared/hooks/useDateTime.js +1 -1
  126. package/es/shared/package.json.js +2 -2
  127. package/es/shared/utils/fabricjs/index.js +1 -1
  128. package/package.json +4 -4
@@ -64,6 +64,8 @@ export * from './slider-tree';
64
64
  export * from './audio-sdk';
65
65
  export * from './step-notice';
66
66
  export * from './info-header';
67
+ export * from './vertify';
68
+ export * from './keyboard';
67
69
  declare function install(app: App): void;
68
70
  export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CIhoChat, CCallback, CSliderTree, CBodySelect, CDefaultPage, CStepNotice, CToothBitmap, CCardRender, CBranchNotice, CFieldEditor, CAudioSdk };
69
71
  declare const _default: {
@@ -86,7 +86,7 @@ import AudioSdk from './audio-sdk/index.js';
86
86
  export { default as CAudioSdk } from './audio-sdk/index.js';
87
87
  export { default as CInsuranceSDK } from './card-reader-sdk/src/insuranceSDK.js';
88
88
  export { default as CCardReaderSDK } from './card-reader-sdk/src/cardReaderSDK.js';
89
- export { formatDateRangeInfo, presetValToDateRangestr, presetValToTimestamp } from './table-filter/src/components/render-widget/helpers/presetValToTimestamp.js';
89
+ export { formatDateRangeInfo, formatSpecialDateRange, presetValToDateRangestr, presetValToTimestamp } from './table-filter/src/components/render-widget/helpers/presetValToTimestamp.js';
90
90
  export { DatePresetValEnums, DateRangeInnerValEnums, DateRangeOutDefEnums } from './table-filter/src/components/render-widget/enums.js';
91
91
  export { createOpacityColor, useTheme } from '../shared/hooks/useTheme.js';
92
92
  export { handleInputEvent, useDateTime } from '../shared/hooks/useDateTime.js';
@@ -103,6 +103,7 @@ export { useScrollLoading } from '../shared/hooks/useScrollLoading.js';
103
103
  export { vFlexibleResize } from '../shared/directive/flexibleResize.js';
104
104
  export { useGuide } from './guide/src/useGuide.js';
105
105
  export { DragScroll, useDragScroll } from './drag-scroll/src/index.js';
106
+ export { vertify } from './vertify/src/utils/index.js';
106
107
  export { default as CRecorder } from './audio-sdk/src/utils/recorder/recorder.js';
107
108
  export { useAnchor } from './form-render/src/hooks/useAnchor.js';
108
109
  export { BusinessCollector, useBusinessBinding } from './form-render/src/hooks/useBusinessBinding.js';
@@ -92,12 +92,16 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
92
92
  popoverRef: import("vue").Ref<any>;
93
93
  englishKeyboardRef: import("vue").Ref<HTMLDivElement | undefined>;
94
94
  keyboardDragRef: import("vue").Ref<HTMLElement | undefined>;
95
+ numberPanelRef: import("vue").Ref<import("./src/types").KeyboardInstance | undefined>;
95
96
  currentValue: import("vue").Ref<any>;
97
+ draggableInstance: null;
96
98
  _style: import("vue").ComputedRef<string> | undefined;
97
99
  init: () => import("vue").ComputedRef<string> | undefined;
98
100
  keydown: (key: string | number) => void;
99
101
  onChange: (value: number) => void;
100
102
  select: () => void;
103
+ setPosition: (position: import("@vueuse/core").Position) => void;
104
+ getPosition: () => import("@vueuse/core").Position;
101
105
  NPopover: any;
102
106
  NInputNumber: any;
103
107
  NIcon: any;
@@ -185,6 +189,7 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
185
189
  denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
186
190
  keyboardRef: import("vue").Ref<HTMLElement | null>;
187
191
  inputRef: any;
192
+ draggableInstance: null;
188
193
  style: import("vue").ComputedRef<string> | undefined;
189
194
  init: () => import("vue").ComputedRef<string> | undefined;
190
195
  setFocus: () => Promise<void>;
@@ -196,6 +201,9 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
196
201
  calculateFraction: () => void;
197
202
  setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
198
203
  setInputValueStatus: () => void;
204
+ safeEval: (expression: string) => number;
205
+ setPosition: (position: import("@vueuse/core").Position) => void;
206
+ getPosition: () => import("@vueuse/core").Position;
199
207
  NIcon: any;
200
208
  NSpace: any;
201
209
  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<{}>>, {}>;
@@ -341,3 +349,4 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
341
349
  moveOffset: import("@vueuse/core").Position;
342
350
  }>>;
343
351
  export default Keyboard;
352
+ export type { KeyboardInstance } from './src/types';
@@ -1,5 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { Position } from '@vueuse/core';
3
+ import type { KeyboardInstance } from './types';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  mode: {
5
6
  type: PropType<"number" | "day" | "dose" | "english">;
@@ -93,12 +94,16 @@ declare const _default: import("vue").DefineComponent<{
93
94
  popoverRef: import("vue").Ref<any>;
94
95
  englishKeyboardRef: import("vue").Ref<HTMLDivElement | undefined>;
95
96
  keyboardDragRef: import("vue").Ref<HTMLElement | undefined>;
97
+ numberPanelRef: import("vue").Ref<KeyboardInstance | undefined>;
96
98
  currentValue: import("vue").Ref<any>;
99
+ draggableInstance: null;
97
100
  _style: import("vue").ComputedRef<string> | undefined;
98
101
  init: () => import("vue").ComputedRef<string> | undefined;
99
102
  keydown: (key: string | number) => void;
100
103
  onChange: (value: number) => void;
101
104
  select: () => void;
105
+ setPosition: (position: Position) => void;
106
+ getPosition: () => Position;
102
107
  NPopover: any;
103
108
  NInputNumber: any;
104
109
  NIcon: any;
@@ -186,6 +191,7 @@ declare const _default: import("vue").DefineComponent<{
186
191
  denominatorValueStatus: import("vue").Ref<import("naive-ui/es/form/src/interface").FormValidationStatus>;
187
192
  keyboardRef: import("vue").Ref<HTMLElement | null>;
188
193
  inputRef: any;
194
+ draggableInstance: null;
189
195
  style: import("vue").ComputedRef<string> | undefined;
190
196
  init: () => import("vue").ComputedRef<string> | undefined;
191
197
  setFocus: () => Promise<void>;
@@ -197,6 +203,9 @@ declare const _default: import("vue").DefineComponent<{
197
203
  calculateFraction: () => void;
198
204
  setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
199
205
  setInputValueStatus: () => void;
206
+ safeEval: (expression: string) => number;
207
+ setPosition: (position: Position) => void;
208
+ getPosition: () => Position;
200
209
  NIcon: any;
201
210
  NSpace: any;
202
211
  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<{}>>, {}>;
@@ -94,28 +94,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
94
94
  const popoverRef = ref();
95
95
  const englishKeyboardRef = ref();
96
96
  const keyboardDragRef = ref();
97
+ const numberPanelRef = ref();
97
98
  const currentValue = ref();
99
+ let draggableInstance = null;
98
100
  const _style = init();
99
101
  function init() {
100
102
  if (props.defaultValue) {
101
103
  currentValue.value = props.defaultValue;
102
104
  }
103
105
  if (isDefault.value && props.drag) {
104
- const {
105
- x,
106
- y,
107
- style: style2
108
- } = useDraggable(englishKeyboardRef, {
106
+ draggableInstance = useDraggable(englishKeyboardRef, {
109
107
  initialValue: props.positionInitialValue,
110
108
  preventDefault: true,
111
109
  handle: keyboardDragRef,
112
- onMove: (position, event) => {
110
+ onMove: (position) => {
113
111
  var _a, _b, _c, _d;
114
112
  position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
115
113
  position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
116
114
  }
117
115
  });
118
- return style2;
116
+ return draggableInstance.style;
119
117
  }
120
118
  }
121
119
  function keydown(key) {
@@ -134,8 +132,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
134
132
  function select() {
135
133
  toSelectInputContent.value = Date.now();
136
134
  }
135
+ function setPosition(position) {
136
+ if (draggableInstance) {
137
+ draggableInstance.x.value = position.x;
138
+ draggableInstance.y.value = position.y;
139
+ } else if (numberPanelRef.value) {
140
+ numberPanelRef.value.setPosition(position);
141
+ }
142
+ }
143
+ function getPosition() {
144
+ if (draggableInstance) {
145
+ return {
146
+ x: draggableInstance.x.value,
147
+ y: draggableInstance.y.value
148
+ };
149
+ } else if (numberPanelRef.value) {
150
+ return numberPanelRef.value.getPosition();
151
+ }
152
+ return {
153
+ x: 0,
154
+ y: 0
155
+ };
156
+ }
137
157
  expose({
138
- select
158
+ select,
159
+ setPosition,
160
+ getPosition
139
161
  });
140
162
  return (_ctx, _cache) => {
141
163
  return !unref(isDefault) && !__props.panel ? (openBlock(), createBlock(unref(NPopover), {
@@ -162,7 +184,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
162
184
  }, null, 8, ["mode", "defaultValue"])]),
163
185
  _: 1
164
186
  }, 8, ["style"])) : !unref(isDefault) && __props.panel ? (openBlock(), createBlock(NumberPanel, mergeProps({
165
- key: 1
187
+ key: 1,
188
+ ref_key: "numberPanelRef",
189
+ ref: numberPanelRef
166
190
  }, unref(moveNumberPaneOptions), {
167
191
  style: unref(cssVars)
168
192
  }), null, 16, ["style"])) : (openBlock(), createElementBlock("div", {
@@ -81,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
81
81
  denominatorValueStatus: Ref<FormValidationStatus>;
82
82
  keyboardRef: Ref<HTMLElement | null>;
83
83
  inputRef: any;
84
+ draggableInstance: null;
84
85
  style: import("vue").ComputedRef<string> | undefined;
85
86
  init: () => import("vue").ComputedRef<string> | undefined;
86
87
  setFocus: () => Promise<void>;
@@ -92,6 +93,9 @@ declare const _default: import("vue").DefineComponent<{
92
93
  calculateFraction: () => void;
93
94
  setInputStatus: (valueRef: Ref<string>, statusRef: Ref<string>, isInteger?: boolean) => true | undefined;
94
95
  setInputValueStatus: () => void;
96
+ safeEval: (expression: string) => number;
97
+ setPosition: (position: Position) => void;
98
+ getPosition: () => Position;
95
99
  NIcon: any;
96
100
  NSpace: any;
97
101
  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<{}>>, {}>;
@@ -54,6 +54,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  },
55
55
  emits: ["change"],
56
56
  setup(__props, {
57
+ expose,
57
58
  emit
58
59
  }) {
59
60
  const props = __props;
@@ -76,25 +77,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
76
77
  const denominatorValueStatus = ref("success");
77
78
  const keyboardRef = ref(null);
78
79
  const inputRef = ref(null);
80
+ let draggableInstance = null;
79
81
  const style = init();
80
82
  function init() {
81
83
  if (props.defaultValue) {
82
84
  inputValue.value = props.defaultValue.toString();
83
85
  }
84
86
  if (props.drag) {
85
- const {
86
- x,
87
- y,
88
- style: style2
89
- } = useDraggable(keyboardRef, {
87
+ draggableInstance = useDraggable(keyboardRef, {
90
88
  initialValue: props.positionInitialValue,
91
- onMove: (position, event) => {
89
+ onMove: (position) => {
92
90
  var _a, _b, _c, _d;
93
91
  position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
94
92
  position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
95
93
  }
96
94
  });
97
- return style2;
95
+ return draggableInstance.style;
98
96
  }
99
97
  }
100
98
  async function setFocus() {
@@ -114,7 +112,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
114
112
  inputValueStatus.value = "error";
115
113
  return;
116
114
  }
117
- emit("change", eval(inputValue.value));
115
+ const result = safeEval(inputValue.value);
116
+ emit("change", result);
118
117
  setFocus();
119
118
  break;
120
119
  }
@@ -134,7 +133,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
134
133
  return;
135
134
  keydown("Enter");
136
135
  }
137
- async function updateValue(key2) {
136
+ async function updateValue(key) {
138
137
  var _a, _b, _c;
139
138
  const inputRefS = (_c = (_b = (_a = inputRef.value) == null ? void 0 : _a.$childrenRefs) == null ? void 0 : _b.$refs) == null ? void 0 : _c.inputElRef;
140
139
  const {
@@ -142,18 +141,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
142
141
  selectionEnd
143
142
  } = inputRefS;
144
143
  const arr = inputValue.value.split("");
145
- if (key2 === "Undo") {
144
+ if (key === "Undo") {
146
145
  const num = selectionStart === selectionEnd ? 1 : selectionEnd - selectionStart;
147
146
  const startIdx = selectionStart === selectionEnd ? selectionStart - 1 : selectionStart;
148
147
  if (inputValue.value && startIdx > -1)
149
148
  arr.splice(startIdx, num);
150
149
  } else {
151
- arr.splice(selectionStart, selectionEnd - selectionStart, key2);
150
+ arr.splice(selectionStart, selectionEnd - selectionStart, key);
152
151
  }
153
152
  inputValue.value = arr.join("");
154
153
  await nextTick();
155
154
  inputRefS.focus();
156
- const selectionIdx = key2 === "Undo" ? !selectionStart ? 0 : selectionEnd > selectionStart ? selectionStart : selectionStart - 1 : selectionStart + 1;
155
+ const selectionIdx = key === "Undo" ? !selectionStart ? 0 : selectionEnd > selectionStart ? selectionStart : selectionStart - 1 : selectionStart + 1;
157
156
  inputRefS.setSelectionRange(selectionIdx, selectionIdx);
158
157
  setInputValueStatus();
159
158
  }
@@ -211,6 +210,40 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
211
210
  function setInputValueStatus() {
212
211
  inputValueStatus.value = !inputValue.value ? "error" : "success";
213
212
  }
213
+ function safeEval(expression) {
214
+ const cleanExpression = expression.replace(/\b0+(\d)/g, "$1").replace(/\b0+\./g, "0.");
215
+ if (/^\d*\.?\d*$/.test(cleanExpression)) {
216
+ return parseFloat(cleanExpression) || 0;
217
+ }
218
+ try {
219
+ return new Function("return " + cleanExpression)();
220
+ } catch (error) {
221
+ console.error("Expression evaluation error:", error);
222
+ return 0;
223
+ }
224
+ }
225
+ function setPosition(position) {
226
+ if (draggableInstance) {
227
+ draggableInstance.x.value = position.x;
228
+ draggableInstance.y.value = position.y;
229
+ }
230
+ }
231
+ function getPosition() {
232
+ if (draggableInstance) {
233
+ return {
234
+ x: draggableInstance.x.value,
235
+ y: draggableInstance.y.value
236
+ };
237
+ }
238
+ return {
239
+ x: 0,
240
+ y: 0
241
+ };
242
+ }
243
+ expose({
244
+ setPosition,
245
+ getPosition
246
+ });
214
247
  watch(() => props.value, (value) => inputValue.value = (value || "").toString(), {
215
248
  immediate: true
216
249
  });
@@ -238,12 +271,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
238
271
  class: "margin-offset",
239
272
  "wrap-item": false
240
273
  }, {
241
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (key2) => {
274
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (key) => {
242
275
  return openBlock(), createElementBlock("span", {
243
- key: key2,
244
- class: normalizeClass(key2 === "0" ? "is-0" : ""),
245
- onClick: ($event) => keydown(key2)
246
- }, toDisplayString(key2), 11, _hoisted_2);
276
+ key,
277
+ class: normalizeClass(key === "0" ? "is-0" : ""),
278
+ onClick: ($event) => keydown(key)
279
+ }, toDisplayString(key), 11, _hoisted_2);
247
280
  }), 128))]),
248
281
  _: 1
249
282
  }), createVNode(unref(NSpace), {
@@ -0,0 +1,17 @@
1
+ import type { Position } from '@vueuse/core';
2
+ export interface KeyboardInstance {
3
+ /**
4
+ * 选择输入内容
5
+ */
6
+ select: () => void;
7
+ /**
8
+ * 手动设置键盘位置
9
+ * @param position 目标位置 { x: number, y: number }
10
+ */
11
+ setPosition: (position: Position) => void;
12
+ /**
13
+ * 获取当前键盘位置
14
+ * @returns 当前位置 { x: number, y: number }
15
+ */
16
+ getPosition: () => Position;
17
+ }
@@ -92,6 +92,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
92
92
  type: FunctionConstructor;
93
93
  default: () => Promise<{}>;
94
94
  };
95
+ chunkUploadApiConfig: {
96
+ type: ObjectConstructor;
97
+ default: () => {};
98
+ };
95
99
  fontSizeObj: {
96
100
  type: ObjectConstructor;
97
101
  default: () => {
@@ -256,6 +260,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
256
260
  type: FunctionConstructor;
257
261
  default: () => Promise<{}>;
258
262
  };
263
+ chunkUploadApiConfig: {
264
+ type: ObjectConstructor;
265
+ default: () => {};
266
+ };
259
267
  fontSizeObj: {
260
268
  type: ObjectConstructor;
261
269
  default: () => {
@@ -914,6 +922,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
914
922
  type: FunctionConstructor;
915
923
  default: () => Promise<{}>;
916
924
  };
925
+ chunkUploadApiConfig: {
926
+ type: ObjectConstructor;
927
+ default: () => {};
928
+ };
917
929
  fontSizeObj: {
918
930
  type: ObjectConstructor;
919
931
  default: () => {
@@ -978,6 +990,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
978
990
  uploadFileUrl: string;
979
991
  ak: string;
980
992
  getChunkUploadConfig: Function;
993
+ chunkUploadApiConfig: Record<string, any>;
981
994
  fontSizeObj: Record<string, any>;
982
995
  hasExtendBtn: boolean;
983
996
  printingHideBtn: boolean;
@@ -91,6 +91,10 @@ declare const _default: import("vue").DefineComponent<{
91
91
  type: FunctionConstructor;
92
92
  default: () => Promise<{}>;
93
93
  };
94
+ chunkUploadApiConfig: {
95
+ type: ObjectConstructor;
96
+ default: () => {};
97
+ };
94
98
  fontSizeObj: {
95
99
  type: ObjectConstructor;
96
100
  default: () => {
@@ -255,6 +259,10 @@ declare const _default: import("vue").DefineComponent<{
255
259
  type: FunctionConstructor;
256
260
  default: () => Promise<{}>;
257
261
  };
262
+ chunkUploadApiConfig: {
263
+ type: ObjectConstructor;
264
+ default: () => {};
265
+ };
258
266
  fontSizeObj: {
259
267
  type: ObjectConstructor;
260
268
  default: () => {
@@ -913,6 +921,10 @@ declare const _default: import("vue").DefineComponent<{
913
921
  type: FunctionConstructor;
914
922
  default: () => Promise<{}>;
915
923
  };
924
+ chunkUploadApiConfig: {
925
+ type: ObjectConstructor;
926
+ default: () => {};
927
+ };
916
928
  fontSizeObj: {
917
929
  type: ObjectConstructor;
918
930
  default: () => {
@@ -977,6 +989,7 @@ declare const _default: import("vue").DefineComponent<{
977
989
  uploadFileUrl: string;
978
990
  ak: string;
979
991
  getChunkUploadConfig: Function;
992
+ chunkUploadApiConfig: Record<string, any>;
980
993
  fontSizeObj: Record<string, any>;
981
994
  hasExtendBtn: boolean;
982
995
  printingHideBtn: boolean;
@@ -320,7 +320,8 @@ const ScaleViewComputed = (props, state, config) => {
320
320
  const vodChunkUploadProps = computed(() => {
321
321
  return {
322
322
  source: "guage",
323
- getChunkUploadConfig: props.getChunkUploadConfig
323
+ getChunkUploadConfig: props.getChunkUploadConfig,
324
+ chunkUploadApiConfig: props.chunkUploadApiConfig
324
325
  };
325
326
  });
326
327
  const selectLabelProps = computed(() => {
@@ -90,6 +90,10 @@ export declare const ScaleViewProps: {
90
90
  type: FunctionConstructor;
91
91
  default: () => Promise<{}>;
92
92
  };
93
+ chunkUploadApiConfig: {
94
+ type: ObjectConstructor;
95
+ default: () => {};
96
+ };
93
97
  fontSizeObj: {
94
98
  type: ObjectConstructor;
95
99
  default: () => {
@@ -90,6 +90,10 @@ const ScaleViewProps = {
90
90
  type: Function,
91
91
  default: () => Promise.resolve({})
92
92
  },
93
+ chunkUploadApiConfig: {
94
+ type: Object,
95
+ default: () => ({})
96
+ },
93
97
  fontSizeObj: {
94
98
  type: Object,
95
99
  default: () => ({
@@ -733,7 +733,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
733
733
  "margin-bottom": "20px"
734
734
  }
735
735
  }, {
736
- default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, "\u5DF2\u9009\u62E9\uFF1A" + toDisplayString(unref(caculateTagData).length), 1)) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
736
+ default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [createTextVNode(function() {
737
+ var _a, _b, _c;
738
+ try {
739
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.39")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.39")) || "\u5DF2\u9009\u62E9";
740
+ } catch (e) {
741
+ return "\u5DF2\u9009\u62E9";
742
+ }
743
+ }()), createElementVNode("span", null, "\uFF1A" + toDisplayString(unref(caculateTagData).length), 1)])) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
737
744
  key: 1,
738
745
  class: "c-select-person__clear-btn",
739
746
  onClick: clearAll
@@ -1,2 +1,2 @@
1
- export { formatDateRangeInfo, presetValToDateRangestr, presetValToTimestamp } from './src/components/render-widget/helpers/presetValToTimestamp.js';
1
+ export { formatDateRangeInfo, formatSpecialDateRange, presetValToDateRangestr, presetValToTimestamp } from './src/components/render-widget/helpers/presetValToTimestamp.js';
2
2
  export { DatePresetValEnums, DateRangeInnerValEnums, DateRangeOutDefEnums } from './src/components/render-widget/enums.js';