cnhis-design-vue 3.1.49-beta.22 → 3.1.49-beta.24

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 (37) 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/expand-field/src/components/form.vue2.js +1 -1
  7. package/es/components/expand-field/src/index.vue2.js +1 -1
  8. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  9. package/es/components/form-config/index.d.ts +531 -3
  10. package/es/components/form-config/src/FormConfig.vue.d.ts +531 -3
  11. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  12. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +267 -3
  13. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  14. package/es/components/keyboard/index.d.ts +3 -3
  15. package/es/components/keyboard/src/Keyboard.vue.d.ts +3 -3
  16. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  17. package/es/components/multi-chat/src/components/ChatMain.vue2.js +1 -1
  18. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  19. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  20. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  21. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  22. package/es/env.d.ts +25 -25
  23. package/es/shared/assets/img/failure.png.js +1 -1
  24. package/es/shared/assets/img/no-permission.png.js +1 -1
  25. package/es/shared/assets/img/nodata.png.js +1 -1
  26. package/es/shared/assets/img/notfound.png.js +1 -1
  27. package/es/shared/assets/img/qr.png.js +1 -1
  28. package/es/shared/assets/img/success.png.js +1 -1
  29. package/es/shared/assets/img/video.png.js +1 -1
  30. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  31. package/es/shared/assets/img/xb_big.png.js +1 -1
  32. package/es/shared/assets/img/xb_small.png.js +1 -1
  33. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  34. package/es/shared/package.json.js +1 -1
  35. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  36. package/es/shared/utils/tapable/index.d.ts +139 -0
  37. package/package.json +2 -2
@@ -19,6 +19,94 @@ declare const _default: import("vue").DefineComponent<{
19
19
  extraMaterialList: {
20
20
  type: PropType<FormConfigItem[] | (() => FormConfigItem[] | Promise<FormConfigItem[]>)>;
21
21
  };
22
+ formProps: {
23
+ type: PropType<Partial<Partial<{
24
+ fieldList: import("../../../../es/components/form-render").FieldItem[];
25
+ initialData: import("../../../../es/shared/types").AnyObject;
26
+ fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
27
+ column: number;
28
+ maxHeight: string | number;
29
+ anchor: boolean;
30
+ parallelism: number;
31
+ schema: import("@formily/json-schema").Stringify<{
32
+ [key: symbol]: any;
33
+ [key: `x-${string}`]: any;
34
+ [key: `x-${number}`]: any;
35
+ version?: string | undefined;
36
+ name?: import("@formily/json-schema").SchemaKey | undefined;
37
+ title?: any;
38
+ description?: any;
39
+ default?: any;
40
+ readOnly?: boolean | undefined;
41
+ writeOnly?: boolean | undefined;
42
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
43
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
44
+ const?: any;
45
+ multipleOf?: number | undefined;
46
+ maximum?: number | undefined;
47
+ exclusiveMaximum?: number | undefined;
48
+ minimum?: number | undefined;
49
+ exclusiveMinimum?: number | undefined;
50
+ maxLength?: number | undefined;
51
+ minLength?: number | undefined;
52
+ pattern?: string | RegExp | undefined;
53
+ maxItems?: number | undefined;
54
+ minItems?: number | undefined;
55
+ uniqueItems?: boolean | undefined;
56
+ maxProperties?: number | undefined;
57
+ minProperties?: number | undefined;
58
+ required?: string | boolean | string[] | undefined;
59
+ format?: string | undefined;
60
+ $ref?: string | undefined;
61
+ $namespace?: string | undefined;
62
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
63
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
64
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
65
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
66
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
67
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
68
+ "x-value"?: any;
69
+ "x-index"?: number | undefined;
70
+ "x-pattern"?: any;
71
+ "x-display"?: any;
72
+ "x-validator"?: any;
73
+ "x-decorator"?: any;
74
+ "x-decorator-props"?: any;
75
+ "x-component"?: any;
76
+ "x-component-props"?: any;
77
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
78
+ "x-content"?: any;
79
+ "x-data"?: any;
80
+ "x-visible"?: boolean | undefined;
81
+ "x-hidden"?: boolean | undefined;
82
+ "x-disabled"?: boolean | undefined;
83
+ "x-editable"?: boolean | undefined;
84
+ "x-read-only"?: boolean | undefined;
85
+ "x-read-pretty"?: boolean | undefined;
86
+ "x-compile-omitted"?: string[] | undefined;
87
+ }>;
88
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
89
+ scope: import("../../../../es/shared/types").AnyObject;
90
+ annotation: import("../../../../es/shared/types").AnyObject;
91
+ consumer: boolean;
92
+ uuid: string;
93
+ lifeCycle: Partial<{
94
+ onSetup(): void;
95
+ beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
96
+ afterRequest(fieldKey: string, payload?: any): import("../../../../es/shared/types").AnyObject[];
97
+ afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
98
+ }>;
99
+ businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
100
+ requestInstance: import("../../../../es/components/form-render").RequestInstance;
101
+ enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
102
+ lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
103
+ linebarAutoHidden: boolean;
104
+ bordered: string | boolean;
105
+ uniqueCacheData: boolean;
106
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
107
+ outBordered: boolean;
108
+ }>>>;
109
+ };
22
110
  }, {
23
111
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
24
112
  maxHeight: {
@@ -36,6 +124,94 @@ declare const _default: import("vue").DefineComponent<{
36
124
  extraMaterialList: {
37
125
  type: PropType<FormConfigItem[] | (() => FormConfigItem[] | Promise<FormConfigItem[]>)>;
38
126
  };
127
+ formProps: {
128
+ type: PropType<Partial<Partial<{
129
+ fieldList: import("../../../../es/components/form-render").FieldItem[];
130
+ initialData: import("../../../../es/shared/types").AnyObject;
131
+ fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
132
+ column: number;
133
+ maxHeight: string | number;
134
+ anchor: boolean;
135
+ parallelism: number;
136
+ schema: import("@formily/json-schema").Stringify<{
137
+ [key: symbol]: any;
138
+ [key: `x-${string}`]: any;
139
+ [key: `x-${number}`]: any;
140
+ version?: string | undefined;
141
+ name?: import("@formily/json-schema").SchemaKey | undefined;
142
+ title?: any;
143
+ description?: any;
144
+ default?: any;
145
+ readOnly?: boolean | undefined;
146
+ writeOnly?: boolean | undefined;
147
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
148
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
149
+ const?: any;
150
+ multipleOf?: number | undefined;
151
+ maximum?: number | undefined;
152
+ exclusiveMaximum?: number | undefined;
153
+ minimum?: number | undefined;
154
+ exclusiveMinimum?: number | undefined;
155
+ maxLength?: number | undefined;
156
+ minLength?: number | undefined;
157
+ pattern?: string | RegExp | undefined;
158
+ maxItems?: number | undefined;
159
+ minItems?: number | undefined;
160
+ uniqueItems?: boolean | undefined;
161
+ maxProperties?: number | undefined;
162
+ minProperties?: number | undefined;
163
+ required?: string | boolean | string[] | undefined;
164
+ format?: string | undefined;
165
+ $ref?: string | undefined;
166
+ $namespace?: string | undefined;
167
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
168
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
169
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
170
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
171
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
172
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
173
+ "x-value"?: any;
174
+ "x-index"?: number | undefined;
175
+ "x-pattern"?: any;
176
+ "x-display"?: any;
177
+ "x-validator"?: any;
178
+ "x-decorator"?: any;
179
+ "x-decorator-props"?: any;
180
+ "x-component"?: any;
181
+ "x-component-props"?: any;
182
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
183
+ "x-content"?: any;
184
+ "x-data"?: any;
185
+ "x-visible"?: boolean | undefined;
186
+ "x-hidden"?: boolean | undefined;
187
+ "x-disabled"?: boolean | undefined;
188
+ "x-editable"?: boolean | undefined;
189
+ "x-read-only"?: boolean | undefined;
190
+ "x-read-pretty"?: boolean | undefined;
191
+ "x-compile-omitted"?: string[] | undefined;
192
+ }>;
193
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
194
+ scope: import("../../../../es/shared/types").AnyObject;
195
+ annotation: import("../../../../es/shared/types").AnyObject;
196
+ consumer: boolean;
197
+ uuid: string;
198
+ lifeCycle: Partial<{
199
+ onSetup(): void;
200
+ beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
201
+ afterRequest(fieldKey: string, payload?: any): import("../../../../es/shared/types").AnyObject[];
202
+ afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
203
+ }>;
204
+ businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
205
+ requestInstance: import("../../../../es/components/form-render").RequestInstance;
206
+ enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
207
+ lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
208
+ linebarAutoHidden: boolean;
209
+ bordered: string | boolean;
210
+ uniqueCacheData: boolean;
211
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
212
+ outBordered: boolean;
213
+ }>>>;
214
+ };
39
215
  }>> & {
40
216
  onAddItem?: ((...args: any[]) => any) | undefined;
41
217
  onRemoveItem?: ((...args: any[]) => any) | undefined;
@@ -7982,18 +8158,194 @@ declare const _default: import("vue").DefineComponent<{
7982
8158
  type: StringConstructor;
7983
8159
  required: true;
7984
8160
  };
7985
- formRenderRef: {
8161
+ bindFormRenderRef: {
7986
8162
  type: PropType<FormRenderExpose>;
7987
8163
  };
8164
+ formProps: {
8165
+ type: PropType<Partial<Partial<{
8166
+ fieldList: import("../../../../es/components/form-render").FieldItem[];
8167
+ initialData: import("../../../../es/shared/types").AnyObject;
8168
+ fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
8169
+ column: number;
8170
+ maxHeight: string | number;
8171
+ anchor: boolean;
8172
+ parallelism: number;
8173
+ schema: import("@formily/json-schema").Stringify<{
8174
+ [key: symbol]: any;
8175
+ [key: `x-${string}`]: any;
8176
+ [key: `x-${number}`]: any;
8177
+ version?: string | undefined;
8178
+ name?: import("@formily/json-schema").SchemaKey | undefined;
8179
+ title?: any;
8180
+ description?: any;
8181
+ default?: any;
8182
+ readOnly?: boolean | undefined;
8183
+ writeOnly?: boolean | undefined;
8184
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
8185
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
8186
+ const?: any;
8187
+ multipleOf?: number | undefined;
8188
+ maximum?: number | undefined;
8189
+ exclusiveMaximum?: number | undefined;
8190
+ minimum?: number | undefined;
8191
+ exclusiveMinimum?: number | undefined;
8192
+ maxLength?: number | undefined;
8193
+ minLength?: number | undefined;
8194
+ pattern?: string | RegExp | undefined;
8195
+ maxItems?: number | undefined;
8196
+ minItems?: number | undefined;
8197
+ uniqueItems?: boolean | undefined;
8198
+ maxProperties?: number | undefined;
8199
+ minProperties?: number | undefined;
8200
+ required?: string | boolean | string[] | undefined;
8201
+ format?: string | undefined;
8202
+ $ref?: string | undefined;
8203
+ $namespace?: string | undefined;
8204
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
8205
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
8206
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
8207
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
8208
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
8209
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
8210
+ "x-value"?: any;
8211
+ "x-index"?: number | undefined;
8212
+ "x-pattern"?: any;
8213
+ "x-display"?: any;
8214
+ "x-validator"?: any;
8215
+ "x-decorator"?: any;
8216
+ "x-decorator-props"?: any;
8217
+ "x-component"?: any;
8218
+ "x-component-props"?: any;
8219
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
8220
+ "x-content"?: any;
8221
+ "x-data"?: any;
8222
+ "x-visible"?: boolean | undefined;
8223
+ "x-hidden"?: boolean | undefined;
8224
+ "x-disabled"?: boolean | undefined;
8225
+ "x-editable"?: boolean | undefined;
8226
+ "x-read-only"?: boolean | undefined;
8227
+ "x-read-pretty"?: boolean | undefined;
8228
+ "x-compile-omitted"?: string[] | undefined;
8229
+ }>;
8230
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
8231
+ scope: import("../../../../es/shared/types").AnyObject;
8232
+ annotation: import("../../../../es/shared/types").AnyObject;
8233
+ consumer: boolean;
8234
+ uuid: string;
8235
+ lifeCycle: Partial<{
8236
+ onSetup(): void;
8237
+ beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
8238
+ afterRequest(fieldKey: string, payload?: any): import("../../../../es/shared/types").AnyObject[];
8239
+ afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
8240
+ }>;
8241
+ businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
8242
+ requestInstance: import("../../../../es/components/form-render").RequestInstance;
8243
+ enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
8244
+ lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
8245
+ linebarAutoHidden: boolean;
8246
+ bordered: string | boolean;
8247
+ uniqueCacheData: boolean;
8248
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
8249
+ outBordered: boolean;
8250
+ }>>>;
8251
+ };
7988
8252
  }, {
7989
8253
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
7990
8254
  uuid: {
7991
8255
  type: StringConstructor;
7992
8256
  required: true;
7993
8257
  };
7994
- formRenderRef: {
8258
+ bindFormRenderRef: {
7995
8259
  type: PropType<FormRenderExpose>;
7996
8260
  };
8261
+ formProps: {
8262
+ type: PropType<Partial<Partial<{
8263
+ fieldList: import("../../../../es/components/form-render").FieldItem[];
8264
+ initialData: import("../../../../es/shared/types").AnyObject;
8265
+ fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
8266
+ column: number;
8267
+ maxHeight: string | number;
8268
+ anchor: boolean;
8269
+ parallelism: number;
8270
+ schema: import("@formily/json-schema").Stringify<{
8271
+ [key: symbol]: any;
8272
+ [key: `x-${string}`]: any;
8273
+ [key: `x-${number}`]: any;
8274
+ version?: string | undefined;
8275
+ name?: import("@formily/json-schema").SchemaKey | undefined;
8276
+ title?: any;
8277
+ description?: any;
8278
+ default?: any;
8279
+ readOnly?: boolean | undefined;
8280
+ writeOnly?: boolean | undefined;
8281
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
8282
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
8283
+ const?: any;
8284
+ multipleOf?: number | undefined;
8285
+ maximum?: number | undefined;
8286
+ exclusiveMaximum?: number | undefined;
8287
+ minimum?: number | undefined;
8288
+ exclusiveMinimum?: number | undefined;
8289
+ maxLength?: number | undefined;
8290
+ minLength?: number | undefined;
8291
+ pattern?: string | RegExp | undefined;
8292
+ maxItems?: number | undefined;
8293
+ minItems?: number | undefined;
8294
+ uniqueItems?: boolean | undefined;
8295
+ maxProperties?: number | undefined;
8296
+ minProperties?: number | undefined;
8297
+ required?: string | boolean | string[] | undefined;
8298
+ format?: string | undefined;
8299
+ $ref?: string | undefined;
8300
+ $namespace?: string | undefined;
8301
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
8302
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
8303
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
8304
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
8305
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
8306
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
8307
+ "x-value"?: any;
8308
+ "x-index"?: number | undefined;
8309
+ "x-pattern"?: any;
8310
+ "x-display"?: any;
8311
+ "x-validator"?: any;
8312
+ "x-decorator"?: any;
8313
+ "x-decorator-props"?: any;
8314
+ "x-component"?: any;
8315
+ "x-component-props"?: any;
8316
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
8317
+ "x-content"?: any;
8318
+ "x-data"?: any;
8319
+ "x-visible"?: boolean | undefined;
8320
+ "x-hidden"?: boolean | undefined;
8321
+ "x-disabled"?: boolean | undefined;
8322
+ "x-editable"?: boolean | undefined;
8323
+ "x-read-only"?: boolean | undefined;
8324
+ "x-read-pretty"?: boolean | undefined;
8325
+ "x-compile-omitted"?: string[] | undefined;
8326
+ }>;
8327
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
8328
+ scope: import("../../../../es/shared/types").AnyObject;
8329
+ annotation: import("../../../../es/shared/types").AnyObject;
8330
+ consumer: boolean;
8331
+ uuid: string;
8332
+ lifeCycle: Partial<{
8333
+ onSetup(): void;
8334
+ beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
8335
+ afterRequest(fieldKey: string, payload?: any): import("../../../../es/shared/types").AnyObject[];
8336
+ afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
8337
+ }>;
8338
+ businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
8339
+ requestInstance: import("../../../../es/components/form-render").RequestInstance;
8340
+ enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
8341
+ lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
8342
+ linebarAutoHidden: boolean;
8343
+ bordered: string | boolean;
8344
+ uniqueCacheData: boolean;
8345
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
8346
+ outBordered: boolean;
8347
+ }>>>;
8348
+ };
7997
8349
  }>> & {}>>;
7998
8350
  wrapperSelector: import("vue").ComputedRef<string>;
7999
8351
  formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
@@ -13973,9 +14325,97 @@ declare const _default: import("vue").DefineComponent<{
13973
14325
  type: StringConstructor;
13974
14326
  required: true;
13975
14327
  };
13976
- formRenderRef: {
14328
+ bindFormRenderRef: {
13977
14329
  type: PropType<FormRenderExpose>;
13978
14330
  };
14331
+ formProps: {
14332
+ type: PropType<Partial<Partial<{
14333
+ fieldList: import("../../../../es/components/form-render").FieldItem[];
14334
+ initialData: import("../../../../es/shared/types").AnyObject;
14335
+ fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
14336
+ column: number;
14337
+ maxHeight: string | number;
14338
+ anchor: boolean;
14339
+ parallelism: number;
14340
+ schema: import("@formily/json-schema").Stringify<{
14341
+ [key: symbol]: any;
14342
+ [key: `x-${string}`]: any;
14343
+ [key: `x-${number}`]: any;
14344
+ version?: string | undefined;
14345
+ name?: import("@formily/json-schema").SchemaKey | undefined;
14346
+ title?: any;
14347
+ description?: any;
14348
+ default?: any;
14349
+ readOnly?: boolean | undefined;
14350
+ writeOnly?: boolean | undefined;
14351
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
14352
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
14353
+ const?: any;
14354
+ multipleOf?: number | undefined;
14355
+ maximum?: number | undefined;
14356
+ exclusiveMaximum?: number | undefined;
14357
+ minimum?: number | undefined;
14358
+ exclusiveMinimum?: number | undefined;
14359
+ maxLength?: number | undefined;
14360
+ minLength?: number | undefined;
14361
+ pattern?: string | RegExp | undefined;
14362
+ maxItems?: number | undefined;
14363
+ minItems?: number | undefined;
14364
+ uniqueItems?: boolean | undefined;
14365
+ maxProperties?: number | undefined;
14366
+ minProperties?: number | undefined;
14367
+ required?: string | boolean | string[] | undefined;
14368
+ format?: string | undefined;
14369
+ $ref?: string | undefined;
14370
+ $namespace?: string | undefined;
14371
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
14372
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
14373
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
14374
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
14375
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
14376
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
14377
+ "x-value"?: any;
14378
+ "x-index"?: number | undefined;
14379
+ "x-pattern"?: any;
14380
+ "x-display"?: any;
14381
+ "x-validator"?: any;
14382
+ "x-decorator"?: any;
14383
+ "x-decorator-props"?: any;
14384
+ "x-component"?: any;
14385
+ "x-component-props"?: any;
14386
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
14387
+ "x-content"?: any;
14388
+ "x-data"?: any;
14389
+ "x-visible"?: boolean | undefined;
14390
+ "x-hidden"?: boolean | undefined;
14391
+ "x-disabled"?: boolean | undefined;
14392
+ "x-editable"?: boolean | undefined;
14393
+ "x-read-only"?: boolean | undefined;
14394
+ "x-read-pretty"?: boolean | undefined;
14395
+ "x-compile-omitted"?: string[] | undefined;
14396
+ }>;
14397
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14398
+ scope: import("../../../../es/shared/types").AnyObject;
14399
+ annotation: import("../../../../es/shared/types").AnyObject;
14400
+ consumer: boolean;
14401
+ uuid: string;
14402
+ lifeCycle: Partial<{
14403
+ onSetup(): void;
14404
+ beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
14405
+ afterRequest(fieldKey: string, payload?: any): import("../../../../es/shared/types").AnyObject[];
14406
+ afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
14407
+ }>;
14408
+ businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
14409
+ requestInstance: import("../../../../es/components/form-render").RequestInstance;
14410
+ enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
14411
+ lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
14412
+ linebarAutoHidden: boolean;
14413
+ bordered: string | boolean;
14414
+ uniqueCacheData: boolean;
14415
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
14416
+ outBordered: boolean;
14417
+ }>>>;
14418
+ };
13979
14419
  }>>, {}>;
13980
14420
  FormConfigMaterialItem: import("vue").DefineComponent<{
13981
14421
  formConfigItem: {
@@ -14024,6 +14464,94 @@ declare const _default: import("vue").DefineComponent<{
14024
14464
  extraMaterialList: {
14025
14465
  type: PropType<FormConfigItem[] | (() => FormConfigItem[] | Promise<FormConfigItem[]>)>;
14026
14466
  };
14467
+ formProps: {
14468
+ type: PropType<Partial<Partial<{
14469
+ fieldList: import("../../../../es/components/form-render").FieldItem[];
14470
+ initialData: import("../../../../es/shared/types").AnyObject;
14471
+ fieldVisitor: import("../../../../es/components/form-render").FieldVisitor;
14472
+ column: number;
14473
+ maxHeight: string | number;
14474
+ anchor: boolean;
14475
+ parallelism: number;
14476
+ schema: import("@formily/json-schema").Stringify<{
14477
+ [key: symbol]: any;
14478
+ [key: `x-${string}`]: any;
14479
+ [key: `x-${number}`]: any;
14480
+ version?: string | undefined;
14481
+ name?: import("@formily/json-schema").SchemaKey | undefined;
14482
+ title?: any;
14483
+ description?: any;
14484
+ default?: any;
14485
+ readOnly?: boolean | undefined;
14486
+ writeOnly?: boolean | undefined;
14487
+ type?: import("@formily/json-schema").SchemaTypes | undefined;
14488
+ enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
14489
+ const?: any;
14490
+ multipleOf?: number | undefined;
14491
+ maximum?: number | undefined;
14492
+ exclusiveMaximum?: number | undefined;
14493
+ minimum?: number | undefined;
14494
+ exclusiveMinimum?: number | undefined;
14495
+ maxLength?: number | undefined;
14496
+ minLength?: number | undefined;
14497
+ pattern?: string | RegExp | undefined;
14498
+ maxItems?: number | undefined;
14499
+ minItems?: number | undefined;
14500
+ uniqueItems?: boolean | undefined;
14501
+ maxProperties?: number | undefined;
14502
+ minProperties?: number | undefined;
14503
+ required?: string | boolean | string[] | undefined;
14504
+ format?: string | undefined;
14505
+ $ref?: string | undefined;
14506
+ $namespace?: string | undefined;
14507
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
14508
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
14509
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
14510
+ additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
14511
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
14512
+ additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
14513
+ "x-value"?: any;
14514
+ "x-index"?: number | undefined;
14515
+ "x-pattern"?: any;
14516
+ "x-display"?: any;
14517
+ "x-validator"?: any;
14518
+ "x-decorator"?: any;
14519
+ "x-decorator-props"?: any;
14520
+ "x-component"?: any;
14521
+ "x-component-props"?: any;
14522
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
14523
+ "x-content"?: any;
14524
+ "x-data"?: any;
14525
+ "x-visible"?: boolean | undefined;
14526
+ "x-hidden"?: boolean | undefined;
14527
+ "x-disabled"?: boolean | undefined;
14528
+ "x-editable"?: boolean | undefined;
14529
+ "x-read-only"?: boolean | undefined;
14530
+ "x-read-pretty"?: boolean | undefined;
14531
+ "x-compile-omitted"?: string[] | undefined;
14532
+ }>;
14533
+ components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
14534
+ scope: import("../../../../es/shared/types").AnyObject;
14535
+ annotation: import("../../../../es/shared/types").AnyObject;
14536
+ consumer: boolean;
14537
+ uuid: string;
14538
+ lifeCycle: Partial<{
14539
+ onSetup(): void;
14540
+ beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
14541
+ afterRequest(fieldKey: string, payload?: any): import("../../../../es/shared/types").AnyObject[];
14542
+ afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
14543
+ }>;
14544
+ businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
14545
+ requestInstance: import("../../../../es/components/form-render").RequestInstance;
14546
+ enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
14547
+ lowCodeReactions: import("../../../../es/components/form-render").FormLowCodeReactions.Config[];
14548
+ linebarAutoHidden: boolean;
14549
+ bordered: string | boolean;
14550
+ uniqueCacheData: boolean;
14551
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
14552
+ outBordered: boolean;
14553
+ }>>>;
14554
+ };
14027
14555
  }>> & {
14028
14556
  onAddItem?: ((...args: any[]) => any) | undefined;
14029
14557
  onRemoveItem?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- import{defineComponent as e,provide as o,ref as t,computed as r,toRaw as a,openBlock as i,createElementBlock as l,normalizeStyle as n,unref as s,createElementVNode as m,createVNode as f,mergeProps as u,withCtx as c,createBlock as d,isRef as p,createCommentVNode as v,createTextVNode as g}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isArray as _,cloneDeep as x,isFunction as y}from"lodash-es";import{uuidGenerator as C,traverse as j}from"../../../shared/utils/index.js";import L from"../../../shared/components/VueDraggable/src/vuedraggable.js";import k from"./components/FormConfigCreator.vue.js";import F from"./components/FormConfigDragDisplay.vue.js";import b from"./components/FormConfigEdit.vue.js";import M from"./components/FormConfigMaterialItem.js";import{useDataNormalize as V}from"./hooks/useDataNormalize.js";import{InjectionFormConfigEmit as E,InjectionFieldList as I,InjectionMaterialList as D,InjectionActiveFieldItem as R,FORM_CONFIG_GROUP as H}from"./constants/index.js";import"@vicons/ionicons5";import{NSelect as N}from"naive-ui";import"./utils/index.js";import{useSortableConfig as O}from"./hooks/useSortalbeConfig.js";import"./hooks/useConfigurationField.js";const A=["id"],S={class:"form-config__material"},T=m("header",{class:"form-config__materialHeader"},"物料区",-1),U={class:"form-config__displayWrapper"},w={class:"form-config__displayHeader"},B={class:"form-config__config"},z=m("header",{class:"form-config__configHeader"},"配置区",-1),W={class:"form-config__configContent"};var q=e({__name:"FormConfig",props:{maxHeight:{type:String},fieldVisitor:{type:Object},textFormatter:{type:Function},formRenderRef:{type:Object},extraMaterialList:{type:[Array,Function]}},emits:["addItem","removeItem"],setup(e,{expose:q,emit:G}){const J=e;o(E,G);const K=C(),P=h(),{getCommonConfig:Q}=O(),X=t([]);o(I,X);const Y=t([]);function Z(e){X.value.some((o=>o.key===e.key))||X.value.push(e)}o(D,Y);const $=(e,o)=>y(J.textFormatter)?J.textFormatter(e,o):o,ee=t();o(R,ee);const oe=t(),{transform:te,inverseTransform:re}=V(J),ae=r({get:()=>null,set(e){if(!e)return;const o=le.value.find((o=>o.key===e));o&&(o.__extra=!0,Y.value.push(o),G("addItem",o))}}),ie=t([]),le=r((()=>{if(!_(ie.value))return[];const e=[];return j([...Y.value,...X.value],(o=>e.push(o.key))),ie.value.filter((o=>!e.find((e=>e===o.key))))}));async function ne(){J.extraMaterialList&&!ie.value.length&&(ie.value=y(J.extraMaterialList)?await J.extraMaterialList():J.extraMaterialList)}return q({loadData({fieldList:e}){let o=[],t=[];e.forEach((e=>function(e){"LINE_BAR"===e.type&&(e.children=[]);!1===e.show?t.push(e):o.push(e),"COMBINATION"===e.type&&_(e.children)&&e.children.length&&e.children.forEach((e=>{e.__isCombinationChild=!0}))}(x(a(e))))),X.value=te(o),Y.value=t,ee.value=void 0},validate(){var e;return null==(e=oe.value)?void 0:e.validate()},getData:(e=!1)=>({fieldList:re(x(a(X.value)),e),materialList:re(x(a(Y.value)),e)}),clearExtraList(){ie.value=[]}}),(o,t)=>(i(),l("section",{class:"form-config",style:n({"--max-height":e.maxHeight,...s(P)}),id:s(K)},[m("section",S,[T,f(s(L),u(s(Q)(),{class:"form-config__materialContent",modelValue:Y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>Y.value=e)}),{item:c((({element:e})=>[f(s(M),{"form-config-item":e,"text-formatter":$,"material-List":Y.value},null,8,["form-config-item","material-List"])])),_:1},16,["modelValue"]),e.extraMaterialList?(i(),d(s(N),{key:0,class:"form-config__materialExtraList",filterable:"",value:s(ae),"onUpdate:value":t[1]||(t[1]=e=>p(ae)?ae.value=e:null),placeholder:"请选择额外物料",options:s(le),"label-field":"name","value-field":"key",onFocus:ne},null,8,["value","options"])):v("v-if",!0)]),m("section",U,[m("header",w,[g(" 布局区 "),f(k,{onSubmit:Z})]),f(F,{class:"form-config__displayContent",group:s(H),"text-formatter":$,modelValue:X.value,"onUpdate:modelValue":t[2]||(t[2]=e=>X.value=e)},null,8,["group","modelValue"])]),m("section",B,[z,m("section",W,[f(b,{ref_key:"formConfigEditRef",ref:oe,uuid:s(K),"form-render-ref":e.formRenderRef},null,8,["uuid","form-render-ref"])])])],12,A))}});export{q as default};
1
+ import{defineComponent as e,provide as o,ref as t,computed as r,toRaw as a,openBlock as i,createElementBlock as n,normalizeStyle as s,unref as l,createElementVNode as m,createVNode as f,mergeProps as u,withCtx as c,createBlock as d,isRef as p,createCommentVNode as v,createTextVNode as g}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isArray as _,cloneDeep as y,isFunction as x}from"lodash-es";import{uuidGenerator as C,traverse as j}from"../../../shared/utils/index.js";import L from"../../../shared/components/VueDraggable/src/vuedraggable.js";import b from"./components/FormConfigCreator.vue.js";import k from"./components/FormConfigDragDisplay.vue.js";import F from"./components/FormConfigEdit.vue.js";import M from"./components/FormConfigMaterialItem.js";import{useDataNormalize as V}from"./hooks/useDataNormalize.js";import{InjectionFormConfigEmit as E,InjectionFieldList as I,InjectionMaterialList as D,InjectionActiveFieldItem as R,FORM_CONFIG_GROUP as H}from"./constants/index.js";import"@vicons/ionicons5";import{NSelect as O}from"naive-ui";import"./utils/index.js";import{useSortableConfig as N}from"./hooks/useSortalbeConfig.js";import"./hooks/useConfigurationField.js";const A=["id"],S={class:"form-config__material"},T=m("header",{class:"form-config__materialHeader"},"物料区",-1),U={class:"form-config__displayWrapper"},w={class:"form-config__displayHeader"},B={class:"form-config__config"},P=m("header",{class:"form-config__configHeader"},"配置区",-1),z={class:"form-config__configContent"};var W=e({__name:"FormConfig",props:{maxHeight:{type:String},fieldVisitor:{type:Object},textFormatter:{type:Function},formRenderRef:{type:Object},extraMaterialList:{type:[Array,Function]},formProps:{type:Object}},emits:["addItem","removeItem"],setup(e,{expose:W,emit:q}){const G=e;o(E,q);const J=C(),K=h(),{getCommonConfig:Q}=N(),X=t([]);o(I,X);const Y=t([]);function Z(e){X.value.some((o=>o.key===e.key))||X.value.push(e)}o(D,Y);const $=(e,o)=>x(G.textFormatter)?G.textFormatter(e,o):o,ee=t();o(R,ee);const oe=t(),{transform:te,inverseTransform:re}=V(G),ae=r({get:()=>null,set(e){if(!e)return;const o=ne.value.find((o=>o.key===e));o&&(o.__extra=!0,Y.value.push(o),q("addItem",o))}}),ie=t([]),ne=r((()=>{if(!_(ie.value))return[];const e=[];return j([...Y.value,...X.value],(o=>e.push(o.key))),ie.value.filter((o=>!e.find((e=>e===o.key))))}));async function se(){G.extraMaterialList&&!ie.value.length&&(ie.value=x(G.extraMaterialList)?await G.extraMaterialList():G.extraMaterialList)}return W({loadData({fieldList:e}){let o=[],t=[];e.forEach((e=>function(e){"LINE_BAR"===e.type&&(e.children=[]);!1===e.show?t.push(e):o.push(e),"COMBINATION"===e.type&&_(e.children)&&e.children.length&&e.children.forEach((e=>{e.__isCombinationChild=!0}))}(y(a(e))))),X.value=te(o),Y.value=t,ee.value=void 0},validate(){var e;return null==(e=oe.value)?void 0:e.validate()},getData:(e=!1)=>({fieldList:re(y(a(X.value)),e),materialList:re(y(a(Y.value)),e)}),clearExtraList(){ie.value=[]}}),(o,t)=>(i(),n("section",{class:"form-config",style:s({"--max-height":e.maxHeight,...l(K)}),id:l(J)},[m("section",S,[T,f(l(L),u(l(Q)(),{class:"form-config__materialContent",modelValue:Y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>Y.value=e)}),{item:c((({element:e})=>[f(l(M),{"form-config-item":e,"text-formatter":$,"material-List":Y.value},null,8,["form-config-item","material-List"])])),_:1},16,["modelValue"]),e.extraMaterialList?(i(),d(l(O),{key:0,class:"form-config__materialExtraList",filterable:"",value:l(ae),"onUpdate:value":t[1]||(t[1]=e=>p(ae)?ae.value=e:null),placeholder:"请选择额外物料",options:l(ne),"label-field":"name","value-field":"key",onFocus:se},null,8,["value","options"])):v("v-if",!0)]),m("section",U,[m("header",w,[g(" 布局区 "),f(b,{onSubmit:Z})]),f(k,{class:"form-config__displayContent",group:l(H),"text-formatter":$,modelValue:X.value,"onUpdate:modelValue":t[2]||(t[2]=e=>X.value=e)},null,8,["group","modelValue"])]),m("section",B,[P,m("section",z,[f(F,{ref_key:"formConfigEditRef",ref:oe,uuid:l(J),"bind-form-render-ref":e.formRenderRef,"form-props":e.formProps},null,8,["uuid","bind-form-render-ref","form-props"])])])],12,A))}});export{W as default};