cnhis-design-vue 3.1.56-release.2 → 3.1.57-beta.0

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 (45) hide show
  1. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  2. package/es/components/button-print/src/utils/print.d.ts +3 -0
  3. package/es/components/button-print/src/utils/print.js +1 -1
  4. package/es/components/classification/index.d.ts +19 -16
  5. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  6. package/es/components/classification/src/components/set-classification/index.vue.d.ts +0 -15
  7. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -15
  8. package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
  9. package/es/components/classification/src/index.vue.d.ts +45 -38
  10. package/es/components/classification/src/index.vue2.js +1 -1
  11. package/es/components/classification/style/index.css +1 -1
  12. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  13. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
  15. package/es/components/form-config/index.d.ts +9 -7
  16. package/es/components/form-config/src/FormConfig.vue.d.ts +9 -7
  17. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  18. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -0
  19. package/es/components/form-render/src/components/renderer/switch.d.ts +16 -2
  20. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  21. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +1 -1
  22. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  23. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  24. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  25. package/es/components/form-render/src/types/fieldItem.d.ts +3 -8
  26. package/es/components/iho-table/src/constants/index.d.ts +1 -0
  27. package/es/components/iho-table/src/constants/index.js +1 -1
  28. package/es/components/iho-table/src/plugins/index.js +1 -1
  29. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +48 -10
  30. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  31. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.js +1 -1
  32. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/switchRendererPlugin.d.ts +1 -0
  33. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/switchRendererPlugin.js +1 -0
  34. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  35. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  36. package/es/components/iho-table/src/types/index.d.ts +3 -0
  37. package/es/components/index.css +1 -1
  38. package/es/components/shortcut-setter/index.d.ts +1 -1
  39. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  40. package/es/components/table-filter/src/types/index.d.ts +3 -1
  41. package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
  42. package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
  43. package/es/shared/package.json.js +1 -1
  44. package/es/shared/types/business.d.ts +6 -0
  45. package/package.json +2 -2
@@ -182,7 +182,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
182
182
  NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
183
183
  } | undefined;
184
184
  }[] | undefined;
185
- show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
185
+ show_mode?: import("../../shared/types").LowCodeTypes.showModeType | undefined;
186
186
  is_allow_check_mid?: import("..").FormCommonState | undefined;
187
187
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
188
188
  prefix?: string | import("../../shared/types").AnyObject | (() => any) | undefined;
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
185
185
  NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
186
186
  } | undefined;
187
187
  }[] | undefined;
188
- show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
188
+ show_mode?: import("../../../shared/types").LowCodeTypes.showModeType | undefined;
189
189
  is_allow_check_mid?: import("../../../components/form-render").FormCommonState | undefined;
190
190
  allow_check_mid_level?: "1" | "2" | "3" | "4" | undefined;
191
191
  prefix?: string | import("../../../shared/types").AnyObject | (() => any) | undefined;
@@ -64,6 +64,7 @@ export declare type IClassifyListType = {
64
64
  sqlExpression?: string;
65
65
  createdByName?: string;
66
66
  from?: string;
67
+ [key: string]: any;
67
68
  };
68
69
  export declare type IClassifyItemType = {
69
70
  name: string;
@@ -92,11 +93,12 @@ export declare type ISearchConfigType = {
92
93
  };
93
94
  export declare type ITreeDataType = {
94
95
  name: string;
95
- sid?: string;
96
+ sid: string;
96
97
  children: IClassifyListType[];
97
98
  digital?: number;
98
99
  open?: boolean;
99
100
  selected?: boolean;
101
+ [key: string]: any;
100
102
  };
101
103
  export declare type IConditionMapType = {
102
104
  conditionList?: IClassifyListType[];
@@ -11,7 +11,7 @@ export declare function useSelectRenders(props: {
11
11
  showKey: Ref<string | undefined>;
12
12
  valueRef: Ref;
13
13
  }): {
14
- renderLabel: (option: AnyObject) => string | JSX.Element;
14
+ renderLabel: (option: AnyObject) => "" | JSX.Element;
15
15
  renderSelectAll: (onSelectAll: (checked: boolean) => void) => JSX.Element[];
16
16
  renderTag: ({ option, handleClose }: {
17
17
  option: SelectOption;
@@ -1 +1 @@
1
- import{ref as e,createVNode as t,createTextVNode as n}from"vue";import"../../utils/index.js";import{isString as l,isArray as r}from"lodash-es";import{NTooltip as o,NIcon as a,NButton as u,NTag as i}from"naive-ui";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import{searchContentMatcher as s}from"./useSearchContent.js";import{HelpCircleSharp as c}from"@vicons/ionicons5";function p(p,{labelKey:v,valueKey:m,showKey:d,searchContent:f,valueRef:y}){const h=e("");return{renderLabel:function(e){const n=e[v.value];if(!n||!l(n))return"";const r=f.value?s(f.value,n):null,u=r?t("section",null,[r.map(((e,n)=>0!==n&&e?t("span",{style:{color:n%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):n;return e.desc?t("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[u,e.desc?t(o,null,{trigger:()=>t(a,{component:c},null),default:()=>e.desc}):null]):u},renderSelectAll:function(e){return[t(u,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!0)},{default:()=>[n("全选")]}),t(u,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!1)},{default:()=>[n("清空")]})]},renderTag:function({option:e,handleClose:n}){var l;const o=null!=(l=d.value&&e[d.value])?l:e[v.value];if(!p.multiple)return h.value=o,o;h.value="";const a=r(y.value)?y.value.findIndex((t=>t===e[m.value])):-1;return p.deletable?t(i,{closable:!0,onClose:e=>{e.stopPropagation(),n()}},{default:()=>t("span",{title:o},[o])}):`${o} ${a>=0&&a===y.value.length-1?"":";"}`},titleRef:h}}export{p as useSelectRenders};
1
+ import{ref as e,createVNode as t,createTextVNode as l}from"vue";import"../../utils/index.js";import{isString as n,isArray as r}from"lodash-es";import{NTooltip as o,NIcon as a,NButton as i,NTag as u}from"naive-ui";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import{searchContentMatcher as s}from"./useSearchContent.js";import{HelpCircleSharp as c}from"@vicons/ionicons5";function p(p,{labelKey:v,valueKey:m,showKey:d,searchContent:f,valueRef:y}){const h=e("");return{renderLabel:function(e){var l;const r=e[v.value];if(!r||!n(r))return"";const i=null!=(l=e.title)?l:r,u=f.value?s(f.value,r):null,p=u?t("section",{title:i},[u.map(((e,l)=>0!==l&&e?t("span",{style:{color:l%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):t("span",{title:i},[r]);return e.desc?t("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[p,e.desc?t(o,null,{trigger:()=>t(a,{component:c},null),default:()=>e.desc}):null]):p},renderSelectAll:function(e){return[t(i,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!0)},{default:()=>[l("全选")]}),t(i,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!1)},{default:()=>[l("清空")]})]},renderTag:function({option:e,handleClose:l}){var n;const o=null!=(n=d.value&&e[d.value])?n:e[v.value];if(!p.multiple)return h.value=o,o;h.value="";const a=r(y.value)?y.value.findIndex((t=>t===e[m.value])):-1;return p.deletable?t(u,{closable:!0,onClose:e=>{e.stopPropagation(),l()}},{default:()=>t("span",{title:o},[o])}):`${o} ${a>=0&&a===y.value.length-1?"":";"}`},titleRef:h}}export{p as useSelectRenders};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",s="3.1.56-release.2",i="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.56-release.2",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.57-beta.0",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.57-beta.0",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};
@@ -70,6 +70,7 @@ export declare namespace LowCodeTypes {
70
70
  conObj: reactionsConObj[];
71
71
  } & Partial<{
72
72
  compareMap: BindEventSettingItem['compareMap'];
73
+ isRestoreDefault: boolean;
73
74
  sqlExpression: string;
74
75
  showField: string[];
75
76
  hideField: string[];
@@ -80,4 +81,9 @@ export declare namespace LowCodeTypes {
80
81
  __oppositeBindField: reactionsConfig;
81
82
  __oppositeTargetField: reactionsConfig;
82
83
  }>;
84
+ type switchProperty = {
85
+ value?: any;
86
+ describe?: string;
87
+ };
88
+ type showModeType = 'DROPDOWN' | 'H_TILE' | 'V_TILE' | 'TILE' | 'SWITCH' | 'CHECKBOX';
83
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.56-release.2",
3
+ "version": "3.1.57-beta.0",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -64,5 +64,5 @@
64
64
  "iOS 7",
65
65
  "last 3 iOS versions"
66
66
  ],
67
- "gitHead": "6b840f7365a4e4438887644a42758fabe9f8c810"
67
+ "gitHead": "e0088021b3f3df26920e85b1586eeca21ff80200"
68
68
  }