cnhis-design-vue 3.2.15-beta.5 → 3.2.15-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.
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/iho-chat/index.d.ts +252 -18
- package/es/components/iho-chat/src/Index.vue.d.ts +252 -18
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +9 -0
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +34 -34
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +202 -3
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/userItemRender.d.ts +18 -0
- package/es/components/iho-chat/src/components/userItemRender.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +2 -0
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +1 -0
- package/es/components/iho-chat/src/types/index.d.ts +2 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
import{deepOmit as e}from"../utils/index.js";import"naive-ui";import{computed as t,ref as r,watch as n,unref as i}from"vue";import"@vueuse/core";import"date-fns";import{isEqual as o,noop as a,isString as l,isNumber as u,isEmpty as s,isFunction as c,cloneDeep as d,omit as v,isArray as p}from"lodash-es";import{useFormRequest as h}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"./useScrollLoading.js";function y(y,f,{asyncQueue:m,fieldKey:k,getRequestPayload:g=a}){const b=t({get:()=>y.value,set(e){o(e,y.value)||f("update:value",e)}}),w=r(!1),_=r([]),O=t((()=>{var e,t,r;return null!=(r=null==(t=null==(e=y.wordbook)?void 0:e.show_key)?void 0:t[0])?r:y.labelField})),L=t((()=>{var e,t;return null!=(t=null==(e=y.wordbook)?void 0:e.value_key)?t:y.valueField})),j=t((()=>{var e,t;return null==(t=null==(e=y.wordbook)?void 0:e.render_key)?void 0:t[0]})),C=t((()=>{var e;return(null==(e=y.wordbook)?void 0:e.level_num)||1/0})),K=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=d(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(v(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>p(t)&&!s(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(L,O,j),{getSearchRequestInfo:I}=h(),
|
1
|
+
import{deepOmit as e}from"../utils/index.js";import"naive-ui";import{computed as t,ref as r,watch as n,unref as i}from"vue";import"@vueuse/core";import"date-fns";import{isEqual as o,noop as a,isString as l,isNumber as u,isEmpty as s,isFunction as c,cloneDeep as d,omit as v,isArray as p}from"lodash-es";import{useFormRequest as h}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"./useScrollLoading.js";function y(y,f,{asyncQueue:m,fieldKey:k,getRequestPayload:g=a}){const b=t({get:()=>y.value,set(e){o(e,y.value)||f("update:value",e)}}),w=r(!1),_=r([]),O=t((()=>{var e,t,r;return null!=(r=null==(t=null==(e=y.wordbook)?void 0:e.show_key)?void 0:t[0])?r:y.labelField})),L=t((()=>{var e,t;return null!=(t=null==(e=y.wordbook)?void 0:e.value_key)?t:y.valueField})),j=t((()=>{var e,t;return null==(t=null==(e=y.wordbook)?void 0:e.render_key)?void 0:t[0]})),C=t((()=>{var e;return(null==(e=y.wordbook)?void 0:e.level_num)||1/0})),K=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=d(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(v(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>p(t)&&!s(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(L,O,j),{getSearchRequestInfo:I}=h(),R=r(150),N=r();async function P(t,r,n,o=!0){var a,d;if(R.value=r&&(null==(a=N.value)?void 0:a.getWidth())||150,K.shouldInitOptionList(b.value,t,r)){const[e,t]=K.transformListToChildren(b.value),r=e[Math.max(0,e.length-2)];if(b.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await P(r,void 0,!1,!1),r}if(null==(d=_.value)?void 0:d.length)return r}try{return K.isClickNodeCheckbox(t)?v(t):t?t.__keyword?async function(){var r;if(!l(t.id_link))return Promise.reject(`id_link isn't string "${t.id_link}"`);const o=K.parseLinkFromString2List(t.id_link);u(C.value)&&C.value!==1/0&&o.splice(C.value);const a=await async function(e){if(!I().primaryKeyUrl)return[];try{return await m.addAsync(t(y.wordbook,y.autograph,e,i(k)))}catch(e){l(e)&&console.error(e)}function t(e,t,r,n){const i={...I()};Reflect.deleteProperty(i,"mergeUrl");return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:y.requestCache,payload:{field:{},labelKey:O.value,valueKey:L.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:c,options:d}=K.generateOptionWithIdList(a,o,C.value);o.length<C.value&&(n&&(isNaN(+y.checkAbleLevel)||o.length>=+y.checkAbleLevel)?c&&(c.children=[]):await P(c));if(s(null==c?void 0:c.children))return b.value=e(K.sortOptionWithIdList(a,o),["parent","children"]),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=d,null==(r=N.value)||r.setCursor(c),c}():async function(){const e=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));if(!e.length)return o?v(t):Promise.reject("childrenList is empty");t.children=e.map((e=>K.enrichChildOption(e,t,C.value)))}():async function(){var e;const n=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));_.value=n.map((e=>K.enrichKeywordOption(e,r))),r&&(null==(e=N.value)||e.setCursor(_.value[0]))}()}catch(e){l(e)&&console.error(e)}function v(e){return b.value=K.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function p(e,t,n,i){const o={autograph:()=>t,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(K.createConfigObject(e,r,n)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>r,page:()=>1},a=Object.entries(o).reduce(((t,[r,n])=>(t[r]=l(n)?e[n]:c(n)?n():void 0,t)),{});return{...I(),params:a,key:i,cache:y.requestCache,payload:{...g(),labelKey:O.value,valueKey:L.value}}}}return n((()=>y.wordbook),((e,t)=>{o(e,t)||(_.value=[],e&&(b.value||!y.lazyRequest)&&P())}),{immediate:!0}),{valueRef:b,labelKey:O,valueKey:L,optionsRef:_,showRef:w,fetchData:P,menuWidth:R,searchCascaderRef:N}}export{y as useLevelSearchCascader};
|
@@ -1 +1 @@
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.2.15-beta.
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.2.15-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.15-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-beta.
|
3
|
+
"version": "3.2.15-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": "
|
75
|
+
"gitHead": "60bef4d6d4835583186e027572919a8fcdced2fd"
|
76
76
|
}
|