cnhis-design-vue 3.1.45-release.1 → 3.1.45

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 (120) hide show
  1. package/README.md +87 -87
  2. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  3. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  4. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  6. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  7. package/es/components/fabric-chart/index.d.ts +40 -5
  8. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +40 -5
  9. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  10. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +2 -0
  11. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +1 -0
  12. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -0
  13. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -0
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +20 -0
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -0
  17. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -0
  18. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
  23. package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
  25. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  26. package/es/components/fabric-chart/src/interface.d.ts +13 -0
  27. package/es/components/fabric-chart/src/utils/index.d.ts +2 -1
  28. package/es/components/fabric-chart/src/utils/index.js +1 -1
  29. package/es/components/field-set/index.d.ts +157 -38
  30. package/es/components/field-set/src/FieldSet.vue.d.ts +160 -23
  31. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  32. package/es/components/field-set/src/components/Row.vue.d.ts +132 -0
  33. package/es/components/field-set/src/components/Row.vue.js +1 -0
  34. package/es/components/field-set/src/components/Row.vue2.js +1 -0
  35. package/es/components/field-set/src/types/index.d.ts +1 -0
  36. package/es/components/field-set/src/utils/index.d.ts +7 -0
  37. package/es/components/field-set/src/utils/index.js +1 -0
  38. package/es/components/field-set/style/index.css +1 -1
  39. package/es/components/form-config/index.d.ts +3534 -21
  40. package/es/components/form-config/src/FormConfig.vue.d.ts +3534 -21
  41. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  42. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +31 -4
  43. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
  44. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +33 -4
  45. package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +11 -1
  46. package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
  47. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -0
  48. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  49. package/es/components/form-config/src/constants/index.d.ts +1 -0
  50. package/es/components/form-config/src/constants/index.js +1 -1
  51. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  52. package/es/components/form-config/src/types/index.d.ts +2 -0
  53. package/es/components/form-config/style/index.css +1 -1
  54. package/es/components/form-render/index.d.ts +31 -4
  55. package/es/components/form-render/src/FormRender.vue.d.ts +31 -4
  56. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  57. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +31 -4
  58. package/es/components/form-render/src/components/renderer/combination.d.ts +5 -5
  59. package/es/components/form-render/src/components/renderer/combination.js +1 -1
  60. package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +5 -5
  61. package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
  62. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  63. package/es/components/form-render/src/constants/index.d.ts +2 -0
  64. package/es/components/form-render/src/constants/index.js +1 -1
  65. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  66. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +1 -1
  67. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
  68. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  69. package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +3 -1
  70. package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
  71. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  72. package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
  73. package/es/components/form-render/src/types/index.d.ts +2 -0
  74. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  78. package/es/components/index.css +1 -1
  79. package/es/components/info-header/index.d.ts +72 -10
  80. package/es/components/info-header/src/InfoHeader.vue.d.ts +72 -10
  81. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -4
  82. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +31 -4
  83. package/es/components/keyboard/index.d.ts +1 -1
  84. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  85. package/es/components/recommend-search/index.d.ts +2 -2
  86. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
  87. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  88. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  89. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  90. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  91. package/es/components/search-cascader/index.d.ts +16 -3
  92. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +16 -3
  93. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  94. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  95. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  96. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  97. package/es/components/shortcut-setter/index.d.ts +31 -4
  98. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +31 -4
  99. package/es/env.d.ts +25 -25
  100. package/es/shared/assets/img/failure.png.js +1 -1
  101. package/es/shared/assets/img/no-permission.png.js +1 -1
  102. package/es/shared/assets/img/nodata.png.js +1 -1
  103. package/es/shared/assets/img/notfound.png.js +1 -1
  104. package/es/shared/assets/img/qr.png.js +1 -1
  105. package/es/shared/assets/img/success.png.js +1 -1
  106. package/es/shared/assets/img/video.png.js +1 -1
  107. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  108. package/es/shared/assets/img/xb_big.png.js +1 -1
  109. package/es/shared/assets/img/xb_small.png.js +1 -1
  110. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  111. package/es/shared/hooks/useAsyncQueue.d.ts +3 -1
  112. package/es/shared/hooks/useAsyncQueue.js +1 -1
  113. package/es/shared/package.json.js +1 -1
  114. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  115. package/es/shared/utils/tapable/index.d.ts +139 -0
  116. package/package.json +2 -2
  117. package/es/components/search-cascader/src/hooks/index.d.ts +0 -1
  118. package/es/components/search-cascader/src/hooks/index.js +0 -1
  119. package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +0 -3
  120. package/es/components/search-cascader/src/hooks/useCssVariable.js +0 -1
@@ -1 +1 @@
1
- import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as d,cloneDeep as a,isString as r}from"lodash-es";import{NEllipsis as u}from"naive-ui";import f from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as m,IHO_TABLE_FIXED_STATUS as c,LOWEST_PRIORITY as p,WIDGET_TYPE as h,InjectionIhoTableAnnotation as v,InjectionIhoTableConfig as b}from"../../constants/index.js";import{defineTablePlugin as g}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as R,IhoTableUtils as j,IhoTableRenderHelper as x}from"../../utils/index.js";import{getDefaultValue as P}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function F(){const F="lowCodeFieldAdaptorPlugin";return g({name:F,apply(g){g.fieldHooks.field.tap({name:F,stage:m},((m,p,g)=>{const F=m,S={className:F.bold?"iho-table__boldCell":"",field:F.columnName,showOverflow:"tooltip",visible:R.notNegative(F.isShow),minWidth:F.colWidth,sortable:R.isPositive(F.isSort),fixed:c[F.isFixed],...F,title:F.alias||F.title};return function(e,a){const m={default:a.slotFn,header:a.headerSlotFn,edit:a.editSlotFn,footer:a.footerSlotFn,...a.slots};if(d(a.checkEditStatus)){const{default:e}=m;d(e)&&(m.default=l=>a.checkEditStatus(l)?e(l):[t("span",null,P(l.row,l.column.editRender.props))])}const c=m.header;m.header=e=>function(e,t,a){const m=l(v),c=l(b),p=e.column||{},h=n(null==m?void 0:m.value)&&!1!==t.annotation,g=x.isEditableColumn(c.value,p),R=x.hasFilter(t)||x.hasDateFiler(t),j=r(a)?a:d(a)?a(e):null;let P=!1;if(c.value){const e=c.value.editRules&&c.value.editRules[p.field];e&&(P=o(e).some((e=>e.required)))}return i("section",{class:"iho-table__headerWrapper"},[i("section",{style:{width:s(Math.max(0,p.renderWidth-20-(P?14:0)-(h?18:0)-(R?23:0)-(g?22:0)-(p.sortable?23:0)))}},[null!=j?j:i(u,{style:{maxWidth:"100%"}},{default:()=>p.title})]),h?i(f,{modelValue:m.value[p.field],"onUpdate:modelValue":e=>m.value[p.field]=e},null):null])}(e,a,c),e.slots=m}(S,F),function(t,l,i){var o,s;const r=a(e(l));r.componentProps={size:"mini"===i.size?"small":i.size,...r.componentProps},t.editRender={autofocus:"input",name:j.getCellType(l),props:r},t.editRender.enabled=!Reflect.get(h,t.editRender.name),d(null==(o=t.slots)?void 0:o.default)&&(t.editRender.enabled=t.editRender.enabled&&d(null==(s=t.slots)?void 0:s.edit));if(!n(l.settingObj))return;Reflect.has(l.settingObj,"isHide")&&(t.visible=t.visible&&R.notPositive(l.settingObj.isHide))}(S,F,g),S})),g.fieldHooks.field.tap({name:F+"After",stage:p},(e=>(n(e.slots)&&Object.entries(e.slots).forEach((([t,l])=>{null==l&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{F as lowCodeFieldAdaptorPlugin};
1
+ import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as d,cloneDeep as a,isString as r}from"lodash-es";import{NEllipsis as u}from"naive-ui";import f from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as m,IHO_TABLE_FIXED_STATUS as c,LOWEST_PRIORITY as p,WIDGET_TYPE as h,InjectionIhoTableAnnotation as v,InjectionIhoTableConfig as b}from"../../constants/index.js";import{defineTablePlugin as g}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as R,IhoTableUtils as j,IhoTableRenderHelper as x}from"../../utils/index.js";import{getDefaultValue as P}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function F(){const F="lowCodeFieldAdaptorPlugin";return g({name:F,apply(g){g.fieldHooks.field.tap({name:F,stage:m},((m,p,g)=>{const F=m,S={className:F.bold?"iho-table__boldCell":"",field:F.columnName,showOverflow:"tooltip",visible:R.notNegative(F.isShow),minWidth:F.colWidth,sortable:R.isPositive(F.isSort),fixed:c[F.isFixed],...F,title:F.alias||F.title};return function(e,a){const m={default:a.slotFn,header:a.headerSlotFn,edit:a.editSlotFn,footer:a.footerSlotFn,...a.slots};if(d(a.checkEditStatus)){const{default:e}=m;d(e)&&(m.default=l=>a.checkEditStatus(l)?e(l):[t("span",null,P(l.row,l.column.editRender.props))])}const c=m.header;m.header=e=>function(e,t,a){var m;const c=l(v),p=l(b),h=e.column||{},g=n(null==c?void 0:c.value)&&!1!==t.annotation,R=x.isEditableColumn(p.value,h),j=x.hasFilter(t)||x.hasDateFiler(t),P=null==(m=t.titlePrefix)?void 0:m.content,F=r(a)?a:d(a)?a(e):null;let S=!1;if(p.value){const e=p.value.editRules&&p.value.editRules[h.field];e&&(S=o(e).some((e=>e.required)))}return i("section",{class:"iho-table__headerWrapper"},[i("section",{style:{width:s(Math.max(0,h.renderWidth-20-(S?14:0)-(g?18:0)-(j?23:0)-(R?22:0)-(P?20:0)-(h.sortable?23:0)))}},[null!=F?F:i(u,{style:{maxWidth:"100%"}},{default:()=>h.title})]),g?i(f,{modelValue:c.value[h.field],"onUpdate:modelValue":e=>c.value[h.field]=e},null):null])}(e,a,c),e.slots=m}(S,F),function(t,l,i){var o,s;const r=a(e(l));r.componentProps={size:"mini"===i.size?"small":i.size,...r.componentProps},t.editRender={autofocus:"input",name:j.getCellType(l),props:r},t.editRender.enabled=!Reflect.get(h,t.editRender.name),d(null==(o=t.slots)?void 0:o.default)&&(t.editRender.enabled=t.editRender.enabled&&d(null==(s=t.slots)?void 0:s.edit));if(!n(l.settingObj))return;Reflect.has(l.settingObj,"isHide")&&(t.visible=t.visible&&R.notPositive(l.settingObj.isHide))}(S,F,g),S})),g.fieldHooks.field.tap({name:F+"After",stage:p},(e=>(n(e.slots)&&Object.entries(e.slots).forEach((([t,l])=>{null==l&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{F as lowCodeFieldAdaptorPlugin};
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as r,computed as i,openBlock as a,createBlock as o,unref as s,mergeProps as n,isRef as u}from"vue";import{generateTimeFormat as l}from"../../../../../../../shared/utils/index.js";import{isFunction as m}from"lodash-es";import{useIhoTableFormEvent as d}from"../../../../utils/index.js";import p from"../../../../../../date-picker/index.js";var c=e({__name:"editDate",props:{value:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{emit:c}){const f=e,w=t(),{emitFormChangeWithParams:D}=d(f),v=r(),y=i({get:()=>f.value,set(e){const t=f.value;t!==e&&(c("update:value",e),D({oldValue:t}))}}),b=i((()=>{const e=w.valueFormat||"yyyy-MM-dd HH:mm:ss";return{valueFormat:e,format:e,timePickerProps:{format:l(e)}}})),{isStartDate:g=!1,isEndDate:h=!1}=w,T=w.connectField||"",$=(e,t)=>g&&T?e>t:!(!h||!T)&&e<t,j=e=>{const t=new Date(f.row[T]),r=new Date(e),{h:i,m:a,s:o}=H(t),s=(e,t,r,i)=>!(h&&r>i)&&(!(g&&r<i)&&$(e,t));return{isHourDisabled:t=>{if(!f.row[T])return!1;const a=new Date(`${f.row[T].split(" ")[0]} 00:00:00`).getTime(),{m:o,s:n}=H(r);return s(t,i,e-60*t*60*1e3-60*o*1e3-1e3*n,a)},isMinuteDisabled:t=>{if(!f.row[T])return!1;const o=new Date(`${f.row[T].split(" ")[0]} ${i}:00:00`).getTime(),{s:n}=H(r);return s(t,a,e-60*t*1e3-1e3*n,o)},isSecondDisabled:t=>{if(!f.row[T])return!1;const r=new Date(`${f.row[T].split(" ")[0]} ${i}:${a}:00`).getTime();return s(t,o,e-1e3*t,r)}}},x={type:w.type||"datetime",clearable:!0,placeholder:w.placeholder||"请选择",...w,...b.value,isDateDisabled:F(w.isDateDisabled)||(e=>!!f.row[T]&&$(e,h?new Date(`${f.row[T].split(" ")[0]} 00:00:00`).getTime():new Date(f.row[T]).getTime()))};function F(e){return m(e)?t=>e(t,f.row):null}function H(e){return{h:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}return x.type.includes("time")&&(x.isTimeDisabled=F(w.isTimeDisabled)||j),(e,t)=>(a(),o(s(p),n({ref_key:"formRef",ref:v},s(x),{"formatted-value":s(y),"onUpdate:formatted-value":t[0]||(t[0]=e=>u(y)?y.value=e:null)}),null,16,["formatted-value"]))}});export{c as default};
1
+ import{defineComponent as e,useAttrs as t,ref as r,computed as i,onMounted as a,openBlock as l,createBlock as o,unref as n,mergeProps as u,isRef as s}from"vue";import{generateTimeFormat as d}from"../../../../../../../shared/utils/index.js";import{isFunction as m}from"lodash-es";import{useIhoTableFormEvent as p}from"../../../../utils/index.js";import c from"../../../../../../date-picker/index.js";var f=e({__name:"editDate",props:{value:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{emit:f}){const v=e,w=t(),{emitFormChangeWithParams:D}=p(v),y=r(),b=i({get:()=>v.value,set(e){const t=v.value;t!==e&&(f("update:value",e),D({oldValue:t}))}}),g=i((()=>{const e=w.valueFormat||"yyyy-MM-dd HH:mm:ss";return{valueFormat:e,format:e,timePickerProps:{format:d(e)}}})),{isStartDate:$=!1,isEndDate:h=!1}=w,T=w.connectField||"",j=(e,t)=>$&&T?e>t:!(!h||!T)&&e<t,x=e=>{const t=new Date(v.row[T]),r=new Date(e),{h:i,m:a,s:l}=q(t),o=(e,t,r,i)=>!(h&&r>i)&&(!($&&r<i)&&j(e,t));return{isHourDisabled:t=>{if(!v.row[T])return!1;const a=new Date(`${v.row[T].split(" ")[0]} 00:00:00`).getTime(),{m:l,s:n}=q(r);return o(t,i,e-60*t*60*1e3-60*l*1e3-1e3*n,a)},isMinuteDisabled:t=>{if(!v.row[T])return!1;const l=new Date(`${v.row[T].split(" ")[0]} ${i}:00:00`).getTime(),{s:n}=q(r);return o(t,a,e-60*t*1e3-1e3*n,l)},isSecondDisabled:t=>{if(!v.row[T])return!1;const r=new Date(`${v.row[T].split(" ")[0]} ${i}:${a}:00`).getTime();return o(t,l,e-1e3*t,r)}}},S={type:w.type||"datetime",clearable:!0,placeholder:w.placeholder||"请选择",...w,...g.value,isDateDisabled:k(w.isDateDisabled)||(e=>!!v.row[T]&&j(e,h?new Date(`${v.row[T].split(" ")[0]} 00:00:00`).getTime():new Date(v.row[T]).getTime()))};function k(e){return m(e)?t=>e(t,v.row):null}function q(e){return{h:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}return S.type.includes("time")&&(S.isTimeDisabled=k(w.isTimeDisabled)||x),a((()=>{var e,t,r,i,a,l,o;return null==(o=null==(a=null==(r=null==(t=null==(e=y.value)?void 0:e.$datePicker)?void 0:t.inputInstRef)?void 0:(i=r.$el).querySelector)?void 0:(l=a.call(i,"input")).select)?void 0:o.call(l)})),(e,t)=>(l(),o(n(c),u({ref_key:"formRef",ref:y},n(S),{"formatted-value":n(b),"onUpdate:formatted-value":t[0]||(t[0]=e=>s(b)?b.value=e:null)}),null,16,["formatted-value"]))}});export{f as default};
@@ -1 +1 @@
1
- import{createVNode as e,mergeProps as t}from"vue";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as n}from"../../../../constants/index.js";import{useAutoFocus as o}from"../hooks/useAutoFocus.js";import{createIhoTableClearActivedInterceptor as r,IhoTableRenderHelper as i}from"../../../../utils/index.js";import d from"./editDate.vue.js";import{defineTablePlugin as l}from"../../../../hooks/useTablePlugin.js";function a(){const a="dateRendererPlugin";return l({name:a,vxe(o){o.interceptor.add("event.clearActived",r(n.DATE,(e=>e.classList.contains("n-date-panel")))),o.renderer.add(n.DATE,{renderCell:i.createDefaultRenderCell(),renderEdit:i.createRenderEdit((({fieldItem:n,emitFormClick:o,row:r,column:i,$rowIndex:l})=>[e(d,t({value:r[i.field],"onUpdate:value":e=>r[i.field]=e,isStartDate:n.isStartDate,isEndDate:n.isEndDate,connectField:n.connectField},n.componentProps,{column:i,row:r,"row-index":l,onClick:o}),null)]))})},apply(e){o(e).bindAutoFocusConfig(a,n.DATE,"input")}})}export{a as dateRendererPlugin};
1
+ import{createVNode as e,mergeProps as t}from"vue";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as n}from"../../../../constants/index.js";import{createIhoTableClearActivedInterceptor as r,IhoTableRenderHelper as i}from"../../../../utils/index.js";import o from"./editDate.vue.js";import{defineTablePlugin as d}from"../../../../hooks/useTablePlugin.js";function l(){return d({name:"dateRendererPlugin",vxe(d){d.interceptor.add("event.clearActived",r(n.DATE,(e=>e.classList.contains("n-date-panel")))),d.renderer.add(n.DATE,{renderCell:i.createDefaultRenderCell(),renderEdit:i.createRenderEdit((({fieldItem:n,emitFormClick:r,row:i,column:d,$rowIndex:l})=>[e(o,t({value:i[d.field],"onUpdate:value":e=>i[d.field]=e,isStartDate:n.isStartDate,isEndDate:n.isEndDate,connectField:n.connectField},n.componentProps,{column:d,row:i,"row-index":l,onClick:r}),null)]))})}})}export{l as dateRendererPlugin};
@@ -1 +1 @@
1
- function e(e){return{bindAutoFocusConfig:function(n,t,o){e.fieldHooks.field.tap(n,(e=>{var n;return(null==(n=e.editRender)?void 0:n.name)===t&&Reflect.set(e.editRender,"autofocus",(({cell:e}={})=>{var n;e&&(null==(n=e.querySelector(o))||n.click())})),e}))}}}export{e as useAutoFocus};
1
+ function e(e){return{bindAutoFocusConfig:function(t,n,r){e.fieldHooks.field.tap(t,(e=>{var t;return(null==(t=e.editRender)?void 0:t.name)===n&&(Reflect.set(e.editRender,"autofocus",(({cell:e}={})=>{if(!e)return;const t=e.querySelector(r);return null==t||t.click(),t})),"TIME"===n&&Reflect.set(e.editRender,"autoselect",!0)),e}))}}}export{e as useAutoFocus};