cnhis-design-vue 3.1.42-release.5 → 3.1.42-release.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 (91) hide show
  1. package/README.md +87 -87
  2. package/es/components/button-print/src/utils/print.js +1 -1
  3. package/es/components/classification/index.d.ts +12 -12
  4. package/es/components/classification/src/components/set-classification/index.vue.d.ts +9 -9
  5. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  6. package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -9
  7. package/es/components/classification/src/components/table-modal/index.vue.js +1 -1
  8. package/es/components/classification/src/index.vue.d.ts +12 -12
  9. package/es/components/classification/src/index.vue.js +1 -1
  10. package/es/components/fabric-chart/index.d.ts +2 -2
  11. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  12. package/es/components/form-config/index.d.ts +22 -17
  13. package/es/components/form-config/src/FormConfig.vue.d.ts +22 -17
  14. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +6 -6
  15. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -9
  16. package/es/components/form-config/src/constants/index.d.ts +8 -1
  17. package/es/components/form-config/src/constants/index.js +1 -1
  18. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  19. package/es/components/form-render/index.d.ts +6 -6
  20. package/es/components/form-render/src/FormRender.vue.d.ts +6 -6
  21. package/es/components/form-render/src/FormRender.vue.js +1 -1
  22. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +6 -6
  23. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  24. package/es/components/form-render/src/components/renderer/searchCascade.d.ts +18 -0
  25. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  26. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -0
  27. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  28. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  29. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  30. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  31. package/es/components/form-render/src/types/fieldItem.d.ts +5 -1
  32. package/es/components/form-render/src/types/index.d.ts +1 -1
  33. package/es/components/iho-table/index.d.ts +2 -0
  34. package/es/components/iho-table/src/IhoTable.vue.d.ts +2 -0
  35. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
  36. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  37. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +48 -0
  38. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +1 -0
  39. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.d.ts +1 -0
  40. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -0
  41. package/es/components/iho-table/src/plugins/index.js +1 -1
  42. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  43. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js +1 -0
  44. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  45. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  46. package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -1
  47. package/es/components/iho-table/src/plugins/rowDragPlugin/index.js +1 -1
  48. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  49. package/es/components/iho-table/src/types/index.d.ts +8 -0
  50. package/es/components/iho-table/src/types/pluginType.d.ts +7 -2
  51. package/es/components/iho-table/src/utils/index.d.ts +1 -0
  52. package/es/components/iho-table/src/utils/index.js +1 -1
  53. package/es/components/index.css +1 -1
  54. package/es/components/info-header/index.d.ts +15 -15
  55. package/es/components/info-header/src/InfoHeader.vue.d.ts +15 -15
  56. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  57. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  58. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  59. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  60. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -9
  61. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +6 -6
  62. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  63. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  64. package/es/components/search-cascader/src/constants/index.d.ts +1 -1
  65. package/es/components/select-label/index.d.ts +1 -1
  66. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  67. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  68. package/es/components/select-person/index.d.ts +183 -2
  69. package/es/components/select-person/src/SearchMultiple.vue.d.ts +131 -0
  70. package/es/components/select-person/src/SearchMultiple.vue.js +1 -0
  71. package/es/components/select-person/src/SearchMultiple.vue2.js +1 -0
  72. package/es/components/select-person/src/SelectPerson.vue.d.ts +176 -3
  73. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  74. package/es/components/select-person/src/utils/index.js +1 -1
  75. package/es/components/select-person/style/index.css +1 -1
  76. package/es/components/shortcut-setter/index.d.ts +8 -7
  77. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -7
  78. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +3 -3
  79. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -1
  80. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
  81. package/es/env.d.ts +25 -25
  82. package/es/shared/package.json.js +1 -0
  83. package/es/shared/utils/index.js +1 -1
  84. package/package.json +2 -2
  85. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  86. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  87. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  88. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  89. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  90. package/es/shared/utils/tapable/index.d.ts +0 -139
  91. /package/es/components/{bpmn-workflow/src/BpmnWorkflow.d.ts → iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts} +0 -0
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,computed as t,watch as a,openBlock as n,createBlock as o,unref as u,withCtx as r,createVNode as i,withKeys as d,createTextVNode as c,toDisplayString as s,withDirectives as h,vShow as p,createCommentVNode as v,createElementBlock as f,createElementVNode as y,Fragment as k,renderList as m}from"vue";import{NGrid as g,NGi as b,NSpace as _,NInputGroup as w,NInput as x,NButton as C,NCheckbox as L,NTree as j,NIcon as T,NTooltip as $}from"naive-ui";import{CloseCircleSharp as q}from"@vicons/ionicons5";import{filterTree as B,getExpandedKeys as D}from"./utils/index.js";import{cloneDeep as P}from"lodash-es";const S={key:0},U={class:"c-select-person__scroll",style:{height:"342px"}};var N=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check"],setup(e,{emit:N}){const K=e,A=l(""),E=l(!1),F=l([]),I=l([]),O=l([]),R=l([]),z=P(function e(l,t){return l&&0!==l.length?l.map((l=>{var a;const n=V(l),o=t?`${t}/${n}`:n;return{...l,tempTitle:t,children:(null==(a=l.children)?void 0:a.length)?e(null==l?void 0:l.children,o):[]}})):[]}(K.data,""));let G=[];const H=t((()=>!!K.queryLoadChildData));async function J(e){if(K.queryLoadChildData){const l=await K.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.tempTitle}/${l.title}`:l.title})))),l}return e}function M(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function Q({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||H.value&&!(null==e?void 0:e.isLeaf)){const l=K.wordbook.user_count_obj&&e[K.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return i("span",null,[`${e.title}${t}`])}return i($,{trigger:"hover"},{default:()=>i("span",null,[e.title]),trigger:()=>i("span",null,[e.title])})}function V(e){return e[K.wordbookChild.user_name_obj]||e[K.wordbook.parent_name_obj]||e.orgName||e.title||""}function W(e){var l;for(let t=0,a=e.length;t<a;t++){const a=e[t];(null==(l=a.children)?void 0:l.length)&&W(a.children),a.disabled||a.children||G.push(a.key)}}async function X(){H.value?O.value=await K.queryTreeSearch(A.value):(O.value=B(z,A.value),G=[],W(O.value),te()),I.value=O.value.length&&A.value?D(O.value):[]}function Y(e,l){for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&(!a.children||a.isLeaf)&&(l&&!F.value.includes(a.key)&&F.value.push(a.key),!l)){const e=F.value.findIndex((e=>e===a.key));F.value.splice(e,1)}a.children&&Y(a.children,l)}}function Z(e){Y(O.value,e)}function ee(e){var l;for(let t=0,a=e.length;t<a;t++){const a=e[t];F.value.includes(a.key)&&R.value.push({key:a.key,name:a.title,parentName:a.tempTitle}),(null==(l=a.children)?void 0:l.length)&&ee(a.children)}}function le(e){F.value=e}function te(){E.value=G.every((e=>R.value.findIndex((l=>l.key===e))>-1))}function ae(){F.value=[]}return function e(l){var t,a;for(let n=0,o=l.length;n<o;n++){const o=l[n];o.title=V(o),o.key||(o.key=o[K.wordbookChild.user_id_obj]||o[K.wordbook.parent_id_obj]||Date.now()),(null==(t=o.children)?void 0:t.length)?(e(o.children),M(o)):0===(null==(a=o.children)?void 0:a.length)&&Reflect.deleteProperty(o,"children"),o.disabled||o.children||G.push(o.key)}}(z),O.value=z,K.defaultList.length>0&&(H.value?(K.defaultList.forEach((e=>F.value.push(e.key))),R.value=P(K.defaultList)):(K.defaultList.forEach((e=>F.value.push(e))),ee(z))),a((()=>F),(e=>{R.value=[],e.value.length&&ee(H.value?O.value:z),te(),N("check",e.value)}),{deep:!0}),(l,t)=>(n(),o(u(g),{cols:2,class:"c-select-person"},{default:r((()=>[i(u(b),null,{default:r((()=>[i(u(_),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:r((()=>[i(u(w),{style:{"margin-bottom":"12px"}},{default:r((()=>[i(u(x),{clearable:"",value:A.value,"onUpdate:value":t[0]||(t[0]=e=>A.value=e),placeholder:e.searchPlaceholder,onKeyup:d(X,["enter"])},null,8,["value","placeholder","onKeyup"]),i(u(C),{type:"primary",onClick:X},{default:r((()=>[c(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple?h((n(),o(u(L),{key:0,checked:E.value,"onUpdate:checked":[t[1]||(t[1]=e=>E.value=e),Z]},{default:r((()=>[c(" 全选 ")])),_:1},8,["checked"])),[[p,u(G).length<1e3]]):v("v-if",!0),i(u(j),{"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":F.value,"expanded-keys":I.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>I.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":F.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>F.value=e),data:O.value,"check-strategy":"child","render-label":Q,"onUpdate:checkedKeys":le,onLoad:J},null,8,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"])])),_:1})])),_:1}),i(u(b),null,{default:r((()=>[i(u(_),{vertical:"",style:{"padding-left":"12px"}},{default:r((()=>[i(u(_),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:r((()=>[e.showCount?(n(),f("span",S,"已选择:"+s(R.value.length),1)):v("v-if",!0),e.showClear?(n(),f("span",{key:1,class:"c-select-person__clear-btn",onClick:ae},"清空")):v("v-if",!0)])),_:1}),y("div",U,[(n(!0),f(k,null,m(R.value,(e=>(n(),f("span",{class:"c-select-person__tag-item",key:e.key},[c(s(e.name)+" "+s(e.parentName?`(${e.parentName})`:"")+" ",1),i(u(T),{class:"tag-close",component:u(q),onClick:l=>function(e){F.value=F.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{N as default};
1
+ import{defineComponent as e,ref as l,computed as t,watch as a,openBlock as n,createBlock as u,unref as i,withCtx as o,createVNode as r,withKeys as c,createTextVNode as d,toDisplayString as s,withDirectives as v,vShow as h,createCommentVNode as p,mergeProps as f,createElementBlock as y,createElementVNode as k,Fragment as m,renderList as g}from"vue";import{NGrid as b,NGi as _,NSpace as w,NInputGroup as C,NInput as x,NButton as L,NCheckbox as S,NTree as j,NIcon as T,NTooltip as N}from"naive-ui";import{CloseCircleSharp as $}from"@vicons/ionicons5";import{filterTree as I,getExpandedKeys as D}from"./utils/index.js";import{cloneDeep as q}from"lodash-es";import B from"./SearchMultiple.vue.js";const K={key:0},P={class:"c-select-person__scroll",style:{height:"342px"}};var U=e({__name:"SelectPerson",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:"输入关键字搜索"},searchButtonText:{type:String,default:"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])}},emits:["check","checkWithLevel"],setup(e,{emit:U}){const E=e,O=l(""),A=l(!1),F=l([]),W=l([]),M=l([]),R=l([]),z=l([]),G=l(!1),H=q(((J=E.data).forEach((e=>{var l;if(null==(l=e.children)?void 0:l.length){const l=ne(e.children,[]);e.innerItemsNum=l.length}})),ue(J,"")));var J;let Q=[];const V=t((()=>!!E.queryLoadChildData)),X=t((()=>{var e,l;return null!=(l=null==(e=null==E?void 0:E.treeSetting)?void 0:e.checkStrategy)?l:"child"}));function Y(e){e.disabled||e.children||!e.key||Q.push(e.key)}function Z(e){e.disabled||e.tempTitle||!e.key||Q.push(e.key)}async function ee(e){if(E.queryLoadChildData){const l=await E.queryLoadChildData(e);return l.children&&(l.children=l.children.map((e=>({...e,tempTitle:l.tempTitle?`${l.title}/${l.tempTitle}`:l.title})))),l}return e}function le(e){var l;(null==(l=e.children)?void 0:l.every((e=>e.disabled)))&&(e.disabled=!0)}function te({option:e}){var l;if((null==(l=e.children)?void 0:l.length)||V.value&&!(null==e?void 0:e.isLeaf)){const l=E.wordbook.user_count_obj&&e[E.wordbook.user_count_obj]||"",t=l?`(${l})`:"";return r("span",null,[`${e.title}${t}`])}return r(N,{trigger:"hover"},{default:()=>r("span",null,[e.title]),trigger:()=>r("span",null,[e.title])})}function ae(e){return e[E.wordbookChild.user_name_obj]||e[E.wordbook.parent_name_obj]||e.orgName||e.title||""}function ne(e,l){return e.forEach((e=>{var t;(null==(t=e.children)?void 0:t.length)?ne(e.children,l):l.push(e)})),l}function ue(e,l){return e&&0!==e.length?e.map((e=>{var t;const a=ae(e),n=l?`${a}/${l}`:a;return{...e,tempTitle:l,children:(null==(t=e.children)?void 0:t.length)?ue(null==e?void 0:e.children,n):[]}})):[]}async function ie(){G.value=!!O.value.trim(),V.value?M.value=await E.queryTreeSearch(O.value):M.value=I(H,O.value),W.value=M.value.length&&O.value?D(M.value):[]}function oe(){setTimeout((()=>{ie()}))}function re(e,l){var t,a;switch(null!=(a=null==(t=null==E?void 0:E.treeSetting)?void 0:t.checkStrategy)?a:"child"){case"child":!function(e,l){for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&(!a.children||a.isLeaf)&&(l&&!F.value.includes(a.key)&&F.value.push(a.key),!l)){const e=F.value.findIndex((e=>e===a.key));F.value.splice(e,1)}a.children&&re(a.children,l)}}(e,l);break;case"parent":!function(e,l){F.value=[];for(let t=0,a=e.length;t<a;t++){const a=e[t];if(!a.disabled&&!a.tempTitle&&(l&&!F.value.includes(a.key)&&F.value.push(a.key),!l)){const e=F.value.findIndex((e=>e===a.key));F.value.splice(e,1)}}}(e,l)}}function ce(e){re(M.value,e)}function de(e){var l;for(let t=0,a=e.length;t<a;t++){const a=e[t],n=z.value.map((e=>e.key));F.value.includes(a.key)&&!n.includes(a.key)&&R.value.push({key:a.key,name:a.title,parentName:a.tempTitle,innerItemsNum:a.innerItemsNum}),(null==(l=a.children)?void 0:l.length)&&de(a.children)}}function se(e){F.value=e}function ve(){F.value=[]}function he(e){F.value=e}return function e(l,t){var a,n,u,i;for(let o=0,r=l.length;o<r;o++){const r=l[o];switch(r.title=ae(r),r.parentNode=t,r.key||(r.key=r[E.wordbookChild.user_id_obj]||r[E.wordbook.parent_id_obj]||Date.now()),(null==(a=r.children)?void 0:a.length)?(e(r.children,r),le(r)):0===(null==(n=r.children)?void 0:n.length)&&Reflect.deleteProperty(r,"children"),null!=(i=null==(u=null==E?void 0:E.treeSetting)?void 0:u.checkStrategy)?i:"child"){case"child":Y(r);break;case"parent":Z(r)}}}(H,null),M.value=H,E.defaultList.length>0&&(V.value?(E.defaultList.forEach((e=>F.value.push(e.key))),R.value=q(E.defaultList),z.value=q(E.defaultList)):(E.defaultList.forEach((e=>F.value.push(e))),de(H))),a((()=>F),(e=>{R.value=z.value.filter((l=>e.value.includes(l.key))),e.value.length&&de(V.value?M.value:H),A.value=Q.every((e=>R.value.findIndex((l=>l.key===e))>-1));const l=R.value.filter((l=>e.value.includes(l.key)));U("check",e.value),U("checkWithLevel",l)}),{deep:!0}),(l,t)=>(n(),u(i(b),{cols:2,class:"c-select-person"},{default:o((()=>[r(i(_),null,{default:o((()=>[r(i(w),{vertical:"",style:{"padding-right":"12px","border-right":"1px solid #e8e8e8"}},{default:o((()=>[r(i(C),{style:{"margin-bottom":"12px"}},{default:o((()=>[r(i(x),{clearable:"",value:O.value,"onUpdate:value":t[0]||(t[0]=e=>O.value=e),placeholder:e.searchPlaceholder,onClear:oe,onKeyup:c(ie,["enter"])},null,8,["value","placeholder","onKeyup"]),r(i(L),{type:"primary",onClick:ie},{default:o((()=>[d(s(e.searchButtonText),1)])),_:1})])),_:1}),e.multiple&&!G.value?v((n(),u(i(S),{key:0,checked:A.value,"onUpdate:checked":[t[1]||(t[1]=e=>A.value=e),ce]},{default:o((()=>[d(" 全选 ")])),_:1},8,["checked"])),[[h,i(Q).length<1e3]]):p("v-if",!0),e.multiple&&G.value&&"parent"===i(X)?(n(),u(B,{key:1,treeData:M.value,checkedKeys:F.value,onNotifyCheck:he},null,8,["treeData","checkedKeys"])):(n(),u(i(j),f({key:2,"virtual-scroll":"",class:"c-select-person__scroll","checked-keys":F.value,"expanded-keys":W.value,"onUpdate:expanded-keys":t[2]||(t[2]=e=>W.value=e),checkable:e.multiple,cascade:"","allow-checking-not-loaded":"",selectable:!e.multiple,"selected-keys":F.value,"onUpdate:selected-keys":t[3]||(t[3]=e=>F.value=e),data:M.value,"check-strategy":"child","render-label":te},e.treeSetting,{"onUpdate:checkedKeys":se,onLoad:ee}),null,16,["checked-keys","expanded-keys","checkable","selectable","selected-keys","data"]))])),_:1})])),_:1}),r(i(_),null,{default:o((()=>[r(i(w),{vertical:"",style:{"padding-left":"12px"}},{default:o((()=>[r(i(w),{justify:"space-between",style:{"margin-bottom":"20px"}},{default:o((()=>[e.showCount?(n(),y("span",K,"已选择:"+s(R.value.length),1)):p("v-if",!0),e.showClear?(n(),y("span",{key:1,class:"c-select-person__clear-btn",onClick:ve},"清空")):p("v-if",!0)])),_:1}),k("div",P,[(n(!0),y(m,null,g(R.value,(e=>(n(),y("span",{class:"c-select-person__tag-item",key:e.key},[d(s(e.name)+" "+s(e.parentName?`(${e.parentName})`:e.innerItemsNum?`(${e.innerItemsNum})`:"")+" ",1),r(i(T),{class:"tag-close",component:i($),onClick:l=>function(e){F.value=F.value.filter((l=>l!==e.key))}(e)},null,8,["component","onClick"])])))),128))])])),_:1})])),_:1})])),_:1}))}});export{U as default};
@@ -1 +1 @@
1
- import{cloneDeep as i}from"lodash-es";function n(n,l){const c=i(n);return e(c,l),r(c)}function e(i,n){i.forEach((i=>{var r,c;if(i.visible=null==(r=i.title)?void 0:r.includes(n),null==(c=i.children)?void 0:c.length)if(e(i.children,n),i.visible)l(i.children);else{i.children.some((i=>i.visible))&&(i.visible=!0)}}))}function l(i){i.forEach((i=>{var n;i.visible=!0,(null==(n=i.children)?void 0:n.length)&&l(i.children)}))}function r(i){return i.filter((i=>{var n;return!!i.visible&&((null==(n=i.children)?void 0:n.length)&&(i.children=r(i.children)),!0)}))}function c(i){const n=[];return function i(e){for(let l=0,r=e.length;l<r;l++){const r=e[l];r.children&&(n.push(r.key),i(r.children))}}(i),n}export{n as filterTree,c as getExpandedKeys};
1
+ import{cloneDeep as n}from"lodash-es";function i(i,r){const c=n(i);return r.trim()?function(n,i){return e(n,[]).filter((n=>{var l;return null==(l=n.title)?void 0:l.includes(i.trim())}))}(c,r):(l(c,r),t(c))}function l(n,i){n.forEach((n=>{var e,t;if(n.visible=null==(e=n.title)?void 0:e.includes(i.trim()),null==(t=n.children)?void 0:t.length)if(l(n.children,i),n.visible)r(n.children);else{n.children.some((n=>n.visible))&&(n.visible=!0)}}))}function e(n,i){return n.forEach((n=>{var l;(null==(l=n.children)?void 0:l.length)?e(n.children,i):i.push(n)})),i}function r(n){n.forEach((n=>{var i;n.visible=!0,(null==(i=n.children)?void 0:i.length)&&r(n.children)}))}function t(n){return n.filter((n=>{var i;return!!n.visible&&((null==(i=n.children)?void 0:i.length)&&(n.children=t(n.children)),!0)}))}function c(n){const i=[];return function n(l){for(let e=0,r=l.length;e<r;e++){const r=l[e];r.children&&(i.push(r.key),n(r.children))}}(n),i}export{i as filterTree,c as getExpandedKeys};
@@ -1 +1 @@
1
- .c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}
1
+ .c-select-person{padding:0 12px}.c-select-person__scroll{height:308px;overflow-y:auto}.c-select-person__clear-btn{color:#5585f5;cursor:pointer}.c-select-person__tag-item{align-items:center;background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);border-radius:4px;box-sizing:border-box;color:#5585f5;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin:0 8px 4px 0;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.c-select-person__tag-item .tag-close{color:#5585f5;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.c-select-person__tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.c-select-person__tag-item .tag-close:active{color:#fff}.c-select-person .select-person__multiple-search{display:flex;flex-direction:column}.c-select-person .select-person__multiple-search .n-checkbox{height:30px;overflow:hidden}
@@ -38,7 +38,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
38
38
  fieldList: import("vue").Ref<{
39
39
  [x: string]: any;
40
40
  val_key: string;
41
- html_type: "LINEBAR" | ({} & string) | "INPUT" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
41
+ html_type: "LINEBAR" | ({} & string) | "INPUT" | "TEXTAREA" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
42
42
  annotation?: boolean | undefined;
43
43
  val_key_unit?: string | undefined;
44
44
  is_edit?: import("..").FormCommonState | undefined;
@@ -141,6 +141,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
141
141
  is_not_fold?: string | undefined;
142
142
  remark?: string | undefined;
143
143
  free_entry?: import("..").FormCommonState | undefined;
144
+ initialize_high?: number | undefined;
144
145
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
145
146
  content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
146
147
  lazyRequest?: boolean | undefined;
@@ -1993,7 +1994,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
1993
1994
  onScroll?: ((...args: any[]) => any) | undefined;
1994
1995
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1995
1996
  }>>;
1996
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
1997
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1997
1998
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
1998
1999
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
1999
2000
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -2143,7 +2144,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2143
2144
  exposeEvent: {
2144
2145
  validate(path?: string): Promise<void>;
2145
2146
  getFormValues(needCombineExtendKey?: boolean): any;
2146
- setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
2147
+ setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2147
2148
  setFieldState(path: string, handler: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
2148
2149
  match: (pattern: import("@formily/path").Pattern) => boolean;
2149
2150
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
@@ -2163,14 +2164,14 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2163
2164
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2164
2165
  validator: import("@formily/core").FieldValidator;
2165
2166
  pattern: import("@formily/core").FieldPatternTypes;
2166
- form: import("@formily/core").Form<any>;
2167
2167
  content: any;
2168
+ display: import("@formily/core").FieldDisplayTypes;
2169
+ hidden: boolean;
2170
+ form: import("@formily/core").Form<any>;
2168
2171
  componentProps: Record<string, any>;
2169
2172
  decoratorProps: Record<string, any>;
2170
- display: import("@formily/core").FieldDisplayTypes;
2171
2173
  description: string;
2172
2174
  readOnly: boolean;
2173
- hidden: boolean;
2174
2175
  component: import("@formily/core").FieldComponent<any, any>;
2175
2176
  decorator: import("@formily/core").FieldDecorator<any, any>;
2176
2177
  validating: boolean;
@@ -2304,7 +2305,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2304
2305
  readonly displayDirective: "if" | "show" | "show:lazy";
2305
2306
  }>;
2306
2307
  NTabs: any;
2307
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2308
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2308
2309
  fieldList: {
2309
2310
  type: import("vue").PropType<import("..").FieldItem[]>;
2310
2311
  };
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  fieldList: import("vue").Ref<{
41
41
  [x: string]: any;
42
42
  val_key: string;
43
- html_type: "LINEBAR" | ({} & string) | "INPUT" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
43
+ html_type: "LINEBAR" | ({} & string) | "INPUT" | "TEXTAREA" | "SELECT" | "LINE_BREAKS" | "INPUT_NUMBER" | "REMOTE_SEARCH" | "DATE" | "LEVEL_SEARCH_CASCADER" | "SEARCH_CASCADER" | "COMBINATION" | "RADIO" | "CHECKBOX" | "SWITCH" | "SLIDER" | "COMPLEX" | "SEARCH" | "PHONE_TYPE" | "IDCARD_TYPE" | "SEARCH_MORE" | "DIGITAL" | "CHECKBOX_BLOCK" | "RADIO_BLOCK" | "DATE-INPUT" | "DATETIME-INPUT" | "SWITCH_COMPONENT" | "SLIDER_COMPONENT" | "LEVEL_SEARCH_CASCADE" | "SEARCH_CASCADE";
44
44
  annotation?: boolean | undefined;
45
45
  val_key_unit?: string | undefined;
46
46
  is_edit?: import("../../../../es/components/form-render").FormCommonState | undefined;
@@ -143,6 +143,7 @@ declare const _default: import("vue").DefineComponent<{
143
143
  is_not_fold?: string | undefined;
144
144
  remark?: string | undefined;
145
145
  free_entry?: import("../../../../es/components/form-render").FormCommonState | undefined;
146
+ initialize_high?: number | undefined;
146
147
  fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
147
148
  content?: string | import("../../../../es/components/form-render").FormRenderer | Record<string, import("../../../../es/components/form-render").FormRenderer> | undefined;
148
149
  lazyRequest?: boolean | undefined;
@@ -1995,7 +1996,7 @@ declare const _default: import("vue").DefineComponent<{
1995
1996
  onScroll?: ((...args: any[]) => any) | undefined;
1996
1997
  onAnnotationChange?: ((...args: any[]) => any) | undefined;
1997
1998
  }>>;
1998
- emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
1999
+ emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
1999
2000
  cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
2000
2001
  nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
2001
2002
  formRenderRef: import("vue").Ref<HTMLElement | undefined>;
@@ -2145,7 +2146,7 @@ declare const _default: import("vue").DefineComponent<{
2145
2146
  exposeEvent: {
2146
2147
  validate(path?: string): Promise<void>;
2147
2148
  getFormValues(needCombineExtendKey?: boolean): any;
2148
- setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean): void;
2149
+ setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2149
2150
  setFieldState(path: string, handler: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
2150
2151
  match: (pattern: import("@formily/path").Pattern) => boolean;
2151
2152
  validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
@@ -2165,14 +2166,14 @@ declare const _default: import("vue").DefineComponent<{
2165
2166
  submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
2166
2167
  validator: import("../../../../es/components/form-render").FieldValidator;
2167
2168
  pattern: import("../../../../es/components/form-render").FieldPatternTypes;
2168
- form: import("../../../../es/components/form-render").Form<any>;
2169
2169
  content: any;
2170
+ display: import("../../../../es/components/form-render").FieldDisplayTypes;
2171
+ hidden: boolean;
2172
+ form: import("../../../../es/components/form-render").Form<any>;
2170
2173
  componentProps: Record<string, any>;
2171
2174
  decoratorProps: Record<string, any>;
2172
- display: import("../../../../es/components/form-render").FieldDisplayTypes;
2173
2175
  description: string;
2174
2176
  readOnly: boolean;
2175
- hidden: boolean;
2176
2177
  component: import("../../../../es/components/form-render").FieldComponent<any, any>;
2177
2178
  decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
2178
2179
  validating: boolean;
@@ -2306,7 +2307,7 @@ declare const _default: import("vue").DefineComponent<{
2306
2307
  readonly displayDirective: "if" | "show" | "show:lazy";
2307
2308
  }>;
2308
2309
  NTabs: any;
2309
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("formChange" | "scroll" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2310
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2310
2311
  fieldList: {
2311
2312
  type: import("vue").PropType<FieldItem[]>;
2312
2313
  };
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  };
7
7
  value: {
8
8
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
9
- default: string[];
9
+ default: string;
10
10
  };
11
11
  multiple: {
12
12
  type: BooleanConstructor;
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  };
20
20
  value: {
21
21
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
22
- default: string[];
22
+ default: string;
23
23
  };
24
24
  multiple: {
25
25
  type: BooleanConstructor;
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
89
89
  };
90
90
  value: {
91
91
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
92
- default: string[];
92
+ default: string;
93
93
  };
94
94
  multiple: {
95
95
  type: BooleanConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:[""]},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
1
+ import{defineComponent as e,computed as u,openBlock as l,createBlock as a,unref as r,mergeProps as t,withCtx as o,createElementBlock as v,Fragment as i,renderList as p}from"vue";import{NCheckboxGroup as n,NCheckbox as m}from"naive-ui";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";var f=s(e({__name:"CheckboxGroup",props:{options:{type:[Array,String,Number]},value:{type:[Array,String,Number],default:""},multiple:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:s}){const f=e,y=u({set(e){s("update:value",e)},get:()=>Array.isArray(f.value)?f.value:f.value?[f.value]:[]});function d(e){f.multiple||!Array.isArray(e)?y.value=e:y.value=function(e){return e.filter((e=>!y.value.includes(e)))}(e)[0]}return(u,s)=>(l(),a(r(n),t(u.$attrs,{value:r(y),"onUpdate:value":d}),{default:o((()=>[(l(!0),v(i,null,p(e.options,(e=>(l(),a(r(m),{key:e.value,value:e.value,label:e.label},null,8,["value","label"])))),128))])),_:1},16,["value"]))}}),[["__file","CheckboxGroup.vue"]]);export{f as default};
@@ -86,7 +86,7 @@ export declare const WidgetCfgMaps: Map<string, {
86
86
  };
87
87
  value: {
88
88
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
89
- default: string[];
89
+ default: string;
90
90
  };
91
91
  multiple: {
92
92
  type: BooleanConstructor;
@@ -99,7 +99,7 @@ export declare const WidgetCfgMaps: Map<string, {
99
99
  };
100
100
  value: {
101
101
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
102
- default: string[];
102
+ default: string;
103
103
  };
104
104
  multiple: {
105
105
  type: BooleanConstructor;
@@ -169,7 +169,7 @@ export declare const WidgetCfgMaps: Map<string, {
169
169
  };
170
170
  value: {
171
171
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
172
- default: string[];
172
+ default: string;
173
173
  };
174
174
  multiple: {
175
175
  type: BooleanConstructor;
@@ -190,7 +190,7 @@ export declare const WidgetCfgMaps: Map<string, {
190
190
  valueFormat?: undefined;
191
191
  };
192
192
  style: {
193
- "line-height": string;
193
+ 'line-height': string;
194
194
  };
195
195
  handlerProps(props: any, { valueList, multiple }?: any): any;
196
196
  setDefaultValue: (defaultValue: any) => any;
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
+
@@ -0,0 +1 @@
1
+ var e="@cnhis-design-vue/shared",i="3.1.42-beta.74",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.1.42-beta.74",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 +1 @@
1
- import{useMemoize as t}from"@vueuse/core";import{isArray as n,isString as e,includes as r,isEmpty as o,negate as u,gt as i,gte as c,lt as s,lte as f,isNumber as a,isObject as x,isFunction as d}from"lodash-es";import{getCurrentInstance as l}from"vue";function m(t,n,e="children",r){let o=!1;function u(){o=!0}!function t(n,e,r="children",i){r=w(r),n=w(n);for(let c=0;c<n.length;c++){if(e(n[c],u,i),o)return;for(let u=0;u<r.length;u++){const i=n[c][r[u]];if(Array.isArray(i)&&t(i,e,r,i),o)return}}}(t,n,e,r)}function p(t,n,e=n.name,r){if(!e)throw new Error(`[CUI]: invalid component name for ${n}`);const{components:o={}}=t._context;o[e]||(r?r():t.component(e,n))}function h(t){if(!e(t))return;const n=t.match(/[Hms:]+/);return n?n[0]:void 0}function w(t){return Array.isArray(t)?t:[t]}function y(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const n=16*Math.random()|0;return("x"==t?n:3&n|8).toString(16)}))}`}const $=t((function(t){return t?[...t].reduce(((t,n)=>/[a-z]/.test(n)?t+8:/[A-Z]/.test(n)?t+12:/\d/.test(n)?t+9:/\./.test(n)?t+4:/[\u4e00-\u9fa5]/.test(n)?t+15:/-/.test(n)?t+4:/[()]/.test(n)?t+14:/[)(]/.test(n)?t+5:/-/.test(n)?t+10:/%/.test(n)?t+14:/‰/.test(n)?t+16:t+6),0):0})),E=Object.seal(Object.create(null));function v(t,e){return function t(e,r){return x(e)?n(e)?e.map((n=>t(n,r))):Object.entries(e).reduce(((n,[e,o])=>(r.includes(e)||(x(o)&&!d(o)?n[e]=t(o,r):n[e]=o),n)),{}):e}(t,e)}function g(t){return Object.values(t).reduce(((t,n)=>Object.assign(t,n)),{})}function I(t,n){if(!t)return t;if(n(t))return t;let e=t.parentElement;for(;e&&!n(e);)e=e.parentElement;return e}function b(t,n="px"){if(a(t))return`${t}${n}`;if(e(t))return t.endsWith(n)?t:`${t}${n}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function L(t,n){return t.some((t=>n.includes(t)))}const O=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function S(t,n){if(!x(t))return t;const e={...t};for(let t=0;t<n.length;t++)Reflect.deleteProperty(e,n[t]);return e}function N(t){if(!l())throw new Error(t||"can't use this hook out of setup environment")}const j={EQ:(t,n)=>`${t}`===n,NEQ:(t,n)=>`${t}`!==n,CL:(t,o)=>!(!n(t)&&!e(t))&&r(t,o),NC:(t,o)=>!n(t)&&!e(t)||!r(t,o),NULL:o,NOT_NULL:u(o),BIG:i,BIGEQ:c,LESS:s,LESSEQ:f};function A(t,n){return(j[n.con]||(()=>!1))(t,`${n.value}`)}function U(t,n=1){const[e,r,o,u,i]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[255,255,255,n];const c=i&&parseInt(i,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(u,16),+(a(c)?c.toFixed(2):n)]}export{E as DMZ,w as arrayed,N as checkInSetupEnv,v as deepOmit,I as findAncestor,h as generateTimeFormat,$ as getStringWidth,U as hex2rgba,A as isMatchLowCodeCondition,O as jsonParse,p as safeComponentRegister,g as separateMetaModule,S as shallowOmit,L as targetStringIncludes,m as traverse,y as uuidGenerator,b as widthAppend};
1
+ import{useMemoize as t}from"@vueuse/core";import{isArray as e,isString as n,includes as r,isEmpty as o,negate as i,gt as c,gte as u,lt as s,lte as f,isObject as a,isNumber as x,isFunction as l}from"lodash-es";import{getCurrentInstance as d}from"vue";import m from"../package.json.js";function p(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",c){r=y(r),e=y(e);for(let u=0;u<e.length;u++){if(n(e[u],i,c),o)return;for(let i=0;i<r.length;i++){const c=e[u][r[i]];if(Array.isArray(c)&&t(c,n,r,e[u]),o)return}}}(t,e,n,r)}function h(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&a(m)&&Reflect.set(t,"__cnhis_version",m.version),r?r():t.component(n,e))}function w(t){if(!n(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function y(t){return Array.isArray(t)?t:[t]}function v(){if(window.isSecureContext&&window.crypto)return`key${window.crypto.randomUUID()}`;return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const $=t((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8:/[A-Z]/.test(e)?t+12:/\d/.test(e)?t+9:/\./.test(e)?t+4:/[\u4e00-\u9fa5]/.test(e)?t+15:/-/.test(e)?t+4:/[()]/.test(e)?t+14:/[)(]/.test(e)?t+5:/-/.test(e)?t+10:/%/.test(e)?t+14:/‰/.test(e)?t+16:t+6),0):0})),E=Object.seal(Object.create(null));function g(t,n){return function t(n,r){return a(n)?e(n)?n.map((e=>t(e,r))):Object.entries(n).reduce(((e,[n,o])=>(r.includes(n)||(a(o)&&!l(o)?e[n]=t(o,r):e[n]=o),e)),{}):n}(t,n)}function I(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function _(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(x(t))return`${t}${e}`;if(n(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}function j(t,e){return t.some((t=>e.includes(t)))}const L=t((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function O(t,e){if(!a(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function S(t){if(!d())throw new Error(t||"can't use this hook out of setup environment")}const N={EQ:(t,e)=>`${t}`===e,NEQ:(t,e)=>`${t}`!==e,CL:(t,o)=>!(!e(t)&&!n(t))&&r(t,o),NC:(t,o)=>!e(t)&&!n(t)||!r(t,o),NULL:o,NOT_NULL:i(o),BIG:c,BIGEQ:u,LESS:s,LESSEQ:f};function A(t,e){return(N[e.con]||(()=>!1))(t,`${e.value}`)}function U(t,e=1){const[n,r,o,i,c]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const u=c&&parseInt(c,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(x(u)?u.toFixed(2):e)]}export{E as DMZ,y as arrayed,S as checkInSetupEnv,g as deepOmit,_ as findAncestor,w as generateTimeFormat,$ as getStringWidth,U as hex2rgba,A as isMatchLowCodeCondition,L as jsonParse,h as safeComponentRegister,I as separateMetaModule,O as shallowOmit,j as targetStringIncludes,p as traverse,v as uuidGenerator,b as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.42-release.5",
3
+ "version": "3.1.42-release.7",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "e1112ae6052b5e56442fb9dcac34732718d48eec"
64
+ "gitHead": "227e1e9425eade9041d966b298e20a9949f6aa2d"
65
65
  }
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/Viewer';
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/features/modeling';
@@ -1 +0,0 @@
1
- declare module 'diagram-js/lib/navigation/movecanvas';