cnhis-design-vue 3.1.50-release.0 → 3.1.50-release.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +1 -0
  7. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  8. package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
  9. package/es/components/card-reader-sdk/src/types/index.d.ts +1 -1
  10. package/es/components/card-reader-sdk/src/utils/index.d.ts +0 -3
  11. package/es/components/card-reader-sdk/src/utils/index.js +1 -1
  12. package/es/components/classification/index.d.ts +3 -1
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -1
  14. package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -1
  15. package/es/components/classification/src/index.vue.d.ts +3 -1
  16. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  17. package/es/components/expand-field/src/index.vue2.js +1 -1
  18. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/index.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +3 -0
  22. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -1
  25. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  31. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -0
  34. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  35. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  36. package/es/components/form-config/index.d.ts +243 -56
  37. package/es/components/form-config/src/FormConfig.vue.d.ts +243 -56
  38. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +106 -19
  39. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +121 -28
  40. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  41. package/es/components/form-render/index.d.ts +106 -19
  42. package/es/components/form-render/src/FormRender.vue.d.ts +106 -19
  43. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  44. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +106 -19
  45. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  46. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  47. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +1 -1
  48. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  49. package/es/components/form-render/src/components/renderer/select.d.ts +12 -0
  50. package/es/components/form-render/src/components/renderer/select.js +1 -1
  51. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -5
  52. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  53. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +173 -4
  54. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  55. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +2 -2
  56. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  57. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  58. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +6 -6
  59. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  60. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  61. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  62. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  63. package/es/components/form-render/src/types/index.d.ts +6 -3
  64. package/es/components/form-render/style/index.css +1 -1
  65. package/es/components/iho-table/index.d.ts +26 -0
  66. package/es/components/iho-table/index.js +1 -1
  67. package/es/components/iho-table/src/IhoTable.vue.d.ts +26 -0
  68. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
  69. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +297 -3
  70. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  71. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  72. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  73. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  79. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  80. package/es/components/iho-table/src/types/index.d.ts +17 -4
  81. package/es/components/iho-table/src/utils/index.d.ts +1 -1
  82. package/es/components/iho-table/src/utils/index.js +1 -1
  83. package/es/components/iho-table/src/utils/separateMap.d.ts +5 -0
  84. package/es/components/iho-table/src/utils/separateMap.js +1 -0
  85. package/es/components/iho-table/style/index.css +1 -1
  86. package/es/components/index.css +1 -1
  87. package/es/components/info-header/index.d.ts +314 -53
  88. package/es/components/info-header/src/InfoHeader.vue.d.ts +314 -53
  89. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +86 -3
  90. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +86 -3
  91. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +192 -22
  92. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +106 -19
  93. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  94. package/es/components/search-cascader/index.d.ts +4 -0
  95. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +4 -0
  96. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  97. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  98. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  99. package/es/components/shortcut-setter/index.d.ts +107 -19
  100. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +107 -19
  101. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  102. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -0
  103. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -0
  104. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  105. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -0
  106. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  107. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -0
  108. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -1
  109. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  110. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -0
  111. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  112. package/es/env.d.ts +25 -25
  113. package/es/shared/assets/img/failure.png.js +1 -1
  114. package/es/shared/assets/img/no-permission.png.js +1 -1
  115. package/es/shared/assets/img/nodata.png.js +1 -1
  116. package/es/shared/assets/img/notfound.png.js +1 -1
  117. package/es/shared/assets/img/qr.png.js +1 -1
  118. package/es/shared/assets/img/success.png.js +1 -1
  119. package/es/shared/assets/img/video.png.js +1 -1
  120. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  121. package/es/shared/assets/img/xb_big.png.js +1 -1
  122. package/es/shared/assets/img/xb_small.png.js +1 -1
  123. package/es/shared/components/CancelRadio/CancelRadio.d.ts +10 -0
  124. package/es/shared/components/CancelRadio/CancelRadio.js +1 -0
  125. package/es/shared/components/CancelRadio/index.d.ts +2 -0
  126. package/es/shared/components/CancelRadio/index.js +1 -0
  127. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  128. package/es/shared/package.json.js +1 -1
  129. package/es/shared/utils/business.d.ts +3 -1
  130. package/es/shared/utils/business.js +1 -1
  131. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  132. package/es/shared/utils/index.js +1 -1
  133. package/es/shared/utils/tapable/index.d.ts +139 -0
  134. package/package.json +2 -2
@@ -131,9 +131,9 @@ declare const _default: import("vue").DefineComponent<{}, {
131
131
  lifeCycle: {
132
132
  type: import("vue").PropType<Partial<{
133
133
  onSetup(): void;
134
- beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
135
- afterRequest(fieldKey: string, payload?: any): AnyObject[];
136
- afterOptionInit(fieldKey: string, options: AnyObject[]): void;
134
+ beforeRequest(fieldKey: string, params?: AnyObject | undefined, payload?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
135
+ afterRequest(fieldKey: string, res?: any, payload?: AnyObject | undefined): AnyObject[];
136
+ afterOptionInit(fieldKey: string, options: AnyObject[], payload?: AnyObject | undefined): void;
137
137
  }>>;
138
138
  };
139
139
  requestInstance: {
@@ -164,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{}, {
164
164
  type: BooleanConstructor;
165
165
  default: boolean;
166
166
  };
167
+ forceClearable: BooleanConstructor;
167
168
  }, {
168
169
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
169
170
  fieldList: {
@@ -275,9 +276,9 @@ declare const _default: import("vue").DefineComponent<{}, {
275
276
  lifeCycle: {
276
277
  type: import("vue").PropType<Partial<{
277
278
  onSetup(): void;
278
- beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
279
- afterRequest(fieldKey: string, payload?: any): AnyObject[];
280
- afterOptionInit(fieldKey: string, options: AnyObject[]): void;
279
+ beforeRequest(fieldKey: string, params?: AnyObject | undefined, payload?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
280
+ afterRequest(fieldKey: string, res?: any, payload?: AnyObject | undefined): AnyObject[];
281
+ afterOptionInit(fieldKey: string, options: AnyObject[], payload?: AnyObject | undefined): void;
281
282
  }>>;
282
283
  };
283
284
  requestInstance: {
@@ -308,6 +309,7 @@ declare const _default: import("vue").DefineComponent<{}, {
308
309
  type: BooleanConstructor;
309
310
  default: boolean;
310
311
  };
312
+ forceClearable: BooleanConstructor;
311
313
  }>> & {
312
314
  onFormChange?: ((...args: any[]) => any) | undefined;
313
315
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -335,14 +337,14 @@ declare const _default: import("vue").DefineComponent<{}, {
335
337
  onScroll: (scrollEvent: Event) => void;
336
338
  callLifeCycle: <T_2 extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T_2, payload?: Parameters<Required<Partial<{
337
339
  onSetup(): void;
338
- beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
339
- afterRequest(fieldKey: string, payload?: any): AnyObject[];
340
- afterOptionInit(fieldKey: string, options: AnyObject[]): void;
340
+ beforeRequest(fieldKey: string, params?: AnyObject | undefined, payload?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
341
+ afterRequest(fieldKey: string, res?: any, payload?: AnyObject | undefined): AnyObject[];
342
+ afterOptionInit(fieldKey: string, options: AnyObject[], payload?: AnyObject | undefined): void;
341
343
  }>>[T_2]> | undefined) => import("../../..").UndefinedAble<ReturnType<Required<Partial<{
342
344
  onSetup(): void;
343
- beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
344
- afterRequest(fieldKey: string, payload?: any): AnyObject[];
345
- afterOptionInit(fieldKey: string, options: AnyObject[]): void;
345
+ beforeRequest(fieldKey: string, params?: AnyObject | undefined, payload?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
346
+ afterRequest(fieldKey: string, res?: any, payload?: AnyObject | undefined): AnyObject[];
347
+ afterOptionInit(fieldKey: string, options: AnyObject[], payload?: AnyObject | undefined): void;
346
348
  }>>[T_2]>>;
347
349
  triggerAutoHidden: (field: import("../../../../../es/components/form-render").GeneralField) => Promise<void>;
348
350
  observeFormGraph: Record<string, import("../../../../../es/components/form-render").GeneralField>;
@@ -352,15 +354,98 @@ declare const _default: import("vue").DefineComponent<{}, {
352
354
  formModel: import("../../../../../es/components/form-render").Form<{
353
355
  [x: string]: any;
354
356
  }>;
355
- lowCodeReactionsHandler: (field: string, value: unknown) => void;
357
+ lowCodeReactionsHandler: (field: string) => void;
356
358
  triggerAllReactionsHandler: () => void;
357
359
  operationalFormHandler: (field: string) => void;
358
360
  triggerAllOperationalFormHandler: () => void;
359
361
  wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
360
- schemaAdaptor: (fieldList: FieldItem[], options?: {
362
+ schemaAdaptor: (fieldList: FieldItem[], options?: Partial<{
363
+ fieldList: FieldItem[];
364
+ initialData: AnyObject;
365
+ fieldVisitor: import("../../../../../es/components/form-render").FieldVisitor;
361
366
  column: number;
362
- outBordered?: boolean | undefined;
363
- }) => Record<string, import("@formily/json-schema").Stringify<{
367
+ maxHeight: string | number;
368
+ anchor: boolean;
369
+ parallelism: number;
370
+ schema: import("@formily/json-schema").Stringify<{
371
+ [key: symbol]: any;
372
+ [key: `x-${string}`]: any;
373
+ [key: `x-${number}`]: any;
374
+ version?: string | undefined;
375
+ name?: import("@formily/json-schema").SchemaKey | undefined;
376
+ title?: any;
377
+ description?: any;
378
+ default?: any;
379
+ readOnly?: boolean | undefined;
380
+ writeOnly?: boolean | undefined;
381
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
382
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
383
+ const?: any;
384
+ multipleOf?: number | undefined;
385
+ maximum?: number | undefined;
386
+ exclusiveMaximum?: number | undefined;
387
+ minimum?: number | undefined;
388
+ exclusiveMinimum?: number | undefined;
389
+ maxLength?: number | undefined;
390
+ minLength?: number | undefined;
391
+ pattern?: string | RegExp | undefined;
392
+ maxItems?: number | undefined;
393
+ minItems?: number | undefined;
394
+ uniqueItems?: boolean | undefined;
395
+ maxProperties?: number | undefined;
396
+ minProperties?: number | undefined;
397
+ required?: string | boolean | string[] | undefined;
398
+ format?: string | undefined;
399
+ $ref?: string | undefined;
400
+ $namespace?: string | undefined;
401
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
402
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
403
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
404
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
405
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
406
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
407
+ "x-value"?: any;
408
+ "x-index"?: number | undefined;
409
+ "x-pattern"?: any;
410
+ "x-display"?: any;
411
+ "x-validator"?: any;
412
+ "x-decorator"?: any;
413
+ "x-decorator-props"?: any;
414
+ "x-component"?: any;
415
+ "x-component-props"?: any;
416
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
417
+ "x-content"?: any;
418
+ "x-data"?: any;
419
+ "x-visible"?: boolean | undefined;
420
+ "x-hidden"?: boolean | undefined;
421
+ "x-disabled"?: boolean | undefined;
422
+ "x-editable"?: boolean | undefined;
423
+ "x-read-only"?: boolean | undefined;
424
+ "x-read-pretty"?: boolean | undefined;
425
+ "x-compile-omitted"?: string[] | undefined;
426
+ }>;
427
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
428
+ scope: AnyObject;
429
+ annotation: AnyObject;
430
+ consumer: boolean;
431
+ uuid: string;
432
+ lifeCycle: Partial<{
433
+ onSetup(): void;
434
+ beforeRequest(fieldKey: string, params?: AnyObject | undefined, payload?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
435
+ afterRequest(fieldKey: string, res?: any, payload?: AnyObject | undefined): AnyObject[];
436
+ afterOptionInit(fieldKey: string, options: AnyObject[], payload?: AnyObject | undefined): void;
437
+ }>;
438
+ businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
439
+ requestInstance: import("../../../../../es/components/form-render").RequestInstance;
440
+ enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
441
+ lowCodeReactions: import("../../../../../es/components/form-render").FormLowCodeReactions.Config[];
442
+ linebarAutoHidden: boolean;
443
+ bordered: string | boolean;
444
+ uniqueCacheData: boolean;
445
+ operationalForm: import("../../..").FormOperationalConfig[];
446
+ outBordered: boolean;
447
+ forceClearable: boolean;
448
+ }>) => Record<string, import("@formily/json-schema").Stringify<{
364
449
  [key: symbol]: any;
365
450
  [key: `x-${string}`]: any;
366
451
  [key: `x-${number}`]: any;
@@ -751,9 +836,9 @@ declare const _default: import("vue").DefineComponent<{}, {
751
836
  lifeCycle: {
752
837
  type: import("vue").PropType<Partial<{
753
838
  onSetup(): void;
754
- beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
755
- afterRequest(fieldKey: string, payload?: any): AnyObject[];
756
- afterOptionInit(fieldKey: string, options: AnyObject[]): void;
839
+ beforeRequest(fieldKey: string, params?: AnyObject | undefined, payload?: AnyObject | undefined): void | import("../../..").UndefinedAble<AnyObject>;
840
+ afterRequest(fieldKey: string, res?: any, payload?: AnyObject | undefined): AnyObject[];
841
+ afterOptionInit(fieldKey: string, options: AnyObject[], payload?: AnyObject | undefined): void;
757
842
  }>>;
758
843
  };
759
844
  requestInstance: {
@@ -784,6 +869,7 @@ declare const _default: import("vue").DefineComponent<{}, {
784
869
  type: BooleanConstructor;
785
870
  default: boolean;
786
871
  };
872
+ forceClearable: BooleanConstructor;
787
873
  }>> & {
788
874
  onFormChange?: ((...args: any[]) => any) | undefined;
789
875
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -792,6 +878,7 @@ declare const _default: import("vue").DefineComponent<{}, {
792
878
  anchor: boolean;
793
879
  maxHeight: string | number;
794
880
  column: number;
881
+ forceClearable: boolean;
795
882
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
796
883
  initialData: AnyObject;
797
884
  parallelism: number;
@@ -82,9 +82,9 @@ declare const _default: import("vue").DefineComponent<{
82
82
  uuid: string;
83
83
  lifeCycle: Partial<{
84
84
  onSetup(): void;
85
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
86
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
87
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
85
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
86
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
87
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
88
88
  }>;
89
89
  businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
90
90
  requestInstance: import("../../../../../es/components/form-render").RequestInstance;
@@ -95,6 +95,7 @@ declare const _default: import("vue").DefineComponent<{
95
95
  uniqueCacheData: boolean;
96
96
  operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
97
97
  outBordered: boolean;
98
+ forceClearable: boolean;
98
99
  }>>>;
99
100
  };
100
101
  }, {
@@ -179,9 +180,9 @@ declare const _default: import("vue").DefineComponent<{
179
180
  uuid: string;
180
181
  lifeCycle: Partial<{
181
182
  onSetup(): void;
182
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
183
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
184
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
183
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
184
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
185
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
185
186
  }>;
186
187
  businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
187
188
  requestInstance: import("../../../../../es/components/form-render").RequestInstance;
@@ -192,6 +193,7 @@ declare const _default: import("vue").DefineComponent<{
192
193
  uniqueCacheData: boolean;
193
194
  operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
194
195
  outBordered: boolean;
196
+ forceClearable: boolean;
195
197
  }>>>;
196
198
  };
197
199
  }>> & {}>>;
@@ -293,6 +295,7 @@ declare const _default: import("vue").DefineComponent<{
293
295
  date_format?: string | undefined;
294
296
  step_length?: string | number | undefined;
295
297
  urlConfig?: {
298
+ [x: string]: any;
296
299
  url: string;
297
300
  method?: import("../../../../../es/components/form-render").FormRequestType | undefined;
298
301
  nameKey?: string | undefined;
@@ -2036,6 +2039,7 @@ declare const _default: import("vue").DefineComponent<{
2036
2039
  date_format?: string | undefined;
2037
2040
  step_length?: string | number | undefined;
2038
2041
  urlConfig?: {
2042
+ [x: string]: any;
2039
2043
  url: string;
2040
2044
  method?: import("../../../../../es/components/form-render").FormRequestType | undefined;
2041
2045
  nameKey?: string | undefined;
@@ -3752,6 +3756,7 @@ declare const _default: import("vue").DefineComponent<{
3752
3756
  date_format?: string | undefined;
3753
3757
  step_length?: string | number | undefined;
3754
3758
  urlConfig?: {
3759
+ [x: string]: any;
3755
3760
  url: string;
3756
3761
  method?: import("../../../../../es/components/form-render").FormRequestType | undefined;
3757
3762
  nameKey?: string | undefined;
@@ -5495,9 +5500,9 @@ declare const _default: import("vue").DefineComponent<{
5495
5500
  lifeCycle: {
5496
5501
  type: PropType<Partial<{
5497
5502
  onSetup(): void;
5498
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5499
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
5500
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
5503
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5504
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
5505
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
5501
5506
  }>>;
5502
5507
  };
5503
5508
  requestInstance: {
@@ -5528,6 +5533,7 @@ declare const _default: import("vue").DefineComponent<{
5528
5533
  type: BooleanConstructor;
5529
5534
  default: boolean;
5530
5535
  };
5536
+ forceClearable: BooleanConstructor;
5531
5537
  }, {
5532
5538
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
5533
5539
  fieldList: {
@@ -5639,9 +5645,9 @@ declare const _default: import("vue").DefineComponent<{
5639
5645
  lifeCycle: {
5640
5646
  type: PropType<Partial<{
5641
5647
  onSetup(): void;
5642
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5643
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
5644
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
5648
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5649
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
5650
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
5645
5651
  }>>;
5646
5652
  };
5647
5653
  requestInstance: {
@@ -5672,6 +5678,7 @@ declare const _default: import("vue").DefineComponent<{
5672
5678
  type: BooleanConstructor;
5673
5679
  default: boolean;
5674
5680
  };
5681
+ forceClearable: BooleanConstructor;
5675
5682
  }>> & {
5676
5683
  onFormChange?: ((...args: any[]) => any) | undefined;
5677
5684
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -5699,14 +5706,14 @@ declare const _default: import("vue").DefineComponent<{
5699
5706
  onScroll: (scrollEvent: Event) => void;
5700
5707
  callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
5701
5708
  onSetup(): void;
5702
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5703
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
5704
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
5709
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5710
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
5711
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
5705
5712
  }>>[T]> | undefined) => import("../../../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
5706
5713
  onSetup(): void;
5707
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5708
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
5709
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
5714
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5715
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
5716
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
5710
5717
  }>>[T]>>;
5711
5718
  triggerAutoHidden: (field: import("../../../../../es/components/form-render").GeneralField) => Promise<void>;
5712
5719
  observeFormGraph: Record<string, import("../../../../../es/components/form-render").GeneralField>;
@@ -5716,15 +5723,98 @@ declare const _default: import("vue").DefineComponent<{
5716
5723
  formModel: import("../../../../../es/components/form-render").Form<{
5717
5724
  [x: string]: any;
5718
5725
  }>;
5719
- lowCodeReactionsHandler: (field: string, value: unknown) => void;
5726
+ lowCodeReactionsHandler: (field: string) => void;
5720
5727
  triggerAllReactionsHandler: () => void;
5721
5728
  operationalFormHandler: (field: string) => void;
5722
5729
  triggerAllOperationalFormHandler: () => void;
5723
5730
  wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
5724
- schemaAdaptor: (fieldList: FieldItem[], options?: {
5731
+ schemaAdaptor: (fieldList: FieldItem[], options?: Partial<{
5732
+ fieldList: FieldItem[];
5733
+ initialData: import("../../../../../es/shared/types").AnyObject;
5734
+ fieldVisitor: import("../../../../../es/components/form-render").FieldVisitor;
5725
5735
  column: number;
5726
- outBordered?: boolean | undefined;
5727
- }) => Record<string, import("@formily/json-schema").Stringify<{
5736
+ maxHeight: string | number;
5737
+ anchor: boolean;
5738
+ parallelism: number;
5739
+ schema: import("@formily/json-schema").Stringify<{
5740
+ [key: symbol]: any;
5741
+ [key: `x-${string}`]: any;
5742
+ [key: `x-${number}`]: any;
5743
+ version?: string | undefined;
5744
+ name?: import("@formily/json-schema").SchemaKey | undefined;
5745
+ title?: any;
5746
+ description?: any;
5747
+ default?: any;
5748
+ readOnly?: boolean | undefined;
5749
+ writeOnly?: boolean | undefined;
5750
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
5751
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
5752
+ const?: any;
5753
+ multipleOf?: number | undefined;
5754
+ maximum?: number | undefined;
5755
+ exclusiveMaximum?: number | undefined;
5756
+ minimum?: number | undefined;
5757
+ exclusiveMinimum?: number | undefined;
5758
+ maxLength?: number | undefined;
5759
+ minLength?: number | undefined;
5760
+ pattern?: string | RegExp | undefined;
5761
+ maxItems?: number | undefined;
5762
+ minItems?: number | undefined;
5763
+ uniqueItems?: boolean | undefined;
5764
+ maxProperties?: number | undefined;
5765
+ minProperties?: number | undefined;
5766
+ required?: string | boolean | string[] | undefined;
5767
+ format?: string | undefined;
5768
+ $ref?: string | undefined;
5769
+ $namespace?: string | undefined;
5770
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
5771
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
5772
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
5773
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
5774
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
5775
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
5776
+ "x-value"?: any;
5777
+ "x-index"?: number | undefined;
5778
+ "x-pattern"?: any;
5779
+ "x-display"?: any;
5780
+ "x-validator"?: any;
5781
+ "x-decorator"?: any;
5782
+ "x-decorator-props"?: any;
5783
+ "x-component"?: any;
5784
+ "x-component-props"?: any;
5785
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
5786
+ "x-content"?: any;
5787
+ "x-data"?: any;
5788
+ "x-visible"?: boolean | undefined;
5789
+ "x-hidden"?: boolean | undefined;
5790
+ "x-disabled"?: boolean | undefined;
5791
+ "x-editable"?: boolean | undefined;
5792
+ "x-read-only"?: boolean | undefined;
5793
+ "x-read-pretty"?: boolean | undefined;
5794
+ "x-compile-omitted"?: string[] | undefined;
5795
+ }>;
5796
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
5797
+ scope: import("../../../../../es/shared/types").AnyObject;
5798
+ annotation: import("../../../../../es/shared/types").AnyObject;
5799
+ consumer: boolean;
5800
+ uuid: string;
5801
+ lifeCycle: Partial<{
5802
+ onSetup(): void;
5803
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
5804
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
5805
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
5806
+ }>;
5807
+ businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
5808
+ requestInstance: import("../../../../../es/components/form-render").RequestInstance;
5809
+ enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
5810
+ lowCodeReactions: import("../../../../../es/components/form-render").FormLowCodeReactions.Config[];
5811
+ linebarAutoHidden: boolean;
5812
+ bordered: string | boolean;
5813
+ uniqueCacheData: boolean;
5814
+ operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
5815
+ outBordered: boolean;
5816
+ forceClearable: boolean;
5817
+ }>) => Record<string, import("@formily/json-schema").Stringify<{
5728
5818
  [key: symbol]: any;
5729
5819
  [key: `x-${string}`]: any;
5730
5820
  [key: `x-${number}`]: any;
@@ -6115,9 +6205,9 @@ declare const _default: import("vue").DefineComponent<{
6115
6205
  lifeCycle: {
6116
6206
  type: PropType<Partial<{
6117
6207
  onSetup(): void;
6118
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
6119
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
6120
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
6208
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
6209
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
6210
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
6121
6211
  }>>;
6122
6212
  };
6123
6213
  requestInstance: {
@@ -6148,6 +6238,7 @@ declare const _default: import("vue").DefineComponent<{
6148
6238
  type: BooleanConstructor;
6149
6239
  default: boolean;
6150
6240
  };
6241
+ forceClearable: BooleanConstructor;
6151
6242
  }>> & {
6152
6243
  onFormChange?: ((...args: any[]) => any) | undefined;
6153
6244
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -6156,6 +6247,7 @@ declare const _default: import("vue").DefineComponent<{
6156
6247
  anchor: boolean;
6157
6248
  maxHeight: string | number;
6158
6249
  column: number;
6250
+ forceClearable: boolean;
6159
6251
  components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
6160
6252
  initialData: import("../../../../../es/shared/types").AnyObject;
6161
6253
  parallelism: number;
@@ -6249,9 +6341,9 @@ declare const _default: import("vue").DefineComponent<{
6249
6341
  uuid: string;
6250
6342
  lifeCycle: Partial<{
6251
6343
  onSetup(): void;
6252
- beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
6253
- afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
6254
- afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
6344
+ beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
6345
+ afterRequest(fieldKey: string, res?: any, payload?: import("../../../../../es/shared/types").AnyObject | undefined): import("../../../../../es/shared/types").AnyObject[];
6346
+ afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../es/shared/types").AnyObject | undefined): void;
6255
6347
  }>;
6256
6348
  businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
6257
6349
  requestInstance: import("../../../../../es/components/form-render").RequestInstance;
@@ -6262,6 +6354,7 @@ declare const _default: import("vue").DefineComponent<{
6262
6354
  uniqueCacheData: boolean;
6263
6355
  operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
6264
6356
  outBordered: boolean;
6357
+ forceClearable: boolean;
6265
6358
  }>>>;
6266
6359
  };
6267
6360
  }>>, {}>;
@@ -1 +1 @@
1
- import{omit as e,pick as t}from"lodash-es";import{EditAbleField as l,widgetWidthOptionConfig as i,isShowOptionConfig as _,isNotFoldOptionConfig as a,isEditOptionConfig as o,isNullOptionConfig as m,isVisibleOptionConfig as s,rowsOptionConfig as n}from"../constants/index.js";import"../../../form-render/index.js";import{useFieldNormalize as r}from"../../../form-render/src/hooks/useFieldNormalize.js";const{FieldNormalizeWaterfallHook:d}=r();function E(){const r=new Map([[l.NAME,()=>({alias:"名称",elem_width:6,is_null:"0",html_type:"INPUT"})],[l.NOTES,()=>({alias:"问号提示",elem_width:6,html_type:"INPUT",is_empty:"0"})],[l.DEFAULT_VALUE,(l,i)=>{const _=d.call(Object.assign({},null==l?void 0:l.originalSetting,i));return{alias:"默认值",elem_width:6,html_type:"INPUT",is_empty:"0",componentProps:e(_.componentProps,["class","style","disabled"]),...t(_,["html_type","validate","option","multi_select","multi_select_value","wordbook","open","close","date_format","step_length","urlConfig","autograph","defined_error_msg","free_entry","validator","is_allow_check_mid","allow_check_mid_level"])}}],[l.LAYOUT_WIDTH_ENUM,()=>({alias:"宽度",fieldType:"number",html_type:"SELECT",elem_width:6,...i()})],[l.DESC,()=>({alias:"说明文本",elem_width:6,html_type:"INPUT",is_empty:"0",validate:{max_length:30}})],[l.DEFAULT_EXPAND,()=>({alias:"是否默认展开",html_type:"SWITCH",elem_width:6,..._()})],[l.FOLD,()=>({alias:"是否可折叠",html_type:"SWITCH",elem_width:6,...a()})],[l.EDITABLE,e=>({alias:"是否可编辑",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.editableDisabled)?"0":"1",...o()})],[l.REQUIRED,e=>({alias:"是否必填",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.requiredDisabled)?"0":"1",...m()})],[l.SHOW,e=>({alias:"是否显示",html_type:"SWITCH",elem_width:6,is_show:(null==e?void 0:e.__isCombinationChild)?"1":"0",...s()})],[l.ROWS,()=>({alias:"高度",elem_width:6,remark:"默认为3行高度,可调整为1-10行高度",default_val:3,is_empty:"0",html_type:"SELECT",...n()})]]);function E(e,t,l){return e.map((e=>{var i,_;return{...null!=(_=null==(i=r.get(e))?void 0:i(t,l))?_:{},val_key:e}}))}const p=new Map([["LINE_BAR",[l.NAME,l.LAYOUT_WIDTH_ENUM,l.NOTES,l.DEFAULT_EXPAND,l.FOLD]],...["NEWLINE","COMPLEX","COMBINATION"].map((e=>[e,[l.NAME,l.LAYOUT_WIDTH_ENUM]]))]),h=[l.NAME,l.DEFAULT_VALUE,l.LAYOUT_WIDTH_ENUM,l.DESC,l.NOTES,l.EDITABLE,l.REQUIRED,l.SHOW];return{generateFieldListByKeys:E,generateFieldListByFormConfigItem:function(e,t){var i;const _=p.get(e.type)||h;return"TEXTAREA"===(t?t.html_type:null==(i=e.originalSetting)?void 0:i.html_type)&&_.splice(3,0,l.ROWS),E(_,e,t)}}}export{E as useConfigurationField};
1
+ import{omit as e,pick as t}from"lodash-es";import{EditAbleField as l,widgetWidthOptionConfig as i,isShowOptionConfig as _,isNotFoldOptionConfig as a,isEditOptionConfig as o,isNullOptionConfig as m,isVisibleOptionConfig as s,rowsOptionConfig as n}from"../constants/index.js";import"../../../form-render/index.js";import{useFieldNormalize as r}from"../../../form-render/src/hooks/useFieldNormalize.js";const{FieldNormalizeWaterfallHook:d}=r();function E(){const r=new Map([[l.NAME,()=>({alias:"名称",elem_width:6,is_null:"0",html_type:"INPUT"})],[l.NOTES,()=>({alias:"问号提示",elem_width:6,html_type:"INPUT",is_empty:"0"})],[l.DEFAULT_VALUE,(l,i)=>{const _=d.call(Object.assign({},null==l?void 0:l.originalSetting,i),{});return{alias:"默认值",elem_width:6,html_type:"INPUT",is_empty:"0",componentProps:e(_.componentProps,["class","style","disabled"]),...t(_,["html_type","validate","option","multi_select","multi_select_value","wordbook","open","close","date_format","step_length","urlConfig","autograph","defined_error_msg","free_entry","validator","is_allow_check_mid","allow_check_mid_level"])}}],[l.LAYOUT_WIDTH_ENUM,()=>({alias:"宽度",fieldType:"number",html_type:"SELECT",elem_width:6,...i()})],[l.DESC,()=>({alias:"说明文本",elem_width:6,html_type:"INPUT",is_empty:"0",validate:{max_length:30}})],[l.DEFAULT_EXPAND,()=>({alias:"是否默认展开",html_type:"SWITCH",elem_width:6,..._()})],[l.FOLD,()=>({alias:"是否可折叠",html_type:"SWITCH",elem_width:6,...a()})],[l.EDITABLE,e=>({alias:"是否可编辑",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.editableDisabled)?"0":"1",...o()})],[l.REQUIRED,e=>({alias:"是否必填",html_type:"SWITCH",elem_width:6,is_edit:(null==e?void 0:e.requiredDisabled)?"0":"1",...m()})],[l.SHOW,e=>({alias:"是否显示",html_type:"SWITCH",elem_width:6,is_show:(null==e?void 0:e.__isCombinationChild)?"1":"0",...s()})],[l.ROWS,()=>({alias:"高度",elem_width:6,remark:"默认为3行高度,可调整为1-10行高度",default_val:3,is_empty:"0",html_type:"SELECT",...n()})]]);function E(e,t,l){return e.map((e=>{var i,_;return{...null!=(_=null==(i=r.get(e))?void 0:i(t,l))?_:{},val_key:e}}))}const p=new Map([["LINE_BAR",[l.NAME,l.LAYOUT_WIDTH_ENUM,l.NOTES,l.DEFAULT_EXPAND,l.FOLD]],...["NEWLINE","COMPLEX","COMBINATION"].map((e=>[e,[l.NAME,l.LAYOUT_WIDTH_ENUM]]))]),h=[l.NAME,l.DEFAULT_VALUE,l.LAYOUT_WIDTH_ENUM,l.DESC,l.NOTES,l.EDITABLE,l.REQUIRED,l.SHOW];return{generateFieldListByKeys:E,generateFieldListByFormConfigItem:function(e,t){var i;const _=p.get(e.type)||h;return"TEXTAREA"===(t?t.html_type:null==(i=e.originalSetting)?void 0:i.html_type)&&_.splice(3,0,l.ROWS),E(_,e,t)}}}export{E as useConfigurationField};