cnhis-design-vue 3.1.46-release.4 → 3.1.46

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 (92) hide show
  1. package/es/components/button-print/src/utils/print.js +1 -1
  2. package/es/components/form-config/index.d.ts +67 -16
  3. package/es/components/form-config/src/FormConfig.vue.d.ts +67 -16
  4. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  5. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -4
  6. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -7
  7. package/es/components/form-config/src/hooks/useDataNormalize.d.ts +1 -1
  8. package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
  9. package/es/components/form-config/src/types/index.d.ts +1 -1
  10. package/es/components/form-render/index.d.ts +5 -4
  11. package/es/components/form-render/src/FormRender.vue.d.ts +4 -3
  12. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  13. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -4
  14. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +16 -2
  15. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  16. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +32 -4
  17. package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +3 -0
  18. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  19. package/es/components/form-render/src/components/renderer/select.d.ts +16 -2
  20. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  21. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  22. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  23. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  24. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +1 -1
  25. package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
  26. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +5 -0
  27. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -0
  28. package/es/components/form-render/src/types/fieldItem.d.ts +8 -1
  29. package/es/components/form-render/src/types/index.d.ts +1 -7
  30. package/es/components/iho-table/index.d.ts +12 -0
  31. package/es/components/iho-table/src/IhoTable.vue.d.ts +12 -0
  32. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  33. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
  34. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  35. package/es/components/iho-table/src/plugins/index.js +1 -1
  36. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  37. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  38. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.d.ts +1 -0
  39. package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -0
  40. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  41. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  42. package/es/components/iho-table/src/types/index.d.ts +5 -3
  43. package/es/components/iho-table/src/utils/index.d.ts +1 -1
  44. package/es/components/iho-table/src/utils/index.js +1 -1
  45. package/es/components/index.css +1 -1
  46. package/es/components/info-header/index.d.ts +14 -12
  47. package/es/components/info-header/src/InfoHeader.vue.d.ts +14 -12
  48. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -4
  49. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -4
  50. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  51. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  52. package/es/components/select-person/index.d.ts +153 -14
  53. package/es/components/select-person/src/SearchMultiple.vue2.js +1 -1
  54. package/es/components/select-person/src/SearchOrgAndStaff.vue.d.ts +106 -0
  55. package/es/components/select-person/src/SearchOrgAndStaff.vue.js +1 -0
  56. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -0
  57. package/es/components/select-person/src/SelectPerson.vue.d.ts +150 -12
  58. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  59. package/es/components/select-person/src/types/enums.d.ts +4 -0
  60. package/es/components/select-person/src/types/enums.js +1 -0
  61. package/es/components/select-person/src/utils/index.d.ts +1 -1
  62. package/es/components/select-person/src/utils/index.js +1 -1
  63. package/es/components/select-person/style/index.css +1 -1
  64. package/es/components/shortcut-setter/index.d.ts +13 -5
  65. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -5
  66. package/es/components/steps-wheel/index.d.ts +16 -0
  67. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +16 -0
  68. package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
  69. package/es/components/steps-wheel/style/index.css +1 -1
  70. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
  71. package/es/shared/package.json.js +1 -1
  72. package/es/shared/types/business.d.ts +6 -0
  73. package/es/shared/utils/business.d.ts +6 -1
  74. package/es/shared/utils/business.js +1 -1
  75. package/es/shared/utils/index.js +1 -1
  76. package/es/shared/utils/tapableLess.d.ts +28 -0
  77. package/es/shared/utils/tapableLess.js +1 -0
  78. package/package.json +2 -2
  79. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  80. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  81. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  82. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  84. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  85. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  86. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  87. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  88. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  89. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  90. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  91. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  92. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
@@ -150,7 +150,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
150
150
  linebarAutoHidden: boolean;
151
151
  bordered: string | boolean;
152
152
  uniqueCacheData: boolean;
153
- operationalForm: import("..").FormOperationalConfig[];
153
+ operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
154
154
  }>>>;
155
155
  };
156
156
  }, {
@@ -305,7 +305,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
305
305
  linebarAutoHidden: boolean;
306
306
  bordered: string | boolean;
307
307
  uniqueCacheData: boolean;
308
- operationalForm: import("..").FormOperationalConfig[];
308
+ operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
309
309
  }>>>;
310
310
  };
311
311
  }>> & {
@@ -470,7 +470,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
470
470
  linebarAutoHidden: boolean;
471
471
  bordered: string | boolean;
472
472
  uniqueCacheData: boolean;
473
- operationalForm: import("..").FormOperationalConfig[];
473
+ operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
474
474
  }>>;
475
475
  };
476
476
  themeOverrides: import("naive-ui").GlobalThemeOverrides;
@@ -2601,7 +2601,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2601
2601
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
2602
2602
  };
2603
2603
  operationalForm: {
2604
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
2604
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
2605
2605
  };
2606
2606
  linebarAutoHidden: {
2607
2607
  type: BooleanConstructor;
@@ -2741,7 +2741,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2741
2741
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
2742
2742
  };
2743
2743
  operationalForm: {
2744
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
2744
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
2745
2745
  };
2746
2746
  linebarAutoHidden: {
2747
2747
  type: BooleanConstructor;
@@ -2802,6 +2802,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2802
2802
  triggerAllReactionsHandler: () => void;
2803
2803
  operationalFormHandler: (field: string) => void;
2804
2804
  triggerAllOperationalFormHandler: () => void;
2805
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2805
2806
  schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2806
2807
  [key: symbol]: any;
2807
2808
  [key: `x-${string}`]: any;
@@ -2917,7 +2918,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2917
2918
  "x-read-pretty"?: boolean | undefined;
2918
2919
  "x-compile-omitted"?: string[] | undefined;
2919
2920
  }>>;
2920
- onKeydown: (event: KeyboardEvent) => void;
2921
+ onKeydown: (event: KeyboardEvent) => Promise<void>;
2921
2922
  clearSpan: (uuid: string) => void;
2922
2923
  exposeEvent: {
2923
2924
  validate(path?: string): Promise<void>;
@@ -3209,7 +3210,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3209
3210
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
3210
3211
  };
3211
3212
  operationalForm: {
3212
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
3213
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
3213
3214
  };
3214
3215
  linebarAutoHidden: {
3215
3216
  type: BooleanConstructor;
@@ -3488,7 +3489,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3488
3489
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
3489
3490
  };
3490
3491
  operationalForm: {
3491
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
3492
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
3492
3493
  };
3493
3494
  linebarAutoHidden: {
3494
3495
  type: BooleanConstructor;
@@ -3628,7 +3629,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3628
3629
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
3629
3630
  };
3630
3631
  operationalForm: {
3631
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
3632
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
3632
3633
  };
3633
3634
  linebarAutoHidden: {
3634
3635
  type: BooleanConstructor;
@@ -3689,6 +3690,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3689
3690
  triggerAllReactionsHandler: () => void;
3690
3691
  operationalFormHandler: (field: string) => void;
3691
3692
  triggerAllOperationalFormHandler: () => void;
3693
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
3692
3694
  schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
3693
3695
  [key: symbol]: any;
3694
3696
  [key: `x-${string}`]: any;
@@ -3804,7 +3806,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3804
3806
  "x-read-pretty"?: boolean | undefined;
3805
3807
  "x-compile-omitted"?: string[] | undefined;
3806
3808
  }>>;
3807
- onKeydown: (event: KeyboardEvent) => void;
3809
+ onKeydown: (event: KeyboardEvent) => Promise<void>;
3808
3810
  clearSpan: (uuid: string) => void;
3809
3811
  exposeEvent: {
3810
3812
  validate(path?: string): Promise<void>;
@@ -4096,7 +4098,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
4096
4098
  type: import("vue").PropType<import("..").FormLowCodeReactions.Config[]>;
4097
4099
  };
4098
4100
  operationalForm: {
4099
- type: import("vue").PropType<import("..").FormOperationalConfig[]>;
4101
+ type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
4100
4102
  };
4101
4103
  linebarAutoHidden: {
4102
4104
  type: BooleanConstructor;
@@ -4292,7 +4294,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
4292
4294
  linebarAutoHidden: boolean;
4293
4295
  bordered: string | boolean;
4294
4296
  uniqueCacheData: boolean;
4295
- operationalForm: import("..").FormOperationalConfig[];
4297
+ operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
4296
4298
  }>>>;
4297
4299
  };
4298
4300
  }>> & {
@@ -150,7 +150,7 @@ declare const _default: import("vue").DefineComponent<{
150
150
  linebarAutoHidden: boolean;
151
151
  bordered: string | boolean;
152
152
  uniqueCacheData: boolean;
153
- operationalForm: import("../../../../es/components/form-render").FormOperationalConfig[];
153
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
154
154
  }>>>;
155
155
  };
156
156
  }, {
@@ -303,7 +303,7 @@ declare const _default: import("vue").DefineComponent<{
303
303
  linebarAutoHidden: boolean;
304
304
  bordered: string | boolean;
305
305
  uniqueCacheData: boolean;
306
- operationalForm: import("../../../../es/components/form-render").FormOperationalConfig[];
306
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
307
307
  }>>>;
308
308
  };
309
309
  }>> & {
@@ -464,7 +464,7 @@ declare const _default: import("vue").DefineComponent<{
464
464
  linebarAutoHidden: boolean;
465
465
  bordered: string | boolean;
466
466
  uniqueCacheData: boolean;
467
- operationalForm: import("../../../../es/components/form-render").FormOperationalConfig[];
467
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
468
468
  }>>;
469
469
  };
470
470
  themeOverrides: import("naive-ui").GlobalThemeOverrides;
@@ -2595,7 +2595,7 @@ declare const _default: import("vue").DefineComponent<{
2595
2595
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
2596
2596
  };
2597
2597
  operationalForm: {
2598
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
2598
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
2599
2599
  };
2600
2600
  linebarAutoHidden: {
2601
2601
  type: BooleanConstructor;
@@ -2735,7 +2735,7 @@ declare const _default: import("vue").DefineComponent<{
2735
2735
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
2736
2736
  };
2737
2737
  operationalForm: {
2738
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
2738
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
2739
2739
  };
2740
2740
  linebarAutoHidden: {
2741
2741
  type: BooleanConstructor;
@@ -2796,6 +2796,7 @@ declare const _default: import("vue").DefineComponent<{
2796
2796
  triggerAllReactionsHandler: () => void;
2797
2797
  operationalFormHandler: (field: string) => void;
2798
2798
  triggerAllOperationalFormHandler: () => void;
2799
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2799
2800
  schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2800
2801
  [key: symbol]: any;
2801
2802
  [key: `x-${string}`]: any;
@@ -2911,7 +2912,7 @@ declare const _default: import("vue").DefineComponent<{
2911
2912
  "x-read-pretty"?: boolean | undefined;
2912
2913
  "x-compile-omitted"?: string[] | undefined;
2913
2914
  }>>;
2914
- onKeydown: (event: KeyboardEvent) => void;
2915
+ onKeydown: (event: KeyboardEvent) => Promise<void>;
2915
2916
  clearSpan: (uuid: string) => void;
2916
2917
  exposeEvent: {
2917
2918
  validate(path?: string): Promise<void>;
@@ -3203,7 +3204,7 @@ declare const _default: import("vue").DefineComponent<{
3203
3204
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
3204
3205
  };
3205
3206
  operationalForm: {
3206
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
3207
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
3207
3208
  };
3208
3209
  linebarAutoHidden: {
3209
3210
  type: BooleanConstructor;
@@ -3482,7 +3483,7 @@ declare const _default: import("vue").DefineComponent<{
3482
3483
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
3483
3484
  };
3484
3485
  operationalForm: {
3485
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
3486
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
3486
3487
  };
3487
3488
  linebarAutoHidden: {
3488
3489
  type: BooleanConstructor;
@@ -3622,7 +3623,7 @@ declare const _default: import("vue").DefineComponent<{
3622
3623
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
3623
3624
  };
3624
3625
  operationalForm: {
3625
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
3626
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
3626
3627
  };
3627
3628
  linebarAutoHidden: {
3628
3629
  type: BooleanConstructor;
@@ -3683,6 +3684,7 @@ declare const _default: import("vue").DefineComponent<{
3683
3684
  triggerAllReactionsHandler: () => void;
3684
3685
  operationalFormHandler: (field: string) => void;
3685
3686
  triggerAllOperationalFormHandler: () => void;
3687
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
3686
3688
  schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
3687
3689
  [key: symbol]: any;
3688
3690
  [key: `x-${string}`]: any;
@@ -3798,7 +3800,7 @@ declare const _default: import("vue").DefineComponent<{
3798
3800
  "x-read-pretty"?: boolean | undefined;
3799
3801
  "x-compile-omitted"?: string[] | undefined;
3800
3802
  }>>;
3801
- onKeydown: (event: KeyboardEvent) => void;
3803
+ onKeydown: (event: KeyboardEvent) => Promise<void>;
3802
3804
  clearSpan: (uuid: string) => void;
3803
3805
  exposeEvent: {
3804
3806
  validate(path?: string): Promise<void>;
@@ -4090,7 +4092,7 @@ declare const _default: import("vue").DefineComponent<{
4090
4092
  type: PropType<import("../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
4091
4093
  };
4092
4094
  operationalForm: {
4093
- type: PropType<import("../../../../es/components/form-render").FormOperationalConfig[]>;
4095
+ type: PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
4094
4096
  };
4095
4097
  linebarAutoHidden: {
4096
4098
  type: BooleanConstructor;
@@ -4284,7 +4286,7 @@ declare const _default: import("vue").DefineComponent<{
4284
4286
  linebarAutoHidden: boolean;
4285
4287
  bordered: string | boolean;
4286
4288
  uniqueCacheData: boolean;
4287
- operationalForm: import("../../../../es/components/form-render").FormOperationalConfig[];
4289
+ operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
4288
4290
  }>>>;
4289
4291
  };
4290
4292
  }>> & {
@@ -2168,7 +2168,7 @@ declare const _default: import("vue").DefineComponent<{
2168
2168
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
2169
2169
  };
2170
2170
  operationalForm: {
2171
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
2171
+ type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
2172
2172
  };
2173
2173
  linebarAutoHidden: {
2174
2174
  type: BooleanConstructor;
@@ -2308,7 +2308,7 @@ declare const _default: import("vue").DefineComponent<{
2308
2308
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
2309
2309
  };
2310
2310
  operationalForm: {
2311
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
2311
+ type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
2312
2312
  };
2313
2313
  linebarAutoHidden: {
2314
2314
  type: BooleanConstructor;
@@ -2369,6 +2369,7 @@ declare const _default: import("vue").DefineComponent<{
2369
2369
  triggerAllReactionsHandler: () => void;
2370
2370
  operationalFormHandler: (field: string) => void;
2371
2371
  triggerAllOperationalFormHandler: () => void;
2372
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2372
2373
  schemaAdaptor: (fieldList: import("../../../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2373
2374
  [key: symbol]: any;
2374
2375
  [key: `x-${string}`]: any;
@@ -2484,7 +2485,7 @@ declare const _default: import("vue").DefineComponent<{
2484
2485
  "x-read-pretty"?: boolean | undefined;
2485
2486
  "x-compile-omitted"?: string[] | undefined;
2486
2487
  }>>;
2487
- onKeydown: (event: KeyboardEvent) => void;
2488
+ onKeydown: (event: KeyboardEvent) => Promise<void>;
2488
2489
  clearSpan: (uuid: string) => void;
2489
2490
  exposeEvent: {
2490
2491
  validate(path?: string): Promise<void>;
@@ -2776,7 +2777,7 @@ declare const _default: import("vue").DefineComponent<{
2776
2777
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
2777
2778
  };
2778
2779
  operationalForm: {
2779
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
2780
+ type: import("vue").PropType<import("../../../../../../es/shared/types").FormOperationalConfig[]>;
2780
2781
  };
2781
2782
  linebarAutoHidden: {
2782
2783
  type: BooleanConstructor;
@@ -180,7 +180,7 @@ declare const _default: import("vue").DefineComponent<{
180
180
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
181
181
  };
182
182
  operationalForm: {
183
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
183
+ type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
184
184
  };
185
185
  linebarAutoHidden: {
186
186
  type: BooleanConstructor;
@@ -320,7 +320,7 @@ declare const _default: import("vue").DefineComponent<{
320
320
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
321
321
  };
322
322
  operationalForm: {
323
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
323
+ type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
324
324
  };
325
325
  linebarAutoHidden: {
326
326
  type: BooleanConstructor;
@@ -381,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
381
381
  triggerAllReactionsHandler: () => void;
382
382
  operationalFormHandler: (field: string) => void;
383
383
  triggerAllOperationalFormHandler: () => void;
384
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
384
385
  schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
385
386
  [key: symbol]: any;
386
387
  [key: `x-${string}`]: any;
@@ -496,7 +497,7 @@ declare const _default: import("vue").DefineComponent<{
496
497
  "x-read-pretty"?: boolean | undefined;
497
498
  "x-compile-omitted"?: string[] | undefined;
498
499
  }>>;
499
- onKeydown: (event: KeyboardEvent) => void;
500
+ onKeydown: (event: KeyboardEvent) => Promise<void>;
500
501
  clearSpan: (uuid: string) => void;
501
502
  exposeEvent: {
502
503
  validate(path?: string): Promise<void>;
@@ -788,7 +789,7 @@ declare const _default: import("vue").DefineComponent<{
788
789
  type: import("vue").PropType<import("../../../../../../es/components/form-render").FormLowCodeReactions.Config[]>;
789
790
  };
790
791
  operationalForm: {
791
- type: import("vue").PropType<import("../../../../../../es/components/form-render").FormOperationalConfig[]>;
792
+ type: import("vue").PropType<import("../../../..").FormOperationalConfig[]>;
792
793
  };
793
794
  linebarAutoHidden: {
794
795
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as o,watch as r,openBlock as u,createBlock as n,unref as s,isRef as i,normalizeStyle as c,withCtx as v,createVNode as d,createElementVNode as p,renderSlot as f}from"vue";import{useTheme as y}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as h,useEventBus as m,useVModel as g,onClickOutside as b}from"@vueuse/core";import"date-fns";import{isString as w,isArray as k,isObject as S,isFunction as K}from"lodash-es";import{uuidGenerator as _}from"../../../shared/utils/index.js";import{NOOP as N}from"@vue/shared";import{NPopover as C,NInput as P}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as j,InjectionKeyboardEventBus as x,InjectionSearchCascaderLoadingNode as A,InjectionSearchCascaderValue as U}from"./constants/index.js";import{SearchMenu as W}from"./components/SearchMenu.js";const F=["id"];var L=e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function},menuWidth:{type:[Number,String],default:150}},emits:["update:value","focus","update:show"],setup(e,{expose:L,emit:T}){const V=e,B=y();function E(){var e;e=[],Promise.resolve(K(V.beforeSetValue)?V.beforeSetValue(e):e).then((e=>T("update:value",e)),N)}function I(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&O()}const R=h((e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||z.value?M.emit(e.key):O()}),50),$=a((()=>({"--menu-width":V.menuWidth}))),M=m("cascaderKeydown"),q=_(),z=g(V,"show",T);l(j,a((()=>V.checkAbleLevel))),l(x,M);const D=t(""),G=a((()=>w(V.value)&&V.value?V.value:k(V.value)&&V.value.length?V.value.map((e=>S(e)?e[V.labelKey]:e)).join(" / "):V.editPlaceholder)),H=a({get:()=>z.value?D.value:w(V.value)?V.value:k(V.value)?V.value.reduce(((e,a,l)=>0===l?a[V.labelKey]:e+" / "+a[V.labelKey]),""):"",set(e){D.value=e,le(void 0,e)}});function J(e){T("focus",e)}function O(){z.value||(z.value=!0,D.value="",le())}async function Q(){var e;z.value=!1,null==(e=X.value)||e.blur()}const X=t();b(X,(e=>{var a;if(!z.value)return;const l=e;if(!l.target)return Q();!function(e){let a=!1,l=e;for(;l;){if(l.id===q){a=!0;break}l=l.parentElement}return a}(l.target)?Q():null==(a=X.value)||a.focus()}));const Y=t(),Z=t(),ee=t(),ae=t(null);l(A,ae),l(U,a((()=>V.value)));const le=h((async(e,a)=>{var l;const{type:t,node:r}=e||{};try{if("update"===t)return void(K(V.search)&&V.search({...r,isLeaf:!0}));ae.value=r;const e=await(K(V.search)&&V.search(r,a));Z.value=S(e)||k(e)?e:r,console.log("current_node_value=>",Z.value)}finally{ae.value=null,await o(),null==(l=Y.value)||l.syncPosition()}}),400),te=e=>{ee.value=e};return r((()=>V.show),(e=>{e&&(ee.value={})})),L({getWidth(){var e;if(!X.value)return 0;const a=null==(e=X.value)?void 0:e.$el;return a?a.clientWidth:void 0}}),(a,l)=>(u(),n(s(C),{class:"search-cascader",trigger:"manual",show:s(z),"onUpdate:show":l[1]||(l[1]=e=>i(z)?z.value=e:null),"show-arrow":!1,placement:"bottom-start",style:c(s($)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:Y},{trigger:v((()=>[d(s(P),{class:"search-cascader__input",placeholder:s(z)?s(G):e.placeholder,clearable:e.clearable,onClear:E,value:s(H),"onUpdate:value":l[0]||(l[0]=e=>i(H)?H.value=e:null),ref_key:"inputRef",ref:X,onFocus:J,onClick:I,onKeydown:s(R)},null,8,["placeholder","clearable","value","onKeydown"])])),default:v((()=>[p("section",{id:s(q)},[d(s(W),{style:c(s(B)),"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:s(le),onChangeCursor:te,"current-node":Z.value,"cursor-node":ee.value},{empty:v((()=>[f(a.$slots,"empty")])),_:3},8,["style","label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,F)])),_:3},8,["show","style","width"]))}});export{L as default};
1
+ import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as r,watch as o,openBlock as u,createBlock as n,unref as s,isRef as i,normalizeStyle as c,withCtx as v,createVNode as d,createElementVNode as p,renderSlot as f}from"vue";import{useTheme as h}from"../../../shared/hooks/useTheme.js";import{useEventBus as y,useVModel as m,onClickOutside as g,useDebounceFn as b}from"@vueuse/core";import"date-fns";import{isString as w,isArray as k,isObject as S,isFunction as K}from"lodash-es";import{uuidGenerator as C}from"../../../shared/utils/index.js";import{NOOP as N}from"@vue/shared";import{NPopover as _,NInput as P}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as j,InjectionKeyboardEventBus as x,InjectionSearchCascaderLoadingNode as A,InjectionSearchCascaderValue as U}from"./constants/index.js";import{SearchMenu as W}from"./components/SearchMenu.js";const F=["id"];var L=e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function},menuWidth:{type:[Number,String],default:150}},emits:["update:value","focus","update:show"],setup(e,{expose:L,emit:T}){const V=e,B=h();function E(){var e;e=[],Promise.resolve(K(V.beforeSetValue)?V.beforeSetValue(e):e).then((e=>T("update:value",e)),N)}function I(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&O()}const R=e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||z.value?M.emit(e.key,e):O()},$=a((()=>({"--menu-width":V.menuWidth}))),M=y("cascaderKeydown"),q=C(),z=m(V,"show",T);l(j,a((()=>V.checkAbleLevel))),l(x,M);const D=t(""),G=a((()=>w(V.value)&&V.value?V.value:k(V.value)&&V.value.length?V.value.map((e=>S(e)?e[V.labelKey]:e)).join(" / "):V.editPlaceholder)),H=a({get:()=>z.value?D.value:w(V.value)?V.value:k(V.value)?V.value.reduce(((e,a,l)=>0===l?a[V.labelKey]:e+" / "+a[V.labelKey]),""):"",set(e){D.value=e,le(void 0,e)}});function J(e){T("focus",e)}function O(){z.value||(z.value=!0,D.value="",le())}async function Q(){var e;z.value=!1,null==(e=X.value)||e.blur()}const X=t();g(X,(e=>{var a;if(!z.value)return;const l=e;if(!l.target)return Q();!function(e){let a=!1,l=e;for(;l;){if(l.id===q){a=!0;break}l=l.parentElement}return a}(l.target)?Q():null==(a=X.value)||a.focus()}));const Y=t(),Z=t(),ee=t(),ae=t(null);l(A,ae),l(U,a((()=>V.value)));const le=b((async(e,a)=>{var l;const{type:t,node:o}=e||{};try{if("update"===t)return void(K(V.search)&&V.search({...o,isLeaf:!0}));ae.value=o;const e=await(K(V.search)&&V.search(o,a));Z.value=S(e)||k(e)?e:o}finally{ae.value=null,await r(),null==(l=Y.value)||l.syncPosition()}}),400),te=e=>{ee.value=e};return o((()=>V.show),(e=>{e&&(ee.value={})})),L({getWidth(){var e;if(!X.value)return 0;const a=null==(e=X.value)?void 0:e.$el;return a?a.clientWidth:void 0},setCursor(e){ee.value=e}}),(a,l)=>(u(),n(s(_),{class:"search-cascader",trigger:"manual",show:s(z),"onUpdate:show":l[1]||(l[1]=e=>i(z)?z.value=e:null),"show-arrow":!1,placement:"bottom-start",style:c(s($)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:Y},{trigger:v((()=>[d(s(P),{class:"search-cascader__input",placeholder:s(z)?s(G):e.placeholder,clearable:e.clearable,onClear:E,value:s(H),"onUpdate:value":l[0]||(l[0]=e=>i(H)?H.value=e:null),ref_key:"inputRef",ref:X,onFocus:J,onClick:I,onKeydown:R},null,8,["placeholder","clearable","value"])])),default:v((()=>[p("section",{id:s(q)},[d(s(W),{style:c(s(B)),"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:s(le),onChangeCursor:te,"current-node":Z.value,"cursor-node":ee.value},{empty:v((()=>[f(a.$slots,"empty")])),_:3},8,["style","label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,F)])),_:3},8,["show","style","width"]))}});export{L as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as r,createVNode as t,createTextVNode as o,computed as n,inject as a,withModifiers as l}from"vue";import{traverse as c}from"../../../../shared/utils/index.js";import{Reload as s,ChevronForward as u}from"@vicons/ionicons5";import{NOOP as i}from"@vue/shared";import{useVirtualList as d}from"@vueuse/core";import{isArray as p,isFunction as f,isNumber as v,isEqual as y,isString as h}from"lodash-es";import{NCheckbox as m}from"naive-ui";import{InjectionSearchCascaderLoadingNode as g,InjectionSearchCascaderValue as N,InjectionSearchCascaderCheckAbleLevel as C,InjectionKeyboardEventBus as b}from"../constants/index.js";const k=e({props:{options:{type:Array,default:()=>[]},activeNodes:{type:Array,default:()=>[]},level:{type:Number,required:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},cursorNode:{type:Object,default:()=>({})}},emits:["nodeClick","changeCursor"],setup(e,{emit:r}){const o=n((()=>e.options)),{list:c,containerProps:f,wrapperProps:k}=d(o,{itemHeight:32,overscan:5}),K=a(g),_=a(N),x=a(C),A=a(b),S=n((()=>v(x.value)&&x.value<=e.level));function j(e){return Object.keys(e).length<=0}function w(r){return e.cursorNode==r}function I(r){const t=function(e){const r=[e];let t=e;for(;t.parent;)t=t.parent,r.unshift(t);return r}(r);if(p(_.value))return y(o(t,e.valueKey),o(_.value,e.valueKey));if(h(_.value)){const r=_.value.split("/").map((e=>e.trim()));return y(r,o(t,e.labelKey))}return!1;function o(e,r){return e.map((e=>e[r]))}}function O(e){const r=f.ref.value;if(r){const t=32*e-(null==r?void 0:r.clientHeight);r.scrollTo(0,t>0?t:0)}}return A.on((function(t){if("ArrowUp"===t){if(j(e.cursorNode))return;const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=0===t?o.value.length-1:t-1,n=o.value[e];r("changeCursor",n),O(e+3)}}if("ArrowRight"===t){if(j(e.cursorNode))return;r("nodeClick",{type:"search",node:e.cursorNode}),r("changeCursor",{})}if("ArrowDown"===t){if(j(e.cursorNode))return r("changeCursor",o.value[0]);const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=t>=o.value.length-1?0:t+1,n=o.value[e];r("changeCursor",n),O(e+1)}}if("ArrowLeft"===t&&e.activeNodes.length){const t=e.activeNodes.slice(-1);r("changeCursor",t[0])}"Enter"===t&&(S.value?r("nodeClick",{type:"update",node:e.cursorNode}):r("nodeClick",{type:"search",node:e.cursorNode}))})),()=>t("div",{class:"search-cascader__optionWrapper",ref:f.ref,style:f.style,onScroll:f.onScroll},[t("div",{style:k.value.style},[c.value.map((o=>{return t("div",{class:["search-cascader__option",{"search-cascader__option--active":(n=o.data,(null==(a=e.activeNodes)?void 0:a.includes(n))||w(o.data))}],onClick:()=>r("nodeClick",{type:"search",node:o.data}),title:o.data[e.labelKey]},[t("div",{class:"search-cascader__optionText"},[S.value?t(m,{style:{marginRight:"8px"},checked:I(o.data),onClick:l(i,["stop"]),onUpdateChecked:e=>e&&function(e){r("nodeClick",{type:"update",node:e})}(o.data)},null):null,t("span",{class:{"search-cascader__optionText--active":I(o.data)}},[o.data[e.labelKey]])]),K.value===o.data?t(s,{class:"rotate"},null):o.data.isLeaf?null:t(u,null,null)]);var n,a}))])])}}),K=e({props:{childKey:{type:String,default:"children"},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},currentNode:{type:Object},cursorNode:{type:Object}},emits:["nodeClick","changeCursor"],setup(e,{slots:n,emit:a}){const l=r([]);function s(r,o){return t(k,{level:o+1,labelKey:e.labelKey,valueKey:e.valueKey,activeNodes:l.value,onNodeClick:e=>a("nodeClick",e),onChangeCursor:e=>a("changeCursor",e),options:r,cursorNode:e.cursorNode},null)}function u(r){let t=!1;return c(r,((r,o)=>{e.currentNode===r&&(t=!0,o())}),["children"]),console.log("node_result=>",r,t,e.currentNode),t}function i(){if(!p(e.options)||!e.currentNode)return[];const r=[e.options];let t=e.options;for(l.value.length=0;p(t);){const o=t.find(u);if(!o)break;l.value.push(o),t=o[e.childKey],r.push(t)}if(e.cursorNode){const t=r.findIndex((r=>(r&&r.findIndex((r=>r===e.cursorNode)))>=0));if(t>=0){const e=r.slice(0,t+1);return l.value.splice(t,r.length),e}}return r}return()=>t("section",{class:"search-cascader__menuWrapper"},[p(e.options)&&e.options.length?e.currentNode?i().map(s):s(e.options,0):t("section",{class:"search-cascader__emptyWrapper"},[f(n.empty)?n.empty():t("section",null,[o("empty")])])])}});export{K as SearchMenu};
1
+ import{defineComponent as e,ref as r,createVNode as t,createTextVNode as o,computed as n,inject as a,onBeforeUnmount as l,withModifiers as c}from"vue";import{traverse as s}from"../../../../shared/utils/index.js";import{Reload as u,ChevronForward as i}from"@vicons/ionicons5";import{NOOP as d}from"@vue/shared";import{useVirtualList as p}from"@vueuse/core";import{isArray as f,isFunction as v,isNumber as y,isEqual as h,isString as m}from"lodash-es";import{NCheckbox as N}from"naive-ui";import{InjectionSearchCascaderLoadingNode as g,InjectionSearchCascaderValue as C,InjectionSearchCascaderCheckAbleLevel as b,InjectionKeyboardEventBus as k}from"../constants/index.js";const K=e({props:{options:{type:Array,default:()=>[]},activeNodes:{type:Array,default:()=>[]},level:{type:Number,required:!0},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},cursorNode:{type:Object,default:()=>({})}},emits:["nodeClick","changeCursor"],setup(e,{emit:r}){const o=n((()=>e.options)),{list:s,containerProps:v,wrapperProps:K}=p(o,{itemHeight:32,overscan:5}),_=a(g),x=a(C),A=a(b),S=a(k),j=n((()=>y(A.value)&&A.value<=e.level));function w(e){return Object.keys(e).length<=0}function I(r){return e.cursorNode==r}function O(r){const t=function(e){const r=[e];let t=e;for(;t.parent;)t=t.parent,r.unshift(t);return r}(r);if(f(x.value))return h(o(t,e.valueKey),o(x.value,e.valueKey));if(m(x.value)){const r=x.value.split("/").map((e=>e.trim()));return h(r,o(t,e.labelKey))}return!1;function o(e,r){return e.map((e=>e[r]))}}function R(e){const r=v.ref.value;if(r){const t=32*e-(null==r?void 0:r.clientHeight);r.scrollTo(0,t>0?t:0)}}function T(t,n){if("ArrowUp"===t){if(w(e.cursorNode))return;const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=0===t?o.value.length-1:t-1,n=o.value[e];r("changeCursor",n),R(e+3)}}if("ArrowRight"===t){if(w(e.cursorNode))return;r("nodeClick",{type:"search",node:e.cursorNode}),r("changeCursor",{})}if("ArrowDown"===t){if(w(e.cursorNode))return r("changeCursor",o.value[0]);const t=o.value.findIndex((r=>r===e.cursorNode));if(t>=0){const e=t>=o.value.length-1?0:t+1,n=o.value[e];r("changeCursor",n),R(e+1)}}if("ArrowLeft"===t&&e.activeNodes.length){const t=e.activeNodes.slice(-1);r("changeCursor",t[0])}"Enter"===t&&function(){if(!w(e.cursorNode))Reflect.set(n,"stopCapture",!0),j.value?r("nodeClick",{type:"update",node:e.cursorNode}):r("nodeClick",{type:"search",node:e.cursorNode})}()}return l((()=>{S.off(T)})),S.on(T),()=>t("div",{class:"search-cascader__optionWrapper",ref:v.ref,style:v.style,onScroll:v.onScroll},[t("div",{style:K.value.style},[s.value.map((o=>{return t("div",{class:["search-cascader__option",{"search-cascader__option--active":(n=o.data,(null==(a=e.activeNodes)?void 0:a.includes(n))||I(o.data))}],onClick:()=>r("nodeClick",{type:"search",node:o.data}),title:o.data[e.labelKey]},[t("div",{class:"search-cascader__optionText"},[j.value?t(N,{style:{marginRight:"8px"},checked:O(o.data),onClick:c(d,["stop"]),onUpdateChecked:e=>e&&function(e){r("nodeClick",{type:"update",node:e})}(o.data)},null):null,t("span",{class:{"search-cascader__optionText--active":O(o.data)}},[o.data[e.labelKey]])]),_.value===o.data?t(u,{class:"rotate"},null):o.data.isLeaf?null:t(i,null,null)]);var n,a}))])])}}),_=e({props:{childKey:{type:String,default:"children"},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},currentNode:{type:Object},cursorNode:{type:Object}},emits:["nodeClick","changeCursor"],setup(e,{slots:n,emit:a}){const l=r([]);function c(r,o){return t(K,{level:o+1,labelKey:e.labelKey,valueKey:e.valueKey,activeNodes:l.value,onNodeClick:e=>a("nodeClick",e),onChangeCursor:e=>a("changeCursor",e),options:r,cursorNode:e.cursorNode},null)}function u(r){let t=!1;return s(r,((r,o)=>{e.currentNode===r&&(t=!0,o())}),["children"]),t}function i(){var r,t;if(!f(e.options)||!e.currentNode)return[];const o=[e.options];let n=e.options;for(l.value.length=0;f(n);){const r=n.find(u);if(!r)break;l.value.push(r),n=r[e.childKey],o.push(n)}if(e.cursorNode){const n=o.findIndex((r=>(r&&r.findIndex((r=>r===e.cursorNode)))>=0));if(n>=0&&!(null==(t=null==(r=e.cursorNode)?void 0:r.children)?void 0:t.length)){const e=o.slice(0,n+1);return l.value.splice(n,o.length),e}}return o}return()=>t("section",{class:"search-cascader__menuWrapper"},[f(e.options)&&e.options.length?e.currentNode?i().map(c):c(e.options,0):t("section",{class:"search-cascader__emptyWrapper"},[v(n.empty)?n.empty():t("section",null,[o("empty")])])])}});export{_ as SearchMenu};
@@ -34,6 +34,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
34
34
  type: import("vue").PropType<{
35
35
  user_id_obj: string | number;
36
36
  user_name_obj: string | number;
37
+ user_expand_keys?: string[] | undefined;
37
38
  }>;
38
39
  default: () => {};
39
40
  };
@@ -53,9 +54,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
53
54
  type: BooleanConstructor;
54
55
  default: boolean;
55
56
  };
56
- isSearchFilter: {
57
- type: BooleanConstructor;
58
- default: boolean;
57
+ searchFilter: {
58
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
59
+ default: () => {};
59
60
  };
60
61
  treeSetting: {
61
62
  type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
@@ -72,6 +73,12 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
72
73
  default: () => Promise<never[]>;
73
74
  };
74
75
  }, {
76
+ searchFilterBase: {
77
+ isOpen: boolean;
78
+ multiple: boolean;
79
+ customTitles: string[];
80
+ itemHeight: number;
81
+ };
75
82
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
76
83
  defaultList: {
77
84
  type: import("vue").PropType<((string | number) | {
@@ -107,6 +114,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
107
114
  type: import("vue").PropType<{
108
115
  user_id_obj: string | number;
109
116
  user_name_obj: string | number;
117
+ user_expand_keys?: string[] | undefined;
110
118
  }>;
111
119
  default: () => {};
112
120
  };
@@ -126,9 +134,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
126
134
  type: BooleanConstructor;
127
135
  default: boolean;
128
136
  };
129
- isSearchFilter: {
130
- type: BooleanConstructor;
131
- default: boolean;
137
+ searchFilter: {
138
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
139
+ default: () => {};
132
140
  };
133
141
  treeSetting: {
134
142
  type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
@@ -179,9 +187,15 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
179
187
  allCheckedKeys: (string | number)[];
180
188
  isRemote: import("vue").ComputedRef<boolean>;
181
189
  checkStrategyResult: import("vue").ComputedRef<any>;
182
- treeOriginSetting: import("vue").ComputedRef<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
183
- [k: string]: unknown;
184
- } & import("../../../es/shared/types").AnyObject>;
190
+ isSearchFilter: import("vue").ComputedRef<boolean>;
191
+ mergeSearchFilter: import("vue").ComputedRef<{
192
+ isOpen: boolean;
193
+ multiple: boolean;
194
+ customTitles: string[];
195
+ itemHeight: number;
196
+ }>;
197
+ wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
198
+ caculateTagData: import("vue").ComputedRef<any[]>;
185
199
  init: () => void;
186
200
  getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
187
201
  getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
@@ -197,8 +211,8 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
197
211
  setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
198
212
  setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
199
213
  setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
214
+ searchSetting: () => string;
200
215
  onSearch: () => Promise<void>;
201
- onClear: () => void;
202
216
  setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
203
217
  setCheckdWithChild: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
204
218
  setCheckdWithParent: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
@@ -222,6 +236,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
222
236
  name: string;
223
237
  }) => void;
224
238
  notifyCheck: (keys: (string | number)[]) => void;
239
+ notifySearchClear: () => void;
225
240
  getCheckWithLevel: () => {
226
241
  [x: string]: any;
227
242
  key: string | number;
@@ -437,6 +452,128 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
437
452
  treeData: any[];
438
453
  checkedKeys: (string | number)[];
439
454
  }>;
455
+ SearchOrgAndStaff: import("vue").DefineComponent<{
456
+ treeData: {
457
+ type: import("vue").PropType<any[]>;
458
+ default: () => never[];
459
+ };
460
+ checkedKeys: {
461
+ type: import("vue").PropType<(string | number)[]>;
462
+ default: () => never[];
463
+ };
464
+ searchFilter: {
465
+ type: ObjectConstructor;
466
+ default: () => {};
467
+ };
468
+ }, {
469
+ $message: import("naive-ui").MessageApi;
470
+ virtualItemHeight: number;
471
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
472
+ treeData: {
473
+ type: import("vue").PropType<any[]>;
474
+ default: () => never[];
475
+ };
476
+ checkedKeys: {
477
+ type: import("vue").PropType<(string | number)[]>;
478
+ default: () => never[];
479
+ };
480
+ searchFilter: {
481
+ type: ObjectConstructor;
482
+ default: () => {};
483
+ };
484
+ }>> & {
485
+ onNotifyCheck?: ((...args: any[]) => any) | undefined;
486
+ onNotifyClear?: ((...args: any[]) => any) | undefined;
487
+ }>>;
488
+ emit: (event: "notifyCheck" | "notifyClear", ...args: any[]) => void;
489
+ moduleHeight: import("vue").ComputedRef<any>;
490
+ showNums: import("vue").ComputedRef<number>;
491
+ staffDataRef: import("vue").ComputedRef<any[]>;
492
+ staffList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
493
+ staffContainerProps: {
494
+ ref: import("vue").Ref<any>;
495
+ onScroll: () => void;
496
+ style: Partial<CSSStyleDeclaration>;
497
+ };
498
+ staffWrapperProps: import("vue").ComputedRef<{
499
+ style: {
500
+ width: string;
501
+ height: string;
502
+ marginTop: string;
503
+ };
504
+ }>;
505
+ staffContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
506
+ orgDataRef: import("vue").ComputedRef<any[]>;
507
+ orgList: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<any>[]>;
508
+ orgContainerProps: {
509
+ ref: import("vue").Ref<any>;
510
+ onScroll: () => void;
511
+ style: Partial<CSSStyleDeclaration>;
512
+ };
513
+ orgWrapperProps: import("vue").ComputedRef<{
514
+ style: {
515
+ width: string;
516
+ height: string;
517
+ marginTop: string;
518
+ };
519
+ }>;
520
+ orgContainerStyleWithHeight: import("vue").ComputedRef<import("vue").CSSProperties>;
521
+ searchCheckKeys: import("vue").Ref<(string | number)[]>;
522
+ showSelectKeys: import("vue").Ref<(string | number)[]>;
523
+ handleClick: (tree: any) => void;
524
+ handleStaffClick: (baseKeys: (string | number)[], currentTree: {
525
+ [key: string]: any;
526
+ key: string | number;
527
+ children: any[];
528
+ parentNode: any;
529
+ }, value: string | number) => false | undefined;
530
+ findParent: (baseKeys: (string | number)[], currentTree: {
531
+ [key: string]: any;
532
+ key: string | number;
533
+ children: any[];
534
+ parentNode: any;
535
+ }) => false | undefined;
536
+ handleOrgClick: (baseKeys: (string | number)[], currentTree: {
537
+ [key: string]: any;
538
+ key: string | number;
539
+ children: any[];
540
+ parentNode: any;
541
+ }, value: string | number) => void;
542
+ handleFindChildren: (treeList: {
543
+ [key: string]: any;
544
+ key: string | number;
545
+ children: any[];
546
+ parentNode: any;
547
+ }[]) => void;
548
+ checkInitTree: (tree: {
549
+ [key: string]: any;
550
+ key: string | number;
551
+ children: any[];
552
+ parentNode: any;
553
+ }, baseKey: string | number) => false | undefined;
554
+ ref: typeof import("vue").ref;
555
+ NEmpty: any;
556
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("notifyCheck" | "notifyClear")[], "notifyCheck" | "notifyClear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
557
+ treeData: {
558
+ type: import("vue").PropType<any[]>;
559
+ default: () => never[];
560
+ };
561
+ checkedKeys: {
562
+ type: import("vue").PropType<(string | number)[]>;
563
+ default: () => never[];
564
+ };
565
+ searchFilter: {
566
+ type: ObjectConstructor;
567
+ default: () => {};
568
+ };
569
+ }>> & {
570
+ onNotifyCheck?: ((...args: any[]) => any) | undefined;
571
+ onNotifyClear?: ((...args: any[]) => any) | undefined;
572
+ }, {
573
+ searchFilter: Record<string, any>;
574
+ treeData: any[];
575
+ checkedKeys: (string | number)[];
576
+ }>;
440
577
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
441
578
  defaultList: {
442
579
  type: import("vue").PropType<((string | number) | {
@@ -472,6 +609,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
472
609
  type: import("vue").PropType<{
473
610
  user_id_obj: string | number;
474
611
  user_name_obj: string | number;
612
+ user_expand_keys?: string[] | undefined;
475
613
  }>;
476
614
  default: () => {};
477
615
  };
@@ -491,9 +629,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
491
629
  type: BooleanConstructor;
492
630
  default: boolean;
493
631
  };
494
- isSearchFilter: {
495
- type: BooleanConstructor;
496
- default: boolean;
632
+ searchFilter: {
633
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
634
+ default: () => {};
497
635
  };
498
636
  treeSetting: {
499
637
  type: import("vue").PropType<import("naive-ui/es/tree/src/interface").TreeOptionBase & {
@@ -531,12 +669,13 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
531
669
  wordbookChild: {
532
670
  user_id_obj: string | number;
533
671
  user_name_obj: string | number;
672
+ user_expand_keys?: string[] | undefined;
534
673
  };
535
674
  showCount: boolean;
536
675
  showClear: boolean;
537
676
  multiple: boolean;
538
677
  searchInner: boolean;
539
- isSearchFilter: boolean;
678
+ searchFilter: import("../../../es/shared/types").AnyObject;
540
679
  treeSetting: import("naive-ui/es/tree/src/interface").TreeOptionBase & {
541
680
  [k: string]: unknown;
542
681
  } & import("../../../es/shared/types").AnyObject;