cnhis-design-vue 3.1.41-beta.23 → 3.1.41-beta.25
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.
- package/README.md +87 -87
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/info-header/index.d.ts +83 -41
- package/es/components/info-header/src/InfoHeader.vue.d.ts +83 -42
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/index.d.ts +3 -0
- package/es/components/info-header/src/components/index.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -0
- package/es/components/info-header/src/{InfoDescription.vue.d.ts → components/infoDescription/index.vue.d.ts} +6 -5
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +38 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +29 -0
- package/es/components/info-header/src/types/index.js +1 -0
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/env.d.ts +24 -24
- package/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +65 -65
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/info-header/src/HiddenContent.vue.js +0 -1
- package/es/components/info-header/src/InfoDescription.vue.js +0 -1
- package/es/components/info-header/src/InfoEllipsis.vue.js +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
- package/es/components/info-header/src/{HiddenContent.vue.d.ts → components/infoDescription/HiddenContent.vue.d.ts} +2 -2
- package/es/components/info-header/src/{InfoEllipsis.vue.d.ts → components/infoDescription/InfoEllipsis.vue.d.ts} +1 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(t+="",!p.value)return t;if(!t)return"-";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,nextTick as l,onMounted as o,watch as n,onBeforeUnmount as i,onDeactivated as r,onActivated as a,openBlock as u,createElementBlock as s,normalizeStyle as c,createVNode as d,unref as f,withCtx as p,createCommentVNode as m,renderSlot as h,Fragment as v,renderList as y,createBlock as _,createElementVNode as w}from"vue";import{useThrottleFn as b,useEventListener as g}from"@vueuse/core";import{NScrollbar as W,NDescriptions as x,NDescriptionsItem as F}from"naive-ui";import S from"../../../shared/components/SlotRender/SlotRender.js";import k from"./InfoEllipsis.vue.js";import C from"./HiddenContent.vue.js";import I from"../../../_virtual/plugin-vue_export-helper.js";const j=w("section",{style:{height:"10px"}},null,-1),H=w("section",{style:{height:"12px"}},null,-1);var L=I(e({__name:"InfoDescription",props:{compact:{type:Boolean,default:!0},infoList:{default:()=>[]},labelField:{default:"label"},valueField:{default:"value"},minColumnWidth:{default:180},rowHeight:{default:32},rootSlot:null},setup(e,{expose:w}){const I=e;function L({bold:e=!0,contentStyle:t={}}={}){return{fontWeight:e?700:500,...t}}function R(e,{bold:t=!0,contentStyle:l={}}={}){const o=z.value[e]+"px";return{width:o,maxWidth:o,fontWeight:t?700:500,...l}}function A(e){return["电话","身份证"].some((t=>{var l,o;return null==(o=null==(l=e[I.labelField])?void 0:l.includes)?void 0:o.call(l,t)}))}const D=t(3),M=t(),q=t(0),z=t([]),B=b((async function(){await l();const e=M.value;if(!e)return;const{clientWidth:t}=e;D.value=Math.floor(t/+I.minColumnWidth),q.value=Math.floor(t/D.value),await l();const o=e.querySelectorAll(".n-descriptions-table-content__label");o&&(z.value=Array.from(o).map((e=>q.value-e.clientWidth-8)))}),200,!0,!1);let E;function $(){clearInterval(E)}function G(){$(),E=setInterval(B,700)}return o(B),n([()=>I.minColumnWidth,()=>I.infoList],B,{flush:"post",deep:!0}),g(window,"resize",B),i($),r($),a(G),o(G),w({updateColumn:B}),(t,l)=>(u(),s("section",{class:"c-info-header__info",ref_key:"infoRef",ref:M,style:c({"--row-height":e.rowHeight,"--column-width":q.value})},[d(f(W),{class:"c-info-header__infoWrapper",style:c({"--row-num":e.compact?1:2})},{default:p((()=>[m(" 描述信息区插槽 "),h(t.$slots,"info",{},(()=>[j,d(f(x),{"label-align":"right",style:{width:"100%"},"label-placement":"left",separator:":",column:D.value},{default:p((()=>[(u(!0),s(v,null,y(e.infoList,((t,l)=>(u(),_(f(F),{key:t[e.labelField],label:t[e.labelField]},{default:p((()=>[t.slot?(u(),_(f(S),{key:0,renderer:t.slot,"root-slots":e.rootSlot,item:t,style:c(L(t)),width:z.value[l]},null,8,["renderer","root-slots","item","style","width"])):A(t)?(u(),_(C,{key:1,content:t[e.valueField],tip:t.tip,"content-style":L(t),width:z.value[l]},null,8,["content","tip","content-style","width"])):(u(),_(k,{key:2,"content-style":R(l,t),content:t[e.valueField],tip:t.tip},null,8,["content-style","content","tip"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]),H]))])),_:3},8,["style"])],4))}}),[["__file","InfoDescription.vue"]]);export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as t,openBlock as e,createBlock as l,unref as i,withCtx as o,createElementVNode as p,createVNode as n,normalizeStyle as r,createTextVNode as u,toDisplayString as a}from"vue";import{NTooltip as s,NEllipsis as f}from"naive-ui";import d from"../../../_virtual/plugin-vue_export-helper.js";var m=d(t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(d,m)=>(e(),l(i(s),{disabled:!t.tip},{trigger:o((()=>[p("section",null,[n(i(f),{style:r(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:o((()=>{var e;return[u(a(null!=(e=t.content)?e:"-"),1)]})),_:1},8,["style","tooltip"])])])),default:o((()=>[u(" "+a(t.tip),1)])),_:1},8,["disabled"]))}),[["__file","InfoEllipsis.vue"]]);export{m as default};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
declare const draggableComponent: import('vue').DefineComponent<
|
|
2
|
-
{
|
|
3
|
-
list: {
|
|
4
|
-
type: ArrayConstructor;
|
|
5
|
-
required: boolean;
|
|
6
|
-
default: any;
|
|
7
|
-
};
|
|
8
|
-
modelValue: {
|
|
9
|
-
type: ArrayConstructor;
|
|
10
|
-
required: boolean;
|
|
11
|
-
default: any;
|
|
12
|
-
};
|
|
13
|
-
itemKey: {
|
|
14
|
-
type: (FunctionConstructor | StringConstructor)[];
|
|
15
|
-
required: boolean;
|
|
16
|
-
};
|
|
17
|
-
clone: {
|
|
18
|
-
type: FunctionConstructor;
|
|
19
|
-
default: (original: any) => any;
|
|
20
|
-
};
|
|
21
|
-
tag: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
move: {
|
|
26
|
-
type: FunctionConstructor;
|
|
27
|
-
default: any;
|
|
28
|
-
};
|
|
29
|
-
componentData: {
|
|
30
|
-
type: ObjectConstructor;
|
|
31
|
-
required: boolean;
|
|
32
|
-
default: any;
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
unknown,
|
|
36
|
-
{
|
|
37
|
-
error: boolean;
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
realList(): any;
|
|
41
|
-
getKey(): any;
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
getUnderlyingVm(domElement: any): any;
|
|
45
|
-
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
|
46
|
-
emitChanges(evt: any): void;
|
|
47
|
-
alterList(onList: any): void;
|
|
48
|
-
spliceList(): void;
|
|
49
|
-
updatePosition(oldIndex: any, newIndex: any): void;
|
|
50
|
-
getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
|
|
51
|
-
getVmIndexFromDomIndex(domIndex: any): any;
|
|
52
|
-
onDragStart(evt: any): void;
|
|
53
|
-
onDragAdd(evt: any): void;
|
|
54
|
-
onDragRemove(evt: any): void;
|
|
55
|
-
onDragUpdate(evt: any): void;
|
|
56
|
-
computeFutureIndex(relatedContext: any, evt: any): any;
|
|
57
|
-
onDragMove(evt: any, originalEvent: any): any;
|
|
58
|
-
onDragEnd(): void;
|
|
59
|
-
},
|
|
60
|
-
import('vue').ComponentOptionsMixin,
|
|
61
|
-
import('vue').ComponentOptionsMixin,
|
|
62
|
-
any[],
|
|
63
|
-
any,
|
|
64
|
-
import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
|
|
65
|
-
Readonly<
|
|
66
|
-
{
|
|
67
|
-
move: Function;
|
|
68
|
-
tag: string;
|
|
69
|
-
clone: Function;
|
|
70
|
-
list: unknown[];
|
|
71
|
-
modelValue: unknown[];
|
|
72
|
-
componentData: Record<string, any>;
|
|
73
|
-
} & {
|
|
74
|
-
itemKey?: string | Function;
|
|
75
|
-
}
|
|
76
|
-
>,
|
|
77
|
-
{
|
|
78
|
-
move: Function;
|
|
79
|
-
tag: string;
|
|
80
|
-
clone: Function;
|
|
81
|
-
list: unknown[];
|
|
82
|
-
modelValue: unknown[];
|
|
83
|
-
componentData: Record<string, any>;
|
|
84
|
-
}
|
|
85
|
-
>;
|
|
86
|
-
export default draggableComponent;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
type FixedSizeArray<T extends number, U> = T extends 0
|
|
2
|
-
? void[]
|
|
3
|
-
: ReadonlyArray<U> & {
|
|
4
|
-
0: U;
|
|
5
|
-
length: T;
|
|
6
|
-
};
|
|
7
|
-
type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
|
|
8
|
-
type Append<T extends any[], U> = {
|
|
9
|
-
0: [U];
|
|
10
|
-
1: [T[0], U];
|
|
11
|
-
2: [T[0], T[1], U];
|
|
12
|
-
3: [T[0], T[1], T[2], U];
|
|
13
|
-
4: [T[0], T[1], T[2], T[3], U];
|
|
14
|
-
5: [T[0], T[1], T[2], T[3], T[4], U];
|
|
15
|
-
6: [T[0], T[1], T[2], T[3], T[4], T[5], U];
|
|
16
|
-
7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], U];
|
|
17
|
-
8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], U];
|
|
18
|
-
}[Measure<T['length']>];
|
|
19
|
-
type AsArray<T> = T extends any[] ? T : [T];
|
|
20
|
-
|
|
21
|
-
declare class UnsetAdditionalOptions {
|
|
22
|
-
_UnsetAdditionalOptions: true;
|
|
23
|
-
}
|
|
24
|
-
type IfSet<X> = X extends UnsetAdditionalOptions ? {} : X;
|
|
25
|
-
|
|
26
|
-
type Callback<E, T> = (error: E | null, result?: T) => void;
|
|
27
|
-
type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
|
|
28
|
-
|
|
29
|
-
type FullTap = Tap & {
|
|
30
|
-
type: 'sync' | 'async' | 'promise';
|
|
31
|
-
fn: Function;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type Tap = TapOptions & {
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
type TapOptions = {
|
|
39
|
-
before?: string;
|
|
40
|
-
stage?: number;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
interface HookInterceptor<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
44
|
-
name?: string;
|
|
45
|
-
tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void;
|
|
46
|
-
call?: (...args: any[]) => void;
|
|
47
|
-
loop?: (...args: any[]) => void;
|
|
48
|
-
error?: (err: Error) => void;
|
|
49
|
-
result?: (result: R) => void;
|
|
50
|
-
done?: () => void;
|
|
51
|
-
register?: (tap: FullTap & IfSet<AdditionalOptions>) => FullTap & IfSet<AdditionalOptions>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type ArgumentNames<T extends any[]> = FixedSizeArray<T['length'], string>;
|
|
55
|
-
|
|
56
|
-
declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
|
57
|
-
constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
|
|
58
|
-
name: string | undefined;
|
|
59
|
-
taps: FullTap[];
|
|
60
|
-
intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
|
|
61
|
-
isUsed(): boolean;
|
|
62
|
-
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
|
|
63
|
-
promise(...args: AsArray<T>): Promise<R>;
|
|
64
|
-
tap(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void;
|
|
65
|
-
withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, 'call' | 'callAsync' | 'promise'>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export class SyncHook<T, R = void, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
69
|
-
call(...args: AsArray<T>): R;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export class SyncBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, R, AdditionalOptions> {}
|
|
73
|
-
export class SyncLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, void, AdditionalOptions> {}
|
|
74
|
-
export class SyncWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<
|
|
75
|
-
T,
|
|
76
|
-
AsArray<T>[0],
|
|
77
|
-
AdditionalOptions
|
|
78
|
-
> {}
|
|
79
|
-
|
|
80
|
-
declare class AsyncHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
|
81
|
-
tapAsync(
|
|
82
|
-
options: string | (Tap & IfSet<AdditionalOptions>),
|
|
83
|
-
fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void
|
|
84
|
-
): void;
|
|
85
|
-
tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export class AsyncParallelHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
89
|
-
T,
|
|
90
|
-
void,
|
|
91
|
-
AdditionalOptions
|
|
92
|
-
> {}
|
|
93
|
-
export class AsyncParallelBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
94
|
-
T,
|
|
95
|
-
R,
|
|
96
|
-
AdditionalOptions
|
|
97
|
-
> {}
|
|
98
|
-
export class AsyncSeriesHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
99
|
-
T,
|
|
100
|
-
void,
|
|
101
|
-
AdditionalOptions
|
|
102
|
-
> {}
|
|
103
|
-
export class AsyncSeriesBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
104
|
-
T,
|
|
105
|
-
R,
|
|
106
|
-
AdditionalOptions
|
|
107
|
-
> {}
|
|
108
|
-
export class AsyncSeriesLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
109
|
-
T,
|
|
110
|
-
void,
|
|
111
|
-
AdditionalOptions
|
|
112
|
-
> {}
|
|
113
|
-
export class AsyncSeriesWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
|
114
|
-
T,
|
|
115
|
-
AsArray<T>[0],
|
|
116
|
-
AdditionalOptions
|
|
117
|
-
> {}
|
|
118
|
-
|
|
119
|
-
type HookFactory<H> = (key: any, hook?: H) => H;
|
|
120
|
-
|
|
121
|
-
interface HookMapInterceptor<H> {
|
|
122
|
-
factory?: HookFactory<H>;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export class HookMap<H> {
|
|
126
|
-
constructor(factory: HookFactory<H>, name?: string);
|
|
127
|
-
name: string | undefined;
|
|
128
|
-
get(key: any): H | undefined;
|
|
129
|
-
for(key: any): H;
|
|
130
|
-
intercept(interceptor: HookMapInterceptor<H>): void;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export class MultiHook<H> {
|
|
134
|
-
constructor(hooks: H[], name?: string);
|
|
135
|
-
name: string | undefined;
|
|
136
|
-
tap(options: string | Tap, fn?: Function): void;
|
|
137
|
-
tapAsync(options: string | Tap, fn?: Function): void;
|
|
138
|
-
tapPromise(options: string | Tap, fn?: Function): void;
|
|
139
|
-
}
|
|
@@ -63,8 +63,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
}>>, {
|
|
66
|
-
content: string;
|
|
67
66
|
contentStyle: CSSProperties;
|
|
67
|
+
content: string;
|
|
68
68
|
}>;
|
|
69
69
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
70
|
content: {
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
default: () => {};
|
|
81
81
|
};
|
|
82
82
|
}>>, {
|
|
83
|
-
content: string;
|
|
84
83
|
contentStyle: CSSProperties;
|
|
84
|
+
content: string;
|
|
85
85
|
}>;
|
|
86
86
|
export default _default;
|