cnhis-design-vue 3.2.9-beta.9 → 3.2.9-release.4

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 (111) hide show
  1. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  2. package/es/components/base-search/index.d.ts +2 -0
  3. package/es/components/base-search/src/index.vue.d.ts +2 -0
  4. package/es/components/button-print/index.d.ts +30 -0
  5. package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
  6. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  7. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
  8. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  9. package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
  10. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  11. package/es/components/button-print/src/utils/print.d.ts +6 -5
  12. package/es/components/button-print/src/utils/print.js +1 -1
  13. package/es/components/classification/index.d.ts +87 -0
  14. package/es/components/classification/src/components/search-filter/index.vue.d.ts +87 -0
  15. package/es/components/classification/src/components/set-classification/index.vue.d.ts +87 -0
  16. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  17. package/es/components/classification/src/index.vue.d.ts +87 -0
  18. package/es/components/date-picker/index.d.ts +29 -0
  19. package/es/components/date-picker/src/DatePicker.vue.d.ts +30 -1
  20. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  23. package/es/components/field-set/index.d.ts +8 -1
  24. package/es/components/field-set/src/FieldColor.vue.d.ts +90 -7
  25. package/es/components/field-set/src/FieldColor.vue2.js +1 -1
  26. package/es/components/field-set/src/FieldFilter.vue.d.ts +32 -7
  27. package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
  28. package/es/components/field-set/src/FieldSet.vue.d.ts +74 -31
  29. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  30. package/es/components/field-set/src/Index.vue.d.ts +8 -1
  31. package/es/components/field-set/src/Index.vue2.js +1 -1
  32. package/es/components/field-set/src/TableStyle.vue2.js +1 -1
  33. package/es/components/field-set/src/components/condition.vue.d.ts +29 -0
  34. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +58 -0
  35. package/es/components/field-set/src/components/edit-filter.vue.d.ts +29 -0
  36. package/es/components/field-set/src/components/table-row.vue.d.ts +29 -2
  37. package/es/components/field-set/src/components/table-row.vue2.js +1 -1
  38. package/es/components/field-set/src/types/index.d.ts +4 -3
  39. package/es/components/field-set/src/utils/index.js +1 -1
  40. package/es/components/field-set/style/index.css +1 -1
  41. package/es/components/form-render/src/components/renderer/select.d.ts +2 -1
  42. package/es/components/form-render/src/components/renderer/select.js +1 -1
  43. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  44. package/es/components/iho-chat/index.d.ts +316 -6
  45. package/es/components/iho-chat/src/Index.vue.d.ts +316 -6
  46. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  47. package/es/components/iho-chat/src/api/index.js +1 -1
  48. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +5 -0
  49. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  50. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +121 -1
  51. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  52. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +6 -0
  53. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  54. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +160 -2
  55. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +122 -0
  56. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  57. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +29 -0
  58. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  59. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +6 -1
  60. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  61. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  62. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +5 -0
  63. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  64. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +1 -3
  65. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  66. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  67. package/es/components/iho-chat/src/constants/index.js +1 -1
  68. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
  69. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  70. package/es/components/iho-chat/src/hooks/useState.d.ts +6 -0
  71. package/es/components/iho-chat/src/hooks/useState.js +1 -1
  72. package/es/components/iho-chat/src/types/index.d.ts +3 -1
  73. package/es/components/iho-chat/src/types/index.js +1 -1
  74. package/es/components/iho-chat/src/utils/chatSock.js +1 -1
  75. package/es/components/iho-chat/style/index.css +1 -1
  76. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +29 -0
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +29 -0
  78. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -1
  79. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.d.ts +2 -0
  80. package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.js +1 -0
  81. package/es/components/iho-table/src/types/index.d.ts +3 -0
  82. package/es/components/iho-table/style/index.css +1 -1
  83. package/es/components/index.css +1 -1
  84. package/es/components/quick-search/index.d.ts +3 -0
  85. package/es/components/quick-search/src/index.vue.d.ts +3 -0
  86. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  87. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +29 -0
  88. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +29 -0
  89. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +29 -0
  90. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +29 -0
  91. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +58 -0
  92. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +29 -0
  93. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +29 -0
  94. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +58 -0
  95. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +58 -0
  96. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +29 -0
  97. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +29 -0
  98. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +29 -0
  99. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +29 -0
  100. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +116 -0
  101. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +116 -0
  102. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
  103. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  104. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  105. package/es/components/table-filter/src/types/index.d.ts +2 -0
  106. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +1 -1
  107. package/es/env.d.ts +25 -25
  108. package/es/shared/package.json.js +1 -1
  109. package/es/shared/utils/index.d.ts +1 -0
  110. package/es/shared/utils/index.js +1 -1
  111. package/package.json +76 -76
@@ -208,6 +208,14 @@ declare const DateInner: import("vue").DefineComponent<{
208
208
  type: import("vue").PropType<string | false | HTMLElement>;
209
209
  default: string;
210
210
  };
211
+ holidays: {
212
+ type: import("vue").PropType<Date[]>;
213
+ default: () => never[];
214
+ };
215
+ type: {
216
+ type: StringConstructor;
217
+ default: string;
218
+ };
211
219
  }, {
212
220
  attrs: {
213
221
  [x: string]: unknown;
@@ -232,6 +240,14 @@ declare const DateInner: import("vue").DefineComponent<{
232
240
  type: import("vue").PropType<string | false | HTMLElement>;
233
241
  default: string;
234
242
  };
243
+ holidays: {
244
+ type: import("vue").PropType<Date[]>;
245
+ default: () => never[];
246
+ };
247
+ type: {
248
+ type: StringConstructor;
249
+ default: string;
250
+ };
235
251
  }>> & {
236
252
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
237
253
  }>>;
@@ -248,6 +264,9 @@ declare const DateInner: import("vue").DefineComponent<{
248
264
  blur: () => any;
249
265
  handleConfirm: (target: HTMLInputElement) => void;
250
266
  onUpdateShow: (show: boolean) => Promise<void>;
267
+ watchers: import("../../../../../../shared/types").AnyFn[];
268
+ stopWatcher: () => void;
269
+ setHoliday: (show: boolean) => Promise<void>;
251
270
  onConfirm: (...args: any[]) => Promise<void>;
252
271
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
253
272
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -272,11 +291,21 @@ declare const DateInner: import("vue").DefineComponent<{
272
291
  type: import("vue").PropType<string | false | HTMLElement>;
273
292
  default: string;
274
293
  };
294
+ holidays: {
295
+ type: import("vue").PropType<Date[]>;
296
+ default: () => never[];
297
+ };
298
+ type: {
299
+ type: StringConstructor;
300
+ default: string;
301
+ };
275
302
  }>> & {
276
303
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
277
304
  }, {
305
+ type: string;
278
306
  updateUnchangedValue: boolean;
279
307
  to: string | false | HTMLElement;
308
+ holidays: Date[];
280
309
  }>>;
281
310
  DateQuickBtn: import("vue").DefineComponent<{
282
311
  componentCfg: {
@@ -469,6 +498,14 @@ declare const DateOut: import("vue").DefineComponent<{
469
498
  type: import("vue").PropType<string | false | HTMLElement>;
470
499
  default: string;
471
500
  };
501
+ holidays: {
502
+ type: import("vue").PropType<Date[]>;
503
+ default: () => never[];
504
+ };
505
+ type: {
506
+ type: StringConstructor;
507
+ default: string;
508
+ };
472
509
  }, {
473
510
  attrs: {
474
511
  [x: string]: unknown;
@@ -493,6 +530,14 @@ declare const DateOut: import("vue").DefineComponent<{
493
530
  type: import("vue").PropType<string | false | HTMLElement>;
494
531
  default: string;
495
532
  };
533
+ holidays: {
534
+ type: import("vue").PropType<Date[]>;
535
+ default: () => never[];
536
+ };
537
+ type: {
538
+ type: StringConstructor;
539
+ default: string;
540
+ };
496
541
  }>> & {
497
542
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
498
543
  }>>;
@@ -509,6 +554,9 @@ declare const DateOut: import("vue").DefineComponent<{
509
554
  blur: () => any;
510
555
  handleConfirm: (target: HTMLInputElement) => void;
511
556
  onUpdateShow: (show: boolean) => Promise<void>;
557
+ watchers: import("../../../../../../shared/types").AnyFn[];
558
+ stopWatcher: () => void;
559
+ setHoliday: (show: boolean) => Promise<void>;
512
560
  onConfirm: (...args: any[]) => Promise<void>;
513
561
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
514
562
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -533,11 +581,21 @@ declare const DateOut: import("vue").DefineComponent<{
533
581
  type: import("vue").PropType<string | false | HTMLElement>;
534
582
  default: string;
535
583
  };
584
+ holidays: {
585
+ type: import("vue").PropType<Date[]>;
586
+ default: () => never[];
587
+ };
588
+ type: {
589
+ type: StringConstructor;
590
+ default: string;
591
+ };
536
592
  }>> & {
537
593
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
538
594
  }, {
595
+ type: string;
539
596
  updateUnchangedValue: boolean;
540
597
  to: string | false | HTMLElement;
598
+ holidays: Date[];
541
599
  }>>;
542
600
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
543
601
  componentCfg: {
@@ -692,6 +750,14 @@ declare const DateRangeInner: import("vue").DefineComponent<{
692
750
  type: import("vue").PropType<string | false | HTMLElement>;
693
751
  default: string;
694
752
  };
753
+ holidays: {
754
+ type: import("vue").PropType<Date[]>;
755
+ default: () => never[];
756
+ };
757
+ type: {
758
+ type: StringConstructor;
759
+ default: string;
760
+ };
695
761
  }, {
696
762
  attrs: {
697
763
  [x: string]: unknown;
@@ -716,6 +782,14 @@ declare const DateRangeInner: import("vue").DefineComponent<{
716
782
  type: import("vue").PropType<string | false | HTMLElement>;
717
783
  default: string;
718
784
  };
785
+ holidays: {
786
+ type: import("vue").PropType<Date[]>;
787
+ default: () => never[];
788
+ };
789
+ type: {
790
+ type: StringConstructor;
791
+ default: string;
792
+ };
719
793
  }>> & {
720
794
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
721
795
  }>>;
@@ -732,6 +806,9 @@ declare const DateRangeInner: import("vue").DefineComponent<{
732
806
  blur: () => any;
733
807
  handleConfirm: (target: HTMLInputElement) => void;
734
808
  onUpdateShow: (show: boolean) => Promise<void>;
809
+ watchers: import("../../../../../../shared/types").AnyFn[];
810
+ stopWatcher: () => void;
811
+ setHoliday: (show: boolean) => Promise<void>;
735
812
  onConfirm: (...args: any[]) => Promise<void>;
736
813
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
737
814
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -756,11 +833,21 @@ declare const DateRangeInner: import("vue").DefineComponent<{
756
833
  type: import("vue").PropType<string | false | HTMLElement>;
757
834
  default: string;
758
835
  };
836
+ holidays: {
837
+ type: import("vue").PropType<Date[]>;
838
+ default: () => never[];
839
+ };
840
+ type: {
841
+ type: StringConstructor;
842
+ default: string;
843
+ };
759
844
  }>> & {
760
845
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
761
846
  }, {
847
+ type: string;
762
848
  updateUnchangedValue: boolean;
763
849
  to: string | false | HTMLElement;
850
+ holidays: Date[];
764
851
  }>>;
765
852
  DateQuickBtn: import("vue").DefineComponent<{
766
853
  componentCfg: {
@@ -960,6 +1047,14 @@ declare const DateRangeOut: import("vue").DefineComponent<{
960
1047
  type: import("vue").PropType<string | false | HTMLElement>;
961
1048
  default: string;
962
1049
  };
1050
+ holidays: {
1051
+ type: import("vue").PropType<Date[]>;
1052
+ default: () => never[];
1053
+ };
1054
+ type: {
1055
+ type: StringConstructor;
1056
+ default: string;
1057
+ };
963
1058
  }, {
964
1059
  attrs: {
965
1060
  [x: string]: unknown;
@@ -984,6 +1079,14 @@ declare const DateRangeOut: import("vue").DefineComponent<{
984
1079
  type: import("vue").PropType<string | false | HTMLElement>;
985
1080
  default: string;
986
1081
  };
1082
+ holidays: {
1083
+ type: import("vue").PropType<Date[]>;
1084
+ default: () => never[];
1085
+ };
1086
+ type: {
1087
+ type: StringConstructor;
1088
+ default: string;
1089
+ };
987
1090
  }>> & {
988
1091
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
989
1092
  }>>;
@@ -1000,6 +1103,9 @@ declare const DateRangeOut: import("vue").DefineComponent<{
1000
1103
  blur: () => any;
1001
1104
  handleConfirm: (target: HTMLInputElement) => void;
1002
1105
  onUpdateShow: (show: boolean) => Promise<void>;
1106
+ watchers: import("../../../../../../shared/types").AnyFn[];
1107
+ stopWatcher: () => void;
1108
+ setHoliday: (show: boolean) => Promise<void>;
1003
1109
  onConfirm: (...args: any[]) => Promise<void>;
1004
1110
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1005
1111
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -1024,11 +1130,21 @@ declare const DateRangeOut: import("vue").DefineComponent<{
1024
1130
  type: import("vue").PropType<string | false | HTMLElement>;
1025
1131
  default: string;
1026
1132
  };
1133
+ holidays: {
1134
+ type: import("vue").PropType<Date[]>;
1135
+ default: () => never[];
1136
+ };
1137
+ type: {
1138
+ type: StringConstructor;
1139
+ default: string;
1140
+ };
1027
1141
  }>> & {
1028
1142
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1029
1143
  }, {
1144
+ type: string;
1030
1145
  updateUnchangedValue: boolean;
1031
1146
  to: string | false | HTMLElement;
1147
+ holidays: Date[];
1032
1148
  }>>;
1033
1149
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1034
1150
  type: {
@@ -524,6 +524,14 @@ export declare const WidgetCfgMaps: Map<string, {
524
524
  type: import("vue").PropType<string | false | HTMLElement>;
525
525
  default: string;
526
526
  };
527
+ holidays: {
528
+ type: import("vue").PropType<Date[]>;
529
+ default: () => never[];
530
+ };
531
+ type: {
532
+ type: StringConstructor;
533
+ default: string;
534
+ };
527
535
  }, {
528
536
  attrs: {
529
537
  [x: string]: unknown;
@@ -548,6 +556,14 @@ export declare const WidgetCfgMaps: Map<string, {
548
556
  type: import("vue").PropType<string | false | HTMLElement>;
549
557
  default: string;
550
558
  };
559
+ holidays: {
560
+ type: import("vue").PropType<Date[]>;
561
+ default: () => never[];
562
+ };
563
+ type: {
564
+ type: StringConstructor;
565
+ default: string;
566
+ };
551
567
  }>> & {
552
568
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
553
569
  }>>;
@@ -564,6 +580,9 @@ export declare const WidgetCfgMaps: Map<string, {
564
580
  blur: () => any;
565
581
  handleConfirm: (target: HTMLInputElement) => void;
566
582
  onUpdateShow: (show: boolean) => Promise<void>;
583
+ watchers: import("../../../../../shared/types").AnyFn[];
584
+ stopWatcher: () => void;
585
+ setHoliday: (show: boolean) => Promise<void>;
567
586
  onConfirm: (...args: any[]) => Promise<void>;
568
587
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
569
588
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -588,11 +607,21 @@ export declare const WidgetCfgMaps: Map<string, {
588
607
  type: import("vue").PropType<string | false | HTMLElement>;
589
608
  default: string;
590
609
  };
610
+ holidays: {
611
+ type: import("vue").PropType<Date[]>;
612
+ default: () => never[];
613
+ };
614
+ type: {
615
+ type: StringConstructor;
616
+ default: string;
617
+ };
591
618
  }>> & {
592
619
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
593
620
  }, {
621
+ type: string;
594
622
  updateUnchangedValue: boolean;
595
623
  to: string | false | HTMLElement;
624
+ holidays: Date[];
596
625
  }>>;
597
626
  DateQuickBtn: import("vue").DefineComponent<{
598
627
  componentCfg: {
@@ -799,6 +828,14 @@ export declare const WidgetCfgMaps: Map<string, {
799
828
  type: import("vue").PropType<string | false | HTMLElement>;
800
829
  default: string;
801
830
  };
831
+ holidays: {
832
+ type: import("vue").PropType<Date[]>;
833
+ default: () => never[];
834
+ };
835
+ type: {
836
+ type: StringConstructor;
837
+ default: string;
838
+ };
802
839
  }, {
803
840
  attrs: {
804
841
  [x: string]: unknown;
@@ -823,6 +860,14 @@ export declare const WidgetCfgMaps: Map<string, {
823
860
  type: import("vue").PropType<string | false | HTMLElement>;
824
861
  default: string;
825
862
  };
863
+ holidays: {
864
+ type: import("vue").PropType<Date[]>;
865
+ default: () => never[];
866
+ };
867
+ type: {
868
+ type: StringConstructor;
869
+ default: string;
870
+ };
826
871
  }>> & {
827
872
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
828
873
  }>>;
@@ -839,6 +884,9 @@ export declare const WidgetCfgMaps: Map<string, {
839
884
  blur: () => any;
840
885
  handleConfirm: (target: HTMLInputElement) => void;
841
886
  onUpdateShow: (show: boolean) => Promise<void>;
887
+ watchers: import("../../../../../shared/types").AnyFn[];
888
+ stopWatcher: () => void;
889
+ setHoliday: (show: boolean) => Promise<void>;
842
890
  onConfirm: (...args: any[]) => Promise<void>;
843
891
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
844
892
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -863,11 +911,21 @@ export declare const WidgetCfgMaps: Map<string, {
863
911
  type: import("vue").PropType<string | false | HTMLElement>;
864
912
  default: string;
865
913
  };
914
+ holidays: {
915
+ type: import("vue").PropType<Date[]>;
916
+ default: () => never[];
917
+ };
918
+ type: {
919
+ type: StringConstructor;
920
+ default: string;
921
+ };
866
922
  }>> & {
867
923
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
868
924
  }, {
925
+ type: string;
869
926
  updateUnchangedValue: boolean;
870
927
  to: string | false | HTMLElement;
928
+ holidays: Date[];
871
929
  }>>;
872
930
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
873
931
  componentCfg: {
@@ -1036,6 +1094,14 @@ export declare const WidgetCfgMaps: Map<string, {
1036
1094
  type: import("vue").PropType<string | false | HTMLElement>;
1037
1095
  default: string;
1038
1096
  };
1097
+ holidays: {
1098
+ type: import("vue").PropType<Date[]>;
1099
+ default: () => never[];
1100
+ };
1101
+ type: {
1102
+ type: StringConstructor;
1103
+ default: string;
1104
+ };
1039
1105
  }, {
1040
1106
  attrs: {
1041
1107
  [x: string]: unknown;
@@ -1060,6 +1126,14 @@ export declare const WidgetCfgMaps: Map<string, {
1060
1126
  type: import("vue").PropType<string | false | HTMLElement>;
1061
1127
  default: string;
1062
1128
  };
1129
+ holidays: {
1130
+ type: import("vue").PropType<Date[]>;
1131
+ default: () => never[];
1132
+ };
1133
+ type: {
1134
+ type: StringConstructor;
1135
+ default: string;
1136
+ };
1063
1137
  }>> & {
1064
1138
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1065
1139
  }>>;
@@ -1076,6 +1150,9 @@ export declare const WidgetCfgMaps: Map<string, {
1076
1150
  blur: () => any;
1077
1151
  handleConfirm: (target: HTMLInputElement) => void;
1078
1152
  onUpdateShow: (show: boolean) => Promise<void>;
1153
+ watchers: import("../../../../../shared/types").AnyFn[];
1154
+ stopWatcher: () => void;
1155
+ setHoliday: (show: boolean) => Promise<void>;
1079
1156
  onConfirm: (...args: any[]) => Promise<void>;
1080
1157
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1081
1158
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -1100,11 +1177,21 @@ export declare const WidgetCfgMaps: Map<string, {
1100
1177
  type: import("vue").PropType<string | false | HTMLElement>;
1101
1178
  default: string;
1102
1179
  };
1180
+ holidays: {
1181
+ type: import("vue").PropType<Date[]>;
1182
+ default: () => never[];
1183
+ };
1184
+ type: {
1185
+ type: StringConstructor;
1186
+ default: string;
1187
+ };
1103
1188
  }>> & {
1104
1189
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1105
1190
  }, {
1191
+ type: string;
1106
1192
  updateUnchangedValue: boolean;
1107
1193
  to: string | false | HTMLElement;
1194
+ holidays: Date[];
1108
1195
  }>>;
1109
1196
  DateQuickBtn: import("vue").DefineComponent<{
1110
1197
  componentCfg: {
@@ -1318,6 +1405,14 @@ export declare const WidgetCfgMaps: Map<string, {
1318
1405
  type: import("vue").PropType<string | false | HTMLElement>;
1319
1406
  default: string;
1320
1407
  };
1408
+ holidays: {
1409
+ type: import("vue").PropType<Date[]>;
1410
+ default: () => never[];
1411
+ };
1412
+ type: {
1413
+ type: StringConstructor;
1414
+ default: string;
1415
+ };
1321
1416
  }, {
1322
1417
  attrs: {
1323
1418
  [x: string]: unknown;
@@ -1342,6 +1437,14 @@ export declare const WidgetCfgMaps: Map<string, {
1342
1437
  type: import("vue").PropType<string | false | HTMLElement>;
1343
1438
  default: string;
1344
1439
  };
1440
+ holidays: {
1441
+ type: import("vue").PropType<Date[]>;
1442
+ default: () => never[];
1443
+ };
1444
+ type: {
1445
+ type: StringConstructor;
1446
+ default: string;
1447
+ };
1345
1448
  }>> & {
1346
1449
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1347
1450
  }>>;
@@ -1358,6 +1461,9 @@ export declare const WidgetCfgMaps: Map<string, {
1358
1461
  blur: () => any;
1359
1462
  handleConfirm: (target: HTMLInputElement) => void;
1360
1463
  onUpdateShow: (show: boolean) => Promise<void>;
1464
+ watchers: import("../../../../../shared/types").AnyFn[];
1465
+ stopWatcher: () => void;
1466
+ setHoliday: (show: boolean) => Promise<void>;
1361
1467
  onConfirm: (...args: any[]) => Promise<void>;
1362
1468
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1363
1469
  setShortcutValue: (type: "month" | "week") => Promise<void>;
@@ -1382,11 +1488,21 @@ export declare const WidgetCfgMaps: Map<string, {
1382
1488
  type: import("vue").PropType<string | false | HTMLElement>;
1383
1489
  default: string;
1384
1490
  };
1491
+ holidays: {
1492
+ type: import("vue").PropType<Date[]>;
1493
+ default: () => never[];
1494
+ };
1495
+ type: {
1496
+ type: StringConstructor;
1497
+ default: string;
1498
+ };
1385
1499
  }>> & {
1386
1500
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1387
1501
  }, {
1502
+ type: string;
1388
1503
  updateUnchangedValue: boolean;
1389
1504
  to: string | false | HTMLElement;
1505
+ holidays: Date[];
1390
1506
  }>>;
1391
1507
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1392
1508
  type: {
@@ -40,6 +40,7 @@ export default function useAdvanced(): {
40
40
  placeholder: string | undefined;
41
41
  advanceColWidth: number | null | undefined;
42
42
  accurateSearch: any;
43
+ extendKey: string;
43
44
  }[];
44
45
  getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
45
46
  transformClassifyChild: (conObjList: any, searchFieldList: any[]) => any;
@@ -1 +1 @@
1
- import{WidgetOptionEnums as e,WidgetTypeEnums as i,selectModeEnums as t,WidgetValEnums as n}from"../types/enums.js";import{isString as l}from"lodash-es";import{formatDateRangeInfo as a,presetValToTimestamp as o}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as r}from"../components/render-widget/enums.js";const u={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function E(){return{transformData:function(n,l){return n.map((n=>{var a,o,r;const{optionInfo:E={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1,showMode:"DROPDOWN"},type:s,defaultValue:T,optionType:c,filterExplicit:p,rangeFilter:d,componentProps:m}=n,f={},v={title:(L=n).title,alias:L.customTitle,isShowSearch:L.isShowSearch?1:0,filterExplicit:L.filterExplicit?1:0,explicitRequired:L.explicitRequired?1:0,advanceOptionSetting:L.optionType?u[L.optionType]:"",placeholder:L.remark,advanceColWidth:L.width,accurateSearch:L.accurateSearch?L.accurateSearch:{}};var L;let S,g,C=s;p?(S=s!==i.SELECT&&s!==i.SELECTTREE||c!==e.MULTIPLE?null==(a=null==T?void 0:T.valueList)?void 0:a[0]:null==T?void 0:T.valueList,g=null==T?void 0:T.unit,s===i.LABEL&&(C="SELECTLABEL",S=null==T?void 0:T.valueList),s===i.DATE&&(C="DATE_OUT"),s===i.DATE_TIME&&(C="DATETIME_OUT"),s===i.SELECT&&(null==E?void 0:E.manualMapping)&&(null==E?void 0:E.showMode)==t.TILE&&(C="CHECKBOX_GROUP")):s===i.SELECT&&(null==E?void 0:E.list)&&(null==E?void 0:E.list.length)<10&&(C="CHECKBOX_GROUP"),d&&(s===i.INPUT_NUMBER&&(C="INPUTNUMBER_RANGE"),s===i.DATE&&(C=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===i.DATE_TIME&&(C=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===i.SELECT&&!1===(null==E?void 0:E.manualMapping)&&(C=i.SELECTDYNAMIC);const h={isRender:!0,widgetType:C,originType:s,valueList:s===i.SELECTTREE?null==E?void 0:E.list:null==(o=null==E?void 0:E.list)?void 0:o.map((({name:e,value:i})=>({value:i,label:e}))),defaultValue:S,defValueUnit:g,optionSetting:c,multiple:c===e.MULTIPLE||C===i.SELECTLABEL,manualMapping:null==E?void 0:E.manualMapping,showWholeOption:null==E?void 0:E.showWholeOption,dynamicOptionInfo:null==E?void 0:E.dynamicOptionInfo,classifyStr:null==T?void 0:T.classifyStr,linkageFieldKeys:null!=(r=null==T?void 0:T.linkageFieldKeys)?r:[]};return{...v,fieldType:n.dataType,columnName:n.name,settingObj:f,setting:JSON.stringify(f),widgetCfg:h,rangeFilter:d,componentProps:m,unit:null!=g?g:"",isAccurateSearchVal:!1,_extendData:null!=l?l:{}}}))},getCacheDef:function(e,t){const{widgetType:n,widgetCfg:l}=e;return[i.SELECT,i.CHECKBOX_GROUP,i.SELECTDYNAMIC].includes(n)&&l.multiple?t:t[0]},transformClassifyChild:function(e,t){const n={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key;n[l]="";const u=t.find((e=>e.name===l));if(u){if(e.value){const t=Array.isArray(e.value)&&u.type===i.SELECT?e.value:e.value.toString();n[l]=t}if(e.unit&&e.unit!==r.CUSTOM){let t="";u.type===i.DATE&&(t=u.rangeFilter?a(e.unit,"YYYY-MM-DD",u.optionType):o(e.unit,"YYYY-MM-DD")),u.type===i.DATE_TIME&&(t=u.rangeFilter?a(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):o(e.unit,"YYYY-MM-DD HH:mm:ss")),n[l]=t}}})),n},transformParams:function(e){const t={},a=[i.SELECT,i.SELECTDYNAMIC,i.CHECKBOX_GROUP,i.SELECTTREE];return e&&e.length>0&&e.forEach((e=>{let i="";const o=e.field_key;e.value&&(i=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>l(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(i)&&i.length>0&&i.includes(n.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(t[e.accurateSearchKey]=e.isAccurateSearch?1:0),t[o]=i)})),t}}}export{E as default};
1
+ import{WidgetOptionEnums as e,WidgetTypeEnums as t,selectModeEnums as n,WidgetValEnums as i}from"../types/enums.js";import{isString as l}from"lodash-es";import{formatDateRangeInfo as a,presetValToTimestamp as o}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as u}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function E(){return{transformData:function(i,l){return i.map((i=>{var a,o,u;const{optionInfo:E={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1,showMode:"DROPDOWN"},type:s,defaultValue:c,optionType:d,filterExplicit:p,rangeFilter:T,componentProps:m}=i,f={},y=function(e){var t;return{title:e.title,alias:e.customTitle,isShowSearch:e.isShowSearch?1:0,filterExplicit:e.filterExplicit?1:0,explicitRequired:e.explicitRequired?1:0,advanceOptionSetting:e.optionType?r[e.optionType]:"",placeholder:e.remark,advanceColWidth:e.width,accurateSearch:e.accurateSearch?e.accurateSearch:{},extendKey:null!=(t=e.extendKey)?t:""}}(i);let v,S,L=s;p?(v=s!==t.SELECT&&s!==t.SELECTTREE||d!==e.MULTIPLE?null==(a=null==c?void 0:c.valueList)?void 0:a[0]:null==c?void 0:c.valueList,S=null==c?void 0:c.unit,s===t.LABEL&&(L="SELECTLABEL",v=null==c?void 0:c.valueList),s===t.DATE&&(L="DATE_OUT"),s===t.DATE_TIME&&(L="DATETIME_OUT"),s===t.SELECT&&(null==E?void 0:E.manualMapping)&&(null==E?void 0:E.showMode)==n.TILE&&(L="CHECKBOX_GROUP")):s===t.SELECT&&(null==E?void 0:E.list)&&(null==E?void 0:E.list.length)<10&&(L="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(L="INPUTNUMBER_RANGE"),s===t.DATE&&(L=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(L=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==E?void 0:E.manualMapping)&&(L=t.SELECTDYNAMIC);const g={isRender:!0,widgetType:L,originType:s,valueList:s===t.SELECTTREE?null==E?void 0:E.list:null==(o=null==E?void 0:E.list)?void 0:o.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:v,defValueUnit:S,optionSetting:d,multiple:d===e.MULTIPLE||L===t.SELECTLABEL,manualMapping:null==E?void 0:E.manualMapping,showWholeOption:null==E?void 0:E.showWholeOption,dynamicOptionInfo:null==E?void 0:E.dynamicOptionInfo,classifyStr:null==c?void 0:c.classifyStr,linkageFieldKeys:null!=(u=null==c?void 0:c.linkageFieldKeys)?u:[]};return{...y,fieldType:i.dataType,columnName:i.name,settingObj:f,setting:JSON.stringify(f),widgetCfg:g,rangeFilter:T,componentProps:m,unit:null!=S?S:"",isAccurateSearchVal:!1,_extendData:null!=l?l:{}}}))},getCacheDef:function(e,n){const{widgetType:i,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(i)&&l.multiple?n:n[0]},transformClassifyChild:function(e,n){const i={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key;i[l]="";const r=n.find((e=>e.name===l));if(r){if(e.value){const n=Array.isArray(e.value)&&r.type===t.SELECT?e.value:e.value.toString();i[l]=n}if(e.unit&&e.unit!==u.CUSTOM){let n="";r.type===t.DATE&&(n=r.rangeFilter?a(e.unit,"YYYY-MM-DD",r.optionType):o(e.unit,"YYYY-MM-DD")),r.type===t.DATE_TIME&&(n=r.rangeFilter?a(e.unit,"YYYY-MM-DD HH:mm:ss",r.optionType):o(e.unit,"YYYY-MM-DD HH:mm:ss")),i[l]=n}}})),i},transformParams:function(e){const n={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP,t.SELECTTREE];return e&&e.length>0&&(new Set(e.map((e=>e.extendKey))),e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>l(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(n[e.accurateSearchKey]=e.isAccurateSearch?1:0),(null==e?void 0:e.extendKey)?(n[e.extendKey]||(n[e.extendKey]={}),n[e.extendKey][o]=t):n[o]=t)}))),n}}}export{E as default};
@@ -1 +1 @@
1
- import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{WidgetTypeEnums as t,WidgetOptionEnums as n}from"../types/enums.js";const r=[t.CHECKBOX_GROUP,t.DATE,t.DATE_TIME,t.DATE_RANGE_INNER,t.DATETIME_RANGE_INNER,t.LABEL];function i(){function i(e){var t;return null==(t=e.widgetCfg)?void 0:t.isRender}async function u(t){const{widgetType:r,defaultValue:i,defValueUnit:u,optionSetting:a,multiple:c}=t.widgetCfg||{},l=e.get(r);let o;if(l){const{setDefaultValue:e}=l;e&&(o=await e(i,u,{optSetting:null!=a?a:n.ALL,multiple:c,_cfg:t}))}return o}return{isRender:i,getDefValByRenderWidget:u,initRenderWidgetCfg:async function(e){const t=i(e);if(!t)return t;const{widgetType:n}=e.widgetCfg||{};return e._frontId||(e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))),e.isRender=t,e.widgetType=n,e.con="EQ",r.includes(n)&&(e._isBlock=!0),1==e.filterExplicit&&(e.value=await u(e)),t},getRenderSearchConObj:function(e){if(!i(e))return null;const{columnName:t,con:n,value:r,widgetType:u,unit:a=""}=e,c=Array.isArray(r)?r:r?[r]:[],l={widgetType:u,field_key:t,con:n,value:c.length>0?c:null,unit:a};return e.accurateSearch.switchEnable&&(l.isAccurateSearch=e.isAccurateSearchVal,l.accurateSearchKey=e.accurateSearch.searchKey),l},getDefValByRenderConObj:function(e,n){if(!i(n))return null;const{widgetType:r,multiple:u}=n.widgetCfg||{},{value:a}=e;return r!==t.SELECT&&r!==t.CHECKBOX_GROUP||!u?Array.isArray(a)?a[0]:a:Array.isArray(a)?a:a?[a]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:t,defValueUnit:n}=e.widgetCfg||{};return!(!t&&!n)},resetRenderWidgetValue:function(e){const t=i(e);return t?(e.value=null,e.unit="",t):t}}}export{i as default};
1
+ import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{WidgetTypeEnums as t,WidgetOptionEnums as n}from"../types/enums.js";const r=[t.CHECKBOX_GROUP,t.DATE,t.DATE_TIME,t.DATE_RANGE_INNER,t.DATETIME_RANGE_INNER,t.LABEL];function i(){function i(e){var t;return null==(t=e.widgetCfg)?void 0:t.isRender}async function u(t){const{widgetType:r,defaultValue:i,defValueUnit:u,optionSetting:a,multiple:l}=t.widgetCfg||{},c=e.get(r);let d;if(c){const{setDefaultValue:e}=c;e&&(d=await e(i,u,{optSetting:null!=a?a:n.ALL,multiple:l,_cfg:t}))}return d}return{isRender:i,getDefValByRenderWidget:u,initRenderWidgetCfg:async function(e){const t=i(e);if(!t)return t;const{widgetType:n}=e.widgetCfg||{};return e._frontId||(e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))),e.isRender=t,e.widgetType=n,e.con="EQ",r.includes(n)&&(e._isBlock=!0),1==e.filterExplicit&&(e.value=await u(e)),t},getRenderSearchConObj:function(e){if(!i(e))return null;const{columnName:t,con:n,value:r,widgetType:u,unit:a=""}=e,l=Array.isArray(r)?r:r?[r]:[],c={widgetType:u,field_key:t,con:n,value:l.length>0?l:null,unit:a};return e.accurateSearch.switchEnable&&(c.isAccurateSearch=e.isAccurateSearchVal,c.accurateSearchKey=e.accurateSearch.searchKey),(null==e?void 0:e.extendKey)&&(c.extendKey=e.extendKey),c},getDefValByRenderConObj:function(e,n){if(!i(n))return null;const{widgetType:r,multiple:u}=n.widgetCfg||{},{value:a}=e;return r!==t.SELECT&&r!==t.CHECKBOX_GROUP||!u?Array.isArray(a)?a[0]:a:Array.isArray(a)?a:a?[a]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:t,defValueUnit:n}=e.widgetCfg||{};return!(!t&&!n)},resetRenderWidgetValue:function(e){const t=i(e);return t?(e.value=null,e.unit="",t):t}}}export{i as default};
@@ -26,6 +26,7 @@ export type ISearchType = {
26
26
  alias?: string;
27
27
  accurateSearch?: any;
28
28
  isAccurateSearchVal?: boolean;
29
+ extendKey?: string;
29
30
  };
30
31
  export type IFilterItemType = {
31
32
  con: string;
@@ -144,6 +145,7 @@ export type IApiServerType = {
144
145
  keyword?: boolean;
145
146
  accurateSearch?: any;
146
147
  componentProps?: any;
148
+ extendKey?: string;
147
149
  };
148
150
  export type dynamicOptionInfoType = {
149
151
  filterKeys: string[];
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,reactive as l,onMounted as o,nextTick as i,onUnmounted as n,resolveComponent as a,openBlock as s,createElementBlock as r,createCommentVNode as c,createVNode as u,unref as d,withCtx as p,createElementVNode as f,Fragment as m,renderList as g,withDirectives as h,normalizeClass as v,toDisplayString as _,vShow as k,createTextVNode as y}from"vue";import L from"spark-md5";import C from"axios";import{useMessage as z,NIcon as x,NProgress as S,NButton as F}from"naive-ui";import{UploadProps as w,getUploadData as b,statusSet as I}from"./hooks/upload-data.js";import{UploadComputed as A}from"./hooks/upload-computed.js";import{FolderOutline as M,DocumentAttachOutline as q,Close as B}from"@vicons/ionicons5";const E={class:"c-chunk-upload-container"},U=f("p",null,"点击或将文件拖拽到这里上传",-1),$={class:"c-file-list-conatiner"},D={key:0,class:"file-list"},N={class:"c-f-item"},P={class:"c-f-item-icon"},R={class:"c-f-item-info"},j={class:"c-f-item-info-title"},T={class:"title"},G={class:"size"},J={class:"c-f-item-info-time"},K={class:"c-f-item-btn"},O={class:"upload-btn"},H=f("span",null,"上传新文件",-1);var Q=e({__name:"chunk-upload-new",props:{...w},emits:["getSumbitList","closeUpload"],setup(e,{expose:w,emit:Q}){const V=e,{UploadState:W}=b();var X=C.create({});const Y=t(null),Z=t(null),ee=l(W),te=z(),{initState:le,uploadArguments:oe,autoStart:ie,btnAttrs:ne}=A(V,ee);le();const ae=e=>{let t=new FileReader;(new Date).getTime();let l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=0;const i=1024e4;let n=Math.ceil(e.size/i),a=new L.ArrayBuffer;function s(){let n=o*i,a=n+i>=e.size?e.size:n+i;t.readAsArrayBuffer(l.call(e.file,n,a))}I(e,"md5"),e.pause(),s(),t.onload=t=>{if(a.append(t.target.result),o<n)o++,s();else{let t=a.end();re(t,e)}},t.onerror=function(){console.warn(`文件${e.name}读取出错,请检查该文件`),e.cancel()}},se=e=>{let t=(e=>{const t=(null==V?void 0:V.max_size)||"";if(!t)return!1;let l=e.size/1024<+t;return l||te.error(`附件大小超过了${(e=>{let t;return e?(t=+(+e).toFixed(2),t<1024?t+"KB":t<1048576?(t/1024).toFixed(2)+"MB":t<1073741824?(t/1048576).toFixed(2)+"GB":void 0):t})(t)}`),!l})(e);((e,t)=>{let l=!1;if(e){if(e.includes("*"))return!1;let o=t.getExtension();e.includes(o)||(te.error(`不支持${o}格式`),l=!0)}return l})(V.propsCategoryMap,e)||(()=>{var e,t;if(V.maxLength>0){let l=(null==(e=V.defaultList)?void 0:e.length)||0,o=(null==(t=ee.configList)?void 0:t.length)||0;if(V.maxLength<=l+o)return te.error(`最多只能上传${V.maxLength}个`),!0}return!1})()||t?e.ignored=!0:(e.file_upload_status="",I(e,"init"),e.crm_upload_config={...e},ee.configList.push(e),I(e,"ready"),ie.value&&(e.pause(),ae(e)))},re=async(e,t)=>{try{const l=await((e,t,l)=>{let o=ee.uploadConfig.checkFileMd5Exist;return new Promise(((i,n)=>{const a={md5:t,fileName:e,...oe.value};X.get(o,{params:a}).then((e=>{i(e.data)})).catch((e=>{I(l,"failed"),console.log("verifyUpload -> err",e)}))}))})(t.name,e,t);if("00000"==l.code){const{data:e}=l||{};if(e.presence)return I(t,"complete"),t.crm_chkuns_complete_status="complete",void(t.crm_uploade_resInfo={url:e.path,name:t.name,size:t.size})}t.uniqueIdentifier=e,I(t,"uploading"),t.resume()}catch(e){console.log(e,"chunk-upload-computeMD5Success")}},ce=()=>{},ue=(e,t,l)=>{let o=JSON.parse(l);o.success?(I(t,"merging"),((e,t)=>{new Promise(((l,o)=>{const i={...e,...oe.value};X.post(ee.uploadConfig.partFileMerge,i,{timeout:0}).then((({data:e})=>{if("00000"===e.code){if(I(t,"complete"),Y.value){let l=(null==e?void 0:e.data)||{};Y.value.fileList.forEach((e=>{e.uniqueIdentifier==t.uniqueIdentifier&&(e.crm_chkuns_complete_status="complete",e.crm_uploade_resInfo={url:l.path||l.url,name:t.name,size:t.size,...l})}))}l()}else te.error("上传失败"),l()})).catch((e=>{console.log("mergeRequest -> err",e),o()}))}))})({md5:t.uniqueIdentifier,fileName:t.name,fileChunkNum:t.chunks.length},t),o.needMerge&&I(t,"merging")):I(t,"failed")},de=()=>{var e,t;let l=(null==(t=null==(e=null==Z?void 0:Z.value)?void 0:e.$el)?void 0:t.querySelector("input"))||!1;l&&l.click()},pe=(e,t="text")=>((null==e?void 0:e.file_upload_status)||{})[t],fe=e=>["complete","failed"].includes(pe(e,"status")),me=(e,t)=>{I(t,"failed")},ge=(e,t)=>{if("complete"==t.crm_chkuns_complete_status)return 100;return parseInt(100*e+"",10)},he=()=>{var e;0!=((null==(e=ee.configList)?void 0:e.length)||0)?i((()=>{ee.configList.forEach((e=>{(e.file_upload_status||{}).status&&(I(e,"uploading"),ae(e))}))})):te.info("请选择文件")},ve=()=>{var e,t;console.log("cancelcancelcancel"),null==(t=null==(e=Y.value)?void 0:e.uploader)||t.cancel(),ee.configList=[],Q("closeUpload",!1)};return(()=>{try{console.log(V.getChunkUploadConfig),V.getChunkUploadConfig().then((e=>{console.log(e),ee.uploadConfig={...e},ee.headers={Authorization:"bearer "+ee.uploadConfig.token},(()=>{for(const e in ee.headers)X.defaults.headers.common[e]=ee.headers[e];X.defaults.withCredentials=ee.withCredentials})()}))}catch(e){console.log(e)}})(),o((()=>{i((()=>{}))})),n((()=>{})),w({cancel:ve,confirm:()=>{console.log("ininini");const{configList:e}=ee;0!==((null==e?void 0:e.length)||0)?e.filter((e=>!["complete","failed"].includes(e.file_upload_status.status))).length>0?te.info("请上传文件或者等待文件上传完成!"):((()=>{var e;let t=(null==(e=null==ee?void 0:ee.configList)?void 0:e.length)||0,l=[];t>0&&ee.configList.forEach((e=>{"complete"==e.crm_chkuns_complete_status&&l.push({size:e.size,...e.crm_uploade_resInfo})})),Q("getSumbitList",l)})(),ve()):te.info("请选择文件上传")}}),(e,t)=>{const l=a("uploader-unsupport"),o=a("uploader-drop"),i=a("uploader-file"),n=a("uploader-list"),L=a("uploader-btn"),C=a("uploader");return s(),r("div",E,[c(" 上传 "),u(C,{ref_key:"uploaderDom",ref:Y,options:ee.options,autoStart:d(ie),onFileAdded:se,onFileSuccess:ue,onFileProgress:ce,onFileError:me,class:"uploader-app"},{default:p((()=>[u(l),u(o,null,{default:p((()=>[f("div",{class:"c-drap-container dragger-btn",onClick:de},[u(d(x),{component:d(M)},null,8,["component"]),U])])),_:1}),u(n,null,{default:p((e=>[f("div",$,[e?(s(),r("ul",D,[(s(!0),r(m,null,g(e.fileList,(e=>(s(),r("li",{key:e.id},[h(u(i,{class:v("file_"+e.id),ref_for:!0,ref:"files",file:e,list:!0},{default:p((t=>[f("div",{class:v(["c-file-container",{"c-file-boder-bottom":fe(e)}])},[f("div",N,[f("div",P,[u(d(x),{component:d(q),style:{color:"#5585f5"}},null,8,["component"])]),f("div",R,[f("div",j,[f("span",T,_(e.name),1),f("span",G,"("+_(t.formatedSize)+")",1)]),f("div",J,[f("span",null,_(t.formatedTimeRemaining),1),f("span",null,_(pe(e,"text")),1)])]),f("div",K,[u(d(x),{component:d(B),onClick:t=>(e=>{e.cancel?e.cancel():e.remove&&e.remove();let t=e.id;ee.configList=ee.configList.filter((e=>e.id!==t))})(e)},null,8,["component","onClick"])])]),u(d(S),{percentage:ge(ee.progress,e),type:"line","show-indicator":!1},null,8,["percentage"])],2)])),_:2},1032,["class","file"]),[[k,!e.ignored]])])))),128))])):c("v-if",!0)])])),_:1}),f("div",O,[h(u(L,{attrs:d(ne),ref_key:"uploadBtnDom",ref:Z},{default:p((()=>[H])),_:1},8,["attrs"]),[[k,!1]]),u(d(F),{type:"primary",class:"mgl-10",onClick:he},{default:p((()=>[y("开始上传")])),_:1})])])),_:1},8,["options","autoStart"])])}}});export{Q as default};
1
+ import{defineComponent as e,ref as t,reactive as l,onMounted as o,nextTick as i,onUnmounted as n,resolveComponent as a,openBlock as s,createElementBlock as r,createCommentVNode as c,createVNode as u,unref as d,withCtx as p,createElementVNode as f,Fragment as m,renderList as g,withDirectives as h,normalizeClass as v,toDisplayString as _,vShow as k,createTextVNode as y}from"vue";import L from"spark-md5";import z from"axios";import{useMessage as C,NIcon as x,NProgress as S,NButton as F}from"naive-ui";import{UploadProps as w,getUploadData as b,statusSet as I}from"./hooks/upload-data.js";import{UploadComputed as A}from"./hooks/upload-computed.js";import{FolderOutline as M,DocumentAttachOutline as q,Close as B}from"@vicons/ionicons5";const E={class:"c-chunk-upload-container"},U=f("p",null,"点击或将文件拖拽到这里上传",-1),$={class:"c-file-list-conatiner"},D={key:0,class:"file-list"},N={class:"c-f-item"},P={class:"c-f-item-icon"},R={class:"c-f-item-info"},j={class:"c-f-item-info-title"},T={class:"title"},G={class:"size"},J={class:"c-f-item-info-time"},K={class:"c-f-item-btn"},O={class:"upload-btn"},H=f("span",null,"上传新文件",-1);var Q=e({__name:"chunk-upload-new",props:{...w},emits:["getSumbitList","closeUpload"],setup(e,{expose:w,emit:Q}){const V=e,{UploadState:W}=b();var X=z.create({});const Y=t(null),Z=t(null),ee=l(W),te=C(),{initState:le,uploadArguments:oe,autoStart:ie,btnAttrs:ne}=A(V,ee);le();const ae=e=>{let t=new FileReader;(new Date).getTime();let l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,o=0;const i=1024e4;let n=Math.ceil(e.size/i),a=new L.ArrayBuffer;function s(){let n=o*i,a=n+i>=e.size?e.size:n+i;t.readAsArrayBuffer(l.call(e.file,n,a))}I(e,"md5"),e.pause(),s(),t.onload=t=>{if(a.append(t.target.result),o<n)o++,s();else{let t=a.end();re(t,e)}},t.onerror=function(){console.warn(`文件${e.name}读取出错,请检查该文件`),e.cancel()}},se=e=>{let t=(e=>{const t=(null==V?void 0:V.max_size)||"";if(!t)return!1;let l=e.size/1024<+t;return l||te.error(`附件大小超过了${(e=>{let t;return e?(t=+(+e).toFixed(2),t<1024?t+"KB":t<1048576?(t/1024).toFixed(2)+"MB":t<1073741824?(t/1048576).toFixed(2)+"GB":void 0):t})(t)}`),!l})(e);((e,t)=>{let l=!1;if(e){if(e.includes("*"))return!1;let o=t.getExtension();e.includes(o)||(te.error(`不支持${o}格式`),l=!0)}return l})(V.propsCategoryMap,e)||(()=>{var e,t;if(V.maxLength>0){let l=(null==(e=V.defaultList)?void 0:e.length)||0,o=(null==(t=ee.configList)?void 0:t.length)||0;if(V.maxLength<=l+o)return te.error(`最多只能上传${V.maxLength}个`),!0}return!1})()||t?e.ignored=!0:(e.file_upload_status="",I(e,"init"),e.crm_upload_config={...e},ee.configList.push(e),I(e,"ready"),ie.value&&(e.pause(),ae(e)))},re=async(e,t)=>{try{const l=await((e,t,l)=>{let o=ee.uploadConfig.checkFileMd5Exist;return new Promise(((i,n)=>{const a={md5:t,fileName:e,...oe.value};X.get(o,{params:a}).then((e=>{i(e.data)})).catch((e=>{I(l,"failed"),console.log("verifyUpload -> err",e)}))}))})(t.name,e,t);if("00000"==l.code){const{data:e}=l||{};if(e.presence)return I(t,"complete"),t.crm_chkuns_complete_status="complete",void(t.crm_uploade_resInfo={url:e.path,name:t.name,size:t.size})}t.uniqueIdentifier=e,I(t,"uploading"),t.resume()}catch(e){console.log(e,"chunk-upload-computeMD5Success")}},ce=()=>{},ue=(e,t,l)=>{let o=JSON.parse(l);o.success?(I(t,"merging"),((e,t)=>{new Promise(((l,o)=>{const i={...e,...oe.value,size:t.size};X.post(ee.uploadConfig.partFileMerge,i,{timeout:0}).then((({data:e})=>{if("00000"===e.code){if(I(t,"complete"),Y.value){let l=(null==e?void 0:e.data)||{};Y.value.fileList.forEach((e=>{e.uniqueIdentifier==t.uniqueIdentifier&&(e.crm_chkuns_complete_status="complete",e.crm_uploade_resInfo={url:l.path||l.url,name:t.name,size:t.size,...l})}))}l()}else te.error("上传失败"),l()})).catch((e=>{console.log("mergeRequest -> err",e),o()}))}))})({md5:t.uniqueIdentifier,fileName:t.name,fileChunkNum:t.chunks.length},t),o.needMerge&&I(t,"merging")):I(t,"failed")},de=()=>{var e,t;let l=(null==(t=null==(e=null==Z?void 0:Z.value)?void 0:e.$el)?void 0:t.querySelector("input"))||!1;l&&l.click()},pe=(e,t="text")=>((null==e?void 0:e.file_upload_status)||{})[t],fe=e=>["complete","failed"].includes(pe(e,"status")),me=(e,t)=>{I(t,"failed")},ge=(e,t)=>{if("complete"==t.crm_chkuns_complete_status)return 100;return parseInt(100*e+"",10)},he=()=>{var e;0!=((null==(e=ee.configList)?void 0:e.length)||0)?i((()=>{ee.configList.forEach((e=>{(e.file_upload_status||{}).status&&(I(e,"uploading"),ae(e))}))})):te.info("请选择文件")},ve=()=>{var e,t;console.log("cancelcancelcancel"),null==(t=null==(e=Y.value)?void 0:e.uploader)||t.cancel(),ee.configList=[],Q("closeUpload",!1)};return(()=>{try{console.log(V.getChunkUploadConfig),V.getChunkUploadConfig().then((e=>{console.log(e),ee.uploadConfig={...e},ee.headers={Authorization:"bearer "+ee.uploadConfig.token},(()=>{for(const e in ee.headers)X.defaults.headers.common[e]=ee.headers[e];X.defaults.withCredentials=ee.withCredentials})()}))}catch(e){console.log(e)}})(),o((()=>{i((()=>{}))})),n((()=>{})),w({cancel:ve,confirm:()=>{console.log("ininini");const{configList:e}=ee;0!==((null==e?void 0:e.length)||0)?e.filter((e=>!["complete","failed"].includes(e.file_upload_status.status))).length>0?te.info("请上传文件或者等待文件上传完成!"):((()=>{var e;let t=(null==(e=null==ee?void 0:ee.configList)?void 0:e.length)||0,l=[];t>0&&ee.configList.forEach((e=>{"complete"==e.crm_chkuns_complete_status&&l.push({size:e.size,...e.crm_uploade_resInfo})})),Q("getSumbitList",l)})(),ve()):te.info("请选择文件上传")}}),(e,t)=>{const l=a("uploader-unsupport"),o=a("uploader-drop"),i=a("uploader-file"),n=a("uploader-list"),L=a("uploader-btn"),z=a("uploader");return s(),r("div",E,[c(" 上传 "),u(z,{ref_key:"uploaderDom",ref:Y,options:ee.options,autoStart:d(ie),onFileAdded:se,onFileSuccess:ue,onFileProgress:ce,onFileError:me,class:"uploader-app"},{default:p((()=>[u(l),u(o,null,{default:p((()=>[f("div",{class:"c-drap-container dragger-btn",onClick:de},[u(d(x),{component:d(M)},null,8,["component"]),U])])),_:1}),u(n,null,{default:p((e=>[f("div",$,[e?(s(),r("ul",D,[(s(!0),r(m,null,g(e.fileList,(e=>(s(),r("li",{key:e.id},[h(u(i,{class:v("file_"+e.id),ref_for:!0,ref:"files",file:e,list:!0},{default:p((t=>[f("div",{class:v(["c-file-container",{"c-file-boder-bottom":fe(e)}])},[f("div",N,[f("div",P,[u(d(x),{component:d(q),style:{color:"#5585f5"}},null,8,["component"])]),f("div",R,[f("div",j,[f("span",T,_(e.name),1),f("span",G,"("+_(t.formatedSize)+")",1)]),f("div",J,[f("span",null,_(t.formatedTimeRemaining),1),f("span",null,_(pe(e,"text")),1)])]),f("div",K,[u(d(x),{component:d(B),onClick:t=>(e=>{e.cancel?e.cancel():e.remove&&e.remove();let t=e.id;ee.configList=ee.configList.filter((e=>e.id!==t))})(e)},null,8,["component","onClick"])])]),u(d(S),{percentage:ge(ee.progress,e),type:"line","show-indicator":!1},null,8,["percentage"])],2)])),_:2},1032,["class","file"]),[[k,!e.ignored]])])))),128))])):c("v-if",!0)])])),_:1}),f("div",O,[h(u(L,{attrs:d(ne),ref_key:"uploadBtnDom",ref:Z},{default:p((()=>[H])),_:1},8,["attrs"]),[[k,!1]]),u(d(F),{type:"primary",class:"mgl-10",onClick:he},{default:p((()=>[y("开始上传")])),_:1})])])),_:1},8,["options","autoStart"])])}}});export{Q as default};
package/es/env.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv;
10
- }
11
-
12
- declare module '*.vue' {
13
- // @ts-ignore
14
- import type { App, defineComponent } from 'vue';
15
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
- // // const component: DefineComponent<{}, {}, any>
17
- const component: ReturnType<typeof defineComponent> & {
18
- install(app: App): void;
19
- };
20
- // @ts-ignore
21
- export default component;
22
- }
23
-
24
- declare module '*.js';
25
-
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv;
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ // @ts-ignore
14
+ import type { App, defineComponent } from 'vue';
15
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
+ // // const component: DefineComponent<{}, {}, any>
17
+ const component: ReturnType<typeof defineComponent> & {
18
+ install(app: App): void;
19
+ };
20
+ // @ts-ignore
21
+ export default component;
22
+ }
23
+
24
+ declare module '*.js';
25
+
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.2.9-beta.9",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.2.9-beta.9",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",s="3.2.9-release.4",i="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.2.9-release.4",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
@@ -24,3 +24,4 @@ export declare function isHTMLElement(target: unknown): target is HTMLElement;
24
24
  export declare function getArrDepth<T extends {
25
25
  children?: T[];
26
26
  }>(fieldList: T[]): number;
27
+ export declare function encapBrowserLog(data: any, businessName: string): void;