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.
- package/README.md +87 -87
- package/es/components/button-print/index.d.ts +60 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +60 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +6 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +18 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +33 -4
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +18 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +30 -4
- package/es/components/button-print/src/utils/print.d.ts +6 -4
- package/es/components/button-print/src/utils/print.js +176 -4
- 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/components/table-modal/index.vue.d.ts +0 -3
- 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/field-set/src/FieldColor.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/field-set/src/types/index.d.ts +1 -1
- 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 +9 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-chat/index.d.ts +41 -50
- package/es/components/iho-chat/src/Index.vue.d.ts +41 -50
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +6 -2
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +29 -28
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +239 -94
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -24
- package/es/components/iho-chat/src/components/Video.vue2.js +35 -40
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +54 -10
- package/es/components/iho-chat/src/hooks/useVideo.js +420 -44
- package/es/components/iho-chat/src/utils/index.d.ts +1 -0
- package/es/components/iho-chat/src/utils/index.js +7 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -1
- package/es/components/keyboard/index.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue.d.ts +9 -0
- package/es/components/keyboard/src/Keyboard.vue2.js +33 -9
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -0
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +50 -17
- package/es/components/keyboard/src/types.d.ts +17 -0
- package/es/components/keyboard/src/types.js +1 -0
- package/es/components/scale-view/index.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
- 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/dateExtraMap.js +32 -4
- 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/tool/baseOptions.js +8 -1
- 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/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +256 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vod-chunk-upload/index.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +2 -2
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +4 -4
@@ -0,0 +1,226 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
filterType: {
|
3
|
+
type: StringConstructor;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
modelValue: {
|
7
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
8
|
+
default: null;
|
9
|
+
};
|
10
|
+
presetVal: {
|
11
|
+
type: StringConstructor;
|
12
|
+
default: null;
|
13
|
+
};
|
14
|
+
dateType: {
|
15
|
+
type: StringConstructor;
|
16
|
+
};
|
17
|
+
isDateDisabled: {
|
18
|
+
type: FunctionConstructor;
|
19
|
+
};
|
20
|
+
timeDisabled: {
|
21
|
+
type: FunctionConstructor;
|
22
|
+
};
|
23
|
+
valueFormat: {
|
24
|
+
type: StringConstructor;
|
25
|
+
};
|
26
|
+
}, {
|
27
|
+
widgetOptions: {
|
28
|
+
label: string;
|
29
|
+
value: string;
|
30
|
+
}[];
|
31
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
32
|
+
filterType: {
|
33
|
+
type: StringConstructor;
|
34
|
+
required: true;
|
35
|
+
};
|
36
|
+
modelValue: {
|
37
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
38
|
+
default: null;
|
39
|
+
};
|
40
|
+
presetVal: {
|
41
|
+
type: StringConstructor;
|
42
|
+
default: null;
|
43
|
+
};
|
44
|
+
dateType: {
|
45
|
+
type: StringConstructor;
|
46
|
+
};
|
47
|
+
isDateDisabled: {
|
48
|
+
type: FunctionConstructor;
|
49
|
+
};
|
50
|
+
timeDisabled: {
|
51
|
+
type: FunctionConstructor;
|
52
|
+
};
|
53
|
+
valueFormat: {
|
54
|
+
type: StringConstructor;
|
55
|
+
};
|
56
|
+
}>> & {
|
57
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
58
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
59
|
+
}>>;
|
60
|
+
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
61
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
62
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
63
|
+
CDatePicker: import("../../../../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
64
|
+
updateUnchangedValue: {
|
65
|
+
type: BooleanConstructor;
|
66
|
+
};
|
67
|
+
onConfirm: {
|
68
|
+
type: FunctionConstructor;
|
69
|
+
};
|
70
|
+
formattedValue: {
|
71
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
72
|
+
};
|
73
|
+
placeholder: {
|
74
|
+
type: StringConstructor;
|
75
|
+
};
|
76
|
+
allowedInvalidValue: {
|
77
|
+
type: StringConstructor;
|
78
|
+
};
|
79
|
+
to: {
|
80
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
81
|
+
default: string;
|
82
|
+
};
|
83
|
+
holidays: {
|
84
|
+
type: import("vue").PropType<Date[]>;
|
85
|
+
default: () => never[];
|
86
|
+
};
|
87
|
+
type: {
|
88
|
+
type: StringConstructor;
|
89
|
+
default: string;
|
90
|
+
};
|
91
|
+
isDateDisabled: {
|
92
|
+
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
93
|
+
};
|
94
|
+
}, {
|
95
|
+
attrs: {
|
96
|
+
[x: string]: unknown;
|
97
|
+
};
|
98
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
99
|
+
updateUnchangedValue: {
|
100
|
+
type: BooleanConstructor;
|
101
|
+
};
|
102
|
+
onConfirm: {
|
103
|
+
type: FunctionConstructor;
|
104
|
+
};
|
105
|
+
formattedValue: {
|
106
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
107
|
+
};
|
108
|
+
placeholder: {
|
109
|
+
type: StringConstructor;
|
110
|
+
};
|
111
|
+
allowedInvalidValue: {
|
112
|
+
type: StringConstructor;
|
113
|
+
};
|
114
|
+
to: {
|
115
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
116
|
+
default: string;
|
117
|
+
};
|
118
|
+
holidays: {
|
119
|
+
type: import("vue").PropType<Date[]>;
|
120
|
+
default: () => never[];
|
121
|
+
};
|
122
|
+
type: {
|
123
|
+
type: StringConstructor;
|
124
|
+
default: string;
|
125
|
+
};
|
126
|
+
isDateDisabled: {
|
127
|
+
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
128
|
+
};
|
129
|
+
}>> & {
|
130
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
131
|
+
}>>;
|
132
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
133
|
+
datePickerRef: import("vue").Ref<import("../../../../../../../shared/types").AnyObject | null>;
|
134
|
+
panelInstRef: import("vue").Ref<null>;
|
135
|
+
placeholderRef: import("vue").Ref<any>;
|
136
|
+
oldValue: string;
|
137
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
138
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
139
|
+
formatRef: import("vue").ComputedRef<string>;
|
140
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
141
|
+
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
142
|
+
focus: () => any;
|
143
|
+
blur: () => any;
|
144
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
145
|
+
onUpdateShow: (show: boolean) => Promise<void>;
|
146
|
+
watchers: import("../../../../../../../shared/types").AnyFn[];
|
147
|
+
stopWatcher: () => void;
|
148
|
+
setHoliday: (show: boolean) => Promise<void>;
|
149
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
150
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
151
|
+
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
152
|
+
NDatePicker: any;
|
153
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
154
|
+
updateUnchangedValue: {
|
155
|
+
type: BooleanConstructor;
|
156
|
+
};
|
157
|
+
onConfirm: {
|
158
|
+
type: FunctionConstructor;
|
159
|
+
};
|
160
|
+
formattedValue: {
|
161
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
162
|
+
};
|
163
|
+
placeholder: {
|
164
|
+
type: StringConstructor;
|
165
|
+
};
|
166
|
+
allowedInvalidValue: {
|
167
|
+
type: StringConstructor;
|
168
|
+
};
|
169
|
+
to: {
|
170
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
171
|
+
default: string;
|
172
|
+
};
|
173
|
+
holidays: {
|
174
|
+
type: import("vue").PropType<Date[]>;
|
175
|
+
default: () => never[];
|
176
|
+
};
|
177
|
+
type: {
|
178
|
+
type: StringConstructor;
|
179
|
+
default: string;
|
180
|
+
};
|
181
|
+
isDateDisabled: {
|
182
|
+
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
183
|
+
};
|
184
|
+
}>> & {
|
185
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
186
|
+
}, {
|
187
|
+
type: string;
|
188
|
+
updateUnchangedValue: boolean;
|
189
|
+
to: string | false | HTMLElement;
|
190
|
+
holidays: Date[];
|
191
|
+
}>>;
|
192
|
+
NSelect: any;
|
193
|
+
NInputNumber: any;
|
194
|
+
}, 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<{
|
195
|
+
filterType: {
|
196
|
+
type: StringConstructor;
|
197
|
+
required: true;
|
198
|
+
};
|
199
|
+
modelValue: {
|
200
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
201
|
+
default: null;
|
202
|
+
};
|
203
|
+
presetVal: {
|
204
|
+
type: StringConstructor;
|
205
|
+
default: null;
|
206
|
+
};
|
207
|
+
dateType: {
|
208
|
+
type: StringConstructor;
|
209
|
+
};
|
210
|
+
isDateDisabled: {
|
211
|
+
type: FunctionConstructor;
|
212
|
+
};
|
213
|
+
timeDisabled: {
|
214
|
+
type: FunctionConstructor;
|
215
|
+
};
|
216
|
+
valueFormat: {
|
217
|
+
type: StringConstructor;
|
218
|
+
};
|
219
|
+
}>> & {
|
220
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
221
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
222
|
+
}, {
|
223
|
+
modelValue: string | number | unknown[];
|
224
|
+
presetVal: string;
|
225
|
+
}>;
|
226
|
+
export default _default;
|
package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, unref, isRef, createBlock } from 'vue';
|
2
|
+
import DatePicker from '../../../../../../date-picker/index.js';
|
3
|
+
import { NInputNumber, NSelect } from 'naive-ui';
|
4
|
+
|
5
|
+
const _hoisted_1 = {
|
6
|
+
style: {
|
7
|
+
"display": "flex"
|
8
|
+
}
|
9
|
+
};
|
10
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
11
|
+
__name: "DateOption",
|
12
|
+
props: {
|
13
|
+
filterType: {
|
14
|
+
type: String,
|
15
|
+
required: true
|
16
|
+
},
|
17
|
+
modelValue: {
|
18
|
+
type: [String, Number, Array],
|
19
|
+
default: null
|
20
|
+
},
|
21
|
+
presetVal: {
|
22
|
+
type: String,
|
23
|
+
default: null
|
24
|
+
},
|
25
|
+
dateType: {
|
26
|
+
type: String
|
27
|
+
},
|
28
|
+
isDateDisabled: {
|
29
|
+
type: Function
|
30
|
+
},
|
31
|
+
timeDisabled: {
|
32
|
+
type: Function
|
33
|
+
},
|
34
|
+
valueFormat: {
|
35
|
+
type: String
|
36
|
+
}
|
37
|
+
},
|
38
|
+
emits: ["update:modelValue", "update:presetVal"],
|
39
|
+
setup(__props, {
|
40
|
+
emit
|
41
|
+
}) {
|
42
|
+
const props = __props;
|
43
|
+
const widgetOptions = [{
|
44
|
+
label: function() {
|
45
|
+
var _a, _b, _c;
|
46
|
+
try {
|
47
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.144")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.144")) || "\u5929";
|
48
|
+
} catch (e) {
|
49
|
+
return "\u5929";
|
50
|
+
}
|
51
|
+
}(),
|
52
|
+
value: "DAY"
|
53
|
+
}, {
|
54
|
+
label: function() {
|
55
|
+
var _a, _b, _c;
|
56
|
+
try {
|
57
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.346")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.346")) || "\u5468";
|
58
|
+
} catch (e) {
|
59
|
+
return "\u5468";
|
60
|
+
}
|
61
|
+
}(),
|
62
|
+
value: "WEEK"
|
63
|
+
}, {
|
64
|
+
label: function() {
|
65
|
+
var _a, _b, _c;
|
66
|
+
try {
|
67
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.347")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.347")) || "\u6708";
|
68
|
+
} catch (e) {
|
69
|
+
return "\u6708";
|
70
|
+
}
|
71
|
+
}(),
|
72
|
+
value: "MONTH"
|
73
|
+
}, {
|
74
|
+
label: function() {
|
75
|
+
var _a, _b, _c;
|
76
|
+
try {
|
77
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.348")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.348")) || "\u5B63\u5EA6";
|
78
|
+
} catch (e) {
|
79
|
+
return "\u5B63\u5EA6";
|
80
|
+
}
|
81
|
+
}(),
|
82
|
+
value: "QUARTER"
|
83
|
+
}, {
|
84
|
+
label: function() {
|
85
|
+
var _a, _b, _c;
|
86
|
+
try {
|
87
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.349")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.349")) || "\u5E74";
|
88
|
+
} catch (e) {
|
89
|
+
return "\u5E74";
|
90
|
+
}
|
91
|
+
}(),
|
92
|
+
value: "YEAR"
|
93
|
+
}, {
|
94
|
+
label: function() {
|
95
|
+
var _a, _b, _c;
|
96
|
+
try {
|
97
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.350")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.350")) || "\u5C0F\u65F6";
|
98
|
+
} catch (e) {
|
99
|
+
return "\u5C0F\u65F6";
|
100
|
+
}
|
101
|
+
}(),
|
102
|
+
value: "HOUR"
|
103
|
+
}];
|
104
|
+
const valueCp = computed({
|
105
|
+
set(val) {
|
106
|
+
emit("update:modelValue", val);
|
107
|
+
},
|
108
|
+
get() {
|
109
|
+
return props.filterType === "3" && typeof props.modelValue === "string" ? Number(props.modelValue) : props.modelValue;
|
110
|
+
}
|
111
|
+
});
|
112
|
+
const presetValCp = computed({
|
113
|
+
set(val) {
|
114
|
+
emit("update:presetVal", val);
|
115
|
+
},
|
116
|
+
get() {
|
117
|
+
return props.presetVal;
|
118
|
+
}
|
119
|
+
});
|
120
|
+
return (_ctx, _cache) => {
|
121
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [__props.filterType === "3" ? (openBlock(), createElementBlock(Fragment, {
|
122
|
+
key: 0
|
123
|
+
}, [createVNode(unref(NInputNumber), {
|
124
|
+
style: {
|
125
|
+
"width": "80px"
|
126
|
+
},
|
127
|
+
class: "form-item",
|
128
|
+
value: unref(valueCp),
|
129
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(valueCp) ? valueCp.value = $event : null),
|
130
|
+
"show-button": false
|
131
|
+
}, null, 8, ["value"]), createVNode(unref(NSelect), {
|
132
|
+
style: {
|
133
|
+
"width": "120px"
|
134
|
+
},
|
135
|
+
class: "form-item",
|
136
|
+
to: "body",
|
137
|
+
value: unref(presetValCp),
|
138
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(presetValCp) ? presetValCp.value = $event : null),
|
139
|
+
options: widgetOptions
|
140
|
+
}, null, 8, ["value"])], 64)) : (openBlock(), createBlock(unref(DatePicker), {
|
141
|
+
key: 1,
|
142
|
+
class: "form-item",
|
143
|
+
type: __props.dateType,
|
144
|
+
clearable: "",
|
145
|
+
to: "body",
|
146
|
+
"is-date-disabled": __props.isDateDisabled,
|
147
|
+
"is-time-disabled": __props.timeDisabled,
|
148
|
+
valueFormat: __props.valueFormat,
|
149
|
+
"formatted-value": unref(valueCp),
|
150
|
+
"onUpdate:formatted-value": _cache[2] || (_cache[2] = ($event) => isRef(valueCp) ? valueCp.value = $event : null)
|
151
|
+
}, null, 8, ["type", "is-date-disabled", "is-time-disabled", "valueFormat", "formatted-value"]))]);
|
152
|
+
};
|
153
|
+
}
|
154
|
+
});
|
155
|
+
|
156
|
+
export { _sfc_main as default };
|
@@ -2,6 +2,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
componentCfg: {
|
3
3
|
type: ObjectConstructor;
|
4
4
|
};
|
5
|
+
item: {
|
6
|
+
type: ObjectConstructor;
|
7
|
+
required: true;
|
8
|
+
};
|
5
9
|
paramCfg: {
|
6
10
|
type: ObjectConstructor;
|
7
11
|
default: null;
|
@@ -23,6 +27,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
27
|
componentCfg: {
|
24
28
|
type: ObjectConstructor;
|
25
29
|
};
|
30
|
+
item: {
|
31
|
+
type: ObjectConstructor;
|
32
|
+
required: true;
|
33
|
+
};
|
26
34
|
paramCfg: {
|
27
35
|
type: ObjectConstructor;
|
28
36
|
default: null;
|
@@ -45,6 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
53
|
"onUpdate:customDate"?: ((...args: any[]) => any) | undefined;
|
46
54
|
}>>;
|
47
55
|
emit: (event: "update:modelValue" | "update:presetVal" | "update:customDate", ...args: any[]) => void;
|
56
|
+
filterType: import("vue").ComputedRef<"1" | "2" | "3">;
|
48
57
|
valueCp: import("vue").WritableComputedRef<any>;
|
49
58
|
presetValCp: import("vue").WritableComputedRef<string>;
|
50
59
|
dateType: any;
|
@@ -191,6 +200,231 @@ declare const _default: import("vue").DefineComponent<{
|
|
191
200
|
holidays: Date[];
|
192
201
|
}>>;
|
193
202
|
NSelect: any;
|
203
|
+
DateOption: import("vue").DefineComponent<{
|
204
|
+
filterType: {
|
205
|
+
type: StringConstructor;
|
206
|
+
required: true;
|
207
|
+
};
|
208
|
+
modelValue: {
|
209
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
210
|
+
default: null;
|
211
|
+
};
|
212
|
+
presetVal: {
|
213
|
+
type: StringConstructor;
|
214
|
+
default: null;
|
215
|
+
};
|
216
|
+
dateType: {
|
217
|
+
type: StringConstructor;
|
218
|
+
};
|
219
|
+
isDateDisabled: {
|
220
|
+
type: FunctionConstructor;
|
221
|
+
};
|
222
|
+
timeDisabled: {
|
223
|
+
type: FunctionConstructor;
|
224
|
+
};
|
225
|
+
valueFormat: {
|
226
|
+
type: StringConstructor;
|
227
|
+
};
|
228
|
+
}, {
|
229
|
+
widgetOptions: {
|
230
|
+
label: string;
|
231
|
+
value: string;
|
232
|
+
}[];
|
233
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
234
|
+
filterType: {
|
235
|
+
type: StringConstructor;
|
236
|
+
required: true;
|
237
|
+
};
|
238
|
+
modelValue: {
|
239
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
240
|
+
default: null;
|
241
|
+
};
|
242
|
+
presetVal: {
|
243
|
+
type: StringConstructor;
|
244
|
+
default: null;
|
245
|
+
};
|
246
|
+
dateType: {
|
247
|
+
type: StringConstructor;
|
248
|
+
};
|
249
|
+
isDateDisabled: {
|
250
|
+
type: FunctionConstructor;
|
251
|
+
};
|
252
|
+
timeDisabled: {
|
253
|
+
type: FunctionConstructor;
|
254
|
+
};
|
255
|
+
valueFormat: {
|
256
|
+
type: StringConstructor;
|
257
|
+
};
|
258
|
+
}>> & {
|
259
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
260
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
261
|
+
}>>;
|
262
|
+
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
263
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
264
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
265
|
+
CDatePicker: import("../../../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
266
|
+
updateUnchangedValue: {
|
267
|
+
type: BooleanConstructor;
|
268
|
+
};
|
269
|
+
onConfirm: {
|
270
|
+
type: FunctionConstructor;
|
271
|
+
};
|
272
|
+
formattedValue: {
|
273
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
274
|
+
};
|
275
|
+
placeholder: {
|
276
|
+
type: StringConstructor;
|
277
|
+
};
|
278
|
+
allowedInvalidValue: {
|
279
|
+
type: StringConstructor;
|
280
|
+
};
|
281
|
+
to: {
|
282
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
283
|
+
default: string;
|
284
|
+
};
|
285
|
+
holidays: {
|
286
|
+
type: import("vue").PropType<Date[]>;
|
287
|
+
default: () => never[];
|
288
|
+
};
|
289
|
+
type: {
|
290
|
+
type: StringConstructor;
|
291
|
+
default: string;
|
292
|
+
};
|
293
|
+
isDateDisabled: {
|
294
|
+
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
295
|
+
};
|
296
|
+
}, {
|
297
|
+
attrs: {
|
298
|
+
[x: string]: unknown;
|
299
|
+
};
|
300
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
301
|
+
updateUnchangedValue: {
|
302
|
+
type: BooleanConstructor;
|
303
|
+
};
|
304
|
+
onConfirm: {
|
305
|
+
type: FunctionConstructor;
|
306
|
+
};
|
307
|
+
formattedValue: {
|
308
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
309
|
+
};
|
310
|
+
placeholder: {
|
311
|
+
type: StringConstructor;
|
312
|
+
};
|
313
|
+
allowedInvalidValue: {
|
314
|
+
type: StringConstructor;
|
315
|
+
};
|
316
|
+
to: {
|
317
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
318
|
+
default: string;
|
319
|
+
};
|
320
|
+
holidays: {
|
321
|
+
type: import("vue").PropType<Date[]>;
|
322
|
+
default: () => never[];
|
323
|
+
};
|
324
|
+
type: {
|
325
|
+
type: StringConstructor;
|
326
|
+
default: string;
|
327
|
+
};
|
328
|
+
isDateDisabled: {
|
329
|
+
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
330
|
+
};
|
331
|
+
}>> & {
|
332
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
333
|
+
}>>;
|
334
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
335
|
+
datePickerRef: import("vue").Ref<import("../../../../../../shared/types").AnyObject | null>;
|
336
|
+
panelInstRef: import("vue").Ref<null>;
|
337
|
+
placeholderRef: import("vue").Ref<any>;
|
338
|
+
oldValue: string;
|
339
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
340
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
341
|
+
formatRef: import("vue").ComputedRef<string>;
|
342
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
343
|
+
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
344
|
+
focus: () => any;
|
345
|
+
blur: () => any;
|
346
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
347
|
+
onUpdateShow: (show: boolean) => Promise<void>;
|
348
|
+
watchers: import("../../../../../../shared/types").AnyFn[];
|
349
|
+
stopWatcher: () => void;
|
350
|
+
setHoliday: (show: boolean) => Promise<void>;
|
351
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
352
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
353
|
+
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
354
|
+
NDatePicker: any;
|
355
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
356
|
+
updateUnchangedValue: {
|
357
|
+
type: BooleanConstructor;
|
358
|
+
};
|
359
|
+
onConfirm: {
|
360
|
+
type: FunctionConstructor;
|
361
|
+
};
|
362
|
+
formattedValue: {
|
363
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
364
|
+
};
|
365
|
+
placeholder: {
|
366
|
+
type: StringConstructor;
|
367
|
+
};
|
368
|
+
allowedInvalidValue: {
|
369
|
+
type: StringConstructor;
|
370
|
+
};
|
371
|
+
to: {
|
372
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
373
|
+
default: string;
|
374
|
+
};
|
375
|
+
holidays: {
|
376
|
+
type: import("vue").PropType<Date[]>;
|
377
|
+
default: () => never[];
|
378
|
+
};
|
379
|
+
type: {
|
380
|
+
type: StringConstructor;
|
381
|
+
default: string;
|
382
|
+
};
|
383
|
+
isDateDisabled: {
|
384
|
+
type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
|
385
|
+
};
|
386
|
+
}>> & {
|
387
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
388
|
+
}, {
|
389
|
+
type: string;
|
390
|
+
updateUnchangedValue: boolean;
|
391
|
+
to: string | false | HTMLElement;
|
392
|
+
holidays: Date[];
|
393
|
+
}>>;
|
394
|
+
NSelect: any;
|
395
|
+
NInputNumber: any;
|
396
|
+
}, 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<{
|
397
|
+
filterType: {
|
398
|
+
type: StringConstructor;
|
399
|
+
required: true;
|
400
|
+
};
|
401
|
+
modelValue: {
|
402
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
403
|
+
default: null;
|
404
|
+
};
|
405
|
+
presetVal: {
|
406
|
+
type: StringConstructor;
|
407
|
+
default: null;
|
408
|
+
};
|
409
|
+
dateType: {
|
410
|
+
type: StringConstructor;
|
411
|
+
};
|
412
|
+
isDateDisabled: {
|
413
|
+
type: FunctionConstructor;
|
414
|
+
};
|
415
|
+
timeDisabled: {
|
416
|
+
type: FunctionConstructor;
|
417
|
+
};
|
418
|
+
valueFormat: {
|
419
|
+
type: StringConstructor;
|
420
|
+
};
|
421
|
+
}>> & {
|
422
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
423
|
+
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
424
|
+
}, {
|
425
|
+
modelValue: string | number | unknown[];
|
426
|
+
presetVal: string;
|
427
|
+
}>;
|
194
428
|
WidgetValEnums: {
|
195
429
|
CUSTOM: string;
|
196
430
|
FIRST_VAL: string;
|
@@ -226,6 +460,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
226
460
|
componentCfg: {
|
227
461
|
type: ObjectConstructor;
|
228
462
|
};
|
463
|
+
item: {
|
464
|
+
type: ObjectConstructor;
|
465
|
+
required: true;
|
466
|
+
};
|
229
467
|
paramCfg: {
|
230
468
|
type: ObjectConstructor;
|
231
469
|
default: null;
|