cnhis-design-vue 3.3.3-release.13 → 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.
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +25 -4
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +22 -4
- package/es/components/button-print/src/utils/print.d.ts +3 -3
- package/es/components/button-print/src/utils/print.js +11 -0
- package/es/components/calendar/src/Calendar.vue2.js +15 -5
- package/es/components/classification/index.d.ts +500 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +500 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +500 -5
- package/es/components/classification/src/index.vue.d.ts +500 -5
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +3 -2
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +58 -15
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +4 -3
- package/es/components/form-render/src/components/renderer/date.d.ts +3 -1
- package/es/components/form-render/src/components/renderer/date.js +12 -10
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +7 -2
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +1 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +0 -2
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.js +12 -14
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/keyboard/index.d.ts +1 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +1 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +23 -10
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -1
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +490 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +226 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.js +6 -0
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +156 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +238 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +43 -4
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +239 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +51 -8
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +477 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +49 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +500 -5
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +13 -6
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -3
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +23 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useAdvanced.js +5 -4
- package/es/components/table-filter/src/types/enums.d.ts +4 -0
- package/es/components/table-filter/src/types/enums.js +5 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +2 -2
- package/package.json +4 -4
package/es/components/index.js
CHANGED
@@ -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';
|
@@ -201,6 +201,7 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
|
|
201
201
|
calculateFraction: () => void;
|
202
202
|
setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
|
203
203
|
setInputValueStatus: () => void;
|
204
|
+
safeEval: (expression: string) => number;
|
204
205
|
setPosition: (position: import("@vueuse/core").Position) => void;
|
205
206
|
getPosition: () => import("@vueuse/core").Position;
|
206
207
|
NIcon: any;
|
@@ -203,6 +203,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
203
203
|
calculateFraction: () => void;
|
204
204
|
setInputStatus: (valueRef: import("vue").Ref<string>, statusRef: import("vue").Ref<string>, isInteger?: boolean | undefined) => true | undefined;
|
205
205
|
setInputValueStatus: () => void;
|
206
|
+
safeEval: (expression: string) => number;
|
206
207
|
setPosition: (position: Position) => void;
|
207
208
|
getPosition: () => Position;
|
208
209
|
NIcon: any;
|
@@ -93,6 +93,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
93
93
|
calculateFraction: () => void;
|
94
94
|
setInputStatus: (valueRef: Ref<string>, statusRef: Ref<string>, isInteger?: boolean) => true | undefined;
|
95
95
|
setInputValueStatus: () => void;
|
96
|
+
safeEval: (expression: string) => number;
|
96
97
|
setPosition: (position: Position) => void;
|
97
98
|
getPosition: () => Position;
|
98
99
|
NIcon: any;
|
@@ -112,7 +112,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
112
112
|
inputValueStatus.value = "error";
|
113
113
|
return;
|
114
114
|
}
|
115
|
-
|
115
|
+
const result = safeEval(inputValue.value);
|
116
|
+
emit("change", result);
|
116
117
|
setFocus();
|
117
118
|
break;
|
118
119
|
}
|
@@ -132,7 +133,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
132
133
|
return;
|
133
134
|
keydown("Enter");
|
134
135
|
}
|
135
|
-
async function updateValue(
|
136
|
+
async function updateValue(key) {
|
136
137
|
var _a, _b, _c;
|
137
138
|
const inputRefS = (_c = (_b = (_a = inputRef.value) == null ? void 0 : _a.$childrenRefs) == null ? void 0 : _b.$refs) == null ? void 0 : _c.inputElRef;
|
138
139
|
const {
|
@@ -140,18 +141,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
140
141
|
selectionEnd
|
141
142
|
} = inputRefS;
|
142
143
|
const arr = inputValue.value.split("");
|
143
|
-
if (
|
144
|
+
if (key === "Undo") {
|
144
145
|
const num = selectionStart === selectionEnd ? 1 : selectionEnd - selectionStart;
|
145
146
|
const startIdx = selectionStart === selectionEnd ? selectionStart - 1 : selectionStart;
|
146
147
|
if (inputValue.value && startIdx > -1)
|
147
148
|
arr.splice(startIdx, num);
|
148
149
|
} else {
|
149
|
-
arr.splice(selectionStart, selectionEnd - selectionStart,
|
150
|
+
arr.splice(selectionStart, selectionEnd - selectionStart, key);
|
150
151
|
}
|
151
152
|
inputValue.value = arr.join("");
|
152
153
|
await nextTick();
|
153
154
|
inputRefS.focus();
|
154
|
-
const selectionIdx =
|
155
|
+
const selectionIdx = key === "Undo" ? !selectionStart ? 0 : selectionEnd > selectionStart ? selectionStart : selectionStart - 1 : selectionStart + 1;
|
155
156
|
inputRefS.setSelectionRange(selectionIdx, selectionIdx);
|
156
157
|
setInputValueStatus();
|
157
158
|
}
|
@@ -209,6 +210,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
209
210
|
function setInputValueStatus() {
|
210
211
|
inputValueStatus.value = !inputValue.value ? "error" : "success";
|
211
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
|
+
}
|
212
225
|
function setPosition(position) {
|
213
226
|
if (draggableInstance) {
|
214
227
|
draggableInstance.x.value = position.x;
|
@@ -258,12 +271,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
258
271
|
class: "margin-offset",
|
259
272
|
"wrap-item": false
|
260
273
|
}, {
|
261
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (
|
274
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (key) => {
|
262
275
|
return openBlock(), createElementBlock("span", {
|
263
|
-
key
|
264
|
-
class: normalizeClass(
|
265
|
-
onClick: ($event) => keydown(
|
266
|
-
}, toDisplayString(
|
276
|
+
key,
|
277
|
+
class: normalizeClass(key === "0" ? "is-0" : ""),
|
278
|
+
onClick: ($event) => keydown(key)
|
279
|
+
}, toDisplayString(key), 11, _hoisted_2);
|
267
280
|
}), 128))]),
|
268
281
|
_: 1
|
269
282
|
}), createVNode(unref(NSpace), {
|
@@ -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,
|
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';
|