cnhis-design-vue 3.4.0-beta.45 → 3.4.0-beta.49

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 (52) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +34 -0
  3. package/es/components/base-search/src/index.vue.d.ts +34 -0
  4. package/es/components/base-search/src/index.vue2.js +9 -1
  5. package/es/components/classification/index.d.ts +84 -0
  6. package/es/components/classification/src/components/search-filter/index.vue.d.ts +84 -0
  7. package/es/components/classification/src/components/set-classification/index.vue.d.ts +84 -0
  8. package/es/components/classification/src/index.vue.d.ts +84 -0
  9. package/es/components/date-picker/index.d.ts +28 -0
  10. package/es/components/date-picker/src/DatePicker.vue.d.ts +28 -0
  11. package/es/components/date-picker/src/DatePicker.vue2.js +26 -1
  12. package/es/components/field-set/src/FieldColor.vue.d.ts +57 -1
  13. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  14. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  15. package/es/components/field-set/src/components/condition.vue.d.ts +28 -0
  16. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +56 -0
  17. package/es/components/field-set/src/components/edit-filter.vue.d.ts +28 -0
  18. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  19. package/es/components/iho-chat/index.d.ts +56 -0
  20. package/es/components/iho-chat/src/Index.vue.d.ts +56 -0
  21. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +28 -0
  22. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  23. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +28 -0
  24. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  25. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +28 -0
  26. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +28 -0
  27. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +7 -2
  28. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +28 -0
  29. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +28 -0
  30. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +28 -0
  31. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +28 -0
  32. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +28 -0
  33. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +56 -0
  34. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +28 -0
  35. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +28 -0
  36. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +56 -0
  37. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +56 -0
  38. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +28 -0
  39. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +30 -0
  40. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +10 -2
  41. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +28 -0
  42. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +30 -0
  43. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +10 -2
  44. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
  45. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
  46. package/es/components/table-filter/src/constants/index.d.ts +1 -0
  47. package/es/components/table-filter/src/constants/index.js +4 -1
  48. package/es/env.d.ts +25 -25
  49. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +15 -0
  50. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +24 -10
  51. package/es/shared/package.json.js +1 -1
  52. package/package.json +2 -2
@@ -105,6 +105,15 @@ 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
+ };
111
+ shortcutListenerConfig: {
112
+ type: import("vue").PropType<{
113
+ enable: boolean;
114
+ callback: (value: string, propKey?: string | undefined) => void;
115
+ }>;
116
+ };
108
117
  }>, {
109
118
  attrs: {
110
119
  [x: string]: unknown;
@@ -144,6 +153,15 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
144
153
  isDateDisabled: {
145
154
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
146
155
  };
156
+ propKey: {
157
+ type: StringConstructor;
158
+ };
159
+ shortcutListenerConfig: {
160
+ type: import("vue").PropType<{
161
+ enable: boolean;
162
+ callback: (value: string, propKey?: string | undefined) => void;
163
+ }>;
164
+ };
147
165
  }>> & Readonly<{
148
166
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
149
167
  }> & {}>;
@@ -160,6 +178,7 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
160
178
  focus: () => any;
161
179
  blur: () => any;
162
180
  handleConfirm: (target: HTMLInputElement) => void;
181
+ handleShortcutClick: (event: MouseEvent) => void;
163
182
  onUpdateShow: (show: boolean) => Promise<void>;
164
183
  watchers: import("../../../../../../shared/types").AnyFn[];
165
184
  stopWatcher: () => void;
@@ -203,6 +222,15 @@ declare const Date: import("vue").DefineComponent<import("vue").ExtractPropTypes
203
222
  isDateDisabled: {
204
223
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
205
224
  };
225
+ propKey: {
226
+ type: StringConstructor;
227
+ };
228
+ shortcutListenerConfig: {
229
+ type: import("vue").PropType<{
230
+ enable: boolean;
231
+ callback: (value: string, propKey?: string | undefined) => void;
232
+ }>;
233
+ };
206
234
  }>> & Readonly<{
207
235
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
208
236
  }>, {
@@ -958,6 +986,15 @@ declare const DateRange: import("vue").DefineComponent<import("vue").ExtractProp
958
986
  isDateDisabled: {
959
987
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
960
988
  };
989
+ propKey: {
990
+ type: StringConstructor;
991
+ };
992
+ shortcutListenerConfig: {
993
+ type: import("vue").PropType<{
994
+ enable: boolean;
995
+ callback: (value: string, propKey?: string | undefined) => void;
996
+ }>;
997
+ };
961
998
  }>, {
962
999
  attrs: {
963
1000
  [x: string]: unknown;
@@ -997,6 +1034,15 @@ declare const DateRange: import("vue").DefineComponent<import("vue").ExtractProp
997
1034
  isDateDisabled: {
998
1035
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
999
1036
  };
1037
+ propKey: {
1038
+ type: StringConstructor;
1039
+ };
1040
+ shortcutListenerConfig: {
1041
+ type: import("vue").PropType<{
1042
+ enable: boolean;
1043
+ callback: (value: string, propKey?: string | undefined) => void;
1044
+ }>;
1045
+ };
1000
1046
  }>> & Readonly<{
1001
1047
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1002
1048
  }> & {}>;
@@ -1013,6 +1059,7 @@ declare const DateRange: import("vue").DefineComponent<import("vue").ExtractProp
1013
1059
  focus: () => any;
1014
1060
  blur: () => any;
1015
1061
  handleConfirm: (target: HTMLInputElement) => void;
1062
+ handleShortcutClick: (event: MouseEvent) => void;
1016
1063
  onUpdateShow: (show: boolean) => Promise<void>;
1017
1064
  watchers: import("../../../../../../shared/types").AnyFn[];
1018
1065
  stopWatcher: () => void;
@@ -1056,6 +1103,15 @@ declare const DateRange: import("vue").DefineComponent<import("vue").ExtractProp
1056
1103
  isDateDisabled: {
1057
1104
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1058
1105
  };
1106
+ propKey: {
1107
+ type: StringConstructor;
1108
+ };
1109
+ shortcutListenerConfig: {
1110
+ type: import("vue").PropType<{
1111
+ enable: boolean;
1112
+ callback: (value: string, propKey?: string | undefined) => void;
1113
+ }>;
1114
+ };
1059
1115
  }>> & Readonly<{
1060
1116
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1061
1117
  }>, {
@@ -298,6 +298,15 @@ 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
+ };
304
+ shortcutListenerConfig: {
305
+ type: PropType<{
306
+ enable: boolean;
307
+ callback: (value: string, propKey?: string | undefined) => void;
308
+ }>;
309
+ };
301
310
  }>, {
302
311
  attrs: {
303
312
  [x: string]: unknown;
@@ -337,6 +346,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
337
346
  isDateDisabled: {
338
347
  type: PropType<(current: number, ...arg: any[]) => boolean>;
339
348
  };
349
+ propKey: {
350
+ type: StringConstructor;
351
+ };
352
+ shortcutListenerConfig: {
353
+ type: PropType<{
354
+ enable: boolean;
355
+ callback: (value: string, propKey?: string | undefined) => void;
356
+ }>;
357
+ };
340
358
  }>> & Readonly<{
341
359
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
342
360
  }> & {}>;
@@ -353,6 +371,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
353
371
  focus: () => any;
354
372
  blur: () => any;
355
373
  handleConfirm: (target: HTMLInputElement) => void;
374
+ handleShortcutClick: (event: MouseEvent) => void;
356
375
  onUpdateShow: (show: boolean) => Promise<void>;
357
376
  watchers: import("../../../../../shared/types").AnyFn[];
358
377
  stopWatcher: () => void;
@@ -396,6 +415,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
396
415
  isDateDisabled: {
397
416
  type: PropType<(current: number, ...arg: any[]) => boolean>;
398
417
  };
418
+ propKey: {
419
+ type: StringConstructor;
420
+ };
421
+ shortcutListenerConfig: {
422
+ type: PropType<{
423
+ enable: boolean;
424
+ callback: (value: string, propKey?: string | undefined) => void;
425
+ }>;
426
+ };
399
427
  }>> & Readonly<{
400
428
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
401
429
  }>, {
@@ -1151,6 +1179,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1151
1179
  isDateDisabled: {
1152
1180
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1153
1181
  };
1182
+ propKey: {
1183
+ type: StringConstructor;
1184
+ };
1185
+ shortcutListenerConfig: {
1186
+ type: PropType<{
1187
+ enable: boolean;
1188
+ callback: (value: string, propKey?: string | undefined) => void;
1189
+ }>;
1190
+ };
1154
1191
  }>, {
1155
1192
  attrs: {
1156
1193
  [x: string]: unknown;
@@ -1190,6 +1227,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1190
1227
  isDateDisabled: {
1191
1228
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1192
1229
  };
1230
+ propKey: {
1231
+ type: StringConstructor;
1232
+ };
1233
+ shortcutListenerConfig: {
1234
+ type: PropType<{
1235
+ enable: boolean;
1236
+ callback: (value: string, propKey?: string | undefined) => void;
1237
+ }>;
1238
+ };
1193
1239
  }>> & Readonly<{
1194
1240
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1195
1241
  }> & {}>;
@@ -1206,6 +1252,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1206
1252
  focus: () => any;
1207
1253
  blur: () => any;
1208
1254
  handleConfirm: (target: HTMLInputElement) => void;
1255
+ handleShortcutClick: (event: MouseEvent) => void;
1209
1256
  onUpdateShow: (show: boolean) => Promise<void>;
1210
1257
  watchers: import("../../../../../shared/types").AnyFn[];
1211
1258
  stopWatcher: () => void;
@@ -1249,6 +1296,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1249
1296
  isDateDisabled: {
1250
1297
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1251
1298
  };
1299
+ propKey: {
1300
+ type: StringConstructor;
1301
+ };
1302
+ shortcutListenerConfig: {
1303
+ type: PropType<{
1304
+ enable: boolean;
1305
+ callback: (value: string, propKey?: string | undefined) => void;
1306
+ }>;
1307
+ };
1252
1308
  }>> & Readonly<{
1253
1309
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1254
1310
  }>, {
@@ -118,6 +118,15 @@ 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
+ };
124
+ shortcutListenerConfig: {
125
+ type: PropType<{
126
+ enable: boolean;
127
+ callback: (value: string, propKey?: string | undefined) => void;
128
+ }>;
129
+ };
121
130
  }>, {
122
131
  attrs: {
123
132
  [x: string]: unknown;
@@ -157,6 +166,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
157
166
  isDateDisabled: {
158
167
  type: PropType<(current: number, ...arg: any[]) => boolean>;
159
168
  };
169
+ propKey: {
170
+ type: StringConstructor;
171
+ };
172
+ shortcutListenerConfig: {
173
+ type: PropType<{
174
+ enable: boolean;
175
+ callback: (value: string, propKey?: string | undefined) => void;
176
+ }>;
177
+ };
160
178
  }>> & Readonly<{
161
179
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
162
180
  }> & {}>;
@@ -173,6 +191,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
173
191
  focus: () => any;
174
192
  blur: () => any;
175
193
  handleConfirm: (target: HTMLInputElement) => void;
194
+ handleShortcutClick: (event: MouseEvent) => void;
176
195
  onUpdateShow: (show: boolean) => Promise<void>;
177
196
  watchers: import("../../../../../../shared/types").AnyFn[];
178
197
  stopWatcher: () => void;
@@ -216,6 +235,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
216
235
  isDateDisabled: {
217
236
  type: PropType<(current: number, ...arg: any[]) => boolean>;
218
237
  };
238
+ propKey: {
239
+ type: StringConstructor;
240
+ };
241
+ shortcutListenerConfig: {
242
+ type: PropType<{
243
+ enable: boolean;
244
+ callback: (value: string, propKey?: string | undefined) => void;
245
+ }>;
246
+ };
219
247
  }>> & Readonly<{
220
248
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
221
249
  }>, {
@@ -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,6 +103,15 @@ 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
+ };
109
+ shortcutListenerConfig: {
110
+ type: PropType<{
111
+ enable: boolean;
112
+ callback: (value: string, propKey?: string | undefined) => void;
113
+ }>;
114
+ };
104
115
  }>, {
105
116
  attrs: {
106
117
  [x: string]: unknown;
@@ -140,6 +151,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
140
151
  isDateDisabled: {
141
152
  type: PropType<(current: number, ...arg: any[]) => boolean>;
142
153
  };
154
+ propKey: {
155
+ type: StringConstructor;
156
+ };
157
+ shortcutListenerConfig: {
158
+ type: PropType<{
159
+ enable: boolean;
160
+ callback: (value: string, propKey?: string | undefined) => void;
161
+ }>;
162
+ };
143
163
  }>> & Readonly<{
144
164
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
145
165
  }> & {}>;
@@ -156,6 +176,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
156
176
  focus: () => any;
157
177
  blur: () => any;
158
178
  handleConfirm: (target: HTMLInputElement) => void;
179
+ handleShortcutClick: (event: MouseEvent) => void;
159
180
  onUpdateShow: (show: boolean) => Promise<void>;
160
181
  watchers: import("../../../../../../shared/types").AnyFn[];
161
182
  stopWatcher: () => void;
@@ -199,6 +220,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
199
220
  isDateDisabled: {
200
221
  type: PropType<(current: number, ...arg: any[]) => boolean>;
201
222
  };
223
+ propKey: {
224
+ type: StringConstructor;
225
+ };
226
+ shortcutListenerConfig: {
227
+ type: PropType<{
228
+ enable: boolean;
229
+ callback: (value: string, propKey?: string | undefined) => void;
230
+ }>;
231
+ };
202
232
  }>> & Readonly<{
203
233
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
204
234
  }>, {
@@ -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,6 +136,15 @@ 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
+ };
142
+ shortcutListenerConfig: {
143
+ type: PropType<{
144
+ enable: boolean;
145
+ callback: (value: string, propKey?: string | undefined) => void;
146
+ }>;
147
+ };
139
148
  }>, {
140
149
  attrs: {
141
150
  [x: string]: unknown;
@@ -175,6 +184,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
175
184
  isDateDisabled: {
176
185
  type: PropType<(current: number, ...arg: any[]) => boolean>;
177
186
  };
187
+ propKey: {
188
+ type: StringConstructor;
189
+ };
190
+ shortcutListenerConfig: {
191
+ type: PropType<{
192
+ enable: boolean;
193
+ callback: (value: string, propKey?: string | undefined) => void;
194
+ }>;
195
+ };
178
196
  }>> & Readonly<{
179
197
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
180
198
  }> & {}>;
@@ -191,6 +209,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
191
209
  focus: () => any;
192
210
  blur: () => any;
193
211
  handleConfirm: (target: HTMLInputElement) => void;
212
+ handleShortcutClick: (event: MouseEvent) => void;
194
213
  onUpdateShow: (show: boolean) => Promise<void>;
195
214
  watchers: import("../../../../../../shared/types").AnyFn[];
196
215
  stopWatcher: () => void;
@@ -234,6 +253,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
234
253
  isDateDisabled: {
235
254
  type: PropType<(current: number, ...arg: any[]) => boolean>;
236
255
  };
256
+ propKey: {
257
+ type: StringConstructor;
258
+ };
259
+ shortcutListenerConfig: {
260
+ type: PropType<{
261
+ enable: boolean;
262
+ callback: (value: string, propKey?: string | undefined) => void;
263
+ }>;
264
+ };
237
265
  }>> & Readonly<{
238
266
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
239
267
  }>, {
@@ -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,6 +105,15 @@ 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
+ };
111
+ shortcutListenerConfig: {
112
+ type: PropType<{
113
+ enable: boolean;
114
+ callback: (value: string, propKey?: string | undefined) => void;
115
+ }>;
116
+ };
106
117
  }>, {
107
118
  attrs: {
108
119
  [x: string]: unknown;
@@ -142,6 +153,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
142
153
  isDateDisabled: {
143
154
  type: PropType<(current: number, ...arg: any[]) => boolean>;
144
155
  };
156
+ propKey: {
157
+ type: StringConstructor;
158
+ };
159
+ shortcutListenerConfig: {
160
+ type: PropType<{
161
+ enable: boolean;
162
+ callback: (value: string, propKey?: string | undefined) => void;
163
+ }>;
164
+ };
145
165
  }>> & Readonly<{
146
166
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
147
167
  }> & {}>;
@@ -158,6 +178,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
158
178
  focus: () => any;
159
179
  blur: () => any;
160
180
  handleConfirm: (target: HTMLInputElement) => void;
181
+ handleShortcutClick: (event: MouseEvent) => void;
161
182
  onUpdateShow: (show: boolean) => Promise<void>;
162
183
  watchers: import("../../../../../../shared/types").AnyFn[];
163
184
  stopWatcher: () => void;
@@ -201,6 +222,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
201
222
  isDateDisabled: {
202
223
  type: PropType<(current: number, ...arg: any[]) => boolean>;
203
224
  };
225
+ propKey: {
226
+ type: StringConstructor;
227
+ };
228
+ shortcutListenerConfig: {
229
+ type: PropType<{
230
+ enable: boolean;
231
+ callback: (value: string, propKey?: string | undefined) => void;
232
+ }>;
233
+ };
204
234
  }>> & Readonly<{
205
235
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
206
236
  }>, {
@@ -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
  });