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
@@ -656,6 +656,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
656
656
  isDateDisabled: {
657
657
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
658
658
  };
659
+ propKey: {
660
+ type: StringConstructor;
661
+ };
662
+ shortcutListenerConfig: {
663
+ type: import("vue").PropType<{
664
+ enable: boolean;
665
+ callback: (value: string, propKey?: string | undefined) => void;
666
+ }>;
667
+ };
659
668
  }>, {
660
669
  attrs: {
661
670
  [x: string]: unknown;
@@ -695,6 +704,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
695
704
  isDateDisabled: {
696
705
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
697
706
  };
707
+ propKey: {
708
+ type: StringConstructor;
709
+ };
710
+ shortcutListenerConfig: {
711
+ type: import("vue").PropType<{
712
+ enable: boolean;
713
+ callback: (value: string, propKey?: string | undefined) => void;
714
+ }>;
715
+ };
698
716
  }>> & Readonly<{
699
717
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
700
718
  }> & {}>;
@@ -711,6 +729,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
711
729
  focus: () => any;
712
730
  blur: () => any;
713
731
  handleConfirm: (target: HTMLInputElement) => void;
732
+ handleShortcutClick: (event: MouseEvent) => void;
714
733
  onUpdateShow: (show: boolean) => Promise<void>;
715
734
  watchers: import("../../../../../shared/types").AnyFn[];
716
735
  stopWatcher: () => void;
@@ -754,6 +773,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
754
773
  isDateDisabled: {
755
774
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
756
775
  };
776
+ propKey: {
777
+ type: StringConstructor;
778
+ };
779
+ shortcutListenerConfig: {
780
+ type: import("vue").PropType<{
781
+ enable: boolean;
782
+ callback: (value: string, propKey?: string | undefined) => void;
783
+ }>;
784
+ };
757
785
  }>> & Readonly<{
758
786
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
759
787
  }>, {
@@ -1509,6 +1537,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1509
1537
  isDateDisabled: {
1510
1538
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1511
1539
  };
1540
+ propKey: {
1541
+ type: StringConstructor;
1542
+ };
1543
+ shortcutListenerConfig: {
1544
+ type: import("vue").PropType<{
1545
+ enable: boolean;
1546
+ callback: (value: string, propKey?: string | undefined) => void;
1547
+ }>;
1548
+ };
1512
1549
  }>, {
1513
1550
  attrs: {
1514
1551
  [x: string]: unknown;
@@ -1548,6 +1585,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1548
1585
  isDateDisabled: {
1549
1586
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1550
1587
  };
1588
+ propKey: {
1589
+ type: StringConstructor;
1590
+ };
1591
+ shortcutListenerConfig: {
1592
+ type: import("vue").PropType<{
1593
+ enable: boolean;
1594
+ callback: (value: string, propKey?: string | undefined) => void;
1595
+ }>;
1596
+ };
1551
1597
  }>> & Readonly<{
1552
1598
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1553
1599
  }> & {}>;
@@ -1564,6 +1610,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1564
1610
  focus: () => any;
1565
1611
  blur: () => any;
1566
1612
  handleConfirm: (target: HTMLInputElement) => void;
1613
+ handleShortcutClick: (event: MouseEvent) => void;
1567
1614
  onUpdateShow: (show: boolean) => Promise<void>;
1568
1615
  watchers: import("../../../../../shared/types").AnyFn[];
1569
1616
  stopWatcher: () => void;
@@ -1607,6 +1654,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1607
1654
  isDateDisabled: {
1608
1655
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
1609
1656
  };
1657
+ propKey: {
1658
+ type: StringConstructor;
1659
+ };
1660
+ shortcutListenerConfig: {
1661
+ type: import("vue").PropType<{
1662
+ enable: boolean;
1663
+ callback: (value: string, propKey?: string | undefined) => void;
1664
+ }>;
1665
+ };
1610
1666
  }>> & Readonly<{
1611
1667
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1612
1668
  }>, {
@@ -2209,6 +2265,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2209
2265
  isDateDisabled: {
2210
2266
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
2211
2267
  };
2268
+ propKey: {
2269
+ type: StringConstructor;
2270
+ };
2271
+ shortcutListenerConfig: {
2272
+ type: import("vue").PropType<{
2273
+ enable: boolean;
2274
+ callback: (value: string, propKey?: string | undefined) => void;
2275
+ }>;
2276
+ };
2212
2277
  }>, {
2213
2278
  attrs: {
2214
2279
  [x: string]: unknown;
@@ -2248,6 +2313,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2248
2313
  isDateDisabled: {
2249
2314
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
2250
2315
  };
2316
+ propKey: {
2317
+ type: StringConstructor;
2318
+ };
2319
+ shortcutListenerConfig: {
2320
+ type: import("vue").PropType<{
2321
+ enable: boolean;
2322
+ callback: (value: string, propKey?: string | undefined) => void;
2323
+ }>;
2324
+ };
2251
2325
  }>> & Readonly<{
2252
2326
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
2253
2327
  }> & {}>;
@@ -2264,6 +2338,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2264
2338
  focus: () => any;
2265
2339
  blur: () => any;
2266
2340
  handleConfirm: (target: HTMLInputElement) => void;
2341
+ handleShortcutClick: (event: MouseEvent) => void;
2267
2342
  onUpdateShow: (show: boolean) => Promise<void>;
2268
2343
  watchers: import("../../../../../shared/types").AnyFn[];
2269
2344
  stopWatcher: () => void;
@@ -2307,6 +2382,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2307
2382
  isDateDisabled: {
2308
2383
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
2309
2384
  };
2385
+ propKey: {
2386
+ type: StringConstructor;
2387
+ };
2388
+ shortcutListenerConfig: {
2389
+ type: import("vue").PropType<{
2390
+ enable: boolean;
2391
+ callback: (value: string, propKey?: string | undefined) => void;
2392
+ }>;
2393
+ };
2310
2394
  }>> & Readonly<{
2311
2395
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
2312
2396
  }>, {
@@ -966,6 +966,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
966
966
  isDateDisabled: {
967
967
  type: PropType<(current: number, ...arg: any[]) => boolean>;
968
968
  };
969
+ propKey: {
970
+ type: StringConstructor;
971
+ };
972
+ shortcutListenerConfig: {
973
+ type: PropType<{
974
+ enable: boolean;
975
+ callback: (value: string, propKey?: string | undefined) => void;
976
+ }>;
977
+ };
969
978
  }>, {
970
979
  attrs: {
971
980
  [x: string]: unknown;
@@ -1005,6 +1014,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1005
1014
  isDateDisabled: {
1006
1015
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1007
1016
  };
1017
+ propKey: {
1018
+ type: StringConstructor;
1019
+ };
1020
+ shortcutListenerConfig: {
1021
+ type: PropType<{
1022
+ enable: boolean;
1023
+ callback: (value: string, propKey?: string | undefined) => void;
1024
+ }>;
1025
+ };
1008
1026
  }>> & Readonly<{
1009
1027
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1010
1028
  }> & {}>;
@@ -1021,6 +1039,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1021
1039
  focus: () => any;
1022
1040
  blur: () => any;
1023
1041
  handleConfirm: (target: HTMLInputElement) => void;
1042
+ handleShortcutClick: (event: MouseEvent) => void;
1024
1043
  onUpdateShow: (show: boolean) => Promise<void>;
1025
1044
  watchers: import("../../../shared/types").AnyFn[];
1026
1045
  stopWatcher: () => void;
@@ -1064,6 +1083,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1064
1083
  isDateDisabled: {
1065
1084
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1066
1085
  };
1086
+ propKey: {
1087
+ type: StringConstructor;
1088
+ };
1089
+ shortcutListenerConfig: {
1090
+ type: PropType<{
1091
+ enable: boolean;
1092
+ callback: (value: string, propKey?: string | undefined) => void;
1093
+ }>;
1094
+ };
1067
1095
  }>> & Readonly<{
1068
1096
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1069
1097
  }>, {
@@ -1819,6 +1847,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1819
1847
  isDateDisabled: {
1820
1848
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1821
1849
  };
1850
+ propKey: {
1851
+ type: StringConstructor;
1852
+ };
1853
+ shortcutListenerConfig: {
1854
+ type: PropType<{
1855
+ enable: boolean;
1856
+ callback: (value: string, propKey?: string | undefined) => void;
1857
+ }>;
1858
+ };
1822
1859
  }>, {
1823
1860
  attrs: {
1824
1861
  [x: string]: unknown;
@@ -1858,6 +1895,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1858
1895
  isDateDisabled: {
1859
1896
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1860
1897
  };
1898
+ propKey: {
1899
+ type: StringConstructor;
1900
+ };
1901
+ shortcutListenerConfig: {
1902
+ type: PropType<{
1903
+ enable: boolean;
1904
+ callback: (value: string, propKey?: string | undefined) => void;
1905
+ }>;
1906
+ };
1861
1907
  }>> & Readonly<{
1862
1908
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1863
1909
  }> & {}>;
@@ -1874,6 +1920,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1874
1920
  focus: () => any;
1875
1921
  blur: () => any;
1876
1922
  handleConfirm: (target: HTMLInputElement) => void;
1923
+ handleShortcutClick: (event: MouseEvent) => void;
1877
1924
  onUpdateShow: (show: boolean) => Promise<void>;
1878
1925
  watchers: import("../../../shared/types").AnyFn[];
1879
1926
  stopWatcher: () => void;
@@ -1917,6 +1964,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1917
1964
  isDateDisabled: {
1918
1965
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1919
1966
  };
1967
+ propKey: {
1968
+ type: StringConstructor;
1969
+ };
1970
+ shortcutListenerConfig: {
1971
+ type: PropType<{
1972
+ enable: boolean;
1973
+ callback: (value: string, propKey?: string | undefined) => void;
1974
+ }>;
1975
+ };
1920
1976
  }>> & Readonly<{
1921
1977
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1922
1978
  }>, {
@@ -2519,6 +2575,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2519
2575
  isDateDisabled: {
2520
2576
  type: PropType<(current: number, ...arg: any[]) => boolean>;
2521
2577
  };
2578
+ propKey: {
2579
+ type: StringConstructor;
2580
+ };
2581
+ shortcutListenerConfig: {
2582
+ type: PropType<{
2583
+ enable: boolean;
2584
+ callback: (value: string, propKey?: string | undefined) => void;
2585
+ }>;
2586
+ };
2522
2587
  }>, {
2523
2588
  attrs: {
2524
2589
  [x: string]: unknown;
@@ -2558,6 +2623,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2558
2623
  isDateDisabled: {
2559
2624
  type: PropType<(current: number, ...arg: any[]) => boolean>;
2560
2625
  };
2626
+ propKey: {
2627
+ type: StringConstructor;
2628
+ };
2629
+ shortcutListenerConfig: {
2630
+ type: PropType<{
2631
+ enable: boolean;
2632
+ callback: (value: string, propKey?: string | undefined) => void;
2633
+ }>;
2634
+ };
2561
2635
  }>> & Readonly<{
2562
2636
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
2563
2637
  }> & {}>;
@@ -2574,6 +2648,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2574
2648
  focus: () => any;
2575
2649
  blur: () => any;
2576
2650
  handleConfirm: (target: HTMLInputElement) => void;
2651
+ handleShortcutClick: (event: MouseEvent) => void;
2577
2652
  onUpdateShow: (show: boolean) => Promise<void>;
2578
2653
  watchers: import("../../../shared/types").AnyFn[];
2579
2654
  stopWatcher: () => void;
@@ -2617,6 +2692,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2617
2692
  isDateDisabled: {
2618
2693
  type: PropType<(current: number, ...arg: any[]) => boolean>;
2619
2694
  };
2695
+ propKey: {
2696
+ type: StringConstructor;
2697
+ };
2698
+ shortcutListenerConfig: {
2699
+ type: PropType<{
2700
+ enable: boolean;
2701
+ callback: (value: string, propKey?: string | undefined) => void;
2702
+ }>;
2703
+ };
2620
2704
  }>> & Readonly<{
2621
2705
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
2622
2706
  }>, {
@@ -34,6 +34,15 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<import("v
34
34
  isDateDisabled: {
35
35
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
36
36
  };
37
+ propKey: {
38
+ type: StringConstructor;
39
+ };
40
+ shortcutListenerConfig: {
41
+ type: import("vue").PropType<{
42
+ enable: boolean;
43
+ callback: (value: string, propKey?: string | undefined) => void;
44
+ }>;
45
+ };
37
46
  }>, {
38
47
  attrs: {
39
48
  [x: string]: unknown;
@@ -73,6 +82,15 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<import("v
73
82
  isDateDisabled: {
74
83
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
75
84
  };
85
+ propKey: {
86
+ type: StringConstructor;
87
+ };
88
+ shortcutListenerConfig: {
89
+ type: import("vue").PropType<{
90
+ enable: boolean;
91
+ callback: (value: string, propKey?: string | undefined) => void;
92
+ }>;
93
+ };
76
94
  }>> & Readonly<{
77
95
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
78
96
  }> & {}>;
@@ -89,6 +107,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<import("v
89
107
  focus: () => any;
90
108
  blur: () => any;
91
109
  handleConfirm: (target: HTMLInputElement) => void;
110
+ handleShortcutClick: (event: MouseEvent) => void;
92
111
  onUpdateShow: (show: boolean) => Promise<void>;
93
112
  watchers: import("../../shared/types").AnyFn[];
94
113
  stopWatcher: () => void;
@@ -132,6 +151,15 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<import("v
132
151
  isDateDisabled: {
133
152
  type: import("vue").PropType<(current: number, ...arg: any[]) => boolean>;
134
153
  };
154
+ propKey: {
155
+ type: StringConstructor;
156
+ };
157
+ shortcutListenerConfig: {
158
+ type: import("vue").PropType<{
159
+ enable: boolean;
160
+ callback: (value: string, propKey?: string | undefined) => void;
161
+ }>;
162
+ };
135
163
  }>> & Readonly<{
136
164
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
137
165
  }>, {
@@ -36,6 +36,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
36
36
  isDateDisabled: {
37
37
  type: PropType<(current: number, ...arg: any[]) => boolean>;
38
38
  };
39
+ propKey: {
40
+ type: StringConstructor;
41
+ };
42
+ shortcutListenerConfig: {
43
+ type: PropType<{
44
+ enable: boolean;
45
+ callback: (value: string, propKey?: string) => void;
46
+ }>;
47
+ };
39
48
  }>, {
40
49
  attrs: {
41
50
  [x: string]: unknown;
@@ -75,6 +84,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
75
84
  isDateDisabled: {
76
85
  type: PropType<(current: number, ...arg: any[]) => boolean>;
77
86
  };
87
+ propKey: {
88
+ type: StringConstructor;
89
+ };
90
+ shortcutListenerConfig: {
91
+ type: PropType<{
92
+ enable: boolean;
93
+ callback: (value: string, propKey?: string) => void;
94
+ }>;
95
+ };
78
96
  }>> & Readonly<{
79
97
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
80
98
  }> & {}>;
@@ -91,6 +109,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
91
109
  focus: () => any;
92
110
  blur: () => any;
93
111
  handleConfirm: (target: HTMLInputElement) => void;
112
+ handleShortcutClick: (event: MouseEvent) => void;
94
113
  onUpdateShow: (show: boolean) => Promise<void>;
95
114
  watchers: AnyFn[];
96
115
  stopWatcher: () => void;
@@ -134,6 +153,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
134
153
  isDateDisabled: {
135
154
  type: PropType<(current: number, ...arg: any[]) => boolean>;
136
155
  };
156
+ propKey: {
157
+ type: StringConstructor;
158
+ };
159
+ shortcutListenerConfig: {
160
+ type: PropType<{
161
+ enable: boolean;
162
+ callback: (value: string, propKey?: string) => void;
163
+ }>;
164
+ };
137
165
  }>> & Readonly<{
138
166
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
139
167
  }>, {
@@ -1,5 +1,5 @@
1
1
  import { i18n } from '../../../_virtual/_virtual_i18n-methods.js';
2
- import { defineComponent, useAttrs, ref, computed, onBeforeUnmount, watch, openBlock, createBlock, unref, createSlots, renderList, withCtx, renderSlot, nextTick } from 'vue';
2
+ import { defineComponent, useAttrs, ref, computed, onMounted, onBeforeUnmount, watch, openBlock, createBlock, unref, createSlots, renderList, withCtx, renderSlot, nextTick } from 'vue';
3
3
  import { promiseTimeout } from '@vueuse/shared';
4
4
  import { NDatePicker } from 'naive-ui';
5
5
  import '../../../shared/utils/index.js';
@@ -10,6 +10,7 @@ import '../../../shared/hooks/selectHooks/useSearchContent.js';
10
10
  import '@vicons/ionicons5';
11
11
  import '../../../shared/hooks/useScrollLoading.js';
12
12
  import { subYears, addYears, isWithinInterval, format, sub, startOfDay, endOfDay } from 'date-fns';
13
+ import { useEventListener } from '@vueuse/core';
13
14
 
14
15
  var _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  __name: "DatePicker",
@@ -47,6 +48,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
47
48
  },
48
49
  isDateDisabled: {
49
50
  type: Function
51
+ },
52
+ propKey: {
53
+ type: String
54
+ },
55
+ shortcutListenerConfig: {
56
+ type: Object
50
57
  }
51
58
  },
52
59
  emits: ["update:formatted-value"],
@@ -117,6 +124,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
117
124
  emit,
118
125
  allowedInvalidValue: props.allowedInvalidValue
119
126
  });
127
+ function handleShortcutClick(event) {
128
+ var _a, _b, _c, _d, _e, _f;
129
+ const target = event.target;
130
+ if (!target)
131
+ return;
132
+ const actionsPanelEl = (_d = (_c = (_b = (_a = datePickerRef.value) == null ? void 0 : _a.panelInstRef) == null ? void 0 : _b.$el) == null ? void 0 : _c.querySelector) == null ? void 0 : _d.call(_c, ".n-date-panel-actions");
133
+ if (!actionsPanelEl)
134
+ return;
135
+ if (((_e = target.parentElement) == null ? void 0 : _e.className.includes("n-button--default-type")) && actionsPanelEl.contains(target)) {
136
+ (_f = props.shortcutListenerConfig) == null ? void 0 : _f.callback(target.innerText, props.propKey);
137
+ }
138
+ }
139
+ onMounted(() => {
140
+ var _a;
141
+ if (!((_a = props.shortcutListenerConfig) == null ? void 0 : _a.enable))
142
+ return;
143
+ useEventListener(document, "click", handleShortcutClick, true);
144
+ });
120
145
  async function onUpdateShow(show) {
121
146
  setHoliday(show);
122
147
  if (!show || !isDateTime.value)
@@ -553,9 +553,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
553
553
  hide: boolean;
554
554
  }>;
555
555
  draggable: boolean;
556
+ isHighlightRow: boolean;
556
557
  idx: number;
557
558
  isHighlight: boolean;
558
- isHighlightRow: boolean;
559
559
  isFieldSet: boolean;
560
560
  fieldDescribeMode: "column" | "tooltip";
561
561
  hideExpressionOption: AnyObject[];
@@ -869,6 +869,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
869
869
  isDateDisabled: {
870
870
  type: PropType<(current: number, ...arg: any[]) => boolean>;
871
871
  };
872
+ propKey: {
873
+ type: StringConstructor;
874
+ };
875
+ shortcutListenerConfig: {
876
+ type: PropType<{
877
+ enable: boolean;
878
+ callback: (value: string, propKey?: string | undefined) => void;
879
+ }>;
880
+ };
872
881
  }>, {
873
882
  attrs: {
874
883
  [x: string]: unknown;
@@ -908,6 +917,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
908
917
  isDateDisabled: {
909
918
  type: PropType<(current: number, ...arg: any[]) => boolean>;
910
919
  };
920
+ propKey: {
921
+ type: StringConstructor;
922
+ };
923
+ shortcutListenerConfig: {
924
+ type: PropType<{
925
+ enable: boolean;
926
+ callback: (value: string, propKey?: string | undefined) => void;
927
+ }>;
928
+ };
911
929
  }>> & Readonly<{
912
930
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
913
931
  }> & {}>;
@@ -924,6 +942,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
924
942
  focus: () => any;
925
943
  blur: () => any;
926
944
  handleConfirm: (target: HTMLInputElement) => void;
945
+ handleShortcutClick: (event: MouseEvent) => void;
927
946
  onUpdateShow: (show: boolean) => Promise<void>;
928
947
  watchers: import("../../../shared/types").AnyFn[];
929
948
  stopWatcher: () => void;
@@ -967,6 +986,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
967
986
  isDateDisabled: {
968
987
  type: PropType<(current: number, ...arg: any[]) => boolean>;
969
988
  };
989
+ propKey: {
990
+ type: StringConstructor;
991
+ };
992
+ shortcutListenerConfig: {
993
+ type: PropType<{
994
+ enable: boolean;
995
+ callback: (value: string, propKey?: string | undefined) => void;
996
+ }>;
997
+ };
970
998
  }>> & Readonly<{
971
999
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
972
1000
  }>, {
@@ -1233,6 +1261,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1233
1261
  isDateDisabled: {
1234
1262
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1235
1263
  };
1264
+ propKey: {
1265
+ type: StringConstructor;
1266
+ };
1267
+ shortcutListenerConfig: {
1268
+ type: PropType<{
1269
+ enable: boolean;
1270
+ callback: (value: string, propKey?: string | undefined) => void;
1271
+ }>;
1272
+ };
1236
1273
  }>, {
1237
1274
  attrs: {
1238
1275
  [x: string]: unknown;
@@ -1272,6 +1309,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1272
1309
  isDateDisabled: {
1273
1310
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1274
1311
  };
1312
+ propKey: {
1313
+ type: StringConstructor;
1314
+ };
1315
+ shortcutListenerConfig: {
1316
+ type: PropType<{
1317
+ enable: boolean;
1318
+ callback: (value: string, propKey?: string | undefined) => void;
1319
+ }>;
1320
+ };
1275
1321
  }>> & Readonly<{
1276
1322
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1277
1323
  }> & {}>;
@@ -1288,6 +1334,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1288
1334
  focus: () => any;
1289
1335
  blur: () => any;
1290
1336
  handleConfirm: (target: HTMLInputElement) => void;
1337
+ handleShortcutClick: (event: MouseEvent) => void;
1291
1338
  onUpdateShow: (show: boolean) => Promise<void>;
1292
1339
  watchers: import("../../../shared/types").AnyFn[];
1293
1340
  stopWatcher: () => void;
@@ -1331,6 +1378,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1331
1378
  isDateDisabled: {
1332
1379
  type: PropType<(current: number, ...arg: any[]) => boolean>;
1333
1380
  };
1381
+ propKey: {
1382
+ type: StringConstructor;
1383
+ };
1384
+ shortcutListenerConfig: {
1385
+ type: PropType<{
1386
+ enable: boolean;
1387
+ callback: (value: string, propKey?: string | undefined) => void;
1388
+ }>;
1389
+ };
1334
1390
  }>> & Readonly<{
1335
1391
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1336
1392
  }>, {
@@ -594,9 +594,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
594
594
  hide: boolean;
595
595
  }>;
596
596
  draggable: boolean;
597
+ isHighlightRow: boolean;
597
598
  idx: number;
598
599
  isHighlight: boolean;
599
- isHighlightRow: boolean;
600
600
  isFieldSet: boolean;
601
601
  fieldDescribeMode: "column" | "tooltip";
602
602
  hideExpressionOption: AnyObject[];
@@ -773,9 +773,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
773
773
  hide: boolean;
774
774
  }>;
775
775
  draggable: boolean;
776
+ isHighlightRow: boolean;
776
777
  idx: number;
777
778
  isHighlight: boolean;
778
- isHighlightRow: boolean;
779
779
  isFieldSet: boolean;
780
780
  fieldDescribeMode: "column" | "tooltip";
781
781
  hideExpressionOption: AnyObject[];