cnhis-design-vue 3.1.41-beta.40 → 3.1.41-beta.42

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 (64) hide show
  1. package/es/components/big-table/index.d.ts +3 -3
  2. package/es/components/big-table/src/BigTable.vue.d.ts +3 -3
  3. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  4. package/es/components/button-print/index.d.ts +4 -4
  5. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  6. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  7. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  8. package/es/components/config-provider/src/interface.d.ts +6 -5
  9. package/es/components/fabric-chart/index.d.ts +2 -2
  10. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  11. package/es/components/field-set/index.d.ts +2 -2
  12. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  13. package/es/components/form-config/index.d.ts +25 -24
  14. package/es/components/form-config/src/FormConfig.vue.d.ts +25 -24
  15. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  16. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
  17. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -12
  18. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +4 -4
  19. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  20. package/es/components/form-config/style/index.css +1 -1
  21. package/es/components/form-render/index.d.ts +12 -12
  22. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  23. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
  24. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  25. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  26. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  27. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  28. package/es/components/iho-table/index.d.ts +2 -0
  29. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  30. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  31. package/es/components/iho-table/src/constants/index.d.ts +4 -4
  32. package/es/components/iho-table/src/constants/index.js +1 -1
  33. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  34. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
  35. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  36. package/es/components/iho-table/src/types/index.d.ts +1 -0
  37. package/es/components/iho-table/src/utils/index.js +1 -1
  38. package/es/components/iho-table/style/index.css +1 -1
  39. package/es/components/index.css +1 -1
  40. package/es/components/info-header/index.d.ts +28 -28
  41. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  42. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  43. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  44. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  45. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  46. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
  47. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
  48. package/es/components/keyboard/index.d.ts +1 -1
  49. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  50. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  51. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  52. package/es/components/select-person/index.d.ts +1 -1
  53. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  54. package/es/components/shortcut-setter/index.d.ts +12 -12
  55. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  56. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  57. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  58. package/es/shared/mixins/useTheme.d.ts +3 -3
  59. package/es/shared/mixins/useTheme.js +1 -1
  60. package/es/shared/utils/index.d.ts +1 -1
  61. package/es/shared/utils/index.js +1 -1
  62. package/package.json +2 -2
  63. package/es/components/iho-table/src/hooks/useTableTheme.d.ts +0 -4
  64. package/es/components/iho-table/src/hooks/useTableTheme.js +0 -1
@@ -313,7 +313,7 @@ declare const _default: import("vue").DefineComponent<{
313
313
  onScroll?: ((...args: any[]) => any) | undefined;
314
314
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
315
315
  }>>;
316
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
316
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
317
317
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
318
318
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
319
319
  formHeight: import("vue").ComputedRef<string>;
@@ -469,32 +469,32 @@ declare const _default: import("vue").DefineComponent<{
469
469
  data: any;
470
470
  loading: boolean;
471
471
  required: boolean;
472
+ hidden: boolean;
473
+ visible: boolean;
474
+ content: any;
475
+ reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
476
+ active: boolean;
477
+ disabled: boolean;
472
478
  value: string;
479
+ display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
473
480
  readonly index: string | number;
474
- disabled: boolean;
475
481
  onFocus: (...args: any[]) => Promise<void>;
476
482
  onBlur: (...args: any[]) => Promise<void>;
477
483
  onInput: (...args: any[]) => Promise<void>;
478
- reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
479
- visible: boolean;
480
484
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
481
485
  validator: import("../../../../../../es/components/form-render").FieldValidator;
482
486
  pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
483
487
  title: string;
484
488
  form: import("../../../../../../es/components/form-render").Form<any>;
485
- content: any;
486
489
  componentProps: Record<string, any>;
487
490
  decoratorProps: Record<string, any>;
488
- display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
489
491
  description: string;
490
492
  readOnly: boolean;
491
493
  editable: boolean;
492
- hidden: boolean;
493
494
  component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
494
495
  decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
495
496
  validating: boolean;
496
497
  submitting: boolean;
497
- active: boolean;
498
498
  visited: boolean;
499
499
  selfModified: boolean;
500
500
  modified: boolean;
@@ -581,7 +581,7 @@ declare const _default: import("vue").DefineComponent<{
581
581
  };
582
582
  readonly disabled: BooleanConstructor;
583
583
  readonly displayDirective: {
584
- readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
584
+ readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
585
585
  readonly default: "if";
586
586
  };
587
587
  readonly closable: {
@@ -606,7 +606,7 @@ declare const _default: import("vue").DefineComponent<{
606
606
  };
607
607
  readonly disabled: BooleanConstructor;
608
608
  readonly displayDirective: {
609
- readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
609
+ readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
610
610
  readonly default: "if";
611
611
  };
612
612
  readonly closable: {
@@ -620,10 +620,10 @@ declare const _default: import("vue").DefineComponent<{
620
620
  }>>, {
621
621
  readonly disabled: boolean;
622
622
  readonly closable: boolean | undefined;
623
- readonly displayDirective: "if" | "show" | "show:lazy";
623
+ readonly displayDirective: "show" | "if" | "show:lazy";
624
624
  }>;
625
625
  NTabs: any;
626
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
626
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
627
627
  fieldList: {
628
628
  type: import("vue").PropType<FieldItem[]>;
629
629
  };
@@ -332,8 +332,8 @@ declare const Keyboard: SFCWithInstall<import("vue").DefineComponent<{
332
332
  onChange?: ((...args: any[]) => any) | undefined;
333
333
  onKeydown?: ((...args: any[]) => any) | undefined;
334
334
  }, {
335
- mode: "number" | "day" | "dose" | "english";
336
335
  drag: boolean;
336
+ mode: "number" | "day" | "dose" | "english";
337
337
  positionInitialValue: import("@vueuse/core").Position;
338
338
  panel: boolean;
339
339
  moveOffset: import("@vueuse/core").Position;
@@ -333,8 +333,8 @@ declare const _default: import("vue").DefineComponent<{
333
333
  onChange?: ((...args: any[]) => any) | undefined;
334
334
  onKeydown?: ((...args: any[]) => any) | undefined;
335
335
  }, {
336
- mode: "number" | "day" | "dose" | "english";
337
336
  drag: boolean;
337
+ mode: "number" | "day" | "dose" | "english";
338
338
  positionInitialValue: Position;
339
339
  panel: boolean;
340
340
  moveOffset: Position;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as c,normalizeClass as f,createElementVNode as p,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as b,NSpace as w,NIcon as V}from"naive-ui";import{Close as x,GitCompareOutline as _,ArrowUndoSharp as O}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as j}from"@vueuse/core";import{useTheme as C}from"../../../shared/mixins/useTheme.js";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=p("span",null,"键盘",-1),N={class:"keys"},R=["onClick"];var U=D(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:D,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=C(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:Z})));o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==X?void 0:X.value)||""}`));const A=l(J.slice()),G=l(null),H=l(null),L=l(null),W=l(),X=function(){B.defaultValue&&(W.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=j(H,{initialValue:B.positionInitialValue,preventDefault:!0,handle:L,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Y(e){"Switch"!==e?U("keydown",e):A.value="Q"===A.value[0]?M.slice():J.slice()}function Z(e){var l,t;null==(t=null==(l=G.value)?void 0:l.setShow)||t.call(l,!1),W.value=e,U("change",e)}return D({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(S,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),c("div",{key:2,class:f(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:H,style:i(n(P))},[r(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:L,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[K,r(n(V),{onClick:t[1]||(t[1]=e=>Y("close")),component:n(x)},null,8,["component"])])),_:1},8,["style"]),p("div",N,[(a(!0),c(m,null,v(A.value,((e,l)=>(a(),c("span",{key:e,class:f(["key"+l]),onClick:l=>Y(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(_)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(V),{key:1,component:n(O)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,R)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:G,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:s((()=>[r(n(b),{value:W.value,"onUpdate:value":t[0]||(t[0]=e=>W.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:Z},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}}),[["__file","Keyboard.vue"]]);export{U as default};
1
+ import{defineComponent as e,ref as l,provide as t,computed as o,unref as n,openBlock as a,createBlock as u,normalizeStyle as i,withCtx as r,createVNode as s,mergeProps as d,createElementBlock as f,normalizeClass as c,createElementVNode as p,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as b,NSpace as w,NIcon as V}from"naive-ui";import{Close as x,GitCompareOutline as _,ArrowUndoSharp as O}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as j}from"@vueuse/core";import{useTheme as C}from"../../../shared/mixins/useTheme.js";import{defaultCssVars as I}from"./constants/index.js";import D from"../../../_virtual/plugin-vue_export-helper.js";const K=p("span",null,"键盘",-1),N={class:"keys"},R=["onClick"];var U=D(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:D,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=C(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(null),L=l(null),W=l(null),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=j(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,n,a;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(a=null==(n=B.moveOffset)?void 0:n.y)?a:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),X.value=e,U("change",e)}return D({select:function(){Q.value=Date.now()}}),(l,t)=>n(T)||e.panel?!n(T)&&e.panel?(a(),u(S,d({key:1},n($),{style:n(P)}),null,16,["style"])):(a(),f("div",{key:2,class:c(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(n(A))},[s(n(w),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:r((()=>[K,s(n(V),{onClick:t[1]||(t[1]=e=>Z("close")),component:n(x)},null,8,["component"])])),_:1},8,["style"]),p("div",N,[(a(!0),f(m,null,v(G.value,((e,l)=>(a(),f("span",{key:e,class:c(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(a(),u(n(V),{key:0,component:n(_)},null,8,["component"])):y("v-if",!0),"Undo"===e?(a(),u(n(V),{key:1,component:n(O)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,R)))),128))])],6)):(a(),u(n(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},n(P)]),"display-directive":"show"},{trigger:r((()=>[s(n(b),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:r((()=>[s(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}}),[["__file","Keyboard.vue"]]);export{U as default};
@@ -68,8 +68,8 @@ declare const _default: import("vue").DefineComponent<{
68
68
  onOnClose?: ((...args: any[]) => any) | undefined;
69
69
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
70
70
  }, {
71
- closable: boolean;
72
71
  visible: boolean;
72
+ closable: boolean;
73
73
  modalWidth: string;
74
74
  modalHeight: string;
75
75
  title: string | Function;
@@ -299,6 +299,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
299
299
  data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
300
300
  [k: string]: unknown;
301
301
  } & import("../../../es/shared/types").AnyObject)[];
302
+ multiple: boolean;
302
303
  defaultList: ((string | number) | {
303
304
  key: string | number;
304
305
  name: string;
@@ -316,7 +317,6 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<{
316
317
  };
317
318
  showCount: boolean;
318
319
  showClear: boolean;
319
- multiple: boolean;
320
320
  queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<void>;
321
321
  queryTreeSearch: (keyWork: string) => Promise<import("../../../es/shared/types").AnyObject[]>;
322
322
  }>>;
@@ -267,6 +267,7 @@ declare const _default: import("vue").DefineComponent<{
267
267
  onCheck?: ((...args: any[]) => any) | undefined;
268
268
  }, {
269
269
  data: ITreeOption[];
270
+ multiple: boolean;
270
271
  defaultList: (IKey | ITag)[];
271
272
  searchPlaceholder: string;
272
273
  searchButtonText: string;
@@ -274,7 +275,6 @@ declare const _default: import("vue").DefineComponent<{
274
275
  wordbookChild: IWordBookChild<ITreeOption>;
275
276
  showCount: boolean;
276
277
  showClear: boolean;
277
- multiple: boolean;
278
278
  queryLoadChildData: (node: TreeOption) => Promise<void>;
279
279
  queryTreeSearch: (keyWork: string) => Promise<Array<AnyObject>>;
280
280
  }>;
@@ -1984,7 +1984,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
1984
1984
  onScroll?: ((...args: any[]) => any) | undefined;
1985
1985
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1986
1986
  }>>;
1987
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
1987
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1988
1988
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
1989
1989
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
1990
1990
  formHeight: import("vue").ComputedRef<string>;
@@ -2140,32 +2140,32 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2140
2140
  data: any;
2141
2141
  loading: boolean;
2142
2142
  required: boolean;
2143
+ hidden: boolean;
2144
+ visible: boolean;
2145
+ content: any;
2146
+ reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
2147
+ active: boolean;
2148
+ disabled: boolean;
2143
2149
  value: string;
2150
+ display: import("@formily/core").FieldDisplayTypes;
2144
2151
  readonly index: string | number;
2145
- disabled: boolean;
2146
2152
  onFocus: (...args: any[]) => Promise<void>;
2147
2153
  onBlur: (...args: any[]) => Promise<void>;
2148
2154
  onInput: (...args: any[]) => Promise<void>;
2149
- reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
2150
- visible: boolean;
2151
2155
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2152
2156
  validator: import("@formily/core").FieldValidator;
2153
2157
  pattern: import("@formily/core").FieldPatternTypes;
2154
2158
  title: string;
2155
2159
  form: import("@formily/core").Form<any>;
2156
- content: any;
2157
2160
  componentProps: Record<string, any>;
2158
2161
  decoratorProps: Record<string, any>;
2159
- display: import("@formily/core").FieldDisplayTypes;
2160
2162
  description: string;
2161
2163
  readOnly: boolean;
2162
2164
  editable: boolean;
2163
- hidden: boolean;
2164
2165
  component: import("@formily/core").FieldComponent<any, any>;
2165
2166
  decorator: import("@formily/core").FieldDecorator<any, any>;
2166
2167
  validating: boolean;
2167
2168
  submitting: boolean;
2168
- active: boolean;
2169
2169
  visited: boolean;
2170
2170
  selfModified: boolean;
2171
2171
  modified: boolean;
@@ -2252,7 +2252,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2252
2252
  };
2253
2253
  readonly disabled: BooleanConstructor;
2254
2254
  readonly displayDirective: {
2255
- readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2255
+ readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2256
2256
  readonly default: "if";
2257
2257
  };
2258
2258
  readonly closable: {
@@ -2277,7 +2277,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2277
2277
  };
2278
2278
  readonly disabled: BooleanConstructor;
2279
2279
  readonly displayDirective: {
2280
- readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2280
+ readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2281
2281
  readonly default: "if";
2282
2282
  };
2283
2283
  readonly closable: {
@@ -2291,10 +2291,10 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2291
2291
  }>>, {
2292
2292
  readonly disabled: boolean;
2293
2293
  readonly closable: boolean | undefined;
2294
- readonly displayDirective: "if" | "show" | "show:lazy";
2294
+ readonly displayDirective: "show" | "if" | "show:lazy";
2295
2295
  }>;
2296
2296
  NTabs: any;
2297
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2297
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2298
2298
  fieldList: {
2299
2299
  type: import("vue").PropType<import("..").FieldItem[]>;
2300
2300
  };
@@ -1986,7 +1986,7 @@ declare const _default: import("vue").DefineComponent<{
1986
1986
  onScroll?: ((...args: any[]) => any) | undefined;
1987
1987
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1988
1988
  }>>;
1989
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
1989
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1990
1990
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
1991
1991
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
1992
1992
  formHeight: import("vue").ComputedRef<string>;
@@ -2142,32 +2142,32 @@ declare const _default: import("vue").DefineComponent<{
2142
2142
  data: any;
2143
2143
  loading: boolean;
2144
2144
  required: boolean;
2145
+ hidden: boolean;
2146
+ visible: boolean;
2147
+ content: any;
2148
+ reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2149
+ active: boolean;
2150
+ disabled: boolean;
2145
2151
  value: string;
2152
+ display: import("../../../../es/components/form-render").FieldDisplayTypes;
2146
2153
  readonly index: string | number;
2147
- disabled: boolean;
2148
2154
  onFocus: (...args: any[]) => Promise<void>;
2149
2155
  onBlur: (...args: any[]) => Promise<void>;
2150
2156
  onInput: (...args: any[]) => Promise<void>;
2151
- reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
2152
- visible: boolean;
2153
2157
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2154
2158
  validator: import("../../../../es/components/form-render").FieldValidator;
2155
2159
  pattern: import("../../../../es/components/form-render").FieldPatternTypes;
2156
2160
  title: string;
2157
2161
  form: import("../../../../es/components/form-render").Form<any>;
2158
- content: any;
2159
2162
  componentProps: Record<string, any>;
2160
2163
  decoratorProps: Record<string, any>;
2161
- display: import("../../../../es/components/form-render").FieldDisplayTypes;
2162
2164
  description: string;
2163
2165
  readOnly: boolean;
2164
2166
  editable: boolean;
2165
- hidden: boolean;
2166
2167
  component: import("../../../../es/components/form-render").FieldComponent<any, any>;
2167
2168
  decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
2168
2169
  validating: boolean;
2169
2170
  submitting: boolean;
2170
- active: boolean;
2171
2171
  visited: boolean;
2172
2172
  selfModified: boolean;
2173
2173
  modified: boolean;
@@ -2254,7 +2254,7 @@ declare const _default: import("vue").DefineComponent<{
2254
2254
  };
2255
2255
  readonly disabled: BooleanConstructor;
2256
2256
  readonly displayDirective: {
2257
- readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2257
+ readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2258
2258
  readonly default: "if";
2259
2259
  };
2260
2260
  readonly closable: {
@@ -2279,7 +2279,7 @@ declare const _default: import("vue").DefineComponent<{
2279
2279
  };
2280
2280
  readonly disabled: BooleanConstructor;
2281
2281
  readonly displayDirective: {
2282
- readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
2282
+ readonly type: import("vue").PropType<"show" | "if" | "show:lazy">;
2283
2283
  readonly default: "if";
2284
2284
  };
2285
2285
  readonly closable: {
@@ -2293,10 +2293,10 @@ declare const _default: import("vue").DefineComponent<{
2293
2293
  }>>, {
2294
2294
  readonly disabled: boolean;
2295
2295
  readonly closable: boolean | undefined;
2296
- readonly displayDirective: "if" | "show" | "show:lazy";
2296
+ readonly displayDirective: "show" | "if" | "show:lazy";
2297
2297
  }>;
2298
2298
  NTabs: any;
2299
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2299
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2300
2300
  fieldList: {
2301
2301
  type: import("vue").PropType<FieldItem[]>;
2302
2302
  };
@@ -98,7 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  }>> & {
99
99
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
100
100
  }, {
101
- value: string | number | unknown[];
102
101
  multiple: boolean;
102
+ value: string | number | unknown[];
103
103
  }>;
104
104
  export default _default;
@@ -178,8 +178,8 @@ export declare const WidgetCfgMaps: Map<string, {
178
178
  }>> & {
179
179
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
180
180
  }, {
181
- value: string | number | unknown[];
182
181
  multiple: boolean;
182
+ value: string | number | unknown[];
183
183
  }>;
184
184
  props: {
185
185
  clearable?: undefined;
@@ -1,3 +1,3 @@
1
- import { CSSProperties, ComputedRef } from 'vue';
2
- import { CGlobalThemeOverrides } from '../../components/config-provider/src/interface';
3
- export declare function useTheme(defaultCssVars: CSSProperties, componentKey: keyof CGlobalThemeOverrides): ComputedRef<CSSProperties>;
1
+ import { CSSProperties } from 'vue';
2
+ import { CComponentThemeOverrides } from '../../../es/components/config-provider';
3
+ export declare function useTheme(defaultCssVars?: CSSProperties, componentKey?: keyof CComponentThemeOverrides): import("vue").ComputedRef<CSSProperties>;
@@ -1 +1 @@
1
- import{inject as e,computed as n}from"vue";function r(r,t){const o=e("themeOverridesInjectRef",null);return n((()=>{var e;const n=(null==(e=null==o?void 0:o.value)?void 0:e[t])||{};return{...r,...n}}))}export{r as useTheme};
1
+ import{checkInSetupEnv as r,hex2rgba as o}from"../utils/index.js";import{isNumber as e}from"lodash-es";import{configProviderInjectionKey as i}from"naive-ui/es/config-provider/src/context";import{inject as t,computed as n,unref as c}from"vue";function m(e,m){r();const p=t(i,{}),u=t("themeOverridesInjectRef",{});return n((()=>{var r,i,t;const n=m?c(u)[m]:null,a=null!=(t=(null!=(i=null==(r=c(p.mergedThemeOverridesRef||{}))?void 0:r.common)?i:{}).primaryColor)?t:"#5585f5";return{...e,"--c-primary-color":a,"--c-primary-color-opacity1":l(...o(a),.1),"--c-primary-color-opacity2":l(...o(a),.2),...n}}))}function l(r,o,i,t,n=1){return`rgba(${r},${o},${i}, ${e(t)?(t*n).toFixed(2):n})`}export{m as useTheme};
@@ -31,4 +31,4 @@ export declare function isMatchLowCodeCondition(value: unknown, condition: {
31
31
  con: LOW_CODE_VALUE_RELATION & string;
32
32
  value: unknown;
33
33
  }): boolean;
34
- export declare function hex2rgba(hex: string): number[];
34
+ export declare function hex2rgba(hex: string): readonly [number, number, number, number];
@@ -1 +1 @@
1
- import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as c,gt as u,gte as i,lt as s,lte as a,isNumber as f,isObject as x,isFunction as d}from"lodash-es";import{getCurrentInstance as E}from"vue";function l(t,n,r="children",o){function c(){throw"silence break traverse"}try{L(t).forEach((t=>{n(t,c,o),L(r).forEach((o=>{e(t[o])&&l(t[o],n,r,t)}))}))}catch(t){if("silence break traverse"===t)return;throw t}}function m(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(r?r():t.component(n,e))}function p(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function L(t){return Array.isArray(t)?t:[t]}function h(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const N=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),w=Object.seal(Object.create(null));function S(t,n){return function t(n,r){return x(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(x(o)&&!d(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function v(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function y(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function I(t,e="px"){if(f(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function Q(t,e){return t.some((t=>e.includes(t)))}const $=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function b(t,e){if(!x(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function O(t){if(!E())throw new Error(t||"can't use this hook out of setup environment")}var U=(t=>(t.EQ="EQ",t.NEQ="NEQ",t.CL="CL",t.NC="NC",t.NULL="NULL",t.NOT_NULL="NOT_NULL",t.BIG="BIG",t.BIGEQ="BIGEQ",t.LESS="LESS",t.LESSEQ="LESSEQ",t))(U||{});const C={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:c(o),BIG:u,BIGEQ:i,LESS:s,LESSEQ:a};function g(t,e){return(C[e.con]||(()=>!1))(t,`${e.value}`)}function B(t){const[e,n,r,o,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[0,0,0];const u=(c?parseInt(c,16):255)/255;return[parseInt(n,16),parseInt(r,16),parseInt(o,16),+(f(u)?u.toFixed(2):1)]}export{w as DMZ,U as LOW_CODE_VALUE_RELATION,L as arrayed,O as checkInSetupEnv,S as deepOmit,y as findAncestor,p as generateTimeFormat,N as getStringWidth,B as hex2rgba,g as isMatchLowCodeCondition,$ as jsonParse,m as safeComponentRegister,v as separateMetaModule,b as shallowOmit,Q as targetStringIncludes,l as traverse,h as uuidGenerator,I as widthAppend};
1
+ import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as c,gt as u,gte as i,lt as s,lte as a,isNumber as f,isObject as x,isFunction as d}from"lodash-es";import{getCurrentInstance as E}from"vue";function l(t,n,r="children",o){function c(){throw"silence break traverse"}try{L(t).forEach((t=>{n(t,c,o),L(r).forEach((o=>{e(t[o])&&l(t[o],n,r,t)}))}))}catch(t){if("silence break traverse"===t)return;throw t}}function m(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(r?r():t.component(n,e))}function p(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function L(t){return Array.isArray(t)?t:[t]}function h(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const N=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),w=Object.seal(Object.create(null));function S(t,n){return function t(n,r){return x(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(x(o)&&!d(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function v(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function y(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function I(t,e="px"){if(f(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function Q(t,e){return t.some((t=>e.includes(t)))}const $=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function b(t,e){if(!x(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function O(t){if(!E())throw new Error(t||"can't use this hook out of setup environment")}var U=(t=>(t.EQ="EQ",t.NEQ="NEQ",t.CL="CL",t.NC="NC",t.NULL="NULL",t.NOT_NULL="NOT_NULL",t.BIG="BIG",t.BIGEQ="BIGEQ",t.LESS="LESS",t.LESSEQ="LESSEQ",t))(U||{});const C={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:c(o),BIG:u,BIGEQ:i,LESS:s,LESSEQ:a};function g(t,e){return(C[e.con]||(()=>!1))(t,`${e.value}`)}function B(t){const[e,n,r,o,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[0,0,0,1];const u=(c?parseInt(c,16):255)/255;return[parseInt(n,16),parseInt(r,16),parseInt(o,16),+(f(u)?u.toFixed(2):1)]}export{w as DMZ,U as LOW_CODE_VALUE_RELATION,L as arrayed,O as checkInSetupEnv,S as deepOmit,y as findAncestor,p as generateTimeFormat,N as getStringWidth,B as hex2rgba,g as isMatchLowCodeCondition,$ as jsonParse,m as safeComponentRegister,v as separateMetaModule,b as shallowOmit,Q as targetStringIncludes,l as traverse,h as uuidGenerator,I as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.41-beta.40",
3
+ "version": "3.1.41-beta.42",
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": "3a173f73d3f4ea4d684f65694843d3b6c0b400f3"
64
+ "gitHead": "05a7caf3a78321f79d3c3ccaf014b64b55c56784"
65
65
  }
@@ -1,4 +0,0 @@
1
- import { CSSProperties } from 'vue';
2
- export declare function useTableTheme(): {
3
- cssVars: import("vue").ComputedRef<CSSProperties>;
4
- };
@@ -1 +0,0 @@
1
- import{checkInSetupEnv as o,hex2rgba as r}from"../../../../shared/utils/index.js";import{isNumber as e}from"lodash-es";import{configProviderInjectionKey as l}from"naive-ui/es/config-provider/src/context";import{inject as i,computed as t,unref as n}from"vue";function a(){o();const a=i(l);return{cssVars:t((()=>{var o,l,i,t;const f=n(null==a?void 0:a.mergedThemeOverridesRef)||{},h=null!=(l=null==(o=n(f||{}).common)?void 0:o.primaryColor)?l:"#5585f5",[m,c,d,s]=r(h);return{"--iho-table-border-color":null!=(t=null==(i=n(f||{}).IhoTable)?void 0:i.borderColor)?t:"#e2e2e2","--iho-table-primary-color":h,"--iho-table-head-bg-color":"#f2f2f2","--iho-table-hover-color":"#f7f7f7","--iho-table-highlight-color":`rgba(${m},${c},${d}, ${e(s)?(.2*s).toFixed(2):.2})`}}))}}export{a as useTableTheme};