cnhis-design-vue 3.2.15-beta.17 → 3.2.15-beta.20
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/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -2
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/form-config/index.d.ts +1021 -1
- package/es/components/form-config/src/FormConfig.vue.d.ts +1021 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1019 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/iho-chat/index.d.ts +232 -57
- package/es/components/iho-chat/src/Index.vue.d.ts +232 -57
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +33 -8
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +33 -8
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +33 -8
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +99 -24
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +33 -8
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +33 -8
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +33 -8
- package/es/components/iho-chat/style/iconfont.ttf +0 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +4 -0
- package/package.json +2 -2
package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as i,createBlock as o,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as f,h as p}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as S}from"../helpers/setDefaultValue.js";import{WholeSelectObj as O}from"../helpers/selectExtraMap.js";import{WidgetValEnums as w}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as N}from"../../../constants/index.js";import j from"./SelectDynamicOption/index.vue.js";import{isEqual as k,cloneDeep as C}from"lodash-es";var A=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:A}){const J=e,L=d(),P="SQL",D="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(N),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(O))]),M=l([]),V=l(),F=l(0),H={class:"select-dynamic-popover"},Q=u((()=>I.multiple)),R=u((()=>{const{widgetCfg:e}=J.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=J.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>F.value>0&&U.value>=F.value)),B=u((()=>{var e;if(Array.isArray(J.value)&&J.value.length>0){const
|
1
|
+
import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as i,createBlock as o,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as f,h as p}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as S}from"../helpers/setDefaultValue.js";import{WholeSelectObj as O}from"../helpers/selectExtraMap.js";import{WidgetValEnums as w}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as N}from"../../../constants/index.js";import j from"./SelectDynamicOption/index.vue.js";import{isEqual as k,cloneDeep as C}from"lodash-es";var A=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:A}){const J=e,L=d(),P="SQL",D="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(N),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(O))]),M=l([]),V=l(),F=l(0),H={class:"select-dynamic-popover"},Q=u((()=>I.multiple)),R=u((()=>{const{widgetCfg:e}=J.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=J.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>F.value>0&&U.value>=F.value)),B=u((()=>{var e,a;if(Array.isArray(J.value)&&J.value.length>0){const a=J.value;if(X(a),a.includes(O.value)){const e=_.value.find((e=>e.value===O.value)),a=e||O;return Q.value?[a]:JSON.stringify(a)}if(!Q.value&&1==a.length){const l=_.value.find((e=>e.value===a[0]));return l?JSON.stringify(l):JSON.stringify({label:(null==(e=a[0])?void 0:e.includes("&"))?a[0].split("&")[0]:a[0],value:a[0]})}const l=_.value.filter((e=>a.includes(e.value))),t=l.map((e=>e.value)),u=a.filter((e=>!t.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...l,...u]}return X([]),J.value?JSON.stringify({label:(null==(a=J.value)?void 0:a.includes("&"))?J.value.split("&")[0]:J.value,value:J.value}):null})),G=u((()=>{if(Object.keys(R.value).length>0){const{defaultParams:e=[]}=R.value;return S(e)&&!J.value}return!1}));function X(e){_.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Y(e){const{widgetCfg:a}=J.componentCfg,{linkageFieldKeys:l=[]}=a;k(J.value,e)||(l.forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),A("update:value",e))}async function Z(e){var a;U.value=e,null==(a=null==E?void 0:E.value)||a.focus(),await ee(V.value,U.value)}async function ee(e,a){try{if(K.value=!0,Object.keys(R.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:i=[],showKeys:o,valueKey:s,tableDataType:r}=R.value;let v={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};switch(r){case P:v.keyword=e;break;case D:n.length>0&&(v[n[0]]=e)}if(S(i)){const e=i.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&a.value!==w.WHOLE&&(v[e]=a.value)}))}let c=await x(v,T);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[o[0]],value:`${e[o[0]]}&${e[s]}`}))),u=C(t);q.value&&t.unshift(JSON.parse(JSON.stringify(O))),W.value=null!=e?e:[],_.value=null!=t?t:[],M.value=u,F.value=l}}}catch(e){L.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{K.value=!1}}const ae=g((async e=>{await async function(e){V.value=e.trim(),U.value=1,await ee(V.value,U.value)}(e)}),300);async function le(){Object.keys(R.value).length>0&&T&&await ee("",U.value)}async function te(){A("update:value",null),await le()}function ue(e){V.value="",e&&(U.value=1,le())}function ne({option:e,handleClose:a}){if(Q.value){const l=e.value;return p(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(J.value)&&J.value.length>0){const e=J.value,a=e.indexOf(l.value);a>-1&&(e.splice(a,1),A("update:value",e.length>0?e:null))}}},{default:()=>p("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return p("div",l.label)}return n((()=>{G.value||le()})),(e,a)=>(i(),o(s(m),r({ref_key:"selectDynamicRef",ref:E},s(I),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>v(B)?B.value=e:null),remote:"",loading:K.value,"render-tag":ne,"menu-props":H,onSearch:s(ae),onClear:te,"onUpdate:show":ue}),{empty:c((()=>[f(j,r(s(I),{oldValue:J.value,loading:K.value,dynamicOptionInfo:s(R),fieldTitleList:W.value,optionList:_.value,isMultiple:s(Q),curPage:U.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:Y,onUpdatePage:Z}),null,16,["oldValue","loading","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{A as default};
|
@@ -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.20",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.20",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};
|
@@ -79,6 +79,10 @@ export declare namespace LowCodeTypes {
|
|
79
79
|
notRequiredField: string[];
|
80
80
|
enabledField: string[];
|
81
81
|
disabledField: string[];
|
82
|
+
setValueField: {
|
83
|
+
field?: string;
|
84
|
+
value?: unknown;
|
85
|
+
}[];
|
82
86
|
__oppositeBindField: reactionConfig;
|
83
87
|
__oppositeTargetField: reactionConfig;
|
84
88
|
}>;
|
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.20",
|
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": "84aa98e5724b9704d95b59c3d3e665a094b8a753"
|
76
76
|
}
|