cnhis-design-vue 3.1.52-beta.9 → 3.1.52-release.1

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 (61) hide show
  1. package/es/components/callback/src/components/render/popupMaps.d.ts +1 -1
  2. package/es/components/classification/index.d.ts +6 -40
  3. package/es/components/classification/src/components/search-filter/index.vue.d.ts +6 -40
  4. package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -40
  5. package/es/components/classification/src/index.vue.d.ts +6 -40
  6. package/es/components/date-picker/index.d.ts +3 -20
  7. package/es/components/date-picker/src/DatePicker.vue.d.ts +3 -20
  8. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  9. package/es/components/form-config/index.d.ts +2 -2
  10. package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
  11. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
  12. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
  13. package/es/components/form-render/index.d.ts +1 -1
  14. package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
  15. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
  16. package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -2
  17. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  18. package/es/components/form-render/src/types/index.d.ts +2 -2
  19. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +3 -20
  20. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +3 -20
  21. package/es/components/index.css +1 -1
  22. package/es/components/index.d.ts +1 -2
  23. package/es/components/index.js +1 -1
  24. package/es/components/info-header/index.d.ts +2 -2
  25. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -2
  26. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -1
  27. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
  28. package/es/components/recommend-search/index.d.ts +1 -1
  29. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +1 -1
  30. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  31. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
  32. package/es/components/shortcut-setter/index.d.ts +1 -1
  33. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  34. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +6 -40
  35. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +3 -20
  36. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +3 -20
  37. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +6 -40
  38. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +6 -40
  39. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +3 -20
  40. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +3 -20
  41. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +3 -20
  42. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +3 -20
  43. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +12 -80
  44. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +12 -80
  45. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  46. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +0 -9
  47. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  48. package/es/shared/hooks/useDateTime.d.ts +2 -7
  49. package/es/shared/hooks/useDateTime.js +1 -1
  50. package/es/shared/package.json.js +1 -1
  51. package/package.json +2 -2
  52. package/es/components/body-select/index.d.ts +0 -47
  53. package/es/components/body-select/index.js +0 -1
  54. package/es/components/body-select/src/config/index.d.ts +0 -101
  55. package/es/components/body-select/src/config/index.js +0 -1
  56. package/es/components/body-select/src/hooks/renderCanvas.d.ts +0 -6
  57. package/es/components/body-select/src/hooks/renderCanvas.js +0 -1
  58. package/es/components/body-select/src/index.vue.d.ts +0 -48
  59. package/es/components/body-select/src/index.vue.js +0 -1
  60. package/es/components/body-select/src/index.vue2.js +0 -1
  61. package/es/components/body-select/style/index.css +0 -1
@@ -560,7 +560,7 @@ export declare const CallbackMaps: Map<string, {
560
560
  onKeydown: (event: KeyboardEvent) => Promise<void>;
561
561
  clearSpan: (uuid: string) => void;
562
562
  exposeEvent: {
563
- validate(path?: string | ((field: import("../../../../../../es/components/form-render").Field<any, any, any, any>) => boolean), { force }?: {
563
+ validate(path?: string, { force }?: {
564
564
  force?: boolean | undefined;
565
565
  }): Promise<void>;
566
566
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -803,9 +803,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
803
803
  onConfirm: {
804
804
  type: FunctionConstructor;
805
805
  };
806
- formattedValue: {
807
- type: StringConstructor;
808
- };
809
806
  }, {
810
807
  attrs: {
811
808
  [x: string]: unknown;
@@ -817,17 +814,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
817
814
  onConfirm: {
818
815
  type: FunctionConstructor;
819
816
  };
820
- formattedValue: {
821
- type: StringConstructor;
822
- };
823
- }>> & {
824
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
825
- }>>;
826
- emit: (event: "update:formatted-value", ...args: any[]) => void;
817
+ }>> & {}>>;
827
818
  datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
828
819
  panelInstRef: import("vue").Ref<null>;
829
- placeholder: import("vue").Ref<any>;
830
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
831
820
  isDateTime: import("vue").ComputedRef<boolean>;
832
821
  formatRef: import("vue").ComputedRef<string>;
833
822
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -836,21 +825,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
836
825
  handleConfirm: (target: HTMLInputElement) => void;
837
826
  onUpdateShow: (show: boolean) => void;
838
827
  onConfirm: (...args: any[]) => Promise<void>;
839
- isOtherValue: (value?: string) => boolean;
840
828
  NDatePicker: any;
841
- }, 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<{
829
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
842
830
  updateUnchangedValue: {
843
831
  type: BooleanConstructor;
844
832
  };
845
833
  onConfirm: {
846
834
  type: FunctionConstructor;
847
835
  };
848
- formattedValue: {
849
- type: StringConstructor;
850
- };
851
- }>> & {
852
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
853
- }, {
836
+ }>>, {
854
837
  updateUnchangedValue: boolean;
855
838
  }>>;
856
839
  NSelect: any;
@@ -1413,9 +1396,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1413
1396
  onConfirm: {
1414
1397
  type: FunctionConstructor;
1415
1398
  };
1416
- formattedValue: {
1417
- type: StringConstructor;
1418
- };
1419
1399
  }, {
1420
1400
  attrs: {
1421
1401
  [x: string]: unknown;
@@ -1427,17 +1407,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1427
1407
  onConfirm: {
1428
1408
  type: FunctionConstructor;
1429
1409
  };
1430
- formattedValue: {
1431
- type: StringConstructor;
1432
- };
1433
- }>> & {
1434
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1435
- }>>;
1436
- emit: (event: "update:formatted-value", ...args: any[]) => void;
1410
+ }>> & {}>>;
1437
1411
  datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
1438
1412
  panelInstRef: import("vue").Ref<null>;
1439
- placeholder: import("vue").Ref<any>;
1440
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1441
1413
  isDateTime: import("vue").ComputedRef<boolean>;
1442
1414
  formatRef: import("vue").ComputedRef<string>;
1443
1415
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -1446,21 +1418,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1446
1418
  handleConfirm: (target: HTMLInputElement) => void;
1447
1419
  onUpdateShow: (show: boolean) => void;
1448
1420
  onConfirm: (...args: any[]) => Promise<void>;
1449
- isOtherValue: (value?: string) => boolean;
1450
1421
  NDatePicker: any;
1451
- }, 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<{
1422
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1452
1423
  updateUnchangedValue: {
1453
1424
  type: BooleanConstructor;
1454
1425
  };
1455
1426
  onConfirm: {
1456
1427
  type: FunctionConstructor;
1457
1428
  };
1458
- formattedValue: {
1459
- type: StringConstructor;
1460
- };
1461
- }>> & {
1462
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1463
- }, {
1429
+ }>>, {
1464
1430
  updateUnchangedValue: boolean;
1465
1431
  }>>;
1466
1432
  WidgetValEnums: {
@@ -280,9 +280,6 @@ declare const _default: import("vue").DefineComponent<{
280
280
  onConfirm: {
281
281
  type: FunctionConstructor;
282
282
  };
283
- formattedValue: {
284
- type: StringConstructor;
285
- };
286
283
  }, {
287
284
  attrs: {
288
285
  [x: string]: unknown;
@@ -294,17 +291,9 @@ declare const _default: import("vue").DefineComponent<{
294
291
  onConfirm: {
295
292
  type: FunctionConstructor;
296
293
  };
297
- formattedValue: {
298
- type: StringConstructor;
299
- };
300
- }>> & {
301
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
302
- }>>;
303
- emit: (event: "update:formatted-value", ...args: any[]) => void;
294
+ }>> & {}>>;
304
295
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
305
296
  panelInstRef: import("vue").Ref<null>;
306
- placeholder: import("vue").Ref<any>;
307
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
308
297
  isDateTime: import("vue").ComputedRef<boolean>;
309
298
  formatRef: import("vue").ComputedRef<string>;
310
299
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -313,21 +302,15 @@ declare const _default: import("vue").DefineComponent<{
313
302
  handleConfirm: (target: HTMLInputElement) => void;
314
303
  onUpdateShow: (show: boolean) => void;
315
304
  onConfirm: (...args: any[]) => Promise<void>;
316
- isOtherValue: (value?: string) => boolean;
317
305
  NDatePicker: any;
318
- }, 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<{
306
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
319
307
  updateUnchangedValue: {
320
308
  type: BooleanConstructor;
321
309
  };
322
310
  onConfirm: {
323
311
  type: FunctionConstructor;
324
312
  };
325
- formattedValue: {
326
- type: StringConstructor;
327
- };
328
- }>> & {
329
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
330
- }, {
313
+ }>>, {
331
314
  updateUnchangedValue: boolean;
332
315
  }>>;
333
316
  NSelect: any;
@@ -890,9 +873,6 @@ declare const _default: import("vue").DefineComponent<{
890
873
  onConfirm: {
891
874
  type: FunctionConstructor;
892
875
  };
893
- formattedValue: {
894
- type: StringConstructor;
895
- };
896
876
  }, {
897
877
  attrs: {
898
878
  [x: string]: unknown;
@@ -904,17 +884,9 @@ declare const _default: import("vue").DefineComponent<{
904
884
  onConfirm: {
905
885
  type: FunctionConstructor;
906
886
  };
907
- formattedValue: {
908
- type: StringConstructor;
909
- };
910
- }>> & {
911
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
912
- }>>;
913
- emit: (event: "update:formatted-value", ...args: any[]) => void;
887
+ }>> & {}>>;
914
888
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
915
889
  panelInstRef: import("vue").Ref<null>;
916
- placeholder: import("vue").Ref<any>;
917
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
918
890
  isDateTime: import("vue").ComputedRef<boolean>;
919
891
  formatRef: import("vue").ComputedRef<string>;
920
892
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -923,21 +895,15 @@ declare const _default: import("vue").DefineComponent<{
923
895
  handleConfirm: (target: HTMLInputElement) => void;
924
896
  onUpdateShow: (show: boolean) => void;
925
897
  onConfirm: (...args: any[]) => Promise<void>;
926
- isOtherValue: (value?: string) => boolean;
927
898
  NDatePicker: any;
928
- }, 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<{
899
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
929
900
  updateUnchangedValue: {
930
901
  type: BooleanConstructor;
931
902
  };
932
903
  onConfirm: {
933
904
  type: FunctionConstructor;
934
905
  };
935
- formattedValue: {
936
- type: StringConstructor;
937
- };
938
- }>> & {
939
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
940
- }, {
906
+ }>>, {
941
907
  updateUnchangedValue: boolean;
942
908
  }>>;
943
909
  WidgetValEnums: {
@@ -590,9 +590,6 @@ declare const _default: import("vue").DefineComponent<{
590
590
  onConfirm: {
591
591
  type: FunctionConstructor;
592
592
  };
593
- formattedValue: {
594
- type: StringConstructor;
595
- };
596
593
  }, {
597
594
  attrs: {
598
595
  [x: string]: unknown;
@@ -604,17 +601,9 @@ declare const _default: import("vue").DefineComponent<{
604
601
  onConfirm: {
605
602
  type: FunctionConstructor;
606
603
  };
607
- formattedValue: {
608
- type: StringConstructor;
609
- };
610
- }>> & {
611
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
612
- }>>;
613
- emit: (event: "update:formatted-value", ...args: any[]) => void;
604
+ }>> & {}>>;
614
605
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
615
606
  panelInstRef: import("vue").Ref<null>;
616
- placeholder: import("vue").Ref<any>;
617
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
618
607
  isDateTime: import("vue").ComputedRef<boolean>;
619
608
  formatRef: import("vue").ComputedRef<string>;
620
609
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -623,21 +612,15 @@ declare const _default: import("vue").DefineComponent<{
623
612
  handleConfirm: (target: HTMLInputElement) => void;
624
613
  onUpdateShow: (show: boolean) => void;
625
614
  onConfirm: (...args: any[]) => Promise<void>;
626
- isOtherValue: (value?: string) => boolean;
627
615
  NDatePicker: any;
628
- }, 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<{
616
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
629
617
  updateUnchangedValue: {
630
618
  type: BooleanConstructor;
631
619
  };
632
620
  onConfirm: {
633
621
  type: FunctionConstructor;
634
622
  };
635
- formattedValue: {
636
- type: StringConstructor;
637
- };
638
- }>> & {
639
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
640
- }, {
623
+ }>>, {
641
624
  updateUnchangedValue: boolean;
642
625
  }>>;
643
626
  NSelect: any;
@@ -1200,9 +1183,6 @@ declare const _default: import("vue").DefineComponent<{
1200
1183
  onConfirm: {
1201
1184
  type: FunctionConstructor;
1202
1185
  };
1203
- formattedValue: {
1204
- type: StringConstructor;
1205
- };
1206
1186
  }, {
1207
1187
  attrs: {
1208
1188
  [x: string]: unknown;
@@ -1214,17 +1194,9 @@ declare const _default: import("vue").DefineComponent<{
1214
1194
  onConfirm: {
1215
1195
  type: FunctionConstructor;
1216
1196
  };
1217
- formattedValue: {
1218
- type: StringConstructor;
1219
- };
1220
- }>> & {
1221
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1222
- }>>;
1223
- emit: (event: "update:formatted-value", ...args: any[]) => void;
1197
+ }>> & {}>>;
1224
1198
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
1225
1199
  panelInstRef: import("vue").Ref<null>;
1226
- placeholder: import("vue").Ref<any>;
1227
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1228
1200
  isDateTime: import("vue").ComputedRef<boolean>;
1229
1201
  formatRef: import("vue").ComputedRef<string>;
1230
1202
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -1233,21 +1205,15 @@ declare const _default: import("vue").DefineComponent<{
1233
1205
  handleConfirm: (target: HTMLInputElement) => void;
1234
1206
  onUpdateShow: (show: boolean) => void;
1235
1207
  onConfirm: (...args: any[]) => Promise<void>;
1236
- isOtherValue: (value?: string) => boolean;
1237
1208
  NDatePicker: any;
1238
- }, 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<{
1209
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1239
1210
  updateUnchangedValue: {
1240
1211
  type: BooleanConstructor;
1241
1212
  };
1242
1213
  onConfirm: {
1243
1214
  type: FunctionConstructor;
1244
1215
  };
1245
- formattedValue: {
1246
- type: StringConstructor;
1247
- };
1248
- }>> & {
1249
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1250
- }, {
1216
+ }>>, {
1251
1217
  updateUnchangedValue: boolean;
1252
1218
  }>>;
1253
1219
  WidgetValEnums: {
@@ -804,9 +804,6 @@ declare const _default: import("vue").DefineComponent<{
804
804
  onConfirm: {
805
805
  type: FunctionConstructor;
806
806
  };
807
- formattedValue: {
808
- type: StringConstructor;
809
- };
810
807
  }, {
811
808
  attrs: {
812
809
  [x: string]: unknown;
@@ -818,17 +815,9 @@ declare const _default: import("vue").DefineComponent<{
818
815
  onConfirm: {
819
816
  type: FunctionConstructor;
820
817
  };
821
- formattedValue: {
822
- type: StringConstructor;
823
- };
824
- }>> & {
825
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
826
- }>>;
827
- emit: (event: "update:formatted-value", ...args: any[]) => void;
818
+ }>> & {}>>;
828
819
  datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
829
820
  panelInstRef: import("vue").Ref<null>;
830
- placeholder: import("vue").Ref<any>;
831
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
832
821
  isDateTime: import("vue").ComputedRef<boolean>;
833
822
  formatRef: import("vue").ComputedRef<string>;
834
823
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -837,21 +826,15 @@ declare const _default: import("vue").DefineComponent<{
837
826
  handleConfirm: (target: HTMLInputElement) => void;
838
827
  onUpdateShow: (show: boolean) => void;
839
828
  onConfirm: (...args: any[]) => Promise<void>;
840
- isOtherValue: (value?: string) => boolean;
841
829
  NDatePicker: any;
842
- }, 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<{
830
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
843
831
  updateUnchangedValue: {
844
832
  type: BooleanConstructor;
845
833
  };
846
834
  onConfirm: {
847
835
  type: FunctionConstructor;
848
836
  };
849
- formattedValue: {
850
- type: StringConstructor;
851
- };
852
- }>> & {
853
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
854
- }, {
837
+ }>>, {
855
838
  updateUnchangedValue: boolean;
856
839
  }>>;
857
840
  NSelect: any;
@@ -1414,9 +1397,6 @@ declare const _default: import("vue").DefineComponent<{
1414
1397
  onConfirm: {
1415
1398
  type: FunctionConstructor;
1416
1399
  };
1417
- formattedValue: {
1418
- type: StringConstructor;
1419
- };
1420
1400
  }, {
1421
1401
  attrs: {
1422
1402
  [x: string]: unknown;
@@ -1428,17 +1408,9 @@ declare const _default: import("vue").DefineComponent<{
1428
1408
  onConfirm: {
1429
1409
  type: FunctionConstructor;
1430
1410
  };
1431
- formattedValue: {
1432
- type: StringConstructor;
1433
- };
1434
- }>> & {
1435
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1436
- }>>;
1437
- emit: (event: "update:formatted-value", ...args: any[]) => void;
1411
+ }>> & {}>>;
1438
1412
  datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
1439
1413
  panelInstRef: import("vue").Ref<null>;
1440
- placeholder: import("vue").Ref<any>;
1441
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1442
1414
  isDateTime: import("vue").ComputedRef<boolean>;
1443
1415
  formatRef: import("vue").ComputedRef<string>;
1444
1416
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -1447,21 +1419,15 @@ declare const _default: import("vue").DefineComponent<{
1447
1419
  handleConfirm: (target: HTMLInputElement) => void;
1448
1420
  onUpdateShow: (show: boolean) => void;
1449
1421
  onConfirm: (...args: any[]) => Promise<void>;
1450
- isOtherValue: (value?: string) => boolean;
1451
1422
  NDatePicker: any;
1452
- }, 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<{
1423
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1453
1424
  updateUnchangedValue: {
1454
1425
  type: BooleanConstructor;
1455
1426
  };
1456
1427
  onConfirm: {
1457
1428
  type: FunctionConstructor;
1458
1429
  };
1459
- formattedValue: {
1460
- type: StringConstructor;
1461
- };
1462
- }>> & {
1463
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1464
- }, {
1430
+ }>>, {
1465
1431
  updateUnchangedValue: boolean;
1466
1432
  }>>;
1467
1433
  WidgetValEnums: {
@@ -6,9 +6,6 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
6
6
  onConfirm: {
7
7
  type: FunctionConstructor;
8
8
  };
9
- formattedValue: {
10
- type: StringConstructor;
11
- };
12
9
  }, {
13
10
  attrs: {
14
11
  [x: string]: unknown;
@@ -20,17 +17,9 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
20
17
  onConfirm: {
21
18
  type: FunctionConstructor;
22
19
  };
23
- formattedValue: {
24
- type: StringConstructor;
25
- };
26
- }>> & {
27
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
28
- }>>;
29
- emit: (event: "update:formatted-value", ...args: any[]) => void;
20
+ }>> & {}>>;
30
21
  datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
31
22
  panelInstRef: import("vue").Ref<null>;
32
- placeholder: import("vue").Ref<any>;
33
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
34
23
  isDateTime: import("vue").ComputedRef<boolean>;
35
24
  formatRef: import("vue").ComputedRef<string>;
36
25
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -39,21 +28,15 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
39
28
  handleConfirm: (target: HTMLInputElement) => void;
40
29
  onUpdateShow: (show: boolean) => void;
41
30
  onConfirm: (...args: any[]) => Promise<void>;
42
- isOtherValue: (value?: string) => boolean;
43
31
  NDatePicker: any;
44
- }, 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<{
32
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
33
  updateUnchangedValue: {
46
34
  type: BooleanConstructor;
47
35
  };
48
36
  onConfirm: {
49
37
  type: FunctionConstructor;
50
38
  };
51
- formattedValue: {
52
- type: StringConstructor;
53
- };
54
- }>> & {
55
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
56
- }, {
39
+ }>>, {
57
40
  updateUnchangedValue: boolean;
58
41
  }>>;
59
42
  export default DatePicker;
@@ -6,9 +6,6 @@ declare const _default: import("vue").DefineComponent<{
6
6
  onConfirm: {
7
7
  type: FunctionConstructor;
8
8
  };
9
- formattedValue: {
10
- type: StringConstructor;
11
- };
12
9
  }, {
13
10
  attrs: {
14
11
  [x: string]: unknown;
@@ -20,17 +17,9 @@ declare const _default: import("vue").DefineComponent<{
20
17
  onConfirm: {
21
18
  type: FunctionConstructor;
22
19
  };
23
- formattedValue: {
24
- type: StringConstructor;
25
- };
26
- }>> & {
27
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
28
- }>>;
29
- emit: (event: "update:formatted-value", ...args: any[]) => void;
20
+ }>> & {}>>;
30
21
  datePickerRef: import("vue").Ref<AnyObject | null>;
31
22
  panelInstRef: import("vue").Ref<null>;
32
- placeholder: import("vue").Ref<any>;
33
- currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
34
23
  isDateTime: import("vue").ComputedRef<boolean>;
35
24
  formatRef: import("vue").ComputedRef<string>;
36
25
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -39,21 +28,15 @@ declare const _default: import("vue").DefineComponent<{
39
28
  handleConfirm: (target: HTMLInputElement) => void;
40
29
  onUpdateShow: (show: boolean) => void;
41
30
  onConfirm: (...args: any[]) => Promise<void>;
42
- isOtherValue: (value?: string) => boolean;
43
31
  NDatePicker: any;
44
- }, 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<{
32
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
33
  updateUnchangedValue: {
46
34
  type: BooleanConstructor;
47
35
  };
48
36
  onConfirm: {
49
37
  type: FunctionConstructor;
50
38
  };
51
- formattedValue: {
52
- type: StringConstructor;
53
- };
54
- }>> & {
55
- "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
56
- }, {
39
+ }>>, {
57
40
  updateUnchangedValue: boolean;
58
41
  }>;
59
42
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,mergeProps as i,isRef as d,createSlots as s,renderList as f,withCtx as m,renderSlot as p,nextTick as v}from"vue";import{NDatePicker as c}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as y}from"../../../shared/hooks/useDateTime.js";import{format as h}from"date-fns";var g=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:g,emit:R}){const M=e,V=t(),k=a(null),w=a(null),C=a(),D=l({get:()=>j(M.formattedValue)?void 0:M.formattedValue,set(e){R("update:formatted-value",e,e?Date.parse(e):null)}}),$=l((()=>{const e=Reflect.get(V,"type")||"";return["datetime","datetimerange"].includes(e)})),E=l((()=>{if(Reflect.get(V,"format"))return V.format;const e=V.type||"";return $.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),I=l((()=>$.value?E.value.split(" "):"")),{focus:P,blur:U,handleConfirm:_}=y(k,{formatRef:E,attrs:V,emit:R});function b(e){e&&$.value&&v((()=>{var e;w.value=null==(e=k.value)?void 0:e.panelInstRef,y(w,{formatRef:I,attrs:V,isPanel:!0})}))}async function x(...e){var t,a,l,n,u,r;const o=Reflect.get(V,"type")||"",i=null==(n=null==(l=null==(a=null==(t=k.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(o.includes("range")?null==(u=M.onConfirm)||u.call(M,...e):(await v(),i.focus(),_(i),i.blur(),null==(r=M.onConfirm)||r.call(M,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!M.updateUnchangedValue||o.includes("range"))return;const d=i.value;i.value=h(new Date,E.value),i.dispatchEvent(new InputEvent("input")),i.value=d,i.dispatchEvent(new InputEvent("input"))}function j(e=""){return["-"].includes(e)}return n((()=>M.formattedValue),(e=>{C.value=j(e)?e:V.placeholder?V.placeholder:"选择日期时间"}),{immediate:!0}),g({$datePicker:k,focus:P,blur:U}),(e,t)=>(u(),r(o(c),i({ref_key:"datePickerRef",ref:k},e.$attrs,{"onUpdate:show":b,onConfirm:x,placeholder:C.value,"formatted-value":o(D),"onUpdate:formatted-value":t[0]||(t[0]=e=>d(D)?D.value=e:null)}),s({_:2},[f(e.$slots,((t,a)=>({name:a,fn:m((()=>[p(e.$slots,a)]))})))]),1040,["placeholder","formatted-value"]))}});export{g as default};
1
+ import{defineComponent as e,useAttrs as n,ref as t,computed as l,openBlock as a,createBlock as u,unref as o,mergeProps as r,createSlots as i,renderList as s,withCtx as d,renderSlot as p,nextTick as c}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as v}from"../../../shared/hooks/useDateTime.js";import{format as m}from"date-fns";var y=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function}},setup(e,{expose:y}){const h=e,g=n(),M=t(null),R=t(null),k=l((()=>{const e=Reflect.get(g,"type")||"";return["datetime","datetimerange"].includes(e)})),w=l((()=>{if(Reflect.get(g,"format"))return g.format;const e=g.type||"";return k.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),C=l((()=>k.value?w.value.split(" "):"")),{focus:$,blur:D,handleConfirm:E}=v(M,w,g);function I(e){e&&k.value&&c((()=>{var e;R.value=null==(e=M.value)?void 0:e.panelInstRef,v(R,C,g,!0)}))}async function _(...e){var n,t,l,a,u,o;const r=Reflect.get(g,"type")||"",i=null==(a=null==(l=null==(t=null==(n=M.value)?void 0:n.inputInstRef)?void 0:t.$el)?void 0:l.querySelector)?void 0:a.call(l,"input");if(r.includes("range")?null==(u=h.onConfirm)||u.call(h,...e):(await c(),i.focus(),E(i),i.blur(),null==(o=h.onConfirm)||o.call(h,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!h.updateUnchangedValue||r.includes("range"))return;const s=i.value;i.value=m(new Date,w.value),i.dispatchEvent(new InputEvent("input")),i.value=s,i.dispatchEvent(new InputEvent("input"))}return y({$datePicker:M,focus:$,blur:D}),(e,n)=>(a(),u(o(f),r({ref_key:"datePickerRef",ref:M},e.$attrs,{"onUpdate:show":I,onConfirm:_}),i({_:2},[s(e.$slots,((n,t)=>({name:t,fn:d((()=>[p(e.$slots,t)]))})))]),1040))}});export{y as default};
@@ -7846,7 +7846,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
7846
7846
  onKeydown: (event: KeyboardEvent) => Promise<void>;
7847
7847
  clearSpan: (uuid: string) => void;
7848
7848
  exposeEvent: {
7849
- validate(path?: string | ((field: import("@formily/core").Field<any, any, any, any>) => boolean), { force }?: {
7849
+ validate(path?: string, { force }?: {
7850
7850
  force?: boolean | undefined;
7851
7851
  }): Promise<void>;
7852
7852
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -14236,7 +14236,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
14236
14236
  onKeydown: (event: KeyboardEvent) => Promise<void>;
14237
14237
  clearSpan: (uuid: string) => void;
14238
14238
  exposeEvent: {
14239
- validate(path?: string | ((field: import("@formily/core").Field<any, any, any, any>) => boolean), { force }?: {
14239
+ validate(path?: string, { force }?: {
14240
14240
  force?: boolean | undefined;
14241
14241
  }): Promise<void>;
14242
14242
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -7848,7 +7848,7 @@ declare const _default: import("vue").DefineComponent<{
7848
7848
  onKeydown: (event: KeyboardEvent) => Promise<void>;
7849
7849
  clearSpan: (uuid: string) => void;
7850
7850
  exposeEvent: {
7851
- validate(path?: string | ((field: import("../../../../es/components/form-render").Field<any, any, any, any>) => boolean), { force }?: {
7851
+ validate(path?: string, { force }?: {
7852
7852
  force?: boolean | undefined;
7853
7853
  }): Promise<void>;
7854
7854
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -14238,7 +14238,7 @@ declare const _default: import("vue").DefineComponent<{
14238
14238
  onKeydown: (event: KeyboardEvent) => Promise<void>;
14239
14239
  clearSpan: (uuid: string) => void;
14240
14240
  exposeEvent: {
14241
- validate(path?: string | ((field: import("../../../../es/components/form-render").Field<any, any, any, any>) => boolean), { force }?: {
14241
+ validate(path?: string, { force }?: {
14242
14242
  force?: boolean | undefined;
14243
14243
  }): Promise<void>;
14244
14244
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -576,7 +576,7 @@ declare const _default: import("vue").DefineComponent<{}, {
576
576
  onKeydown: (event: KeyboardEvent) => Promise<void>;
577
577
  clearSpan: (uuid: string) => void;
578
578
  exposeEvent: {
579
- validate(path?: string | ((field: import("../../../../../es/components/form-render").Field<any, any, any, any>) => boolean), { force }?: {
579
+ validate(path?: string, { force }?: {
580
580
  force?: boolean | undefined;
581
581
  }): Promise<void>;
582
582
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -5951,7 +5951,7 @@ declare const _default: import("vue").DefineComponent<{
5951
5951
  onKeydown: (event: KeyboardEvent) => Promise<void>;
5952
5952
  clearSpan: (uuid: string) => void;
5953
5953
  exposeEvent: {
5954
- validate(path?: string | ((field: import("../../../../../es/components/form-render").Field<any, any, any, any>) => boolean), { force }?: {
5954
+ validate(path?: string, { force }?: {
5955
5955
  force?: boolean | undefined;
5956
5956
  }): Promise<void>;
5957
5957
  getFormValues(needCombineExtendKey?: boolean): any;
@@ -563,7 +563,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
563
563
  onKeydown: (event: KeyboardEvent) => Promise<void>;
564
564
  clearSpan: (uuid: string) => void;
565
565
  exposeEvent: {
566
- validate(path?: string | ((field: import("@formily/core/esm/models/Field").Field<any, any, any, any>) => boolean), { force }?: {
566
+ validate(path?: string, { force }?: {
567
567
  force?: boolean | undefined;
568
568
  }): Promise<void>;
569
569
  getFormValues(needCombineExtendKey?: boolean): any;