cnhis-design-vue 3.1.57-release.1 → 3.1.57-release.3

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 (174) hide show
  1. package/es/components/button-print/index.d.ts +8 -8
  2. package/es/components/button-print/src/ButtonPrint.vue.d.ts +8 -8
  3. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  4. package/es/components/button-print/src/components/EditFormat.vue.d.ts +3 -3
  5. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -7
  6. package/es/components/button-print/style/index.css +1 -1
  7. package/es/components/calendar/index.d.ts +276 -0
  8. package/es/components/calendar/index.js +1 -0
  9. package/es/components/calendar/src/Calendar.vue.d.ts +265 -0
  10. package/es/components/calendar/src/Calendar.vue.js +1 -0
  11. package/es/components/calendar/src/Calendar.vue2.js +1 -0
  12. package/es/components/calendar/src/types/index.d.ts +6 -0
  13. package/es/components/calendar/src/types/index.js +1 -0
  14. package/es/components/calendar/style/index.css +1 -0
  15. package/es/components/callback/src/components/render/popupMaps.d.ts +233 -224
  16. package/es/components/classification/index.d.ts +3 -3
  17. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -3
  18. package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -3
  19. package/es/components/classification/src/index.vue.d.ts +3 -3
  20. package/es/components/date-picker/index.d.ts +1 -1
  21. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  22. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  23. package/es/components/expand-field/index.d.ts +98 -26
  24. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +95 -23
  25. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +95 -23
  26. package/es/components/expand-field/src/components/form.vue.d.ts +98 -26
  27. package/es/components/expand-field/src/index.vue.d.ts +98 -26
  28. package/es/components/fabric-chart/index.d.ts +4 -2
  29. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
  30. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  31. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  36. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  38. package/es/components/fabric-chart/src/interface.d.ts +4 -3
  39. package/es/components/field-set/index.d.ts +107 -616
  40. package/es/components/field-set/index.js +1 -1
  41. package/es/components/field-set/src/FieldColor.vue.d.ts +1680 -0
  42. package/es/components/field-set/src/FieldColor.vue.js +1 -0
  43. package/es/components/field-set/src/FieldColor.vue2.js +1 -0
  44. package/es/components/field-set/src/FieldSet.vue.d.ts +58 -16
  45. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  46. package/es/components/field-set/src/Index.vue.d.ts +141 -0
  47. package/es/components/field-set/src/Index.vue.js +1 -0
  48. package/es/components/field-set/src/Index.vue2.js +1 -0
  49. package/es/components/field-set/src/components/Row.vue.d.ts +50 -9
  50. package/es/components/field-set/src/components/Row.vue2.js +1 -1
  51. package/es/components/field-set/src/components/condition.vue.d.ts +172 -0
  52. package/es/components/field-set/src/components/condition.vue.js +1 -0
  53. package/es/components/field-set/src/components/condition.vue2.js +1 -0
  54. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1194 -0
  55. package/es/components/field-set/src/components/edit-dialog.vue.js +1 -0
  56. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -0
  57. package/es/components/field-set/src/components/edit-filter.vue.d.ts +286 -0
  58. package/es/components/field-set/src/components/edit-filter.vue.js +1 -0
  59. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -0
  60. package/es/components/field-set/src/constants/index.d.ts +55 -0
  61. package/es/components/field-set/src/constants/index.js +1 -0
  62. package/es/components/field-set/src/types/index.d.ts +31 -1
  63. package/es/components/field-set/src/utils/index.d.ts +2 -1
  64. package/es/components/field-set/src/utils/index.js +1 -1
  65. package/es/components/field-set/style/index.css +1 -1
  66. package/es/components/form-config/index.d.ts +79 -42
  67. package/es/components/form-config/src/FormConfig.vue.d.ts +79 -42
  68. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  69. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
  70. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +5 -2
  71. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
  72. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -11
  73. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
  74. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +5 -2
  75. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
  76. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  77. package/es/components/form-config/src/constants/index.d.ts +3 -2
  78. package/es/components/form-config/src/constants/index.js +1 -1
  79. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +16 -12
  80. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  81. package/es/components/form-config/src/types/index.d.ts +14 -2
  82. package/es/components/form-render/index.d.ts +17 -8
  83. package/es/components/form-render/index.js +1 -1
  84. package/es/components/form-render/src/FormRender.vue.d.ts +17 -8
  85. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  86. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +17 -8
  87. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +12 -0
  88. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
  89. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  90. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  91. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +12 -0
  92. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
  93. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  94. package/es/components/form-render/src/hooks/index.d.ts +1 -0
  95. package/es/components/form-render/src/hooks/index.js +1 -1
  96. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  97. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  98. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  99. package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
  100. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
  101. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  102. package/es/components/form-render/src/types/index.d.ts +1 -1
  103. package/es/components/guide/src/renderer.d.ts +2 -2
  104. package/es/components/iho-table/index.d.ts +216 -216
  105. package/es/components/iho-table/src/IhoTable.vue.d.ts +216 -216
  106. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +1 -1
  107. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -1
  108. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  109. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
  110. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  111. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
  112. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  113. package/es/components/iho-table/src/types/index.d.ts +1 -0
  114. package/es/components/index.css +1 -1
  115. package/es/components/index.d.ts +2 -1
  116. package/es/components/index.js +1 -1
  117. package/es/components/info-header/index.d.ts +41 -23
  118. package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -23
  119. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  120. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  121. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +18 -9
  122. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +17 -8
  123. package/es/components/keyboard/index.d.ts +1 -1
  124. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  125. package/es/components/quick-search/index.d.ts +3 -3
  126. package/es/components/quick-search/src/index.vue.d.ts +3 -3
  127. package/es/components/recommend-search/index.d.ts +6 -6
  128. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +6 -6
  129. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  130. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  131. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  132. package/es/components/scale-view/index.d.ts +3 -3
  133. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -3
  134. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  135. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  136. package/es/components/select-label/index.d.ts +2 -2
  137. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  138. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  139. package/es/components/select-label/src/index.vue.d.ts +1 -1
  140. package/es/components/select-person/index.d.ts +95 -23
  141. package/es/components/select-person/src/SelectPerson.vue.d.ts +84 -17
  142. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  143. package/es/components/select-person/src/types/enums.d.ts +9 -0
  144. package/es/components/select-person/src/types/enums.js +1 -1
  145. package/es/components/select-person/style/index.css +1 -1
  146. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  147. package/es/components/shortcut-setter/index.d.ts +18 -8
  148. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -8
  149. package/es/components/table-export-field/index.d.ts +3 -3
  150. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -3
  151. package/es/components/table-export-field/src/index.vue.d.ts +3 -3
  152. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -1
  153. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +1 -1
  154. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -1
  155. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -1
  156. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
  157. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
  158. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
  159. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -2
  160. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  161. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  162. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  163. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  164. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
  165. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -4
  166. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
  167. package/es/components/time-line/index.d.ts +7 -7
  168. package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
  169. package/es/shared/package.json.js +1 -1
  170. package/es/shared/types/business.d.ts +23 -3
  171. package/es/shared/utils/business.d.ts +2 -1
  172. package/es/shared/utils/business.js +1 -1
  173. package/es/shared/utils/index.js +1 -1
  174. package/package.json +8 -2
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
109
109
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
110
110
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
111
111
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
112
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
112
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
113
113
  linebarAutoHidden: boolean;
114
114
  bordered: string | boolean;
115
115
  uniqueCacheData: boolean;
@@ -118,6 +118,9 @@ declare const _default: import("vue").DefineComponent<{
118
118
  forceClearable: boolean;
119
119
  }>>>;
120
120
  };
121
+ beforeMove: {
122
+ type: PropType<((payload: import("../../../components/form-config/src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
123
+ };
121
124
  }, {
122
125
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
123
126
  maxHeight: {
@@ -224,7 +227,7 @@ declare const _default: import("vue").DefineComponent<{
224
227
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
225
228
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
226
229
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
227
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
230
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
228
231
  linebarAutoHidden: boolean;
229
232
  bordered: string | boolean;
230
233
  uniqueCacheData: boolean;
@@ -233,6 +236,9 @@ declare const _default: import("vue").DefineComponent<{
233
236
  forceClearable: boolean;
234
237
  }>>>;
235
238
  };
239
+ beforeMove: {
240
+ type: PropType<((payload: import("../../../components/form-config/src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
241
+ };
236
242
  }>> & {
237
243
  onAddItem?: ((...args: any[]) => any) | undefined;
238
244
  onRemoveItem?: ((...args: any[]) => any) | undefined;
@@ -241,16 +247,6 @@ declare const _default: import("vue").DefineComponent<{
241
247
  emit: (event: "addItem" | "removeItem" | "reactionsValidateFailure", ...args: any[]) => void;
242
248
  uuid: string;
243
249
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
244
- getCommonConfig: (formConfig?: FormConfigItem | undefined) => {
245
- move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
246
- onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
247
- onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
248
- tag: string;
249
- forceFallback: boolean;
250
- animation: string;
251
- 'item-key': string;
252
- group: string;
253
- };
254
250
  fieldListRef: import("vue").Ref<{
255
251
  key: string;
256
252
  layoutWidthEnum: import("../../../components/form-config/src/types").FormConfigWidth;
@@ -429,6 +425,7 @@ declare const _default: import("vue").DefineComponent<{
429
425
  lazyRequest?: boolean | undefined;
430
426
  requestCache?: boolean | undefined;
431
427
  maxGroupNum?: number | undefined;
428
+ minGroupNum?: number | undefined;
432
429
  jsonCombination?: boolean | undefined;
433
430
  combinationItemDeletable?: boolean | import("../../../components/form-render").CombinationItemDeletableFn | undefined;
434
431
  children?: any[] | undefined;
@@ -2179,6 +2176,7 @@ declare const _default: import("vue").DefineComponent<{
2179
2176
  lazyRequest?: boolean | undefined;
2180
2177
  requestCache?: boolean | undefined;
2181
2178
  maxGroupNum?: number | undefined;
2179
+ minGroupNum?: number | undefined;
2182
2180
  jsonCombination?: boolean | undefined;
2183
2181
  combinationItemDeletable?: boolean | import("../../../components/form-render").CombinationItemDeletableFn | undefined;
2184
2182
  children?: any[] | undefined;
@@ -3780,6 +3778,16 @@ declare const _default: import("vue").DefineComponent<{
3780
3778
  __oppositeBindField?: any | undefined;
3781
3779
  __oppositeTargetField?: any | undefined;
3782
3780
  }[]>;
3781
+ getSortOption: () => {
3782
+ move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
3783
+ onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
3784
+ onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
3785
+ tag: string;
3786
+ forceFallback: boolean;
3787
+ animation: string;
3788
+ 'item-key': string;
3789
+ group: string;
3790
+ };
3783
3791
  addItem: (formConfigItem: FormConfigItem) => void;
3784
3792
  parsedTextFormatter: FormConfigTextFormatter;
3785
3793
  currentEditField: import("vue").Ref<FormConfigItem | undefined>;
@@ -3967,6 +3975,7 @@ declare const _default: import("vue").DefineComponent<{
3967
3975
  lazyRequest?: boolean | undefined;
3968
3976
  requestCache?: boolean | undefined;
3969
3977
  maxGroupNum?: number | undefined;
3978
+ minGroupNum?: number | undefined;
3970
3979
  jsonCombination?: boolean | undefined;
3971
3980
  combinationItemDeletable?: boolean | import("../../../components/form-render").CombinationItemDeletableFn | undefined;
3972
3981
  children?: any[] | undefined;
@@ -5717,6 +5726,7 @@ declare const _default: import("vue").DefineComponent<{
5717
5726
  lazyRequest?: boolean | undefined;
5718
5727
  requestCache?: boolean | undefined;
5719
5728
  maxGroupNum?: number | undefined;
5729
+ minGroupNum?: number | undefined;
5720
5730
  jsonCombination?: boolean | undefined;
5721
5731
  combinationItemDeletable?: boolean | import("../../../components/form-render").CombinationItemDeletableFn | undefined;
5722
5732
  children?: any[] | undefined;
@@ -7517,7 +7527,10 @@ declare const _default: import("vue").DefineComponent<{
7517
7527
  default: boolean;
7518
7528
  };
7519
7529
  lowCodeReactions: {
7520
- type: PropType<LowCodeTypes.reactionsConfig[]>;
7530
+ type: PropType<LowCodeTypes.reactionConfig[]>;
7531
+ };
7532
+ newLowCodeReactions: {
7533
+ type: PropType<LowCodeTypes.newReactionConfig[]>;
7521
7534
  };
7522
7535
  operationalForm: {
7523
7536
  type: PropType<LowCodeTypes.operationalConfig[]>;
@@ -7679,7 +7692,10 @@ declare const _default: import("vue").DefineComponent<{
7679
7692
  default: boolean;
7680
7693
  };
7681
7694
  lowCodeReactions: {
7682
- type: PropType<LowCodeTypes.reactionsConfig[]>;
7695
+ type: PropType<LowCodeTypes.reactionConfig[]>;
7696
+ };
7697
+ newLowCodeReactions: {
7698
+ type: PropType<LowCodeTypes.newReactionConfig[]>;
7683
7699
  };
7684
7700
  operationalForm: {
7685
7701
  type: PropType<LowCodeTypes.operationalConfig[]>;
@@ -7712,7 +7728,7 @@ declare const _default: import("vue").DefineComponent<{
7712
7728
  onScroll?: ((...args: any[]) => any) | undefined;
7713
7729
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
7714
7730
  }>>;
7715
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
7731
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
7716
7732
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
7717
7733
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
7718
7734
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -7770,7 +7786,7 @@ declare const _default: import("vue").DefineComponent<{
7770
7786
  [x: string]: any;
7771
7787
  }>;
7772
7788
  lowCodeReactionsHandler: (field: string) => void;
7773
- triggerAllReactionsHandler: () => void;
7789
+ newLowCodeReactionsHandler: (field: string) => void;
7774
7790
  operationalFormHandler: {
7775
7791
  trigger(fieldKey: string): void;
7776
7792
  triggerAll(): void;
@@ -7864,7 +7880,7 @@ declare const _default: import("vue").DefineComponent<{
7864
7880
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
7865
7881
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
7866
7882
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
7867
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
7883
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
7868
7884
  linebarAutoHidden: boolean;
7869
7885
  bordered: string | boolean;
7870
7886
  uniqueCacheData: boolean;
@@ -8048,7 +8064,7 @@ declare const _default: import("vue").DefineComponent<{
8048
8064
  readonly displayDirective: "if" | "show" | "show:lazy";
8049
8065
  }>;
8050
8066
  NTabs: any;
8051
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8067
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8052
8068
  fieldList: {
8053
8069
  type: PropType<import("../../../components/form-render").FieldItem[]>;
8054
8070
  };
@@ -8181,7 +8197,10 @@ declare const _default: import("vue").DefineComponent<{
8181
8197
  default: boolean;
8182
8198
  };
8183
8199
  lowCodeReactions: {
8184
- type: PropType<LowCodeTypes.reactionsConfig[]>;
8200
+ type: PropType<LowCodeTypes.reactionConfig[]>;
8201
+ };
8202
+ newLowCodeReactions: {
8203
+ type: PropType<LowCodeTypes.newReactionConfig[]>;
8185
8204
  };
8186
8205
  operationalForm: {
8187
8206
  type: PropType<LowCodeTypes.operationalConfig[]>;
@@ -8217,7 +8236,6 @@ declare const _default: import("vue").DefineComponent<{
8217
8236
  anchor: boolean;
8218
8237
  maxHeight: string | number;
8219
8238
  column: number;
8220
- forceClearable: boolean;
8221
8239
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
8222
8240
  initialData: import("../../../shared/types").AnyObject;
8223
8241
  parallelism: number;
@@ -8228,6 +8246,7 @@ declare const _default: import("vue").DefineComponent<{
8228
8246
  bordered: string | boolean;
8229
8247
  uniqueCacheData: boolean;
8230
8248
  outBordered: boolean;
8249
+ forceClearable: boolean;
8231
8250
  operationalFormInit: boolean;
8232
8251
  }>;
8233
8252
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
@@ -8245,11 +8264,13 @@ declare const _default: import("vue").DefineComponent<{
8245
8264
  required: true;
8246
8265
  };
8247
8266
  }, {
8267
+ globProps: import("../../../shared/types").AnyObject | undefined;
8248
8268
  getItemColumnStyle: (formConfigItem?: FormConfigItem | undefined) => {
8249
8269
  '--item-column': number;
8250
8270
  };
8251
- getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
8252
- getCommonConfig: (formConfig?: FormConfigItem | undefined) => {
8271
+ fieldList: import("vue").Ref<FormConfigItem[]> | undefined;
8272
+ materialList: import("vue").Ref<FormConfigItem[]> | undefined;
8273
+ getSortOption: (formConfigItem?: FormConfigItem | undefined) => {
8253
8274
  move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
8254
8275
  onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
8255
8276
  onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
@@ -8259,6 +8280,7 @@ declare const _default: import("vue").DefineComponent<{
8259
8280
  'item-key': string;
8260
8281
  group: string;
8261
8282
  };
8283
+ getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
8262
8284
  Draggable: import("vue").DefineComponent<{
8263
8285
  list: {
8264
8286
  type: ArrayConstructor;
@@ -8437,7 +8459,7 @@ declare const _default: import("vue").DefineComponent<{
8437
8459
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
8438
8460
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
8439
8461
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
8440
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
8462
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
8441
8463
  linebarAutoHidden: boolean;
8442
8464
  bordered: string | boolean;
8443
8465
  uniqueCacheData: boolean;
@@ -8543,7 +8565,7 @@ declare const _default: import("vue").DefineComponent<{
8543
8565
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
8544
8566
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
8545
8567
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
8546
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
8568
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
8547
8569
  linebarAutoHidden: boolean;
8548
8570
  bordered: string | boolean;
8549
8571
  uniqueCacheData: boolean;
@@ -8718,6 +8740,7 @@ declare const _default: import("vue").DefineComponent<{
8718
8740
  lazyRequest?: boolean | undefined;
8719
8741
  requestCache?: boolean | undefined;
8720
8742
  maxGroupNum?: number | undefined;
8743
+ minGroupNum?: number | undefined;
8721
8744
  jsonCombination?: boolean | undefined;
8722
8745
  combinationItemDeletable?: boolean | import("../../../components/form-render").CombinationItemDeletableFn | undefined;
8723
8746
  children?: any[] | undefined;
@@ -10479,6 +10502,7 @@ declare const _default: import("vue").DefineComponent<{
10479
10502
  lazyRequest?: boolean | undefined;
10480
10503
  requestCache?: boolean | undefined;
10481
10504
  maxGroupNum?: number | undefined;
10505
+ minGroupNum?: number | undefined;
10482
10506
  jsonCombination?: boolean | undefined;
10483
10507
  combinationItemDeletable?: boolean | import("../../../components/form-render").CombinationItemDeletableFn | undefined;
10484
10508
  children?: any[] | undefined;
@@ -12213,6 +12237,7 @@ declare const _default: import("vue").DefineComponent<{
12213
12237
  lazyRequest?: boolean | undefined;
12214
12238
  requestCache?: boolean | undefined;
12215
12239
  maxGroupNum?: number | undefined;
12240
+ minGroupNum?: number | undefined;
12216
12241
  jsonCombination?: boolean | undefined;
12217
12242
  combinationItemDeletable?: boolean | import("../../../components/form-render").CombinationItemDeletableFn | undefined;
12218
12243
  children?: any[] | undefined;
@@ -13930,7 +13955,10 @@ declare const _default: import("vue").DefineComponent<{
13930
13955
  default: boolean;
13931
13956
  };
13932
13957
  lowCodeReactions: {
13933
- type: PropType<LowCodeTypes.reactionsConfig[]>;
13958
+ type: PropType<LowCodeTypes.reactionConfig[]>;
13959
+ };
13960
+ newLowCodeReactions: {
13961
+ type: PropType<LowCodeTypes.newReactionConfig[]>;
13934
13962
  };
13935
13963
  operationalForm: {
13936
13964
  type: PropType<LowCodeTypes.operationalConfig[]>;
@@ -14092,7 +14120,10 @@ declare const _default: import("vue").DefineComponent<{
14092
14120
  default: boolean;
14093
14121
  };
14094
14122
  lowCodeReactions: {
14095
- type: PropType<LowCodeTypes.reactionsConfig[]>;
14123
+ type: PropType<LowCodeTypes.reactionConfig[]>;
14124
+ };
14125
+ newLowCodeReactions: {
14126
+ type: PropType<LowCodeTypes.newReactionConfig[]>;
14096
14127
  };
14097
14128
  operationalForm: {
14098
14129
  type: PropType<LowCodeTypes.operationalConfig[]>;
@@ -14125,7 +14156,7 @@ declare const _default: import("vue").DefineComponent<{
14125
14156
  onScroll?: ((...args: any[]) => any) | undefined;
14126
14157
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
14127
14158
  }>>;
14128
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
14159
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
14129
14160
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
14130
14161
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
14131
14162
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -14183,7 +14214,7 @@ declare const _default: import("vue").DefineComponent<{
14183
14214
  [x: string]: any;
14184
14215
  }>;
14185
14216
  lowCodeReactionsHandler: (field: string) => void;
14186
- triggerAllReactionsHandler: () => void;
14217
+ newLowCodeReactionsHandler: (field: string) => void;
14187
14218
  operationalFormHandler: {
14188
14219
  trigger(fieldKey: string): void;
14189
14220
  triggerAll(): void;
@@ -14277,7 +14308,7 @@ declare const _default: import("vue").DefineComponent<{
14277
14308
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
14278
14309
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
14279
14310
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
14280
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
14311
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
14281
14312
  linebarAutoHidden: boolean;
14282
14313
  bordered: string | boolean;
14283
14314
  uniqueCacheData: boolean;
@@ -14461,7 +14492,7 @@ declare const _default: import("vue").DefineComponent<{
14461
14492
  readonly displayDirective: "if" | "show" | "show:lazy";
14462
14493
  }>;
14463
14494
  NTabs: any;
14464
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14495
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14465
14496
  fieldList: {
14466
14497
  type: PropType<import("../../../components/form-render").FieldItem[]>;
14467
14498
  };
@@ -14594,7 +14625,10 @@ declare const _default: import("vue").DefineComponent<{
14594
14625
  default: boolean;
14595
14626
  };
14596
14627
  lowCodeReactions: {
14597
- type: PropType<LowCodeTypes.reactionsConfig[]>;
14628
+ type: PropType<LowCodeTypes.reactionConfig[]>;
14629
+ };
14630
+ newLowCodeReactions: {
14631
+ type: PropType<LowCodeTypes.newReactionConfig[]>;
14598
14632
  };
14599
14633
  operationalForm: {
14600
14634
  type: PropType<LowCodeTypes.operationalConfig[]>;
@@ -14630,7 +14664,6 @@ declare const _default: import("vue").DefineComponent<{
14630
14664
  anchor: boolean;
14631
14665
  maxHeight: string | number;
14632
14666
  column: number;
14633
- forceClearable: boolean;
14634
14667
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14635
14668
  initialData: import("../../../shared/types").AnyObject;
14636
14669
  parallelism: number;
@@ -14641,6 +14674,7 @@ declare const _default: import("vue").DefineComponent<{
14641
14674
  bordered: string | boolean;
14642
14675
  uniqueCacheData: boolean;
14643
14676
  outBordered: boolean;
14677
+ forceClearable: boolean;
14644
14678
  operationalFormInit: boolean;
14645
14679
  }>;
14646
14680
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
@@ -14740,7 +14774,7 @@ declare const _default: import("vue").DefineComponent<{
14740
14774
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
14741
14775
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
14742
14776
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
14743
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
14777
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
14744
14778
  linebarAutoHidden: boolean;
14745
14779
  bordered: string | boolean;
14746
14780
  uniqueCacheData: boolean;
@@ -14758,7 +14792,7 @@ declare const _default: import("vue").DefineComponent<{
14758
14792
  };
14759
14793
  }, {
14760
14794
  props: {
14761
- modelValue: LowCodeTypes.reactionsConfig[];
14795
+ modelValue: LowCodeTypes.reactionConfig[];
14762
14796
  };
14763
14797
  emit: (event: "update:modelValue" | "validateFailure", ...args: any[]) => void;
14764
14798
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
@@ -14794,16 +14828,16 @@ declare const _default: import("vue").DefineComponent<{
14794
14828
  expandedName: import("vue").Ref<string>;
14795
14829
  addConnection: () => void;
14796
14830
  removeConnection: (index: number) => void;
14797
- getOppositeBtnText: (item: LowCodeTypes.reactionsConfig) => string | undefined;
14798
- unBindOpposite: (item: LowCodeTypes.reactionsConfig) => void;
14799
- addOppositeCondition: (item: LowCodeTypes.reactionsConfig) => void;
14831
+ getOppositeBtnText: (item: LowCodeTypes.reactionConfig) => string | undefined;
14832
+ unBindOpposite: (item: LowCodeTypes.reactionConfig) => void;
14833
+ addOppositeCondition: (item: LowCodeTypes.reactionConfig) => void;
14800
14834
  getOppositeSqlExpression: (expression?: string | undefined) => string | undefined;
14801
- createOppositeCondition: (config: LowCodeTypes.reactionsConfig) => LowCodeTypes.reactionsConfig;
14802
- isOppositeConfig: (c1: LowCodeTypes.reactionsConfig, c2: LowCodeTypes.reactionsConfig) => boolean;
14835
+ createOppositeCondition: (config: LowCodeTypes.reactionConfig) => LowCodeTypes.reactionConfig;
14836
+ isOppositeConfig: (c1: LowCodeTypes.reactionConfig, c2: LowCodeTypes.reactionConfig) => boolean;
14803
14837
  onUpdateExpandedNames: (value: string[]) => void;
14804
14838
  getBinderFieldDesc: (index: number) => string;
14805
- addCondition: (config: LowCodeTypes.reactionsConfig) => void;
14806
- removeCondition: (config: LowCodeTypes.reactionsConfig, index: number) => void;
14839
+ addCondition: (config: LowCodeTypes.reactionConfig) => void;
14840
+ removeCondition: (config: LowCodeTypes.reactionConfig, index: number) => void;
14807
14841
  onUpdateConditionType: (condition: LowCodeTypes.reactionsConObj, type: LowCodeTypes.VALUE_RELATION) => void;
14808
14842
  showRef: import("vue").Ref<boolean>;
14809
14843
  fieldListRef: import("vue").Ref<FormConfigItem[]>;
@@ -15018,7 +15052,7 @@ declare const _default: import("vue").DefineComponent<{
15018
15052
  businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
15019
15053
  requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
15020
15054
  enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
15021
- lowCodeReactions: LowCodeTypes.reactionsConfig[];
15055
+ lowCodeReactions: LowCodeTypes.reactionConfig[];
15022
15056
  linebarAutoHidden: boolean;
15023
15057
  bordered: string | boolean;
15024
15058
  uniqueCacheData: boolean;
@@ -15027,6 +15061,9 @@ declare const _default: import("vue").DefineComponent<{
15027
15061
  forceClearable: boolean;
15028
15062
  }>>>;
15029
15063
  };
15064
+ beforeMove: {
15065
+ type: PropType<((payload: import("../../../components/form-config/src/types").FormConfigBeforeMovePayload) => boolean | void) | undefined>;
15066
+ };
15030
15067
  }>> & {
15031
15068
  onAddItem?: ((...args: any[]) => any) | undefined;
15032
15069
  onRemoveItem?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,provide as o,ref as t,computed as a,toRaw as r,openBlock as i,createElementBlock as s,mergeProps as l,unref as n,createElementVNode as m,createVNode as u,withCtx as f,createBlock as d,isRef as c,createCommentVNode as p,createTextVNode as v}from"vue";import{useTheme as g}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isArray as h,cloneDeep as _,isFunction as y}from"lodash-es";import"@vue/shared";import{uuidGenerator as C,traverse as x}from"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NSelect as j,NSpace as k}from"naive-ui";import{useVersion as F}from"../../../shared/hooks/useVersion.js";import L from"../../../shared/components/VueDraggable/src/vuedraggable.js";import V from"./components/FormConfigCreator.vue.js";import b from"./components/FormConfigDragDisplay.vue.js";import w from"./components/FormConfigEdit.vue.js";import R from"./components/FormConfigEventSetting.vue.js";import E from"./components/FormConfigMaterialItem.js";import{useDataNormalize as M}from"./hooks/useDataNormalize.js";import{InjectionFormConfigEmit as I,InjectionFieldList as D,InjectionMaterialList as H,InjectionLowCodeReactions as O,InjectionActiveFieldItem as S,FORM_CONFIG_GROUP as N}from"./constants/index.js";import"./utils/index.js";import{useSortableConfig as U}from"./hooks/useSortalbeConfig.js";import"./hooks/useConfigurationField.js";const A=["id"],B={class:"form-config__material"},T=m("header",{class:"form-config__materialHeader"},"物料区",-1),P={class:"form-config__displayWrapper"},z={class:"form-config__displayHeader"},W={class:"form-config__config"},q=m("header",{class:"form-config__configHeader"},"配置区",-1),G={class:"form-config__configContent"};var J=e({__name:"FormConfig",props:{maxHeight:{type:String},fieldVisitor:{type:Object},textFormatter:{type:Function},formRenderRef:{type:Object},extraMaterialList:{type:[Array,Function]},showLowCodeReactions:Boolean,formProps:{type:Object}},emits:["addItem","removeItem","reactionsValidateFailure"],setup(e,{expose:J,emit:K}){const Q=e;o(I,K);const X=C(),Y=g(),{getCommonConfig:Z}=U(),$=t([]);o(D,$);const ee=t([]);o(H,ee);const oe=t([]);function te(e){$.value.some((o=>o.key===e.key))||$.value.push(e)}o(O,oe);const ae=(e,o)=>y(Q.textFormatter)?Q.textFormatter(e,o):o,re=t();o(S,re);const ie=t(),{transform:se,inverseTransform:le}=M(Q),ne=a({get:()=>null,set(e){if(!e)return;const o=ue.value.find((o=>o.key===e));o&&(o.__extra=!0,ee.value.push(o),K("addItem",o))}}),me=t([]),ue=a((()=>{if(!h(me.value))return[];const e=[];return x([...ee.value,...$.value],(o=>e.push(o.key))),me.value.filter((o=>!e.find((e=>e===o.key))))}));async function fe(){Q.extraMaterialList&&!me.value.length&&(me.value=y(Q.extraMaterialList)?await Q.extraMaterialList():Q.extraMaterialList)}return J({loadData({fieldList:e,lowCodeReactions:o=[]}){let t=[],a=[];e.forEach((e=>function(e){"LINE_BAR"===e.type&&(e.children=[]);!1===e.show?a.push(e):t.push(e),"COMBINATION"===e.type&&h(e.children)&&e.children.length&&e.children.forEach((e=>{e.__isCombinationChild=!0}))}(_(r(e))))),$.value=se(t),ee.value=a,oe.value=o,re.value=void 0},validate(){var e;return null==(e=ie.value)?void 0:e.validate()},getData:(e=!1)=>({fieldList:le(_(r($.value)),e,{show:!0}),materialList:le(_(r(ee.value)),e,{show:!1}),lowCodeReactions:_(r(oe.value))}),clearExtraList(){me.value=[]}}),(o,t)=>(i(),s("section",l({class:"form-config",style:{"--max-height":e.maxHeight,...n(Y)},id:n(X)},n(F)()),[m("section",B,[T,u(n(L),l(n(Z)(),{class:"form-config__materialContent",modelValue:ee.value,"onUpdate:modelValue":t[0]||(t[0]=e=>ee.value=e)}),{item:f((({element:e})=>[u(n(E),{"form-config-item":e,"text-formatter":ae,"material-List":ee.value},null,8,["form-config-item","material-List"])])),_:1},16,["modelValue"]),e.extraMaterialList?(i(),d(n(j),{key:0,class:"form-config__materialExtraList",filterable:"",value:n(ne),"onUpdate:value":t[1]||(t[1]=e=>c(ne)?ne.value=e:null),placeholder:"请选择额外物料",options:n(ue),"label-field":"name","value-field":"key",onFocus:fe},null,8,["value","options"])):p("v-if",!0)]),m("section",P,[m("header",z,[v(" 布局区 "),u(n(k),null,{default:f((()=>[e.showLowCodeReactions?(i(),d(R,{key:0,modelValue:oe.value,"onUpdate:modelValue":t[2]||(t[2]=e=>oe.value=e),onValidateFailure:t[3]||(t[3]=e=>K("reactionsValidateFailure",e))},null,8,["modelValue"])):p("v-if",!0),u(V,{onSubmit:te})])),_:1})]),u(b,{class:"form-config__displayContent",group:n(N),"text-formatter":ae,modelValue:$.value,"onUpdate:modelValue":t[4]||(t[4]=e=>$.value=e)},null,8,["group","modelValue"])]),m("section",W,[q,m("section",G,[u(w,{ref_key:"formConfigEditRef",ref:ie,uuid:n(X),"bind-form-render-ref":e.formRenderRef,"form-props":e.formProps},null,8,["uuid","bind-form-render-ref","form-props"])])])],16,A))}});export{J as default};
1
+ import{defineComponent as e,provide as o,ref as t,computed as r,toRaw as a,openBlock as i,createElementBlock as s,mergeProps as l,unref as n,createElementVNode as m,createVNode as u,withCtx as f,createBlock as d,isRef as c,createCommentVNode as p,createTextVNode as v}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isArray as g,cloneDeep as _,isFunction as y}from"lodash-es";import"@vue/shared";import{uuidGenerator as x,traverse as C}from"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NSelect as j,NSpace as L}from"naive-ui";import{useVersion as k}from"../../../shared/hooks/useVersion.js";import F from"../../../shared/components/VueDraggable/src/vuedraggable.js";import b from"./components/FormConfigCreator.vue.js";import V from"./components/FormConfigDragDisplay.vue.js";import M from"./components/FormConfigEdit.vue.js";import w from"./components/FormConfigEventSetting.vue.js";import R from"./components/FormConfigMaterialItem.js";import{useDataNormalize as E}from"./hooks/useDataNormalize.js";import{InjectionFormConfigProps as I,InjectionFormConfigEmit as D,InjectionFieldList as H,InjectionMaterialList as O,InjectionLowCodeReactions as S,InjectionActiveFieldItem as N,FORM_CONFIG_GROUP as U}from"./constants/index.js";import"./utils/index.js";import{useSortableConfig as A}from"./hooks/useSortalbeConfig.js";import"./hooks/useConfigurationField.js";const B=["id"],T={class:"form-config__material"},P=m("header",{class:"form-config__materialHeader"},"物料区",-1),z={class:"form-config__displayWrapper"},W={class:"form-config__displayHeader"},q={class:"form-config__config"},G=m("header",{class:"form-config__configHeader"},"配置区",-1),J={class:"form-config__configContent"};var K=e({__name:"FormConfig",props:{maxHeight:{type:String},fieldVisitor:{type:Object},textFormatter:{type:Function},formRenderRef:{type:Object},extraMaterialList:{type:[Array,Function]},showLowCodeReactions:Boolean,formProps:{type:Object},beforeMove:{type:Function}},emits:["addItem","removeItem","reactionsValidateFailure"],setup(e,{expose:K,emit:Q}){const X=e;o(I,X),o(D,Q);const Y=x(),Z=h(),$=t([]);o(H,$);const ee=t([]);o(O,ee);const oe=t([]);function te(e){$.value.some((o=>o.key===e.key))||$.value.push(e)}o(S,oe);const re=(e,o)=>y(X.textFormatter)?X.textFormatter(e,o):o,ae=t();o(N,ae);const ie=t(),{transform:se,inverseTransform:le}=E(X),ne=r({get:()=>null,set(e){if(!e)return;const o=ue.value.find((o=>o.key===e));o&&(o.__extra=!0,ee.value.push(o),Q("addItem",o))}}),me=t([]),ue=r((()=>{if(!g(me.value))return[];const e=[];return C([...ee.value,...$.value],(o=>e.push(o.key))),me.value.filter((o=>!e.find((e=>e===o.key))))}));async function fe(){X.extraMaterialList&&!me.value.length&&(me.value=y(X.extraMaterialList)?await X.extraMaterialList():X.extraMaterialList)}return K({loadData({fieldList:e,lowCodeReactions:o=[]}){let t=[],r=[];e.forEach((e=>function(e){"LINE_BAR"===e.type&&(e.children=[]);!1===e.show?r.push(e):t.push(e),"COMBINATION"===e.type&&g(e.children)&&e.children.length&&e.children.forEach((e=>{e.__isCombinationChild=!0}))}(_(a(e))))),$.value=se(t),ee.value=r,oe.value=o,ae.value=void 0},validate(){var e;return null==(e=ie.value)?void 0:e.validate()},getData:(e=!1)=>({fieldList:le(_(a($.value)),e,{show:!0}),materialList:le(_(a(ee.value)),e,{show:!1}),lowCodeReactions:_(a(oe.value))}),clearExtraList(){me.value=[]}}),(o,t)=>(i(),s("section",l({class:"form-config",style:{"--max-height":e.maxHeight,...n(Z)},id:n(Y)},n(k)()),[m("section",T,[P,u(n(F),l(A({fieldList:$,materialList:ee,hooks:{beforeMove:X.beforeMove}}),{class:"form-config__materialContent",modelValue:ee.value,"onUpdate:modelValue":t[0]||(t[0]=e=>ee.value=e)}),{item:f((({element:e})=>[u(n(R),{"form-config-item":e,"text-formatter":re,"material-List":ee.value},null,8,["form-config-item","material-List"])])),_:1},16,["modelValue"]),e.extraMaterialList?(i(),d(n(j),{key:0,class:"form-config__materialExtraList",filterable:"",value:n(ne),"onUpdate:value":t[1]||(t[1]=e=>c(ne)?ne.value=e:null),placeholder:"请选择额外物料",options:n(ue),"label-field":"name","value-field":"key",onFocus:fe},null,8,["value","options"])):p("v-if",!0)]),m("section",z,[m("header",W,[v(" 布局区 "),u(n(L),null,{default:f((()=>[e.showLowCodeReactions?(i(),d(w,{key:0,modelValue:oe.value,"onUpdate:modelValue":t[2]||(t[2]=e=>oe.value=e),onValidateFailure:t[3]||(t[3]=e=>Q("reactionsValidateFailure",e))},null,8,["modelValue"])):p("v-if",!0),u(b,{onSubmit:te})])),_:1})]),u(V,{class:"form-config__displayContent",group:n(U),"text-formatter":re,modelValue:$.value,"onUpdate:modelValue":t[4]||(t[4]=e=>$.value=e)},null,8,["group","modelValue"])]),m("section",q,[G,m("section",J,[u(M,{ref_key:"formConfigEditRef",ref:ie,uuid:n(Y),"bind-form-render-ref":e.formRenderRef,"form-props":e.formProps},null,8,["uuid","bind-form-render-ref","form-props"])])])],16,B))}});export{K as default};
@@ -154,7 +154,10 @@ declare const _default: import("vue").DefineComponent<{}, {
154
154
  default: boolean;
155
155
  };
156
156
  lowCodeReactions: {
157
- type: import("vue").PropType<import("../../..").LowCodeTypes.reactionsConfig[]>;
157
+ type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
158
+ };
159
+ newLowCodeReactions: {
160
+ type: import("vue").PropType<import("../../..").LowCodeTypes.newReactionConfig[]>;
158
161
  };
159
162
  operationalForm: {
160
163
  type: import("vue").PropType<import("../../..").LowCodeTypes.operationalConfig[]>;
@@ -316,7 +319,10 @@ declare const _default: import("vue").DefineComponent<{}, {
316
319
  default: boolean;
317
320
  };
318
321
  lowCodeReactions: {
319
- type: import("vue").PropType<import("../../..").LowCodeTypes.reactionsConfig[]>;
322
+ type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
323
+ };
324
+ newLowCodeReactions: {
325
+ type: import("vue").PropType<import("../../..").LowCodeTypes.newReactionConfig[]>;
320
326
  };
321
327
  operationalForm: {
322
328
  type: import("vue").PropType<import("../../..").LowCodeTypes.operationalConfig[]>;
@@ -349,7 +355,7 @@ declare const _default: import("vue").DefineComponent<{}, {
349
355
  onScroll?: ((...args: any[]) => any) | undefined;
350
356
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
351
357
  }>>;
352
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
358
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
353
359
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
354
360
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
355
361
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -407,7 +413,7 @@ declare const _default: import("vue").DefineComponent<{}, {
407
413
  [x: string]: any;
408
414
  }>;
409
415
  lowCodeReactionsHandler: (field: string) => void;
410
- triggerAllReactionsHandler: () => void;
416
+ newLowCodeReactionsHandler: (field: string) => void;
411
417
  operationalFormHandler: {
412
418
  trigger(fieldKey: string): void;
413
419
  triggerAll(): void;
@@ -501,7 +507,7 @@ declare const _default: import("vue").DefineComponent<{}, {
501
507
  businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
502
508
  requestInstance: import("../../..").FormRequestDefine.RequestInstance;
503
509
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
504
- lowCodeReactions: import("../../..").LowCodeTypes.reactionsConfig[];
510
+ lowCodeReactions: import("../../..").LowCodeTypes.reactionConfig[];
505
511
  linebarAutoHidden: boolean;
506
512
  bordered: string | boolean;
507
513
  uniqueCacheData: boolean;
@@ -685,7 +691,7 @@ declare const _default: import("vue").DefineComponent<{}, {
685
691
  readonly displayDirective: "if" | "show" | "show:lazy";
686
692
  }>;
687
693
  NTabs: any;
688
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
694
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
689
695
  fieldList: {
690
696
  type: import("vue").PropType<FieldItem[]>;
691
697
  };
@@ -818,7 +824,10 @@ declare const _default: import("vue").DefineComponent<{}, {
818
824
  default: boolean;
819
825
  };
820
826
  lowCodeReactions: {
821
- type: import("vue").PropType<import("../../..").LowCodeTypes.reactionsConfig[]>;
827
+ type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
828
+ };
829
+ newLowCodeReactions: {
830
+ type: import("vue").PropType<import("../../..").LowCodeTypes.newReactionConfig[]>;
822
831
  };
823
832
  operationalForm: {
824
833
  type: import("vue").PropType<import("../../..").LowCodeTypes.operationalConfig[]>;
@@ -854,7 +863,6 @@ declare const _default: import("vue").DefineComponent<{}, {
854
863
  anchor: boolean;
855
864
  maxHeight: string | number;
856
865
  column: number;
857
- forceClearable: boolean;
858
866
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
859
867
  initialData: AnyObject;
860
868
  parallelism: number;
@@ -865,6 +873,7 @@ declare const _default: import("vue").DefineComponent<{}, {
865
873
  bordered: string | boolean;
866
874
  uniqueCacheData: boolean;
867
875
  outBordered: boolean;
876
+ forceClearable: boolean;
868
877
  operationalFormInit: boolean;
869
878
  }>;
870
879
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
@@ -9,11 +9,13 @@ declare const _default: import("vue").DefineComponent<{
9
9
  required: true;
10
10
  };
11
11
  }, {
12
+ globProps: import("../../..").AnyObject | undefined;
12
13
  getItemColumnStyle: (formConfigItem?: FormConfigItem) => {
13
14
  '--item-column': number;
14
15
  };
15
- getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
16
- getCommonConfig: (formConfig?: FormConfigItem | undefined) => {
16
+ fieldList: import("vue").Ref<FormConfigItem[]> | undefined;
17
+ materialList: import("vue").Ref<FormConfigItem[]> | undefined;
18
+ getSortOption: (formConfigItem?: FormConfigItem) => {
17
19
  move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
18
20
  onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
19
21
  onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
@@ -23,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
23
25
  'item-key': string;
24
26
  group: string;
25
27
  };
28
+ getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
26
29
  Draggable: import("vue").DefineComponent<{
27
30
  list: {
28
31
  type: ArrayConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,openBlock as t,createBlock as r,unref as o,mergeProps as m,withCtx as a,createElementVNode as i,normalizeStyle as n,resolveDynamicComponent as s}from"vue";import f from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{usePresetRenderer as u}from"../hooks/usePresetRenderer.js";import{useSortableConfig as d}from"../hooks/useSortalbeConfig.js";import"../hooks/useConfigurationField.js";import{layoutWidthEnum2Column as p}from"../utils/index.js";const g=["data-type","data-required","data-extra"];var l=e({__name:"FormConfigDragDisplay",props:{formConfigItem:{type:Object},textFormatter:{type:Function,required:!0}},setup(e){function l(e){return{"--item-column":e?p(e.layoutWidthEnum):24}}const{getRenderer:c}=u(),{getCommonConfig:y}=d();return(u,d)=>(t(),r(o(f),m(o(y)(e.formConfigItem),{style:l(e.formConfigItem)}),{item:a((({element:m})=>[i("div",{class:"form-config__displayContentItem","data-type":m.type,"data-required":!!m.required,"data-extra":!!m.__extra,style:n(l(m))},[(t(),r(s(o(c)(m)),{"form-config-item":m,textFormatter:e.textFormatter},null,8,["form-config-item","textFormatter"]))],12,g)])),_:1},16,["style"]))}});export{l as default};
1
+ import{defineComponent as e,inject as t,openBlock as o,createBlock as r,unref as m,mergeProps as i,withCtx as n,resolveDynamicComponent as s,normalizeStyle as f}from"vue";import a from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{InjectionFormConfigProps as l,InjectionFieldList as u,InjectionMaterialList as p}from"../constants/index.js";import{usePresetRenderer as g}from"../hooks/usePresetRenderer.js";import{useSortableConfig as c}from"../hooks/useSortalbeConfig.js";import"../hooks/useConfigurationField.js";import{layoutWidthEnum2Column as d}from"../utils/index.js";var y=e({__name:"FormConfigDragDisplay",props:{formConfigItem:{type:Object},textFormatter:{type:Function,required:!0}},setup(e){const y=t(l);function v(e){return{"--item-column":e?d(e.layoutWidthEnum):24}}const C=t(u),j=t(p);const{getRenderer:x}=g();return(t,l)=>{return o(),r(m(a),i((u=e.formConfigItem,c({group:"COMBINATION"===(null==u?void 0:u.type)?u.key:"",fieldList:C,materialList:j,hooks:{beforeMove:null==y?void 0:y.beforeMove}})),{style:v(e.formConfigItem)}),{item:n((({element:t})=>[(o(),r(s(m(x)(t)),{class:"form-config__displayContentItem",style:f(v(t)),"form-config-item":t,textFormatter:e.textFormatter},null,8,["style","form-config-item","textFormatter"]))])),_:1},16,["style"]);var u}}});export{y as default};