cnhis-design-vue 3.1.54-beta.3 → 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 (40) 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/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  6. package/es/components/form-config/index.d.ts +72 -54
  7. package/es/components/form-config/src/FormConfig.vue.d.ts +73 -55
  8. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
  9. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +29 -20
  10. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -12
  11. package/es/components/form-config/src/constants/index.d.ts +4 -4
  12. package/es/components/form-config/src/types/index.d.ts +3 -3
  13. package/es/components/form-render/index.d.ts +17 -8
  14. package/es/components/form-render/src/FormRender.vue.d.ts +18 -9
  15. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  16. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +17 -8
  17. package/es/components/form-render/src/components/renderer/date.js +1 -1
  18. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
  19. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -2
  20. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +2 -2
  21. package/es/components/form-render/src/hooks/useOperationalForm.d.ts +2 -2
  22. package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
  23. package/es/components/form-render/src/types/index.d.ts +3 -3
  24. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -0
  25. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  26. package/es/components/iho-table/src/types/index.d.ts +5 -5
  27. package/es/components/info-header/index.d.ts +44 -26
  28. package/es/components/info-header/src/InfoHeader.vue.d.ts +44 -26
  29. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -2
  30. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -2
  31. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +19 -10
  32. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +17 -8
  33. package/es/components/shortcut-setter/index.d.ts +19 -10
  34. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +19 -10
  35. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  36. package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
  37. package/es/shared/package.json.js +1 -1
  38. package/es/shared/types/business.d.ts +61 -53
  39. package/es/shared/utils/business.d.ts +7 -7
  40. package/package.json +2 -2
@@ -156,12 +156,12 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
156
156
  initialize_high?: number | undefined;
157
157
  bindEventSetting?: {
158
158
  [x: string]: unknown;
159
- event_type: import("../../../es/shared/types").LOW_CODE_EVENT_TYPE;
159
+ event_type: import("../../../es/shared/types").LowCodeTypes.EVENT_TYPE;
160
160
  event_field?: string | undefined;
161
161
  params?: {
162
162
  p_value?: string | undefined;
163
163
  p_name: string;
164
- p_select: import("../../../es/shared/types").LOW_CODE_VALUE_RELATION;
164
+ p_select: import("../../../es/shared/types").LowCodeTypes.VALUE_RELATION;
165
165
  }[] | undefined;
166
166
  results?: {
167
167
  p_value: string;
@@ -1906,10 +1906,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
1906
1906
  default: boolean;
1907
1907
  };
1908
1908
  lowCodeReactions: {
1909
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
1909
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
1910
1910
  };
1911
1911
  operationalForm: {
1912
- type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
1912
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
1913
+ };
1914
+ dateOperationalForm: {
1915
+ type: ObjectConstructor;
1913
1916
  };
1914
1917
  linebarAutoHidden: {
1915
1918
  type: BooleanConstructor;
@@ -2055,10 +2058,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2055
2058
  default: boolean;
2056
2059
  };
2057
2060
  lowCodeReactions: {
2058
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
2061
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
2059
2062
  };
2060
2063
  operationalForm: {
2061
- type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
2064
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
2065
+ };
2066
+ dateOperationalForm: {
2067
+ type: ObjectConstructor;
2062
2068
  };
2063
2069
  linebarAutoHidden: {
2064
2070
  type: BooleanConstructor;
@@ -2229,11 +2235,11 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2229
2235
  businessFormatter: import("..").FormBusinessFormatter;
2230
2236
  requestInstance: import("..").FormRequestDefine.RequestInstance;
2231
2237
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
2232
- lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
2238
+ lowCodeReactions: import("../../../es/shared/types").LowCodeTypes.reactionsConfig[];
2233
2239
  linebarAutoHidden: boolean;
2234
2240
  bordered: string | boolean;
2235
2241
  uniqueCacheData: boolean;
2236
- operationalForm: import("../../../es/shared/types").FormOperationalConfig[];
2242
+ operationalForm: import("../../../es/shared/types").LowCodeTypes.operationalConfig[];
2237
2243
  outBordered: boolean;
2238
2244
  forceClearable: boolean;
2239
2245
  }>) => Record<string, import("@formily/json-schema").Stringify<{
@@ -2647,10 +2653,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2647
2653
  default: boolean;
2648
2654
  };
2649
2655
  lowCodeReactions: {
2650
- type: import("vue").PropType<import("../../../es/shared/types").FormLowCodeReactions.Config[]>;
2656
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
2651
2657
  };
2652
2658
  operationalForm: {
2653
- type: import("vue").PropType<import("../../../es/shared/types").FormOperationalConfig[]>;
2659
+ type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
2660
+ };
2661
+ dateOperationalForm: {
2662
+ type: ObjectConstructor;
2654
2663
  };
2655
2664
  linebarAutoHidden: {
2656
2665
  type: BooleanConstructor;
@@ -159,12 +159,12 @@ declare const _default: import("vue").DefineComponent<{
159
159
  initialize_high?: number | undefined;
160
160
  bindEventSetting?: {
161
161
  [x: string]: unknown;
162
- event_type: import("../../../../es/shared/types").LOW_CODE_EVENT_TYPE;
162
+ event_type: import("../../../../es/shared/types").LowCodeTypes.EVENT_TYPE;
163
163
  event_field?: string | undefined;
164
164
  params?: {
165
165
  p_value?: string | undefined;
166
166
  p_name: string;
167
- p_select: import("../../../../es/shared/types").LOW_CODE_VALUE_RELATION;
167
+ p_select: import("../../../../es/shared/types").LowCodeTypes.VALUE_RELATION;
168
168
  }[] | undefined;
169
169
  results?: {
170
170
  p_value: string;
@@ -1909,10 +1909,13 @@ declare const _default: import("vue").DefineComponent<{
1909
1909
  default: boolean;
1910
1910
  };
1911
1911
  lowCodeReactions: {
1912
- type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
1912
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
1913
1913
  };
1914
1914
  operationalForm: {
1915
- type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
1915
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
1916
+ };
1917
+ dateOperationalForm: {
1918
+ type: ObjectConstructor;
1916
1919
  };
1917
1920
  linebarAutoHidden: {
1918
1921
  type: BooleanConstructor;
@@ -2058,10 +2061,13 @@ declare const _default: import("vue").DefineComponent<{
2058
2061
  default: boolean;
2059
2062
  };
2060
2063
  lowCodeReactions: {
2061
- type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
2064
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
2062
2065
  };
2063
2066
  operationalForm: {
2064
- type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
2067
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
2068
+ };
2069
+ dateOperationalForm: {
2070
+ type: ObjectConstructor;
2065
2071
  };
2066
2072
  linebarAutoHidden: {
2067
2073
  type: BooleanConstructor;
@@ -2232,11 +2238,11 @@ declare const _default: import("vue").DefineComponent<{
2232
2238
  businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
2233
2239
  requestInstance: import("../../../../es/shared/hooks").FormRequestDefine.RequestInstance;
2234
2240
  enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
2235
- lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
2241
+ lowCodeReactions: import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
2236
2242
  linebarAutoHidden: boolean;
2237
2243
  bordered: string | boolean;
2238
2244
  uniqueCacheData: boolean;
2239
- operationalForm: import("../../../../es/shared/types").FormOperationalConfig[];
2245
+ operationalForm: import("../../../../es/shared/types").LowCodeTypes.operationalConfig[];
2240
2246
  outBordered: boolean;
2241
2247
  forceClearable: boolean;
2242
2248
  }>) => Record<string, import("@formily/json-schema").Stringify<{
@@ -2650,10 +2656,13 @@ declare const _default: import("vue").DefineComponent<{
2650
2656
  default: boolean;
2651
2657
  };
2652
2658
  lowCodeReactions: {
2653
- type: import("vue").PropType<import("../../../../es/shared/types").FormLowCodeReactions.Config[]>;
2659
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
2654
2660
  };
2655
2661
  operationalForm: {
2656
- type: import("vue").PropType<import("../../../../es/shared/types").FormOperationalConfig[]>;
2662
+ type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
2663
+ };
2664
+ dateOperationalForm: {
2665
+ type: ObjectConstructor;
2657
2666
  };
2658
2667
  linebarAutoHidden: {
2659
2668
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let g,v,y=s;p?(g=s===t.SELECT&&c===e.MULTIPLE?null==E?void 0:E.valueList:null==(l=null==E?void 0:E.valueList)?void 0:l[0],v=null==E?void 0:E.unit,s===t.LABEL&&(y="SELECTLABEL",g=null==E?void 0:E.valueList),s===t.DATE&&(y="DATE_OUT"),s===t.DATE_TIME&&(y="DATETIME_OUT")):s===t.SELECT&&(null==u?void 0:u.list)&&(null==u?void 0:u.list.length)<10&&(y="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(y="INPUTNUMBER_RANGE"),s===t.DATE&&(y=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(y=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==u?void 0:u.manualMapping)&&(y=t.SELECTDYNAMIC);const A={isRender:!0,widgetType:y,originType:s,valueList:null==(a=null==u?void 0:u.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:g,defValueUnit:v,optionSetting:c,multiple:c===e.MULTIPLE||y===t.SELECTLABEL,manualMapping:null==u?void 0:u.manualMapping,showWholeOption:null==u?void 0:u.showWholeOption,dynamicOptionInfo:null==u?void 0:u.dynamicOptionInfo,classifyStr:null==E?void 0:E.classifyStr,linkageFieldKeys:null!=(o=null==E?void 0:E.linkageFieldKeys)?o:[]};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:A,rangeFilter:T,unit:null!=v?v:"",isAccurateSearchVal:!1,_extendData:null!=n?n:{}}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(n)&&l.multiple?i:i[0]},transformClassifyChild:function(e,i){const n={};return e&&e.length>0&&e.forEach((e=>{const r=e.field_key;n[r]="";const u=i.find((e=>e.name===r));if(u){const i=Array.isArray(e.value)&&u.type===t.SELECT?e.value:e.value.toString();if(n[r]=i,e.unit&&e.unit!==o.CUSTOM){let i="";u.type===t.DATE&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD",u.optionType):a(e.unit,"YYYY-MM-DD")),u.type===t.DATE_TIME&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):a(e.unit,"YYYY-MM-DD HH:mm:ss")),n[r]=i}}})),n},transformParams:function(e){const l={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP];return e&&e.length>0&&e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>n(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(l[e.accurateSearchKey]=e.isAccurateSearch?1:0),l[o]=t)})),l}}}export{u as default};
1
+ import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let v,g,y=s;p?(v=s===t.SELECT&&c===e.MULTIPLE?null==E?void 0:E.valueList:null==(l=null==E?void 0:E.valueList)?void 0:l[0],g=null==E?void 0:E.unit,s===t.LABEL&&(y="SELECTLABEL",v=null==E?void 0:E.valueList),s===t.DATE&&(y="DATE_OUT"),s===t.DATE_TIME&&(y="DATETIME_OUT")):s===t.SELECT&&(null==u?void 0:u.list)&&(null==u?void 0:u.list.length)<10&&(y="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(y="INPUTNUMBER_RANGE"),s===t.DATE&&(y=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(y=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==u?void 0:u.manualMapping)&&(y=t.SELECTDYNAMIC);const A={isRender:!0,widgetType:y,originType:s,valueList:null==(a=null==u?void 0:u.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:v,defValueUnit:g,optionSetting:c,multiple:c===e.MULTIPLE||y===t.SELECTLABEL,manualMapping:null==u?void 0:u.manualMapping,showWholeOption:null==u?void 0:u.showWholeOption,dynamicOptionInfo:null==u?void 0:u.dynamicOptionInfo,classifyStr:null==E?void 0:E.classifyStr,linkageFieldKeys:null!=(o=null==E?void 0:E.linkageFieldKeys)?o:[]};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:A,rangeFilter:T,unit:null!=g?g:"",isAccurateSearchVal:!1,_extendData:null!=n?n:{}}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(n)&&l.multiple?i:i[0]},transformClassifyChild:function(e,i){const n={};return e&&e.length>0&&e.forEach((e=>{const r=e.field_key;n[r]="";const u=i.find((e=>e.name===r));if(u){if(e.value){const i=Array.isArray(e.value)&&u.type===t.SELECT?e.value:e.value.toString();n[r]=i}if(e.unit&&e.unit!==o.CUSTOM){let i="";u.type===t.DATE&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD",u.optionType):a(e.unit,"YYYY-MM-DD")),u.type===t.DATE_TIME&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):a(e.unit,"YYYY-MM-DD HH:mm:ss")),n[r]=i}}})),n},transformParams:function(e){const l={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP];return e&&e.length>0&&e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>n(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(l[e.accurateSearchKey]=e.isAccurateSearch?1:0),l[o]=t)})),l}}}export{u as default};
@@ -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 { MaybeRef } from '@vueuse/core';
4
4
  import { Ref } from 'vue';
5
5
  export declare function useLevelSearchCascader(props: Partial<{
@@ -9,7 +9,7 @@ export declare function useLevelSearchCascader(props: Partial<{
9
9
  value: string | AnyObject[];
10
10
  }> & {
11
11
  autograph: string;
12
- wordbook: FormWordbook;
12
+ wordbook: LowCodeTypes.wordbook;
13
13
  labelField: string;
14
14
  valueField: string;
15
15
  }, emit: AnyFn, { asyncQueue, fieldKey, getRequestPayload }: {
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.54-beta.3",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.54-beta.3",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.54-beta.5",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.54-beta.5",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
@@ -1,27 +1,4 @@
1
1
  import { AnyObject } from '../../../es/shared/types/index';
2
- export declare type LOW_CODE_VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
3
- export declare type LOW_CODE_EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
4
- export declare type BindEventSettingItem = {
5
- event_type: LOW_CODE_EVENT_TYPE;
6
- event_field?: string;
7
- params?: {
8
- p_value?: string;
9
- p_name: string;
10
- p_select: LOW_CODE_VALUE_RELATION;
11
- }[];
12
- results?: {
13
- p_value: string;
14
- p_name: string;
15
- }[];
16
- compareMap?: Partial<Record<LOW_CODE_VALUE_RELATION, (v1: any, v2: any) => boolean>>;
17
- [K: string]: unknown;
18
- };
19
- export declare type FormOperationalConfig = {
20
- operationFormParam: string[];
21
- operationalRule: string;
22
- operationalPrecision: string;
23
- operationalResult: string;
24
- };
25
2
  export declare type IFlexibleType = {
26
3
  el: HTMLBaseElement;
27
4
  mode: string;
@@ -29,14 +6,68 @@ export declare type IFlexibleType = {
29
6
  onEnd: (result: any) => void;
30
7
  onStart?: (result: any) => void;
31
8
  };
32
- export declare namespace FormLowCodeReactions {
33
- type ConObj = {
34
- con: LOW_CODE_VALUE_RELATION;
9
+ export declare namespace LowCodeTypes {
10
+ type VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
11
+ type EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
12
+ type BindEventSettingItem = {
13
+ event_type: EVENT_TYPE;
14
+ event_field?: string;
15
+ params?: {
16
+ p_value?: string;
17
+ p_name: string;
18
+ p_select: VALUE_RELATION;
19
+ }[];
20
+ results?: {
21
+ p_value: string;
22
+ p_name: string;
23
+ }[];
24
+ compareMap?: Partial<Record<VALUE_RELATION, (v1: any, v2: any) => boolean>>;
25
+ [K: string]: unknown;
26
+ };
27
+ type wordbook = Partial<{
28
+ level_num: number;
29
+ id: string;
30
+ name: string;
31
+ render_key: string[];
32
+ search_key: string[];
33
+ value_key: string;
34
+ queryParams: string[];
35
+ primary_key: string;
36
+ type: string;
37
+ level_key: string;
38
+ link_key: string;
39
+ link_key_split: string;
40
+ show_key: string[] | string;
41
+ conObj: AnyObject[];
42
+ conObjFirstLevel: AnyObject[];
43
+ setting: Partial<{
44
+ cascading: {
45
+ 'form.name': string;
46
+ value: string;
47
+ }[];
48
+ }>;
49
+ }>;
50
+ type operationalConfig = {
51
+ operationFormParam: string[];
52
+ operationalRule: string;
53
+ operationalPrecision: string;
54
+ operationalResult: string;
55
+ };
56
+ type dateOperationalConfig = {
57
+ scene: 'DIFF' | 'CALC';
58
+ precision: string;
59
+ diffValUnit: 'DAY' | 'MIN' | 'HOUR';
60
+ diffValField: string;
61
+ startDateField: string;
62
+ endDateField: string;
63
+ };
64
+ type reactionsConObj = {
65
+ con: VALUE_RELATION;
35
66
  field_key: string;
36
67
  value: unknown;
37
68
  };
38
- type Config = {
39
- conObj: ConObj[];
69
+ type reactionsConfig = {
70
+ conObj: reactionsConObj[];
40
71
  } & Partial<{
41
72
  compareMap: BindEventSettingItem['compareMap'];
42
73
  sqlExpression: string;
@@ -46,30 +77,7 @@ export declare namespace FormLowCodeReactions {
46
77
  notRequiredField: string[];
47
78
  enabledField: string[];
48
79
  disabledField: string[];
49
- __oppositeBindField: Config;
50
- __oppositeTargetField: Config;
80
+ __oppositeBindField: reactionsConfig;
81
+ __oppositeTargetField: reactionsConfig;
51
82
  }>;
52
83
  }
53
- export declare type FormWordbook = Partial<{
54
- level_num: number;
55
- id: string;
56
- name: string;
57
- render_key: string[];
58
- search_key: string[];
59
- value_key: string;
60
- queryParams: string[];
61
- primary_key: string;
62
- type: string;
63
- level_key: string;
64
- link_key: string;
65
- link_key_split: string;
66
- show_key: string[] | string;
67
- conObj: AnyObject[];
68
- conObjFirstLevel: AnyObject[];
69
- setting: Partial<{
70
- cascading: {
71
- 'form.name': string;
72
- value: string;
73
- }[];
74
- }>;
75
- }>;
@@ -1,16 +1,16 @@
1
- import { AnyObject, BindEventSettingItem, FormLowCodeReactions, FormOperationalConfig, LOW_CODE_EVENT_TYPE, LOW_CODE_VALUE_RELATION } from '../../../es/shared/types';
1
+ import { AnyObject, LowCodeTypes } from '../../../es/shared/types';
2
2
  import { MaybeRef } from '@vueuse/core';
3
3
  export declare function isMatchLowCodeCondition(value: unknown, condition: {
4
- con: LOW_CODE_VALUE_RELATION;
4
+ con: LowCodeTypes.VALUE_RELATION;
5
5
  value: unknown;
6
- }, overwriteCompareMap?: BindEventSettingItem['compareMap']): boolean;
7
- export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: FormLowCodeReactions.Config): any;
8
- declare function handleFieldTriggerSetValue(bindEventSetting: BindEventSettingItem, { getter, setter }: {
6
+ }, overwriteCompareMap?: LowCodeTypes.BindEventSettingItem['compareMap']): boolean;
7
+ export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionsConfig): any;
8
+ declare function handleFieldTriggerSetValue(bindEventSetting: LowCodeTypes.BindEventSettingItem, { getter, setter }: {
9
9
  setter: (key: string, value: unknown) => void;
10
10
  getter: (key: string) => unknown;
11
11
  }): void;
12
- export declare function getBindEventSettingTrigger(key: LOW_CODE_EVENT_TYPE): typeof handleFieldTriggerSetValue;
13
- export declare function getOperationalFormHandler(operationalForm: MaybeRef<FormOperationalConfig[] | undefined>, getter: (field: string) => unknown, setter: (field: string, value: unknown) => void): {
12
+ export declare function getBindEventSettingTrigger(key: LowCodeTypes.EVENT_TYPE): typeof handleFieldTriggerSetValue;
13
+ export declare function getOperationalFormHandler(operationalForm: MaybeRef<LowCodeTypes.operationalConfig[] | undefined>, getter: (field: string) => unknown, setter: (field: string, value: unknown) => void): {
14
14
  operationalFormHandler: (field: string) => void;
15
15
  triggerAllOperationalFormHandler: () => void;
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.54-beta.3",
3
+ "version": "3.1.54-beta.5",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -63,5 +63,5 @@
63
63
  "iOS 7",
64
64
  "last 3 iOS versions"
65
65
  ],
66
- "gitHead": "e7181d09c84223705700163272c36f86e8c4a6ab"
66
+ "gitHead": "07af753e5a6740666646229c41a9afc693a1607a"
67
67
  }