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
@@ -0,0 +1,86 @@
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 +1 @@
1
- import{computed as e,unref as t}from"vue";import{useDebounceFn as n,useEventListener as l}from"@vueuse/core";import{isValid as i}from"date-fns";function o(o,s,u,r){const c=n((e=>{!function(e){const t=e.target;if(["INPUT"].includes(t.tagName)){const{selectionStart:e=0,selectionEnd:n=0}=t;e===n&&t.select()}}(e)}),200),a=e((()=>{var e;return null==(e=o.value)?void 0:e.$el})),d=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;u[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=u[n])}(e,t))),e}));function f(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function v(e,n,l){const i=e.value;if(!i)return;const o=e.selectionEnd||0,u=i.length;let r=0,c=0,a=0,d="",v=0;for(;r<u;){const e=i[r++];if(/\d/.test(e)&&(d+=e),r===o){a=d.length;const e=i.slice(r).match(/^\d+/);v=e?e[0].length:0}}const g=t(s),m=Array.isArray(g)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?g[1]:g[0]:g;let h="",p=0,b=0;for(r=0;r<m.length&&(l||!(c>=d.length));){const e=m[r++];if(/[yMdHms]/.test(e)?h+=d[c++]||"0":h+=e,n&&c===a){a=-1,p=h.length,b=p;let e=m.slice(r).match(/^[yMdHms]+/);e?(v=Math.min(v,e[0].length),v&&(h+=d.slice(c,c+v),c+=v),r+=e[0].length):(e=m.slice(r).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(p+=e[1].length,b=p+e[2].length))}}const D=h!==i;return D&&f(e,h),n&&(p=p||h.length+1,b=b||h.length+1,e.setSelectionRange(p,b)),D}return l(a,"input",(function(e){const t=e.target;if(!t.value||!Reflect.get(t,"_f_"))return;Reflect.set(t,"_f_",0),v(t,!0)&&(e.preventDefault(),e.stopPropagation())}),!0),l(a,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t){v(n,!1,!0);const e=null==n?void 0:n.value,t=Reflect.get(u,"type")||"";e&&!t.includes("range")&&i(new Date(e))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=d.value;if(null==n?void 0:n(e.getTime()))return;const s=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,u=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,r=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==s?void 0:s(e.getHours()))return;if(null==u?void 0:u(e.getMinutes()))return;if(null==r?void 0:r(e.getMinutes()))return;return!0}(new Date(e))&&f(n)}else if("Backspace"===t&&!r){const e=null==n?void 0:n.value;1===(null==e?void 0:e.length)&&(f(n),n.blur(),n.focus())}}),!0),l(a,"click",c,!0),{focus:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.blur)?void 0:t.call(e)}}}export{o as useDateTime};
1
+ import{computed as e,unref as t}from"vue";import{useEventListener as n}from"@vueuse/core";import{isValid as l}from"date-fns";function i(i,o,u,s){const r=e((()=>{var e;return null==(e=i.value)?void 0:e.$el})),c=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;u[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=u[n])}(e,t))),e}));function a(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function d(e,n,l){const i=e.value;if(!i)return;const u=e.selectionEnd||0,s=i.length;let r=0,c=0,d=0,f="",v=0;for(;r<s;){const e=i[r++];if(/\d/.test(e)&&(f+=e),r===u){d=f.length;const e=i.slice(r).match(/^\d+/);v=e?e[0].length:0}}const g=t(o),m=Array.isArray(g)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?g[1]:g[0]:g;let h="",p=0,b=0;for(r=0;r<m.length&&(l||!(c>=f.length));){const e=m[r++];if(/[yMdHms]/.test(e)?h+=f[c++]||"0":h+=e,n&&c===d){d=-1,p=h.length,b=p;let e=m.slice(r).match(/^[yMdHms]+/);e?(v=Math.min(v,e[0].length),v&&(h+=f.slice(c,c+v),c+=v),r+=e[0].length):(e=m.slice(r).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(p+=e[1].length,b=p+e[2].length))}}const D=h!==i;return D&&a(e,h),n&&(p=p||h.length+1,b=b||h.length+1,e.setSelectionRange(p,b)),D}return n(r,"input",(function(e){const t=e.target;if(!t.value||!Reflect.get(t,"_f_"))return;Reflect.set(t,"_f_",0),d(t,!0)&&(e.preventDefault(),e.stopPropagation())}),!0),n(r,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t){d(n,!1,!0);const e=null==n?void 0:n.value,t=Reflect.get(u,"type")||"";e&&!t.includes("range")&&l(new Date(e))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=c.value;if(null==n?void 0:n(e.getTime()))return;const u=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,s=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,r=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==u?void 0:u(e.getHours()))return;if(null==s?void 0:s(e.getMinutes()))return;if(null==r?void 0:r(e.getMinutes()))return;return!0}(new Date(e))&&a(n)}else if("Backspace"===t&&!s){const e=null==n?void 0:n.value;1===(null==e?void 0:e.length)&&(a(n),n.blur(),n.focus())}}),!0),{focus:()=>{var e,t;return null==(t=null==(e=i.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=i.value)?void 0:e.blur)?void 0:t.call(e)}}}export{i as useDateTime};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",s="3.1.47-release.4",i="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.47-release.4",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.47",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},d={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},o={name:e,version:"3.1.47",private:!0,main:"index.ts",peerDependencies:n,dependencies:d};export{o as default,d as dependencies,s as main,e as name,n as peerDependencies,i as version};