cnhis-design-vue 3.2.16-beta.13 → 3.2.16-beta.17

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/classification/src/components/table-modal/index.vue.d.ts +3 -0
  2. package/es/components/expand-field/index.d.ts +28 -1
  3. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +28 -1
  4. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +28 -1
  5. package/es/components/expand-field/src/components/form.vue.d.ts +28 -1
  6. package/es/components/expand-field/src/index.vue.d.ts +28 -1
  7. package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
  8. package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
  9. package/es/components/field-set/src/FieldSet.vue.d.ts +5 -5
  10. package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
  11. package/es/components/form-config/index.d.ts +147 -24
  12. package/es/components/form-config/src/FormConfig.vue.d.ts +147 -24
  13. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  14. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -0
  15. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +210 -95
  16. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
  17. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  18. package/es/components/form-render/src/components/renderer/text.js +1 -1
  19. package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
  20. package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
  21. package/es/components/iho-chat/index.d.ts +1 -1
  22. package/es/components/iho-chat/src/Index.vue.d.ts +1 -1
  23. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  24. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  25. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  26. package/es/components/select-person/index.d.ts +28 -1
  27. package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -1
  28. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  29. package/es/components/select-person/src/index.vue.d.ts +28 -1
  30. package/es/components/select-person/src/index.vue2.js +1 -1
  31. package/es/components/shortcut-setter/index.d.ts +2 -0
  32. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
  33. package/es/env.d.ts +25 -25
  34. package/es/shared/package.json.js +1 -1
  35. package/package.json +2 -2
@@ -110,6 +110,9 @@ declare const _default: import("vue").DefineComponent<{
110
110
  uncheckableField: {
111
111
  type: StringConstructor;
112
112
  };
113
+ onlyForwardCascade: {
114
+ type: BooleanConstructor;
115
+ };
113
116
  }, {
114
117
  $attrs: {
115
118
  [x: string]: unknown;
@@ -205,6 +208,9 @@ declare const _default: import("vue").DefineComponent<{
205
208
  uncheckableField: {
206
209
  type: StringConstructor;
207
210
  };
211
+ onlyForwardCascade: {
212
+ type: BooleanConstructor;
213
+ };
208
214
  }>> & {
209
215
  onCheck?: ((...args: any[]) => any) | undefined;
210
216
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -659,6 +665,9 @@ declare const _default: import("vue").DefineComponent<{
659
665
  uncheckableField: {
660
666
  type: StringConstructor;
661
667
  };
668
+ onlyForwardCascade: {
669
+ type: BooleanConstructor;
670
+ };
662
671
  }, {
663
672
  searchFilterBase: {
664
673
  isOpen: boolean;
@@ -763,6 +772,9 @@ declare const _default: import("vue").DefineComponent<{
763
772
  uncheckableField: {
764
773
  type: StringConstructor;
765
774
  };
775
+ onlyForwardCascade: {
776
+ type: BooleanConstructor;
777
+ };
766
778
  }>> & {}>>;
767
779
  emit: any;
768
780
  keyword: import("vue").Ref<string>;
@@ -847,7 +859,11 @@ declare const _default: import("vue").DefineComponent<{
847
859
  key: string | number;
848
860
  }[];
849
861
  setTagData: (tree: TreeOption[]) => void;
850
- updateTreeChecked: (keys: (string | number)[]) => void;
862
+ getFlattenKeys: (tree: TreeOption[]) => any[];
863
+ updateTreeChecked: (keys: (string | number)[], _: any, meta: {
864
+ node: TreeOption | null;
865
+ action: "check" | "uncheck";
866
+ }) => void;
851
867
  setCheckedAll: () => void;
852
868
  clearAll: () => void;
853
869
  closeTag: (tag: {
@@ -1189,6 +1205,9 @@ declare const _default: import("vue").DefineComponent<{
1189
1205
  uncheckableField: {
1190
1206
  type: StringConstructor;
1191
1207
  };
1208
+ onlyForwardCascade: {
1209
+ type: BooleanConstructor;
1210
+ };
1192
1211
  }>>, {
1193
1212
  data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[];
1194
1213
  defaultList: ((string | number) | {
@@ -1221,6 +1240,7 @@ declare const _default: import("vue").DefineComponent<{
1221
1240
  roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[];
1222
1241
  roleFields: Record<string, any>;
1223
1242
  forceShowSelectAll: boolean;
1243
+ onlyForwardCascade: boolean;
1224
1244
  }>>;
1225
1245
  getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1226
1246
  defaultList: {
@@ -1313,6 +1333,9 @@ declare const _default: import("vue").DefineComponent<{
1313
1333
  uncheckableField: {
1314
1334
  type: StringConstructor;
1315
1335
  };
1336
+ onlyForwardCascade: {
1337
+ type: BooleanConstructor;
1338
+ };
1316
1339
  }>> & {
1317
1340
  onCheck?: ((...args: any[]) => any) | undefined;
1318
1341
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -1412,6 +1435,9 @@ declare const _default: import("vue").DefineComponent<{
1412
1435
  uncheckableField: {
1413
1436
  type: StringConstructor;
1414
1437
  };
1438
+ onlyForwardCascade: {
1439
+ type: BooleanConstructor;
1440
+ };
1415
1441
  }>> & {
1416
1442
  onCheck?: ((...args: any[]) => any) | undefined;
1417
1443
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -1437,5 +1463,6 @@ declare const _default: import("vue").DefineComponent<{
1437
1463
  switchTypeData: AnyObject;
1438
1464
  tagProps: AnyObject;
1439
1465
  forceShowSelectAll: boolean;
1466
+ onlyForwardCascade: boolean;
1440
1467
  }>;
1441
1468
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as l,computed as a,provide as o,openBlock as r,createBlock as n,resolveDynamicComponent as d,unref as u,mergeProps as i,withCtx as c,createCommentVNode as p,renderSlot as y,normalizeProps as s,guardReactiveProps as f}from"vue";import{InjectionSelectPersonEmits as h}from"./constants/index.js";import g from"./SelectPersonType.vue.js";import w from"./SelectPerson.vue.js";var v,m,b=e({__name:"index",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.508"))||"输入关键字搜索"},searchButtonText:{type:String,default:(null==(m=window.getLanguageByCode)?void 0:m.call(window,"10010.1.36"))||"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},searchInner:{type:Boolean,default:!1},searchFilter:{type:Object,default:()=>({})},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])},showSelectType:{type:Boolean,default:!1},roleData:{type:Array,default:()=>[]},roleFields:{type:Object,default:()=>({label:"name",key:"id",children:"children"})},switchTypeProps:{type:Array,default:()=>[]},switchTypeData:{type:Object,default:()=>({})},tagProps:{type:Object,default:()=>({})},forceShowSelectAll:{type:Boolean},uncheckableField:{type:String}},emits:["check","checkWithLevel"],setup(e,{expose:v,emit:m}){const b=e,j=t(),S=l(),k=a((()=>{var e;return(null==(e=b.switchTypeProps)?void 0:e.length)>0?g:w})),B=a((()=>Object.assign({},b,j)));o(h,(function(e,...t){m(e,...t)}));return v({getCheckWithLevel:()=>{var e;return null==(e=S.value)?void 0:e.getCheckWithLevel()}}),(e,t)=>(r(),n(d(u(k)),i({ref_key:"selectPersonRef",ref:S},u(B)),{tag:c((t=>[p(" 标签插槽 "),y(e.$slots,"tag",s(f(t)))])),_:3},16))}});export{b as default};
1
+ import{defineComponent as e,useAttrs as t,ref as l,computed as a,provide as o,openBlock as r,createBlock as n,resolveDynamicComponent as d,unref as u,mergeProps as i,withCtx as c,createCommentVNode as p,renderSlot as y,normalizeProps as s,guardReactiveProps as f}from"vue";import{InjectionSelectPersonEmits as h}from"./constants/index.js";import w from"./SelectPersonType.vue.js";import g from"./SelectPerson.vue.js";var v,m,b=e({__name:"index",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.508"))||"输入关键字搜索"},searchButtonText:{type:String,default:(null==(m=window.getLanguageByCode)?void 0:m.call(window,"10010.1.36"))||"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},searchInner:{type:Boolean,default:!1},searchFilter:{type:Object,default:()=>({})},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])},showSelectType:{type:Boolean,default:!1},roleData:{type:Array,default:()=>[]},roleFields:{type:Object,default:()=>({label:"name",key:"id",children:"children"})},switchTypeProps:{type:Array,default:()=>[]},switchTypeData:{type:Object,default:()=>({})},tagProps:{type:Object,default:()=>({})},forceShowSelectAll:{type:Boolean},uncheckableField:{type:String},onlyForwardCascade:{type:Boolean}},emits:["check","checkWithLevel"],setup(e,{expose:v,emit:m}){const b=e,j=t(),B=l(),S=a((()=>{var e;return(null==(e=b.switchTypeProps)?void 0:e.length)>0?w:g})),k=a((()=>Object.assign({},b,j)));o(h,(function(e,...t){m(e,...t)}));return v({getCheckWithLevel:()=>{var e;return null==(e=B.value)?void 0:e.getCheckWithLevel()}}),(e,t)=>(r(),n(d(u(S)),i({ref_key:"selectPersonRef",ref:B},u(k)),{tag:c((t=>[p(" 标签插槽 "),y(e.$slots,"tag",s(f(t)))])),_:3},16))}});export{b as default};
@@ -200,6 +200,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
200
200
  linebarDirection?: "horizontal" | "vertical" | undefined;
201
201
  linebarTextDirection?: "horizontal" | "vertical" | undefined;
202
202
  labelColor?: string | undefined;
203
+ fieldTitleRed?: boolean | import("..").FormCommonState | undefined;
204
+ fieldTitleColor?: string | undefined;
203
205
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
204
206
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
205
207
  lazyRequest?: boolean | undefined;
@@ -203,6 +203,8 @@ declare const _default: import("vue").DefineComponent<{
203
203
  linebarDirection?: "horizontal" | "vertical" | undefined;
204
204
  linebarTextDirection?: "horizontal" | "vertical" | undefined;
205
205
  labelColor?: string | undefined;
206
+ fieldTitleRed?: boolean | import("../../../components/form-render").FormCommonState | undefined;
207
+ fieldTitleColor?: string | undefined;
206
208
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
207
209
  content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
208
210
  lazyRequest?: boolean | undefined;
package/es/env.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv;
10
- }
11
-
12
- declare module '*.vue' {
13
- // @ts-ignore
14
- import type { App, defineComponent } from 'vue';
15
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
- // // const component: DefineComponent<{}, {}, any>
17
- const component: ReturnType<typeof defineComponent> & {
18
- install(app: App): void;
19
- };
20
- // @ts-ignore
21
- export default component;
22
- }
23
-
24
- declare module '*.js';
25
-
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv;
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ // @ts-ignore
14
+ import type { App, defineComponent } from 'vue';
15
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
+ // // const component: DefineComponent<{}, {}, any>
17
+ const component: ReturnType<typeof defineComponent> & {
18
+ install(app: App): void;
19
+ };
20
+ // @ts-ignore
21
+ export default component;
22
+ }
23
+
24
+ declare module '*.js';
25
+
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.2.16-beta.13",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.2.16-beta.13",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.2.16-beta.17",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.2.16-beta.17",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.2.16-beta.13",
3
+ "version": "3.2.16-beta.17",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -72,5 +72,5 @@
72
72
  "iOS 7",
73
73
  "last 3 iOS versions"
74
74
  ],
75
- "gitHead": "812fc56662d88b84bc56cbbb224aab880e6b1e3e"
75
+ "gitHead": "f466e767ffa83328599f76fe65617b4f1a1e69bc"
76
76
  }