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

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 (72) 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/date-picker/src/DatePicker.vue2.js +1 -1
  10. package/es/components/expand-field/index.d.ts +26 -0
  11. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +26 -0
  12. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +26 -0
  13. package/es/components/expand-field/src/components/form.vue.d.ts +26 -0
  14. package/es/components/expand-field/src/index.vue.d.ts +26 -0
  15. package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
  16. package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
  17. package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
  18. package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
  19. package/es/components/form-config/index.d.ts +30 -0
  20. package/es/components/form-config/src/FormConfig.vue.d.ts +30 -0
  21. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +10 -0
  22. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +10 -0
  23. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +10 -0
  24. package/es/components/form-render/index.d.ts +10 -0
  25. package/es/components/form-render/src/FormRender.vue.d.ts +10 -0
  26. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  27. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +10 -0
  28. package/es/components/form-render/src/components/renderer/input.d.ts +9 -1
  29. package/es/components/form-render/src/components/renderer/input.js +1 -1
  30. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  31. package/es/components/iho-chat/index.d.ts +181 -23
  32. package/es/components/iho-chat/src/Index.vue.d.ts +181 -23
  33. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  34. package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
  35. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  36. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +24 -12
  37. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +150 -7
  38. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  39. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +12 -6
  40. package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +137 -0
  41. package/es/components/iho-chat/src/components/MessageEvent.vue.js +1 -0
  42. package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -0
  43. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +6 -3
  44. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  45. package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +13 -6
  46. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  47. package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
  48. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  49. package/es/components/iho-chat/src/constants/index.d.ts +2 -1
  50. package/es/components/iho-chat/src/constants/index.js +1 -1
  51. package/es/components/iho-chat/src/hooks/useVideo.d.ts +2 -2
  52. package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
  53. package/es/components/iho-chat/src/utils/asyncQueue.d.ts +10 -0
  54. package/es/components/iho-chat/src/utils/asyncQueue.js +1 -0
  55. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  56. package/es/components/iho-table/src/types/index.d.ts +14 -0
  57. package/es/components/iho-table/src/utils/index.js +1 -1
  58. package/es/components/index.css +1 -1
  59. package/es/components/info-header/index.d.ts +20 -0
  60. package/es/components/info-header/src/InfoHeader.vue.d.ts +20 -0
  61. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +10 -0
  62. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +10 -0
  63. package/es/components/select-person/index.d.ts +26 -0
  64. package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
  65. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  66. package/es/components/select-person/src/index.vue.d.ts +26 -0
  67. package/es/components/select-person/src/index.vue2.js +1 -1
  68. package/es/components/shortcut-setter/index.d.ts +10 -0
  69. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +10 -0
  70. package/es/shared/hooks/useDateTime.js +1 -1
  71. package/es/shared/package.json.js +1 -1
  72. package/package.json +2 -2
@@ -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.8",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.8",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.8",
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": "0c8d52879f8a04385943be11060287ffb6dcc0bd"
76
76
  }