cnhis-design-vue 3.1.53-beta.1 → 3.1.53-beta.2

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 (107) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +4 -4
  3. package/es/components/big-table/src/hooks/useEdit.d.ts +4 -4
  4. package/es/components/big-table/src/hooks/useSeparateRow.d.ts +4 -4
  5. package/es/components/button-print/src/ButtonPrint.vue.d.ts +3 -1
  6. package/es/components/button-print/src/utils/dialog.d.ts +2 -2
  7. package/es/components/button-print/src/utils/print.d.ts +14 -13
  8. package/es/components/button-print/src/utils/print.js +1 -1
  9. package/es/components/callback/src/components/render/popupMaps.d.ts +44 -5
  10. package/es/components/card-reader-sdk/src/types/index.d.ts +3 -3
  11. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  12. package/es/components/form-config/index.d.ts +24 -24
  13. package/es/components/form-config/src/FormConfig.vue.d.ts +25 -25
  14. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  15. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -5
  16. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +11 -11
  17. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  18. package/es/components/form-render/index.d.ts +5 -5
  19. package/es/components/form-render/index.js +1 -1
  20. package/es/components/form-render/src/FormRender.vue.d.ts +6 -6
  21. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  22. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +6 -6
  23. package/es/components/form-render/src/components/renderer/inputNumber.d.ts +5 -5
  24. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +2 -4
  25. package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
  26. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +3 -3
  27. package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
  28. package/es/components/form-render/src/components/renderer/select.js +1 -1
  29. package/es/components/form-render/src/constants/index.d.ts +3 -2
  30. package/es/components/form-render/src/hooks/index.d.ts +0 -2
  31. package/es/components/form-render/src/hooks/index.js +1 -1
  32. package/es/components/form-render/src/hooks/useAnchor.d.ts +3 -3
  33. package/es/components/form-render/src/hooks/useCommonInjection.d.ts +2 -2
  34. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  35. package/es/components/form-render/src/hooks/useFormContext.d.ts +3 -3
  36. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  37. package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
  38. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +5 -4
  39. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  40. package/es/components/form-render/src/types/fieldItem.d.ts +3 -2
  41. package/es/components/form-render/src/types/index.d.ts +2 -13
  42. package/es/components/form-render/src/utils/index.d.ts +1 -2
  43. package/es/components/form-render/src/utils/index.js +1 -1
  44. package/es/components/form-render/src/utils/schema.d.ts +2 -2
  45. package/es/components/guide/src/renderer.js +1 -1
  46. package/es/components/iho-table/index.d.ts +39 -0
  47. package/es/components/iho-table/src/IhoTable.vue.d.ts +40 -0
  48. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  49. package/es/components/iho-table/src/constants/index.d.ts +4 -1
  50. package/es/components/iho-table/src/constants/index.js +1 -1
  51. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -2
  52. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +2 -2
  53. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  54. package/es/components/iho-table/src/plugins/index.js +1 -1
  55. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
  56. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  57. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -0
  58. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -0
  59. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +552 -0
  60. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.js +1 -0
  61. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -0
  62. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
  64. package/es/components/iho-table/src/types/index.d.ts +5 -2
  65. package/es/components/iho-table/src/types/pluginType.d.ts +3 -3
  66. package/es/components/index.d.ts +1 -0
  67. package/es/components/index.js +1 -1
  68. package/es/components/info-header/index.d.ts +27 -27
  69. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  70. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -5
  71. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +6 -6
  72. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +12 -12
  73. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -5
  74. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  75. package/es/components/search-cascader/index.d.ts +23 -3
  76. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +24 -4
  77. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  78. package/es/components/search-cascader/src/components/ClearIcon.vue.js +1 -0
  79. package/es/components/shortcut-setter/index.d.ts +8 -8
  80. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +9 -9
  81. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  82. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  83. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +4 -4
  84. package/es/shared/components/SlotRender/SlotRender.d.ts +5 -5
  85. package/es/shared/hooks/index.d.ts +2 -0
  86. package/es/shared/hooks/index.js +1 -1
  87. package/es/shared/hooks/{useAsyncQueue.d.ts → useAsyncQueue/index.d.ts} +7 -15
  88. package/es/shared/hooks/useAsyncQueue/index.js +1 -0
  89. package/es/shared/hooks/useAsyncQueue/types.d.ts +20 -0
  90. package/es/shared/hooks/useAsyncQueue/types.js +1 -0
  91. package/es/shared/hooks/useDateTime.d.ts +2 -2
  92. package/es/shared/hooks/useFormRequest/index.d.ts +24 -0
  93. package/es/shared/hooks/useFormRequest/index.js +1 -0
  94. package/es/shared/hooks/useFormRequest/types.d.ts +39 -0
  95. package/es/shared/hooks/useFormRequest/types.js +1 -0
  96. package/es/shared/hooks/useLevelSearchCascader.d.ts +31 -0
  97. package/es/shared/hooks/useLevelSearchCascader.js +1 -0
  98. package/es/shared/package.json.js +1 -1
  99. package/es/shared/types/index.d.ts +1 -1
  100. package/package.json +2 -2
  101. package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.d.ts +0 -23
  102. package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.js +0 -1
  103. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +0 -16
  104. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +0 -1
  105. package/es/components/form-render/src/hooks/useFormRequest.d.ts +0 -26
  106. package/es/components/form-render/src/hooks/useFormRequest.js +0 -1
  107. package/es/shared/hooks/useAsyncQueue.js +0 -1
@@ -0,0 +1,552 @@
1
+ import { AnyObject } from '../../../../../../../../es/shared/types';
2
+ import { PropType } from 'vue';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ options: {
5
+ type: PropType<AnyObject[]>;
6
+ default: () => never[];
7
+ };
8
+ labelField: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ valueField: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ autograph: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ lazyRequest: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ requestCache: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ wordbook: {
29
+ type: PropType<Partial<{
30
+ level_num: number;
31
+ id: string;
32
+ name: string;
33
+ render_key: string[];
34
+ search_key: string[];
35
+ value_key: string;
36
+ queryParams: string[];
37
+ primary_key: string;
38
+ type: string;
39
+ level_key: string;
40
+ link_key: string;
41
+ link_key_split: string;
42
+ show_key: string | string[];
43
+ conObj: AnyObject[];
44
+ conObjFirstLevel: AnyObject[];
45
+ setting: Partial<{
46
+ cascading: {
47
+ 'form.name': string;
48
+ value: string;
49
+ }[];
50
+ }>;
51
+ }>>;
52
+ required: true;
53
+ };
54
+ value: {
55
+ type: PropType<string | AnyObject[]>;
56
+ };
57
+ fieldKey: {
58
+ type: StringConstructor;
59
+ required: true;
60
+ };
61
+ payload: {
62
+ type: PropType<AnyObject>;
63
+ required: true;
64
+ };
65
+ }, {
66
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
67
+ options: {
68
+ type: PropType<AnyObject[]>;
69
+ default: () => never[];
70
+ };
71
+ labelField: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ valueField: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ autograph: {
80
+ type: StringConstructor;
81
+ required: true;
82
+ };
83
+ lazyRequest: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ requestCache: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ wordbook: {
92
+ type: PropType<Partial<{
93
+ level_num: number;
94
+ id: string;
95
+ name: string;
96
+ render_key: string[];
97
+ search_key: string[];
98
+ value_key: string;
99
+ queryParams: string[];
100
+ primary_key: string;
101
+ type: string;
102
+ level_key: string;
103
+ link_key: string;
104
+ link_key_split: string;
105
+ show_key: string | string[];
106
+ conObj: AnyObject[];
107
+ conObjFirstLevel: AnyObject[];
108
+ setting: Partial<{
109
+ cascading: {
110
+ 'form.name': string;
111
+ value: string;
112
+ }[];
113
+ }>;
114
+ }>>;
115
+ required: true;
116
+ };
117
+ value: {
118
+ type: PropType<string | AnyObject[]>;
119
+ };
120
+ fieldKey: {
121
+ type: StringConstructor;
122
+ required: true;
123
+ };
124
+ payload: {
125
+ type: PropType<AnyObject>;
126
+ required: true;
127
+ };
128
+ }>> & {
129
+ onClick?: ((...args: any[]) => any) | undefined;
130
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
131
+ }>>;
132
+ emit: (event: "click" | "update:value", ...args: any[]) => void;
133
+ asyncQueue: import("../../../../../../../../es/shared/hooks").FormRequestDefine.FormAsyncQueue;
134
+ valueKey: import("vue").ComputedRef<string>;
135
+ valueRef: import("vue").WritableComputedRef<string | AnyObject[] | undefined>;
136
+ labelKey: import("vue").ComputedRef<string>;
137
+ optionsRef: import("vue").Ref<AnyObject[]>;
138
+ showRef: import("vue").Ref<boolean>;
139
+ fetchData: (node?: AnyObject | undefined, keyword?: string | undefined, updateValueWhenNoChild?: boolean) => Promise<void | AnyObject>;
140
+ menuWidth: import("vue").Ref<number>;
141
+ searchCascaderRef: import("vue").Ref<{
142
+ getWidth: () => number;
143
+ setCursor: (option?: AnyObject | undefined) => void;
144
+ } | undefined>;
145
+ onFocus: () => void;
146
+ onClick: (event: MouseEvent) => void;
147
+ NoData: import("vue").DefineComponent<{
148
+ noDataTip: {
149
+ type: StringConstructor;
150
+ default: string;
151
+ };
152
+ noDataImg: {
153
+ type: StringConstructor;
154
+ default: string;
155
+ };
156
+ showImg: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ }, {
161
+ wrapperStyle: import("vue").CSSProperties;
162
+ imgStyle: import("vue").CSSProperties;
163
+ paragraphStyle: import("vue").CSSProperties;
164
+ textStyle: import("vue").CSSProperties;
165
+ imgStr: import("vue").ComputedRef<null>;
166
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
167
+ noDataTip: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ noDataImg: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ showImg: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ }>> & {}>>;
180
+ handleDesc: import("vue").ComputedRef<string>;
181
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
182
+ noDataTip: {
183
+ type: StringConstructor;
184
+ default: string;
185
+ };
186
+ noDataImg: {
187
+ type: StringConstructor;
188
+ default: string;
189
+ };
190
+ showImg: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ }>>, {
195
+ noDataTip: string;
196
+ noDataImg: string;
197
+ showImg: boolean;
198
+ }>;
199
+ CSearchCascader: import("../../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{
200
+ value: {
201
+ type: PropType<string | AnyObject[]>;
202
+ };
203
+ show: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ clearable: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ childKey: {
212
+ type: StringConstructor;
213
+ default: string;
214
+ };
215
+ placeholder: {
216
+ type: StringConstructor;
217
+ default: string;
218
+ };
219
+ editPlaceholder: {
220
+ type: StringConstructor;
221
+ default: string;
222
+ };
223
+ options: {
224
+ type: PropType<AnyObject[]>;
225
+ default: () => never[];
226
+ };
227
+ search: {
228
+ type: PropType<import("../../../../../../../../es/shared/types").AnyFn<any[], any>>;
229
+ };
230
+ labelKey: {
231
+ type: StringConstructor;
232
+ default: string;
233
+ };
234
+ valueKey: {
235
+ type: StringConstructor;
236
+ default: string;
237
+ };
238
+ checkAbleLevel: {
239
+ type: PropType<number | "last">;
240
+ default: string;
241
+ };
242
+ beforeSetValue: {
243
+ type: PropType<(value: string | AnyObject[]) => void | (string | AnyObject[]) | Promise<string | AnyObject[]>>;
244
+ };
245
+ menuWidth: {
246
+ type: (NumberConstructor | StringConstructor)[];
247
+ default: number;
248
+ };
249
+ disabled: BooleanConstructor;
250
+ inputProps: {
251
+ type: PropType<AnyObject>;
252
+ };
253
+ popperProps: {
254
+ type: PropType<AnyObject>;
255
+ };
256
+ }, {
257
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
258
+ value: {
259
+ type: PropType<string | AnyObject[]>;
260
+ };
261
+ show: {
262
+ type: BooleanConstructor;
263
+ default: boolean;
264
+ };
265
+ clearable: {
266
+ type: BooleanConstructor;
267
+ default: boolean;
268
+ };
269
+ childKey: {
270
+ type: StringConstructor;
271
+ default: string;
272
+ };
273
+ placeholder: {
274
+ type: StringConstructor;
275
+ default: string;
276
+ };
277
+ editPlaceholder: {
278
+ type: StringConstructor;
279
+ default: string;
280
+ };
281
+ options: {
282
+ type: PropType<AnyObject[]>;
283
+ default: () => never[];
284
+ };
285
+ search: {
286
+ type: PropType<import("../../../../../../../../es/shared/types").AnyFn<any[], any>>;
287
+ };
288
+ labelKey: {
289
+ type: StringConstructor;
290
+ default: string;
291
+ };
292
+ valueKey: {
293
+ type: StringConstructor;
294
+ default: string;
295
+ };
296
+ checkAbleLevel: {
297
+ type: PropType<number | "last">;
298
+ default: string;
299
+ };
300
+ beforeSetValue: {
301
+ type: PropType<(value: string | AnyObject[]) => void | (string | AnyObject[]) | Promise<string | AnyObject[]>>;
302
+ };
303
+ menuWidth: {
304
+ type: (NumberConstructor | StringConstructor)[];
305
+ default: number;
306
+ };
307
+ disabled: BooleanConstructor;
308
+ inputProps: {
309
+ type: PropType<AnyObject>;
310
+ };
311
+ popperProps: {
312
+ type: PropType<AnyObject>;
313
+ };
314
+ }>> & {
315
+ onFocus?: ((...args: any[]) => any) | undefined;
316
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
317
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
318
+ }>>;
319
+ cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
320
+ emit: (event: "update:show" | "update:value" | "focus", ...args: any[]) => void;
321
+ emitValue: (value: string | AnyObject[]) => void;
322
+ clearableRef: import("vue").ComputedRef<number | boolean>;
323
+ onClear: () => void;
324
+ onClick: (evt: Event) => void;
325
+ onKeydown: (evt: KeyboardEvent) => void;
326
+ cssVariable: import("vue").ComputedRef<{
327
+ '--menu-width': string | number;
328
+ }>;
329
+ eventBus: AnyObject;
330
+ uuid: string;
331
+ show: import("vue").Ref<boolean> | import("vue").WritableComputedRef<boolean>;
332
+ patternContent: import("vue").Ref<string>;
333
+ editPlaceholderRef: import("vue").ComputedRef<string>;
334
+ displayValue: import("vue").WritableComputedRef<string>;
335
+ onFocus: (focusEvt: Event) => void;
336
+ openMenu: () => void;
337
+ closeMenu: () => Promise<void>;
338
+ inputRef: import("vue").Ref<any>;
339
+ popoverRef: import("vue").Ref<any>;
340
+ currentNode: import("vue").Ref<AnyObject | undefined>;
341
+ cursorNode: import("vue").Ref<AnyObject | undefined>;
342
+ loadingNode: import("vue").Ref<import("../../../../../../../../es/shared/types").Nullable<AnyObject>>;
343
+ search: (payload?: {
344
+ type: "search" | "update";
345
+ node: AnyObject;
346
+ } | undefined, keyword?: string | undefined) => Promise<void>;
347
+ changeCursorNode: (node: AnyObject) => void;
348
+ NInput: any;
349
+ NPopover: any;
350
+ ClearIcon: any;
351
+ SearchMenu: import("vue").DefineComponent<{
352
+ childKey: {
353
+ type: StringConstructor;
354
+ default: string;
355
+ };
356
+ options: {
357
+ type: PropType<AnyObject[]>;
358
+ default: () => never[];
359
+ };
360
+ labelKey: {
361
+ type: StringConstructor;
362
+ default: string;
363
+ };
364
+ valueKey: {
365
+ type: StringConstructor;
366
+ default: string;
367
+ };
368
+ currentNode: {
369
+ type: PropType<AnyObject>;
370
+ };
371
+ cursorNode: {
372
+ type: PropType<AnyObject>;
373
+ };
374
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("nodeClick" | "changeCursor")[], "nodeClick" | "changeCursor", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
375
+ childKey: {
376
+ type: StringConstructor;
377
+ default: string;
378
+ };
379
+ options: {
380
+ type: PropType<AnyObject[]>;
381
+ default: () => never[];
382
+ };
383
+ labelKey: {
384
+ type: StringConstructor;
385
+ default: string;
386
+ };
387
+ valueKey: {
388
+ type: StringConstructor;
389
+ default: string;
390
+ };
391
+ currentNode: {
392
+ type: PropType<AnyObject>;
393
+ };
394
+ cursorNode: {
395
+ type: PropType<AnyObject>;
396
+ };
397
+ }>> & {
398
+ onNodeClick?: ((...args: any[]) => any) | undefined;
399
+ onChangeCursor?: ((...args: any[]) => any) | undefined;
400
+ }, {
401
+ options: AnyObject[];
402
+ valueKey: string;
403
+ childKey: string;
404
+ labelKey: string;
405
+ }>;
406
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "update:value" | "focus")[], "focus" | "update:show" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
407
+ value: {
408
+ type: PropType<string | AnyObject[]>;
409
+ };
410
+ show: {
411
+ type: BooleanConstructor;
412
+ default: boolean;
413
+ };
414
+ clearable: {
415
+ type: BooleanConstructor;
416
+ default: boolean;
417
+ };
418
+ childKey: {
419
+ type: StringConstructor;
420
+ default: string;
421
+ };
422
+ placeholder: {
423
+ type: StringConstructor;
424
+ default: string;
425
+ };
426
+ editPlaceholder: {
427
+ type: StringConstructor;
428
+ default: string;
429
+ };
430
+ options: {
431
+ type: PropType<AnyObject[]>;
432
+ default: () => never[];
433
+ };
434
+ search: {
435
+ type: PropType<import("../../../../../../../../es/shared/types").AnyFn<any[], any>>;
436
+ };
437
+ labelKey: {
438
+ type: StringConstructor;
439
+ default: string;
440
+ };
441
+ valueKey: {
442
+ type: StringConstructor;
443
+ default: string;
444
+ };
445
+ checkAbleLevel: {
446
+ type: PropType<number | "last">;
447
+ default: string;
448
+ };
449
+ beforeSetValue: {
450
+ type: PropType<(value: string | AnyObject[]) => void | (string | AnyObject[]) | Promise<string | AnyObject[]>>;
451
+ };
452
+ menuWidth: {
453
+ type: (NumberConstructor | StringConstructor)[];
454
+ default: number;
455
+ };
456
+ disabled: BooleanConstructor;
457
+ inputProps: {
458
+ type: PropType<AnyObject>;
459
+ };
460
+ popperProps: {
461
+ type: PropType<AnyObject>;
462
+ };
463
+ }>> & {
464
+ onFocus?: ((...args: any[]) => any) | undefined;
465
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
466
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
467
+ }, {
468
+ disabled: boolean;
469
+ show: boolean;
470
+ options: AnyObject[];
471
+ placeholder: string;
472
+ valueKey: string;
473
+ clearable: boolean;
474
+ childKey: string;
475
+ editPlaceholder: string;
476
+ labelKey: string;
477
+ checkAbleLevel: number | "last";
478
+ menuWidth: string | number;
479
+ }>>;
480
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:value")[], "click" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
481
+ options: {
482
+ type: PropType<AnyObject[]>;
483
+ default: () => never[];
484
+ };
485
+ labelField: {
486
+ type: StringConstructor;
487
+ default: string;
488
+ };
489
+ valueField: {
490
+ type: StringConstructor;
491
+ default: string;
492
+ };
493
+ autograph: {
494
+ type: StringConstructor;
495
+ required: true;
496
+ };
497
+ lazyRequest: {
498
+ type: BooleanConstructor;
499
+ default: boolean;
500
+ };
501
+ requestCache: {
502
+ type: BooleanConstructor;
503
+ default: boolean;
504
+ };
505
+ wordbook: {
506
+ type: PropType<Partial<{
507
+ level_num: number;
508
+ id: string;
509
+ name: string;
510
+ render_key: string[];
511
+ search_key: string[];
512
+ value_key: string;
513
+ queryParams: string[];
514
+ primary_key: string;
515
+ type: string;
516
+ level_key: string;
517
+ link_key: string;
518
+ link_key_split: string;
519
+ show_key: string | string[];
520
+ conObj: AnyObject[];
521
+ conObjFirstLevel: AnyObject[];
522
+ setting: Partial<{
523
+ cascading: {
524
+ 'form.name': string;
525
+ value: string;
526
+ }[];
527
+ }>;
528
+ }>>;
529
+ required: true;
530
+ };
531
+ value: {
532
+ type: PropType<string | AnyObject[]>;
533
+ };
534
+ fieldKey: {
535
+ type: StringConstructor;
536
+ required: true;
537
+ };
538
+ payload: {
539
+ type: PropType<AnyObject>;
540
+ required: true;
541
+ };
542
+ }>> & {
543
+ onClick?: ((...args: any[]) => any) | undefined;
544
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
545
+ }, {
546
+ options: AnyObject[];
547
+ labelField: string;
548
+ valueField: string;
549
+ lazyRequest: boolean;
550
+ requestCache: boolean;
551
+ }>;
552
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./levelSearchCascade.vue2.js";import r from"../../../../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","levelSearchCascade.vue"]]);export{a as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as a,openBlock as t,createBlock as r,unref as o,isRef as l,withCtx as u,createVNode as s}from"vue";import i from"../../../../../../../shared/components/no-data/NoData.vue.js";import"../../../../../../../shared/utils/index.js";import"lodash-es";import"naive-ui";import"@vueuse/core";import"date-fns";import"@vue/shared";import{useLevelSearchCascader as p}from"../../../../../../../shared/hooks/useLevelSearchCascader.js";import{InjectionTableAsyncQueue as d}from"../../../../constants/index.js";import n from"../../../../../../search-cascader/index.js";var c=e({__name:"levelSearchCascade",props:{options:{type:Array,default:()=>[]},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},autograph:{type:String,required:!0},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},wordbook:{type:Object,required:!0},value:{type:[String,Array]},fieldKey:{type:String,required:!0},payload:{type:Object,required:!0}},emits:["update:value","click"],setup(e,{emit:c}){const y=e,f=a(d),{valueKey:m,valueRef:h,labelKey:v,optionsRef:k,showRef:b,fetchData:g,menuWidth:j,searchCascaderRef:q}=p(y,c,{fieldKey:y.fieldKey,asyncQueue:f,getRequestPayload:()=>y.payload});function w(){j.value=150}function R(e){c("click",e)}return(e,a)=>(t(),r(o(n),{ref_key:"searchCascaderRef",ref:q,value:o(h),"onUpdate:value":a[0]||(a[0]=e=>l(h)?h.value=e:null),show:o(b),"onUpdate:show":a[1]||(a[1]=e=>l(b)?b.value=e:null),options:o(k),"label-key":o(v),"value-key":o(m),search:o(g),"menu-width":o(j),"input-props":{onClick:R},onFocus:w},{empty:u((()=>[s(o(i))])),_:1},8,["value","show","options","label-key","value-key","search","menu-width","input-props"]))}});export{c as default};
@@ -1 +1 @@
1
- import{reactive as e,inject as o,createVNode as t,mergeProps as n,onBeforeUnmount as l}from"vue";import{arrayed as i}from"../../../../../../../shared/utils/index.js";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as r,InjectionIhoTableUUID as s}from"../../../../constants/index.js";import{useAutoFocus as d}from"../hooks/useAutoFocus.js";import{createIhoTableClearActivedInterceptor as u,getTitle as c,IhoTableRenderHelper as a,IhoTableUtils as p}from"../../../../utils/index.js";import f from"./editSelect.js";import{getDefaultValue as m,isConnectField as v,getArray as E}from"./selectUtils.js";import{getSelectOptions as g,selectOptionsMap as C}from"../hooks/useSelectOption.js";import{cloneDeep as h,isEqual as b}from"lodash-es";import{defineTablePlugin as w}from"../../../../hooks/useTablePlugin.js";function y(){const y="selectRendererPlugin",x=e(new Map);return w({name:y,vxe(e){e.interceptor.add("event.clearActived",u(r.SELECT,(e=>e.classList.contains("iho-table__selectMenu")))),e.renderer.add(r.SELECT,{renderCell({props:e},{row:n,column:l,$table:r}){var d;const u=o(s),a=g(u,l.field,n,r),p=m(n,e,a),f=i(p).join(","),v=e&&(!0===(E=e.variableHeight)||"1"===E||(null==(d=e.componentProps)?void 0:d.indexedText));var E;return[t("span",{title:c(l,f)},[v?i(p).reduce(((e,o)=>(null!=o&&e.push([o,";",t("br",null,null)]),e)),[]):f])]},renderEdit:a.createRenderEdit((({fieldItem:e,emitFormClick:l,row:i,column:r,$rowIndex:d,$table:u})=>{const c=o(s),a=g(c,r.field,i,u);return[t(f,n({queryOptions:e.queryOptions},e.componentProps,{options:a,column:r,row:i,"row-index":d,value:i[r.field],"onUpdate:value":e=>i[r.field]=e,onClick:l}),null)]}))})},apply(e){async function o(e,o={}){var t,n,l;const i=null==(t=e.editRender)?void 0:t.props;if(!i)return[];let r=E(i.options)||E(null==(n=i.componentProps)?void 0:n.options)||[];if(i.queryOptions)try{const t={column:e,isFullData:!0,...o};r=await(null==(l=i.queryOptions)?void 0:l.call(i,t))}catch(e){console.log(`获取${i.field}_options错误`)}return r}d(e).bindAutoFocusConfig(y,r.SELECT,".n-base-selection-input .n-base-selection-tags"),e.fieldHooks.fieldList.tap(y,((e,{uuid:t})=>{if(t){C.get(t)||C.set(t,{}),x.set(t,h(e));const n=C.get(t);e.forEach((async t=>{var l;const i=null==(l=t.editRender)?void 0:l.props;t.field&&i&&"SELECT"===p.getCellType(i)&&(n[t.field]||v(e,t.field)||(n[t.field]=[],n[t.field]=await o(t)))}))}return e})),e.dataHooks.data.tap(y,((e,{uuid:t},n)=>{if(!t)return;const l=x.get(t);if(!l||!l.length)return;const i=C.get(t);l.forEach((async t=>{var n;const r=null==(n=t.editRender)?void 0:n.props;if(t.field&&r&&"SELECT"===p.getCellType(r)&&(null==r?void 0:r.connectField)){const n=r.connectField.split(","),s=e[r.columnName];n.forEach((async n=>{const d=null==l?void 0:l.find((e=>e.field===n));if(!d)return;const u=s?`${n}__${r.columnName}-${s}`:n;i[u]||(i[u]=[],i[u]=await o(d,{row:e,connectColumn:t}))}))}}))})),e.setupHooks.setup.tap(y,(e=>{l((()=>{var o;const t=null==(o=e.value)?void 0:o.uuid;t&&(C.delete(t),x.delete(t))}))})),e.eventHooks.onCellDblclick.tap(y,(({$table:e},o,{emits:t})=>{var n;const{column:l,row:i}=e.reactData.editStore.actived;if(!l||!i)return;const s=null==(n=l.editRender)?void 0:n.props,{cellDblclickSelectable:d=!1,multiple:u=!1,valueField:c="value"}=s.componentProps||{};if(!d||!function(e){return e&&p.getCellType(e)===r.SELECT}(s))return;const a=o.uuid&&g(o.uuid,l.field,i,e);if(1!==(null==a?void 0:a.length))return;const f=u?[a[0][c]]:a[0][c],m=i[l.field];e.clearEdit(),b(f,m)||(i[l.field]=f,t("formChange",{column:l,row:i,oldValue:m,value:f,index:e.getRowIndex(i),$table:e,option:a[0]}))}))}})}export{y as selectRendererPlugin};
1
+ import{reactive as e,inject as o,createVNode as t,mergeProps as n,onBeforeUnmount as l}from"vue";import{arrayed as i}from"../../../../../../../shared/utils/index.js";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as r,InjectionIhoTableUUID as s}from"../../../../constants/index.js";import{useAutoFocus as d}from"../hooks/useAutoFocus.js";import{createIhoTableClearActivedInterceptor as u,getTitle as c,IhoTableRenderHelper as a,IhoTableUtils as p}from"../../../../utils/index.js";import f from"./editSelect.js";import{getDefaultValue as m,isConnectField as v,getArray as E}from"./selectUtils.js";import{getSelectOptions as g,selectOptionsMap as C}from"../hooks/useSelectOption.js";import{cloneDeep as h,isEqual as b}from"lodash-es";import{defineTablePlugin as w}from"../../../../hooks/useTablePlugin.js";function y(){const y="selectRendererPlugin",x=e(new Map);return w({name:y,vxe(e){e.interceptor.add("event.clearActived",u(r.SELECT,(e=>e.classList.contains("iho-table__selectMenu")))),e.renderer.add(r.SELECT,{renderCell({props:e},{row:n,column:l,$table:r}){var d;const u=o(s),a=g(u,l.field,n,r),p=m(n,e,a),f=i(p).join(","),v=e&&(!0===(E=e.variableHeight)||"1"===E||(null==(d=e.componentProps)?void 0:d.indexedText));var E;return[t("span",{title:c(l,f)},[v?i(p).reduce(((e,o)=>(null!=o&&e.push([o,";",t("br",null,null)]),e)),[]):f])]},renderEdit:a.createRenderEdit((({fieldItem:e,emitFormClick:l,row:i,column:r,$rowIndex:d,$table:u})=>{const c=o(s),a=g(c,r.field,i,u);return[t(f,n({queryOptions:e.queryOptions},e.componentProps,{options:a,column:r,row:i,"row-index":d,value:i[r.field],"onUpdate:value":e=>i[r.field]=e,onClick:l}),null)]}))})},apply(e){async function o(e,o={}){var t,n,l;const i=null==(t=e.editRender)?void 0:t.props;if(!i)return[];let r=E(i.options)||E(null==(n=i.componentProps)?void 0:n.options)||[];if(i.queryOptions)try{const t={column:e,isFullData:!0,...o};r=await(null==(l=i.queryOptions)?void 0:l.call(i,t))}catch(e){console.log(`获取${i.field}_options错误`)}return r}d(e).bindAutoFocusConfig(y,r.SELECT,".n-base-selection-input,.n-base-selection-tags"),e.fieldHooks.fieldList.tap(y,((e,{uuid:t})=>{if(t){C.get(t)||C.set(t,{}),x.set(t,h(e));const n=C.get(t);e.forEach((async t=>{var l;const i=null==(l=t.editRender)?void 0:l.props;t.field&&i&&"SELECT"===p.getCellType(i)&&(n[t.field]||v(e,t.field)||(n[t.field]=[],n[t.field]=await o(t)))}))}return e})),e.dataHooks.data.tap(y,((e,{uuid:t},n)=>{if(!t)return;const l=x.get(t);if(!l||!l.length)return;const i=C.get(t);l.forEach((async t=>{var n;const r=null==(n=t.editRender)?void 0:n.props;if(t.field&&r&&"SELECT"===p.getCellType(r)&&(null==r?void 0:r.connectField)){const n=r.connectField.split(","),s=e[r.columnName];n.forEach((async n=>{const d=null==l?void 0:l.find((e=>e.field===n));if(!d)return;const u=s?`${n}__${r.columnName}-${s}`:n;i[u]||(i[u]=[],i[u]=await o(d,{row:e,connectColumn:t}))}))}}))})),e.setupHooks.setup.tap(y,(e=>{l((()=>{var o;const t=null==(o=e.value)?void 0:o.uuid;t&&(C.delete(t),x.delete(t))}))})),e.eventHooks.onCellDblclick.tap(y,(({$table:e},o,{emits:t})=>{var n;const{column:l,row:i}=e.reactData.editStore.actived;if(!l||!i)return;const s=null==(n=l.editRender)?void 0:n.props,{cellDblclickSelectable:d=!1,multiple:u=!1,valueField:c="value"}=s.componentProps||{};if(!d||!function(e){return e&&p.getCellType(e)===r.SELECT}(s))return;const a=o.uuid&&g(o.uuid,l.field,i,e);if(1!==(null==a?void 0:a.length))return;const f=u?[a[0][c]]:a[0][c],m=i[l.field];e.clearEdit(),b(f,m)||(i[l.field]=f,t("formChange",{column:l,row:i,oldValue:m,value:f,index:e.getRowIndex(i),$table:e,option:a[0]}))}))}})}export{y as selectRendererPlugin};
@@ -1,4 +1,4 @@
1
- import { AnyObject, Func } from '../../../../../../../../es/shared/types';
1
+ import { AnyObject, AnyFn } from '../../../../../../../../es/shared/types';
2
2
  import { CSSProperties, PropType } from 'vue';
3
3
  import { VxeTableConstructor, VxeTableDefines, VxeTableMethods, VxeTablePrivateMethods } from 'vxe-table';
4
4
  declare const _default: import("vue").DefineComponent<{
@@ -54,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
54
54
  tableHandler: import("../../../../types").IhoTableHandler;
55
55
  $table: VxeTableConstructor & VxeTablePrivateMethods & VxeTableMethods;
56
56
  popoverRef: import("vue").Ref<{
57
- syncPosition: Func;
57
+ syncPosition: AnyFn;
58
58
  } | undefined>;
59
59
  editContent: import("vue").Ref<unknown>;
60
60
  setEditContent: (value: unknown) => void;
@@ -1,4 +1,4 @@
1
- import { AnyObject, ArrayAble, BindEventSettingItem, FormOperationalConfig, FormWordbook, Func, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
1
+ import { AnyObject, ArrayAble, BindEventSettingItem, FormOperationalConfig, FormWordbook, AnyFn, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
2
2
  import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes, VxeTableConstructor } from 'vxe-table';
3
3
  import { VxePagerEventProps } from 'vxe-table/types/pager';
4
4
  import { VxeTableEventProps, VxeTableListeners, VxeTablePrivateMethods } from 'vxe-table/types/table';
@@ -129,7 +129,7 @@ export declare type LowCodeTableFieldItem = {
129
129
  headerSlotFn: NonNullable<IhoTableFieldItem['slots']>['header'];
130
130
  editSlotFn: NonNullable<IhoTableFieldItem['slots']>['edit'];
131
131
  footerSlotFn: NonNullable<IhoTableFieldItem['slots']>['footer'];
132
- separateSlot: AnyObject | Func;
132
+ separateSlot: AnyObject | AnyFn;
133
133
  separateFormatter: (row: AnyObject) => any;
134
134
  separateDeep: boolean;
135
135
  separateBinder: ArrayAble<string>;
@@ -153,7 +153,10 @@ export declare type LowCodeTableFieldItem = {
153
153
  allowSlash: boolean | string;
154
154
  whiteList: string[];
155
155
  defaultValue: any;
156
+ autograph: string;
156
157
  wordbook: FormWordbook;
158
+ requestCache: boolean;
159
+ lazyRequest: boolean;
157
160
  }> & Partial<VxeTableDefines.ColumnInfo>;
158
161
  export declare type IhoTableFormChangePayload = {
159
162
  column: IhoTableFieldItem;
@@ -1,4 +1,4 @@
1
- import { AnyObject, ArrayAble, Func, Nullable } from '../../../../../es/shared/types';
1
+ import { AnyObject, ArrayAble, AnyFn, Nullable } from '../../../../../es/shared/types';
2
2
  import { AsyncParallelHook, AsyncSeriesHook, SyncHook, SyncWaterfallHook } from '../../../../../es/shared/utils/tapable';
3
3
  import { MaybeRef } from '@vueuse/core';
4
4
  import { Ref, VNode } from 'vue';
@@ -70,7 +70,7 @@ export declare abstract class AbstractFieldHooks {
70
70
  abstract readonly fieldEnd: AsyncParallelHook<WithFieldHookContext>;
71
71
  }
72
72
  export declare type WithIhoEventContext<T> = [...WithTableConfig<T>, IhoTableHandler & IhoTableHandlerContext<false>];
73
- declare type EventHookType<T extends Func> = AsyncParallelHook<WithIhoEventContext<Parameters<T>>>;
73
+ declare type EventHookType<T extends AnyFn> = AsyncParallelHook<WithIhoEventContext<Parameters<T>>>;
74
74
  declare type VxeEventTypes = Required<{
75
75
  readonly [K in keyof IhoTableEventTypes]: EventHookType<NonNullable<IhoTableEventTypes[K]>>;
76
76
  }>;
@@ -164,6 +164,6 @@ export declare type WithExposeHookConfig<T = []> = [
164
164
  IhoTableHandlerContext
165
165
  ];
166
166
  export declare abstract class AbstractExposeHooks {
167
- abstract readonly expose: SyncWaterfallHook<WithExposeHookConfig<Record<string, Func>>>;
167
+ abstract readonly expose: SyncWaterfallHook<WithExposeHookConfig<Record<string, AnyFn>>>;
168
168
  }
169
169
  export {};
@@ -47,6 +47,7 @@ export * from './config-provider';
47
47
  export * from './field-set';
48
48
  export * from './scale-view';
49
49
  export * from '../../es/shared/types';
50
+ export * from '../../es/shared/hooks';
50
51
  export * from '../../es/shared/directive';
51
52
  export * from './guide';
52
53
  export * from './select-label';