cnhis-design-vue 3.2.5-beta.9 → 3.2.5-release.0

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 (27) hide show
  1. package/es/components/callback/src/components/render/popupMaps.d.ts +1527 -1
  2. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  3. package/es/components/card-reader-sdk/src/types/index.d.ts +1 -0
  4. package/es/components/form-config/index.d.ts +5 -0
  5. package/es/components/form-config/src/FormConfig.vue.d.ts +5 -0
  6. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -0
  7. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  8. package/es/components/form-config/src/types/index.d.ts +5 -0
  9. package/es/components/form-render/src/components/renderer/switch.d.ts +1 -1
  10. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  11. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  12. package/es/components/iho-table/index.d.ts +1527 -1
  13. package/es/components/iho-table/src/IhoTable.vue.d.ts +1527 -1
  14. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  15. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +3 -2
  16. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  17. package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +1 -1
  18. package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
  19. package/es/components/iho-table/src/types/index.d.ts +1 -0
  20. package/es/components/iho-table/src/types/pluginType.d.ts +2 -1
  21. package/es/components/iho-table/style/index.css +1 -1
  22. package/es/components/index.css +1 -1
  23. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
  24. package/es/components/shortcut-setter/index.d.ts +1 -0
  25. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
  26. package/es/shared/package.json.js +1 -1
  27. package/package.json +2 -2
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,ref as l,watch as a,openBlock as r,createElementBlock as i,Fragment as n,unref as s,createElementVNode as c,toDisplayString as o,normalizeStyle as d,renderList as u,normalizeClass as p,createTextVNode as h,createCommentVNode as v,createBlock as f}from"vue";import{useMessage as y,NEmpty as m}from"naive-ui";import{isEqual as k}from"lodash-es";import{useVirtualList as _}from"@vueuse/core";const g={class:"searchOrgAndStaff"},N={key:0,class:"searchOption"},S={class:"search_title"},C=["onClick"],b={class:"title"},x=["title"],D={class:"desc"},O={key:1,class:"SearchOption"},$={class:"search_title"},F=["onClick"],T={class:"title"},A={class:"desc"};var K=e({__name:"SearchOrgAndStaff",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},searchFilter:{type:Object,default:()=>({})},isMultiple:{type:Boolean,default:!0}},emits:["notifyCheck","notifyClear"],setup(e,{emit:K}){var M;const P=e,w=y(),E=t((()=>{var e;return null!=(e=P.searchFilter.itemHeight)?e:300})),H=t((()=>Math.floor(E.value/50))),W=null!=(M=t((()=>P.treeData.filter((e=>!e.children)))))?M:[],{list:j,containerProps:B,wrapperProps:I}=_(W,{itemHeight:50,overscan:H.value}),q=t((()=>({...B.style,height:`${E.value}px`}))),z=t((()=>P.treeData.filter((e=>e.children&&e.children.length>0)))),{list:G,containerProps:J,wrapperProps:L}=_(z,{itemHeight:50,overscan:H.value}),Q=t((()=>({...J.style,height:`${E.value}px`}))),R=l(P.checkedKeys),U=l([]);function V(e){var t;if(R.value.find((t=>t===e.key)))return void w.info(`${e.title}已被选择`);if(e.disabled)return void w.info(`${e.title}已被禁用`);switch((null==(t=e.children)?void 0:t.length)>0?"org":"staff"){case"org":!function(e,t,l){if(!P.isMultiple)return void(R.value=[l]);t.children.length>0&&Z(t.children);X(e,t,l)}(R.value,e,e.key);break;case"staff":X(R.value,e,e.key)}K("notifyCheck",R.value),(null==P?void 0:P.searchFilter.multiple)||K("notifyClear")}function X(e,t,l){var a;if(!P.isMultiple)return void(R.value=[l]);if(!(null==t?void 0:t.parentNode))return R.value=[...e,l],!1;const r=null==(a=t.parentNode)?void 0:a.key;if(e.includes(r))return R.value=e,w.info(`${t.title}已存在于${t.tempTitle}中`),!1;if(t.parentNode.children){const a=t.parentNode.children.every((t=>[...e,l].includes(t.key)));if(a){const l=null==t?void 0:t.parentNode.children.map((e=>e.key)),r=e.filter((e=>!l.includes(e)));return a&&Y(r,t.parentNode),!1}}X(e,t.parentNode,l)}function Y(e,t){if(!t.parentNode||t.parentNode.children.length>1)return R.value=[...e,t.key],!1;Y(e,t.parentNode)}function Z(e){e.forEach((e=>{var t;if(R.value.includes(e.key)){const t=R.value.indexOf(e.key);R.value.splice(t,1)}(null==(t=e.children)?void 0:t.length)>0&&Z(e.children)}))}function ee(e,t){const l=P.checkedKeys;return!!e&&(l.includes(e.key)?(U.value.push(t),!1):void ee(e.parentNode,t))}return a((()=>P.treeData),(e=>{e&&e.length>0&&(U.value=[],e.forEach((e=>{ee(e,e.key)})))}),{deep:!0,immediate:!0}),a((()=>P.checkedKeys),((e,t)=>{k(e,t)||P.treeData.length>0&&(U.value=[],R.value=e,P.treeData.forEach((e=>{ee(e,e.key)})))}),{immediate:!0}),(t,l)=>{var a,y;return r(),i("div",g,[e.treeData.length>0?(r(),i(n,{key:0},[s(W).length>0?(r(),i("div",N,[c("h4",S,o(null==(a=e.searchFilter)?void 0:a.customTitles[0]),1),c("section",{class:"select-person__multipleWrapper",ref:s(B).ref,style:d(s(j).length>s(H)?s(q):{}),onScroll:l[0]||(l[0]=(...e)=>s(B).onScroll&&s(B).onScroll(...e))},[c("section",{style:d(s(I).style)},[(r(!0),i(n,null,u(s(j),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:p(["search_item user_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",b,[h(o(e.data.title)+" ",1),c("span",{class:"user_item_expand",title:e.data.title_expand_strs},o(e.data.title_expand_strs),9,x)]),c("span",D,o(e.data.tempTitle),1)],10,C)])))),128))],4)],36)])):v("v-if",!0),s(z).length>0?(r(),i("div",O,[c("h4",$,o(null==(y=e.searchFilter)?void 0:y.customTitles[1]),1),c("section",{class:"person__OrgWrapper",ref:s(J).ref,style:d(s(G).length>s(H)?s(Q):{}),onScroll:l[1]||(l[1]=(...e)=>s(J).onScroll&&s(J).onScroll(...e))},[c("section",{style:d(s(L).style)},[(r(!0),i(n,null,u(s(G),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:p(["search_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",T,o(e.data.title)+"("+o(e.data.innerItemsNum)+"人)",1),c("span",A,o(e.data.tempTitle),1)],10,F)])))),128))],4)],36)])):v("v-if",!0)],64)):(r(),f(s(m),{key:1,description:"暂无数据"}))])}}});export{K as default};
1
+ import{defineComponent as e,computed as t,ref as l,watch as a,openBlock as r,createElementBlock as i,Fragment as n,unref as s,createElementVNode as c,toDisplayString as o,normalizeStyle as d,renderList as u,normalizeClass as p,createTextVNode as h,createCommentVNode as v,createBlock as f}from"vue";import{useMessage as y,NEmpty as m}from"naive-ui";import{isEqual as k}from"lodash-es";import{useVirtualList as g}from"@vueuse/core";const _={class:"searchOrgAndStaff"},N={key:0,class:"searchOption"},S={class:"search_title"},x=["onClick"],C={class:"title"},b=["title"],D={class:"desc"},O={key:1,class:"SearchOption"},$={class:"search_title"},F=["onClick"],T={class:"title"},A={class:"desc"};var K=e({__name:"SearchOrgAndStaff",props:{treeData:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},searchFilter:{type:Object,default:()=>({})},isMultiple:{type:Boolean,default:!0}},emits:["notifyCheck","notifyClear"],setup(e,{emit:K}){var M;const P=e,w=y(),E=t((()=>{var e;return null!=(e=P.searchFilter.itemHeight)?e:300})),H=t((()=>Math.floor(E.value/50))),W=null!=(M=t((()=>P.treeData.filter((e=>!e.children)))))?M:[],{list:j,containerProps:B,wrapperProps:I}=g(W,{itemHeight:50,overscan:H.value}),q=t((()=>{var e;return{...B.style,height:(null==(e=G.value)?void 0:e.length)>0?`${E.value}px`:2*E.value+"px"}})),z=t((()=>P.treeData.filter((e=>e.children&&e.children.length>0)))),{list:G,containerProps:J,wrapperProps:L}=g(z,{itemHeight:50,overscan:H.value}),Q=t((()=>{var e;return{...J.style,height:(null==(e=j.value)?void 0:e.length)>0?`${E.value}px`:2*E.value+"px"}})),R=l(P.checkedKeys),U=l([]);function V(e){var t;if(R.value.find((t=>t===e.key)))return void w.info(`${e.title}已被选择`);if(e.disabled)return void w.info(`${e.title}已被禁用`);switch((null==(t=e.children)?void 0:t.length)>0?"org":"staff"){case"org":!function(e,t,l){if(!P.isMultiple)return void(R.value=[l]);t.children.length>0&&Z(t.children);X(e,t,l)}(R.value,e,e.key);break;case"staff":X(R.value,e,e.key)}K("notifyCheck",R.value),(null==P?void 0:P.searchFilter.multiple)||K("notifyClear")}function X(e,t,l){var a;if(!P.isMultiple)return void(R.value=[l]);if(!(null==t?void 0:t.parentNode))return R.value=[...e,l],!1;const r=null==(a=t.parentNode)?void 0:a.key;if(e.includes(r))return R.value=e,w.info(`${t.title}已存在于${t.tempTitle}中`),!1;if(t.parentNode.children){const a=t.parentNode.children.every((t=>[...e,l].includes(t.key)));if(a){const l=null==t?void 0:t.parentNode.children.map((e=>e.key)),r=e.filter((e=>!l.includes(e)));return a&&Y(r,t.parentNode),!1}}X(e,t.parentNode,l)}function Y(e,t){if(!t.parentNode||t.parentNode.children.length>1)return R.value=[...e,t.key],!1;Y(e,t.parentNode)}function Z(e){e.forEach((e=>{var t;if(R.value.includes(e.key)){const t=R.value.indexOf(e.key);R.value.splice(t,1)}(null==(t=e.children)?void 0:t.length)>0&&Z(e.children)}))}function ee(e,t){const l=P.checkedKeys;return!!e&&(l.includes(e.key)?(U.value.push(t),!1):void ee(e.parentNode,t))}return a((()=>P.treeData),(e=>{e&&e.length>0&&(U.value=[],e.forEach((e=>{ee(e,e.key)})))}),{deep:!0,immediate:!0}),a((()=>P.checkedKeys),((e,t)=>{k(e,t)||P.treeData.length>0&&(U.value=[],R.value=e,P.treeData.forEach((e=>{ee(e,e.key)})))}),{immediate:!0}),(t,l)=>{var a,y;return r(),i("div",_,[e.treeData.length>0?(r(),i(n,{key:0},[s(W).length>0?(r(),i("div",N,[c("h4",S,o(null==(a=e.searchFilter)?void 0:a.customTitles[0]),1),c("section",{class:"select-person__multipleWrapper",ref:s(B).ref,style:d(s(j).length>s(H)?s(q):{}),onScroll:l[0]||(l[0]=(...e)=>s(B).onScroll&&s(B).onScroll(...e))},[c("section",{style:d(s(I).style)},[(r(!0),i(n,null,u(s(j),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:p(["search_item user_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",C,[h(o(e.data.title)+" ",1),c("span",{class:"user_item_expand",title:e.data.title_expand_strs},o(e.data.title_expand_strs),9,b)]),c("span",D,o(e.data.tempTitle),1)],10,x)])))),128))],4)],36)])):v("v-if",!0),s(z).length>0?(r(),i("div",O,[c("h4",$,o(null==(y=e.searchFilter)?void 0:y.customTitles[1]),1),c("section",{class:"person__OrgWrapper",ref:s(J).ref,style:d(s(G).length>s(H)?s(Q):{}),onScroll:l[1]||(l[1]=(...e)=>s(J).onScroll&&s(J).onScroll(...e))},[c("section",{style:d(s(L).style)},[(r(!0),i(n,null,u(s(G),(e=>(r(),i("div",{class:"select-person__multiple-search",key:e.data.key},[c("div",{class:p(["search_item",e.data.disabled?"search_disabled":""]),onClick:t=>V(e.data)},[c("span",T,o(e.data.title)+"("+o(e.data.innerItemsNum)+"人)",1),c("span",A,o(e.data.tempTitle),1)],10,F)])))),128))],4)],36)])):v("v-if",!0)],64)):(r(),f(s(m),{key:1,description:"暂无数据"}))])}}});export{K as default};
@@ -128,6 +128,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
128
128
  value?: any;
129
129
  describe?: string | undefined;
130
130
  } | undefined;
131
+ requiredReminderContent?: string | undefined;
131
132
  date_format?: string | undefined;
132
133
  step_length?: string | number | undefined;
133
134
  urlConfig?: {
@@ -131,6 +131,7 @@ declare const _default: import("vue").DefineComponent<{
131
131
  value?: any;
132
132
  describe?: string | undefined;
133
133
  } | undefined;
134
+ requiredReminderContent?: string | undefined;
134
135
  date_format?: string | undefined;
135
136
  step_length?: string | number | undefined;
136
137
  urlConfig?: {
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.2.5-beta.9",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.5-beta.9",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};
1
+ var e="@cnhis-design-vue/shared",s="3.2.5-release.0",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.5-release.0",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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.2.5-beta.9",
3
+ "version": "3.2.5-release.0",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -71,5 +71,5 @@
71
71
  "iOS 7",
72
72
  "last 3 iOS versions"
73
73
  ],
74
- "gitHead": "4f3d48dd57218249df03603f061d4058af8f60fa"
74
+ "gitHead": "3995d847a8298b57e060ffb5fa374b8d59814dc4"
75
75
  }