cnhis-design-vue 3.1.54-beta.4 → 3.1.54-beta.5

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/es/components/callback/src/components/render/popupMaps.d.ts +17 -8
  2. package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
  3. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  4. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  5. package/es/components/form-config/index.d.ts +72 -54
  6. package/es/components/form-config/src/FormConfig.vue.d.ts +73 -55
  7. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
  8. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -20
  9. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -12
  10. package/es/components/form-config/src/constants/index.d.ts +4 -4
  11. package/es/components/form-config/src/types/index.d.ts +3 -3
  12. package/es/components/form-render/index.d.ts +17 -8
  13. package/es/components/form-render/src/FormRender.vue.d.ts +18 -9
  14. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  15. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +17 -8
  16. package/es/components/form-render/src/components/renderer/date.js +1 -1
  17. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
  18. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -2
  19. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +2 -2
  20. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +2 -2
  21. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  22. package/es/components/form-render/src/types/index.d.ts +3 -3
  23. package/es/components/iho-table/src/types/index.d.ts +5 -5
  24. package/es/components/info-header/index.d.ts +44 -26
  25. package/es/components/info-header/src/InfoHeader.vue.d.ts +44 -26
  26. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -2
  27. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -2
  28. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +19 -10
  29. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +17 -8
  30. package/es/components/shortcut-setter/index.d.ts +19 -10
  31. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +19 -10
  32. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  33. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  34. package/es/shared/package.json.js +1 -1
  35. package/es/shared/types/business.d.ts +61 -53
  36. package/es/shared/utils/business.d.ts +7 -7
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { FormLowCodeReactions, LOW_CODE_VALUE_RELATION } from '../../../../../es/shared/types';
1
+ import { LowCodeTypes } from '../../../../../es/shared/types';
2
2
  import { FormConfigItem } from '../../../../../es/components/form-config';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
@@ -8,13 +8,13 @@ declare const _default: import("vue").DefineComponent<{
8
8
  };
9
9
  }, {
10
10
  props: {
11
- modelValue: FormLowCodeReactions.Config[];
11
+ modelValue: LowCodeTypes.reactionsConfig[];
12
12
  };
13
13
  emit: (event: "update:modelValue" | "validateFailure", ...args: any[]) => void;
14
14
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
15
15
  valueRef: import("vue").Ref<{
16
16
  conObj: {
17
- con: LOW_CODE_VALUE_RELATION;
17
+ con: LowCodeTypes.VALUE_RELATION;
18
18
  field_key: string;
19
19
  value: unknown;
20
20
  }[];
@@ -43,17 +43,17 @@ declare const _default: import("vue").DefineComponent<{
43
43
  expandedName: import("vue").Ref<string>;
44
44
  addConnection: () => void;
45
45
  removeConnection: (index: number) => void;
46
- getOppositeBtnText: (item: FormLowCodeReactions.Config) => string | undefined;
47
- unBindOpposite: (item: FormLowCodeReactions.Config) => void;
48
- addOppositeCondition: (item: FormLowCodeReactions.Config) => void;
46
+ getOppositeBtnText: (item: LowCodeTypes.reactionsConfig) => string | undefined;
47
+ unBindOpposite: (item: LowCodeTypes.reactionsConfig) => void;
48
+ addOppositeCondition: (item: LowCodeTypes.reactionsConfig) => void;
49
49
  getOppositeSqlExpression: (expression?: string) => string | undefined;
50
- createOppositeCondition: (config: FormLowCodeReactions.Config) => FormLowCodeReactions.Config;
51
- isOppositeConfig: (c1: FormLowCodeReactions.Config, c2: FormLowCodeReactions.Config) => boolean;
50
+ createOppositeCondition: (config: LowCodeTypes.reactionsConfig) => LowCodeTypes.reactionsConfig;
51
+ isOppositeConfig: (c1: LowCodeTypes.reactionsConfig, c2: LowCodeTypes.reactionsConfig) => boolean;
52
52
  onUpdateExpandedNames: (value: string[]) => void;
53
53
  getBinderFieldDesc: (index: number) => string;
54
- addCondition: (config: FormLowCodeReactions.Config) => void;
55
- removeCondition: (config: FormLowCodeReactions.Config, index: number) => void;
56
- onUpdateConditionType: (condition: FormLowCodeReactions.ConObj, type: LOW_CODE_VALUE_RELATION) => void;
54
+ addCondition: (config: LowCodeTypes.reactionsConfig) => void;
55
+ removeCondition: (config: LowCodeTypes.reactionsConfig, index: number) => void;
56
+ onUpdateConditionType: (condition: LowCodeTypes.reactionsConObj, type: LowCodeTypes.VALUE_RELATION) => void;
57
57
  showRef: import("vue").Ref<boolean>;
58
58
  fieldListRef: import("vue").Ref<FormConfigItem[]>;
59
59
  fieldOptions: import("vue").ComputedRef<FormConfigItem[]>;
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
111
111
  NTooltip: any;
112
112
  NIcon: any;
113
113
  conditionTypeOptions: {
114
- value: LOW_CODE_VALUE_RELATION;
114
+ value: LowCodeTypes.VALUE_RELATION;
115
115
  label: string;
116
116
  }[];
117
117
  connectionTypeOptions: {
@@ -1,4 +1,4 @@
1
- import { FormLowCodeReactions, LOW_CODE_VALUE_RELATION, UndefinedAble } from '../../../../../es/shared/types';
1
+ import { LowCodeTypes, UndefinedAble } from '../../../../../es/shared/types';
2
2
  import { InjectionKey, Ref } from 'vue';
3
3
  import { FormConfigItem } from '../../../../../es/components/form-config';
4
4
  export declare const WidgetTextMap: Map<string, string>;
@@ -77,9 +77,9 @@ export declare function isVisibleOptionConfig(): {
77
77
  value: boolean;
78
78
  };
79
79
  };
80
- export declare const conditionOppositeMap: Record<LOW_CODE_VALUE_RELATION, LOW_CODE_VALUE_RELATION>;
80
+ export declare const conditionOppositeMap: Record<LowCodeTypes.VALUE_RELATION, LowCodeTypes.VALUE_RELATION>;
81
81
  export declare const conditionTypeOptions: {
82
- value: LOW_CODE_VALUE_RELATION;
82
+ value: LowCodeTypes.VALUE_RELATION;
83
83
  label: string;
84
84
  }[];
85
85
  export declare const connectionTypeOppositeMap: {
@@ -97,6 +97,6 @@ export declare const connectionTypeOptions: {
97
97
  export declare const FORM_CONFIG_GROUP = "__display";
98
98
  export declare const InjectionFieldList: InjectionKey<Ref<FormConfigItem[]>>;
99
99
  export declare const InjectionMaterialList: InjectionKey<Ref<FormConfigItem[]>>;
100
- export declare const InjectionLowCodeReactions: InjectionKey<Ref<FormLowCodeReactions.Config[]>>;
100
+ export declare const InjectionLowCodeReactions: InjectionKey<Ref<LowCodeTypes.reactionsConfig[]>>;
101
101
  export declare const InjectionActiveFieldItem: InjectionKey<Ref<UndefinedAble<FormConfigItem>>>;
102
102
  export declare const InjectionFormConfigEmit: InjectionKey<(event: 'addItem' | 'removeItem', ...args: unknown[]) => void>;
@@ -1,5 +1,5 @@
1
1
  import { Component, FunctionalComponent } from 'vue';
2
- import { ArrayAble, FormLowCodeReactions } from '../../../../../es/shared/types';
2
+ import { ArrayAble, LowCodeTypes } from '../../../../../es/shared/types';
3
3
  import { FieldItem } from '../../../../../es/components/form-render';
4
4
  interface Matcher {
5
5
  (type: string): boolean;
@@ -37,11 +37,11 @@ export interface FormConfigTextFormatter {
37
37
  }
38
38
  export interface FormConfigExpose {
39
39
  loadData(payload: Record<'fieldList', FormConfigItem[]> & {
40
- lowCodeReactions?: FormLowCodeReactions.Config[];
40
+ lowCodeReactions?: LowCodeTypes.reactionsConfig[];
41
41
  }): void;
42
42
  validate(): Promise<unknown>;
43
43
  getData(withOriginalSetting?: boolean): Record<'fieldList' | 'materialList', FormConfigItem[]> & {
44
- lowCodeReactions: FormLowCodeReactions.Config[];
44
+ lowCodeReactions: LowCodeTypes.reactionsConfig[];
45
45
  };
46
46
  clearExtraList(): void;
47
47
  }
@@ -135,10 +135,13 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
135
135
  default: boolean;
136
136
  };
137
137
  lowCodeReactions: {
138
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
138
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
139
139
  };
140
140
  operationalForm: {
141
- type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
141
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
142
+ };
143
+ dateOperationalForm: {
144
+ type: ObjectConstructor;
142
145
  };
143
146
  linebarAutoHidden: {
144
147
  type: BooleanConstructor;
@@ -284,10 +287,13 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
284
287
  default: boolean;
285
288
  };
286
289
  lowCodeReactions: {
287
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
290
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
288
291
  };
289
292
  operationalForm: {
290
- type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
293
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
294
+ };
295
+ dateOperationalForm: {
296
+ type: ObjectConstructor;
291
297
  };
292
298
  linebarAutoHidden: {
293
299
  type: BooleanConstructor;
@@ -458,11 +464,11 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
458
464
  businessFormatter: import("./src/types").FormBusinessFormatter;
459
465
  requestInstance: import("..").FormRequestDefine.RequestInstance;
460
466
  enterToNextWidget: boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void);
461
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
467
+ lowCodeReactions: import("../../../es/shared/types").LowCodeTypes.reactionsConfig[];
462
468
  linebarAutoHidden: boolean;
463
469
  bordered: string | boolean;
464
470
  uniqueCacheData: boolean;
465
- operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
471
+ operationalForm: import("../../../es/shared/types").LowCodeTypes.operationalConfig[];
466
472
  outBordered: boolean;
467
473
  forceClearable: boolean;
468
474
  }>) => Record<string, import("@formily/json-schema").Stringify<{
@@ -876,10 +882,13 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
876
882
  default: boolean;
877
883
  };
878
884
  lowCodeReactions: {
879
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
885
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
880
886
  };
881
887
  operationalForm: {
882
- type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
888
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
889
+ };
890
+ dateOperationalForm: {
891
+ type: ObjectConstructor;
883
892
  };
884
893
  linebarAutoHidden: {
885
894
  type: BooleanConstructor;
@@ -1,5 +1,5 @@
1
1
  import { FormRequestDefine, useVersion } from '../../../../es/shared/hooks';
2
- import { AnyObject, FormLowCodeReactions, FormOperationalConfig } from '../../../../es/shared/types';
2
+ import { AnyObject, LowCodeTypes } from '../../../../es/shared/types';
3
3
  import { Field } from '@formily/core';
4
4
  import { Component, FunctionalComponent, PropType } from 'vue';
5
5
  import { FieldItem, FieldVisitor, FormBusinessFormatter } from './types';
@@ -130,10 +130,13 @@ declare const _default: import("vue").DefineComponent<{
130
130
  default: boolean;
131
131
  };
132
132
  lowCodeReactions: {
133
- type: PropType<FormLowCodeReactions.Config[]>;
133
+ type: PropType<LowCodeTypes.reactionsConfig[]>;
134
134
  };
135
135
  operationalForm: {
136
- type: PropType<FormOperationalConfig[]>;
136
+ type: PropType<LowCodeTypes.operationalConfig[]>;
137
+ };
138
+ dateOperationalForm: {
139
+ type: ObjectConstructor;
137
140
  };
138
141
  linebarAutoHidden: {
139
142
  type: BooleanConstructor;
@@ -279,10 +282,13 @@ declare const _default: import("vue").DefineComponent<{
279
282
  default: boolean;
280
283
  };
281
284
  lowCodeReactions: {
282
- type: PropType<FormLowCodeReactions.Config[]>;
285
+ type: PropType<LowCodeTypes.reactionsConfig[]>;
283
286
  };
284
287
  operationalForm: {
285
- type: PropType<FormOperationalConfig[]>;
288
+ type: PropType<LowCodeTypes.operationalConfig[]>;
289
+ };
290
+ dateOperationalForm: {
291
+ type: ObjectConstructor;
286
292
  };
287
293
  linebarAutoHidden: {
288
294
  type: BooleanConstructor;
@@ -453,11 +459,11 @@ declare const _default: import("vue").DefineComponent<{
453
459
  businessFormatter: FormBusinessFormatter;
454
460
  requestInstance: FormRequestDefine.RequestInstance;
455
461
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
456
- lowCodeReactions: FormLowCodeReactions.Config[];
462
+ lowCodeReactions: LowCodeTypes.reactionsConfig[];
457
463
  linebarAutoHidden: boolean;
458
464
  bordered: string | boolean;
459
465
  uniqueCacheData: boolean;
460
- operationalForm: FormOperationalConfig[];
466
+ operationalForm: LowCodeTypes.operationalConfig[];
461
467
  outBordered: boolean;
462
468
  forceClearable: boolean;
463
469
  }>) => Record<string, import("@formily/vue").Stringify<{
@@ -871,10 +877,13 @@ declare const _default: import("vue").DefineComponent<{
871
877
  default: boolean;
872
878
  };
873
879
  lowCodeReactions: {
874
- type: PropType<FormLowCodeReactions.Config[]>;
880
+ type: PropType<LowCodeTypes.reactionsConfig[]>;
875
881
  };
876
882
  operationalForm: {
877
- type: PropType<FormOperationalConfig[]>;
883
+ type: PropType<LowCodeTypes.operationalConfig[]>;
884
+ };
885
+ dateOperationalForm: {
886
+ type: ObjectConstructor;
878
887
  };
879
888
  linebarAutoHidden: {
880
889
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,mergeProps as d,withCtx as p,createElementBlock as u,createVNode as c,isRef as f,Fragment as h,renderList as y,createCommentVNode as g,createElementVNode as j,normalizeStyle as b,withKeys as v,toDisplayString as k,renderSlot as C}from"vue";import{useTheme as F}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as S,cloneDeep as H,isObject as x,isBoolean as A}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NForm as L,NTabs as B,NTabPane as O,NConfigProvider as R}from"naive-ui";import{useVersion as w}from"../../../shared/hooks/useVersion.js";import{createForm as D,onFormMount as V,onFieldValueChange as _,onFieldMount as I,onFieldUnmount as N,onFieldReact as W}from"@formily/core";import{Path as q}from"@formily/path";import{FormProvider as E,FormConsumer as K}from"@formily/vue";import{InjectionFormLifeCycleCaller as T,InjectionFormGraph as U}from"./constants/index.js";import{useAutoHidden as G}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as M}from"./hooks/useComplexOptions.js";import{useFormDomEvent as P,useFormExposeEvent as J}from"./hooks/useFormEvent.js";import{useFormGraph as $}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as z}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeEvent as Q}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as X}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as Y}from"./hooks/useNuiThemeOverrides.js";import{useOperationalForm as Z}from"./hooks/useOperationalForm.js";import{useWordbookSetting as ee}from"./hooks/useWordbookSetting.js";import"../index.js";import{createObjSchema as oe}from"./utils/schema.js";import{useFieldListAdaptor as te}from"./hooks/useFieldListAdaptor.js";import{useFieldVisitor as re}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as se}from"./hooks/useFormValidator.js";import{useAnchor as ae}from"./hooks/useAnchor.js";import{useFormContext as ie}from"./hooks/useFormContext.js";const le={key:0,style:{height:"54px"}},ne={style:{"white-space":"pre"}};var me=e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},operationalForm:{type:Object},linebarAutoHidden:{type:Boolean},bordered:{type:[Boolean,String],default:!0},outBordered:{type:Boolean,default:!1},uniqueCacheData:{type:Boolean,default:!1},forceClearable:Boolean},emits:["formChange","annotationChange","scroll"],setup(e,{expose:me,emit:de}){const pe=e,ue=F(),{nuiThemeOverrides:ce}=Y();se();const fe=o(),he=t((()=>S(pe.maxHeight)?pe.maxHeight+"px":pe.maxHeight)),{SchemaField:ye,businessCollector:ge,formItemDepsCollector:je,changeContextCollector:be,formUUID:ve}=ie(pe,de),{anchorBarRef:ke,currentAnchor:Ce,updateAnchorList:Fe,anchorIdList:Se,onScroll:He}=ae(pe,de,fe,je),{callLifeCycle:xe}=z(pe);r(T,xe),xe("onSetup");const{trigger:Ae}=G(),{observeFormGraph:Le,setGraph:Be,removeGraph:Oe}=$();r(U,Le);const{lowCodeEventTrigger:Re}=Q(),we=D({initialValues:pe.initialData,effects(e){const o={};V((()=>{Object.assign(o,H(e.values))})),_("*",(t=>{const r=q.getIn(o,t.path);q.setIn(o,t.path,t.value);const s=t.props.name.toString();ge.trigger(e,s),je.trigger(s),de("formChange",{fieldInstance:t,fieldKey:s,oldValue:r,fieldName:t.title,value:t.value,context:be.getContext(s,t.value)}),Re(t),De(s),_e(s),Ne.trigger(s,t.value)})),I("*",Be),N("*",Oe),pe.linebarAutoHidden&&(W("*",Ae),V((e=>e.query("*").forEach(Ae)))),pe.anchor&&W("*",Fe)}}),{lowCodeReactionsHandler:De,triggerAllReactionsHandler:Ve}=X(t((()=>pe.lowCodeReactions)),we),{operationalFormHandler:_e,triggerAllOperationalFormHandler:Ie}=Z(t((()=>pe.operationalForm)),we),Ne=ee(we,be);s(Ve),s(Ie);const{schemaAdaptor:We}=te(ge,pe.lifeCycle);let qe=pe.fieldList||[];const Ee=t((()=>pe.schema?pe.schema:pe.fieldList?(qe=re().traverse(H(pe.fieldList),pe.fieldVisitor),oe(We(qe,pe))):oe({}))),{onKeydown:Ke}=P({formModel:we,formRenderRef:fe,props:pe}),{clearSpan:Te}=M();a((()=>Te(ve)));const Ue=J({formModel:we,formRenderRef:fe,formItemDepsCollector:je,getFieldList:()=>qe,formUUID:ve});return me({formModel:we,validate:(e="*",o={})=>Ue.validate(e,o),getFormValues:(e=!0)=>Ue.getFormValues(e),async setFormValues(e,o={},t=!1,r=!0){var s,a,l,n,m;let d=!0,p=!0,u=!0;x(o)?(p=null==(s=o.needSplitExtendKey)||s,d=null==(a=o.avoidDependKeyConnection)||a,t=null!=(l=o.avoidBusinessConnection)&&l,u=null==(n=o.avoidWordbookSettingConnection)||n,r=null==(m=o.overwrite)||m):A(o)&&(p=o),t&&(ge.triggerLock=!0),d&&(je.triggerDisabled=!0),u&&Ne.setDisabled(!0),Ue.setFormValues(e,p,r),await i(),ge.triggerLock=!1,je.triggerDisabled=!1,Ne.setDisabled(!1)},setFieldState(e,o){Ue.setFieldState(e,o)},resetFields(e="*"){Ue.resetFields(e)},queryWidget:async e=>Ue.queryWidget(e),getFieldList:()=>qe,async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(l(),n(m(L),d({class:["form-render",{"form-render--out-border":e.outBordered}],"require-mark-placement":"left",style:m(ue)},m(w)()),{default:p((()=>[e.anchor?(l(),u("section",le,[c(m(B),{value:m(Ce),"onUpdate:value":t[0]||(t[0]=e=>f(Ce)?Ce.value=e:null),type:"line",ref_key:"anchorBarRef",ref:ke},{default:p((()=>[(l(!0),u(h,null,y(m(Se),(e=>(l(),n(m(O),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):g("v-if",!0),c(m(R),{"theme-overrides":m(ce)},{default:p((()=>[j("section",{class:"form-render__wrapper",style:b({"--column":e.column,"--form-height":m(he)}),ref_key:"formRenderRef",ref:fe,onScroll:t[1]||(t[1]=(...e)=>m(He)&&m(He)(...e)),onKeydownCapture:t[2]||(t[2]=v(((...e)=>m(Ke)&&m(Ke)(...e)),["enter"]))},[c(m(E),{form:m(we)},{default:p((()=>[c(m(ye),{schema:m(Ee)},null,8,["schema"]),e.consumer?(l(),n(m(K),{key:0},{default:p((({form:e})=>[j("div",ne,k(JSON.stringify(e.values,null,2)),1)])),_:1})):g("v-if",!0),C(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},16,["class","style"]))}});export{me as default};
1
+ import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,nextTick as i,openBlock as l,createBlock as n,unref as m,mergeProps as d,withCtx as p,createElementBlock as u,createVNode as c,isRef as f,Fragment as h,renderList as y,createCommentVNode as g,createElementVNode as j,normalizeStyle as b,withKeys as v,toDisplayString as k,renderSlot as F}from"vue";import{useTheme as C}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as S,cloneDeep as H,isObject as A,isBoolean as x}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NForm as L,NTabs as O,NTabPane as B,NConfigProvider as R}from"naive-ui";import{useVersion as w}from"../../../shared/hooks/useVersion.js";import{createForm as D,onFormMount as V,onFieldValueChange as _,onFieldMount as I,onFieldUnmount as N,onFieldReact as W}from"@formily/core";import{Path as q}from"@formily/path";import{FormProvider as E,FormConsumer as K}from"@formily/vue";import{InjectionFormLifeCycleCaller as T,InjectionFormGraph as U}from"./constants/index.js";import{useAutoHidden as G}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as M}from"./hooks/useComplexOptions.js";import{useFormDomEvent as P,useFormExposeEvent as J}from"./hooks/useFormEvent.js";import{useFormGraph as $}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as z}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeEvent as Q}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as X}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as Y}from"./hooks/useNuiThemeOverrides.js";import{useOperationalForm as Z}from"./hooks/useOperationalForm.js";import{useWordbookSetting as ee}from"./hooks/useWordbookSetting.js";import"../index.js";import{createObjSchema as oe}from"./utils/schema.js";import{useFieldListAdaptor as te}from"./hooks/useFieldListAdaptor.js";import{useFieldVisitor as re}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as se}from"./hooks/useFormValidator.js";import{useAnchor as ae}from"./hooks/useAnchor.js";import{useFormContext as ie}from"./hooks/useFormContext.js";const le={key:0,style:{height:"54px"}},ne={style:{"white-space":"pre"}};var me=e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},operationalForm:{type:Array},dateOperationalForm:{type:Object},linebarAutoHidden:{type:Boolean},bordered:{type:[Boolean,String],default:!0},outBordered:{type:Boolean,default:!1},uniqueCacheData:{type:Boolean,default:!1},forceClearable:Boolean},emits:["formChange","annotationChange","scroll"],setup(e,{expose:me,emit:de}){const pe=e,ue=C(),{nuiThemeOverrides:ce}=Y();se();const fe=o(),he=t((()=>S(pe.maxHeight)?pe.maxHeight+"px":pe.maxHeight)),{SchemaField:ye,businessCollector:ge,formItemDepsCollector:je,changeContextCollector:be,formUUID:ve}=ie(pe,de),{anchorBarRef:ke,currentAnchor:Fe,updateAnchorList:Ce,anchorIdList:Se,onScroll:He}=ae(pe,de,fe,je),{callLifeCycle:Ae}=z(pe);r(T,Ae),Ae("onSetup");const{trigger:xe}=G(),{observeFormGraph:Le,setGraph:Oe,removeGraph:Be}=$();r(U,Le);const{lowCodeEventTrigger:Re}=Q(),we=D({initialValues:pe.initialData,effects(e){const o={};V((()=>{Object.assign(o,H(e.values))})),_("*",(t=>{const r=q.getIn(o,t.path);q.setIn(o,t.path,t.value);const s=t.props.name.toString();ge.trigger(e,s),je.trigger(s),de("formChange",{fieldInstance:t,fieldKey:s,oldValue:r,fieldName:t.title,value:t.value,context:be.getContext(s,t.value)}),Re(t),De(s),_e(s),Ne.trigger(s,t.value)})),I("*",Oe),N("*",Be),pe.linebarAutoHidden&&(W("*",xe),V((e=>e.query("*").forEach(xe)))),pe.anchor&&W("*",Ce)}}),{lowCodeReactionsHandler:De,triggerAllReactionsHandler:Ve}=X(t((()=>pe.lowCodeReactions)),we),{operationalFormHandler:_e,triggerAllOperationalFormHandler:Ie}=Z(t((()=>pe.operationalForm)),we),Ne=ee(we,be);s(Ve),s(Ie);const{schemaAdaptor:We}=te(ge,pe.lifeCycle);let qe=pe.fieldList||[];const Ee=t((()=>pe.schema?pe.schema:pe.fieldList?(qe=re().traverse(H(pe.fieldList),pe.fieldVisitor),oe(We(qe,pe))):oe({}))),{onKeydown:Ke}=P({formModel:we,formRenderRef:fe,props:pe}),{clearSpan:Te}=M();a((()=>Te(ve)));const Ue=J({formModel:we,formRenderRef:fe,formItemDepsCollector:je,getFieldList:()=>qe,formUUID:ve});return me({formModel:we,validate:(e="*",o={})=>Ue.validate(e,o),getFormValues:(e=!0)=>Ue.getFormValues(e),async setFormValues(e,o={},t=!1,r=!0){var s,a,l,n,m;let d=!0,p=!0,u=!0;A(o)?(p=null==(s=o.needSplitExtendKey)||s,d=null==(a=o.avoidDependKeyConnection)||a,t=null!=(l=o.avoidBusinessConnection)&&l,u=null==(n=o.avoidWordbookSettingConnection)||n,r=null==(m=o.overwrite)||m):x(o)&&(p=o),t&&(ge.triggerLock=!0),d&&(je.triggerDisabled=!0),u&&Ne.setDisabled(!0),Ue.setFormValues(e,p,r),await i(),ge.triggerLock=!1,je.triggerDisabled=!1,Ne.setDisabled(!1)},setFieldState(e,o){Ue.setFieldState(e,o)},resetFields(e="*"){Ue.resetFields(e)},queryWidget:async e=>Ue.queryWidget(e),getFieldList:()=>qe,async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(l(),n(m(L),d({class:["form-render",{"form-render--out-border":e.outBordered}],"require-mark-placement":"left",style:m(ue)},m(w)()),{default:p((()=>[e.anchor?(l(),u("section",le,[c(m(O),{value:m(Fe),"onUpdate:value":t[0]||(t[0]=e=>f(Fe)?Fe.value=e:null),type:"line",ref_key:"anchorBarRef",ref:ke},{default:p((()=>[(l(!0),u(h,null,y(m(Se),(e=>(l(),n(m(B),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):g("v-if",!0),c(m(R),{"theme-overrides":m(ce)},{default:p((()=>[j("section",{class:"form-render__wrapper",style:b({"--column":e.column,"--form-height":m(he)}),ref_key:"formRenderRef",ref:fe,onScroll:t[1]||(t[1]=(...e)=>m(He)&&m(He)(...e)),onKeydownCapture:t[2]||(t[2]=v(((...e)=>m(Ke)&&m(Ke)(...e)),["enter"]))},[c(m(E),{form:m(we)},{default:p((()=>[c(m(ye),{schema:m(Ee)},null,8,["schema"]),e.consumer?(l(),n(m(K),{key:0},{default:p((({form:e})=>[j("div",ne,k(JSON.stringify(e.values,null,2)),1)])),_:1})):g("v-if",!0),F(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},16,["class","style"]))}});export{me as default};
@@ -133,10 +133,13 @@ declare const _default: import("vue").DefineComponent<{}, {
133
133
  default: boolean;
134
134
  };
135
135
  lowCodeReactions: {
136
- type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
136
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
137
137
  };
138
138
  operationalForm: {
139
- type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
139
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
140
+ };
141
+ dateOperationalForm: {
142
+ type: ObjectConstructor;
140
143
  };
141
144
  linebarAutoHidden: {
142
145
  type: BooleanConstructor;
@@ -282,10 +285,13 @@ declare const _default: import("vue").DefineComponent<{}, {
282
285
  default: boolean;
283
286
  };
284
287
  lowCodeReactions: {
285
- type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
288
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
286
289
  };
287
290
  operationalForm: {
288
- type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
291
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
292
+ };
293
+ dateOperationalForm: {
294
+ type: ObjectConstructor;
289
295
  };
290
296
  linebarAutoHidden: {
291
297
  type: BooleanConstructor;
@@ -456,11 +462,11 @@ declare const _default: import("vue").DefineComponent<{}, {
456
462
  businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
457
463
  requestInstance: import("../..").FormRequestDefine.RequestInstance;
458
464
  enterToNextWidget: boolean | ((fieldItem: import("../../../../es/components/form-render").FieldItem) => boolean | void);
459
- lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
465
+ lowCodeReactions: import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
460
466
  linebarAutoHidden: boolean;
461
467
  bordered: string | boolean;
462
468
  uniqueCacheData: boolean;
463
- operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
469
+ operationalForm: import("../../../../es/shared/types").LowCodeTypes.operationalConfig[];
464
470
  outBordered: boolean;
465
471
  forceClearable: boolean;
466
472
  }>) => Record<string, import("@formily/json-schema").Stringify<{
@@ -874,10 +880,13 @@ declare const _default: import("vue").DefineComponent<{}, {
874
880
  default: boolean;
875
881
  };
876
882
  lowCodeReactions: {
877
- type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
883
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
878
884
  };
879
885
  operationalForm: {
880
- type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
886
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
887
+ };
888
+ dateOperationalForm: {
889
+ type: ObjectConstructor;
881
890
  };
882
891
  linebarAutoHidden: {
883
892
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,watch as a,ref as o,onMounted as i,createVNode as n,mergeProps as r}from"vue";import{generateTimeFormat as u}from"../../../../../shared/utils/index.js";import{connect as l,mapProps as s}from"@formily/vue";import{isObject as d,useEventListener as m}from"@vueuse/core";import{format as v}from"date-fns";import c from"../../../../date-picker/index.js";import{useCommonInjection as p}from"../../hooks/useCommonInjection.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"lodash-es";import"naive-ui";import"../../../index.js";import{assignUpdateValue as f,assignClearBindVisited as y}from"../../utils/schema.js";const w=l(e({props:{onChange:{},disabled:{type:Boolean},value:{type:String},validate:{type:Object},valueFormat:{type:String,default:"yyyy-MM-dd"},allowedInvalidValue:{type:String,default:"-"},dbclickToCurrent:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{emit:l}){const{injectValueValidate:s,injectValueBindKey:f}=p();function y(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.min_date)}function w(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.max_date)}function D(e){return y()&&e<Date.now()-864e5||w()&&e>Date.now()}function b(e){const t=new Date(e),a=new Date,o=new Date(t);o.setHours(0),o.setMinutes(0),o.setSeconds(0);const i=new Date(t);i.setHours(23),i.setMinutes(59),i.setSeconds(59);const n=o>a,r=i<a,u=t.getHours(),l=a.getHours(),s=a.getMinutes();return{isHourDisabled:function(e){return y()&&!n&&e<l||w()&&!r&&e>l},isMinuteDisabled:function(e){if(u===l)return y()&&!n&&e<s||w()&&!r&&e>s;return y()&&!n&&u<l||w()&&!r&&u>l}}}s((()=>e.value));const j=t((()=>{const t={};if(d(e.validate)){const{min_date:a,max_date:o}=e.validate;(a||o)&&(t.isDateDisabled=D,t.isTimeDisabled=b)}return t})),g=t((()=>({valueFormat:e.valueFormat,format:e.valueFormat,timePickerProps:{format:u(e.valueFormat)}})));function h(t){return t!==e.allowedInvalidValue&&t?v(new Date(t),e.valueFormat):t}a((()=>e.value),(e=>{e&&h(e)!==e&&l("update:value",h(e))}));const k=t({get:()=>h(e.value),set:e=>{l("update:value",e)}}),F=f(k),V=o();return i((()=>{var t;if(!e.dbclickToCurrent)return;const a=null==(t=V.value)?void 0:t.$el;if(!a)return;const o=a.querySelector("input");o&&m(a,"dblclick",(()=>function(t){e.disabled||(t.value=v(Date.now(),e.valueFormat),t.dispatchEvent(new Event("input")))}(o)))})),()=>n(c,r({ref:V,key:F.value,disabled:e.disabled,allowedInvalidValue:e.allowedInvalidValue},j.value,g.value,{"formatted-value":k.value,"onUpdate:formatted-value":e=>k.value=e}),null)}}),s(f,y));export{w as DATE};
1
+ import{defineComponent as e,computed as t,watch as a,ref as o,onMounted as n,createVNode as i,mergeProps as r}from"vue";import{generateTimeFormat as u}from"../../../../../shared/utils/index.js";import{connect as l,mapProps as s}from"@formily/vue";import{isObject as d,useEventListener as m}from"@vueuse/core";import{format as v}from"date-fns";import c from"../../../../date-picker/index.js";import{useCommonInjection as p}from"../../hooks/useCommonInjection.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"lodash-es";import"naive-ui";import"../../../index.js";import{assignUpdateValue as f,assignClearBindVisited as y}from"../../utils/schema.js";const w=l(e({props:{onChange:{},disabled:{type:Boolean},value:{type:String},validate:{type:Object},valueFormat:{type:String,default:"yyyy-MM-dd"},allowedInvalidValue:{type:String,default:"-"},dbclickToCurrent:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{emit:l}){const{injectValueValidate:s,injectValueBindKey:f}=p();function y(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.min_date)}function w(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.max_date)}function D(e){return y()&&e<Date.now()-864e5||w()&&e>Date.now()}function b(e){const t=new Date(e),a=new Date,o=new Date(t);o.setHours(0),o.setMinutes(0),o.setSeconds(0);const n=new Date(t);n.setHours(23),n.setMinutes(59),n.setSeconds(59);const i=o>a,r=n<a,u=t.getHours(),l=a.getHours(),s=a.getMinutes();return{isHourDisabled:function(e){return y()&&!i&&e<l||w()&&!r&&e>l},isMinuteDisabled:function(e){if(u===l)return y()&&!i&&e<s||w()&&!r&&e>s;return y()&&!i&&u<l||w()&&!r&&u>l}}}s((()=>e.value));const j=t((()=>{const t={};if(d(e.validate)){const{min_date:a,max_date:o}=e.validate;(a||o)&&(t.isDateDisabled=D,t.isTimeDisabled=b)}return t})),g=t((()=>({valueFormat:e.valueFormat,format:e.valueFormat,timePickerProps:{format:u(e.valueFormat)}})));function h(t){return t?t===e.allowedInvalidValue?t:v(new Date(t),e.valueFormat):null}a((()=>e.value),(e=>{e&&h(e)!==e&&l("update:value",h(e))}));const k=t({get:()=>h(e.value),set:e=>{l("update:value",e)}}),F=f(k),V=o();return n((()=>{var t;if(!e.dbclickToCurrent)return;const a=null==(t=V.value)?void 0:t.$el;if(!a)return;const o=a.querySelector("input");o&&m(a,"dblclick",(()=>function(t){e.disabled||(t.value=v(Date.now(),e.valueFormat),t.dispatchEvent(new Event("input")))}(o)))})),()=>i(c,r({ref:V,key:F.value,disabled:e.disabled,allowedInvalidValue:e.allowedInvalidValue},j.value,g.value,{"formatted-value":k.value,"onUpdate:formatted-value":e=>k.value=e}),null)}}),s(f,y));export{w as DATE};
@@ -84,11 +84,11 @@ export declare function useFieldNormalize(): {
84
84
  businessFormatter: import("../types").FormBusinessFormatter;
85
85
  requestInstance: import("../../..").FormRequestDefine.RequestInstance;
86
86
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
87
- lowCodeReactions: import("../../../../../es/shared/types").FormLowCodeReactions.Config[];
87
+ lowCodeReactions: import("../../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
88
88
  linebarAutoHidden: boolean;
89
89
  bordered: string | boolean;
90
90
  uniqueCacheData: boolean;
91
- operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
91
+ operationalForm: import("../../../../../es/shared/types").LowCodeTypes.operationalConfig[];
92
92
  outBordered: boolean;
93
93
  forceClearable: boolean;
94
94
  }>], import("../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
@@ -175,11 +175,11 @@ export declare function useFieldNormalize(): {
175
175
  businessFormatter: import("../types").FormBusinessFormatter;
176
176
  requestInstance: import("../../..").FormRequestDefine.RequestInstance;
177
177
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
178
- lowCodeReactions: import("../../../../../es/shared/types").FormLowCodeReactions.Config[];
178
+ lowCodeReactions: import("../../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
179
179
  linebarAutoHidden: boolean;
180
180
  bordered: string | boolean;
181
181
  uniqueCacheData: boolean;
182
- operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
182
+ operationalForm: import("../../../../../es/shared/types").LowCodeTypes.operationalConfig[];
183
183
  outBordered: boolean;
184
184
  forceClearable: boolean;
185
185
  }>], import("../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
@@ -1,5 +1,5 @@
1
1
  import { FormRequestDefine } from '../../../../../es/shared/hooks';
2
- import { AnyObject, FormWordbook, AnyFn } from '../../../../../es/shared/types';
2
+ import { AnyObject, AnyFn, LowCodeTypes } from '../../../../../es/shared/types';
3
3
  import { Ref } from 'vue';
4
4
  import { UrlConfig } from '../../../../../es/components/form-render';
5
5
  import { RecommendItem } from '../../../../../es/components/recommend-search/src/types';
@@ -46,7 +46,7 @@ export declare function useAutographOptions(props: Partial<{
46
46
  valueField: string;
47
47
  showField: string;
48
48
  requestCache: boolean;
49
- wordbook: FormWordbook;
49
+ wordbook: LowCodeTypes.wordbook;
50
50
  autograph: string;
51
51
  lazyRequest: boolean;
52
52
  options: AnyObject[];
@@ -1,7 +1,7 @@
1
- import { FormLowCodeReactions } from '../../../../../es/shared/types';
1
+ import { LowCodeTypes } from '../../../../../es/shared/types';
2
2
  import { Form } from '@formily/core';
3
3
  import { MaybeRef } from '@vueuse/core';
4
- export declare function useLowCodeReactions(configListRef: MaybeRef<FormLowCodeReactions.Config[] | undefined>, formModel: Form): {
4
+ export declare function useLowCodeReactions(configListRef: MaybeRef<LowCodeTypes.reactionsConfig[] | undefined>, formModel: Form): {
5
5
  lowCodeReactionsHandler: (field: string) => void;
6
6
  triggerAllReactionsHandler: () => void;
7
7
  };
@@ -1,7 +1,7 @@
1
- import { FormOperationalConfig } from '../../../../../es/shared/types';
1
+ import { LowCodeTypes } from '../../../../../es/shared/types';
2
2
  import { Form } from '@formily/core';
3
3
  import { ComputedRef } from 'vue';
4
- export declare function useOperationalForm(operationalForm: ComputedRef<FormOperationalConfig[] | undefined>, formModel: Form): {
4
+ export declare function useOperationalForm(operationalForm: ComputedRef<LowCodeTypes.operationalConfig[] | undefined>, formModel: Form): {
5
5
  operationalFormHandler: (field: string) => void;
6
6
  triggerAllOperationalFormHandler: () => void;
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { FormRequestDefine } from '../../../../../es/shared/hooks';
2
- import { AnyObject, ArrayAble, BindEventSettingItem, FormWordbook } from '../../../../../es/shared/types';
2
+ import { AnyObject, ArrayAble, LowCodeTypes } from '../../../../../es/shared/types';
3
3
  import { SchemaEffectTypes, SchemaTypes } from '@formily/vue';
4
4
  import { CSSProperties, VNode } from 'vue';
5
5
  import { DependKeyType, FormCommonState } from '../../../../../es/components/form-render';
@@ -104,7 +104,7 @@ export declare type FieldItem = {
104
104
  * 1.用于CASCADER控件提供层级参数
105
105
  * 2.用于SEARCH控件提供字段信息
106
106
  */
107
- wordbook: FormWordbook;
107
+ wordbook: LowCodeTypes.wordbook;
108
108
  open: SwitchProperty;
109
109
  close: SwitchProperty;
110
110
  date_format: string;
@@ -120,7 +120,7 @@ export declare type FieldItem = {
120
120
  free_entry: FormCommonState;
121
121
  save_free_entry: FormCommonState;
122
122
  initialize_high: number;
123
- bindEventSetting: BindEventSettingItem[];
123
+ bindEventSetting: LowCodeTypes.BindEventSettingItem[];
124
124
  show_mode: ShowModeType;
125
125
  is_allow_check_mid: FormCommonState;
126
126
  allow_check_mid_level: '1' | '2' | '3' | '4';
@@ -1,5 +1,5 @@
1
1
  import { FormRequestDefine } from '../../../../../es/shared/hooks';
2
- import { AnyObject, FormLowCodeReactions, FormOperationalConfig, UndefinedAble } from '../../../../../es/shared/types';
2
+ import { AnyObject, LowCodeTypes, UndefinedAble } from '../../../../../es/shared/types';
3
3
  import { DataField, Field, Form, GeneralField } from '@formily/core';
4
4
  import { ISchema } from '@formily/json-schema/esm/types';
5
5
  import { Component, FunctionalComponent } from 'vue';
@@ -136,11 +136,11 @@ export declare type FormRenderProps = Partial<{
136
136
  businessFormatter: FormBusinessFormatter;
137
137
  requestInstance: FormRequestDefine.RequestInstance;
138
138
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
139
- lowCodeReactions: FormLowCodeReactions.Config[];
139
+ lowCodeReactions: LowCodeTypes.reactionsConfig[];
140
140
  linebarAutoHidden: boolean;
141
141
  bordered: boolean | string;
142
142
  uniqueCacheData: boolean;
143
- operationalForm: FormOperationalConfig[];
143
+ operationalForm: LowCodeTypes.operationalConfig[];
144
144
  outBordered: boolean;
145
145
  forceClearable: boolean;
146
146
  }>;
@@ -1,4 +1,4 @@
1
- import { AnyObject, ArrayAble, BindEventSettingItem, FormOperationalConfig, FormWordbook, AnyFn, LOW_CODE_VALUE_RELATION, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
1
+ import { AnyObject, ArrayAble, AnyFn, MaybeString, LowCodeTypes, 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';
@@ -36,7 +36,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
36
36
  usePreset: boolean;
37
37
  [K: string]: any;
38
38
  }>;
39
- operationForm: FormOperationalConfig[];
39
+ operationForm: LowCodeTypes.operationalConfig[];
40
40
  checkboxConfig: Partial<VxeTableProps['checkboxConfig'] & {
41
41
  slots: VxeColumnPropTypes.Slots;
42
42
  maxCheckSize: number;
@@ -75,7 +75,7 @@ export declare namespace IhoTableLowCodeField {
75
75
  }>;
76
76
  type ColorAndIconItem = Partial<{
77
77
  condition: {
78
- con: LOW_CODE_VALUE_RELATION;
78
+ con: LowCodeTypes.VALUE_RELATION;
79
79
  value: unknown;
80
80
  field_key?: string;
81
81
  }[];
@@ -149,12 +149,12 @@ export declare type LowCodeTableFieldItem = {
149
149
  colorAndIcon: IhoTableLowCodeField.ColorAndIconItem[];
150
150
  variableHeight: boolean | '0' | '1';
151
151
  filterSetting: IhoTableLowCodeField.FilterSetting;
152
- bindEventSetting: BindEventSettingItem[];
152
+ bindEventSetting: LowCodeTypes.BindEventSettingItem[];
153
153
  allowSlash: boolean | string;
154
154
  whiteList: string[];
155
155
  defaultValue: any;
156
156
  autograph: string;
157
- wordbook: FormWordbook;
157
+ wordbook: LowCodeTypes.wordbook;
158
158
  requestCache: boolean;
159
159
  lazyRequest: boolean;
160
160
  }> & Partial<VxeTableDefines.ColumnInfo>;