cnhis-design-vue 3.4.0-beta.46 → 3.4.0-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/es/components/base-search/index.d.ts +34 -0
  2. package/es/components/base-search/src/index.vue.d.ts +34 -0
  3. package/es/components/base-search/src/index.vue2.js +9 -1
  4. package/es/components/classification/index.d.ts +36 -9
  5. package/es/components/classification/src/components/search-filter/index.vue.d.ts +36 -9
  6. package/es/components/classification/src/components/set-classification/index.vue.d.ts +36 -9
  7. package/es/components/classification/src/index.vue.d.ts +36 -9
  8. package/es/components/date-picker/index.d.ts +12 -3
  9. package/es/components/date-picker/src/DatePicker.vue.d.ts +12 -3
  10. package/es/components/date-picker/src/DatePicker.vue2.js +4 -1
  11. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +1 -1
  12. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +10 -9
  13. package/es/components/field-set/src/FieldColor.vue.d.ts +25 -7
  14. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  15. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  16. package/es/components/field-set/src/components/condition.vue.d.ts +12 -3
  17. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +24 -6
  18. package/es/components/field-set/src/components/edit-filter.vue.d.ts +12 -3
  19. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  20. package/es/components/iho-chat/index.d.ts +24 -6
  21. package/es/components/iho-chat/src/Index.vue.d.ts +24 -6
  22. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +12 -3
  23. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +12 -3
  24. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +12 -3
  25. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +12 -3
  26. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
  27. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +12 -3
  28. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +12 -3
  29. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +12 -3
  30. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +12 -3
  31. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +12 -3
  32. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +24 -6
  33. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +12 -3
  34. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +12 -3
  35. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +24 -6
  36. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +24 -6
  37. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +12 -3
  38. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +14 -3
  39. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
  40. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +12 -3
  41. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +14 -3
  42. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
  43. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +52 -12
  44. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +52 -12
  45. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  46. package/es/components/table-filter/src/constants/index.js +4 -1
  47. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
  48. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
  49. package/es/shared/package.json.js +1 -1
  50. package/package.json +2 -2
@@ -166,10 +166,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
166
166
  isDateDisabled: {
167
167
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
168
168
  };
169
+ propKey: {
170
+ type: StringConstructor;
171
+ };
169
172
  shortcutListenerConfig: {
170
173
  type: import("vue").PropType<{
171
174
  enable: boolean;
172
- callback: (key: string) => void;
175
+ callback: (value: string, propKey?: string | undefined) => void;
173
176
  }>;
174
177
  };
175
178
  }>, {
@@ -211,10 +214,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
211
214
  isDateDisabled: {
212
215
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
213
216
  };
217
+ propKey: {
218
+ type: StringConstructor;
219
+ };
214
220
  shortcutListenerConfig: {
215
221
  type: import("vue").PropType<{
216
222
  enable: boolean;
217
- callback: (key: string) => void;
223
+ callback: (value: string, propKey?: string | undefined) => void;
218
224
  }>;
219
225
  };
220
226
  }>> & Readonly<{
@@ -277,10 +283,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
277
283
  isDateDisabled: {
278
284
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
279
285
  };
286
+ propKey: {
287
+ type: StringConstructor;
288
+ };
280
289
  shortcutListenerConfig: {
281
290
  type: import("vue").PropType<{
282
291
  enable: boolean;
283
- callback: (key: string) => void;
292
+ callback: (value: string, propKey?: string | undefined) => void;
284
293
  }>;
285
294
  };
286
295
  }>> & Readonly<{
@@ -1038,10 +1047,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1038
1047
  isDateDisabled: {
1039
1048
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1040
1049
  };
1050
+ propKey: {
1051
+ type: StringConstructor;
1052
+ };
1041
1053
  shortcutListenerConfig: {
1042
1054
  type: import("vue").PropType<{
1043
1055
  enable: boolean;
1044
- callback: (key: string) => void;
1056
+ callback: (value: string, propKey?: string | undefined) => void;
1045
1057
  }>;
1046
1058
  };
1047
1059
  }>, {
@@ -1083,10 +1095,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1083
1095
  isDateDisabled: {
1084
1096
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1085
1097
  };
1098
+ propKey: {
1099
+ type: StringConstructor;
1100
+ };
1086
1101
  shortcutListenerConfig: {
1087
1102
  type: import("vue").PropType<{
1088
1103
  enable: boolean;
1089
- callback: (key: string) => void;
1104
+ callback: (value: string, propKey?: string | undefined) => void;
1090
1105
  }>;
1091
1106
  };
1092
1107
  }>> & Readonly<{
@@ -1149,10 +1164,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1149
1164
  isDateDisabled: {
1150
1165
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1151
1166
  };
1167
+ propKey: {
1168
+ type: StringConstructor;
1169
+ };
1152
1170
  shortcutListenerConfig: {
1153
1171
  type: import("vue").PropType<{
1154
1172
  enable: boolean;
1155
- callback: (key: string) => void;
1173
+ callback: (value: string, propKey?: string | undefined) => void;
1156
1174
  }>;
1157
1175
  };
1158
1176
  }>> & Readonly<{
@@ -105,10 +105,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
105
105
  isDateDisabled: {
106
106
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
107
107
  };
108
+ propKey: {
109
+ type: StringConstructor;
110
+ };
108
111
  shortcutListenerConfig: {
109
112
  type: import("vue").PropType<{
110
113
  enable: boolean;
111
- callback: (key: string) => void;
114
+ callback: (value: string, propKey?: string | undefined) => void;
112
115
  }>;
113
116
  };
114
117
  }>, {
@@ -150,10 +153,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
150
153
  isDateDisabled: {
151
154
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
152
155
  };
156
+ propKey: {
157
+ type: StringConstructor;
158
+ };
153
159
  shortcutListenerConfig: {
154
160
  type: import("vue").PropType<{
155
161
  enable: boolean;
156
- callback: (key: string) => void;
162
+ callback: (value: string, propKey?: string | undefined) => void;
157
163
  }>;
158
164
  };
159
165
  }>> & Readonly<{
@@ -216,10 +222,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
216
222
  isDateDisabled: {
217
223
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
218
224
  };
225
+ propKey: {
226
+ type: StringConstructor;
227
+ };
219
228
  shortcutListenerConfig: {
220
229
  type: import("vue").PropType<{
221
230
  enable: boolean;
222
- callback: (key: string) => void;
231
+ callback: (value: string, propKey?: string | undefined) => void;
223
232
  }>;
224
233
  };
225
234
  }>> & Readonly<{
@@ -120,10 +120,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
120
120
  isDateDisabled: {
121
121
  type: PropType<(current: number, ...arg: any[]) => boolean>;
122
122
  };
123
+ propKey: {
124
+ type: StringConstructor;
125
+ };
123
126
  shortcutListenerConfig: {
124
127
  type: PropType<{
125
128
  enable: boolean;
126
- callback: (key: string) => void;
129
+ callback: (value: string, propKey?: string | undefined) => void;
127
130
  }>;
128
131
  };
129
132
  }>, {
@@ -165,10 +168,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
165
168
  isDateDisabled: {
166
169
  type: PropType<(current: number, ...arg: any[]) => boolean>;
167
170
  };
171
+ propKey: {
172
+ type: StringConstructor;
173
+ };
168
174
  shortcutListenerConfig: {
169
175
  type: PropType<{
170
176
  enable: boolean;
171
- callback: (key: string) => void;
177
+ callback: (value: string, propKey?: string | undefined) => void;
172
178
  }>;
173
179
  };
174
180
  }>> & Readonly<{
@@ -231,10 +237,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
231
237
  isDateDisabled: {
232
238
  type: PropType<(current: number, ...arg: any[]) => boolean>;
233
239
  };
240
+ propKey: {
241
+ type: StringConstructor;
242
+ };
234
243
  shortcutListenerConfig: {
235
244
  type: PropType<{
236
245
  enable: boolean;
237
- callback: (key: string) => void;
246
+ callback: (value: string, propKey?: string | undefined) => void;
238
247
  }>;
239
248
  };
240
249
  }>> & Readonly<{
@@ -105,10 +105,13 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
105
105
  isDateDisabled: {
106
106
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
107
107
  };
108
+ propKey: {
109
+ type: StringConstructor;
110
+ };
108
111
  shortcutListenerConfig: {
109
112
  type: import("vue").PropType<{
110
113
  enable: boolean;
111
- callback: (key: string) => void;
114
+ callback: (value: string, propKey?: string | undefined) => void;
112
115
  }>;
113
116
  };
114
117
  }>, {
@@ -150,10 +153,13 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
150
153
  isDateDisabled: {
151
154
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
152
155
  };
156
+ propKey: {
157
+ type: StringConstructor;
158
+ };
153
159
  shortcutListenerConfig: {
154
160
  type: import("vue").PropType<{
155
161
  enable: boolean;
156
- callback: (key: string) => void;
162
+ callback: (value: string, propKey?: string | undefined) => void;
157
163
  }>;
158
164
  };
159
165
  }>> & Readonly<{
@@ -216,10 +222,13 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
216
222
  isDateDisabled: {
217
223
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
218
224
  };
225
+ propKey: {
226
+ type: StringConstructor;
227
+ };
219
228
  shortcutListenerConfig: {
220
229
  type: import("vue").PropType<{
221
230
  enable: boolean;
222
- callback: (key: string) => void;
231
+ callback: (value: string, propKey?: string | undefined) => void;
223
232
  }>;
224
233
  };
225
234
  }>> & Readonly<{
@@ -977,10 +986,13 @@ declare const DateRange: import("vue").DefineComponent<import("vue").ExtractProp
977
986
  isDateDisabled: {
978
987
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
979
988
  };
989
+ propKey: {
990
+ type: StringConstructor;
991
+ };
980
992
  shortcutListenerConfig: {
981
993
  type: import("vue").PropType<{
982
994
  enable: boolean;
983
- callback: (key: string) => void;
995
+ callback: (value: string, propKey?: string | undefined) => void;
984
996
  }>;
985
997
  };
986
998
  }>, {
@@ -1022,10 +1034,13 @@ declare const DateRange: import("vue").DefineComponent<import("vue").ExtractProp
1022
1034
  isDateDisabled: {
1023
1035
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1024
1036
  };
1037
+ propKey: {
1038
+ type: StringConstructor;
1039
+ };
1025
1040
  shortcutListenerConfig: {
1026
1041
  type: import("vue").PropType<{
1027
1042
  enable: boolean;
1028
- callback: (key: string) => void;
1043
+ callback: (value: string, propKey?: string | undefined) => void;
1029
1044
  }>;
1030
1045
  };
1031
1046
  }>> & Readonly<{
@@ -1088,10 +1103,13 @@ declare const DateRange: import("vue").DefineComponent<import("vue").ExtractProp
1088
1103
  isDateDisabled: {
1089
1104
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1090
1105
  };
1106
+ propKey: {
1107
+ type: StringConstructor;
1108
+ };
1091
1109
  shortcutListenerConfig: {
1092
1110
  type: import("vue").PropType<{
1093
1111
  enable: boolean;
1094
- callback: (key: string) => void;
1112
+ callback: (value: string, propKey?: string | undefined) => void;
1095
1113
  }>;
1096
1114
  };
1097
1115
  }>> & Readonly<{
@@ -298,10 +298,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
298
298
  isDateDisabled: {
299
299
  type: PropType<(current: number, ...arg: any[]) => boolean>;
300
300
  };
301
+ propKey: {
302
+ type: StringConstructor;
303
+ };
301
304
  shortcutListenerConfig: {
302
305
  type: PropType<{
303
306
  enable: boolean;
304
- callback: (key: string) => void;
307
+ callback: (value: string, propKey?: string | undefined) => void;
305
308
  }>;
306
309
  };
307
310
  }>, {
@@ -343,10 +346,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
343
346
  isDateDisabled: {
344
347
  type: PropType<(current: number, ...arg: any[]) => boolean>;
345
348
  };
349
+ propKey: {
350
+ type: StringConstructor;
351
+ };
346
352
  shortcutListenerConfig: {
347
353
  type: PropType<{
348
354
  enable: boolean;
349
- callback: (key: string) => void;
355
+ callback: (value: string, propKey?: string | undefined) => void;
350
356
  }>;
351
357
  };
352
358
  }>> & Readonly<{
@@ -409,10 +415,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
409
415
  isDateDisabled: {
410
416
  type: PropType<(current: number, ...arg: any[]) => boolean>;
411
417
  };
418
+ propKey: {
419
+ type: StringConstructor;
420
+ };
412
421
  shortcutListenerConfig: {
413
422
  type: PropType<{
414
423
  enable: boolean;
415
- callback: (key: string) => void;
424
+ callback: (value: string, propKey?: string | undefined) => void;
416
425
  }>;
417
426
  };
418
427
  }>> & Readonly<{
@@ -1170,10 +1179,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1170
1179
  isDateDisabled: {
1171
1180
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1172
1181
  };
1182
+ propKey: {
1183
+ type: StringConstructor;
1184
+ };
1173
1185
  shortcutListenerConfig: {
1174
1186
  type: PropType<{
1175
1187
  enable: boolean;
1176
- callback: (key: string) => void;
1188
+ callback: (value: string, propKey?: string | undefined) => void;
1177
1189
  }>;
1178
1190
  };
1179
1191
  }>, {
@@ -1215,10 +1227,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1215
1227
  isDateDisabled: {
1216
1228
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1217
1229
  };
1230
+ propKey: {
1231
+ type: StringConstructor;
1232
+ };
1218
1233
  shortcutListenerConfig: {
1219
1234
  type: PropType<{
1220
1235
  enable: boolean;
1221
- callback: (key: string) => void;
1236
+ callback: (value: string, propKey?: string | undefined) => void;
1222
1237
  }>;
1223
1238
  };
1224
1239
  }>> & Readonly<{
@@ -1281,10 +1296,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1281
1296
  isDateDisabled: {
1282
1297
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1283
1298
  };
1299
+ propKey: {
1300
+ type: StringConstructor;
1301
+ };
1284
1302
  shortcutListenerConfig: {
1285
1303
  type: PropType<{
1286
1304
  enable: boolean;
1287
- callback: (key: string) => void;
1305
+ callback: (value: string, propKey?: string | undefined) => void;
1288
1306
  }>;
1289
1307
  };
1290
1308
  }>> & Readonly<{
@@ -118,10 +118,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
118
118
  isDateDisabled: {
119
119
  type: PropType<(current: number, ...arg: any[]) => boolean>;
120
120
  };
121
+ propKey: {
122
+ type: StringConstructor;
123
+ };
121
124
  shortcutListenerConfig: {
122
125
  type: PropType<{
123
126
  enable: boolean;
124
- callback: (key: string) => void;
127
+ callback: (value: string, propKey?: string | undefined) => void;
125
128
  }>;
126
129
  };
127
130
  }>, {
@@ -163,10 +166,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
163
166
  isDateDisabled: {
164
167
  type: PropType<(current: number, ...arg: any[]) => boolean>;
165
168
  };
169
+ propKey: {
170
+ type: StringConstructor;
171
+ };
166
172
  shortcutListenerConfig: {
167
173
  type: PropType<{
168
174
  enable: boolean;
169
- callback: (key: string) => void;
175
+ callback: (value: string, propKey?: string | undefined) => void;
170
176
  }>;
171
177
  };
172
178
  }>> & Readonly<{
@@ -229,10 +235,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
229
235
  isDateDisabled: {
230
236
  type: PropType<(current: number, ...arg: any[]) => boolean>;
231
237
  };
238
+ propKey: {
239
+ type: StringConstructor;
240
+ };
232
241
  shortcutListenerConfig: {
233
242
  type: PropType<{
234
243
  enable: boolean;
235
- callback: (key: string) => void;
244
+ callback: (value: string, propKey?: string | undefined) => void;
236
245
  }>;
237
246
  };
238
247
  }>> & Readonly<{
@@ -56,8 +56,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
56
56
  emit: (event: "update:value", ...args: any[]) => void;
57
57
  valueCp: import("vue").Ref<any, any>;
58
58
  rangeShortcuts: import("vue").Ref<any, any>;
59
+ shortcutListenerConfig: AnyObject;
59
60
  dateFormat: import("vue").ComputedRef<string>;
60
61
  optionSetting: import("vue").ComputedRef<any>;
62
+ compName: import("vue").ComputedRef<any>;
61
63
  handleChange: (val: any) => void;
62
64
  isDateDisabled: (ts: number) => boolean;
63
65
  timeDisabled: (ts: number) => {
@@ -101,10 +103,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
101
103
  isDateDisabled: {
102
104
  type: PropType<(current: number, ...arg: any[]) => boolean>;
103
105
  };
106
+ propKey: {
107
+ type: StringConstructor;
108
+ };
104
109
  shortcutListenerConfig: {
105
110
  type: PropType<{
106
111
  enable: boolean;
107
- callback: (key: string) => void;
112
+ callback: (value: string, propKey?: string | undefined) => void;
108
113
  }>;
109
114
  };
110
115
  }>, {
@@ -146,10 +151,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
146
151
  isDateDisabled: {
147
152
  type: PropType<(current: number, ...arg: any[]) => boolean>;
148
153
  };
154
+ propKey: {
155
+ type: StringConstructor;
156
+ };
149
157
  shortcutListenerConfig: {
150
158
  type: PropType<{
151
159
  enable: boolean;
152
- callback: (key: string) => void;
160
+ callback: (value: string, propKey?: string | undefined) => void;
153
161
  }>;
154
162
  };
155
163
  }>> & Readonly<{
@@ -212,10 +220,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
212
220
  isDateDisabled: {
213
221
  type: PropType<(current: number, ...arg: any[]) => boolean>;
214
222
  };
223
+ propKey: {
224
+ type: StringConstructor;
225
+ };
215
226
  shortcutListenerConfig: {
216
227
  type: PropType<{
217
228
  enable: boolean;
218
- callback: (key: string) => void;
229
+ callback: (value: string, propKey?: string | undefined) => void;
219
230
  }>;
220
231
  };
221
232
  }>> & Readonly<{
@@ -1,5 +1,5 @@
1
1
  import { i18n } from '../../../../../../_virtual/_virtual_i18n-methods.js';
2
- import { defineComponent, ref, computed, watch, openBlock, createBlock, unref } from 'vue';
2
+ import { defineComponent, ref, inject, computed, watch, openBlock, createBlock, unref } from 'vue';
3
3
  import DatePicker from '../../../../../date-picker/index.js';
4
4
  import moment from 'moment';
5
5
  import { isString } from 'lodash-es';
@@ -7,6 +7,7 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
7
7
  import { DateExtraOptions, DateExtraMap } from '../helpers/dateExtraMap.js';
8
8
  import { setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
9
9
  import { presetValToTimestamp } from '../helpers/presetValToTimestamp.js';
10
+ import { InjectionShortcutListenerConfig } from '../../../constants/index.js';
10
11
  import { parseDateShortcuts } from '../../../tool/date.js';
11
12
 
12
13
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -44,6 +45,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44
45
  const emit = __emit;
45
46
  const valueCp = ref();
46
47
  const rangeShortcuts = ref();
48
+ const shortcutListenerConfig = inject(InjectionShortcutListenerConfig);
47
49
  const dateFormat = computed(() => {
48
50
  let formateStr = "";
49
51
  switch (props.type) {
@@ -60,6 +62,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
60
62
  var _a;
61
63
  return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
62
64
  });
65
+ const compName = computed(() => {
66
+ var _a;
67
+ return ((_a = props.componentCfg) == null ? void 0 : _a.columnName) || "";
68
+ });
63
69
  watch(() => props.value, (val) => {
64
70
  if (val && isString(val)) {
65
71
  valueCp.value = moment(val).valueOf();
@@ -113,6 +119,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
113
119
  return (_ctx, _cache) => {
114
120
  return openBlock(), createBlock(unref(DatePicker), {
115
121
  to: "body",
122
+ propKey: compName.value,
116
123
  type: __props.type,
117
124
  clearable: __props.clearable,
118
125
  valueFormat: __props.valueFormat,
@@ -122,8 +129,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
122
129
  "is-date-disabled": isDateDisabled,
123
130
  "is-time-disabled": timeDisabled,
124
131
  shortcuts: rangeShortcuts.value,
132
+ shortcutListenerConfig: unref(shortcutListenerConfig),
125
133
  "onUpdate:value": handleChange
126
- }, null, 8, ["type", "clearable", "valueFormat", "placeholder", "value", "shortcuts"]);
134
+ }, null, 8, ["propKey", "type", "clearable", "valueFormat", "placeholder", "value", "shortcuts", "shortcutListenerConfig"]);
127
135
  };
128
136
  }
129
137
  });
@@ -136,10 +136,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
136
136
  isDateDisabled: {
137
137
  type: PropType<(current: number, ...arg: any[]) => boolean>;
138
138
  };
139
+ propKey: {
140
+ type: StringConstructor;
141
+ };
139
142
  shortcutListenerConfig: {
140
143
  type: PropType<{
141
144
  enable: boolean;
142
- callback: (key: string) => void;
145
+ callback: (value: string, propKey?: string | undefined) => void;
143
146
  }>;
144
147
  };
145
148
  }>, {
@@ -181,10 +184,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
181
184
  isDateDisabled: {
182
185
  type: PropType<(current: number, ...arg: any[]) => boolean>;
183
186
  };
187
+ propKey: {
188
+ type: StringConstructor;
189
+ };
184
190
  shortcutListenerConfig: {
185
191
  type: PropType<{
186
192
  enable: boolean;
187
- callback: (key: string) => void;
193
+ callback: (value: string, propKey?: string | undefined) => void;
188
194
  }>;
189
195
  };
190
196
  }>> & Readonly<{
@@ -247,10 +253,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
247
253
  isDateDisabled: {
248
254
  type: PropType<(current: number, ...arg: any[]) => boolean>;
249
255
  };
256
+ propKey: {
257
+ type: StringConstructor;
258
+ };
250
259
  shortcutListenerConfig: {
251
260
  type: PropType<{
252
261
  enable: boolean;
253
- callback: (key: string) => void;
262
+ callback: (value: string, propKey?: string | undefined) => void;
254
263
  }>;
255
264
  };
256
265
  }>> & Readonly<{
@@ -58,8 +58,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
58
58
  emit: (event: "update:value", ...args: any[]) => void;
59
59
  valueCp: import("vue").Ref<any, any>;
60
60
  rangeShortcuts: import("vue").Ref<any, any>;
61
+ shortcutListenerConfig: AnyObject;
61
62
  dateFormat: import("vue").ComputedRef<string>;
62
63
  optionSetting: import("vue").ComputedRef<any>;
64
+ compName: import("vue").ComputedRef<any>;
63
65
  handleChange: (val: any) => void;
64
66
  isDateDisabled: (ts: number) => boolean;
65
67
  timeDisabled: (ts: number) => {
@@ -103,10 +105,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
103
105
  isDateDisabled: {
104
106
  type: PropType<(current: number, ...arg: any[]) => boolean>;
105
107
  };
108
+ propKey: {
109
+ type: StringConstructor;
110
+ };
106
111
  shortcutListenerConfig: {
107
112
  type: PropType<{
108
113
  enable: boolean;
109
- callback: (key: string) => void;
114
+ callback: (value: string, propKey?: string | undefined) => void;
110
115
  }>;
111
116
  };
112
117
  }>, {
@@ -148,10 +153,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
148
153
  isDateDisabled: {
149
154
  type: PropType<(current: number, ...arg: any[]) => boolean>;
150
155
  };
156
+ propKey: {
157
+ type: StringConstructor;
158
+ };
151
159
  shortcutListenerConfig: {
152
160
  type: PropType<{
153
161
  enable: boolean;
154
- callback: (key: string) => void;
162
+ callback: (value: string, propKey?: string | undefined) => void;
155
163
  }>;
156
164
  };
157
165
  }>> & Readonly<{
@@ -214,10 +222,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
214
222
  isDateDisabled: {
215
223
  type: PropType<(current: number, ...arg: any[]) => boolean>;
216
224
  };
225
+ propKey: {
226
+ type: StringConstructor;
227
+ };
217
228
  shortcutListenerConfig: {
218
229
  type: PropType<{
219
230
  enable: boolean;
220
- callback: (key: string) => void;
231
+ callback: (value: string, propKey?: string | undefined) => void;
221
232
  }>;
222
233
  };
223
234
  }>> & Readonly<{
@@ -1,5 +1,5 @@
1
1
  import { i18n } from '../../../../../../_virtual/_virtual_i18n-methods.js';
2
- import { defineComponent, ref, computed, watch, openBlock, createBlock, unref } from 'vue';
2
+ import { defineComponent, ref, inject, computed, watch, openBlock, createBlock, unref } from 'vue';
3
3
  import DatePicker from '../../../../../date-picker/index.js';
4
4
  import moment from 'moment';
5
5
  import { isString } from 'lodash-es';
@@ -7,6 +7,7 @@ import { WidgetOptionEnums } from '../../../types/enums.js';
7
7
  import { DateExtraOptions, DateExtraMap } from '../helpers/dateExtraMap.js';
8
8
  import { formatDateRangeInfo } from '../helpers/presetValToTimestamp.js';
9
9
  import { setDateDisabled, setTimeDisabled } from '../helpers/dateDisabled.js';
10
+ import { InjectionShortcutListenerConfig } from '../../../constants/index.js';
10
11
  import { parseDateShortcuts } from '../../../tool/date.js';
11
12
 
12
13
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -45,6 +46,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
45
46
  const emit = __emit;
46
47
  const valueCp = ref();
47
48
  const rangeShortcuts = ref();
49
+ const shortcutListenerConfig = inject(InjectionShortcutListenerConfig);
48
50
  const dateFormat = computed(() => {
49
51
  let formateStr = "";
50
52
  switch (props.type) {
@@ -61,6 +63,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
61
63
  var _a;
62
64
  return (_a = props.componentCfg) == null ? void 0 : _a.widgetCfg.optionSetting;
63
65
  });
66
+ const compName = computed(() => {
67
+ var _a;
68
+ return ((_a = props.componentCfg) == null ? void 0 : _a.columnName) || "";
69
+ });
64
70
  watch(() => props.value, (val) => {
65
71
  if (val && isString(val) && val.includes("~")) {
66
72
  const [start, end] = val.split("~");
@@ -120,6 +126,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
120
126
  return (_ctx, _cache) => {
121
127
  return openBlock(), createBlock(unref(DatePicker), {
122
128
  to: "body",
129
+ propKey: compName.value,
123
130
  type: __props.type,
124
131
  clearable: __props.clearable,
125
132
  startPlaceholder: __props.startPlaceholder,
@@ -128,8 +135,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
128
135
  "is-date-disabled": isDateDisabled,
129
136
  "is-time-disabled": timeDisabled,
130
137
  shortcuts: rangeShortcuts.value,
138
+ shortcutListenerConfig: unref(shortcutListenerConfig),
131
139
  "onUpdate:value": handleChange
132
- }, null, 8, ["type", "clearable", "startPlaceholder", "endPlaceholder", "value", "shortcuts"]);
140
+ }, null, 8, ["propKey", "type", "clearable", "startPlaceholder", "endPlaceholder", "value", "shortcuts", "shortcutListenerConfig"]);
133
141
  };
134
142
  }
135
143
  });