cnhis-design-vue 3.2.15-release.5 → 3.2.16-beta.7

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 (75) hide show
  1. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  2. package/es/components/branch-notice/src/canstants.js +1 -1
  3. package/es/components/button-print/index.d.ts +6 -13
  4. package/es/components/button-print/src/ButtonPrint.vue.d.ts +6 -13
  5. package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +6 -13
  6. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  7. package/es/components/button-print/style/index.css +1 -1
  8. package/es/components/callback/src/components/render/popupMaps.d.ts +10 -0
  9. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  10. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  11. package/es/components/expand-field/index.d.ts +26 -0
  12. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +26 -0
  13. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +26 -0
  14. package/es/components/expand-field/src/components/form.vue.d.ts +26 -0
  15. package/es/components/expand-field/src/index.vue.d.ts +26 -0
  16. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  17. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  18. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  19. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  20. package/es/components/form-config/index.d.ts +30 -0
  21. package/es/components/form-config/src/FormConfig.vue.d.ts +30 -0
  22. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +10 -0
  23. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +10 -0
  24. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +10 -0
  25. package/es/components/form-render/index.d.ts +10 -0
  26. package/es/components/form-render/src/FormRender.vue.d.ts +10 -0
  27. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  28. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +10 -0
  29. package/es/components/form-render/src/components/renderer/input.d.ts +9 -1
  30. package/es/components/form-render/src/components/renderer/input.js +1 -1
  31. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  32. package/es/components/iho-chat/index.d.ts +181 -23
  33. package/es/components/iho-chat/src/Index.vue.d.ts +181 -23
  34. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  35. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  36. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  37. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +24 -12
  38. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +150 -7
  39. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  40. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +12 -6
  41. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +137 -0
  42. package/es/components/iho-chat/src/components/MessageEvent.vue.js +1 -0
  43. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -0
  44. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +6 -3
  45. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  46. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +13 -6
  47. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  48. package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
  49. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  50. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  51. package/es/components/iho-chat/src/constants/index.js +1 -1
  52. package/es/components/iho-chat/src/hooks/useVideo.d.ts +2 -2
  53. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  54. package/es/components/iho-chat/src/utils/asyncQueue.d.ts +10 -0
  55. package/es/components/iho-chat/src/utils/asyncQueue.js +1 -0
  56. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  57. package/es/components/iho-table/src/types/index.d.ts +14 -0
  58. package/es/components/iho-table/src/utils/index.js +1 -1
  59. package/es/components/index.css +1 -1
  60. package/es/components/info-header/index.d.ts +20 -0
  61. package/es/components/info-header/src/InfoHeader.vue.d.ts +20 -0
  62. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +10 -0
  63. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +10 -0
  64. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  65. package/es/components/select-person/index.d.ts +26 -0
  66. package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
  67. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  68. package/es/components/select-person/src/index.vue.d.ts +26 -0
  69. package/es/components/select-person/src/index.vue2.js +1 -1
  70. package/es/components/shortcut-setter/index.d.ts +10 -0
  71. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +10 -0
  72. package/es/env.d.ts +25 -25
  73. package/es/shared/hooks/useDateTime.js +1 -1
  74. package/es/shared/package.json.js +1 -1
  75. package/package.json +2 -2
@@ -467,6 +467,9 @@ declare const _default: import("vue").DefineComponent<{
467
467
  type: import("vue").PropType<"default" | "tooltip">;
468
468
  default: string;
469
469
  };
470
+ fixMemoLeak: {
471
+ type: BooleanConstructor;
472
+ };
470
473
  }, {
471
474
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
472
475
  fieldList: {
@@ -666,6 +669,9 @@ declare const _default: import("vue").DefineComponent<{
666
669
  type: import("vue").PropType<"default" | "tooltip">;
667
670
  default: string;
668
671
  };
672
+ fixMemoLeak: {
673
+ type: BooleanConstructor;
674
+ };
669
675
  }>> & {
670
676
  onFormChange?: ((...args: any[]) => any) | undefined;
671
677
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1223,6 +1229,9 @@ declare const _default: import("vue").DefineComponent<{
1223
1229
  type: import("vue").PropType<"default" | "tooltip">;
1224
1230
  default: string;
1225
1231
  };
1232
+ fixMemoLeak: {
1233
+ type: BooleanConstructor;
1234
+ };
1226
1235
  }>> & {
1227
1236
  onFormChange?: ((...args: any[]) => any) | undefined;
1228
1237
  onScroll?: ((...args: any[]) => any) | undefined;
@@ -1256,6 +1265,7 @@ declare const _default: import("vue").DefineComponent<{
1256
1265
  feedbackType: "default" | "tooltip";
1257
1266
  operationalFormInit: boolean;
1258
1267
  incrementalRender: boolean;
1268
+ fixMemoLeak: boolean;
1259
1269
  }>;
1260
1270
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
1261
1271
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
package/es/env.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv;
10
- }
11
-
12
- declare module '*.vue' {
13
- // @ts-ignore
14
- import type { App, defineComponent } from 'vue';
15
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
- // // const component: DefineComponent<{}, {}, any>
17
- const component: ReturnType<typeof defineComponent> & {
18
- install(app: App): void;
19
- };
20
- // @ts-ignore
21
- export default component;
22
- }
23
-
24
- declare module '*.js';
25
-
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv;
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ // @ts-ignore
14
+ import type { App, defineComponent } from 'vue';
15
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
16
+ // // const component: DefineComponent<{}, {}, any>
17
+ const component: ReturnType<typeof defineComponent> & {
18
+ install(app: App): void;
19
+ };
20
+ // @ts-ignore
21
+ export default component;
22
+ }
23
+
24
+ declare module '*.js';
25
+
@@ -1 +1 @@
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(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function o(e,t,n,l){const o=e.value;if(!o)return;const u=e.selectionEnd||0,r=o.length;let a=0,s=0,c=0,d="",f=0;for(;a<r;){const e=o[a++];if(/\d/.test(e)&&(d+=e),a===u){c=d.length;const e=o.slice(a).match(/^\d+/);f=e?e[0].length:0}}const v=Array.isArray(t)?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)?t[1]:t[0]:t;let g="",m=0,p=0;for(a=0;a<v.length&&(l||!(s>=d.length));){const e=v[a++];if(/[yMdHms]/.test(e)?g+=d[s++]||"0":g+=e,n&&s===c){c=-1,m=g.length,p=m;let e=v.slice(a).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(g+=d.slice(s,s+f),s+=f),a+=e[0].length):(e=v.slice(a).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(m+=e[1].length,p=m+e[2].length))}}const h=g!==o;return h&&i(e,g),n&&(m=m||g.length+1,p=p||g.length+1,e.setSelectionRange(m,p)),h}function u(u,{formatRef:r,attrs:a,emit:s,allowedInvalidValue:c,isPanel:d}){const f=e((()=>{var e;return null==(e=u.value)?void 0:e.$el})),v=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`;a[n]&&(e[n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()))]=a[n])}(e,t))),e}));function g(e){if(function(e=""){return c&&c===e&&!d}(e.value))return void(null==s||s("update:formatted-value",c,null));o(e,t(r),!1,!0);const n=null==e?void 0:e.value,u=Reflect.get(a,"type")||"";n&&!u.includes("range")&&l(new Date(n))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=v.value;if(null==n?void 0:n(e.getTime()))return;const u=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,r=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,a=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==u?void 0:u(e.getHours()))return;if(null==r?void 0:r(e.getMinutes()))return;if(null==a?void 0:a(e.getSeconds()))return;return!0}(new Date(n))&&i(e)}return n(f,"input",(function(e){const n=e.target;if(!n.value||!Reflect.get(n,"_f_"))return;Reflect.set(n,"_f_",0),o(n,t(r),!0)&&(e.preventDefault(),e.stopPropagation())}),!0),n(f,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t)g(n);else if("Backspace"===t&&!d){const e=null==n?void 0:n.value;1===(null==e?void 0:e.length)&&(i(n),n.blur(),n.focus())}}),!0),n(f,"mouseup",(function(e){const t=e.target;["INPUT"].includes(t.tagName)&&0===e.button&&function(e){const{selectionStart:t=0,selectionEnd:n=0,value:l}=e;if(t!==n)return;const i=/(\d+)/g;let o,u,r;for(;null!==(o=i.exec(l));)if(t&&o.index<=t&&t<=i.lastIndex){u=o.index,r=i.lastIndex;break}void 0!==u&&void 0!==r&&e.setSelectionRange(u,r)}(t)}),!0),n(f,"paste",(function(e){var t,n;const l=(null==(t=e.clipboardData)?void 0:t.getData("text"))||"",o=null==(n=l.match(/\d+/g))?void 0:n.join(",");if(!o)return;e.preventDefault(),e.stopPropagation();const u=e.target;i(u,o),g(u)}),!0),{handleConfirm:g,focus:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.blur)?void 0:t.call(e)}}}export{i as handleInputEvent,u 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(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function o(e,t,n,l){const o=e.value;if(!o)return;const u=e.selectionEnd||0,r=o.length;let a=0,s=0,c=0,d="",f=0;for(;a<r;){const e=o[a++];if(/\d/.test(e)&&(d+=e),a===u){c=d.length;const e=o.slice(a).match(/^\d+/);f=e?e[0].length:0}}const v=Array.isArray(t)?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)?t[1]:t[0]:t;let g="",m=0,p=0;for(a=0;a<v.length&&(l||!(s>=d.length));){const e=v[a++];if(/[yMdHms]/.test(e)?g+=d[s++]||"0":g+=e,n&&s===c){c=-1,m=g.length,p=m;let e=v.slice(a).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(g+=d.slice(s,s+f),s+=f),a+=e[0].length):(e=v.slice(a).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(m+=e[1].length,p=m+e[2].length))}}const h=g!==o;return h&&i(e,g),n&&(m=m||g.length+1,p=p||g.length+1,e.setSelectionRange(m,p)),h}function u(u,{formatRef:r,attrs:a,emit:s,allowedInvalidValue:c,isPanel:d}){const f=e((()=>{var e;return null==(e=u.value)?void 0:e.$el})),v=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`,l=n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()));a[n]&&(e[l]=a[n]);a[l]&&(e[l]=a[l])}(e,t))),e}));function g(e){if(function(e=""){return c&&c===e&&!d}(e.value))return void(null==s||s("update:formatted-value",c,null));o(e,t(r),!1,!0);const n=null==e?void 0:e.value,u=Reflect.get(a,"type")||"";n&&!u.includes("range")&&l(new Date(n))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=v.value;if(null==n?void 0:n(e.getTime()))return;const u=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,r=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,a=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==u?void 0:u(e.getHours()))return;if(null==r?void 0:r(e.getMinutes()))return;if(null==a?void 0:a(e.getSeconds()))return;return!0}(new Date(n))&&i(e)}return n(f,"input",(function(e){const n=e.target;if(!n.value||!Reflect.get(n,"_f_"))return;Reflect.set(n,"_f_",0),o(n,t(r),!0)&&(e.preventDefault(),e.stopPropagation())}),!0),n(f,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t)g(n);else if("Backspace"===t&&!d){const e=null==n?void 0:n.value;1===(null==e?void 0:e.length)&&(i(n),n.blur(),n.focus())}}),!0),n(f,"mouseup",(function(e){const t=e.target;["INPUT"].includes(t.tagName)&&0===e.button&&function(e){const{selectionStart:t=0,selectionEnd:n=0,value:l}=e;if(t!==n)return;const i=/(\d+)/g;let o,u,r;for(;null!==(o=i.exec(l));)if(t&&o.index<=t&&t<=i.lastIndex){u=o.index,r=i.lastIndex;break}void 0!==u&&void 0!==r&&e.setSelectionRange(u,r)}(t)}),!0),n(f,"paste",(function(e){var t,n;const l=(null==(t=e.clipboardData)?void 0:t.getData("text"))||"",o=null==(n=l.match(/\d+/g))?void 0:n.join(",");if(!o)return;e.preventDefault(),e.stopPropagation();const u=e.target;i(u,o),g(u)}),!0),{handleConfirm:g,focus:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.blur)?void 0:t.call(e)}}}export{i as handleInputEvent,u as useDateTime};
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",s="3.2.15-release.5",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.2.15-release.5",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.2.16-beta.7",s="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.2.16-beta.7",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.2.15-release.5",
3
+ "version": "3.2.16-beta.7",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -72,5 +72,5 @@
72
72
  "iOS 7",
73
73
  "last 3 iOS versions"
74
74
  ],
75
- "gitHead": "62eba09083825f9b7bbaede9b9b1febdf9173548"
75
+ "gitHead": "cdb92ac832a584ded33d674940170ad168883e8e"
76
76
  }