cnhis-design-vue 3.1.45-beta.7 → 3.1.45-beta.9

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 (100) hide show
  1. package/es/components/base-search/index.d.ts +2 -0
  2. package/es/components/base-search/src/index.vue.d.ts +2 -0
  3. package/es/components/base-search/style/index.css +1 -1
  4. package/es/components/classification/index.d.ts +165 -11
  5. package/es/components/classification/src/components/search-filter/index.vue.d.ts +165 -11
  6. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  7. package/es/components/classification/src/components/set-classification/index.vue.d.ts +165 -11
  8. package/es/components/classification/src/index.vue.d.ts +165 -11
  9. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  10. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  11. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  13. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  15. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  16. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
  17. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
  18. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
  19. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
  20. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  21. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
  22. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
  23. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
  24. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
  25. package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
  26. package/es/components/index.css +1 -1
  27. package/es/components/quick-search/index.d.ts +2 -0
  28. package/es/components/quick-search/src/index.vue.d.ts +2 -0
  29. package/es/components/quick-search/style/index.css +1 -1
  30. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
  31. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
  32. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
  33. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
  34. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
  35. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +165 -10
  36. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  37. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +16 -1
  38. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  39. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -0
  40. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  41. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +128 -10
  42. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  43. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic1.vue.d.ts +61 -0
  44. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -0
  45. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  46. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +163 -10
  47. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +165 -10
  48. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +218 -0
  49. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +1 -0
  50. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -0
  51. package/es/components/table-filter/src/components/render-widget/components/{Date.vue.d.ts → DateOut.vue.d.ts} +21 -2
  52. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +1 -0
  53. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -0
  54. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +71 -0
  55. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +1 -0
  56. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -0
  57. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +99 -5
  58. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  59. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -9
  60. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  61. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +7 -5
  62. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  63. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -5
  64. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  65. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +15 -25
  66. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  67. package/es/components/table-filter/src/components/render-widget/components/Select1.vue.d.ts +45 -0
  68. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +175 -0
  69. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +1 -0
  70. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -0
  71. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +114 -0
  72. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +1 -0
  73. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -0
  74. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +520 -25
  75. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  76. package/es/components/table-filter/src/components/render-widget/enums.d.ts +10 -3
  77. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  78. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +27 -0
  79. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +1 -0
  80. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +55 -0
  81. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -0
  82. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +56 -0
  83. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +1 -0
  84. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +2 -6
  85. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  86. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  87. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +548 -24
  88. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  89. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  90. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  91. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  92. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  93. package/es/components/table-filter/src/types/enums.d.ts +2 -0
  94. package/es/components/table-filter/src/types/enums.js +1 -1
  95. package/es/shared/package.json.js +1 -1
  96. package/package.json +2 -2
  97. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +0 -4
  98. package/es/components/table-filter/src/components/render-widget/basicData.js +0 -1
  99. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +0 -1
  100. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
@@ -154,6 +154,9 @@ declare const _default: import("vue").DefineComponent<{
154
154
  presetValCp: import("vue").WritableComputedRef<string>;
155
155
  widgetType: import("vue").ComputedRef<any>;
156
156
  Date: import("vue").DefineComponent<{
157
+ componentCfg: {
158
+ type: ObjectConstructor;
159
+ };
157
160
  paramCfg: {
158
161
  type: ObjectConstructor;
159
162
  default: null;
@@ -168,6 +171,9 @@ declare const _default: import("vue").DefineComponent<{
168
171
  };
169
172
  }, {
170
173
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
174
+ componentCfg: {
175
+ type: ObjectConstructor;
176
+ };
171
177
  paramCfg: {
172
178
  type: ObjectConstructor;
173
179
  default: null;
@@ -190,11 +196,17 @@ declare const _default: import("vue").DefineComponent<{
190
196
  dateType: any;
191
197
  valueFormat: import("vue").ComputedRef<string>;
192
198
  compType: import("vue").ComputedRef<any>;
193
- mappingConfig: import("vue").ComputedRef<any>;
199
+ optionSetting: import("vue").ComputedRef<any>;
194
200
  widgetOptions: import("vue").ComputedRef<{
195
201
  label: string;
196
202
  value: string;
197
203
  }[]>;
204
+ isDateDisabled: (ts: number) => boolean;
205
+ timeDisabled: (ts: number) => {
206
+ isHourDisabled(hour: number): boolean | undefined;
207
+ isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
208
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
209
+ };
198
210
  CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
199
211
  updateUnchangedValue: {
200
212
  type: BooleanConstructor;
@@ -266,6 +278,9 @@ declare const _default: import("vue").DefineComponent<{
266
278
  LAST_YEAR: string;
267
279
  };
268
280
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
281
+ componentCfg: {
282
+ type: ObjectConstructor;
283
+ };
269
284
  paramCfg: {
270
285
  type: ObjectConstructor;
271
286
  default: null;
@@ -417,6 +432,7 @@ declare const _default: import("vue").DefineComponent<{
417
432
  default: null;
418
433
  };
419
434
  }, {
435
+ message: import("naive-ui").MessageApi;
420
436
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
421
437
  paramCfg: {
422
438
  type: ObjectConstructor;
@@ -430,27 +446,145 @@ declare const _default: import("vue").DefineComponent<{
430
446
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
431
447
  }>>;
432
448
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
433
- $attrs: {
434
- [x: string]: unknown;
435
- };
436
449
  emit: (event: "update:modelValue", ...args: any[]) => void;
437
- selectOptions: import("vue").Ref<any[]>;
438
450
  isLoading: import("vue").Ref<boolean>;
439
451
  filterApiConfig: import("../../../..").AnyObject;
440
- valueCp: import("vue").WritableComputedRef<any>;
452
+ totalPage: import("vue").Ref<number>;
453
+ menuProps: {
454
+ class: string;
455
+ };
456
+ curPage: import("vue").Ref<number>;
457
+ fieldTitleList: import("vue").Ref<any>;
458
+ selectOptions: import("vue").Ref<any[]>;
459
+ keywordVal: import("vue").Ref<any>;
441
460
  optionSetting: import("vue").ComputedRef<any>;
442
461
  isMultiple: import("vue").ComputedRef<boolean>;
443
- searchOptions: (keyword: string) => Promise<any>;
462
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
463
+ isLastPage: import("vue").ComputedRef<boolean>;
464
+ valueCp: import("vue").ComputedRef<string | number | any[]>;
465
+ setOptionActive: (selectIds: string[]) => void;
466
+ handleUpdateSelect: (value: string[] | null) => void;
467
+ handleUpdatePage: (page: number) => Promise<void>;
468
+ getOptionsData: (keyword: string, curPage: number) => Promise<any>;
444
469
  _handleSearch: (query: string) => Promise<void>;
445
470
  handleSearch: (query: string) => Promise<void>;
446
471
  handleInitData: () => Promise<void>;
447
- renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
448
- [key: string]: any;
449
- }>;
472
+ handleClear: () => Promise<void>;
450
473
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
451
474
  [key: string]: any;
452
475
  }>;
453
476
  NSelect: any;
477
+ SelectDynamicOption: import("vue").DefineComponent<{
478
+ dynamicOptionInfo: {
479
+ type: PropType<import("../../../..").AnyObject>;
480
+ default: () => {};
481
+ };
482
+ fieldTitleList: {
483
+ type: PropType<import("../../../..").AnyObject[]>;
484
+ default: () => never[];
485
+ };
486
+ optionList: {
487
+ type: PropType<import("../../../..").AnyObject[]>;
488
+ default: () => never[];
489
+ };
490
+ isMultiple: {
491
+ type: BooleanConstructor;
492
+ default: boolean;
493
+ };
494
+ curPage: {
495
+ type: NumberConstructor;
496
+ default: number;
497
+ };
498
+ isLastPage: {
499
+ type: BooleanConstructor;
500
+ default: boolean;
501
+ };
502
+ }, {
503
+ selectMinWidth: number;
504
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
505
+ dynamicOptionInfo: {
506
+ type: PropType<import("../../../..").AnyObject>;
507
+ default: () => {};
508
+ };
509
+ fieldTitleList: {
510
+ type: PropType<import("../../../..").AnyObject[]>;
511
+ default: () => never[];
512
+ };
513
+ optionList: {
514
+ type: PropType<import("../../../..").AnyObject[]>;
515
+ default: () => never[];
516
+ };
517
+ isMultiple: {
518
+ type: BooleanConstructor;
519
+ default: boolean;
520
+ };
521
+ curPage: {
522
+ type: NumberConstructor;
523
+ default: number;
524
+ };
525
+ isLastPage: {
526
+ type: BooleanConstructor;
527
+ default: boolean;
528
+ };
529
+ }>> & {
530
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
531
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
532
+ }>>;
533
+ emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
534
+ dragEndWidth: import("vue").Ref<number>;
535
+ showKeys: import("vue").ComputedRef<any>;
536
+ titleList: import("vue").ComputedRef<string[]>;
537
+ handleSelect: (option: any) => void;
538
+ searchByPage: (onePage: number) => void;
539
+ changeWidth: ({ distance }: any) => void;
540
+ saveWidth: () => void;
541
+ NEmpty: any;
542
+ NButtonGroup: any;
543
+ NButton: any;
544
+ NIcon: any;
545
+ NPopover: any;
546
+ vFlexibleResize: {
547
+ mounted(el: any, { value }: any): void;
548
+ beforeUnmount(el: any): void;
549
+ };
550
+ ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
551
+ ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
552
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
553
+ dynamicOptionInfo: {
554
+ type: PropType<import("../../../..").AnyObject>;
555
+ default: () => {};
556
+ };
557
+ fieldTitleList: {
558
+ type: PropType<import("../../../..").AnyObject[]>;
559
+ default: () => never[];
560
+ };
561
+ optionList: {
562
+ type: PropType<import("../../../..").AnyObject[]>;
563
+ default: () => never[];
564
+ };
565
+ isMultiple: {
566
+ type: BooleanConstructor;
567
+ default: boolean;
568
+ };
569
+ curPage: {
570
+ type: NumberConstructor;
571
+ default: number;
572
+ };
573
+ isLastPage: {
574
+ type: BooleanConstructor;
575
+ default: boolean;
576
+ };
577
+ }>> & {
578
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
579
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
580
+ }, {
581
+ dynamicOptionInfo: import("../../../..").AnyObject;
582
+ fieldTitleList: import("../../../..").AnyObject[];
583
+ optionList: import("../../../..").AnyObject[];
584
+ isMultiple: boolean;
585
+ curPage: number;
586
+ isLastPage: boolean;
587
+ }>;
454
588
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
455
589
  paramCfg: {
456
590
  type: ObjectConstructor;
@@ -556,8 +690,15 @@ declare const _default: import("vue").DefineComponent<{
556
690
  valueFormat: import("vue").ComputedRef<string>;
557
691
  dateFormat: import("vue").ComputedRef<string>;
558
692
  compType: import("vue").ComputedRef<any>;
693
+ optionSetting: import("vue").ComputedRef<any>;
694
+ isPastTime: import("vue").ComputedRef<boolean>;
695
+ isFutureTime: import("vue").ComputedRef<boolean>;
559
696
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
560
697
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
698
+ startDefault: import("vue").ComputedRef<string>;
699
+ endDefault: import("vue").ComputedRef<string>;
700
+ startDateFormat: import("vue").ComputedRef<string | null>;
701
+ endDateFormat: import("vue").ComputedRef<string | null>;
561
702
  dateType: any;
562
703
  widgetOptions: import("vue").ComputedRef<{
563
704
  label: string;
@@ -566,8 +707,19 @@ declare const _default: import("vue").DefineComponent<{
566
707
  presetValCp: import("vue").WritableComputedRef<string>;
567
708
  handleChange: (val: any, type: "end" | "start") => void;
568
709
  isStartDateDisabled: (ts: number) => boolean;
710
+ timeStartDisabled: (ts: number) => {
711
+ isHourDisabled(hour: number): boolean | 0;
712
+ isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
713
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
714
+ };
569
715
  isEndDateDisabled: (ts: number) => boolean;
716
+ timeEndDisabled: (ts: number) => {
717
+ isHourDisabled(hour: number): boolean | 0;
718
+ isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
719
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
720
+ };
570
721
  NSelect: any;
722
+ NPopover: any;
571
723
  CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
572
724
  updateUnchangedValue: {
573
725
  type: BooleanConstructor;
@@ -669,6 +821,7 @@ declare const _default: import("vue").DefineComponent<{
669
821
  };
670
822
  }, {
671
823
  handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
824
+ message: import("naive-ui").MessageApi;
672
825
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
673
826
  paramCfg: {
674
827
  type: ObjectConstructor;
@@ -708,7 +861,9 @@ declare const _default: import("vue").DefineComponent<{
708
861
  INPUT: string;
709
862
  SELECT: string;
710
863
  DATE: string;
864
+ DATE_OUT: string;
711
865
  DATE_TIME: string;
866
+ DATETIME_OUT: string;
712
867
  CHECKBOX_GROUP: string;
713
868
  INPUTNUMBER_RANGE: string;
714
869
  DATE_RANGE_OUT: string;
@@ -0,0 +1,218 @@
1
+ import { PropType } from 'vue';
2
+ import { AnyObject } from '../../../../../../../es/shared/types';
3
+ declare type ITypeDate = 'date' | 'datetime';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ componentCfg: {
6
+ type: PropType<AnyObject>;
7
+ };
8
+ type: {
9
+ type: PropType<ITypeDate>;
10
+ default: string;
11
+ };
12
+ clearable: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ valueFormat: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ placeholder: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ value: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ }, {
29
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
30
+ componentCfg: {
31
+ type: PropType<AnyObject>;
32
+ };
33
+ type: {
34
+ type: PropType<ITypeDate>;
35
+ default: string;
36
+ };
37
+ clearable: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ valueFormat: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ placeholder: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ value: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ }>> & {
54
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
55
+ }>>;
56
+ emit: (event: "update:value", ...args: any[]) => void;
57
+ valueCp: import("vue").Ref<any>;
58
+ isShowDateRange: import("vue").Ref<boolean>;
59
+ radioValue: import("vue").Ref<string>;
60
+ dateFormat: import("vue").ComputedRef<string>;
61
+ showTabStr: import("vue").ComputedRef<string>;
62
+ optionSetting: import("vue").ComputedRef<any>;
63
+ isPastTime: import("vue").ComputedRef<boolean>;
64
+ isFutureTime: import("vue").ComputedRef<boolean>;
65
+ onlyRadio: import("vue").ComputedRef<boolean>;
66
+ defaultTime: import("vue").ComputedRef<string>;
67
+ changeDateShowType: () => void;
68
+ handleClickQuickBtn: (result: string) => void;
69
+ changeRadioValue: (value: string) => void;
70
+ handleChange: (val: any) => void;
71
+ isDateDisabled: (ts: number) => boolean;
72
+ timeDisabled: (ts: number) => {
73
+ isHourDisabled(hour: number): boolean | undefined;
74
+ isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
75
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
76
+ };
77
+ init: () => void;
78
+ NButton: any;
79
+ CDatePicker: import("../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
80
+ updateUnchangedValue: {
81
+ type: BooleanConstructor;
82
+ };
83
+ onConfirm: {
84
+ type: FunctionConstructor;
85
+ };
86
+ }, {
87
+ attrs: {
88
+ [x: string]: unknown;
89
+ };
90
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
91
+ updateUnchangedValue: {
92
+ type: BooleanConstructor;
93
+ };
94
+ onConfirm: {
95
+ type: FunctionConstructor;
96
+ };
97
+ }>> & {}>>;
98
+ datePickerRef: import("vue").Ref<AnyObject | null>;
99
+ panelInstRef: import("vue").Ref<null>;
100
+ isDateTime: import("vue").ComputedRef<boolean>;
101
+ formatRef: import("vue").ComputedRef<string>;
102
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
103
+ focus: () => any;
104
+ blur: () => any;
105
+ onUpdateShow: (show: boolean) => void;
106
+ onConfirm: (...args: any[]) => void;
107
+ NDatePicker: any;
108
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
109
+ updateUnchangedValue: {
110
+ type: BooleanConstructor;
111
+ };
112
+ onConfirm: {
113
+ type: FunctionConstructor;
114
+ };
115
+ }>>, {
116
+ updateUnchangedValue: boolean;
117
+ }>>;
118
+ DateQuickBtn: import("vue").DefineComponent<{
119
+ componentCfg: {
120
+ type: PropType<AnyObject>;
121
+ };
122
+ type: {
123
+ type: PropType<"date" | "datetime">;
124
+ default: string;
125
+ };
126
+ dateFormat: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ radioValue: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ }, {
135
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
136
+ componentCfg: {
137
+ type: PropType<AnyObject>;
138
+ };
139
+ type: {
140
+ type: PropType<"date" | "datetime">;
141
+ default: string;
142
+ };
143
+ dateFormat: {
144
+ type: StringConstructor;
145
+ default: string;
146
+ };
147
+ radioValue: {
148
+ type: StringConstructor;
149
+ default: string;
150
+ };
151
+ }>> & {
152
+ onClickQuickBtn?: ((...args: any[]) => any) | undefined;
153
+ onChangeRadioValue?: ((...args: any[]) => any) | undefined;
154
+ }>>;
155
+ emit: (event: "clickQuickBtn" | "changeRadioValue", ...args: any[]) => void;
156
+ dateList: import("vue").Ref<any[]>;
157
+ optionSetting: import("vue").ComputedRef<any>;
158
+ isRange: import("vue").ComputedRef<any>;
159
+ initData: () => void;
160
+ handleRadioClick: (value: string) => void;
161
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
162
+ componentCfg: {
163
+ type: PropType<AnyObject>;
164
+ };
165
+ type: {
166
+ type: PropType<"date" | "datetime">;
167
+ default: string;
168
+ };
169
+ dateFormat: {
170
+ type: StringConstructor;
171
+ default: string;
172
+ };
173
+ radioValue: {
174
+ type: StringConstructor;
175
+ default: string;
176
+ };
177
+ }>> & {
178
+ onClickQuickBtn?: ((...args: any[]) => any) | undefined;
179
+ onChangeRadioValue?: ((...args: any[]) => any) | undefined;
180
+ }, {
181
+ type: "date" | "datetime";
182
+ dateFormat: string;
183
+ radioValue: string;
184
+ }>;
185
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
186
+ componentCfg: {
187
+ type: PropType<AnyObject>;
188
+ };
189
+ type: {
190
+ type: PropType<ITypeDate>;
191
+ default: string;
192
+ };
193
+ clearable: {
194
+ type: BooleanConstructor;
195
+ default: boolean;
196
+ };
197
+ valueFormat: {
198
+ type: StringConstructor;
199
+ default: string;
200
+ };
201
+ placeholder: {
202
+ type: StringConstructor;
203
+ default: string;
204
+ };
205
+ value: {
206
+ type: StringConstructor;
207
+ default: string;
208
+ };
209
+ }>> & {
210
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
211
+ }, {
212
+ type: ITypeDate;
213
+ value: string;
214
+ placeholder: string;
215
+ clearable: boolean;
216
+ valueFormat: string;
217
+ }>;
218
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./DateInner.vue2.js";import r from"../../../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","DateInner.vue"]]);export{t as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as u,createElementBlock as o,unref as r,createBlock as n,createCommentVNode as i,normalizeClass as d,withCtx as m,createTextVNode as p,toDisplayString as v}from"vue";import{NButton as c}from"naive-ui";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as g}from"../../../types/enums.js";import{dateDisabledCollect as b,setDateDisabled as h,setTimeDisabled as k}from"../helpers/dateDisabled.js";import C from"./DateQuickBtn/index.vue.js";const M={class:"render-widget-date-range"};var T=e({__name:"DateInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:T}){const Y=e,D=t(),F=t(!1),S=t(""),E=a((()=>{let e="";switch(Y.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),_=a((()=>{let e="";switch(Y.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e})),j=a((()=>{var e;return null==(e=Y.componentCfg)?void 0:e.widgetCfg.optionSetting}));a((()=>j.value===g.PAST_TIME)),a((()=>j.value===g.FUTURE_TIME));const w=a((()=>j.value!==g.SELECT_TIME)),I=a((()=>b.curTime));function x(){w.value&&(F.value=!F.value)}function B(e){T("update:value",e)}function U(e){S.value=e}function V(e){D.value=e;const t=e?f(e).format(E.value):e;T("update:value",t)}function H(e){return h(e,j.value)}function O(e){return k(e,j.value)}return l((()=>Y.value),(e=>{e&&y(e)?D.value=f(e).valueOf():D.value=null}),{immediate:!0}),w.value||(F.value=!0),(t,a)=>(u(),o("div",M,[r(w)&&!F.value?(u(),n(C,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:r(E),radioValue:S.value,onClickQuickBtn:B,onChangeRadioValue:U},null,8,["componentCfg","type","dateFormat","radioValue"])):i("v-if",!0),r(w)?(u(),n(r(c),{key:1,secondary:"",class:d(F.value?"select-date-right":"select-date-left"),onClick:x},{default:m((()=>[p(v(r(_)),1)])),_:1},8,["class"])):i("v-if",!0),!r(w)||F.value?(u(),n(r(s),{key:2,to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:D.value,defaultTime:r(I),"is-date-disabled":H,"is-time-disabled":O,"onUpdate:value":V},null,8,["type","clearable","valueFormat","placeholder","value","defaultTime"])):i("v-if",!0)]))}});export{T as default};
@@ -1,6 +1,10 @@
1
1
  import { PropType } from 'vue';
2
+ import { AnyObject } from '../../../../../../../es/shared/types';
2
3
  declare type ITypeDate = 'date' | 'datetime';
3
4
  declare const _default: import("vue").DefineComponent<{
5
+ componentCfg: {
6
+ type: PropType<AnyObject>;
7
+ };
4
8
  type: {
5
9
  type: PropType<ITypeDate>;
6
10
  default: string;
@@ -23,6 +27,9 @@ declare const _default: import("vue").DefineComponent<{
23
27
  };
24
28
  }, {
25
29
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
30
+ componentCfg: {
31
+ type: PropType<AnyObject>;
32
+ };
26
33
  type: {
27
34
  type: PropType<ITypeDate>;
28
35
  default: string;
@@ -48,9 +55,18 @@ declare const _default: import("vue").DefineComponent<{
48
55
  }>>;
49
56
  emit: (event: "update:value", ...args: any[]) => void;
50
57
  valueCp: import("vue").Ref<any>;
58
+ rangeShortcuts: import("vue").Ref<any>;
51
59
  dateFormat: import("vue").ComputedRef<string>;
60
+ optionSetting: import("vue").ComputedRef<any>;
52
61
  handleChange: (val: any) => void;
53
- CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
62
+ isDateDisabled: (ts: number) => boolean;
63
+ timeDisabled: (ts: number) => {
64
+ isHourDisabled(hour: number): boolean | undefined;
65
+ isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
66
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
67
+ };
68
+ init: () => void;
69
+ CDatePicker: import("../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
54
70
  updateUnchangedValue: {
55
71
  type: BooleanConstructor;
56
72
  };
@@ -69,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
69
85
  type: FunctionConstructor;
70
86
  };
71
87
  }>> & {}>>;
72
- datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
88
+ datePickerRef: import("vue").Ref<AnyObject | null>;
73
89
  panelInstRef: import("vue").Ref<null>;
74
90
  isDateTime: import("vue").ComputedRef<boolean>;
75
91
  formatRef: import("vue").ComputedRef<string>;
@@ -90,6 +106,9 @@ declare const _default: import("vue").DefineComponent<{
90
106
  updateUnchangedValue: boolean;
91
107
  }>>;
92
108
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
109
+ componentCfg: {
110
+ type: PropType<AnyObject>;
111
+ };
93
112
  type: {
94
113
  type: PropType<ITypeDate>;
95
114
  default: string;
@@ -0,0 +1 @@
1
+ import e from"./DateOut.vue2.js";import t from"../../../../../../_virtual/_plugin-vue_export-helper.js";var r=t(e,[["__file","DateOut.vue"]]);export{r as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as r,createBlock as o,unref as u}from"vue";import p from"../../../../../date-picker/index.js";import n from"moment";import{isString as i}from"lodash-es";import{WidgetOptionEnums as m}from"../../../types/enums.js";import{DateExtraOptions as d,DateExtraMap as s}from"../helpers/dateExtraMap.js";import{setDateDisabled as v,setTimeDisabled as f}from"../helpers/dateDisabled.js";import{presetValToTimestamp as c}from"../helpers/presetValToTimestamp.js";var y=e({__name:"DateOut",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:y}){const g=e,h=t(),b=t(),Y=a((()=>{let e="";switch(g.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),M=a((()=>{var e;return null==(e=g.componentCfg)?void 0:e.widgetCfg.optionSetting}));function j(e){h.value=e;const t=e?n(e).format(Y.value):e;y("update:value",t)}function D(e){return v(e,M.value)}function C(e){return f(e,M.value)}return l((()=>g.value),(e=>{e&&i(e)?h.value=n(e).valueOf():h.value=null}),{immediate:!0}),function(){var e,t;const{originType:a}=null==(e=g.componentCfg)?void 0:e.widgetCfg,l=`${a}_${M.value||m.ALL}`,r=null!=(t=d[s[l]])?t:[];let o={};r.forEach((({label:e,value:t})=>{const a=c(t,Y.value,!0);a&&(o[e]=a.valueOf())})),b.value=o}(),(t,a)=>(r(),o(u(p),{to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:h.value,"default-time":"00:00:00","is-date-disabled":D,"is-time-disabled":C,shortcuts:b.value,"onUpdate:value":j},null,8,["type","clearable","valueFormat","placeholder","value","shortcuts"]))}});export{y as default};
@@ -0,0 +1,71 @@
1
+ import { PropType } from 'vue';
2
+ import { AnyObject } from '../../../../../../../../es/shared/types';
3
+ declare type ITypeDate = 'date' | 'datetime';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ componentCfg: {
6
+ type: PropType<AnyObject>;
7
+ };
8
+ type: {
9
+ type: PropType<ITypeDate>;
10
+ default: string;
11
+ };
12
+ dateFormat: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ radioValue: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ }, {
21
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
22
+ componentCfg: {
23
+ type: PropType<AnyObject>;
24
+ };
25
+ type: {
26
+ type: PropType<ITypeDate>;
27
+ default: string;
28
+ };
29
+ dateFormat: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ radioValue: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>> & {
38
+ onClickQuickBtn?: ((...args: any[]) => any) | undefined;
39
+ onChangeRadioValue?: ((...args: any[]) => any) | undefined;
40
+ }>>;
41
+ emit: (event: "clickQuickBtn" | "changeRadioValue", ...args: any[]) => void;
42
+ dateList: import("vue").Ref<any[]>;
43
+ optionSetting: import("vue").ComputedRef<any>;
44
+ isRange: import("vue").ComputedRef<any>;
45
+ initData: () => void;
46
+ handleRadioClick: (value: string) => void;
47
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickQuickBtn" | "changeRadioValue")[], "clickQuickBtn" | "changeRadioValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
+ componentCfg: {
49
+ type: PropType<AnyObject>;
50
+ };
51
+ type: {
52
+ type: PropType<ITypeDate>;
53
+ default: string;
54
+ };
55
+ dateFormat: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ radioValue: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ }>> & {
64
+ onClickQuickBtn?: ((...args: any[]) => any) | undefined;
65
+ onChangeRadioValue?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ type: ITypeDate;
68
+ dateFormat: string;
69
+ radioValue: string;
70
+ }>;
71
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./index.vue2.js";import r from"../../../../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,computed as a,openBlock as o,createElementBlock as n,Fragment as i,renderList as r,normalizeClass as l,toDisplayString as u}from"vue";import{WidgetDateOptionEnums as p}from"../../helpers/enums.js";import{widgetDateValOptions as c}from"../../helpers/dateExtraMap.js";import{formatDateRangeInfo as d,presetValToTimestamp as m}from"../../helpers/presetValToTimestamp.js";import{WidgetOptionEnums as s}from"../../../../types/enums.js";const f={class:"radio-date-group"},g=["onClick"];var v=e({__name:"index",props:{componentCfg:{type:Object},type:{type:String,default:"date"},dateFormat:{type:String,default:"YYYY-MM-DD"},radioValue:{type:String,default:""}},emits:["clickQuickBtn","changeRadioValue"],setup(e,{emit:v}){const y=e,C=t([]),k=a((()=>{var e;return null==(e=y.componentCfg)?void 0:e.widgetCfg.optionSetting})),V=a((()=>{var e;return null==(e=y.componentCfg)?void 0:e.rangeFilter}));return function(){var e,t;const{originType:a}=null==(e=y.componentCfg)?void 0:e.widgetCfg,o=`${a}_${k.value||s.ALL}${V.value?"_RANGE":""}`,n=p[o];C.value=null!=(t=c[n])?t:[]}(),(t,a)=>(o(),n("div",f,[(o(!0),n(i,null,r(C.value,(t=>(o(),n("span",{key:t.con,class:l(["radio-date-item",e.radioValue===t.con?"radio-date-item-active":""]),onClick:e=>function(e){const t=y.radioValue===e?"":e;if(t){const e=V.value?d(t,y.dateFormat,k.value):m(t,y.dateFormat);v("clickQuickBtn",e)}v("changeRadioValue",t)}(t.con)},u(t.title),11,g)))),128))]))}});export{v as default};