cnhis-design-vue 3.3.3-release.0 → 3.3.3-release.7
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/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +13 -11
- package/es/components/audio-sdk/src/Index.vue.d.ts +13 -11
- package/es/components/audio-sdk/src/Index.vue2.js +43 -11
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +1 -1
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +1 -1
- package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
- package/es/components/base-search/index.d.ts +3 -0
- package/es/components/base-search/src/index.vue.d.ts +3 -0
- package/es/components/big-table/src/components/NoData.vue2.js +8 -1
- package/es/components/big-table/src/hooks/useTableParse.js +8 -1
- package/es/components/button-print/index.d.ts +2 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +2 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +11 -5
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +4 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +29 -20
- package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
- package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
- package/es/components/classification/index.d.ts +56 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +56 -6
- package/es/components/expand-field/index.d.ts +792 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
- package/es/components/expand-field/src/components/form.vue2.js +8 -1
- package/es/components/expand-field/src/index.vue.d.ts +792 -1
- package/es/components/field-editor/index.d.ts +13 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +32 -1
- package/es/components/field-set/src/FieldSet.vue2.js +112 -65
- package/es/components/field-set/src/Index.vue2.js +8 -3
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +39 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +39 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +13 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
- package/es/components/form-render/index.d.ts +13 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
- package/es/components/form-render/src/FormRender.vue2.js +4 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
- package/es/components/form-render/src/components/renderer/formItem.js +8 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
- package/es/components/form-render/src/utils/business.d.ts +3 -1
- package/es/components/form-render/src/utils/business.js +7 -1
- package/es/components/iho-chat/index.d.ts +18 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +18 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +22 -10
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +3 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +16 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
- package/es/components/iho-chat/src/hooks/index.js +1 -0
- package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
- package/es/components/iho-chat/src/hooks/useDraggable.js +151 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +26 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/scale-view/index.d.ts +67 -17
- package/es/components/scale-view/src/ScaleView.vue.d.ts +70 -19
- package/es/components/scale-view/src/ScaleView.vue2.js +84 -10
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +10 -7
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +28 -4
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +10 -7
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +29 -8
- package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
- package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
- package/es/components/scale-view/src/components/ScaleScore.js +47 -4
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +20 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +2 -0
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
- package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
- package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +20 -5
- package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
- package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
- package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
- package/es/components/scale-view/src/hooks/use-noData.js +33 -5
- package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
- package/es/components/scale-view/src/utils/judge-types.js +10 -10
- package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
- package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +792 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +434 -341
- package/es/components/select-person/src/SelectPerson.vue2.js +521 -675
- package/es/components/select-person/src/SelectPersonRole.vue.d.ts +630 -0
- package/es/components/select-person/src/SelectPersonRole.vue.js +6 -0
- package/es/components/select-person/src/SelectPersonRole.vue2.js +942 -0
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +793 -1
- package/es/components/select-person/src/index.vue2.js +21 -4
- package/es/components/select-person/src/types/index.d.ts +35 -0
- package/es/components/select-person/src/types/index.js +1 -0
- package/es/components/select-person/src/utils/index.d.ts +3 -0
- package/es/components/select-person/src/utils/index.js +29 -8
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +13 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
- 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.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
- 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/DateRangeOut.vue2.js +12 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
- package/es/components/table-filter/src/tool/date.d.ts +3 -0
- package/es/components/table-filter/src/tool/date.js +139 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +11 -8
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +2 -1
- package/es/components/table-filter/src/types/index.d.ts +12 -0
- package/es/components/vod-chunk-upload/index.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
- package/es/env.d.ts +25 -25
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1,10 +1,11 @@
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, isRef, createBlock, createCommentVNode } from 'vue';
|
2
2
|
import DatePicker from '../../../../../date-picker/index.js';
|
3
3
|
import { NSelect } from 'naive-ui';
|
4
|
-
import {
|
4
|
+
import { WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../types/enums.js';
|
5
5
|
import { WidgetDateOptionEnums } from '../../render-widget/helpers/enums.js';
|
6
6
|
import { widgetDateValOptions } from '../../render-widget/helpers/dateExtraMap.js';
|
7
7
|
import { setDateDisabled, setTimeDisabled } from '../../render-widget/helpers/dateDisabled.js';
|
8
|
+
import { parseDateShortcuts } from '../../../tool/date.js';
|
8
9
|
|
9
10
|
const _hoisted_1 = {
|
10
11
|
style: {
|
@@ -28,9 +29,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
29
|
presetVal: {
|
29
30
|
type: String,
|
30
31
|
default: null
|
32
|
+
},
|
33
|
+
customDate: {
|
34
|
+
type: String,
|
35
|
+
default: null
|
31
36
|
}
|
32
37
|
},
|
33
|
-
emits: ["update:modelValue", "update:presetVal"],
|
38
|
+
emits: ["update:modelValue", "update:presetVal", "update:customDate"],
|
34
39
|
setup(__props, {
|
35
40
|
emit
|
36
41
|
}) {
|
@@ -45,9 +50,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
45
50
|
});
|
46
51
|
const presetValCp = computed({
|
47
52
|
set(val) {
|
53
|
+
if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
|
54
|
+
emit("update:customDate", val);
|
55
|
+
return;
|
56
|
+
}
|
48
57
|
emit("update:presetVal", val);
|
49
58
|
},
|
50
59
|
get() {
|
60
|
+
if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
|
61
|
+
return props.customDate;
|
62
|
+
}
|
51
63
|
return props.presetVal;
|
52
64
|
}
|
53
65
|
});
|
@@ -75,6 +87,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
87
|
var _a;
|
76
88
|
const optSetting = optionSetting.value || WidgetOptionEnums.ALL;
|
77
89
|
if (compType.value && optSetting) {
|
90
|
+
if (optSetting === WidgetOptionEnums.CUSTOM_TIME) {
|
91
|
+
const shortList = parseDateShortcuts(props.paramCfg);
|
92
|
+
if ((shortList == null ? void 0 : shortList.length) > 0) {
|
93
|
+
let options2 = shortList.map((opt) => {
|
94
|
+
return {
|
95
|
+
label: opt.name,
|
96
|
+
value: opt.name
|
97
|
+
};
|
98
|
+
});
|
99
|
+
options2.unshift({
|
100
|
+
label: function() {
|
101
|
+
var _a2, _b, _c;
|
102
|
+
try {
|
103
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.345")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.345")) || "\u81EA\u5B9A\u4E49\u8F93\u5165";
|
104
|
+
} catch (e) {
|
105
|
+
return "\u81EA\u5B9A\u4E49\u8F93\u5165";
|
106
|
+
}
|
107
|
+
}(),
|
108
|
+
value: WidgetValEnums.CUSTOM
|
109
|
+
});
|
110
|
+
return options2;
|
111
|
+
}
|
112
|
+
}
|
78
113
|
const typeStr = `${compType.value}_${optSetting}`;
|
79
114
|
const useType = WidgetDateOptionEnums[typeStr];
|
80
115
|
const baseList = (_a = widgetDateValOptions[useType]) != null ? _a : [];
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
@@ -12,6 +12,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
12
12
|
type: StringConstructor;
|
13
13
|
default: null;
|
14
14
|
};
|
15
|
+
customDate: {
|
16
|
+
type: StringConstructor;
|
17
|
+
default: null;
|
18
|
+
};
|
15
19
|
}, {
|
16
20
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
17
21
|
paramCfg: {
|
@@ -26,11 +30,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
26
30
|
type: StringConstructor;
|
27
31
|
default: null;
|
28
32
|
};
|
33
|
+
customDate: {
|
34
|
+
type: StringConstructor;
|
35
|
+
default: null;
|
36
|
+
};
|
29
37
|
}>> & {
|
30
38
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
31
39
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
40
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
32
41
|
}>>;
|
33
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
42
|
+
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
34
43
|
startDate: import("vue").Ref<any>;
|
35
44
|
endDate: import("vue").Ref<any>;
|
36
45
|
valueFormat: import("vue").ComputedRef<string>;
|
@@ -51,6 +60,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
60
|
value: string;
|
52
61
|
}[]>;
|
53
62
|
presetValCp: import("vue").WritableComputedRef<string>;
|
63
|
+
customDateCp: import("vue").WritableComputedRef<string>;
|
54
64
|
handleChange: (val: any, type: 'start' | 'end') => void;
|
55
65
|
isStartDateDisabled: (ts: number) => boolean;
|
56
66
|
timeStartDisabled: (ts: number) => {
|
@@ -226,7 +236,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
226
236
|
NEXT_YEAR: string;
|
227
237
|
LAST_YEAR: string;
|
228
238
|
};
|
229
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
239
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
230
240
|
paramCfg: {
|
231
241
|
type: ObjectConstructor;
|
232
242
|
default: null;
|
@@ -239,12 +249,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
239
249
|
type: StringConstructor;
|
240
250
|
default: null;
|
241
251
|
};
|
252
|
+
customDate: {
|
253
|
+
type: StringConstructor;
|
254
|
+
default: null;
|
255
|
+
};
|
242
256
|
}>> & {
|
243
257
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
244
258
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
259
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
245
260
|
}, {
|
246
261
|
modelValue: string | number | unknown[];
|
247
262
|
paramCfg: Record<string, any>;
|
248
263
|
presetVal: string;
|
264
|
+
customDate: string;
|
249
265
|
}>;
|
250
266
|
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
CHANGED
@@ -7,6 +7,7 @@ import { WidgetOptionEnums, WidgetTypeEnums, WidgetValEnums } from '../../../typ
|
|
7
7
|
import { WidgetDateOptionEnums } from '../../render-widget/helpers/enums.js';
|
8
8
|
import { widgetDateValOptions } from '../../render-widget/helpers/dateExtraMap.js';
|
9
9
|
import { dateDisabledCollect, isStartDateRangeDisabled, isTimeStartRangeDisabled, isEndDateRangeDisabled, isTimeEndRangeDisabled } from '../../render-widget/helpers/dateDisabled.js';
|
10
|
+
import { parseDateShortcuts } from '../../../tool/date.js';
|
10
11
|
|
11
12
|
const _hoisted_1 = {
|
12
13
|
style: {
|
@@ -39,9 +40,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
40
|
presetVal: {
|
40
41
|
type: String,
|
41
42
|
default: null
|
43
|
+
},
|
44
|
+
customDate: {
|
45
|
+
type: String,
|
46
|
+
default: null
|
42
47
|
}
|
43
48
|
},
|
44
|
-
emits: ["update:modelValue", "update:presetVal"],
|
49
|
+
emits: ["update:modelValue", "update:presetVal", "update:customDate"],
|
45
50
|
setup(__props, {
|
46
51
|
emit
|
47
52
|
}) {
|
@@ -136,6 +141,29 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
136
141
|
var _a;
|
137
142
|
const optSetting = optionSetting.value || WidgetOptionEnums.ALL;
|
138
143
|
if (compType.value && optSetting) {
|
144
|
+
if (optSetting === WidgetOptionEnums.CUSTOM_TIME) {
|
145
|
+
const shortList = parseDateShortcuts(props.paramCfg);
|
146
|
+
if ((shortList == null ? void 0 : shortList.length) > 0) {
|
147
|
+
let options2 = shortList.map((opt) => {
|
148
|
+
return {
|
149
|
+
label: opt.name,
|
150
|
+
value: opt.name
|
151
|
+
};
|
152
|
+
});
|
153
|
+
options2.unshift({
|
154
|
+
label: function() {
|
155
|
+
var _a2, _b, _c;
|
156
|
+
try {
|
157
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.345")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.345")) || "\u81EA\u5B9A\u4E49\u8F93\u5165";
|
158
|
+
} catch (e) {
|
159
|
+
return "\u81EA\u5B9A\u4E49\u8F93\u5165";
|
160
|
+
}
|
161
|
+
}(),
|
162
|
+
value: WidgetValEnums.CUSTOM
|
163
|
+
});
|
164
|
+
return options2;
|
165
|
+
}
|
166
|
+
}
|
139
167
|
const typeStr = `${compType.value}_${optSetting}_RANGE`;
|
140
168
|
const useType = WidgetDateOptionEnums[typeStr];
|
141
169
|
const baseList = (_a = widgetDateValOptions[useType]) != null ? _a : [];
|
@@ -162,12 +190,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
162
190
|
});
|
163
191
|
const presetValCp = computed({
|
164
192
|
set(val) {
|
193
|
+
if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
|
194
|
+
emit("update:customDate", val);
|
195
|
+
return;
|
196
|
+
}
|
165
197
|
emit("update:presetVal", val);
|
166
198
|
},
|
167
199
|
get() {
|
200
|
+
if ((optionSetting == null ? void 0 : optionSetting.value) === WidgetOptionEnums.CUSTOM_TIME) {
|
201
|
+
return props.customDate;
|
202
|
+
}
|
168
203
|
return props.presetVal;
|
169
204
|
}
|
170
205
|
});
|
206
|
+
computed({
|
207
|
+
set(val) {
|
208
|
+
emit("update:customDate", val);
|
209
|
+
},
|
210
|
+
get() {
|
211
|
+
return props.customDate;
|
212
|
+
}
|
213
|
+
});
|
171
214
|
watch(() => props.modelValue, (val) => {
|
172
215
|
if (val && isString(val) && val.includes("~")) {
|
173
216
|
const [start, end] = val.split("~");
|
package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts
CHANGED
@@ -40,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
40
|
SELECT_TIME: string;
|
41
41
|
PAST_TIME: string;
|
42
42
|
FUTURE_TIME: string;
|
43
|
+
CUSTOM_TIME: string;
|
43
44
|
};
|
44
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
46
|
paramCfg: {
|
@@ -14,6 +14,10 @@ declare const Date: import("vue").DefineComponent<{
|
|
14
14
|
type: StringConstructor;
|
15
15
|
default: null;
|
16
16
|
};
|
17
|
+
customDate: {
|
18
|
+
type: StringConstructor;
|
19
|
+
default: null;
|
20
|
+
};
|
17
21
|
}, {
|
18
22
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
19
23
|
componentCfg: {
|
@@ -31,11 +35,16 @@ declare const Date: import("vue").DefineComponent<{
|
|
31
35
|
type: StringConstructor;
|
32
36
|
default: null;
|
33
37
|
};
|
38
|
+
customDate: {
|
39
|
+
type: StringConstructor;
|
40
|
+
default: null;
|
41
|
+
};
|
34
42
|
}>> & {
|
35
43
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
36
44
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
45
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
37
46
|
}>>;
|
38
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
47
|
+
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
39
48
|
valueCp: import("vue").WritableComputedRef<any>;
|
40
49
|
presetValCp: import("vue").WritableComputedRef<string>;
|
41
50
|
dateType: any;
|
@@ -213,7 +222,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
213
222
|
NEXT_YEAR: string;
|
214
223
|
LAST_YEAR: string;
|
215
224
|
};
|
216
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
225
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
217
226
|
componentCfg: {
|
218
227
|
type: ObjectConstructor;
|
219
228
|
};
|
@@ -229,13 +238,19 @@ declare const Date: import("vue").DefineComponent<{
|
|
229
238
|
type: StringConstructor;
|
230
239
|
default: null;
|
231
240
|
};
|
241
|
+
customDate: {
|
242
|
+
type: StringConstructor;
|
243
|
+
default: null;
|
244
|
+
};
|
232
245
|
}>> & {
|
233
246
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
234
247
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
248
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
235
249
|
}, {
|
236
250
|
modelValue: string | number | unknown[];
|
237
251
|
paramCfg: Record<string, any>;
|
238
252
|
presetVal: string;
|
253
|
+
customDate: string;
|
239
254
|
}>;
|
240
255
|
declare const InputFilter: import("vue").DefineComponent<{
|
241
256
|
paramCfg: {
|
@@ -365,6 +380,7 @@ declare const SelectFilter: import("vue").DefineComponent<{
|
|
365
380
|
SELECT_TIME: string;
|
366
381
|
PAST_TIME: string;
|
367
382
|
FUTURE_TIME: string;
|
383
|
+
CUSTOM_TIME: string;
|
368
384
|
};
|
369
385
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
370
386
|
paramCfg: {
|
@@ -699,6 +715,10 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
699
715
|
type: StringConstructor;
|
700
716
|
default: null;
|
701
717
|
};
|
718
|
+
customDate: {
|
719
|
+
type: StringConstructor;
|
720
|
+
default: null;
|
721
|
+
};
|
702
722
|
}, {
|
703
723
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
704
724
|
paramCfg: {
|
@@ -713,11 +733,16 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
713
733
|
type: StringConstructor;
|
714
734
|
default: null;
|
715
735
|
};
|
736
|
+
customDate: {
|
737
|
+
type: StringConstructor;
|
738
|
+
default: null;
|
739
|
+
};
|
716
740
|
}>> & {
|
717
741
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
718
742
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
743
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
719
744
|
}>>;
|
720
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
745
|
+
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
721
746
|
startDate: import("vue").Ref<any>;
|
722
747
|
endDate: import("vue").Ref<any>;
|
723
748
|
valueFormat: import("vue").ComputedRef<string>;
|
@@ -738,6 +763,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
738
763
|
value: string;
|
739
764
|
}[]>;
|
740
765
|
presetValCp: import("vue").WritableComputedRef<string>;
|
766
|
+
customDateCp: import("vue").WritableComputedRef<string>;
|
741
767
|
handleChange: (val: any, type: "start" | "end") => void;
|
742
768
|
isStartDateDisabled: (ts: number) => boolean;
|
743
769
|
timeStartDisabled: (ts: number) => {
|
@@ -913,7 +939,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
913
939
|
NEXT_YEAR: string;
|
914
940
|
LAST_YEAR: string;
|
915
941
|
};
|
916
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
942
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
917
943
|
paramCfg: {
|
918
944
|
type: ObjectConstructor;
|
919
945
|
default: null;
|
@@ -926,13 +952,19 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
926
952
|
type: StringConstructor;
|
927
953
|
default: null;
|
928
954
|
};
|
955
|
+
customDate: {
|
956
|
+
type: StringConstructor;
|
957
|
+
default: null;
|
958
|
+
};
|
929
959
|
}>> & {
|
930
960
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
931
961
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
962
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
932
963
|
}, {
|
933
964
|
modelValue: string | number | unknown[];
|
934
965
|
paramCfg: Record<string, any>;
|
935
966
|
presetVal: string;
|
967
|
+
customDate: string;
|
936
968
|
}>;
|
937
969
|
declare const SelectLabel: import("vue").DefineComponent<{
|
938
970
|
paramCfg: {
|
@@ -73,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
73
73
|
value: string;
|
74
74
|
isAccurateSearch?: boolean | undefined;
|
75
75
|
accurateSearchKey?: string | undefined;
|
76
|
+
customDate?: string | undefined;
|
76
77
|
}[];
|
77
78
|
};
|
78
79
|
loading: import("vue").Ref<boolean>;
|
@@ -138,6 +139,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
138
139
|
isAccurate: {
|
139
140
|
type: BooleanConstructor;
|
140
141
|
};
|
142
|
+
customDate: {
|
143
|
+
type: StringConstructor;
|
144
|
+
default: null;
|
145
|
+
};
|
141
146
|
}, {
|
142
147
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
143
148
|
paramCfg: {
|
@@ -155,15 +160,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
155
160
|
isAccurate: {
|
156
161
|
type: BooleanConstructor;
|
157
162
|
};
|
163
|
+
customDate: {
|
164
|
+
type: StringConstructor;
|
165
|
+
default: null;
|
166
|
+
};
|
158
167
|
}>> & {
|
159
168
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
160
169
|
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
161
170
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
171
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
162
172
|
}>>;
|
163
|
-
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal", ...args: any[]) => void;
|
173
|
+
emit: (event: "update:modelValue" | "update:isAccurate" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
164
174
|
valueCp: import("vue").WritableComputedRef<any>;
|
165
175
|
presetValCp: import("vue").WritableComputedRef<string>;
|
166
176
|
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
177
|
+
customDateCp: import("vue").WritableComputedRef<string>;
|
167
178
|
widgetType: import("vue").ComputedRef<any>;
|
168
179
|
Date: import("vue").DefineComponent<{
|
169
180
|
componentCfg: {
|
@@ -181,6 +192,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
181
192
|
type: StringConstructor;
|
182
193
|
default: null;
|
183
194
|
};
|
195
|
+
customDate: {
|
196
|
+
type: StringConstructor;
|
197
|
+
default: null;
|
198
|
+
};
|
184
199
|
}, {
|
185
200
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
186
201
|
componentCfg: {
|
@@ -198,11 +213,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
198
213
|
type: StringConstructor;
|
199
214
|
default: null;
|
200
215
|
};
|
216
|
+
customDate: {
|
217
|
+
type: StringConstructor;
|
218
|
+
default: null;
|
219
|
+
};
|
201
220
|
}>> & {
|
202
221
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
203
222
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
223
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
204
224
|
}>>;
|
205
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
225
|
+
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
206
226
|
valueCp: import("vue").WritableComputedRef<any>;
|
207
227
|
presetValCp: import("vue").WritableComputedRef<string>;
|
208
228
|
dateType: any;
|
@@ -380,7 +400,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
380
400
|
NEXT_YEAR: string;
|
381
401
|
LAST_YEAR: string;
|
382
402
|
};
|
383
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
403
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
384
404
|
componentCfg: {
|
385
405
|
type: ObjectConstructor;
|
386
406
|
};
|
@@ -396,13 +416,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
396
416
|
type: StringConstructor;
|
397
417
|
default: null;
|
398
418
|
};
|
419
|
+
customDate: {
|
420
|
+
type: StringConstructor;
|
421
|
+
default: null;
|
422
|
+
};
|
399
423
|
}>> & {
|
400
424
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
401
425
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
426
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
402
427
|
}, {
|
403
428
|
modelValue: string | number | unknown[];
|
404
429
|
paramCfg: Record<string, any>;
|
405
430
|
presetVal: string;
|
431
|
+
customDate: string;
|
406
432
|
}>;
|
407
433
|
InputFilter: import("vue").DefineComponent<{
|
408
434
|
paramCfg: {
|
@@ -532,6 +558,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
532
558
|
SELECT_TIME: string;
|
533
559
|
PAST_TIME: string;
|
534
560
|
FUTURE_TIME: string;
|
561
|
+
CUSTOM_TIME: string;
|
535
562
|
};
|
536
563
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
537
564
|
paramCfg: {
|
@@ -866,6 +893,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
866
893
|
type: StringConstructor;
|
867
894
|
default: null;
|
868
895
|
};
|
896
|
+
customDate: {
|
897
|
+
type: StringConstructor;
|
898
|
+
default: null;
|
899
|
+
};
|
869
900
|
}, {
|
870
901
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
871
902
|
paramCfg: {
|
@@ -880,11 +911,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
880
911
|
type: StringConstructor;
|
881
912
|
default: null;
|
882
913
|
};
|
914
|
+
customDate: {
|
915
|
+
type: StringConstructor;
|
916
|
+
default: null;
|
917
|
+
};
|
883
918
|
}>> & {
|
884
919
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
885
920
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
921
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
886
922
|
}>>;
|
887
|
-
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
923
|
+
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
888
924
|
startDate: import("vue").Ref<any>;
|
889
925
|
endDate: import("vue").Ref<any>;
|
890
926
|
valueFormat: import("vue").ComputedRef<string>;
|
@@ -905,6 +941,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
905
941
|
value: string;
|
906
942
|
}[]>;
|
907
943
|
presetValCp: import("vue").WritableComputedRef<string>;
|
944
|
+
customDateCp: import("vue").WritableComputedRef<string>;
|
908
945
|
handleChange: (val: any, type: "start" | "end") => void;
|
909
946
|
isStartDateDisabled: (ts: number) => boolean;
|
910
947
|
timeStartDisabled: (ts: number) => {
|
@@ -1080,7 +1117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1080
1117
|
NEXT_YEAR: string;
|
1081
1118
|
LAST_YEAR: string;
|
1082
1119
|
};
|
1083
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1120
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1084
1121
|
paramCfg: {
|
1085
1122
|
type: ObjectConstructor;
|
1086
1123
|
default: null;
|
@@ -1093,13 +1130,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
1093
1130
|
type: StringConstructor;
|
1094
1131
|
default: null;
|
1095
1132
|
};
|
1133
|
+
customDate: {
|
1134
|
+
type: StringConstructor;
|
1135
|
+
default: null;
|
1136
|
+
};
|
1096
1137
|
}>> & {
|
1097
1138
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1098
1139
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
1140
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
1099
1141
|
}, {
|
1100
1142
|
modelValue: string | number | unknown[];
|
1101
1143
|
paramCfg: Record<string, any>;
|
1102
1144
|
presetVal: string;
|
1145
|
+
customDate: string;
|
1103
1146
|
}>;
|
1104
1147
|
SelectLabel: import("vue").DefineComponent<{
|
1105
1148
|
paramCfg: {
|
@@ -1226,7 +1269,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1226
1269
|
SELECTTREE: string;
|
1227
1270
|
SELECTTREEDYNAMIC: string;
|
1228
1271
|
};
|
1229
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1272
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal" | "update:customDate")[], "update:modelValue" | "update:isAccurate" | "update:presetVal" | "update:customDate", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1230
1273
|
paramCfg: {
|
1231
1274
|
type: ObjectConstructor;
|
1232
1275
|
default: null;
|
@@ -1242,15 +1285,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
1242
1285
|
isAccurate: {
|
1243
1286
|
type: BooleanConstructor;
|
1244
1287
|
};
|
1288
|
+
customDate: {
|
1289
|
+
type: StringConstructor;
|
1290
|
+
default: null;
|
1291
|
+
};
|
1245
1292
|
}>> & {
|
1246
1293
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1247
1294
|
"onUpdate:isAccurate"?: ((...args: any[]) => any) | undefined;
|
1248
1295
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
1296
|
+
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
1249
1297
|
}, {
|
1250
1298
|
modelValue: string | number | unknown[];
|
1251
1299
|
paramCfg: Record<string, any>;
|
1252
1300
|
presetVal: string;
|
1253
1301
|
isAccurate: boolean;
|
1302
|
+
customDate: string;
|
1254
1303
|
}>;
|
1255
1304
|
ConditionEnums: {
|
1256
1305
|
NULL: string;
|
@@ -200,9 +200,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
200
200
|
key,
|
201
201
|
condition,
|
202
202
|
value,
|
203
|
-
presetVal
|
203
|
+
presetVal,
|
204
|
+
customDate
|
204
205
|
}) => {
|
205
|
-
return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal;
|
206
|
+
return !key || !condition || condition === ConditionEnums.EQUAL && !value && !presetVal && !customDate;
|
206
207
|
});
|
207
208
|
if (isEmpty) {
|
208
209
|
$message.warning(function() {
|
@@ -397,8 +398,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
397
398
|
"onUpdate:presetVal": ($event) => item.presetVal = $event,
|
398
399
|
isAccurate: item.isAccurateSearch,
|
399
400
|
"onUpdate:isAccurate": ($event) => item.isAccurateSearch = $event,
|
401
|
+
customDate: item.customDate,
|
402
|
+
"onUpdate:customDate": ($event) => item.customDate = $event,
|
400
403
|
"param-cfg": unref(getParamCfg)(item.key)
|
401
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "presetVal", "onUpdate:presetVal", "isAccurate", "onUpdate:isAccurate", "param-cfg"])) : createCommentVNode("v-if", true), createVNode(unref(NTooltip), {
|
404
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "presetVal", "onUpdate:presetVal", "isAccurate", "onUpdate:isAccurate", "customDate", "onUpdate:customDate", "param-cfg"])) : createCommentVNode("v-if", true), createVNode(unref(NTooltip), {
|
402
405
|
title: function() {
|
403
406
|
var _a, _b, _c;
|
404
407
|
try {
|
package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts
CHANGED
@@ -254,7 +254,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
254
254
|
optionSetting: import("vue").ComputedRef<any>;
|
255
255
|
isRange: import("vue").ComputedRef<any>;
|
256
256
|
initData: () => void;
|
257
|
-
handleRadioClick: (
|
257
|
+
handleRadioClick: (date: any) => void;
|
258
258
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
259
259
|
componentCfg: {
|
260
260
|
type: PropType<AnyObject>;
|
@@ -6,6 +6,7 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
|
|
6
6
|
import { DateExtraOptions, DateExtraMap } from '../helpers/dateExtraMap.js';
|
7
7
|
import { setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
|
8
8
|
import { presetValToTimestamp } from '../helpers/presetValToTimestamp.js';
|
9
|
+
import { parseDateShortcuts } from '../../../tool/date.js';
|
9
10
|
|
10
11
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
11
12
|
__name: "DateOut",
|
@@ -85,13 +86,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
85
86
|
return setTimeDisabled(ts, optionSetting.value);
|
86
87
|
}
|
87
88
|
function init() {
|
88
|
-
var _a, _b;
|
89
|
+
var _a, _b, _c;
|
89
90
|
const {
|
90
91
|
originType
|
91
92
|
} = (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg;
|
92
93
|
const type = `${originType}_${optionSetting.value || WidgetOptionEnums.ALL}`;
|
93
94
|
const shortOptions = (_b = DateExtraOptions[DateExtraMap[type]]) != null ? _b : [];
|
94
95
|
let optionsObj = {};
|
96
|
+
if (optionSetting.value === WidgetOptionEnums.CUSTOM_TIME) {
|
97
|
+
const shortList = parseDateShortcuts((_c = props.componentCfg) == null ? void 0 : _c.widgetCfg);
|
98
|
+
if ((shortList == null ? void 0 : shortList.length) > 0) {
|
99
|
+
shortList.forEach((item) => {
|
100
|
+
optionsObj[item.name] = item == null ? void 0 : item.timestamp[0];
|
101
|
+
});
|
102
|
+
}
|
103
|
+
rangeShortcuts.value = optionsObj;
|
104
|
+
return;
|
105
|
+
}
|
95
106
|
shortOptions.forEach(({
|
96
107
|
label,
|
97
108
|
value
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
43
43
|
optionSetting: import("vue").ComputedRef<any>;
|
44
44
|
isRange: import("vue").ComputedRef<any>;
|
45
45
|
initData: () => void;
|
46
|
-
handleRadioClick: (
|
46
|
+
handleRadioClick: (date: any) => void;
|
47
47
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
48
48
|
componentCfg: {
|
49
49
|
type: PropType<AnyObject>;
|