cnhis-design-vue 3.1.51-beta.2 → 3.1.51-beta.21

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 (135) hide show
  1. package/es/components/base-search/src/index.vue2.js +1 -1
  2. package/es/components/callback/index.d.ts +69 -0
  3. package/es/components/callback/index.js +1 -0
  4. package/es/components/callback/src/components/dialog/drawer.vue.d.ts +353 -0
  5. package/es/components/callback/src/components/dialog/drawer.vue.js +1 -0
  6. package/es/components/callback/src/components/dialog/drawer.vue2.js +1 -0
  7. package/es/components/callback/src/components/dialog/modal.vue.d.ts +166 -0
  8. package/es/components/callback/src/components/dialog/modal.vue.js +1 -0
  9. package/es/components/callback/src/components/dialog/modal.vue2.js +1 -0
  10. package/es/components/callback/src/components/popup/index.vue.d.ts +48 -0
  11. package/es/components/callback/src/components/popup/index.vue.js +1 -0
  12. package/es/components/callback/src/components/render/drawerIframe/index.vue.d.ts +62 -0
  13. package/es/components/callback/src/components/render/drawerIframe/index.vue.js +1 -0
  14. package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +1 -0
  15. package/es/components/callback/src/components/render/enums.d.ts +5 -0
  16. package/es/components/callback/src/components/render/enums.js +1 -0
  17. package/es/components/callback/src/components/render/index.vue.d.ts +57 -0
  18. package/es/components/callback/src/components/render/index.vue.js +1 -0
  19. package/es/components/callback/src/components/render/popupMaps.d.ts +5702 -0
  20. package/es/components/callback/src/components/render/popupMaps.js +1 -0
  21. package/es/components/callback/src/index.vue.d.ts +68 -0
  22. package/es/components/callback/src/index.vue.js +1 -0
  23. package/es/components/callback/src/index.vue2.js +1 -0
  24. package/es/components/callback/src/types/index.d.ts +11 -0
  25. package/es/components/callback/style/callback-iconfont.ttf +0 -0
  26. package/es/components/callback/style/index.css +1 -0
  27. package/es/components/classification/src/index.vue2.js +1 -1
  28. package/es/components/expand-field/index.d.ts +0 -13
  29. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +0 -13
  30. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +0 -13
  31. package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
  32. package/es/components/expand-field/src/components/form.vue.d.ts +0 -13
  33. package/es/components/expand-field/src/index.vue.d.ts +0 -13
  34. package/es/components/expand-field/src/index.vue2.js +1 -1
  35. package/es/components/fabric-chart/index.d.ts +5 -6
  36. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +5 -6
  37. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  38. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  39. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +0 -6
  40. package/es/components/fabric-chart/src/components/PopupTip.vue2.js +1 -1
  41. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  42. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  43. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  44. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  45. package/es/components/fabric-chart/style/index.css +1 -1
  46. package/es/components/form-config/index.d.ts +6 -2
  47. package/es/components/form-config/src/FormConfig.vue.d.ts +6 -2
  48. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -1
  49. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -1
  50. package/es/components/form-render/index.d.ts +3 -1
  51. package/es/components/form-render/src/FormRender.vue.d.ts +3 -1
  52. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  53. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -1
  54. package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
  55. package/es/components/form-render/src/components/renderer/select.js +1 -1
  56. package/es/components/form-render/src/hooks/useFormEvent.d.ts +3 -1
  57. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  58. package/es/components/form-render/src/types/index.d.ts +4 -1
  59. package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
  60. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  61. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
  62. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +27 -0
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -1
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +4 -3
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
  71. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  72. package/es/components/iho-table/src/types/index.d.ts +8 -1
  73. package/es/components/index.css +1 -1
  74. package/es/components/index.d.ts +6 -3
  75. package/es/components/index.js +1 -1
  76. package/es/components/info-header/index.d.ts +6 -2
  77. package/es/components/info-header/src/InfoHeader.vue.d.ts +6 -2
  78. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -1
  79. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -1
  80. package/es/components/scale-view/src/hooks/use-component.d.ts +615 -255
  81. package/es/components/select-label/index.d.ts +617 -256
  82. package/es/components/select-label/index.js +1 -1
  83. package/es/components/{iho-select-label/src/LabelFormContent.vue.d.ts → select-label/src/ihoLabel/IhoLabelFormContent.vue.d.ts} +5 -5
  84. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +1 -0
  85. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -0
  86. package/es/components/{iho-select-label/src/SelectLabel.vue.d.ts → select-label/src/ihoLabel/IhoSelectLabel.vue.d.ts} +7 -7
  87. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +1 -0
  88. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -0
  89. package/es/components/{iho-select-label/src/components/label-classify.vue.d.ts → select-label/src/ihoLabel/iho-label-classify.vue.d.ts} +1 -1
  90. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +1 -0
  91. package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +1 -0
  92. package/es/components/select-label/src/index.vue.d.ts +899 -0
  93. package/es/components/select-label/src/index.vue.js +1 -0
  94. package/es/components/select-label/src/index.vue2.js +1 -0
  95. package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +1 -0
  96. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  97. package/es/components/shortcut-setter/index.d.ts +4 -1
  98. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -1
  99. package/es/components/slider-tree/index.d.ts +79 -0
  100. package/es/components/slider-tree/index.js +1 -0
  101. package/es/components/slider-tree/src/hooks/useAsyncData.d.ts +6 -0
  102. package/es/components/slider-tree/src/hooks/useAsyncData.js +1 -0
  103. package/es/components/slider-tree/src/index.vue.d.ts +77 -0
  104. package/es/components/slider-tree/src/index.vue.js +1 -0
  105. package/es/components/slider-tree/src/index.vue2.js +1 -0
  106. package/es/components/slider-tree/src/utils/index.d.ts +13 -0
  107. package/es/components/slider-tree/src/utils/index.js +1 -0
  108. package/es/components/slider-tree/src/utils/tool.d.ts +1 -0
  109. package/es/components/slider-tree/src/utils/tool.js +1 -0
  110. package/es/components/slider-tree/style/index.css +1 -0
  111. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  112. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  113. package/es/shared/directive/flexibleResize.d.ts +4 -0
  114. package/es/{components/classification/src → shared}/directive/flexibleResize.js +1 -1
  115. package/es/shared/directive/index.d.ts +1 -0
  116. package/es/shared/directive/index.js +1 -0
  117. package/es/shared/package.json.js +1 -1
  118. package/es/shared/types/business.d.ts +7 -0
  119. package/es/shared/utils/index.js +1 -1
  120. package/package.json +2 -2
  121. package/es/components/classification/src/directive/flexibleResize.d.ts +0 -28
  122. package/es/components/iho-select-label/index.d.ts +0 -363
  123. package/es/components/iho-select-label/index.js +0 -1
  124. package/es/components/iho-select-label/src/LabelFormContent.vue.js +0 -1
  125. package/es/components/iho-select-label/src/LabelFormContent.vue2.js +0 -1
  126. package/es/components/iho-select-label/src/SelectLabel.vue.js +0 -1
  127. package/es/components/iho-select-label/src/SelectLabel.vue2.js +0 -1
  128. package/es/components/iho-select-label/src/components/label-classify.vue.js +0 -1
  129. package/es/components/iho-select-label/src/components/label-classify.vue2.js +0 -1
  130. package/es/components/iho-select-label/style/iho-select-label-iconfont.ttf +0 -0
  131. package/es/components/iho-select-label/style/index.css +0 -1
  132. package/es/components/table-filter/src/types/tool.d.ts +0 -7
  133. /package/es/components/{iho-select-label → callback}/src/types/index.js +0 -0
  134. /package/es/components/{iho-select-label → select-label}/src/types/index.d.ts +0 -0
  135. /package/es/components/{table-filter/src/types/tool.js → select-label/src/types/index.js} +0 -0
@@ -0,0 +1 @@
1
+ import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,openBlock as t,createBlock as l,createCommentVNode as s}from"vue";import i from"./SelectLabel.vue.js";import a from"./ihoLabel/IhoSelectLabel.vue.js";var o=e({__name:"index",props:{type:{type:String,default:"1"},categoryList:{type:Array,default:()=>[]},selectedList:{type:Array,default:()=>[]},selectedListObj:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},isDetail:{type:Boolean,default:!1},isLock:{type:Boolean,default:!1},sourceType:{type:String,default:""},explicit:{type:Boolean,default:!1},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},queryCommonlabels:{type:Function,default:()=>Promise.resolve({data:{}})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})}},emits:["onChange"],setup(e,{emit:o}){function c(e){o("onChange",e)}return(o,r)=>"1"==e.type?(t(),l(i,{key:0,selectedList:e.selectedList,selectedListObj:e.selectedListObj,item:e.item,isDetail:e.isDetail,isLock:e.isLock,sourceType:e.sourceType,explicit:e.explicit,getLabelList:e.getLabelList,queryCommonlabels:e.queryCommonlabels,deleteLabel:e.deleteLabel,saveLabelItem:e.saveLabelItem,onOnChange:c},null,8,["selectedList","selectedListObj","item","isDetail","isLock","sourceType","explicit","getLabelList","queryCommonlabels","deleteLabel","saveLabelItem"])):"2"==e.type?(t(),l(a,{key:1,categoryList:e.categoryList,selectedList:e.selectedList,explicit:e.explicit,onOnChange:c},null,8,["categoryList","selectedList","explicit"])):s("v-if",!0)}});export{o as default};
@@ -25,6 +25,7 @@ export declare function useShortcuts(scope?: MaybeRef<string | Symbol | undefine
25
25
  register: (shortcut: ShortcutOption) => {
26
26
  stop: () => void;
27
27
  signature: () => string;
28
+ start: () => void;
28
29
  };
29
30
  traverse: () => Omit<ShortcutItem, "callback">[];
30
31
  clear: () => void;
@@ -1 +1 @@
1
- import{findAncestor as t}from"../../../../shared/utils/index.js";import{useEventListener as e,useDebounceFn as r}from"@vueuse/core";import{once as s,pick as a,omit as n,isFunction as u,isString as c}from"lodash-es";import{reactive as o,ref as i,unref as l,computed as h,getCurrentInstance as d,inject as p,onBeforeUnmount as g,onDeactivated as b,onActivated as v}from"vue";import{ShortcutStatus as f,InjectionShortcutManager as k}from"../constants/index.js";import{normalizeSignatureInfo as y,getKeySignature as C,getDisplaySignature as m,isInvalidSignature as S,isKeyboardEvent as w,isInvalidKeyboardEvent as E,isShortcutProvider as M}from"../utils/index.js";const K=Symbol("Glob"),j=new Map;class ${constructor(t,e=K){this.shortcutCallbackMap=o(new Map),this.shortcutCache=i({}),this.disabled=!1,this.environmentEle=t||window,j.set(e,this)}static log(t,e=!1){const r=`[ShortcutManager] ${t}`;return!e&&console.warn(r),r}get traverse(){return[...Object.values(this.shortcutCache.value)].sort(((t,e)=>(t.order||0)-(e.order||0)))}query(t){return this.shortcutCache.value[t]}async update(t,e){var r,s;const a=null==(r=this.query(t))?void 0:r.currentKeySignature;e&&u(this.shortcutCache,e);const n=this.query(t);function u(t,e){if(a!==C(e)){if(Object.values(t.value).some((t=>t.currentKeySignature===C(e))))throw`重复的快捷键=> ${m(e)}`;if(S(e))throw`非法的快捷键=>${e.key}`}}n&&(await(null==(s=n.onUpdate)?void 0:s.call(n,t,e?y(e):void 0)),u(this.shortcutCache,e),n.currentKeySignature=C(e),n.shortcutSignature=y(e),this.shortcutCallbackMap.set(n.currentKeySignature,this.shortcutCallbackMap.get(a)),this.shortcutCallbackMap.delete(a))}register(t){const e=this.query(t.key);return e?(e.status=f.ACTIVE,this.shortcutCallbackMap.set(e.currentKeySignature,t.callback),Object.assign(e,a(t,["debounce","debounceOption","label","order","key"])),r(e)):(this.shortcutCache.value[t.key]=n(t,["callback"]),this.shortcutCallbackMap.set(t.currentKeySignature,t.callback),r(this.shortcutCache.value[t.key]));function r(t){return{stop:()=>{t.status=f.INACTIVE},start:()=>{t.status=f.ACTIVE},signature:()=>t.currentKeySignature}}}start(){return this.handle?($.log(`请勿重复启动=>${this}`),this):(this.handle=async e=>{if(!w(e)||this.disabled)return;const r=t(e.target,M);if(r&&r!==l(this.environmentEle)||E(e))return;const s=C(e),a=this.shortcutCallbackMap.get(s);if(!a)return;e.preventDefault();const n=Object.values(this.shortcutCache.value).find((t=>t.currentKeySignature===s));n&&n.status===f.ACTIVE&&!n.disabled&&a(e)},e(this.environmentEle,"keyup",this.handle,{capture:!0}),this)}destroy(){var t;this.handle&&(null==(t=l(this.environmentEle))||t.removeEventListener("keyup",this.handle,{capture:!0})),this.handle=void 0,this.clear()}clear(){this.shortcutCallbackMap.clear(),this.shortcutCache.value={}}}const I=(new $).start(),O=s((()=>$.log("非setup语境下的shortcut将影响全局"))),A=s((()=>$.log("在非setup语境下使用register函数,组件销毁时可能需要手动调用stop函数使快捷键失活")));function T(t){const e=h((()=>{if(l(t)){const e=j.get(l(t));return e||$.log(`不存在的scope=>${t}, 将使用全局快捷键`),e||I}return d()?p(k,I):(O(),I)}));return{register:function(t){const{stop:s,signature:a,start:n}=l(e).register(function(t){return{...t,shortcutSignature:y(t.shortcutSignature),currentKeySignature:C(t.shortcutSignature),key:function(t){const e=t.key||t.label;if(!c(e))throw new Error($.log(`非法的key类型=>${e}`,!0));return e}(t),status:f.ACTIVE,callback:function(t){var e,s;if(!u(t.callback))throw new Error($.log(`非法的callback类型=>${t.callback}`,!0));return t.debounce?r(t.callback,null!=(s=null==(e=t.debounceOption)?void 0:e.duration)?s:300):t.callback}(t)}}(t));return d()?(g(s),b(s),v(n)):A(),{stop:s,signature:a}},traverse:function(){return l(e).traverse},clear:function(){l(e).clear()},update:function(t,r){return l(e).update(t,r)},updateManagerDisabled:function(t){l(e).disabled=!!t}}}export{K as GlobalShortcutProvider,$ as ShortcutManager,T as useShortcuts};
1
+ import{findAncestor as t}from"../../../../shared/utils/index.js";import{useEventListener as e,useDebounceFn as r}from"@vueuse/core";import{once as s,pick as a,omit as n,isFunction as u,isString as c}from"lodash-es";import{reactive as o,ref as i,unref as l,computed as h,getCurrentInstance as d,inject as p,onBeforeUnmount as g,onDeactivated as b,onActivated as v}from"vue";import{ShortcutStatus as f,InjectionShortcutManager as k}from"../constants/index.js";import{normalizeSignatureInfo as y,getKeySignature as C,getDisplaySignature as m,isInvalidSignature as S,isKeyboardEvent as w,isInvalidKeyboardEvent as E,isShortcutProvider as M}from"../utils/index.js";const K=Symbol("Glob"),j=new Map;class ${constructor(t,e=K){this.shortcutCallbackMap=o(new Map),this.shortcutCache=i({}),this.disabled=!1,this.environmentEle=t||window,j.set(e,this)}static log(t,e=!1){const r=`[ShortcutManager] ${t}`;return!e&&console.warn(r),r}get traverse(){return[...Object.values(this.shortcutCache.value)].sort(((t,e)=>(t.order||0)-(e.order||0)))}query(t){return this.shortcutCache.value[t]}async update(t,e){var r,s;const a=null==(r=this.query(t))?void 0:r.currentKeySignature;e&&u(this.shortcutCache,e);const n=this.query(t);function u(t,e){if(a!==C(e)){if(Object.values(t.value).some((t=>t.currentKeySignature===C(e))))throw`重复的快捷键=> ${m(e)}`;if(S(e))throw`非法的快捷键=>${e.key}`}}n&&(await(null==(s=n.onUpdate)?void 0:s.call(n,t,e?y(e):void 0)),u(this.shortcutCache,e),n.currentKeySignature=C(e),n.shortcutSignature=y(e),this.shortcutCallbackMap.set(n.currentKeySignature,this.shortcutCallbackMap.get(a)),this.shortcutCallbackMap.delete(a))}register(t){const e=this.query(t.key);return e?(e.status=f.ACTIVE,this.shortcutCallbackMap.set(e.currentKeySignature,t.callback),Object.assign(e,a(t,["debounce","debounceOption","label","order","key"])),r(e)):(this.shortcutCache.value[t.key]=n(t,["callback"]),this.shortcutCallbackMap.set(t.currentKeySignature,t.callback),r(this.shortcutCache.value[t.key]));function r(t){return{stop:()=>{t.status=f.INACTIVE},start:()=>{t.status=f.ACTIVE},signature:()=>t.currentKeySignature}}}start(){return this.handle?($.log(`请勿重复启动=>${this}`),this):(this.handle=async e=>{if(!w(e)||this.disabled)return;const r=t(e.target,M);if(r&&r!==l(this.environmentEle)||E(e))return;const s=C(e),a=this.shortcutCallbackMap.get(s);if(!a)return;e.preventDefault();const n=Object.values(this.shortcutCache.value).find((t=>t.currentKeySignature===s));n&&n.status===f.ACTIVE&&!n.disabled&&a(e)},e(this.environmentEle,"keyup",this.handle,{capture:!0}),this)}destroy(){var t;this.handle&&(null==(t=l(this.environmentEle))||t.removeEventListener("keyup",this.handle,{capture:!0})),this.handle=void 0,this.clear()}clear(){this.shortcutCallbackMap.clear(),this.shortcutCache.value={}}}const I=(new $).start(),O=s((()=>$.log("非setup语境下的shortcut将影响全局"))),A=s((()=>$.log("在非setup语境下使用register函数,组件销毁时可能需要手动调用stop函数使快捷键失活")));function T(t){const e=h((()=>{if(l(t)){const e=j.get(l(t));return e||$.log(`不存在的scope=>${t}, 将使用全局快捷键`),e||I}return d()?p(k,I):(O(),I)}));return{register:function(t){const{stop:s,signature:a,start:n}=l(e).register(function(t){return{...t,shortcutSignature:y(t.shortcutSignature),currentKeySignature:C(t.shortcutSignature),key:function(t){const e=t.key||t.label;if(!c(e))throw new Error($.log(`非法的key类型=>${e}`,!0));return e}(t),status:f.ACTIVE,callback:function(t){var e,s;if(!u(t.callback))throw new Error($.log(`非法的callback类型=>${t.callback}`,!0));return t.debounce?r(t.callback,null!=(s=null==(e=t.debounceOption)?void 0:e.duration)?s:300):t.callback}(t)}}(t));return d()?(g(s),b(s),v(n)):A(),{stop:s,signature:a,start:n}},traverse:function(){return l(e).traverse},clear:function(){l(e).clear()},update:function(t,r){return l(e).update(t,r)},updateManagerDisabled:function(t){l(e).disabled=!!t}}}export{K as GlobalShortcutProvider,$ as ShortcutManager,T as useShortcuts};
@@ -29,6 +29,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
29
29
  register: (shortcut: import("..").ShortcutOption) => {
30
30
  stop: () => void;
31
31
  signature: () => string;
32
+ start: () => void;
32
33
  };
33
34
  traverse: () => Omit<import("..").ShortcutItem, "callback">[];
34
35
  clear: () => void;
@@ -2315,7 +2316,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2315
2316
  onKeydown: (event: KeyboardEvent) => Promise<void>;
2316
2317
  clearSpan: (uuid: string) => void;
2317
2318
  exposeEvent: {
2318
- validate(path?: string): Promise<void>;
2319
+ validate(path?: string, { force }?: {
2320
+ force?: boolean | undefined;
2321
+ }): Promise<void>;
2319
2322
  getFormValues(needCombineExtendKey?: boolean): any;
2320
2323
  setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2321
2324
  setFieldState(path: string, setter: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
@@ -31,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
31
31
  register: (shortcut: import("../../../../es/components/shortcut-provider").ShortcutOption) => {
32
32
  stop: () => void;
33
33
  signature: () => string;
34
+ start: () => void;
34
35
  };
35
36
  traverse: () => Omit<import("../../../../es/components/shortcut-provider").ShortcutItem, "callback">[];
36
37
  clear: () => void;
@@ -2317,7 +2318,9 @@ declare const _default: import("vue").DefineComponent<{
2317
2318
  onKeydown: (event: KeyboardEvent) => Promise<void>;
2318
2319
  clearSpan: (uuid: string) => void;
2319
2320
  exposeEvent: {
2320
- validate(path?: string): Promise<void>;
2321
+ validate(path?: string, { force }?: {
2322
+ force?: boolean | undefined;
2323
+ }): Promise<void>;
2321
2324
  getFormValues(needCombineExtendKey?: boolean): any;
2322
2325
  setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
2323
2326
  setFieldState(path: string, setter: (field: Partial<Pick<import("../../../../es/components/form-render").Field<any, any, any, any>, import("../../../../es/components/form-render").NonFunctionPropertyNames<{
@@ -0,0 +1,79 @@
1
+ import { SFCWithInstall } from '../../../es/shared/types';
2
+ export * from './src/utils';
3
+ declare const CSliderTree: SFCWithInstall<import("vue").DefineComponent<{
4
+ sliderInitialWidth: {
5
+ type: NumberConstructor;
6
+ default: number;
7
+ };
8
+ treeSearchApiConfig: {
9
+ type: ObjectConstructor;
10
+ default: () => {};
11
+ };
12
+ }, {
13
+ $message: import("naive-ui").MessageApi;
14
+ $attr: {
15
+ [x: string]: unknown;
16
+ };
17
+ getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
18
+ searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
19
+ updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
20
+ getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
21
+ isMatchFn: (node: any, keyword: string) => boolean;
22
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
23
+ sliderInitialWidth: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ treeSearchApiConfig: {
28
+ type: ObjectConstructor;
29
+ default: () => {};
30
+ };
31
+ }>> & {
32
+ onSelect?: ((...args: any[]) => any) | undefined;
33
+ onSaveWidth?: ((...args: any[]) => any) | undefined;
34
+ }>>;
35
+ emit: (event: "select" | "saveWidth", ...args: any[]) => void;
36
+ flexWidth: import("vue").Ref<number>;
37
+ searchValue: import("vue").Ref<string>;
38
+ treeData: import("vue").Ref<any[]>;
39
+ expandedKeys: import("vue").Ref<string[]>;
40
+ selectedKeys: import("vue").Ref<string[]>;
41
+ selectNode: import("vue").Ref<{}>;
42
+ dragData: import("vue").Ref<{}>;
43
+ handleRenderLabel: ({ option }: any) => any;
44
+ init: () => Promise<void>;
45
+ onExpand: (expandedKeyVals: string[]) => void;
46
+ onNodeSelect: (selectedKeyVals: never[] | undefined, [node]: any[]) => void;
47
+ onSearch: () => Promise<void>;
48
+ reset: (flag: boolean, selectOrgId?: string | undefined) => Promise<void>;
49
+ onDrop: (info: any) => Promise<void>;
50
+ getDeptData: (orgId: string) => Promise<any>;
51
+ getChildrenByOrgPartenIdFn: () => Promise<void>;
52
+ onLoadData: (treeNode: any) => any;
53
+ getExpandKeys: (data: any) => never[];
54
+ changeWidth: ({ distance }: any) => void;
55
+ saveWidth: () => void;
56
+ NInput: any;
57
+ NTree: any;
58
+ NEmpty: any;
59
+ vFlexibleResize: {
60
+ mounted(el: any, { value }: any): void;
61
+ beforeUnmount(el: any): void;
62
+ };
63
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "saveWidth")[], "select" | "saveWidth", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
64
+ sliderInitialWidth: {
65
+ type: NumberConstructor;
66
+ default: number;
67
+ };
68
+ treeSearchApiConfig: {
69
+ type: ObjectConstructor;
70
+ default: () => {};
71
+ };
72
+ }>> & {
73
+ onSelect?: ((...args: any[]) => any) | undefined;
74
+ onSaveWidth?: ((...args: any[]) => any) | undefined;
75
+ }, {
76
+ sliderInitialWidth: number;
77
+ treeSearchApiConfig: Record<string, any>;
78
+ }>>;
79
+ export default CSliderTree;
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as e}from"../../shared/utils/index.js";import i from"./src/index.vue.js";export{transformOriginToTree}from"./src/utils/index.js";const o=i;o.install=function(i){e(i,o,r+"SliderTree")};export{o as default};
@@ -0,0 +1,6 @@
1
+ export default function useAsyncData(): {
2
+ getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
3
+ searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
4
+ updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
5
+ getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
6
+ };
@@ -0,0 +1 @@
1
+ function t(){async function t(t,e,r){try{const n=r[e]||null;if("function"==typeof n){const e=await n(t);return Promise.resolve(e)}return Promise.reject(new Error(`${e} Is not a function`))}catch(t){return Promise.reject(t)}}return{getChildrenByOrgPartenId:async function(e,r){return await t(e,"getChildrenByOrgPartenId",r)},searchEmpTreeData:async function(e,r){return await t(e,"searchEmpTreeData",r)},updateDeptSort:async function(e,r){return await t(e,"updateDeptSort",r)},getDeptList:async function(e,r){return await t(e,"getDeptList",r)}}}export{t as default};
@@ -0,0 +1,77 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ sliderInitialWidth: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ treeSearchApiConfig: {
7
+ type: ObjectConstructor;
8
+ default: () => {};
9
+ };
10
+ }, {
11
+ $message: import("naive-ui").MessageApi;
12
+ $attr: {
13
+ [x: string]: unknown;
14
+ };
15
+ getChildrenByOrgPartenId: (params: any, filterApiConfig: any) => Promise<any>;
16
+ searchEmpTreeData: (params: any, filterApiConfig: any) => Promise<any>;
17
+ updateDeptSort: (params: any, filterApiConfig: any) => Promise<any>;
18
+ getDeptList: (params: any, filterApiConfig: any) => Promise<any>;
19
+ isMatchFn: (node: any, keyword: string) => boolean;
20
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
21
+ sliderInitialWidth: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ treeSearchApiConfig: {
26
+ type: ObjectConstructor;
27
+ default: () => {};
28
+ };
29
+ }>> & {
30
+ onSelect?: ((...args: any[]) => any) | undefined;
31
+ onSaveWidth?: ((...args: any[]) => any) | undefined;
32
+ }>>;
33
+ emit: (event: "select" | "saveWidth", ...args: any[]) => void;
34
+ flexWidth: import("vue").Ref<number>;
35
+ searchValue: import("vue").Ref<string>;
36
+ treeData: import("vue").Ref<any[]>;
37
+ expandedKeys: import("vue").Ref<string[]>;
38
+ selectedKeys: import("vue").Ref<string[]>;
39
+ selectNode: import("vue").Ref<{}>;
40
+ dragData: import("vue").Ref<{}>;
41
+ handleRenderLabel: ({ option }: any) => any;
42
+ init: () => Promise<void>;
43
+ onExpand: (expandedKeyVals: string[]) => void;
44
+ onNodeSelect: (selectedKeyVals: never[] | undefined, [node]: any[]) => void;
45
+ onSearch: () => Promise<void>;
46
+ reset: (flag: boolean, selectOrgId?: string) => Promise<void>;
47
+ onDrop: (info: any) => Promise<void>;
48
+ getDeptData: (orgId: string) => Promise<any>;
49
+ getChildrenByOrgPartenIdFn: () => Promise<void>;
50
+ onLoadData: (treeNode: any) => any;
51
+ getExpandKeys: (data: any) => never[];
52
+ changeWidth: ({ distance }: any) => void;
53
+ saveWidth: () => void;
54
+ NInput: any;
55
+ NTree: any;
56
+ NEmpty: any;
57
+ vFlexibleResize: {
58
+ mounted(el: any, { value }: any): void;
59
+ beforeUnmount(el: any): void;
60
+ };
61
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "saveWidth")[], "select" | "saveWidth", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
62
+ sliderInitialWidth: {
63
+ type: NumberConstructor;
64
+ default: number;
65
+ };
66
+ treeSearchApiConfig: {
67
+ type: ObjectConstructor;
68
+ default: () => {};
69
+ };
70
+ }>> & {
71
+ onSelect?: ((...args: any[]) => any) | undefined;
72
+ onSaveWidth?: ((...args: any[]) => any) | undefined;
73
+ }, {
74
+ sliderInitialWidth: number;
75
+ treeSearchApiConfig: Record<string, any>;
76
+ }>;
77
+ export default _default;
@@ -0,0 +1 @@
1
+ import e from"./index.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","index.vue"]]);export{i as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,useAttrs as t,ref as a,onMounted as r,withDirectives as n,openBlock as o,createElementBlock as s,normalizeStyle as l,createElementVNode as i,createVNode as u,unref as c,createCommentVNode as d,renderSlot as v,createBlock as f,mergeProps as p,h as m}from"vue";import{useMessage as g,NInput as h,NTree as y,NEmpty as b}from"naive-ui";import{vFlexibleResize as w}from"../../../shared/directive/flexibleResize.js";import x from"./hooks/useAsyncData.js";import{traversalData as I}from"./utils/tool.js";const O={class:"search-groups"},C={class:"tree-wrap"},k={key:1,class:"empty-container"},S={class:"table-footer-wrap"};var L=e({__name:"index",props:{sliderInitialWidth:{type:Number,default:300},treeSearchApiConfig:{type:Object,default:()=>({})}},emits:["select","saveWidth"],setup(e,{emit:L}){const A=e,N=g(),D=t();console.log("$attr>>>>>",D);const{getChildrenByOrgPartenId:$,searchEmpTreeData:j,updateDeptSort:K,getDeptList:W}=x(),M=(e,t)=>{var a,r;t=null==t?void 0:t.toLowerCase();let{label:n="",abbrp:o="",abbrw:s="",key:l,filterSearch:i=[]}=e;const u=(null==(a=null==n?void 0:n.toLowerCase())?void 0:a.indexOf(t))>-1,c=(null==(r=null==l?void 0:l.toLowerCase())?void 0:r.indexOf(t))>-1,d=i.some((e=>e.toLowerCase().indexOf(t)>-1));return!!(u||c||d)},R=a(A.sliderInitialWidth),U=a(""),E=a([]),J=a([]),P=a([]),T=a({}),_=a({});function z({option:e}){const t=e.label;if(t.includes(U.value.trim())){const e=t.substr(0,t.indexOf(U.value.trim())),a=t.substr(t.indexOf(U.value.trim())+U.value.trim().length);return m("div",[m("span",{style:{marginRight:e?"2px":"0px"}},e),m("span",{style:{color:"#2563F4"}},U.value.trim()),m("span",{style:{marginLeft:a?"2px":"0px"}},a)])}return t}function B(e){J.value=e}function F(e=[],[t]){P.value=e,L("select",t),T.value=t}async function V(){const e=U.value.trim();if(e){const{data:t,success:a}=await j({search:e},A.treeSearchApiConfig);a&&(E.value=t,J.value=function(e){const t=[];for(const a of I(e,"children")){let e=!1;for(const t of I(a.children,"children"))M(t,U.value)&&(e=!0);e&&t.push(a.key)}return t}(t))}else q(!1)}async function q(e,t){await Q();let a=E.value[0].orgId;e&&(a=t);const r=await H(a);if(r){const e=E.value.map((e=>e.orgId===a?r:e));E.value=e}}async function G(e){const{dragNode:t,node:a}=e;if(t.isOrg)return void N.error("机构不能拖动排序");if(t.orgId!==a.orgId)return void N.error("不能跨机构移动科室");if(t.parentId!==a.parentId)return void N.error("仅允许同层级科室排序");_.value=t;const r={curNode:t,moveToNode:a,orgId:t.orgId},{success:n}=await K(r,A.treeSearchApiConfig);n&&(N.success("排序成功"),q(!0,t.orgId))}async function H(e){const{data:t,success:a}=await W({orgId:e},A.treeSearchApiConfig);if(a){const a=E.value.find((t=>t.orgId===e));return a.children=t,a}}async function Q(){const{success:e,data:t}=await $(null,A.treeSearchApiConfig);e&&(E.value=t)}function X(e){return new Promise((async t=>{e.isOrg&&!e.children&&(await H(e.orgId),t(!0)),t(!0)}))}function Y({distance:e}){const t=R.value+e;R.value=Math.min(Math.max(t,50),1e3)}function Z(){L("saveWidth",R.value)}return r((()=>{!async function(){await Q(),E.value.length>0&&(J.value=[E.value[0].key],P.value=[E.value[0].key],T.value=E.value[0],L("select",JSON.parse(JSON.stringify(E.value[0]))))}()})),(e,t)=>n((o(),s("div",{class:"left-tree-wrap",ref:"left",style:l({width:R.value+"px"})},[i("div",O,[u(c(h),{clearable:"",placeholder:"搜索关键字",value:U.value,"onUpdate:value":[t[0]||(t[0]=e=>U.value=e),V]},null,8,["value"]),d(" 按钮插槽 "),v(e.$slots,"buttons")]),d(" 标签tab插槽 "),v(e.$slots,"tabs"),i("div",C,[E.value.length>0?(o(),f(c(y),p({key:0},e.$attrs,{"virtual-scroll":"",selectable:!0,data:E.value,"expanded-keys":J.value,selectedKeys:P.value,"render-label":z,"onUpdate:expandedKeys":B,"onUpdate:selectedKeys":F,onLoad:X,onDrop:G}),null,16,["data","expanded-keys","selectedKeys"])):(o(),s("div",k,[u(c(b),{description:"暂无数据"})]))]),i("div",S,[d(" 导出数据插槽 "),v(e.$slots,"output")])],4)),[[c(w),{mode:"VR",onMove:Y,onEnd:Z}]])}});export{L as default};
@@ -0,0 +1,13 @@
1
+ /**
2
+ *
3
+ * @param data
4
+ * @param param
5
+ * {
6
+ * children: 'childrenList',
7
+ * orgId: 'orgId',
8
+ * key: 'bck02',
9
+ label: 'bck03'
10
+ * }
11
+ * @returns
12
+ */
13
+ export declare function transformOriginToTree(data: any, children: string, callback?: any): any;
@@ -0,0 +1 @@
1
+ import{traversalData as o}from"./tool.js";function r(r,t,f){for(const n of o(r,t))f&&f(n);return r}export{r as transformOriginToTree};
@@ -0,0 +1 @@
1
+ export declare function traversalData(data: any[], children?: string): any;
@@ -0,0 +1 @@
1
+ function*r(e,i="children"){if(e&&Array.isArray(e))for(let l=0;l<e.length;l++)yield e[l],e[l][i]&&(yield*r(e[l][i],i))}export{r as traversalData};
@@ -0,0 +1 @@
1
+ .left-tree-wrap{background:#fff;border-right:1px solid rgba(0,0,0,.1);box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:8px;position:relative}.left-tree-wrap .search-groups{align-items:center;display:flex}.left-tree-wrap .search-groups .ant-input-search{flex:1}.left-tree-wrap .tree-wrap{flex:1;margin-top:12px;overflow-y:auto}.left-tree-wrap .tree-wrap .n-tree .n-tree-node-content{width:100%}.left-tree-wrap .tree-wrap .empty-container{align-items:center;display:flex;height:100%;justify-content:center}.left-tree-wrap .table-footer-wrap{margin-top:8px}.left-tree-wrap .resizable{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-7px;text-align:center;width:14px;z-index:1}
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as n,createElementBlock as l,normalizeStyle as o,createBlock as s,unref as c,Fragment as u,renderList as d,toDisplayString as p,createCommentVNode as r,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as L,NButtonGroup as k,NButton as b,NIcon as E}from"naive-ui";import P from"../../../../../../classification/src/directive/flexibleResize.js";import{WidgetValEnums as O}from"../../../../types/enums.js";import{ArrowBack as W,ArrowForward as _}from"@vicons/ionicons5";const x={key:0,class:"dynamic-header"},M={class:"dynamic-content"},S=["onClick"],C={key:0,class:"content"},j={class:"content"},w={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const B=e,H=t(200),A=i((()=>{var e,t;return null!=(t=null==(e=B.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=i((()=>A.value&&A.value.length>0?A.value.map((e=>{let t="";return B.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[]));function N(e){const t=B.curPage+e;z("updatePage",t)}function R({distance:e}){const t=H.value+e;H.value=Math.min(Math.max(t,200),1e3)}function T(){}return(t,i)=>a((n(),l("div",{class:"select-dynamic-options",style:o({minWidth:H.value+"px",position:"relative"})},[0===e.optionList.length?(n(),s(c(g),{key:0,description:"无数据"})):(n(),l(u,{key:1},[c(I)&&c(I).length>1?(n(),l("div",x,[(n(!0),l(u,null,d(c(I),(e=>(n(),l("span",{key:e,class:"name"},p(e),1)))),128))])):r("v-if",!0),v("ul",M,[(n(!0),l(u,null,d(e.optionList,(t=>(n(),l("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!B.isMultiple||e.value===O.WHOLE)return null==(t=B.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=B.optionList)||i.forEach((e=>{e.value===O.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=B.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",n)}(t)},[e.isShowWhole&&t.value===c(O).WHOLE?(n(),l("span",C,p(t.label),1)):(n(!0),l(u,{key:1},d(c(A),(e=>(n(),s(c(L),{key:e,trigger:"hover",duration:0},{trigger:f((()=>[v("span",j,p(t[e]),1)])),default:f((()=>[y(" "+p(t[e]),1)])),_:2},1024)))),128))],10,S)))),128))]),v("div",w,[h(c(k),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>N(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(W),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>N(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(_),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],4)),[[c(P),{mode:"VR",onMove:R,onEnd:T}]])}});export{z as default};
1
+ import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as n,createElementBlock as l,normalizeStyle as o,createBlock as s,unref as c,Fragment as u,renderList as d,toDisplayString as p,createCommentVNode as r,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as L,NButtonGroup as k,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as P}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as O}from"../../../../types/enums.js";import{ArrowBack as W,ArrowForward as _}from"@vicons/ionicons5";const x={key:0,class:"dynamic-header"},M={class:"dynamic-content"},S=["onClick"],C={key:0,class:"content"},j={class:"content"},w={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const B=e,H=t(200),A=i((()=>{var e,t;return null!=(t=null==(e=B.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=i((()=>A.value&&A.value.length>0?A.value.map((e=>{let t="";return B.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[]));function N(e){const t=B.curPage+e;z("updatePage",t)}function R({distance:e}){const t=H.value+e;H.value=Math.min(Math.max(t,200),1e3)}function T(){}return(t,i)=>a((n(),l("div",{class:"select-dynamic-options",style:o({minWidth:H.value+"px",position:"relative"})},[0===e.optionList.length?(n(),s(c(g),{key:0,description:"无数据"})):(n(),l(u,{key:1},[c(I)&&c(I).length>1?(n(),l("div",x,[(n(!0),l(u,null,d(c(I),(e=>(n(),l("span",{key:e,class:"name"},p(e),1)))),128))])):r("v-if",!0),v("ul",M,[(n(!0),l(u,null,d(e.optionList,(t=>(n(),l("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!B.isMultiple||e.value===O.WHOLE)return null==(t=B.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=B.optionList)||i.forEach((e=>{e.value===O.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=B.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",n)}(t)},[e.isShowWhole&&t.value===c(O).WHOLE?(n(),l("span",C,p(t.label),1)):(n(!0),l(u,{key:1},d(c(A),(e=>(n(),s(c(L),{key:e,trigger:"hover",duration:0},{trigger:f((()=>[v("span",j,p(t[e]),1)])),default:f((()=>[y(" "+p(t[e]),1)])),_:2},1024)))),128))],10,S)))),128))]),v("div",w,[h(c(k),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>N(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(W),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>N(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(_),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],4)),[[c(P),{mode:"VR",onMove:R,onEnd:T}]])}});export{z as default};
@@ -1 +1 @@
1
- import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let g,y,A=s;p?(g=s===t.SELECT&&c===e.MULTIPLE?null==E?void 0:E.valueList:null==(l=null==E?void 0:E.valueList)?void 0:l[0],y=null==E?void 0:E.unit,s===t.LABEL&&(A="SELECTLABEL",g=null==E?void 0:E.valueList),s===t.DATE&&(A="DATE_OUT"),s===t.DATE_TIME&&(A="DATETIME_OUT")):s===t.SELECT&&(null==u?void 0:u.list)&&(null==u?void 0:u.list.length)<10&&(A="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(A="INPUTNUMBER_RANGE"),s===t.DATE&&(A=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(A=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==u?void 0:u.manualMapping)&&(A=t.SELECTDYNAMIC);const v={isRender:!0,widgetType:A,originType:s,valueList:null==(a=null==u?void 0:u.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:g,defValueUnit:y,optionSetting:c,multiple:c===e.MULTIPLE||A===t.SELECTLABEL,manualMapping:null==u?void 0:u.manualMapping,showWholeOption:null==u?void 0:u.showWholeOption,dynamicOptionInfo:null==u?void 0:u.dynamicOptionInfo,classifyStr:null==E?void 0:E.classifyStr,linkageFieldKeys:null!=(o=null==E?void 0:E.linkageFieldKeys)?o:[]};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:v,rangeFilter:T,unit:null!=y?y:"",isAccurateSearchVal:!1,_extendData:null!=n?n:{}}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(n)&&l.multiple?i:i[0]},transformClassifyChild:function(e,i){const n={};return e&&e.length>0&&e.forEach((e=>{const r=e.field_key;n[r]="";const u=i.find((e=>e.name===r));if(u){const i=Array.isArray(e.value)&&u.type===t.SELECT?e.value:e.value.toString();if(n[r]=i,e.unit&&e.unit!==o.CUSTOM){let i="";u.type===t.DATE&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD",u.optionType):a(e.unit,"YYYY-MM-DD")),u.type===t.DATE_TIME&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):a(e.unit,"YYYY-MM-DD HH:mm:ss")),n[r]=i}}})),n},transformParams:function(e){const l={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP];return e&&e.length>0&&e.forEach((e=>{const t=e.field_key,o=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>n(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString();Array.isArray(o)&&o.length>0&&o.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(l[e.accurateSearchKey]=e.isAccurateSearch?1:0),l[t]=o)})),l}}}export{u as default};
1
+ import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let g,v,y=s;p?(g=s===t.SELECT&&c===e.MULTIPLE?null==E?void 0:E.valueList:null==(l=null==E?void 0:E.valueList)?void 0:l[0],v=null==E?void 0:E.unit,s===t.LABEL&&(y="SELECTLABEL",g=null==E?void 0:E.valueList),s===t.DATE&&(y="DATE_OUT"),s===t.DATE_TIME&&(y="DATETIME_OUT")):s===t.SELECT&&(null==u?void 0:u.list)&&(null==u?void 0:u.list.length)<10&&(y="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(y="INPUTNUMBER_RANGE"),s===t.DATE&&(y=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(y=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==u?void 0:u.manualMapping)&&(y=t.SELECTDYNAMIC);const A={isRender:!0,widgetType:y,originType:s,valueList:null==(a=null==u?void 0:u.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:g,defValueUnit:v,optionSetting:c,multiple:c===e.MULTIPLE||y===t.SELECTLABEL,manualMapping:null==u?void 0:u.manualMapping,showWholeOption:null==u?void 0:u.showWholeOption,dynamicOptionInfo:null==u?void 0:u.dynamicOptionInfo,classifyStr:null==E?void 0:E.classifyStr,linkageFieldKeys:null!=(o=null==E?void 0:E.linkageFieldKeys)?o:[]};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:A,rangeFilter:T,unit:null!=v?v:"",isAccurateSearchVal:!1,_extendData:null!=n?n:{}}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(n)&&l.multiple?i:i[0]},transformClassifyChild:function(e,i){const n={};return e&&e.length>0&&e.forEach((e=>{const r=e.field_key;n[r]="";const u=i.find((e=>e.name===r));if(u){const i=Array.isArray(e.value)&&u.type===t.SELECT?e.value:e.value.toString();if(n[r]=i,e.unit&&e.unit!==o.CUSTOM){let i="";u.type===t.DATE&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD",u.optionType):a(e.unit,"YYYY-MM-DD")),u.type===t.DATE_TIME&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):a(e.unit,"YYYY-MM-DD HH:mm:ss")),n[r]=i}}})),n},transformParams:function(e){const l={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP];return e&&e.length>0&&e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>n(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(l[e.accurateSearchKey]=e.isAccurateSearch?1:0),l[o]=t)})),l}}}export{u as default};
@@ -0,0 +1,4 @@
1
+ export declare const vFlexibleResize: {
2
+ mounted(el: any, { value }: any): void;
3
+ beforeUnmount(el: any): void;
4
+ };
@@ -1 +1 @@
1
- class t{constructor(t){this.maskMove=t=>{const e=this._isV?t.screenX:t.screenY,s=e-this._mv;this._mv=e;const{onMove:o}=this.options;o&&o({evt:t,distance:s})},this.maskUp=t=>{const{onEnd:e}=this.options,s=this._isV?t.screenX:t.screenY;e&&e({evt:t,distance:s-this._ms}),this.maskRemove()},this.toolDown=t=>{this.maskInsert(),this._isV=/^V/.test(this.options.mode),this._ms=this._mv=this._isV?t.screenX:t.screenY;const{onStart:e}=this.options;e&&e({evt:t,distance:0})},this.options=t||{},this.tool=null,this.mask=null,this._elPosition=null,this._isV=!1,this._ms=0,this._mv=0,this.init(t)}init(t){const{el:e}=t;if(!e)return;const s=this.toolCreate();this.initElPosition(),e.appendChild(s)}destroyed(){const{el:t}=this.options;this.maskRemove(),this.toolRemove(),this._elPosition?t.style.setProperty("position",this._elPosition):t.style.removeProperty("position")}initElPosition(){const t=this.options.el;if(!t)return;this._elPosition=t.style.position;const e=window.getComputedStyle(t,null).position;e&&"static"!==e||t.style.setProperty("position","relative")}maskCreate(t){if(this.mask)return this.mask;const e=document.createElement("div");return e.style="position:fixed;top:0;bottom:0;left:0;right:0;z-index:99999;cursor:"+(/^V/.test(t)?"col":"row")+"-resize",e.addEventListener("mousemove",this.maskMove),e.addEventListener("mouseup",this.maskUp),this.mask=e,e}maskRemove(){const t=this.mask;t&&(t.parentNode&&t.parentNode.removeChild(t),t.removeEventListener("mousemove",this.maskMove),t.removeEventListener("mouseup",this.maskUp),this.mask=null)}maskInsert(){const t=this.mask||this.maskCreate(this.options.mode);return document.body.appendChild(t),t}toolCreate(){if(this.tool)return this.tool;const t=document.createElement("div");return t.addEventListener("mousedown",this.toolDown),this.tool=t,this.toolInitStyle(),t}toolRemove(){const t=this.tool;t&&(t.parentNode&&t.parentNode.removeChild(t),this.tool=null)}toolInitStyle(){let t="user-select:none;cursor:col-resize;position:absolute;";const e=this.options.mode;/^V/.test(e)?t+="width: 8px;cursor:col-resize;":t+="height: 8px;cursor:row-resize;";const s={VR:"left",VL:"right",HT:"bottom",HB:"top"},o=s[e];t+=Object.keys(s).reduce(((t,e)=>{const i=s[e];return i!==o&&(t+=`${i}:0;`),t}),""),this.tool&&(this.tool.style=t)}}var e={mounted(e,{value:s}){e._flexibleResize||(e._flexibleResize=new t({el:e,mode:s.mode||"VR",onMove:s.onMove,onEnd:s.onEnd}))},beforeUnmount(t){t._flexibleResize&&(t._flexibleResize.destroyed(),t._flexibleResize=void 0)}};export{t as FlexibleResize,e as default};
1
+ class t{constructor(t){this.maskMove=t=>{const e=this._isV?t.screenX:t.screenY,s=e-this._mv;this._mv=e;const{onMove:o}=this.options;o&&o({evt:t,distance:s})},this.maskUp=t=>{const{onEnd:e}=this.options,s=this._isV?t.screenX:t.screenY;e&&e({evt:t,distance:s-this._ms}),this.maskRemove()},this.toolDown=t=>{this.maskInsert(),this._isV=/^V/.test(this.options.mode),this._ms=this._mv=this._isV?t.screenX:t.screenY;const{onStart:e}=this.options;e&&e({evt:t,distance:0})},this.options=t||{},this.tool=null,this.mask=null,this._elPosition=null,this._isV=!1,this._ms=0,this._mv=0,this.init(t)}init(t){const{el:e}=t;if(!e)return;const s=this.toolCreate();this.initElPosition(),e.appendChild(s)}destroyed(){const{el:t}=this.options;this.maskRemove(),this.toolRemove(),this._elPosition?t.style.setProperty("position",this._elPosition):t.style.removeProperty("position")}initElPosition(){const t=this.options.el;if(!t)return;this._elPosition=t.style.position;const e=window.getComputedStyle(t,null).position;e&&"static"!==e||t.style.setProperty("position","relative")}maskCreate(t){if(this.mask)return this.mask;const e=document.createElement("div");return e.style="position:fixed;top:0;bottom:0;left:0;right:0;z-index:99999;cursor:"+(/^V/.test(t)?"col":"row")+"-resize",e.addEventListener("mousemove",this.maskMove),e.addEventListener("mouseup",this.maskUp),this.mask=e,e}maskRemove(){const t=this.mask;t&&(t.parentNode&&t.parentNode.removeChild(t),t.removeEventListener("mousemove",this.maskMove),t.removeEventListener("mouseup",this.maskUp),this.mask=null)}maskInsert(){const t=this.mask||this.maskCreate(this.options.mode);return document.body.appendChild(t),t}toolCreate(){if(this.tool)return this.tool;const t=document.createElement("div");return t.addEventListener("mousedown",this.toolDown),this.tool=t,this.toolInitStyle(),t}toolRemove(){const t=this.tool;t&&(t.parentNode&&t.parentNode.removeChild(t),this.tool=null)}toolInitStyle(){let t="user-select:none;cursor:col-resize;position:absolute;";const e=this.options.mode;/^V/.test(e)?t+="width: 8px;cursor:col-resize;":t+="height: 8px;cursor:row-resize;";const s={VR:"left",VL:"right",HT:"bottom",HB:"top"},o=s[e];t+=Object.keys(s).reduce(((t,e)=>{const i=s[e];return i!==o&&(t+=`${i}:0;`),t}),""),this.tool&&(this.tool.style=t)}}const e={mounted(e,{value:s}){e._flexibleResize||(e._flexibleResize=new t({el:e,mode:s.mode||"VR",onMove:s.onMove,onEnd:s.onEnd}))},beforeUnmount(t){t._flexibleResize&&(t._flexibleResize.destroyed(),t._flexibleResize=void 0)}};export{e as vFlexibleResize};
@@ -0,0 +1 @@
1
+ export * from './flexibleResize';
@@ -0,0 +1 @@
1
+ export{vFlexibleResize}from"./flexibleResize.js";
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.51-beta.2",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.51-beta.2",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",i="3.1.51-beta.21",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.51-beta.21",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};
@@ -20,6 +20,13 @@ export declare type FormOperationalConfig = {
20
20
  operationalPrecision: string;
21
21
  operationalResult: string;
22
22
  };
23
+ export declare type IFlexibleType = {
24
+ el: HTMLBaseElement;
25
+ mode: string;
26
+ onMove: (result: any) => void;
27
+ onEnd: (result: any) => void;
28
+ onStart?: (result: any) => void;
29
+ };
23
30
  export declare namespace FormLowCodeReactions {
24
31
  type ConObj = {
25
32
  con: LOW_CODE_VALUE_RELATION;
@@ -1 +1 @@
1
- import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(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")&&s(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){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 h=o((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})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return s(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(s(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function b(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 j(t,e="px"){if(u(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const O=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!s(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,s]=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 c=s&&parseInt(s,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const s=[];for(;i;)Object.entries(i).forEach((([t,e])=>{s.includes(t)||(s.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,b as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,O as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,j as widthAppend};
1
+ import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as s,isNumber as u,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",s){r=x(r),e=x(e);for(let u=0;u<e.length;u++){if(n(e[u],i,s),o)return;for(let i=0;i<r.length;i++){const s=e[u][r[i]];if(Array.isArray(s)&&t(s,n,r,e[u]),o)return}}}(t,e,n,r)}function d(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")&&s(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){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 h=o((function(t){return t?[...t].reduce(((t,e)=>/[a-z]/.test(e)?t+8.05:/[A-Z]/.test(e)?t+9.13:/\d/.test(e)?t+8.9:/[.,]/.test(e)?t+4.03:/[)(]/.test(e)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(e)?t+13.95:/[-+]/.test(e)?t+7.51:/[/\\]/.test(e)?t+4.11:/%/.test(e)?t+12.68:/‰/.test(e)?t+17.75:t+6),0):0})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return s(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(s(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function b(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 j(t,e="px"){if(u(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const O=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!s(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,s]=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 c=s&&parseInt(s,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(u(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const s=[];for(;i;)Object.entries(i).forEach((([t,e])=>{s.includes(t)||(s.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,b as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,O as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,j as widthAppend};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.51-beta.2",
3
+ "version": "3.1.51-beta.21",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -63,5 +63,5 @@
63
63
  "iOS 7",
64
64
  "last 3 iOS versions"
65
65
  ],
66
- "gitHead": "6071bb383ac50e71c4577467f0894222b19ad09a"
66
+ "gitHead": "daaf9d708f220135fe071f6f28ea2bb18ef5b121"
67
67
  }
@@ -1,28 +0,0 @@
1
- import { IFlexibleType } from '../../../../../es/components/table-filter/src/types/tool';
2
- export declare class FlexibleResize {
3
- options: IFlexibleType;
4
- tool: any;
5
- mask: any;
6
- _elPosition: any;
7
- _isV: boolean;
8
- _ms: number;
9
- _mv: number;
10
- constructor(options: IFlexibleType);
11
- init(options: IFlexibleType): void;
12
- destroyed(): void;
13
- initElPosition(): void;
14
- maskCreate(mode: string): any;
15
- maskRemove(): void;
16
- maskMove: (e: any) => void;
17
- maskUp: (e: any) => void;
18
- maskInsert(): any;
19
- toolCreate(): any;
20
- toolRemove(): void;
21
- toolInitStyle(): void;
22
- toolDown: (e: any) => void;
23
- }
24
- declare const _default: {
25
- mounted(el: any, { value }: any): void;
26
- beforeUnmount(el: any): void;
27
- };
28
- export default _default;