cnhis-design-vue 3.1.47-release.4 → 3.1.47

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 (85) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/button-print/src/utils/dialog.js +1 -1
  7. package/es/components/card-reader-sdk/index.d.ts +4 -0
  8. package/es/components/card-reader-sdk/index.js +1 -0
  9. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +23 -0
  10. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -0
  11. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +29 -0
  12. package/es/components/card-reader-sdk/src/components/readCardDialog.vue.js +1 -0
  13. package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -0
  14. package/es/components/card-reader-sdk/src/constants/index.d.ts +171 -0
  15. package/es/components/card-reader-sdk/src/constants/index.js +1 -0
  16. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +27 -0
  17. package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -0
  18. package/es/components/card-reader-sdk/src/types/index.d.ts +53 -0
  19. package/es/components/card-reader-sdk/src/types/index.js +1 -0
  20. package/es/components/card-reader-sdk/src/utils/index.d.ts +9 -0
  21. package/es/components/card-reader-sdk/src/utils/index.js +1 -0
  22. package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +6 -0
  23. package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -0
  24. package/es/components/fabric-chart/index.d.ts +3 -20
  25. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -20
  26. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +2 -1
  28. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +2 -18
  29. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  30. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +2 -1
  31. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +2 -18
  33. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +2 -1
  35. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  36. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +2 -4
  37. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  38. package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +2 -3
  39. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +2 -18
  40. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  42. package/es/components/fabric-chart/src/interface.d.ts +12 -1
  43. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  44. package/es/components/iho-table/style/index.css +1 -1
  45. package/es/components/index.css +1 -1
  46. package/es/components/index.d.ts +2 -1
  47. package/es/components/index.js +1 -1
  48. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  49. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  50. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  51. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  52. package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
  53. package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -1
  54. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +12 -0
  55. package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +1 -1
  56. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  57. package/es/env.d.ts +25 -25
  58. package/es/shared/assets/img/failure.png.js +1 -1
  59. package/es/shared/assets/img/no-permission.png.js +1 -1
  60. package/es/shared/assets/img/nodata.png.js +1 -1
  61. package/es/shared/assets/img/notfound.png.js +1 -1
  62. package/es/shared/assets/img/qr.png.js +1 -1
  63. package/es/shared/assets/img/success.png.js +1 -1
  64. package/es/shared/assets/img/video.png.js +1 -1
  65. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  66. package/es/shared/assets/img/xb_big.png.js +1 -1
  67. package/es/shared/assets/img/xb_small.png.js +1 -1
  68. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  69. package/es/shared/hooks/useDateTime.js +1 -1
  70. package/es/shared/package.json.js +1 -1
  71. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  72. package/es/shared/utils/index.d.ts +2 -1
  73. package/es/shared/utils/index.js +1 -1
  74. package/es/shared/utils/tapable/index.d.ts +139 -0
  75. package/es/shared/utils/tapableLess.d.ts +28 -0
  76. package/es/shared/utils/tapableLess.js +1 -0
  77. package/package.json +2 -2
  78. package/es/components/insurance-sdk/index.d.ts +0 -1
  79. package/es/components/insurance-sdk/index.js +0 -1
  80. package/es/components/insurance-sdk/src/constants/index.d.ts +0 -161
  81. package/es/components/insurance-sdk/src/constants/index.js +0 -1
  82. package/es/components/insurance-sdk/src/utils/index.d.ts +0 -1
  83. package/es/components/insurance-sdk/src/utils/index.js +0 -1
  84. package/es/components/insurance-sdk/src/utils/insurance.d.ts +0 -260
  85. package/es/components/insurance-sdk/src/utils/insurance.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { AnyObject, ArrayAble } from '../../../es/shared/types';
2
- import { App, Component } from 'vue';
2
+ import { App, Component, ComponentInternalInstance } from 'vue';
3
3
  export * from './business';
4
4
  export declare function traverse<T extends ArrayAble<AnyObject>>(target: T, handler: (item: T extends Array<infer P> ? P : T, stop: () => void, parent?: typeof item) => void, keys?: ArrayAble<string>, parent?: T): void;
5
5
  export declare function safeComponentRegister(app: App, component: Component, cName?: string | undefined, scheduler?: () => void): void;
@@ -17,3 +17,4 @@ export declare const jsonParse: import("@vueuse/core").UseMemoizedFn<any, [value
17
17
  export declare function shallowOmit<T, K extends Array<keyof T>>(target: T, keys: K): Omit<T, K[number]>;
18
18
  export declare function checkInSetupEnv(message?: string): void;
19
19
  export declare function hex2rgba(hex: string, defaultAlpha?: number): readonly [number, number, number, number];
20
+ export declare function createProviderWrapper(instance?: ComponentInternalInstance): import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
@@ -1 +1 @@
1
- import{useMemoize as t}from"@vueuse/core";import{isObject as e,isString as n,isNumber as r,isArray as o,isFunction as i}from"lodash-es";import{getCurrentInstance as u}from"vue";import c from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition}from"./business.js";function s(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=l(r),e=l(e);for(let c=0;c<e.length;c++){if(n(e[c],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[c][r[i]];if(Array.isArray(u)&&t(u,n,r,e[c]),o)return}}}(t,e,n,r)}function f(t,n,r=n.name,o){if(!r)throw new Error(`[CUI]: invalid component name for ${n}`);const{components:i={}}=t._context;i[r]||(!Reflect.get(t,"__cnhis_version")&&e(c)&&Reflect.set(t,"__cnhis_version",c.version),o?o():t.component(r,n))}function a(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 x(){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 d=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})),m=Object.seal(Object.create(null));function p(t,n){return function t(n,r){return e(n)?o(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((n,[o,u])=>(r.includes(o)||(e(u)&&!i(u)?n[o]=t(u,r):n[o]=u),n)),{}):n}(t,n)}function h(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function g(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 v(t,e="px"){if(r(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 y(t,e){return t.some((t=>e.includes(t)))}const b=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function j(t,n){if(!e(t))return t;const r={...t};for(let t=0;t<n.length;t++)Reflect.deleteProperty(r,n[t]);return r}function w(t){if(!u())throw new Error(t||"can't use this hook out of setup environment")}function $(t,e=1){const[n,o,i,u,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const s=c&&parseInt(c,16)/255;return[parseInt(o,16),parseInt(i,16),parseInt(u,16),+(r(s)?s.toFixed(2):e)]}export{m as DMZ,l as arrayed,w as checkInSetupEnv,p as deepOmit,g as findAncestor,a as generateTimeFormat,d as getStringWidth,$ as hex2rgba,b as jsonParse,f as safeComponentRegister,h as separateMetaModule,j as shallowOmit,y as targetStringIncludes,s as traverse,x as uuidGenerator,v as widthAppend};
1
+ import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isObject as i,isNumber as u,isString as c,isArray as s,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=x(r),e=x(e);for(let c=0;c<e.length;c++){if(n(e[c],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[c][r[i]];if(Array.isArray(u)&&t(u,n,r,e[c]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&i(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!c(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){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 h=o((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})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return i(e)?s(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(i(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function b(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 j(t,e="px"){if(u(t))return`${t}${e}`;if(c(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const O=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!i(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function $(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function E(t,e=1){const[n,r,o,i,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const s=c&&parseInt(c,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(s)?s.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([t,e])=>{u.includes(t)||(u.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}export{g as DMZ,x as arrayed,$ as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,b as findAncestor,p as generateTimeFormat,h as getStringWidth,E as hex2rgba,O as jsonParse,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,j as widthAppend};
@@ -0,0 +1,139 @@
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
+ }
@@ -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.47-release.4",
3
+ "version": "3.1.47",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -63,5 +63,5 @@
63
63
  "iOS 7",
64
64
  "last 3 iOS versions"
65
65
  ],
66
- "gitHead": "0279d315218c92612234715d49863e18cf7485fb"
66
+ "gitHead": "5bea665c5bd2705acd1f596b538003d66310f437"
67
67
  }
@@ -1 +0,0 @@
1
- export * from './src/utils';
@@ -1 +0,0 @@
1
- export{Insurance}from"./src/utils/insurance.js";
@@ -1,161 +0,0 @@
1
- /**
2
- * 交易命令映射
3
- */
4
- export declare const transcmdMapping: {
5
- readonly sk: 100210;
6
- readonly ghdj: 100401;
7
- readonly ghqx: 100403;
8
- readonly mzjs: 100407;
9
- readonly beforemzjs: 100406;
10
- readonly mztf: 100408;
11
- readonly zyjs: 100613;
12
- readonly qxzyjs: 100614;
13
- readonly zydj: 100601;
14
- readonly qxzydj: 100603;
15
- readonly zydjzzf: 100605;
16
- readonly mzghconfirm: 100415;
17
- readonly ghdjcg: 100411;
18
- readonly ghdjsb: 100412;
19
- readonly mzjscg: 100409;
20
- readonly mzjssb: 100410;
21
- readonly mztfcg: 100413;
22
- readonly mztfsb: 100414;
23
- readonly newdhyk: 110021;
24
- readonly newdsfz: 110041;
25
- readonly fastReport: 100000;
26
- readonly pos: 100000;
27
- readonly yjjrefund: 100622;
28
- readonly ybxxcx: 100212;
29
- readonly ybdz: 100209;
30
- };
31
- export declare const HIS_INSURANCE_PARAMS: {
32
- readonly msgindex: "";
33
- readonly checkoutinfo: "";
34
- readonly parmsJson: {
35
- readonly transtime: "";
36
- readonly transtype: "YB0000";
37
- readonly interfaceid: "0";
38
- readonly serialnumber: "";
39
- readonly operatorcode: "10086";
40
- readonly operatorname: "赵";
41
- readonly transcmd: "";
42
- readonly transdata: {
43
- readonly iar1: {
44
- readonly acf01: "0";
45
- readonly iar01: "";
46
- readonly vaa01: "";
47
- readonly vaa07: "";
48
- readonly iaa01: "";
49
- readonly iab02: "";
50
- readonly iak04: "";
51
- readonly iak05: "";
52
- readonly iak06: "";
53
- readonly iar10: "";
54
- readonly iar11: "";
55
- readonly iar12: "";
56
- readonly iar13: "";
57
- readonly iar14: "";
58
- readonly iar15: "";
59
- readonly iar16: "";
60
- readonly iar17: "";
61
- readonly iar18: "";
62
- readonly iar19: "";
63
- readonly iar20: "";
64
- readonly iar21: "";
65
- readonly iar22: "";
66
- readonly iai03: "";
67
- readonly iar24: "";
68
- readonly iar25: "";
69
- readonly iar26: "";
70
- readonly iar27: "";
71
- readonly iar28: "";
72
- readonly iar29: "";
73
- readonly iar30: "";
74
- readonly iar31: "";
75
- readonly iar32: "";
76
- readonly iar33: "";
77
- readonly iar34: "";
78
- readonly iar35: "";
79
- readonly iac02: "";
80
- readonly iac03: "";
81
- readonly iad03: "";
82
- readonly iad04: "";
83
- readonly iar40: "";
84
- readonly iar41: "";
85
- readonly iak22: "0";
86
- readonly iar43: "";
87
- readonly iar44: "";
88
- readonly iar45: "";
89
- readonly cli_iai03: "";
90
- readonly iar46: "";
91
- readonly iar47: "";
92
- readonly iar48: "";
93
- readonly iar49: "";
94
- readonly iar50: "";
95
- readonly iar51: "";
96
- readonly iar52: "";
97
- readonly iar53: "";
98
- readonly iar54: "";
99
- readonly iar55: "";
100
- readonly iar56: "";
101
- readonly iar57: "";
102
- readonly iar58: "";
103
- readonly iar59: "";
104
- readonly iar60: "";
105
- readonly iar61: "";
106
- readonly iar62: "";
107
- readonly iar63: "";
108
- readonly iar64: "";
109
- readonly iar65: "";
110
- readonly iar66: "";
111
- readonly iar67: "";
112
- readonly iar68: "";
113
- readonly iar69: "";
114
- readonly iar70: "";
115
- readonly iar71: "";
116
- readonly iar72: "";
117
- readonly iar73: "";
118
- readonly iar74: "";
119
- readonly iar75: "";
120
- };
121
- readonly personinfo: {
122
- readonly location: 0;
123
- readonly ptname: "";
124
- readonly sex: "";
125
- readonly birthday: "";
126
- readonly age: "";
127
- readonly idnumber: "";
128
- readonly folk: "";
129
- readonly address: "";
130
- readonly pttype: "";
131
- readonly ownpay: "0";
132
- };
133
- };
134
- readonly transsystem: "12";
135
- readonly transchannel: "100";
136
- readonly verifycode: "";
137
- };
138
- readonly error: true;
139
- readonly catch: true;
140
- readonly loading: false;
141
- };
142
- export declare const CONFIG_MAP: {
143
- readonly type: "sk";
144
- readonly location: null;
145
- readonly vaa01: "";
146
- readonly vaa07: "";
147
- readonly iar1Json: {};
148
- readonly personinfo: {};
149
- readonly parmsKey: "VAC01";
150
- readonly money: "";
151
- readonly interfaceid: "0";
152
- readonly operatorname: "";
153
- readonly operatorcode: "";
154
- readonly newhoinsurance: "";
155
- readonly message: "";
156
- readonly data: {};
157
- readonly transtype: null;
158
- readonly transchannel: null;
159
- readonly loginCode: "7777";
160
- readonly needLogin: false;
161
- };
@@ -1 +0,0 @@
1
- const a={sk:100210,ghdj:100401,ghqx:100403,mzjs:100407,beforemzjs:100406,mztf:100408,zyjs:100613,qxzyjs:100614,zydj:100601,qxzydj:100603,zydjzzf:100605,mzghconfirm:100415,ghdjcg:100411,ghdjsb:100412,mzjscg:100409,mzjssb:100410,mztfcg:100413,mztfsb:100414,newdhyk:110021,newdsfz:110041,fastReport:1e5,pos:1e5,yjjrefund:100622,ybxxcx:100212,ybdz:100209},r={msgindex:"",checkoutinfo:"",parmsJson:{transtime:"",transtype:"YB0000",interfaceid:"0",serialnumber:"",operatorcode:"10086",operatorname:"赵",transcmd:"",transdata:{iar1:{acf01:"0",iar01:"",vaa01:"",vaa07:"",iaa01:"",iab02:"",iak04:"",iak05:"",iak06:"",iar10:"",iar11:"",iar12:"",iar13:"",iar14:"",iar15:"",iar16:"",iar17:"",iar18:"",iar19:"",iar20:"",iar21:"",iar22:"",iai03:"",iar24:"",iar25:"",iar26:"",iar27:"",iar28:"",iar29:"",iar30:"",iar31:"",iar32:"",iar33:"",iar34:"",iar35:"",iac02:"",iac03:"",iad03:"",iad04:"",iar40:"",iar41:"",iak22:"0",iar43:"",iar44:"",iar45:"",cli_iai03:"",iar46:"",iar47:"",iar48:"",iar49:"",iar50:"",iar51:"",iar52:"",iar53:"",iar54:"",iar55:"",iar56:"",iar57:"",iar58:"",iar59:"",iar60:"",iar61:"",iar62:"",iar63:"",iar64:"",iar65:"",iar66:"",iar67:"",iar68:"",iar69:"",iar70:"",iar71:"",iar72:"",iar73:"",iar74:"",iar75:""},personinfo:{location:0,ptname:"",sex:"",birthday:"",age:"",idnumber:"",folk:"",address:"",pttype:"",ownpay:"0"}},transsystem:"12",transchannel:"100",verifycode:""},error:!0,catch:!0,loading:!1},i={type:"sk",location:null,vaa01:"",vaa07:"",iar1Json:{},personinfo:{},parmsKey:"VAC01",money:"",interfaceid:"0",operatorname:"",operatorcode:"",newhoinsurance:"",message:"",data:{},transtype:null,transchannel:null,loginCode:"7777",needLogin:!1};export{i as CONFIG_MAP,r as HIS_INSURANCE_PARAMS,a as transcmdMapping};
@@ -1 +0,0 @@
1
- export * from './insurance';
@@ -1 +0,0 @@
1
- export{Insurance}from"./insurance.js";
@@ -1,260 +0,0 @@
1
- import { AnyObject, Func } from '../../../../../es/shared/types';
2
- interface WebviewEvent extends Event {
3
- data: string;
4
- }
5
- declare type IWindow = Window & {
6
- chrome: AnyObject;
7
- };
8
- export declare class Insurance {
9
- private readonly webview;
10
- private currentMessageHandler?;
11
- constructor(params?: {
12
- selfWindow: IWindow;
13
- });
14
- private readonly messageHandlerQueue;
15
- messageHandler(e: WebviewEvent): false | void;
16
- postMessage(data: AnyObject): Promise<unknown>;
17
- destroy(): void;
18
- _configMap: AnyObject;
19
- _loading: boolean;
20
- initParamsMap: Map<string[], (params: AnyObject) => void>;
21
- onLogin(): Promise<unknown>;
22
- _HOInterfaceSvr(insuranceParams: AnyObject): Promise<any>;
23
- _errorMSg(type: string): "打印服务异常" | "身份证读卡接口服务异常" | "会员读卡接口服务异常" | "pos接口服务异常" | "请检查医保服务是否正常";
24
- _dataMsg(data: AnyObject): any;
25
- _initConfig(config: AnyObject): void;
26
- _initParams(): {
27
- parmsJson: {
28
- transtime: string;
29
- serialnumber: string;
30
- operatorcode: any;
31
- operatorname: any;
32
- location: any;
33
- transchannel: any;
34
- transsystem: any;
35
- transtype: "YB0000";
36
- interfaceid: "0";
37
- transcmd: "";
38
- transdata: {
39
- readonly iar1: {
40
- readonly acf01: "0";
41
- readonly iar01: "";
42
- readonly vaa01: "";
43
- readonly vaa07: "";
44
- readonly iaa01: "";
45
- readonly iab02: "";
46
- readonly iak04: "";
47
- readonly iak05: "";
48
- readonly iak06: "";
49
- readonly iar10: "";
50
- readonly iar11: "";
51
- readonly iar12: "";
52
- readonly iar13: "";
53
- readonly iar14: "";
54
- readonly iar15: "";
55
- readonly iar16: "";
56
- readonly iar17: "";
57
- readonly iar18: "";
58
- readonly iar19: "";
59
- readonly iar20: "";
60
- readonly iar21: "";
61
- readonly iar22: "";
62
- readonly iai03: "";
63
- readonly iar24: "";
64
- readonly iar25: "";
65
- readonly iar26: "";
66
- readonly iar27: "";
67
- readonly iar28: "";
68
- readonly iar29: "";
69
- readonly iar30: "";
70
- readonly iar31: "";
71
- readonly iar32: "";
72
- readonly iar33: "";
73
- readonly iar34: "";
74
- readonly iar35: "";
75
- readonly iac02: "";
76
- readonly iac03: "";
77
- readonly iad03: "";
78
- readonly iad04: "";
79
- readonly iar40: "";
80
- readonly iar41: "";
81
- readonly iak22: "0";
82
- readonly iar43: "";
83
- readonly iar44: "";
84
- readonly iar45: "";
85
- readonly cli_iai03: "";
86
- readonly iar46: "";
87
- readonly iar47: "";
88
- readonly iar48: "";
89
- readonly iar49: "";
90
- readonly iar50: "";
91
- readonly iar51: "";
92
- readonly iar52: "";
93
- readonly iar53: "";
94
- readonly iar54: "";
95
- readonly iar55: "";
96
- readonly iar56: "";
97
- readonly iar57: "";
98
- readonly iar58: "";
99
- readonly iar59: "";
100
- readonly iar60: "";
101
- readonly iar61: "";
102
- readonly iar62: "";
103
- readonly iar63: "";
104
- readonly iar64: "";
105
- readonly iar65: "";
106
- readonly iar66: "";
107
- readonly iar67: "";
108
- readonly iar68: "";
109
- readonly iar69: "";
110
- readonly iar70: "";
111
- readonly iar71: "";
112
- readonly iar72: "";
113
- readonly iar73: "";
114
- readonly iar74: "";
115
- readonly iar75: "";
116
- };
117
- readonly personinfo: {
118
- readonly location: 0;
119
- readonly ptname: "";
120
- readonly sex: "";
121
- readonly birthday: "";
122
- readonly age: "";
123
- readonly idnumber: "";
124
- readonly folk: "";
125
- readonly address: "";
126
- readonly pttype: "";
127
- readonly ownpay: "0";
128
- };
129
- };
130
- verifycode: "";
131
- };
132
- msgindex: "";
133
- checkoutinfo: "";
134
- error: true;
135
- catch: true;
136
- loading: false;
137
- };
138
- getInsuranceInfo(config: AnyObject, successCallbackFn?: Func, errorCallbackFn?: Func): Promise<false | undefined>;
139
- _getDhykParams(insuranceParams: AnyObject): void;
140
- _getSkParams(insuranceParams: AnyObject): void;
141
- _getSerialnumber(): string;
142
- _getOperatorcode(): any;
143
- _getOperatorname(): any;
144
- _getTranstime(): string;
145
- _pad2(n: number): string | number;
146
- _generateTimeReqestNumber(): string;
147
- _getHisInsuranceParams(): {
148
- parmsJson: {
149
- transtime: string;
150
- serialnumber: string;
151
- operatorcode: any;
152
- operatorname: any;
153
- location: any;
154
- transchannel: any;
155
- transsystem: any;
156
- transtype: "YB0000";
157
- interfaceid: "0";
158
- transcmd: "";
159
- transdata: {
160
- readonly iar1: {
161
- readonly acf01: "0";
162
- readonly iar01: "";
163
- readonly vaa01: "";
164
- readonly vaa07: "";
165
- readonly iaa01: "";
166
- readonly iab02: "";
167
- readonly iak04: "";
168
- readonly iak05: "";
169
- readonly iak06: "";
170
- readonly iar10: "";
171
- readonly iar11: "";
172
- readonly iar12: "";
173
- readonly iar13: "";
174
- readonly iar14: "";
175
- readonly iar15: "";
176
- readonly iar16: "";
177
- readonly iar17: "";
178
- readonly iar18: "";
179
- readonly iar19: "";
180
- readonly iar20: "";
181
- readonly iar21: "";
182
- readonly iar22: "";
183
- readonly iai03: "";
184
- readonly iar24: "";
185
- readonly iar25: "";
186
- readonly iar26: "";
187
- readonly iar27: "";
188
- readonly iar28: "";
189
- readonly iar29: "";
190
- readonly iar30: "";
191
- readonly iar31: "";
192
- readonly iar32: "";
193
- readonly iar33: "";
194
- readonly iar34: "";
195
- readonly iar35: "";
196
- readonly iac02: "";
197
- readonly iac03: "";
198
- readonly iad03: "";
199
- readonly iad04: "";
200
- readonly iar40: "";
201
- readonly iar41: "";
202
- readonly iak22: "0";
203
- readonly iar43: "";
204
- readonly iar44: "";
205
- readonly iar45: "";
206
- readonly cli_iai03: "";
207
- readonly iar46: "";
208
- readonly iar47: "";
209
- readonly iar48: "";
210
- readonly iar49: "";
211
- readonly iar50: "";
212
- readonly iar51: "";
213
- readonly iar52: "";
214
- readonly iar53: "";
215
- readonly iar54: "";
216
- readonly iar55: "";
217
- readonly iar56: "";
218
- readonly iar57: "";
219
- readonly iar58: "";
220
- readonly iar59: "";
221
- readonly iar60: "";
222
- readonly iar61: "";
223
- readonly iar62: "";
224
- readonly iar63: "";
225
- readonly iar64: "";
226
- readonly iar65: "";
227
- readonly iar66: "";
228
- readonly iar67: "";
229
- readonly iar68: "";
230
- readonly iar69: "";
231
- readonly iar70: "";
232
- readonly iar71: "";
233
- readonly iar72: "";
234
- readonly iar73: "";
235
- readonly iar74: "";
236
- readonly iar75: "";
237
- };
238
- readonly personinfo: {
239
- readonly location: 0;
240
- readonly ptname: "";
241
- readonly sex: "";
242
- readonly birthday: "";
243
- readonly age: "";
244
- readonly idnumber: "";
245
- readonly folk: "";
246
- readonly address: "";
247
- readonly pttype: "";
248
- readonly ownpay: "0";
249
- };
250
- };
251
- verifycode: "";
252
- };
253
- msgindex: "";
254
- checkoutinfo: "";
255
- error: true;
256
- catch: true;
257
- loading: false;
258
- };
259
- }
260
- export {};