cnhis-design-vue 3.1.42-release.1 → 3.1.42-release.2

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 (96) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/big-table/index.d.ts +3 -4
  4. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  5. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  6. package/es/components/big-table/style/index.css +1 -1
  7. package/es/components/button-print/index.d.ts +4 -4
  8. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  9. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  10. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  11. package/es/components/button-print/src/utils/print.js +1 -1
  12. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  13. package/es/components/config-provider/src/interface.d.ts +4 -4
  14. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  15. package/es/components/fabric-chart/index.d.ts +2 -2
  16. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  17. package/es/components/field-set/index.d.ts +2 -2
  18. package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
  19. package/es/components/form-config/index.d.ts +24 -24
  20. package/es/components/form-config/src/FormConfig.vue.d.ts +24 -24
  21. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  22. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
  23. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -12
  24. package/es/components/form-render/index.d.ts +12 -12
  25. package/es/components/form-render/index.js +1 -1
  26. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  27. package/es/components/form-render/src/FormRender.vue.js +1 -1
  28. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
  29. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  30. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  31. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  32. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  33. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  34. package/es/components/form-render/src/components/renderer/select.js +1 -1
  35. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  36. package/es/components/form-render/src/hooks/index.js +1 -1
  37. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  38. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  39. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  40. package/es/components/form-render/src/types/index.d.ts +2 -1
  41. package/es/components/iho-table/index.d.ts +1523 -0
  42. package/es/components/iho-table/src/IhoTable.vue.d.ts +1523 -0
  43. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  44. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  45. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  46. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  47. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  48. package/es/components/iho-table/style/index.css +1 -1
  49. package/es/components/index.css +1 -1
  50. package/es/components/index.js +1 -1
  51. package/es/components/info-header/index.d.ts +28 -28
  52. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  53. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  54. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  55. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  56. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  57. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
  58. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
  59. package/es/components/keyboard/index.d.ts +1 -1
  60. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  61. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  62. package/es/components/keyboard/src/constants/index.js +1 -1
  63. package/es/components/keyboard/style/index.css +1 -1
  64. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  65. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  66. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  67. package/es/components/select-person/index.d.ts +1 -1
  68. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  69. package/es/components/shortcut-setter/index.d.ts +12 -12
  70. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  71. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  72. package/es/components/steps-wheel/src/constants/index.js +1 -1
  73. package/es/components/steps-wheel/style/index.css +1 -1
  74. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  75. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  76. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  77. package/es/env.d.ts +24 -24
  78. package/es/shared/{mixins → hooks}/index.d.ts +1 -0
  79. package/es/shared/{mixins → hooks}/index.js +1 -1
  80. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  81. package/es/shared/hooks/useAsyncQueue.js +1 -0
  82. package/package.json +2 -2
  83. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  84. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  85. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  86. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  87. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  88. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  89. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  90. package/es/shared/utils/colorLog.d.ts +0 -31
  91. package/es/shared/utils/colorLog.js +0 -1
  92. package/es/shared/utils/tapable/index.d.ts +0 -139
  93. /package/es/shared/{mixins → hooks}/useDateTime.d.ts +0 -0
  94. /package/es/shared/{mixins → hooks}/useDateTime.js +0 -0
  95. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  96. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -1 +0,0 @@
1
- import{uuidGenerator as s}from"../../../../shared/utils/index.js";import{cloneDeep as e,isFunction as t}from"lodash-es";import{unref as r}from"vue";import"../../index.js";import{useCommonLog as i}from"./useCommonLog.js";import{useFormRequest as o}from"./useFormRequest.js";class a{constructor(s,e,t){this.item=s,this.key=e,this.state=0,this.callback=t}}class c{constructor(s){this._list=s?Array.from(s):[]}enqueue(s){this._list.push(s)}dequeue(){return this._list.shift()}}class n{constructor({name:s,processor:e,getKey:t,parallelism:r}){this._queued=new c,this._entries=new Map,this._activeTasks=0,this._processingLock=!1,this._stopped=!1,this.name=s,this.processor=e,this.getKey=t,this.parallelism=r||100}add(s,t){if(this._stopped)return t(new Error("Queue was stopped"));const r=this.getKey(s);if(this._entries.has(r)){const s=this._entries.get(r);return void(1===s.state?setTimeout((()=>{t&&t(e(s.error),e(s.result))})):s.callbacks?s.callbacks.push(t):s.callbacks=[t])}const i=new a(s,r,t);this._entries.set(r,i),this._queued.enqueue(i),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}addAsync(s){return new Promise(((e,t)=>{this.add(s,((s,r)=>{s&&t(s),e(r)}))}))}_ensureProcessing(){for(;this._activeTasks<this.parallelism;){const s=this._queued.dequeue();if(!s)break;this._activeTasks++,s.state=0,this._startProcess(s)}this._processingLock=!1}_startProcess(s){this.processor(s.item,((e,t)=>{e?this._handlerResult(s,e):this._handlerResult(s,e,t)}),(()=>this._entries.delete(s.key)))}_handlerResult(s,t,r){const i=s.callback;s.state=1,s.callback=void 0,s.result=e(r),s.error=e(t),this._activeTasks--,i&&i(t,r),s.callbacks&&s.callbacks.forEach((s=>s(t,r))),this._processingLock||(this._processingLock=!0,Promise.resolve().then(this._ensureProcessing.bind(this)))}}function h(e){const{getHttpInstance:a}=o();return{create:function(o=3,c){return new n({name:"FormRenderAsyncQueue",parallelism:o,async processor({key:s,method:o="post",cache:n,params:h,url:l},u,p){var m,d;const _=null!=(m=r(e))?m:a();if(!_)return i().invalidHttpInstanceLog(),u(),void p();try{c&&t(c.beforeRequest)&&(h=null!=(d=c.beforeRequest(s,h))?d:{});let e=await _[o](l,h);c&&t(c.afterRequest)&&(e=c.afterRequest(s,e)),u(void 0,Array.isArray(e)?e:[]),!n&&p()}catch(s){u(new Error(`Request error => ${s}`)),p()}},getKey:({url:e,method:t="post",cache:r,params:i})=>r?e+t+JSON.stringify(i||{}):s()})}}}export{n as AsyncQueue,h as useAsyncQueue};
@@ -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,31 +0,0 @@
1
- export declare enum LogsType {
2
- DEFAULT = "default",
3
- PRIMARY = "primary",
4
- SUCCESS = "success",
5
- WARNING = "warning",
6
- DANGER = "danger"
7
- }
8
- declare class Log {
9
- /**
10
- * @description 打印一个 [ title | text ] 样式的信息
11
- * @param {String} title title text
12
- * @param {String} info info text
13
- * @param {String} type style
14
- * @param {any[]} appendInfo
15
- */
16
- capsule(title: string, info: any, type?: LogsType, ...appendInfo: any[]): void;
17
- /**
18
- * @description 打印彩色文字
19
- */
20
- colorful(textArr: {
21
- text: any;
22
- type: LogsType;
23
- }[]): void;
24
- text(text: any): void;
25
- primary(text: any): void;
26
- success(text: any): void;
27
- warning(text: any): void;
28
- danger(text: any): void;
29
- }
30
- declare const log: Log;
31
- export default log;
@@ -1 +0,0 @@
1
- var r=(r=>(r.DEFAULT="default",r.PRIMARY="primary",r.SUCCESS="success",r.WARNING="warning",r.DANGER="danger",r))(r||{});function t(r="primary"){return{default:"#f5f5f5",primary:"#409EFF",success:"#67C23A",warning:"#E6A23C",danger:"#F56C6C"}[r]}const e=new class{capsule(r,e,a="primary",...o){console.log(`%c ${r} %c ${e} %c`,"background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;",`background:${t(a)}; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;`,"background:transparent",...o)}colorful(r){console.log(`%c${r.map((r=>r.text||"")).join("%c")}`,...r.map((r=>`color: ${t(r.type)};`)))}text(r){this.colorful([{text:r,type:"default"}])}primary(r){this.colorful([{text:r,type:"primary"}])}success(r){this.colorful([{text:r,type:"success"}])}warning(r){this.colorful([{text:r,type:"warning"}])}danger(r){this.colorful([{text:r,type:"danger"}])}};export{r as LogsType,e as default};
@@ -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
- }
File without changes
File without changes
File without changes
File without changes