cnhis-design-vue 3.1.52-beta.12 → 3.1.52-beta.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.
Files changed (32) hide show
  1. package/es/components/classification/index.d.ts +22 -4
  2. package/es/components/classification/src/components/search-filter/index.vue.d.ts +22 -4
  3. package/es/components/classification/src/components/set-classification/index.vue.d.ts +22 -4
  4. package/es/components/classification/src/index.vue.d.ts +22 -4
  5. package/es/components/date-picker/index.d.ts +11 -2
  6. package/es/components/date-picker/src/DatePicker.vue.d.ts +11 -2
  7. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  8. package/es/components/form-render/src/components/renderer/date.d.ts +9 -0
  9. package/es/components/form-render/src/components/renderer/date.js +1 -1
  10. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  11. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +11 -2
  12. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +11 -2
  13. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  14. package/es/components/recommend-search/index.d.ts +1 -1
  15. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +1 -1
  16. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  17. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +22 -4
  18. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +11 -2
  19. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +11 -2
  20. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +22 -4
  21. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +22 -4
  22. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +11 -2
  23. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +11 -2
  24. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +11 -2
  25. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +11 -2
  26. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +44 -8
  27. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +44 -8
  28. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  29. package/es/shared/hooks/useDateTime.d.ts +2 -1
  30. package/es/shared/hooks/useDateTime.js +1 -1
  31. package/es/shared/package.json.js +1 -1
  32. package/package.json +2 -2
@@ -81,6 +81,9 @@ declare const _default: import("vue").DefineComponent<{
81
81
  placeholder: {
82
82
  type: StringConstructor;
83
83
  };
84
+ allowedInvalidValue: {
85
+ type: StringConstructor;
86
+ };
84
87
  }, {
85
88
  attrs: {
86
89
  [x: string]: unknown;
@@ -98,6 +101,9 @@ declare const _default: import("vue").DefineComponent<{
98
101
  placeholder: {
99
102
  type: StringConstructor;
100
103
  };
104
+ allowedInvalidValue: {
105
+ type: StringConstructor;
106
+ };
101
107
  }>> & {
102
108
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
103
109
  }>>;
@@ -105,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
105
111
  datePickerRef: import("vue").Ref<AnyObject | null>;
106
112
  panelInstRef: import("vue").Ref<null>;
107
113
  placeholderRef: import("vue").Ref<any>;
108
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
114
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
109
115
  isDateTime: import("vue").ComputedRef<boolean>;
110
116
  formatRef: import("vue").ComputedRef<string>;
111
117
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -114,7 +120,7 @@ declare const _default: import("vue").DefineComponent<{
114
120
  handleConfirm: (target: HTMLInputElement) => void;
115
121
  onUpdateShow: (show: boolean) => void;
116
122
  onConfirm: (...args: any[]) => Promise<void>;
117
- isOtherValue: (value?: string) => boolean;
123
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
118
124
  NDatePicker: any;
119
125
  }, 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<{
120
126
  updateUnchangedValue: {
@@ -129,6 +135,9 @@ declare const _default: import("vue").DefineComponent<{
129
135
  placeholder: {
130
136
  type: StringConstructor;
131
137
  };
138
+ allowedInvalidValue: {
139
+ type: StringConstructor;
140
+ };
132
141
  }>> & {
133
142
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
134
143
  }, {
@@ -260,6 +260,9 @@ declare const DateInner: import("vue").DefineComponent<{
260
260
  placeholder: {
261
261
  type: StringConstructor;
262
262
  };
263
+ allowedInvalidValue: {
264
+ type: StringConstructor;
265
+ };
263
266
  }, {
264
267
  attrs: {
265
268
  [x: string]: unknown;
@@ -277,6 +280,9 @@ declare const DateInner: import("vue").DefineComponent<{
277
280
  placeholder: {
278
281
  type: StringConstructor;
279
282
  };
283
+ allowedInvalidValue: {
284
+ type: StringConstructor;
285
+ };
280
286
  }>> & {
281
287
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
282
288
  }>>;
@@ -284,7 +290,7 @@ declare const DateInner: import("vue").DefineComponent<{
284
290
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
285
291
  panelInstRef: import("vue").Ref<null>;
286
292
  placeholderRef: import("vue").Ref<any>;
287
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
293
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
288
294
  isDateTime: import("vue").ComputedRef<boolean>;
289
295
  formatRef: import("vue").ComputedRef<string>;
290
296
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -293,7 +299,7 @@ declare const DateInner: import("vue").DefineComponent<{
293
299
  handleConfirm: (target: HTMLInputElement) => void;
294
300
  onUpdateShow: (show: boolean) => void;
295
301
  onConfirm: (...args: any[]) => Promise<void>;
296
- isOtherValue: (value?: string) => boolean;
302
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
297
303
  NDatePicker: any;
298
304
  }, 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<{
299
305
  updateUnchangedValue: {
@@ -308,6 +314,9 @@ declare const DateInner: import("vue").DefineComponent<{
308
314
  placeholder: {
309
315
  type: StringConstructor;
310
316
  };
317
+ allowedInvalidValue: {
318
+ type: StringConstructor;
319
+ };
311
320
  }>> & {
312
321
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
313
322
  }, {
@@ -497,6 +506,9 @@ declare const DateOut: import("vue").DefineComponent<{
497
506
  placeholder: {
498
507
  type: StringConstructor;
499
508
  };
509
+ allowedInvalidValue: {
510
+ type: StringConstructor;
511
+ };
500
512
  }, {
501
513
  attrs: {
502
514
  [x: string]: unknown;
@@ -514,6 +526,9 @@ declare const DateOut: import("vue").DefineComponent<{
514
526
  placeholder: {
515
527
  type: StringConstructor;
516
528
  };
529
+ allowedInvalidValue: {
530
+ type: StringConstructor;
531
+ };
517
532
  }>> & {
518
533
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
519
534
  }>>;
@@ -521,7 +536,7 @@ declare const DateOut: import("vue").DefineComponent<{
521
536
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
522
537
  panelInstRef: import("vue").Ref<null>;
523
538
  placeholderRef: import("vue").Ref<any>;
524
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
539
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
525
540
  isDateTime: import("vue").ComputedRef<boolean>;
526
541
  formatRef: import("vue").ComputedRef<string>;
527
542
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -530,7 +545,7 @@ declare const DateOut: import("vue").DefineComponent<{
530
545
  handleConfirm: (target: HTMLInputElement) => void;
531
546
  onUpdateShow: (show: boolean) => void;
532
547
  onConfirm: (...args: any[]) => Promise<void>;
533
- isOtherValue: (value?: string) => boolean;
548
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
534
549
  NDatePicker: any;
535
550
  }, 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<{
536
551
  updateUnchangedValue: {
@@ -545,6 +560,9 @@ declare const DateOut: import("vue").DefineComponent<{
545
560
  placeholder: {
546
561
  type: StringConstructor;
547
562
  };
563
+ allowedInvalidValue: {
564
+ type: StringConstructor;
565
+ };
548
566
  }>> & {
549
567
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
550
568
  }, {
@@ -696,6 +714,9 @@ declare const DateRangeInner: import("vue").DefineComponent<{
696
714
  placeholder: {
697
715
  type: StringConstructor;
698
716
  };
717
+ allowedInvalidValue: {
718
+ type: StringConstructor;
719
+ };
699
720
  }, {
700
721
  attrs: {
701
722
  [x: string]: unknown;
@@ -713,6 +734,9 @@ declare const DateRangeInner: import("vue").DefineComponent<{
713
734
  placeholder: {
714
735
  type: StringConstructor;
715
736
  };
737
+ allowedInvalidValue: {
738
+ type: StringConstructor;
739
+ };
716
740
  }>> & {
717
741
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
718
742
  }>>;
@@ -720,7 +744,7 @@ declare const DateRangeInner: import("vue").DefineComponent<{
720
744
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
721
745
  panelInstRef: import("vue").Ref<null>;
722
746
  placeholderRef: import("vue").Ref<any>;
723
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
747
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
724
748
  isDateTime: import("vue").ComputedRef<boolean>;
725
749
  formatRef: import("vue").ComputedRef<string>;
726
750
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -729,7 +753,7 @@ declare const DateRangeInner: import("vue").DefineComponent<{
729
753
  handleConfirm: (target: HTMLInputElement) => void;
730
754
  onUpdateShow: (show: boolean) => void;
731
755
  onConfirm: (...args: any[]) => Promise<void>;
732
- isOtherValue: (value?: string) => boolean;
756
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
733
757
  NDatePicker: any;
734
758
  }, 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<{
735
759
  updateUnchangedValue: {
@@ -744,6 +768,9 @@ declare const DateRangeInner: import("vue").DefineComponent<{
744
768
  placeholder: {
745
769
  type: StringConstructor;
746
770
  };
771
+ allowedInvalidValue: {
772
+ type: StringConstructor;
773
+ };
747
774
  }>> & {
748
775
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
749
776
  }, {
@@ -940,6 +967,9 @@ declare const DateRangeOut: import("vue").DefineComponent<{
940
967
  placeholder: {
941
968
  type: StringConstructor;
942
969
  };
970
+ allowedInvalidValue: {
971
+ type: StringConstructor;
972
+ };
943
973
  }, {
944
974
  attrs: {
945
975
  [x: string]: unknown;
@@ -957,6 +987,9 @@ declare const DateRangeOut: import("vue").DefineComponent<{
957
987
  placeholder: {
958
988
  type: StringConstructor;
959
989
  };
990
+ allowedInvalidValue: {
991
+ type: StringConstructor;
992
+ };
960
993
  }>> & {
961
994
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
962
995
  }>>;
@@ -964,7 +997,7 @@ declare const DateRangeOut: import("vue").DefineComponent<{
964
997
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
965
998
  panelInstRef: import("vue").Ref<null>;
966
999
  placeholderRef: import("vue").Ref<any>;
967
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1000
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
968
1001
  isDateTime: import("vue").ComputedRef<boolean>;
969
1002
  formatRef: import("vue").ComputedRef<string>;
970
1003
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -973,7 +1006,7 @@ declare const DateRangeOut: import("vue").DefineComponent<{
973
1006
  handleConfirm: (target: HTMLInputElement) => void;
974
1007
  onUpdateShow: (show: boolean) => void;
975
1008
  onConfirm: (...args: any[]) => Promise<void>;
976
- isOtherValue: (value?: string) => boolean;
1009
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
977
1010
  NDatePicker: any;
978
1011
  }, 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<{
979
1012
  updateUnchangedValue: {
@@ -988,6 +1021,9 @@ declare const DateRangeOut: import("vue").DefineComponent<{
988
1021
  placeholder: {
989
1022
  type: StringConstructor;
990
1023
  };
1024
+ allowedInvalidValue: {
1025
+ type: StringConstructor;
1026
+ };
991
1027
  }>> & {
992
1028
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
993
1029
  }, {
@@ -482,6 +482,9 @@ export declare const WidgetCfgMaps: Map<string, {
482
482
  placeholder: {
483
483
  type: StringConstructor;
484
484
  };
485
+ allowedInvalidValue: {
486
+ type: StringConstructor;
487
+ };
485
488
  }, {
486
489
  attrs: {
487
490
  [x: string]: unknown;
@@ -499,6 +502,9 @@ export declare const WidgetCfgMaps: Map<string, {
499
502
  placeholder: {
500
503
  type: StringConstructor;
501
504
  };
505
+ allowedInvalidValue: {
506
+ type: StringConstructor;
507
+ };
502
508
  }>> & {
503
509
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
504
510
  }>>;
@@ -506,7 +512,7 @@ export declare const WidgetCfgMaps: Map<string, {
506
512
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
507
513
  panelInstRef: import("vue").Ref<null>;
508
514
  placeholderRef: import("vue").Ref<any>;
509
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
515
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
510
516
  isDateTime: import("vue").ComputedRef<boolean>;
511
517
  formatRef: import("vue").ComputedRef<string>;
512
518
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -515,7 +521,7 @@ export declare const WidgetCfgMaps: Map<string, {
515
521
  handleConfirm: (target: HTMLInputElement) => void;
516
522
  onUpdateShow: (show: boolean) => void;
517
523
  onConfirm: (...args: any[]) => Promise<void>;
518
- isOtherValue: (value?: string) => boolean;
524
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
519
525
  NDatePicker: any;
520
526
  }, 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<{
521
527
  updateUnchangedValue: {
@@ -530,6 +536,9 @@ export declare const WidgetCfgMaps: Map<string, {
530
536
  placeholder: {
531
537
  type: StringConstructor;
532
538
  };
539
+ allowedInvalidValue: {
540
+ type: StringConstructor;
541
+ };
533
542
  }>> & {
534
543
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
535
544
  }, {
@@ -733,6 +742,9 @@ export declare const WidgetCfgMaps: Map<string, {
733
742
  placeholder: {
734
743
  type: StringConstructor;
735
744
  };
745
+ allowedInvalidValue: {
746
+ type: StringConstructor;
747
+ };
736
748
  }, {
737
749
  attrs: {
738
750
  [x: string]: unknown;
@@ -750,6 +762,9 @@ export declare const WidgetCfgMaps: Map<string, {
750
762
  placeholder: {
751
763
  type: StringConstructor;
752
764
  };
765
+ allowedInvalidValue: {
766
+ type: StringConstructor;
767
+ };
753
768
  }>> & {
754
769
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
755
770
  }>>;
@@ -757,7 +772,7 @@ export declare const WidgetCfgMaps: Map<string, {
757
772
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
758
773
  panelInstRef: import("vue").Ref<null>;
759
774
  placeholderRef: import("vue").Ref<any>;
760
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
775
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
761
776
  isDateTime: import("vue").ComputedRef<boolean>;
762
777
  formatRef: import("vue").ComputedRef<string>;
763
778
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -766,7 +781,7 @@ export declare const WidgetCfgMaps: Map<string, {
766
781
  handleConfirm: (target: HTMLInputElement) => void;
767
782
  onUpdateShow: (show: boolean) => void;
768
783
  onConfirm: (...args: any[]) => Promise<void>;
769
- isOtherValue: (value?: string) => boolean;
784
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
770
785
  NDatePicker: any;
771
786
  }, 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<{
772
787
  updateUnchangedValue: {
@@ -781,6 +796,9 @@ export declare const WidgetCfgMaps: Map<string, {
781
796
  placeholder: {
782
797
  type: StringConstructor;
783
798
  };
799
+ allowedInvalidValue: {
800
+ type: StringConstructor;
801
+ };
784
802
  }>> & {
785
803
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
786
804
  }, {
@@ -946,6 +964,9 @@ export declare const WidgetCfgMaps: Map<string, {
946
964
  placeholder: {
947
965
  type: StringConstructor;
948
966
  };
967
+ allowedInvalidValue: {
968
+ type: StringConstructor;
969
+ };
949
970
  }, {
950
971
  attrs: {
951
972
  [x: string]: unknown;
@@ -963,6 +984,9 @@ export declare const WidgetCfgMaps: Map<string, {
963
984
  placeholder: {
964
985
  type: StringConstructor;
965
986
  };
987
+ allowedInvalidValue: {
988
+ type: StringConstructor;
989
+ };
966
990
  }>> & {
967
991
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
968
992
  }>>;
@@ -970,7 +994,7 @@ export declare const WidgetCfgMaps: Map<string, {
970
994
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
971
995
  panelInstRef: import("vue").Ref<null>;
972
996
  placeholderRef: import("vue").Ref<any>;
973
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
997
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
974
998
  isDateTime: import("vue").ComputedRef<boolean>;
975
999
  formatRef: import("vue").ComputedRef<string>;
976
1000
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -979,7 +1003,7 @@ export declare const WidgetCfgMaps: Map<string, {
979
1003
  handleConfirm: (target: HTMLInputElement) => void;
980
1004
  onUpdateShow: (show: boolean) => void;
981
1005
  onConfirm: (...args: any[]) => Promise<void>;
982
- isOtherValue: (value?: string) => boolean;
1006
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
983
1007
  NDatePicker: any;
984
1008
  }, 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<{
985
1009
  updateUnchangedValue: {
@@ -994,6 +1018,9 @@ export declare const WidgetCfgMaps: Map<string, {
994
1018
  placeholder: {
995
1019
  type: StringConstructor;
996
1020
  };
1021
+ allowedInvalidValue: {
1022
+ type: StringConstructor;
1023
+ };
997
1024
  }>> & {
998
1025
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
999
1026
  }, {
@@ -1204,6 +1231,9 @@ export declare const WidgetCfgMaps: Map<string, {
1204
1231
  placeholder: {
1205
1232
  type: StringConstructor;
1206
1233
  };
1234
+ allowedInvalidValue: {
1235
+ type: StringConstructor;
1236
+ };
1207
1237
  }, {
1208
1238
  attrs: {
1209
1239
  [x: string]: unknown;
@@ -1221,6 +1251,9 @@ export declare const WidgetCfgMaps: Map<string, {
1221
1251
  placeholder: {
1222
1252
  type: StringConstructor;
1223
1253
  };
1254
+ allowedInvalidValue: {
1255
+ type: StringConstructor;
1256
+ };
1224
1257
  }>> & {
1225
1258
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1226
1259
  }>>;
@@ -1228,7 +1261,7 @@ export declare const WidgetCfgMaps: Map<string, {
1228
1261
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
1229
1262
  panelInstRef: import("vue").Ref<null>;
1230
1263
  placeholderRef: import("vue").Ref<any>;
1231
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1264
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
1232
1265
  isDateTime: import("vue").ComputedRef<boolean>;
1233
1266
  formatRef: import("vue").ComputedRef<string>;
1234
1267
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -1237,7 +1270,7 @@ export declare const WidgetCfgMaps: Map<string, {
1237
1270
  handleConfirm: (target: HTMLInputElement) => void;
1238
1271
  onUpdateShow: (show: boolean) => void;
1239
1272
  onConfirm: (...args: any[]) => Promise<void>;
1240
- isOtherValue: (value?: string) => boolean;
1273
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
1241
1274
  NDatePicker: any;
1242
1275
  }, 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<{
1243
1276
  updateUnchangedValue: {
@@ -1252,6 +1285,9 @@ export declare const WidgetCfgMaps: Map<string, {
1252
1285
  placeholder: {
1253
1286
  type: StringConstructor;
1254
1287
  };
1288
+ allowedInvalidValue: {
1289
+ type: StringConstructor;
1290
+ };
1255
1291
  }>> & {
1256
1292
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1257
1293
  }, {
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as r,ref as t,computed as s,openBlock as o,createBlock as m,unref as i,mergeProps as a,createSlots as f,renderList as u,withCtx as l,renderSlot as n}from"vue";import{NTimePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";var d=e({__name:"TimePicker",setup(e,{expose:d}){const k=r(),h=t(null),$=s((()=>Reflect.get(k,"format")?k.format:"HH:mm:ss")),{focus:_,blur:v}=c(h,{formatRef:$,attrs:k});return d({$timePicker:h,focus:_,blur:v}),(e,r)=>(o(),m(i(p),a({ref_key:"timePickerRef",ref:h},e.$attrs),f({_:2},[u(e.$slots,((r,t)=>({name:t,fn:l((()=>[n(e.$slots,t)]))})))]),1040))}});export{d as default};
1
+ import{defineComponent as e,useAttrs as r,ref as t,computed as s,openBlock as o,createBlock as m,unref as i,createSlots as f,renderList as a,withCtx as u,renderSlot as l}from"vue";import{NTimePicker as n}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as p}from"../../../shared/hooks/useDateTime.js";var c=e({__name:"TimePicker",setup(e,{expose:c}){const d=r(),k=t(null),h=s((()=>Reflect.get(d,"format")?d.format:"HH:mm:ss")),{focus:_,blur:v}=p(k,{formatRef:h,attrs:d});return c({$timePicker:k,focus:_,blur:v}),(e,r)=>(o(),m(i(n),{ref_key:"timePickerRef",ref:k},f({_:2},[a(e.$slots,((r,t)=>({name:t,fn:u((()=>[l(e.$slots,t)]))})))]),1536))}});export{c as default};
@@ -1,8 +1,9 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
2
  import { AnyObject, Func } from '../../../es/shared/types';
3
- export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, { formatRef, attrs, emit, isPanel }: {
3
+ export declare function useDateTime(datePickerRef: Ref<AnyObject | null>, { formatRef, attrs, emit, allowedInvalidValue, isPanel }: {
4
4
  formatRef: ComputedRef<string | [string, string]>;
5
5
  attrs: AnyObject;
6
+ allowedInvalidValue?: string;
6
7
  emit?: Func;
7
8
  isPanel?: boolean;
8
9
  }): {
@@ -1 +1 @@
1
- import{computed as e,unref as t}from"vue";import{useEventListener as n}from"@vueuse/core";import{isValid as l}from"date-fns";function i(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function o(e,t,n,l){const o=e.value;if(!o)return;const u=e.selectionEnd||0,r=o.length;let s=0,a=0,c=0,d="",f=0;for(;s<r;){const e=o[s++];if(/\d/.test(e)&&(d+=e),s===u){c=d.length;const e=o.slice(s).match(/^\d+/);f=e?e[0].length:0}}const v=Array.isArray(t)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?t[1]:t[0]:t;let g="",m=0,p=0;for(s=0;s<v.length&&(l||!(a>=d.length));){const e=v[s++];if(/[yMdHms]/.test(e)?g+=d[a++]||"0":g+=e,n&&a===c){c=-1,m=g.length,p=m;let e=v.slice(s).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(g+=d.slice(a,a+f),a+=f),s+=e[0].length):(e=v.slice(s).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(m+=e[1].length,p=m+e[2].length))}}const h=g!==o;return h&&i(e,g),n&&(m=m||g.length+1,p=p||g.length+1,e.setSelectionRange(m,p)),h}function u(u,{formatRef:r,attrs:s,emit:a,isPanel:c}){const d=e((()=>{var e;return null==(e=u.value)?void 0:e.$el})),f=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;s[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=s[n])}(e,t))),e}));function v(e){if(g(e.value))return;o(e,t(r),!1,!0);const n=null==e?void 0:e.value,u=Reflect.get(s,"type")||"";n&&!u.includes("range")&&l(new Date(n))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=f.value;if(null==n?void 0:n(e.getTime()))return;const u=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,r=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,s=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==u?void 0:u(e.getHours()))return;if(null==r?void 0:r(e.getMinutes()))return;if(null==s?void 0:s(e.getSeconds()))return;return!0}(new Date(n))&&i(e)}function g(e=""){return["-"].includes(e)&&!c}return n(d,"input",(function(e){const n=e.target;if(!n.value||!Reflect.get(n,"_f_"))return;Reflect.set(n,"_f_",0),o(n,t(r),!0)&&(e.preventDefault(),e.stopPropagation())}),!0),n(d,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t)v(n);else if("Backspace"===t&&!c){const e=null==n?void 0:n.value;1===(null==e?void 0:e.length)&&(i(n),n.blur(),n.focus())}}),!0),n(d,"mouseup",(function(e){const t=e.target;["INPUT"].includes(t.tagName)&&0===e.button&&function(e){const{selectionStart:t=0,selectionEnd:n=0,value:l}=e;if(t!==n)return;const i=/(\d+)/g;let o,u,r;for(;null!==(o=i.exec(l));)if(t&&o.index<=t&&t<=i.lastIndex){u=o.index,r=i.lastIndex;break}void 0!==u&&void 0!==r&&e.setSelectionRange(u,r)}(t)}),!0),n(d,"paste",(function(e){var t,n;const l=(null==(t=e.clipboardData)?void 0:t.getData("text"))||"",o=null==(n=l.match(/\d+/g))?void 0:n.join(",");if(!o)return;e.preventDefault(),e.stopPropagation();const u=e.target;i(u,o),v(u)}),!0),n(d,"blur",(function(e){const t=e.target;g(t.value)&&function(e){i(e),null==a||a("update:formatted-value","-",null)}(t)}),!0),{handleConfirm:v,focus:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.blur)?void 0:t.call(e)}}}export{u as useDateTime};
1
+ import{computed as e,unref as t}from"vue";import{useEventListener as n}from"@vueuse/core";import{isValid as l}from"date-fns";function i(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function o(e,t,n,l){const o=e.value;if(!o)return;const u=e.selectionEnd||0,r=o.length;let a=0,s=0,c=0,d="",f=0;for(;a<r;){const e=o[a++];if(/\d/.test(e)&&(d+=e),a===u){c=d.length;const e=o.slice(a).match(/^\d+/);f=e?e[0].length:0}}const v=Array.isArray(t)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?t[1]:t[0]:t;let g="",m=0,p=0;for(a=0;a<v.length&&(l||!(s>=d.length));){const e=v[a++];if(/[yMdHms]/.test(e)?g+=d[s++]||"0":g+=e,n&&s===c){c=-1,m=g.length,p=m;let e=v.slice(a).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(g+=d.slice(s,s+f),s+=f),a+=e[0].length):(e=v.slice(a).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(m+=e[1].length,p=m+e[2].length))}}const h=g!==o;return h&&i(e,g),n&&(m=m||g.length+1,p=p||g.length+1,e.setSelectionRange(m,p)),h}function u(u,{formatRef:r,attrs:a,emit:s,allowedInvalidValue:c,isPanel:d}){const f=e((()=>{var e;return null==(e=u.value)?void 0:e.$el})),v=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;a[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=a[n])}(e,t))),e}));function g(e){if(function(e=""){return c&&c===e&&!d}(e.value))return void(null==s||s("update:formatted-value",c,null));o(e,t(r),!1,!0);const n=null==e?void 0:e.value,u=Reflect.get(a,"type")||"";n&&!u.includes("range")&&l(new Date(n))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=v.value;if(null==n?void 0:n(e.getTime()))return;const u=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,r=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,a=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==u?void 0:u(e.getHours()))return;if(null==r?void 0:r(e.getMinutes()))return;if(null==a?void 0:a(e.getSeconds()))return;return!0}(new Date(n))&&i(e)}return n(f,"input",(function(e){const n=e.target;if(!n.value||!Reflect.get(n,"_f_"))return;Reflect.set(n,"_f_",0),o(n,t(r),!0)&&(e.preventDefault(),e.stopPropagation())}),!0),n(f,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t)g(n);else if("Backspace"===t&&!d){const e=null==n?void 0:n.value;1===(null==e?void 0:e.length)&&(i(n),n.blur(),n.focus())}}),!0),n(f,"mouseup",(function(e){const t=e.target;["INPUT"].includes(t.tagName)&&0===e.button&&function(e){const{selectionStart:t=0,selectionEnd:n=0,value:l}=e;if(t!==n)return;const i=/(\d+)/g;let o,u,r;for(;null!==(o=i.exec(l));)if(t&&o.index<=t&&t<=i.lastIndex){u=o.index,r=i.lastIndex;break}void 0!==u&&void 0!==r&&e.setSelectionRange(u,r)}(t)}),!0),n(f,"paste",(function(e){var t,n;const l=(null==(t=e.clipboardData)?void 0:t.getData("text"))||"",o=null==(n=l.match(/\d+/g))?void 0:n.join(",");if(!o)return;e.preventDefault(),e.stopPropagation();const u=e.target;i(u,o),g(u)}),!0),{handleConfirm:g,focus:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.blur)?void 0:t.call(e)}}}export{u as useDateTime};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.52-beta.12",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.52-beta.12",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.52-beta.14",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.52-beta.14",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.52-beta.12",
3
+ "version": "3.1.52-beta.14",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -63,5 +63,5 @@
63
63
  "iOS 7",
64
64
  "last 3 iOS versions"
65
65
  ],
66
- "gitHead": "eef1bdea0a9ec1c7658fbc54c0779bd1c0769d1f"
66
+ "gitHead": "a3a0cdc2a5560496151b8f1bc90b1082f2019f8a"
67
67
  }