cnhis-design-vue 3.1.50-beta.11 → 3.1.50-beta.12

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 (35) hide show
  1. package/es/components/form-config/index.d.ts +186 -6
  2. package/es/components/form-config/src/FormConfig.vue.d.ts +186 -6
  3. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +90 -3
  4. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +93 -3
  5. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  6. package/es/components/form-render/index.d.ts +90 -3
  7. package/es/components/form-render/src/FormRender.vue.d.ts +90 -3
  8. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  9. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +90 -3
  10. package/es/components/form-render/src/components/renderer/select.d.ts +3 -0
  11. package/es/components/form-render/src/components/renderer/select.js +1 -1
  12. package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -5
  13. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  14. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +173 -4
  15. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  16. package/es/components/form-render/src/types/index.d.ts +1 -0
  17. package/es/components/iho-table/index.d.ts +26 -0
  18. package/es/components/iho-table/src/IhoTable.vue.d.ts +26 -0
  19. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
  20. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  21. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
  22. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  23. package/es/components/iho-table/src/types/index.d.ts +4 -0
  24. package/es/components/info-header/index.d.ts +270 -9
  25. package/es/components/info-header/src/InfoHeader.vue.d.ts +270 -9
  26. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +86 -3
  27. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +86 -3
  28. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +176 -6
  29. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +90 -3
  30. package/es/components/shortcut-setter/index.d.ts +90 -3
  31. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +90 -3
  32. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +28 -0
  33. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  34. package/es/shared/package.json.js +1 -1
  35. package/package.json +2 -2
@@ -3,6 +3,25 @@ export declare const WidgetCfgMaps: Map<string, {
3
3
  component: any;
4
4
  props: {
5
5
  clearable: boolean;
6
+ allowInput?: undefined;
7
+ filterable?: undefined;
8
+ multiple?: undefined;
9
+ maxTagCount?: undefined;
10
+ type?: undefined;
11
+ valueFormat?: undefined;
12
+ };
13
+ eventsBySearch: {
14
+ name: string;
15
+ handler(e: KeyboardEvent, search: funcVoid): void;
16
+ }[];
17
+ handlerProps(props: any, { title }?: any): any;
18
+ setDefaultValue: (defaultValue: any) => any;
19
+ style?: undefined;
20
+ } | {
21
+ component: any;
22
+ props: {
23
+ clearable: boolean;
24
+ allowInput: (value: string) => boolean;
6
25
  filterable?: undefined;
7
26
  multiple?: undefined;
8
27
  maxTagCount?: undefined;
@@ -60,6 +79,7 @@ export declare const WidgetCfgMaps: Map<string, {
60
79
  filterable: boolean;
61
80
  multiple: boolean;
62
81
  maxTagCount: string;
82
+ allowInput?: undefined;
63
83
  type?: undefined;
64
84
  valueFormat?: undefined;
65
85
  };
@@ -301,6 +321,7 @@ export declare const WidgetCfgMaps: Map<string, {
301
321
  filterable: boolean;
302
322
  multiple: boolean;
303
323
  maxTagCount: string;
324
+ allowInput?: undefined;
304
325
  type?: undefined;
305
326
  valueFormat?: undefined;
306
327
  };
@@ -544,6 +565,7 @@ export declare const WidgetCfgMaps: Map<string, {
544
565
  type: string;
545
566
  clearable: boolean;
546
567
  valueFormat: string;
568
+ allowInput?: undefined;
547
569
  filterable?: undefined;
548
570
  multiple?: undefined;
549
571
  maxTagCount?: undefined;
@@ -695,6 +717,7 @@ export declare const WidgetCfgMaps: Map<string, {
695
717
  type: string;
696
718
  clearable: boolean;
697
719
  valueFormat: string;
720
+ allowInput?: undefined;
698
721
  filterable?: undefined;
699
722
  multiple?: undefined;
700
723
  maxTagCount?: undefined;
@@ -959,6 +982,7 @@ export declare const WidgetCfgMaps: Map<string, {
959
982
  type: string;
960
983
  clearable: boolean;
961
984
  valueFormat: string;
985
+ allowInput?: undefined;
962
986
  filterable?: undefined;
963
987
  multiple?: undefined;
964
988
  maxTagCount?: undefined;
@@ -1114,6 +1138,7 @@ export declare const WidgetCfgMaps: Map<string, {
1114
1138
  type: string;
1115
1139
  clearable: boolean;
1116
1140
  valueFormat: string;
1141
+ allowInput?: undefined;
1117
1142
  filterable?: undefined;
1118
1143
  multiple?: undefined;
1119
1144
  maxTagCount?: undefined;
@@ -1226,6 +1251,7 @@ export declare const WidgetCfgMaps: Map<string, {
1226
1251
  }>;
1227
1252
  props: {
1228
1253
  clearable?: undefined;
1254
+ allowInput?: undefined;
1229
1255
  filterable?: undefined;
1230
1256
  multiple?: undefined;
1231
1257
  maxTagCount?: undefined;
@@ -1301,6 +1327,7 @@ export declare const WidgetCfgMaps: Map<string, {
1301
1327
  }>;
1302
1328
  props: {
1303
1329
  clearable?: undefined;
1330
+ allowInput?: undefined;
1304
1331
  filterable?: undefined;
1305
1332
  multiple?: undefined;
1306
1333
  maxTagCount?: undefined;
@@ -1362,6 +1389,7 @@ export declare const WidgetCfgMaps: Map<string, {
1362
1389
  filterable: boolean;
1363
1390
  multiple: boolean;
1364
1391
  maxTagCount: string;
1392
+ allowInput?: undefined;
1365
1393
  type?: undefined;
1366
1394
  valueFormat?: undefined;
1367
1395
  };
@@ -1 +1 @@
1
- import{WidgetTypeEnums as e,WidgetValEnums as l}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as r}from"./enums.js";import{NInputNumber as a,NInput as o}from"naive-ui";import{InputNumberGroup as n,Select as p,SelectDynamic as s,DateInner as i,DateOut as u,DateRangeInner as c,DateRangeOut as m,CheckboxGroup as d,LabelInner as y,LabelOut as h}from"./components/index.js";import{presetValToTimestamp as E,formatDateRangeInfo as f}from"./helpers/presetValToTimestamp.js";import{setSelectDynamicValue as M}from"./helpers/setDefaultValue.js";const D=e=>null==e?null:e,T=new Map([[e.INPUT_NUMBER,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:D}],[e.INPUTNUMBER_RANGE,{component:n,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l,filterExplicit:t}={})=>({...e,startPlaceholder:1===t?`起始${l}`:"最小值",endPlaceholder:1===t?`截止${l}`:"最大值"}),setDefaultValue:D}],[e.INPUT,{component:o,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:D}],[e.SELECT,{component:p,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:r}=t;r&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const r={...e,placeholder:`请选择${t}`};return l&&(r.multiple=!0),r},setDefaultValue:(e,t,r)=>t&&"boolean"==typeof(null==r?void 0:r.multiple)?r.multiple?[l.WHOLE]:l.WHOLE:e}],[e.SELECTDYNAMIC,{component:s,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:r}=t;r&&l()}}],handlerProps(e,l={}){const{multiple:t,title:r}=l,a={...e,placeholder:`请选择${r}`};return t&&(a.multiple=!0),a},setDefaultValue:async(e,l,t)=>l&&(null==t?void 0:t._cfg)?await M(null==t?void 0:t._cfg):e}],[e.DATE,{component:i,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:D}],[e.DATE_OUT,{component:u,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?E(l,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:c,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:D}],[e.DATE_RANGE_OUT,{component:m,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,t)=>l&&l!==r.CUSTOM&&(null==t?void 0:t.optSetting)?f(l,"YYYY-MM-DD",t.optSetting):e}],[e.DATE_TIME,{component:i,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:D}],[e.DATETIME_OUT,{component:u,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?E(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:c,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:D}],[e.DATETIME_RANGE_OUT,{component:m,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,r)=>l&&l!==t.CUSTOM&&(null==r?void 0:r.optSetting)?f(l,"YYYY-MM-DD HH:mm:ss",r.optSetting):e}],[e.CHECKBOX_GROUP,{component:d,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const r={...e,multiple:t};return Array.isArray(l)&&(r.options=l.map((({value:e,label:l})=>({value:e,label:l})))),r},setDefaultValue:D}],[e.LABEL,{component:y,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:h,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,l={}){const{multiple:t,title:r}=l,a={...e,placeholder:`请选择${r}`};return t&&(a.multiple=!0),a},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}]]);export{T as WidgetCfgMaps};
1
+ import{WidgetTypeEnums as e,WidgetValEnums as l}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as r}from"./enums.js";import{NInputNumber as a,NInput as o}from"naive-ui";import{InputNumberGroup as n,Select as p,SelectDynamic as s,DateInner as i,DateOut as u,DateRangeInner as c,DateRangeOut as m,CheckboxGroup as d,LabelInner as y,LabelOut as h}from"./components/index.js";import{presetValToTimestamp as E,formatDateRangeInfo as f}from"./helpers/presetValToTimestamp.js";import{setSelectDynamicValue as M}from"./helpers/setDefaultValue.js";const D=e=>null==e?null:e,T=new Map([[e.INPUT_NUMBER,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:D}],[e.INPUTNUMBER_RANGE,{component:n,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l,filterExplicit:t}={})=>({...e,startPlaceholder:1===t?`起始${l}`:"最小值",endPlaceholder:1===t?`截止${l}`:"最大值"}),setDefaultValue:D}],[e.INPUT,{component:o,props:{clearable:!0,allowInput:e=>!e.startsWith(" ")&&!e.endsWith(" ")},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:D}],[e.SELECT,{component:p,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:r}=t;r&&l()}}],handlerProps(e,{multiple:l,title:t}={}){const r={...e,placeholder:`请选择${t}`};return l&&(r.multiple=!0),r},setDefaultValue:(e,t,r)=>t&&"boolean"==typeof(null==r?void 0:r.multiple)?r.multiple?[l.WHOLE]:l.WHOLE:e}],[e.SELECTDYNAMIC,{component:s,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:r}=t;r&&l()}}],handlerProps(e,l={}){const{multiple:t,title:r}=l,a={...e,placeholder:`请选择${r}`};return t&&(a.multiple=!0),a},setDefaultValue:async(e,l,t)=>l&&(null==t?void 0:t._cfg)?await M(null==t?void 0:t._cfg):e}],[e.DATE,{component:i,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:D}],[e.DATE_OUT,{component:u,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?E(l,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:c,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:D}],[e.DATE_RANGE_OUT,{component:m,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,t)=>l&&l!==r.CUSTOM&&(null==t?void 0:t.optSetting)?f(l,"YYYY-MM-DD",t.optSetting):e}],[e.DATE_TIME,{component:i,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:D}],[e.DATETIME_OUT,{component:u,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t}=l;return{...e,placeholder:`请选择${t}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?E(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:c,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:D}],[e.DATETIME_RANGE_OUT,{component:m,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,l={}){const{title:t,filterExplicit:r}=l;return{...e,filterExplicit:r,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}},setDefaultValue:(e,l,r)=>l&&l!==t.CUSTOM&&(null==r?void 0:r.optSetting)?f(l,"YYYY-MM-DD HH:mm:ss",r.optSetting):e}],[e.CHECKBOX_GROUP,{component:d,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const r={...e,multiple:t};return Array.isArray(l)&&(r.options=l.map((({value:e,label:l})=>({value:e,label:l})))),r},setDefaultValue:D}],[e.LABEL,{component:y,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:h,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,l={}){const{multiple:t,title:r}=l,a={...e,placeholder:`请选择${r}`};return t&&(a.multiple=!0),a},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}]]);export{T as WidgetCfgMaps};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.50-beta.11",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.50-beta.11",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.50-beta.12",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.50-beta.12",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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.50-beta.11",
3
+ "version": "3.1.50-beta.12",
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": "2cbd4010d10b199c42d23f31ba12a42ff3f5fad8"
66
+ "gitHead": "a8f7d7cdca3113620c2a7b0dbaf062673dfc51cc"
67
67
  }