cnhis-design-vue 3.1.21-beta.0 → 3.1.21-beta.10

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 (143) hide show
  1. package/es/components/big-table/index.d.ts +13 -11
  2. package/es/components/big-table/src/BigTable.vue.d.ts +13 -11
  3. package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +24 -16
  4. package/es/components/big-table/src/bigTableProps.d.ts +1 -1
  5. package/es/components/big-table/src/components/edit-form/edit-input.js +15 -7
  6. package/es/components/big-table/src/hooks/useEdit.d.ts +2 -1
  7. package/es/components/big-table/src/hooks/useEdit2.js +3 -2
  8. package/es/components/big-table/src/hooks/useFormat.d.ts +3 -1
  9. package/es/components/big-table/src/hooks/useFormat2.js +11 -2
  10. package/es/components/button-print/index.d.ts +1 -1
  11. package/es/components/button-print/src/ButtonPrint.vue.d.ts +1 -1
  12. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
  13. package/es/components/drag-layout/index.d.ts +1 -1
  14. package/es/components/drag-layout/src/DragLayout.vue.d.ts +1 -1
  15. package/es/components/fabric-chart/src/components/PopupMenu.js +9 -2
  16. package/es/components/fabric-chart/src/hooks/useCenter2.js +21 -20
  17. package/es/components/fabric-chart/src/hooks/useLeft2.js +4 -3
  18. package/es/components/form-config/index.d.ts +3 -2
  19. package/es/components/form-config/src/FormConfig.vue.d.ts +3 -2
  20. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
  21. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -1
  22. package/es/components/form-render/index.d.ts +1 -1
  23. package/es/components/form-render/index2.js +4 -5
  24. package/es/components/form-render/src/FormRender.js +3 -3
  25. package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
  26. package/es/components/form-render/src/components/renderer/cascader.js +3 -4
  27. package/es/components/form-render/src/components/renderer/checkbox.js +2 -5
  28. package/es/components/form-render/src/components/renderer/combination.js +2 -4
  29. package/es/components/form-render/src/components/renderer/complex.js +1 -4
  30. package/es/components/form-render/src/components/renderer/date.js +12 -3
  31. package/es/components/form-render/src/components/renderer/formItem.js +1 -4
  32. package/es/components/form-render/src/components/renderer/inputGroup.d.ts +1 -1
  33. package/es/components/form-render/src/components/renderer/radio.js +1 -3
  34. package/es/components/form-render/src/components/renderer/search.js +11 -17
  35. package/es/components/form-render/src/components/renderer/select.js +13 -19
  36. package/es/components/form-render/src/components/renderer/switch.js +2 -5
  37. package/es/components/form-render/src/components/renderer/textarea.js +2 -5
  38. package/es/components/form-render/src/hooks/useAnchor2.js +1 -3
  39. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
  40. package/es/components/form-render/src/hooks/useBusinessBinding2.js +13 -4
  41. package/es/components/form-render/src/hooks/useChangeContext.d.ts +3 -5
  42. package/es/components/form-render/src/hooks/useChangeContext2.js +2 -2
  43. package/es/components/form-render/src/hooks/useFormItemDeps2.js +1 -4
  44. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.d.ts +0 -0
  45. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides.js +0 -0
  46. package/es/components/{form-table → form-render}/src/hooks/useNuiThemeOverrides2.js +0 -0
  47. package/es/components/form-render/src/hooks/usePresetScope2.js +1 -4
  48. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  49. package/es/components/form-render/src/utils/index.d.ts +4 -1
  50. package/es/components/form-render/src/utils/index.js +27 -1
  51. package/es/components/index.d.ts +1 -2
  52. package/es/components/index.js +0 -1
  53. package/es/components/index2.js +0 -3
  54. package/es/components/info-header/index.d.ts +32 -9
  55. package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
  56. package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
  57. package/es/components/info-header/src/InfoHeader.js +9 -10
  58. package/es/components/info-header/src/InfoHeader.vue.d.ts +33 -9
  59. package/es/components/scale-view/index.d.ts +1 -1
  60. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
  61. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  62. package/es/components/scale-view/src/hooks/use-component.d.ts +2 -2
  63. package/es/components/select-label/index.d.ts +4 -4
  64. package/es/components/select-label/src/LabelFormContent.vue.d.ts +2 -2
  65. package/es/components/select-label/src/SelectLabel.vue.d.ts +2 -2
  66. package/es/components/select-person/index.d.ts +1 -1
  67. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  68. package/es/components/shortcut-setter/index.d.ts +2 -1
  69. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -1
  70. package/es/components/steps-wheel/index.d.ts +1 -1
  71. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  72. package/es/components/time-line/index.d.ts +1 -1
  73. package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
  74. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  75. package/package.json +2 -2
  76. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
  77. package/es/components/form-table/index.d.ts +0 -4019
  78. package/es/components/form-table/index.js +0 -1
  79. package/es/components/form-table/index2.js +0 -10
  80. package/es/components/form-table/src/FormTable.js +0 -474
  81. package/es/components/form-table/src/FormTable.vue.d.ts +0 -4019
  82. package/es/components/form-table/src/components/index.d.ts +0 -3778
  83. package/es/components/form-table/src/components/index.js +0 -1
  84. package/es/components/form-table/src/components/index2.js +0 -40
  85. package/es/components/form-table/src/components/table-age.js +0 -235
  86. package/es/components/form-table/src/components/table-age.vue.d.ts +0 -318
  87. package/es/components/form-table/src/components/table-date-picker.js +0 -179
  88. package/es/components/form-table/src/components/table-date-picker.vue.d.ts +0 -250
  89. package/es/components/form-table/src/components/table-digital.js +0 -141
  90. package/es/components/form-table/src/components/table-digital.vue.d.ts +0 -261
  91. package/es/components/form-table/src/components/table-input-password.js +0 -141
  92. package/es/components/form-table/src/components/table-input-password.vue.d.ts +0 -304
  93. package/es/components/form-table/src/components/table-input.js +0 -127
  94. package/es/components/form-table/src/components/table-input.vue.d.ts +0 -261
  95. package/es/components/form-table/src/components/table-month-picker.js +0 -104
  96. package/es/components/form-table/src/components/table-month-picker.vue.d.ts +0 -193
  97. package/es/components/form-table/src/components/table-search-more.js +0 -6
  98. package/es/components/form-table/src/components/table-search-more.vue.d.ts +0 -392
  99. package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +0 -276
  100. package/es/components/form-table/src/components/table-search.js +0 -6
  101. package/es/components/form-table/src/components/table-search.vue.d.ts +0 -386
  102. package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +0 -276
  103. package/es/components/form-table/src/components/table-select-multiple.js +0 -164
  104. package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +0 -235
  105. package/es/components/form-table/src/components/table-select.js +0 -159
  106. package/es/components/form-table/src/components/table-select.vue.d.ts +0 -234
  107. package/es/components/form-table/src/components/table-textarea.js +0 -157
  108. package/es/components/form-table/src/components/table-textarea.vue.d.ts +0 -320
  109. package/es/components/form-table/src/components/table-time-picker.js +0 -150
  110. package/es/components/form-table/src/components/table-time-picker.vue.d.ts +0 -246
  111. package/es/components/form-table/src/components/table-tree-select.js +0 -285
  112. package/es/components/form-table/src/components/table-tree-select.vue.d.ts +0 -349
  113. package/es/components/form-table/src/components/text-over-tooltip.js +0 -64
  114. package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +0 -70
  115. package/es/components/form-table/src/configs/index.d.ts +0 -35
  116. package/es/components/form-table/src/configs/index.js +0 -1
  117. package/es/components/form-table/src/configs/index2.js +0 -67
  118. package/es/components/form-table/src/hooks/index.d.ts +0 -5
  119. package/es/components/form-table/src/hooks/index.js +0 -5
  120. package/es/components/form-table/src/hooks/useBoundDate.d.ts +0 -21
  121. package/es/components/form-table/src/hooks/useBoundDate.js +0 -1
  122. package/es/components/form-table/src/hooks/useBoundDate2.js +0 -414
  123. package/es/components/form-table/src/hooks/useDateType.d.ts +0 -17
  124. package/es/components/form-table/src/hooks/useDateType.js +0 -1
  125. package/es/components/form-table/src/hooks/useDateType2.js +0 -160
  126. package/es/components/form-table/src/hooks/useFormCommon.d.ts +0 -14
  127. package/es/components/form-table/src/hooks/useFormCommon.js +0 -1
  128. package/es/components/form-table/src/hooks/useFormCommon2.js +0 -101
  129. package/es/components/form-table/src/hooks/useFormEvent.d.ts +0 -9
  130. package/es/components/form-table/src/hooks/useFormEvent.js +0 -1
  131. package/es/components/form-table/src/hooks/useFormEvent2.js +0 -68
  132. package/es/components/form-table/src/hooks/useItemDefault.d.ts +0 -53
  133. package/es/components/form-table/src/hooks/useItemDefault.js +0 -1
  134. package/es/components/form-table/src/hooks/useItemDefault2.js +0 -218
  135. package/es/components/form-table/src/hooks/useSearch.d.ts +0 -165
  136. package/es/components/form-table/src/hooks/useSearch.js +0 -1
  137. package/es/components/form-table/src/hooks/useSearch2.js +0 -1154
  138. package/es/components/form-table/src/hooks/useValidate.d.ts +0 -24
  139. package/es/components/form-table/src/hooks/useValidate.js +0 -1
  140. package/es/components/form-table/src/hooks/useValidate2.js +0 -480
  141. package/es/components/form-table/src/types/index.d.ts +0 -11
  142. package/es/components/form-table/src/types/index.js +0 -1
  143. package/es/components/form-table/style/index.css +0 -1
@@ -200,7 +200,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
200
200
  resetInlineBatchEdit: FunctionConstructor;
201
201
  resetBatchEditRowStatus: FunctionConstructor;
202
202
  anchor: {
203
- type: ArrayConstructor;
203
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
204
204
  default: () => never[];
205
205
  };
206
206
  }, {
@@ -547,12 +547,15 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
547
547
  resetInlineBatchEdit: FunctionConstructor;
548
548
  resetBatchEditRowStatus: FunctionConstructor;
549
549
  anchor: {
550
- type: ArrayConstructor;
550
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
551
551
  default: () => never[];
552
552
  };
553
553
  }>> & {
554
554
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
555
555
  }>>;
556
+ attr: {
557
+ [x: string]: unknown;
558
+ };
556
559
  formatData: (data?: {
557
560
  tableList: any[];
558
561
  fieldList: any[];
@@ -579,6 +582,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
579
582
  'border-color': any;
580
583
  color?: undefined;
581
584
  };
585
+ getAttr: (field: string) => any;
582
586
  imgs2imgArr: (imgs: any) => any;
583
587
  parseDurationValue: (v: any, duration: any) => string | undefined;
584
588
  parseCombinationValue: (value: any, setting: any) => any;
@@ -599,11 +603,12 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
599
603
  rowIndex: any;
600
604
  };
601
605
  deleteRow: (row: any, col: any, index: number) => void;
602
- onFormChange: ({ value, row, column, index }: {
606
+ onFormChange: ({ value, row, column, index, type }: {
603
607
  value: string | number | null;
604
608
  row: any;
605
609
  column: any;
606
610
  index: number;
611
+ type?: string | undefined;
607
612
  }) => void;
608
613
  getDefaultValue: (params: any, item: any) => any;
609
614
  isAboutNestTable: import("vue").ComputedRef<any>;
@@ -621,9 +626,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
621
626
  $event: KeyboardEvent;
622
627
  }) => void;
623
628
  scroll: (params: any) => void;
624
- attr: {
625
- [x: string]: unknown;
626
- };
627
629
  currentCheckedKeys: import("vue").ComputedRef<never[]>;
628
630
  visibleCancelCheckAllBtn: import("vue").ComputedRef<boolean>;
629
631
  singleCheckedKey: import("vue").ComputedRef<string>;
@@ -701,7 +703,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
701
703
  handleFilterChangeAll: (val: any, field: any) => void;
702
704
  handleFilterChange: (value: any, name: any, field: any) => void;
703
705
  handleFilterSearchChange: (value: any, columnName: any, field: any) => void;
704
- handleFilterClearAll: (field: any) => void;
706
+ handleFilterClearAll: (columnName: any) => false | undefined;
705
707
  handleCancelFilter: () => void;
706
708
  mergeQuickSearchConfig: (filterFields: any, props: any) => void;
707
709
  handleFilter: (field: any) => void;
@@ -713,7 +715,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
713
715
  setGroupTreeExpand: () => void;
714
716
  resetTableInlineEditStatus: () => false | undefined;
715
717
  renderAnnotation: (columnConfig: import("../../../es/shared/types").AnyObject) => JSX.Element | null;
716
- toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
718
+ toolTipTitle: (item: any, type: any) => any[] | (() => any);
717
719
  triggerExpand: (e: any, isExpand: any) => void;
718
720
  getOtherConfigInit: () => any;
719
721
  refreshTable: () => void;
@@ -883,7 +885,7 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
883
885
  style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
884
886
  class: import("vue").Ref<string | undefined>;
885
887
  mergedClsPrefix: import("vue").Ref<string>;
886
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
888
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
887
889
  readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
888
890
  [key: string]: any;
889
891
  }> | (() => import("vue").VNodeChild)>;
@@ -1116,13 +1118,13 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
1116
1118
  resetInlineBatchEdit: FunctionConstructor;
1117
1119
  resetBatchEditRowStatus: FunctionConstructor;
1118
1120
  anchor: {
1119
- type: ArrayConstructor;
1121
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1120
1122
  default: () => never[];
1121
1123
  };
1122
1124
  }>> & {
1123
1125
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
1124
1126
  }, {
1125
- anchor: unknown[];
1127
+ anchor: import("../../../es/shared/types").AnyObject[];
1126
1128
  data: unknown[];
1127
1129
  showFooter: boolean;
1128
1130
  columnConfig: Record<string, any>;
@@ -198,7 +198,7 @@ declare const _default: import("vue").DefineComponent<{
198
198
  resetInlineBatchEdit: FunctionConstructor;
199
199
  resetBatchEditRowStatus: FunctionConstructor;
200
200
  anchor: {
201
- type: ArrayConstructor;
201
+ type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
202
202
  default: () => never[];
203
203
  };
204
204
  }, {
@@ -545,12 +545,15 @@ declare const _default: import("vue").DefineComponent<{
545
545
  resetInlineBatchEdit: FunctionConstructor;
546
546
  resetBatchEditRowStatus: FunctionConstructor;
547
547
  anchor: {
548
- type: ArrayConstructor;
548
+ type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
549
549
  default: () => never[];
550
550
  };
551
551
  }>> & {
552
552
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
553
553
  }>>;
554
+ attr: {
555
+ [x: string]: unknown;
556
+ };
554
557
  formatData: (data?: {
555
558
  tableList: any[];
556
559
  fieldList: any[];
@@ -577,6 +580,7 @@ declare const _default: import("vue").DefineComponent<{
577
580
  'border-color': any;
578
581
  color?: undefined;
579
582
  };
583
+ getAttr: (field: string) => any;
580
584
  imgs2imgArr: (imgs: any) => any;
581
585
  parseDurationValue: (v: any, duration: any) => string | undefined;
582
586
  parseCombinationValue: (value: any, setting: any) => any;
@@ -597,11 +601,12 @@ declare const _default: import("vue").DefineComponent<{
597
601
  rowIndex: any;
598
602
  };
599
603
  deleteRow: (row: any, col: any, index: number) => void;
600
- onFormChange: ({ value, row, column, index }: {
604
+ onFormChange: ({ value, row, column, index, type }: {
601
605
  value: string | number | null;
602
606
  row: any;
603
607
  column: any;
604
608
  index: number;
609
+ type?: string | undefined;
605
610
  }) => void;
606
611
  getDefaultValue: (params: any, item: any) => any;
607
612
  isAboutNestTable: import("vue").ComputedRef<any>;
@@ -619,9 +624,6 @@ declare const _default: import("vue").DefineComponent<{
619
624
  $event: KeyboardEvent;
620
625
  }) => void;
621
626
  scroll: (params: any) => void;
622
- attr: {
623
- [x: string]: unknown;
624
- };
625
627
  currentCheckedKeys: import("vue").ComputedRef<never[]>;
626
628
  visibleCancelCheckAllBtn: import("vue").ComputedRef<boolean>;
627
629
  singleCheckedKey: import("vue").ComputedRef<string>;
@@ -699,7 +701,7 @@ declare const _default: import("vue").DefineComponent<{
699
701
  handleFilterChangeAll: (val: any, field: any) => void;
700
702
  handleFilterChange: (value: any, name: any, field: any) => void;
701
703
  handleFilterSearchChange: (value: any, columnName: any, field: any) => void;
702
- handleFilterClearAll: (field: any) => void;
704
+ handleFilterClearAll: (columnName: any) => false | undefined;
703
705
  handleCancelFilter: () => void;
704
706
  mergeQuickSearchConfig: (filterFields: any, props: any) => void;
705
707
  handleFilter: (field: any) => void;
@@ -711,7 +713,7 @@ declare const _default: import("vue").DefineComponent<{
711
713
  setGroupTreeExpand: () => void;
712
714
  resetTableInlineEditStatus: () => false | undefined;
713
715
  renderAnnotation: (columnConfig: import("../../../shared/types").AnyObject) => JSX.Element | null;
714
- toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
716
+ toolTipTitle: (item: any, type: any) => any[] | (() => any);
715
717
  triggerExpand: (e: any, isExpand: any) => void;
716
718
  getOtherConfigInit: () => any;
717
719
  refreshTable: () => void;
@@ -881,7 +883,7 @@ declare const _default: import("vue").DefineComponent<{
881
883
  style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
882
884
  class: import("vue").Ref<string | undefined>;
883
885
  mergedClsPrefix: import("vue").Ref<string>;
884
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
886
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
885
887
  readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
886
888
  [key: string]: any;
887
889
  }> | (() => import("vue").VNodeChild)>;
@@ -1114,13 +1116,13 @@ declare const _default: import("vue").DefineComponent<{
1114
1116
  resetInlineBatchEdit: FunctionConstructor;
1115
1117
  resetBatchEditRowStatus: FunctionConstructor;
1116
1118
  anchor: {
1117
- type: ArrayConstructor;
1119
+ type: import("vue").PropType<import("../../../shared/types").AnyObject[]>;
1118
1120
  default: () => never[];
1119
1121
  };
1120
1122
  }>> & {
1121
1123
  [x: `on${string}`]: ((...args: any[]) => any) | undefined;
1122
1124
  }, {
1123
- anchor: unknown[];
1125
+ anchor: import("../../../shared/types").AnyObject[];
1124
1126
  data: unknown[];
1125
1127
  showFooter: boolean;
1126
1128
  columnConfig: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, nextTick, createVNode, h, resolveComponent, Teleport, createTextVNode, watch, openBlock, createElementBlock, Fragment, createBlock, unref, withCtx, renderList, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, mergeProps, renderSlot, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
2
- import { isArray, isFunction } from 'lodash-es';
2
+ import { isFunction, isArray } from 'lodash-es';
3
3
  import bigTableState from './bigTableState2.js';
4
4
  import bigTableProps from './bigTableProps2.js';
5
5
  import bigTableEmits from './bigTableEmits2.js';
@@ -57,11 +57,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  const xGrid = ref({});
58
58
  const copyState = XEUtils.clone(bigTableState, true);
59
59
  const state = reactive(copyState);
60
+ const attr = useAttrs();
60
61
  const {
61
62
  formatData,
62
63
  htmlToText,
63
- getBtnStyle
64
- } = useFormat(state);
64
+ getBtnStyle,
65
+ getAttr
66
+ } = useFormat(state, attr);
65
67
  const {
66
68
  imgs2imgArr,
67
69
  parseDurationValue,
@@ -104,7 +106,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
104
106
  keyDown,
105
107
  scroll
106
108
  } = useEvent(props, state, emit, xGrid, anchorEvent);
107
- const attr = useAttrs();
108
109
  const currentCheckedKeys = computed(() => {
109
110
  var _a;
110
111
  return ((_a = state.checkedRows) == null ? void 0 : _a.map((row) => row[props.primaryKey])) || [];
@@ -433,8 +434,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
433
434
  let filterField = false;
434
435
  let filterItems = [];
435
436
  try {
436
- const fieldSetting = JSON.parse(item.fieldSetting);
437
- filterField = ((_a2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _a2.type) === "manual" && item.isMerge != 1;
437
+ const fieldSetting = JSON.parse(item.fieldSetting || "{}");
438
+ let notParticipatingSearch = (fieldSetting == null ? void 0 : fieldSetting.notParticipatingSearch) || "";
439
+ filterField = notParticipatingSearch != 1 && ((_a2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _a2.type) === "manual" && item.isMerge != 1;
438
440
  filterItems = (_c2 = (_b2 = fieldSetting == null ? void 0 : fieldSetting.mapping) == null ? void 0 : _b2.mappingFiled) == null ? void 0 : _c2.map((item2) => item2.value[0]);
439
441
  } catch (e) {
440
442
  }
@@ -831,7 +833,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
831
833
  }, [createVNode("span", null, [createTextVNode("\u5DF2\u9009\u62E9"), field.CONVERT.length, createTextVNode("\u9879")]), createVNode(NButton, {
832
834
  "class": "checkbox-btn checkbox-btn-clear",
833
835
  "text": true,
834
- "onClick": () => handleFilterClearAll(field)
836
+ "onClick": () => handleFilterClearAll(item.columnName)
835
837
  }, {
836
838
  default: () => [createTextVNode("\u6E05\u7A7A")]
837
839
  })]) : null, createVNode("div", null, [createVNode(NButton, {
@@ -911,7 +913,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
911
913
  field.searchFilterCONVERT = value;
912
914
  _beforeSearchConvert = XEUtils.clone(value, true);
913
915
  };
914
- const handleFilterClearAll = (field) => {
916
+ const handleFilterClearAll = (columnName) => {
917
+ const field = state.filterFields[columnName];
918
+ if (!field)
919
+ return false;
915
920
  field.indeterminate = false;
916
921
  field.checkAll = false;
917
922
  state.filterFields[field.columnName].CONVERT = [];
@@ -970,6 +975,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
970
975
  if (name && tooltipTitle && name !== tooltipTitle) {
971
976
  isAlias = !!tooltipTitle;
972
977
  }
978
+ if (isFunction(item.headerSlotFn))
979
+ return () => item.headerSlotFn(item);
973
980
  if (type === "format")
974
981
  return [createVNode(script, {
975
982
  "tooltipTitle": tooltipTitle,
@@ -2278,7 +2285,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2278
2285
  formatData,
2279
2286
  xGrid,
2280
2287
  loadColumn,
2281
- loadData
2288
+ loadData,
2289
+ handleFilterClearAll
2282
2290
  });
2283
2291
  return (_ctx, _cache) => {
2284
2292
  var _a;
@@ -2331,20 +2339,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2331
2339
  "cell-class-name": _ctx.columnConfig.cellClassName || null,
2332
2340
  "row-config": {
2333
2341
  ...state.rowConfig,
2334
- ..._ctx.$attrs.rowConfig || {}
2342
+ ...unref(getAttr)("row-config")
2335
2343
  },
2336
2344
  "show-footer": _ctx.showFooter && !props.isInlineOperating,
2337
2345
  "footer-method": footerMethod,
2338
2346
  "sort-config": {
2339
2347
  trigger: "cell",
2340
2348
  remote: true,
2341
- ..._ctx.$attrs.sortConfig || {}
2349
+ ...unref(getAttr)("sort-config")
2342
2350
  },
2343
2351
  "span-method": colspanMethod,
2344
2352
  "footer-span-method": footerRowspanMethod,
2345
2353
  "tooltip-config": {
2346
2354
  enterable: false,
2347
- ..._ctx.$attrs.tooltipConfig || {}
2355
+ ...unref(getAttr)("tooltip-config")
2348
2356
  },
2349
2357
  "checkbox-config": {
2350
2358
  checkField: "checked",
@@ -2354,18 +2362,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2354
2362
  trigger: "cell",
2355
2363
  reserve: true,
2356
2364
  highlight: true,
2357
- ..._ctx.$attrs.checkboxConfig || {}
2365
+ ...unref(getAttr)("checkbox-config")
2358
2366
  },
2359
2367
  "radio-config": {
2360
2368
  checkField: "checked",
2361
2369
  trigger: "cell",
2362
2370
  reserve: true,
2363
2371
  highlight: true,
2364
- ..._ctx.$attrs.radioConfig || {}
2372
+ ...unref(getAttr)("radio-config")
2365
2373
  },
2366
2374
  "scroll-y": {
2367
2375
  gt: 50,
2368
- ..._ctx.$attrs.scrollY || {}
2376
+ ...unref(getAttr)("scroll-y")
2369
2377
  },
2370
2378
  "row-style": unref(getRowStyle),
2371
2379
  "edit-config": state.editConfig,
@@ -2376,7 +2384,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
2376
2384
  toggleMethod: unref(toggleExpandMethod),
2377
2385
  iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
2378
2386
  iconClose: "iconfont icon-a-xitongtubiaotianjia",
2379
- ..._ctx.$attrs.expandConfig || {}
2387
+ ...unref(getAttr)("expand-config")
2380
2388
  },
2381
2389
  "keyboard-config": _ctx.columnConfig.keyboardConfig || {},
2382
2390
  "edit-rules": _ctx.columnConfig.editRules || {},
@@ -200,7 +200,7 @@ declare const bigTableProps: {
200
200
  resetInlineBatchEdit: FunctionConstructor;
201
201
  resetBatchEditRowStatus: FunctionConstructor;
202
202
  anchor: {
203
- type: ArrayConstructor;
203
+ type: PropType<AnyObject[]>;
204
204
  default: () => never[];
205
205
  };
206
206
  };
@@ -36,20 +36,21 @@ var EditInput = defineComponent({
36
36
  formRef
37
37
  } = useCommon(props, attrs);
38
38
  const __value = ref(attrs.value);
39
+ const commData = {
40
+ row: props.row,
41
+ column: props.col,
42
+ index: props.index
43
+ };
39
44
  const onUpdateValue = (value) => {
40
45
  emit("formChange", {
41
46
  value,
42
- row: props.row,
43
- column: props.col,
44
- index: props.index
47
+ ...commData
45
48
  });
46
49
  };
47
50
  function onBlur() {
48
51
  emit("formChange", {
49
52
  value: __value.value,
50
- row: props.row,
51
- column: props.col,
52
- index: props.index
53
+ ...commData
53
54
  });
54
55
  }
55
56
  const config = {
@@ -68,7 +69,14 @@ var EditInput = defineComponent({
68
69
  }), null) : createVNode(NInputNumber, mergeProps({
69
70
  "ref": formRef
70
71
  }, attrs, config, {
71
- "onUpdateValue": onUpdateValue
72
+ "value": __value.value,
73
+ "onUpdate:value": ($event) => __value.value = $event,
74
+ "onUpdateValue": onUpdateValue,
75
+ "onBlur": () => emit("formChange", {
76
+ value: __value.value,
77
+ ...commData,
78
+ type: "blur"
79
+ })
72
80
  }), null);
73
81
  }
74
82
  });
@@ -326,11 +326,12 @@ export declare const useEdit: (props: any, state: any, emit: any, xGrid: any) =>
326
326
  initEditTable: () => Promise<void>;
327
327
  deleteRow: (row: any, col: any, index: number) => void;
328
328
  onClickSelectTable: (row: any) => Promise<void>;
329
- onFormChange: ({ value, row, column, index }: {
329
+ onFormChange: ({ value, row, column, index, type }: {
330
330
  value: number | string | null;
331
331
  row: any;
332
332
  column: any;
333
333
  index: number;
334
+ type?: string | undefined;
334
335
  }) => void;
335
336
  getDefaultValue: (params: any, item: any) => any;
336
337
  };
@@ -60,7 +60,8 @@ const useEdit = (props, state, emit, xGrid) => {
60
60
  value,
61
61
  row,
62
62
  column,
63
- index
63
+ index,
64
+ type
64
65
  }) => {
65
66
  var _a, _b;
66
67
  let oldValue = row[column.columnName];
@@ -84,7 +85,7 @@ const useEdit = (props, state, emit, xGrid) => {
84
85
  if (((column == null ? void 0 : column.formType) === "date" || (column == null ? void 0 : column.formType) === "time") && !value) {
85
86
  row[column.columnName] = void 0;
86
87
  }
87
- emit("formChange", { value, row, column, index, oldValue });
88
+ emit("formChange", { value, row, column, index, oldValue, ...type ? { type } : {} });
88
89
  };
89
90
  const getDefaultValue = (params, item) => {
90
91
  var _a;
@@ -1,4 +1,5 @@
1
- export declare const useFormat: (state: any) => {
1
+ import { AnyObject } from '../../../../../es/shared/types';
2
+ export declare const useFormat: (state: any, attr: AnyObject) => {
2
3
  formatData: (data?: {
3
4
  tableList: any[];
4
5
  fieldList: any[];
@@ -25,4 +26,5 @@ export declare const useFormat: (state: any) => {
25
26
  'border-color': any;
26
27
  color?: undefined;
27
28
  };
29
+ getAttr: (field: string) => any;
28
30
  };
@@ -1,7 +1,7 @@
1
1
  import XEUtils from 'xe-utils';
2
2
  import 'moment';
3
3
 
4
- const useFormat = (state) => {
4
+ const useFormat = (state, attr) => {
5
5
  const formatData = (data = {
6
6
  tableList: [],
7
7
  fieldList: [],
@@ -482,10 +482,19 @@ const useFormat = (state) => {
482
482
  "border-color": v.color
483
483
  };
484
484
  };
485
+ function getAttr(field) {
486
+ if (attr[field])
487
+ return attr[field];
488
+ const newField = field.replace(/-(\w)/g, ($0, $1) => {
489
+ return $1.toUpperCase();
490
+ });
491
+ return attr[newField] || {};
492
+ }
485
493
  return {
486
494
  formatData,
487
495
  htmlToText,
488
- getBtnStyle
496
+ getBtnStyle,
497
+ getAttr
489
498
  };
490
499
  };
491
500
 
@@ -383,7 +383,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
383
383
  key: string;
384
384
  render: () => import("vue").VNodeChild;
385
385
  }[]>;
386
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
386
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
387
387
  readonly label: StringConstructor;
388
388
  readonly labelWidth: import("vue").PropType<string | number>;
389
389
  readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
@@ -387,7 +387,7 @@ declare const _default: import("vue").DefineComponent<{
387
387
  key: string;
388
388
  render: () => import("vue").VNodeChild;
389
389
  }[]>;
390
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
390
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
391
391
  readonly label: StringConstructor;
392
392
  readonly labelWidth: import("vue").PropType<string | number>;
393
393
  readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
@@ -210,7 +210,7 @@ declare const _default: import("vue").DefineComponent<{
210
210
  key: string;
211
211
  render: () => import("vue").VNodeChild;
212
212
  }[]>;
213
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
213
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
214
214
  readonly label: StringConstructor;
215
215
  readonly labelWidth: import("vue").PropType<string | number>;
216
216
  readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
@@ -205,7 +205,7 @@ declare const DragLayout: SFCWithInstall<import("vue").DefineComponent<{
205
205
  } | null>;
206
206
  validate: import("naive-ui/es/form/src/interface").FormItemValidate;
207
207
  restoreValidation: () => void;
208
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
208
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
209
209
  readonly label: StringConstructor;
210
210
  readonly labelWidth: import("vue").PropType<string | number>;
211
211
  readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
@@ -205,7 +205,7 @@ declare const _default: import("vue").DefineComponent<{
205
205
  } | null>;
206
206
  validate: import("naive-ui/es/form/src/interface").FormItemValidate;
207
207
  restoreValidation: () => void;
208
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
208
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
209
209
  readonly label: StringConstructor;
210
210
  readonly labelWidth: import("vue").PropType<string | number>;
211
211
  readonly labelStyle: import("vue").PropType<string | import("vue").CSSProperties>;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createVNode, Teleport, withDirectives, vShow } from 'vue';
1
+ import { defineComponent, ref, watch, createVNode, Teleport, withDirectives, vShow } from 'vue';
2
2
  import { NSpace, NInputNumber } from 'naive-ui';
3
3
  import useStyle from './useStyle2.js';
4
4
  import { onClickOutside } from '@vueuse/core';
@@ -31,9 +31,11 @@ var PopupMenu = defineComponent({
31
31
  slots,
32
32
  emit
33
33
  }) {
34
+ let setNoShow = false;
34
35
  const popupRef = ref(null);
35
36
  onClickOutside(popupRef, (event) => {
36
- emit("update:show", false);
37
+ !setNoShow && emit("update:show", false);
38
+ setNoShow = false;
37
39
  });
38
40
  const {
39
41
  left
@@ -81,6 +83,11 @@ var PopupMenu = defineComponent({
81
83
  });
82
84
  }
83
85
  }
86
+ watch(() => props.show, (value) => {
87
+ if (value) {
88
+ setNoShow = true;
89
+ }
90
+ });
84
91
  return () => {
85
92
  return createVNode(Teleport, {
86
93
  "to": ".c-fabric-chart"
@@ -64,7 +64,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
64
64
  left.yScaleValue.forEach((scaleValue) => {
65
65
  drawPositionLine(scaleValue);
66
66
  scaleValue.dataList.forEach((item, dataIndex) => {
67
- drawPolyLine(item, dataIndex, scaleValue);
67
+ if (scaleValue.type !== "temperature" || item.enable) {
68
+ drawPolyLine(item, dataIndex, scaleValue);
69
+ }
68
70
  });
69
71
  });
70
72
  drawShaDow();
@@ -228,13 +230,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
228
230
  });
229
231
  }
230
232
  function drawPolyLine(item, dataIndex, scaleValue) {
231
- const {
232
- pointAttr = {},
233
- lineAttr = {},
234
- type: pointType = "circle",
235
- upArrowShow = false,
236
- limitValueShow = false
237
- } = item;
238
233
  const {
239
234
  type,
240
235
  noRiseStyle = {},
@@ -242,13 +237,22 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
242
237
  reduceStyle = {},
243
238
  pacemaker = {},
244
239
  upArrowStyle = {},
245
- limitValueStyle = {}
240
+ limitValueStyle = {},
241
+ dataList = []
246
242
  } = scaleValue;
247
243
  const pointList = [];
248
244
  const lineList = [];
249
245
  const otherList = [];
250
246
  item.list.forEach((v, index) => {
251
- var _a, _b;
247
+ var _a;
248
+ const _item = type !== "temperature" ? item : dataList.find((_v) => _v.key === v.key);
249
+ const {
250
+ pointAttr = {},
251
+ lineAttr = {},
252
+ type: pointType = "circle",
253
+ upArrowShow = false,
254
+ limitValueShow = false
255
+ } = _item;
252
256
  const points = getPointer(v, scaleValue);
253
257
  const nextV = item.list[index + 1];
254
258
  const nextPoint = getPointer(nextV, scaleValue);
@@ -330,9 +334,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
330
334
  line = drawLine([...points, ...nextPoint], {
331
335
  ...lineAttr
332
336
  });
333
- } else if (points && !nextPoint && !v.breakpoint && type === "temperature" && dataIndex < scaleValue.dataList.length - 1 && index === item.list.length - 1) {
334
- const nextV2 = (_b = scaleValue.dataList[dataIndex + 1].list) == null ? void 0 : _b[0];
335
- const nextLinePoint = getPointer(nextV2, scaleValue);
337
+ } else if (points && !nextPoint && !v.breakpoint) {
338
+ const nextLinePoint = getPointer(nextV, scaleValue);
336
339
  line = nextLinePoint ? drawLine([...points, ...nextLinePoint], {
337
340
  ...lineAttr
338
341
  }) : null;
@@ -373,12 +376,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
373
376
  } else {
374
377
  if (points) {
375
378
  pointAttrNew.leftLine = null;
376
- if (type == "temperature" && index === 0) {
377
- const objLine = [...prevLines].find((v2) => v2.dataIndex === dataIndex - 1);
378
- if (objLine) {
379
- pointAttrNew.leftLine = objLine.line;
380
- }
381
- }
382
379
  point = drawPoint(currentPointType, {
383
380
  left: points[0],
384
381
  top: points[1],
@@ -526,7 +523,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
526
523
  emits("add", {
527
524
  data: {
528
525
  time: getXValue(item.pointer.x),
529
- value: getYValue(item.origin.type, item.pointer.y)
526
+ value: getYValue(item.origin.type, item.pointer.y),
527
+ ...item.origin.type !== "temperature" ? {} : { key: item.origin.key }
530
528
  },
531
529
  ...item.origin
532
530
  });
@@ -536,6 +534,9 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
536
534
  value: target.origin.data.value
537
535
  };
538
536
  data[`${item.type}`] = item.value;
537
+ if (target.origin.type === "temperature") {
538
+ data["key"] = target.origin.key;
539
+ }
539
540
  emits("change", {
540
541
  ...target.origin,
541
542
  data