cnhis-design-vue 3.1.46-beta.35 → 3.1.46-beta.36

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 (39) hide show
  1. package/es/components/form-config/index.d.ts +51 -7
  2. package/es/components/form-config/src/FormConfig.vue.d.ts +51 -7
  3. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
  4. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +22 -3
  5. package/es/components/form-render/index.d.ts +1 -0
  6. package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
  7. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  8. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
  9. package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +14 -2
  10. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +28 -4
  11. package/es/components/form-render/src/components/renderer/select.d.ts +14 -2
  12. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  13. package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +5 -0
  14. package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -0
  15. package/es/components/form-render/src/types/fieldItem.d.ts +7 -1
  16. package/es/components/info-header/index.d.ts +2 -0
  17. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
  18. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
  19. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
  20. package/es/components/shortcut-setter/index.d.ts +8 -1
  21. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -1
  22. package/es/shared/package.json.js +1 -1
  23. package/es/shared/utils/tapableLess.d.ts +28 -0
  24. package/es/shared/utils/tapableLess.js +1 -0
  25. package/package.json +2 -2
  26. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -77
  27. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +0 -93
  28. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
  29. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +0 -3
  30. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  31. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
  32. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
  33. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +0 -3
  34. package/es/components/iho-table/src/utils/dist/index.d.ts +0 -44
  35. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +0 -36
  36. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +0 -36
  37. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +0 -82
  38. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +0 -57
  39. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +0 -57
@@ -42,15 +42,21 @@ export declare const SELECT: import("vue").DefineComponent<{
42
42
  name: string;
43
43
  render_key: string[];
44
44
  search_key: string[];
45
+ value_key: string;
45
46
  primary_key: string;
46
47
  type: string;
47
- value_key: string;
48
48
  level_key: string;
49
49
  link_key: string;
50
50
  link_key_split: string;
51
51
  show_key: string[];
52
52
  conObj: AnyObject[];
53
53
  conObjFirstLevel: AnyObject[];
54
+ setting: Partial<{
55
+ cascading: {
56
+ 'form.name': string;
57
+ value: string;
58
+ }[];
59
+ }>;
54
60
  }>>;
55
61
  };
56
62
  recommend: {
@@ -117,15 +123,21 @@ export declare const SELECT: import("vue").DefineComponent<{
117
123
  name: string;
118
124
  render_key: string[];
119
125
  search_key: string[];
126
+ value_key: string;
120
127
  primary_key: string;
121
128
  type: string;
122
- value_key: string;
123
129
  level_key: string;
124
130
  link_key: string;
125
131
  link_key_split: string;
126
132
  show_key: string[];
127
133
  conObj: AnyObject[];
128
134
  conObjFirstLevel: AnyObject[];
135
+ setting: Partial<{
136
+ cascading: {
137
+ 'form.name': string;
138
+ value: string;
139
+ }[];
140
+ }>;
129
141
  }>>;
130
142
  };
131
143
  recommend: {
@@ -1 +1 @@
1
- import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as r,formRenderLog as i}from"../utils/index.js";import{useFieldNormalize as s}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as l}from"./useFormValidator.js";import{transformDateFormat as c}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function d(d){const{createValidatorSchema:u}=l(),x=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=u(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},f=e=>{var o;const t=x(e);e.urlConfig?function(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig"])})}(t,e):e.autograph&&m(t,e);const i=!!e.__multiple;return Object.assign(t["x-component-props"],{multiple:i,options:e.option||(null==(o=e.componentProps)?void 0:o.options),allowCreate:"1"===e.free_entry||!!t["x-component-props"].allowCreate,maxTagCount:r(e.multi_select_value),...n(e,["lazyRequest","requestCache"])}),i&&(t.type="array"),t},_=e=>{const o=x(e);return Object.assign(o["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,vertical:e.__vertical}),m(o,e),o},h=e=>{const t=x(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},g=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark}}),b=new Map([["LINEBAR",g],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=x(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=x(e),{decimal_length:t,validate:n}=e;return Object.assign(o["x-component-props"],{precision:null!=t?t:null==n?void 0:n.decimal_length,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",f],["REMOTE_SEARCH",f],["DATE",e=>{const o=x(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:c(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),o}],["SEARCH_CASCADER",e=>{var o;const t=x(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=x(e);return o.type="array",!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",_],["CHECKBOX",_],["SWITCH",e=>{const o=x(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close}),o}],["SLIDER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{step:r(e.step_length),max:r(e.max_length),min:r(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=x(e);Array.isArray(e.properties)&&i("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?C(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),y=e=>{if(e.suffixConfig)return v(e);return(b.get(e.html_type)||h)(e)},v=o=>{if(!o.suffixConfig)return y(o);const t=e(o.suffixConfig),n=[{...o,is_show:"1",hide_title:"1",suffixConfig:void 0}].concat(t.map((e=>({...e,hide_title:"1",is_show:"1"})))),r=x(o);return Object.assign(r,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:2*(o.elem_width||3)},"x-decorator-props":{...r["x-decorator-props"],showFeedback:!1,suffixFields:n.map((e=>e.val_key))},properties:C(n)}),r},{FieldNormalizeWaterfallHook:O}=s();function C(o){let n=null;return o.reduce(((e,o,s)=>{var a;const p=null==(a=(o=O.call(t(o))).validate)?void 0:a.obj_type;return p&&d&&d.collect(p,t(o)),"LINEBAR"===o.html_type?(e[i(o)]=r(g(o),s),n=e[i(o)].properties={}):n?n[i(o)]=r(y(o),s):(n=null,e[i(o)]=r(y(o),s)),e}),{});function r(e,o){return e["x-index"]=o,e}function i(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:C}}export{d as useFieldListAdaptor};
1
+ import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as r,formRenderLog as i}from"../utils/index.js";import{useFieldNormalize as s}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as l}from"./useFormValidator.js";import{transformDateFormat as c}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function d(d){const{createValidatorSchema:u}=l(),x=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=u(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},f=e=>{var o;const t=x(e);e.urlConfig?function(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig","wordbook"])})}(t,e):e.autograph&&m(t,e);const i=!!e.__multiple;return Object.assign(t["x-component-props"],{multiple:i,options:e.option||(null==(o=e.componentProps)?void 0:o.options),allowCreate:"1"===e.free_entry||!!t["x-component-props"].allowCreate,maxTagCount:r(e.multi_select_value),...n(e,["lazyRequest","requestCache"])}),i&&(t.type="array"),t},_=e=>{const o=x(e);return Object.assign(o["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,vertical:e.__vertical}),m(o,e),o},h=e=>{const t=x(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},g=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark}}),b=new Map([["LINEBAR",g],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=x(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=x(e),{decimal_length:t,validate:n}=e;return Object.assign(o["x-component-props"],{precision:null!=t?t:null==n?void 0:n.decimal_length,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",f],["REMOTE_SEARCH",f],["DATE",e=>{const o=x(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:c(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),o}],["SEARCH_CASCADER",e=>{var o;const t=x(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=x(e);return o.type="array",!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",_],["CHECKBOX",_],["SWITCH",e=>{const o=x(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close}),o}],["SLIDER",e=>{const o=x(e);return Object.assign(o["x-component-props"],{step:r(e.step_length),max:r(e.max_length),min:r(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=x(e);Array.isArray(e.properties)&&i("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?C(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),y=e=>{if(e.suffixConfig)return v(e);return(b.get(e.html_type)||h)(e)},v=o=>{if(!o.suffixConfig)return y(o);const t=e(o.suffixConfig),n=[{...o,is_show:"1",hide_title:"1",suffixConfig:void 0}].concat(t.map((e=>({...e,hide_title:"1",is_show:"1"})))),r=x(o);return Object.assign(r,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:2*(o.elem_width||3)},"x-decorator-props":{...r["x-decorator-props"],showFeedback:!1,suffixFields:n.map((e=>e.val_key))},properties:C(n)}),r},{FieldNormalizeWaterfallHook:O}=s();function C(o){let n=null;return o.reduce(((e,o,s)=>{var a;const p=null==(a=(o=O.call(t(o))).validate)?void 0:a.obj_type;return p&&d&&d.collect(p,t(o)),"LINEBAR"===o.html_type?(e[i(o)]=r(g(o),s),n=e[i(o)].properties={}):n?n[i(o)]=r(y(o),s):(n=null,e[i(o)]=r(y(o),s)),e}),{});function r(e,o){return e["x-index"]=o,e}function i(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:C}}export{d as useFieldListAdaptor};
@@ -0,0 +1,5 @@
1
+ import { Form } from '@formily/core';
2
+ import { ContextCollector } from '../../../../../es/components/form-render';
3
+ export declare function useWordbookSetting(formModel: Form, changeContextCollector: ContextCollector): {
4
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
5
+ };
@@ -0,0 +1 @@
1
+ import{isField as n}from"@formily/core";function t(t,o){return{wordbookSettingHandler:function(r,e){var i,l;const u=t.query(r).take();if(!n(u))return;const c=function(n){var t,o;return null==(o=null==(t=n.decoratorProps)?void 0:t.fieldItem)?void 0:o.wordbook}(u);(null==(l=null==(i=null==c?void 0:c.setting)?void 0:i.cascading)?void 0:l.length)&&c.setting.cascading.forEach((i=>{var l;const u=function(n,t){return Object.values(n.fields).find((n=>n.title===t))}(t,i["form.name"]);if(!u||!n(u))return;const c=null==(l=o.getContext(r,e))?void 0:l.currentOption;c&&u.setValue(c[i.value])}))}}}export{t as useWordbookSetting};
@@ -78,15 +78,21 @@ export declare type FormWordbook = Partial<{
78
78
  name: string;
79
79
  render_key: string[];
80
80
  search_key: string[];
81
+ value_key: string;
81
82
  primary_key: string;
82
83
  type: string;
83
- value_key: string;
84
84
  level_key: string;
85
85
  link_key: string;
86
86
  link_key_split: string;
87
87
  show_key: string[];
88
88
  conObj: AnyObject[];
89
89
  conObjFirstLevel: AnyObject[];
90
+ setting: Partial<{
91
+ cascading: {
92
+ 'form.name': string;
93
+ value: string;
94
+ }[];
95
+ }>;
90
96
  }>;
91
97
  export declare type CombinationItemDeletableFn = (itemData: AnyObject, index: number) => boolean;
92
98
  export declare type FieldItem = {
@@ -2802,6 +2802,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
2802
2802
  triggerAllReactionsHandler: () => void;
2803
2803
  operationalFormHandler: (field: string) => void;
2804
2804
  triggerAllOperationalFormHandler: () => void;
2805
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2805
2806
  schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2806
2807
  [key: symbol]: any;
2807
2808
  [key: `x-${string}`]: any;
@@ -3689,6 +3690,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
3689
3690
  triggerAllReactionsHandler: () => void;
3690
3691
  operationalFormHandler: (field: string) => void;
3691
3692
  triggerAllOperationalFormHandler: () => void;
3693
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
3692
3694
  schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
3693
3695
  [key: symbol]: any;
3694
3696
  [key: `x-${string}`]: any;
@@ -2796,6 +2796,7 @@ declare const _default: import("vue").DefineComponent<{
2796
2796
  triggerAllReactionsHandler: () => void;
2797
2797
  operationalFormHandler: (field: string) => void;
2798
2798
  triggerAllOperationalFormHandler: () => void;
2799
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2799
2800
  schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2800
2801
  [key: symbol]: any;
2801
2802
  [key: `x-${string}`]: any;
@@ -3683,6 +3684,7 @@ declare const _default: import("vue").DefineComponent<{
3683
3684
  triggerAllReactionsHandler: () => void;
3684
3685
  operationalFormHandler: (field: string) => void;
3685
3686
  triggerAllOperationalFormHandler: () => void;
3687
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
3686
3688
  schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
3687
3689
  [key: symbol]: any;
3688
3690
  [key: `x-${string}`]: any;
@@ -2369,6 +2369,7 @@ declare const _default: import("vue").DefineComponent<{
2369
2369
  triggerAllReactionsHandler: () => void;
2370
2370
  operationalFormHandler: (field: string) => void;
2371
2371
  triggerAllOperationalFormHandler: () => void;
2372
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2372
2373
  schemaAdaptor: (fieldList: import("../../../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2373
2374
  [key: symbol]: any;
2374
2375
  [key: `x-${string}`]: any;
@@ -381,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
381
381
  triggerAllReactionsHandler: () => void;
382
382
  operationalFormHandler: (field: string) => void;
383
383
  triggerAllOperationalFormHandler: () => void;
384
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
384
385
  schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
385
386
  [key: symbol]: any;
386
387
  [key: `x-${string}`]: any;
@@ -102,15 +102,21 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
102
102
  name?: string | undefined;
103
103
  render_key?: string[] | undefined;
104
104
  search_key?: string[] | undefined;
105
+ value_key?: string | undefined;
105
106
  primary_key?: string | undefined;
106
107
  type?: string | undefined;
107
- value_key?: string | undefined;
108
108
  level_key?: string | undefined;
109
109
  link_key?: string | undefined;
110
110
  link_key_split?: string | undefined;
111
111
  show_key?: string[] | undefined;
112
112
  conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
113
113
  conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
114
+ setting?: {
115
+ cascading?: {
116
+ 'form.name': string;
117
+ value: string;
118
+ }[] | undefined;
119
+ } | undefined;
114
120
  } | undefined;
115
121
  open?: {
116
122
  value?: any;
@@ -2069,6 +2075,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2069
2075
  triggerAllReactionsHandler: () => void;
2070
2076
  operationalFormHandler: (field: string) => void;
2071
2077
  triggerAllOperationalFormHandler: () => void;
2078
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2072
2079
  schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2073
2080
  [key: symbol]: any;
2074
2081
  [key: `x-${string}`]: any;
@@ -104,15 +104,21 @@ declare const _default: import("vue").DefineComponent<{
104
104
  name?: string | undefined;
105
105
  render_key?: string[] | undefined;
106
106
  search_key?: string[] | undefined;
107
+ value_key?: string | undefined;
107
108
  primary_key?: string | undefined;
108
109
  type?: string | undefined;
109
- value_key?: string | undefined;
110
110
  level_key?: string | undefined;
111
111
  link_key?: string | undefined;
112
112
  link_key_split?: string | undefined;
113
113
  show_key?: string[] | undefined;
114
114
  conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
115
115
  conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
116
+ setting?: {
117
+ cascading?: {
118
+ 'form.name': string;
119
+ value: string;
120
+ }[] | undefined;
121
+ } | undefined;
116
122
  } | undefined;
117
123
  open?: {
118
124
  value?: any;
@@ -2071,6 +2077,7 @@ declare const _default: import("vue").DefineComponent<{
2071
2077
  triggerAllReactionsHandler: () => void;
2072
2078
  operationalFormHandler: (field: string) => void;
2073
2079
  triggerAllOperationalFormHandler: () => void;
2080
+ wordbookSettingHandler: (fieldKey: string, value: unknown) => void;
2074
2081
  schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
2075
2082
  [key: symbol]: any;
2076
2083
  [key: `x-${string}`]: any;
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.46-beta.35",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.46-beta.35",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.46-beta.36",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.46-beta.36",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};
@@ -0,0 +1,28 @@
1
+ declare type PluginName = string | {
2
+ name: string;
3
+ stage: number;
4
+ };
5
+ declare type WithStage<T extends (...p: any[]) => any> = {
6
+ stage: number;
7
+ callback: T;
8
+ };
9
+ declare type ReplaceWithString<T extends any[]> = T extends [infer A, ...infer R] ? [string, ...ReplaceWithString<R>] : T;
10
+ export declare class SyncHook<T extends any[]> {
11
+ private args;
12
+ constructor(args: ReplaceWithString<T>);
13
+ callbackList: WithStage<(...payload: T) => any>[];
14
+ tap(pluginName: PluginName, callback: (...payload: T) => any): void;
15
+ tapPromise(pluginName: PluginName, callback: (...payload: T) => any): void;
16
+ call(...payload: T): void;
17
+ }
18
+ export declare class SyncWaterfallHook<T extends any[]> extends SyncHook<T> {
19
+ callbackList: WithStage<(...payload: T) => T[0]>[];
20
+ call(...payload: T): T[0];
21
+ }
22
+ export declare class AsyncParallelHook<T extends any[]> extends SyncHook<T> {
23
+ promise(...payload: T): void;
24
+ }
25
+ export declare class AsyncSeriesHook<T extends any[]> extends SyncHook<T> {
26
+ promise(...payload: T): Promise<void>;
27
+ }
28
+ export {};
@@ -0,0 +1 @@
1
+ import{isObject as a}from"@vueuse/core";import{isString as s,sortBy as c}from"lodash-es";class l{constructor(a){this.args=a,this.callbackList=[]}tap(l,t){var i;if(s(l))this.callbackList.push({stage:0,callback:t});else{if(!a(l))return;this.callbackList.push({stage:null!=(i=l.stage)?i:0,callback:t})}this.callbackList=c(this.callbackList,(a=>a.stage))}tapPromise(l,t){var i;if(s(l))this.callbackList.push({stage:0,callback:t});else{if(!a(l))return;this.callbackList.push({stage:null!=(i=l.stage)?i:0,callback:t})}this.callbackList=c(this.callbackList,(a=>a.stage))}call(...a){this.callbackList.forEach((({callback:s})=>s(...a)))}}class t extends l{constructor(){super(...arguments),this.callbackList=[]}call(...a){return this.callbackList.reduce(((s,{callback:c})=>c(s,...a.slice(1))),a[0])}}class i extends l{promise(...a){this.callbackList.forEach((({callback:s})=>s(...a)))}}class e extends l{promise(...a){return this.callbackList.reduce((async(s,{callback:c})=>(await s,c(...a))),Promise.resolve())}}export{i as AsyncParallelHook,e as AsyncSeriesHook,l as SyncHook,t as SyncWaterfallHook};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.46-beta.35",
3
+ "version": "3.1.46-beta.36",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "247c78173c660d52856840b0c2e880a41b0a0ce3"
64
+ "gitHead": "f94407fd718a8225939e24bee81bcfc662574cd3"
65
65
  }
@@ -1,77 +0,0 @@
1
- export const __esModule: true;
2
- export const LEVEL_SEARCH_CASCADER: vue_2.DefineComponent<{
3
- options: {
4
- type: ArrayConstructor;
5
- default: () => never[];
6
- };
7
- labelField: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- valueField: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- autograph: {
16
- type: StringConstructor;
17
- required: true;
18
- };
19
- lazyRequest: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- requestCache: {
24
- type: BooleanConstructor;
25
- default: boolean;
26
- };
27
- wordbook: {
28
- type: ObjectConstructor;
29
- required: true;
30
- };
31
- onChange: {};
32
- value: {
33
- type: (ArrayConstructor | StringConstructor)[];
34
- };
35
- }, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
36
- options: {
37
- type: ArrayConstructor;
38
- default: () => never[];
39
- };
40
- labelField: {
41
- type: StringConstructor;
42
- default: string;
43
- };
44
- valueField: {
45
- type: StringConstructor;
46
- default: string;
47
- };
48
- autograph: {
49
- type: StringConstructor;
50
- required: true;
51
- };
52
- lazyRequest: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- requestCache: {
57
- type: BooleanConstructor;
58
- default: boolean;
59
- };
60
- wordbook: {
61
- type: ObjectConstructor;
62
- required: true;
63
- };
64
- onChange: {};
65
- value: {
66
- type: (ArrayConstructor | StringConstructor)[];
67
- };
68
- }>> & {
69
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
70
- }, {
71
- options: unknown[];
72
- labelField: string;
73
- valueField: string;
74
- lazyRequest: boolean;
75
- requestCache: boolean;
76
- }>;
77
- import vue_2 = require("vue");
@@ -1,93 +0,0 @@
1
- export const __esModule: true;
2
- export const SEARCH_CASCADER: vue_2.DefineComponent<{
3
- options: {
4
- type: ArrayConstructor;
5
- default: () => never[];
6
- };
7
- depth: {
8
- type: (NumberConstructor | StringConstructor)[];
9
- };
10
- urlConfig: {
11
- type: ObjectConstructor;
12
- };
13
- lazyRequest: {
14
- type: BooleanConstructor;
15
- default: boolean;
16
- };
17
- requestCache: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- onFocus: {
22
- type: FunctionConstructor;
23
- };
24
- filterable: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- checkStrategy: {
29
- type: StringConstructor;
30
- default: string;
31
- };
32
- labelField: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- valueField: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- onChange: {};
41
- value: {};
42
- }, () => any, any, {}, {}, vue_2.ComponentOptionsMixin, vue_2.ComponentOptionsMixin, "update:value"[], "update:value", vue_2.VNodeProps & vue_2.AllowedComponentProps & vue_2.ComponentCustomProps, Readonly<vue_2.ExtractPropTypes<{
43
- options: {
44
- type: ArrayConstructor;
45
- default: () => never[];
46
- };
47
- depth: {
48
- type: (NumberConstructor | StringConstructor)[];
49
- };
50
- urlConfig: {
51
- type: ObjectConstructor;
52
- };
53
- lazyRequest: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- requestCache: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- onFocus: {
62
- type: FunctionConstructor;
63
- };
64
- filterable: {
65
- type: BooleanConstructor;
66
- default: boolean;
67
- };
68
- checkStrategy: {
69
- type: StringConstructor;
70
- default: string;
71
- };
72
- labelField: {
73
- type: StringConstructor;
74
- default: string;
75
- };
76
- valueField: {
77
- type: StringConstructor;
78
- default: string;
79
- };
80
- onChange: {};
81
- value: {};
82
- }>> & {
83
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
84
- }, {
85
- options: unknown[];
86
- checkStrategy: string;
87
- labelField: string;
88
- valueField: string;
89
- lazyRequest: boolean;
90
- requestCache: boolean;
91
- filterable: boolean;
92
- }>;
93
- import vue_2 = require("vue");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function highLightSetPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../es/components/iho-table");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function filterRenderPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../../es/components/iho-table");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function dateRendererPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../../../../es/components/iho-table");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function defaultRendererPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../../../es/components/iho-table");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function seqRendererPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../../../es/components/iho-table");
@@ -1,3 +0,0 @@
1
- export const __esModule: true;
2
- export function variableHeightRendererPlugin(): iho_table_1.TablePlugin;
3
- import iho_table_1 = require("../../../../../../../es/components/iho-table");
@@ -1,44 +0,0 @@
1
- export const __esModule: true;
2
- export const IhoTableUtils: Readonly<{
3
- getCellType: (lowCodeField: any) => any;
4
- }>;
5
- export const IhoTableRenderHelper: Readonly<{
6
- createDefaultRenderCell: typeof createDefaultRenderCell;
7
- createRenderEdit: typeof createRenderEdit;
8
- isEditableColumn: (config: any, column: any) => any;
9
- hasFilter: (lowCodeField: any) => boolean;
10
- hasDateFiler: (lowCodeField: any) => any;
11
- }>;
12
- export const IhoTableStatusHelper: Readonly<{
13
- isPositive: (value: any) => boolean;
14
- isNegative: (value: any) => boolean;
15
- notPositive: (value: any) => boolean;
16
- notNegative: (value: any) => boolean;
17
- }>;
18
- export function createIhoTableClearActivedInterceptor(type: any, solution: any): (_a: any) => boolean;
19
- export function IhoTableLog(message: any): void;
20
- export function IhoTableWarn(message: any): void;
21
- export function getRowHeight(): number;
22
- export function eventListener2EventName(eventListenerName: any): string;
23
- export function eventName2EventListener(eventName: any): string;
24
- export function useUUIDMap(creator: any, isReactive: any): {
25
- getItemFromUUID: (uuid: any) => any;
26
- setItemFromUUID: (uuid: any, value: any) => void;
27
- removeItemFromUUID: (uuid: any) => void;
28
- };
29
- export function getColumnRenderWidth(column: any, $table: any): any;
30
- export function useIhoTableFormEvent(payload: any): {
31
- emitFormChange: () => void;
32
- emitFormClick: () => void;
33
- emitFormChangeWithParams: (params: any) => void;
34
- emitFormClickWithParams: (params: any) => void;
35
- };
36
- export function getLowCodeFieldFromField(field: any): any;
37
- declare function createDefaultRenderCell(): (_: any, _a: any) => any[];
38
- declare function createRenderEdit(renderer: any): (_a: any, params: any) => any;
39
- export function isTransformTreeType(config: any): boolean;
40
- export function isRichContent(content: any): boolean;
41
- export function parseRichContent(richContent: any): any;
42
- export function parseMergeField(row: any, column: any): any;
43
- export function isCompatibleColumn(field: any): any;
44
- export {};
@@ -1,36 +0,0 @@
1
- export const __esModule: true;
2
- declare const _default: vue_1.DefineComponent<{
3
- form: {
4
- type: ObjectConstructor;
5
- default: () => void;
6
- };
7
- item: {
8
- type: ObjectConstructor;
9
- default: () => void;
10
- };
11
- isLock: {
12
- type: BooleanConstructor;
13
- default: boolean;
14
- };
15
- }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
16
- form: {
17
- type: ObjectConstructor;
18
- default: () => void;
19
- };
20
- item: {
21
- type: ObjectConstructor;
22
- default: () => void;
23
- };
24
- isLock: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- }>> & {
29
- onScaleChange?: ((...args: any[]) => any) | undefined;
30
- }, {
31
- item: Record<string, any>;
32
- isLock: boolean;
33
- form: Record<string, any>;
34
- }>;
35
- export default _default;
36
- import vue_1 = require("vue");
@@ -1,36 +0,0 @@
1
- export const __esModule: true;
2
- declare const _default: vue_1.DefineComponent<{
3
- form: {
4
- type: ObjectConstructor;
5
- default: () => {};
6
- };
7
- item: {
8
- type: ObjectConstructor;
9
- default: () => {};
10
- };
11
- isLock: {
12
- type: BooleanConstructor;
13
- default: boolean;
14
- };
15
- }, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "scaleChange"[], "scaleChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
16
- form: {
17
- type: ObjectConstructor;
18
- default: () => {};
19
- };
20
- item: {
21
- type: ObjectConstructor;
22
- default: () => {};
23
- };
24
- isLock: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- }>> & {
29
- onScaleChange?: ((...args: any[]) => any) | undefined;
30
- }, {
31
- item: Record<string, any>;
32
- isLock: boolean;
33
- form: Record<string, any>;
34
- }>;
35
- export default _default;
36
- import vue_1 = require("vue");