cnhis-design-vue 3.1.42-beta.2 → 3.1.42-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 (155) hide show
  1. package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
  2. package/es/components/base-search/src/index.vue.js +1 -1
  3. package/es/components/base-search/style/index.css +1 -1
  4. package/es/components/big-table/index.d.ts +3 -4
  5. package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
  6. package/es/components/big-table/src/BigTable.vue2.js +1 -1
  7. package/es/components/big-table/style/index.css +1 -1
  8. package/es/components/button-print/index.d.ts +4 -4
  9. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  10. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  11. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  12. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  13. package/es/components/button-print/src/utils/print.js +1 -1
  14. package/es/components/config-provider/src/ConfigProvider.js +1 -1
  15. package/es/components/config-provider/src/interface.d.ts +4 -4
  16. package/es/components/date-picker/index.d.ts +4 -0
  17. package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
  18. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  19. package/es/components/fabric-chart/index.d.ts +2 -2
  20. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  21. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
  22. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
  27. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
  28. package/es/components/field-set/index.d.ts +84 -15
  29. package/es/components/field-set/src/FieldSet.vue.d.ts +80 -29
  30. package/es/components/field-set/src/types/index.d.ts +18 -0
  31. package/es/components/field-set/src/types/index.js +1 -0
  32. package/es/components/form-config/index.d.ts +28 -25
  33. package/es/components/form-config/src/FormConfig.vue.d.ts +28 -25
  34. package/es/components/form-config/src/FormConfig.vue.js +1 -1
  35. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +12 -12
  36. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +14 -13
  37. package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
  38. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  39. package/es/components/form-config/src/constants/index.d.ts +12 -1
  40. package/es/components/form-config/src/constants/index.js +1 -1
  41. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  42. package/es/components/form-config/src/types/index.d.ts +1 -0
  43. package/es/components/form-render/index.d.ts +12 -12
  44. package/es/components/form-render/index.js +1 -1
  45. package/es/components/form-render/src/FormRender.vue.d.ts +12 -12
  46. package/es/components/form-render/src/FormRender.vue.js +1 -1
  47. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +12 -12
  48. package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
  49. package/es/components/form-render/src/components/renderer/date.js +1 -1
  50. package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
  51. package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
  52. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
  53. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  54. package/es/components/form-render/src/components/renderer/select.js +1 -1
  55. package/es/components/form-render/src/hooks/index.d.ts +1 -1
  56. package/es/components/form-render/src/hooks/index.js +1 -1
  57. package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
  58. package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
  59. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  60. package/es/components/form-render/src/types/index.d.ts +2 -1
  61. package/es/components/iho-table/index.d.ts +7 -2
  62. package/es/components/iho-table/src/IhoTable.vue.d.ts +7 -2
  63. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  64. package/es/components/iho-table/src/constants/index.d.ts +2 -1
  65. package/es/components/iho-table/src/constants/index.js +1 -1
  66. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -5
  67. package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
  68. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
  69. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
  70. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -1
  71. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
  72. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  73. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
  75. package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
  76. package/es/components/iho-table/src/plugins/index.js +1 -1
  77. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  78. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  79. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
  80. package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
  81. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
  82. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  83. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  84. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -1
  85. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  86. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  87. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.d.ts +1 -0
  88. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -0
  89. package/es/components/iho-table/src/types/index.d.ts +3 -1
  90. package/es/components/iho-table/src/types/pluginType.d.ts +9 -4
  91. package/es/components/iho-table/src/utils/index.d.ts +3 -0
  92. package/es/components/iho-table/src/utils/index.js +1 -1
  93. package/es/components/iho-table/style/index.css +1 -1
  94. package/es/components/index.css +1 -1
  95. package/es/components/index.d.ts +1 -0
  96. package/es/components/index.js +1 -1
  97. package/es/components/info-header/index.d.ts +28 -28
  98. package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
  99. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +3 -3
  100. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -3
  101. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
  102. package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
  103. package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
  104. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
  105. package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
  106. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +12 -12
  107. package/es/components/info-header/style/index.css +1 -1
  108. package/es/components/keyboard/index.d.ts +1 -1
  109. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  110. package/es/components/keyboard/src/Keyboard.vue.js +1 -1
  111. package/es/components/keyboard/src/constants/index.js +1 -1
  112. package/es/components/keyboard/style/index.css +1 -1
  113. package/es/components/scale-view/index.d.ts +25 -66
  114. package/es/components/scale-view/src/ScaleView.vue.d.ts +25 -66
  115. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  116. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  117. package/es/components/scale-view/style/index.css +1 -1
  118. package/es/components/select-person/index.d.ts +1 -1
  119. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
  120. package/es/components/shortcut-setter/index.d.ts +12 -12
  121. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -12
  122. package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
  123. package/es/components/steps-wheel/src/constants/index.js +1 -1
  124. package/es/components/steps-wheel/style/index.css +1 -1
  125. package/es/components/table-filter/index.d.ts +0 -1
  126. package/es/components/table-filter/index.js +1 -1
  127. package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
  128. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
  129. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  130. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  131. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -10
  132. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  133. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  134. package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
  135. package/es/components/table-filter/src/types/index.d.ts +0 -74
  136. package/es/components/time-picker/src/TimePicker.vue.js +1 -1
  137. package/es/shared/{mixins → hooks}/index.d.ts +1 -0
  138. package/es/shared/{mixins → hooks}/index.js +1 -1
  139. package/es/{components/form-render/src → shared}/hooks/useAsyncQueue.d.ts +0 -14
  140. package/es/shared/hooks/useAsyncQueue.js +1 -0
  141. package/es/shared/{mixins → hooks}/useDateTime.d.ts +2 -2
  142. package/es/shared/hooks/useDateTime.js +1 -0
  143. package/package.json +2 -2
  144. package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -1
  145. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
  146. package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
  147. package/es/components/table-filter/src/hooks/export.d.ts +0 -1
  148. package/es/components/table-filter/src/hooks/export.js +0 -1
  149. package/es/components/table-filter/src/tool/getWidgetType.d.ts +0 -1
  150. package/es/components/table-filter/src/tool/getWidgetType.js +0 -1
  151. package/es/shared/mixins/useDateTime.js +0 -1
  152. package/es/shared/utils/colorLog.d.ts +0 -31
  153. package/es/shared/utils/colorLog.js +0 -1
  154. /package/es/shared/{mixins → hooks}/useTheme.d.ts +0 -0
  155. /package/es/shared/{mixins → hooks}/useTheme.js +0 -0
@@ -1 +1 @@
1
- import{toRaw as e,h as t,inject as i,createVNode as l}from"vue";import{widthAppend as o,arrayed as n}from"../../../../../shared/utils/index.js";import{isObject as s,isFunction as d,cloneDeep as r,isString as a}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 b,InjectionIhoTableConfig as v}from"../../constants/index.js";import{defineTablePlugin as g}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as j,IhoTableUtils as R,IhoTableRenderHelper as P}from"../../utils/index.js";import{getDefaultValue as x}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function S(){const S="lowCodeFieldAdaptorPlugin";return g({name:S,apply(g){g.fieldHooks.field.tap({name:S,stage:m},((m,p,g)=>{const S=m,F={className:S.bold?"iho-table__boldCell":"",field:S.columnName,showOverflow:"tooltip",visible:j.notNegative(S.isShow),minWidth:S.colWidth,sortable:j.isPositive(S.isSort),fixed:c[S.isFixed],...S,title:S.alias||S.title};return function(e,r){const m={default:r.slotFn,header:r.headerSlotFn,edit:r.editSlotFn,footer:r.footerSlotFn,...r.slots};if(d(r.checkEditStatus)){const{default:e}=m;d(e)&&(m.default=i=>r.checkEditStatus(i)?e(i):[t("span",null,x(i.row,i.column.editRender.props))])}if(!1!==r.annotation){const e=m.header;m.header=t=>function(e,t,r){const m=i(b),c=i(v),p=e.column||{},h=s(null==m?void 0:m.value)&&!1!==t.annotation,g=P.isEditableColumn(c.value,p),j=p.sortable||P.hasFilter(t.fieldSetting),R=a(r)?r:d(r)?r(e):null;return l("section",{class:"iho-table__headerWrapper"},[l("section",{style:{width:o(p.renderWidth-(h?36:20)-(j?24:0)-(g?20:0))}},[[...n(null!=R?R:l(u,{style:{maxWidth:"100%"}},{default:()=>p.title}))]]),h?l(f,{modelValue:m.value[p.field],"onUpdate:modelValue":e=>m.value[p.field]=e},null):null])}(t,r,e)}e.slots=m}(F,S),function(t,i,l){var o,n;const a=r(e(i));a.componentProps={size:"mini"===l.size?"small":l.size,...a.componentProps},t.editRender={autofocus:"input",name:R.getCellType(i),props:a},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==(n=t.slots)?void 0:n.edit));if(!s(i.settingObj))return;Reflect.has(i.settingObj,"isHide")&&(t.visible=t.visible&&j.notPositive(i.settingObj.isHide))}(F,S,g),F})),g.fieldHooks.field.tap({name:S+"After",stage:p},(e=>(s(e.slots)&&Object.entries(e.slots).forEach((([t,i])=>{null==i&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{S as lowCodeFieldAdaptorPlugin};
1
+ import{toRaw as e,h as t,inject as i,createVNode as l}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as d,cloneDeep as r,isString as a}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 P}from"../../utils/index.js";import{getDefaultValue as x}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function S(){const S="lowCodeFieldAdaptorPlugin";return g({name:S,apply(g){g.fieldHooks.field.tap({name:S,stage:m},((m,p,g)=>{const S=m,F={className:S.bold?"iho-table__boldCell":"",field:S.columnName,showOverflow:"tooltip",visible:R.notNegative(S.isShow),minWidth:S.colWidth,sortable:R.isPositive(S.isSort),fixed:c[S.isFixed],...S,title:S.alias||S.title};return function(e,r){const m={default:r.slotFn,header:r.headerSlotFn,edit:r.editSlotFn,footer:r.footerSlotFn,...r.slots};if(d(r.checkEditStatus)){const{default:e}=m;d(e)&&(m.default=i=>r.checkEditStatus(i)?e(i):[t("span",null,x(i.row,i.column.editRender.props))])}const c=m.header;m.header=e=>function(e,t,r){const m=i(v),c=i(b),p=e.column||{},h=n(null==m?void 0:m.value)&&!1!==t.annotation,g=P.isEditableColumn(c.value,p),R=p.sortable||P.hasFilter(t.fieldSetting),j=a(r)?r:d(r)?r(e):null;let x=!1;if(c.value){const e=c.value.editRules&&c.value.editRules[p.field];e&&(x=o(e).some((e=>e.required)))}return l("section",{class:"iho-table__headerWrapper"},[l("section",{style:{width:s(p.renderWidth-(x?14:0)-(h?36:20)-(R?26:0)-(g?22:0))}},[null!=j?j:l(u,{style:{maxWidth:"100%"}},{default:()=>p.title})]),h?l(f,{modelValue:m.value[p.field],"onUpdate:modelValue":e=>m.value[p.field]=e},null):null])}(e,r,c),e.slots=m}(F,S),function(t,i,l){var o,s;const a=r(e(i));a.componentProps={size:"mini"===l.size?"small":l.size,...a.componentProps},t.editRender={autofocus:"input",name:j.getCellType(i),props:a},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(i.settingObj))return;Reflect.has(i.settingObj,"isHide")&&(t.visible=t.visible&&R.notPositive(i.settingObj.isHide))}(F,S,g),F})),g.fieldHooks.field.tap({name:S+"After",stage:p},(e=>(n(e.slots)&&Object.entries(e.slots).forEach((([t,i])=>{null==i&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{S as lowCodeFieldAdaptorPlugin};
@@ -0,0 +1 @@
1
+ export declare function maxCheckSizePlugin(): import("../../../../../es/components/iho-table").TablePlugin;
@@ -0,0 +1 @@
1
+ import{isNumber as e,isFunction as o}from"lodash-es";import"../../index.js";import{defineTablePlugin as n}from"../hooks/useTablePlugin.js";function t(){const t="maxCheckSizePlugin";return n({name:t,apply(n){n.configHooks.checkboxConfig.tap(t,((n,t,{$table:r})=>{if(n&&e(n.maxCheckSize)){const e=n.checkMethod,t=({row:e})=>{if(!r.value)return!0;const o=r.value.getCheckboxRecords()||[];return o.length<n.maxCheckSize||o.includes(e)};n.checkMethod=o(e)?function(o){return t(o)&&e(o)}:t,n.showHeader=!1}return n}))}})}export{t as maxCheckSizePlugin};
@@ -71,9 +71,13 @@ declare const _default: import("vue").DefineComponent<{
71
71
  [x: string]: unknown;
72
72
  };
73
73
  datePickerRef: import("vue").Ref<AnyObject | null>;
74
+ panelInstRef: import("vue").Ref<null>;
75
+ isDateTime: import("vue").ComputedRef<boolean>;
74
76
  formatRef: import("vue").ComputedRef<string>;
77
+ panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
75
78
  focus: () => any;
76
79
  blur: () => any;
80
+ onUpdateShow: (show: boolean) => void;
77
81
  NDatePicker: any;
78
82
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
79
83
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- import{defineComponent as e,createVNode as t,mergeProps as r}from"vue";import{NSelect as o}from"naive-ui";import{useIhoTableFormEvent as u}from"../../../../utils/index.js";import{useAutoFocus as a}from"../hooks/useAutoFocus.js";var l=e({name:"EditSelect",inheritAttrs:!1,components:{NSelect:o},props:{value:{type:[Array,String,Number],default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{attrs:l,emit:i}){const{isShow:s,setRef:n}=a(),{emitFormChangeWithParams:p}=u(e);function m(t){const r=e.value;i("update:value",t),p({oldValue:r})}return()=>t(o,r({ref:n,show:s.value,"onUpdate:show":e=>s.value=e},l,{value:e.value,consistentMenuWidth:!1,clearable:!0,filterable:!0,placeholder:l.placeholder||"请选择",onUpdateValue:m}),null)}});export{l as default};
1
+ import{defineComponent as e,reactive as o,createVNode as t,mergeProps as r}from"vue";import{NSelect as l}from"naive-ui";import{useIhoTableFormEvent as a}from"../../../../utils/index.js";import{useAutoFocus as n}from"../hooks/useAutoFocus.js";import{useDebounceFn as i}from"@vueuse/core";var u=e({name:"EditSelect",inheritAttrs:!1,components:{NSelect:l},props:{value:{type:[Array,String,Number],default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{attrs:u,emit:s}){const{isShow:c,setRef:p}=n(),{emitFormChangeWithParams:d}=a(e),m=o({placeholder:u.placeholder||"请选择",options:u.options});async function v(o){var t;m.loading=!0;const r={keyword:o,row:e.row,column:e.column,rowIndex:e.rowIndex};try{m.options=await(null==(t=u.queryOptions)?void 0:t.call(u,r)),m.loading=!1}catch(o){console.log(`获取${e.column.field}_options错误`)}}function h(o){const t=e.value;s("update:value",o),d({oldValue:t})}m.options||(m.remote=!0,m.loading=!1,m.onSearch=i(v,400),m.onSearch(""));const f=()=>({class:"iho-table__selectOption"}),w={class:"iho-table__selectMenu"};return()=>t(l,r({ref:p,show:c.value,"onUpdate:show":e=>c.value=e},u,m,{value:e.value,clearable:!0,filterable:!0,nodeProps:f,menuProps:w,onUpdateValue:h}),null)}});export{u as default};
@@ -1 +1 @@
1
- import{createVNode as e,mergeProps as o}from"vue";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as r}from"../../../../constants/index.js";import{createIhoTableClearActivedInterceptor as n,IhoTableRenderHelper as t}from"../../../../utils/index.js";import i from"./editSelect.js";import{getDefaultValue as l}from"./selectUtils.js";import{defineTablePlugin as s}from"../../../../hooks/useTablePlugin.js";function d(){return s({name:"selectRendererPlugin",vxe(s){s.interceptor.add("event.clearActived",n(r.SELECT,(e=>e.classList.contains("n-base-select-menu-option-wrapper")))),s.renderer.add(r.SELECT,{renderCell:({props:o},{row:r})=>[e("span",null,[l(r,o)])],renderEdit:t.createRenderEdit((({fieldItem:r,emitFormClick:n,row:t,column:l,$rowIndex:s})=>[e(i,o({options:r.options},r.componentProps,{column:l,row:t,"row-index":s,value:t[l.field],"onUpdate:value":e=>t[l.field]=e,onClick:n}),null)]))})}})}export{d as selectRendererPlugin};
1
+ import{reactive as e,inject as o,createVNode as i,mergeProps as t,onBeforeUnmount as n}from"vue";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as l,InjectionIhoTableUUID as r}from"../../../../constants/index.js";import{createIhoTableClearActivedInterceptor as d,IhoTableRenderHelper as s}from"../../../../utils/index.js";import u from"./editSelect.js";import{getDefaultValue as p}from"./selectUtils.js";import{defineTablePlugin as a}from"../../../../hooks/useTablePlugin.js";function c(){const c="selectRendererPlugin",f=e(new Map),m=e(new Map);return a({name:c,vxe(e){e.interceptor.add("event.clearActived",d(l.SELECT,(e=>e.classList.contains("iho-table__selectMenu")))),e.renderer.add(l.SELECT,{renderCell({props:e},{row:t,column:n}){var l,d;const s=o(r),u=(null==(d=null==(l=f.get(s))?void 0:l.find((e=>e.field===n.field)))?void 0:d.options)||[],a=p(t,e,u);return[i("span",null,[a])]},renderEdit:s.createRenderEdit((({fieldItem:e,emitFormClick:o,row:n,column:l,$rowIndex:r})=>[i(u,t({options:e.options,queryOptions:e.queryOptions},e.componentProps,{column:l,row:n,"row-index":r,value:n[l.field],"onUpdate:value":e=>n[l.field]=e,onClick:o}),null)]))})},apply(e){e.fieldHooks.fieldList.tap(c,((e,{uuid:o})=>(o&&m.set(o,e),e))),e.dataHooks.data.tapPromise(c,(async(e,o,{index:i,$table:t})=>{var n;if(!o.uuid)return;const l=m.get(o.uuid),r=f.get(o.uuid)||[];for(const t of l)if(t.field){if("select"===t.formType){if(r.findIndex((e=>e.field===t.field))>-1)continue;let o=t.options||[];if(t.queryOptions)try{const l={keyword:"",row:e,column:t,rowIndex:i};o=await(null==(n=t.queryOptions)?void 0:n.call(t,l))}catch(e){console.log(`获取${t.field}_options错误`)}r.push({field:t.field,options:o})}f.set(o.uuid,r)}})),e.setupHooks.setup.tap(c,(e=>{n((()=>{e.value.uuid&&(m.delete(e.value.uuid),f.delete(e.value.uuid))}))}))}})}export{c as selectRendererPlugin};
@@ -1,2 +1,2 @@
1
1
  import { LowCodeTableFieldItem } from '../../../../../../../../es/components/iho-table/src/types';
2
- export declare function getDefaultValue(row: any, item: LowCodeTableFieldItem | any): any;
2
+ export declare function getDefaultValue(row: any, item: LowCodeTableFieldItem | any, options?: never[]): any;
@@ -1 +1 @@
1
- function n(n,o){const r=n[o.columnName];return Array.isArray(r)?r.map((n=>i(n))).join(","):i(r);function i(n){var r;return i=(null==(r=o.componentProps)?void 0:r.options)||o.options||[],(null==(l=null==i?void 0:i.find((o=>o.value==n)))?void 0:l.label)||n||"";var i,l}}export{n as getDefaultValue};
1
+ function n(n,o,r=[]){const i=n[o.columnName];return Array.isArray(i)?i.map((n=>l(n))).join(","):l(i);function l(n){var i;return l=(null==(i=o.componentProps)?void 0:i.options)||o.options||r,(null==(t=null==l?void 0:l.find((o=>o.value==n)))?void 0:t.label)||n||"";var l,t}}export{n as getDefaultValue};
@@ -1 +1 @@
1
- import{createVNode as n}from"vue";import{isMatchLowCodeCondition as r}from"../../../../../../shared/utils/index.js";import{isString as o,isObject as e,isArray as t}from"lodash-es";import"../../../../index.js";import{WIDGET_TYPE as i}from"../../../constants/index.js";import{IhoTableWarn as c}from"../../../utils/index.js";import{defineTablePlugin as l}from"../../../hooks/useTablePlugin.js";function d(){return l({name:"defaultRendererPlugin",vxe(l){l.renderer.add(i.DEFAULT,{renderCell(i,{row:l,column:d}){const u=l[d.field],s=function(n){return o(n)&&!!n.match(/^###\{[^{}]+}$/)}(u)?function(r){const o=t(r);return[n("div",{style:{color:o.background||o.icon}},[e(o.icon),o.change_text])];function e(r){return r?r.match(/#[\da-f]{6}|[\da-f]{3}/i)?n("i",{class:"icon-dot",style:{"--table-icon-color":r,"--table-icon-shadow":r}},null):n("i",{class:o.icon},null):null}function t(n){try{return JSON.parse(n.replace(/^###/,""))}catch(r){return c(`invalid json-content ${n}`),{}}}}(u):[u];return function(o,e,i,c){if(!t(o)||!o.length)return c;const l=o.find((n=>n.condition&&n.condition.find((n=>{const o=e[n.field_key||i.field];return r(o,n)}))));return l?n("div",{style:{color:l.color},class:l.icon},[c]):c}(function(n){var r,o,t;const i=null==(r=n.editRender)?void 0:r.props;if(!e(i))return;return null!=(t=i.colorAndIcon)?t:null==(o=i.settingObj)?void 0:o.colorAndIcon}(d),l,d,s)}}),l.renderer.add(i.STATUS,l.renderer.get(i.DEFAULT))}})}export{d as defaultRendererPlugin};
1
+ import{createVNode as n}from"vue";import{isMatchLowCodeCondition as o}from"../../../../../../shared/utils/index.js";import{isObject as r,isArray as e}from"lodash-es";import"../../../../index.js";import{WIDGET_TYPE as t}from"../../../constants/index.js";import{isRichContent as i,parseRichContent as l}from"../../../utils/index.js";import{defineTablePlugin as d}from"../../../hooks/useTablePlugin.js";function c(){return d({name:"defaultRendererPlugin",vxe(d){d.renderer.add(t.DEFAULT,{renderCell(t,{row:d,column:c}){const s=d[c.field],u=i(s)?function(o){const r=l(o);return[n("div",{style:{color:r.background||r.icon}},[e(r.icon),r.change_text])];function e(o){return o?o.match(/#[\da-f]{6}|[\da-f]{3}/i)?n("i",{class:"icon-dot",style:{"--table-icon-color":o,"--table-icon-shadow":o}},null):n("i",{class:r.icon},null):null}}(s):[s];return function(r,t,i,l){if(!e(r)||!r.length)return l;const d=r.find((n=>n.condition&&n.condition.find((n=>{const r=t[n.field_key||i.field];return o(r,n)}))));return d?n("div",{style:{color:d.color},class:d.icon},[l]):l}(function(n){var o,e,t;const i=null==(o=n.editRender)?void 0:o.props;if(!r(i))return;return null!=(t=i.colorAndIcon)?t:null==(e=i.settingObj)?void 0:e.colorAndIcon}(c),d,c,u)}}),d.renderer.add(t.STATUS,d.renderer.get(t.DEFAULT))}})}export{c as defaultRendererPlugin};
@@ -0,0 +1 @@
1
+ export declare function variableHeightRendererPlugin(): import("../../../../../../es/components/iho-table").TablePlugin;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,inject as t,ref as o,computed as l,provide as a,watch as r,onMounted as n,createVNode as s,h as i,nextTick as u,onBeforeUnmount as d,reactive as c,unref as m}from"vue";import{traverse as p}from"../../../../../shared/utils/index.js";import{useThrottleFn as f}from"@vueuse/core";import{promiseTimeout as h}from"@vueuse/shared";import{isFunction as g,isNumber as v,omit as x,isString as I,range as y,last as H}from"lodash-es";import"../../../index.js";import{InjectionIhoTableUUID as b,WIDGET_TYPE as D}from"../../constants/index.js";import{useUUIDMap as R}from"../../utils/index.js";import{defineTablePlugin as U}from"../../hooks/useTablePlugin.js";class w{constructor(){this.records={},this.maxRecords=c({})}set(e,t,o){this.records[e]||(this.records[e]={}),this.records[e][t]=o,this.maxRecords[e]=Math.max(...Object.values(this.records[e]),0)}getMax(e){var t;return null!=(t=this.maxRecords[e])?t:0}}const{getItemFromUUID:T,removeItemFromUUID:E}=R((()=>new w),!0),{getItemFromUUID:F,removeItemFromUUID:M,setItemFromUUID:j}=R((()=>null)),{getItemFromUUID:S,removeItemFromUUID:k,setItemFromUUID:A}=R((()=>{})),C=e({props:{payload:{type:Object,required:!0}},setup(e){const d=t(b),c=t("$xetable"),m=o(),p=T(d),f=l((()=>e.payload.row[e.payload.column.field]));async function h(){await u();const{rowIndex:t,column:o}=e.payload;p&&v(t)&&m.value&&p.set(t,o.field,m.value.clientHeight)}a("updateCellHeight",h),r([()=>e.payload.rowIndex,()=>e.payload.column.field,f],h,{immediate:!0}),n((()=>{c&&!F(d)&&j(d,c)}));const x=l((()=>{var t,o,l,a;const r=null!=(o=null==(t=e.payload.column.editRender)?void 0:t.props)?o:{},n=null!=(a=null==(l=r.slots)?void 0:l.default)?a:r.slotFn;return g(n)?n:()=>f.value}));return()=>s("div",{ref:m,style:"padding:7px 0"},[i(x.value,e.payload)])}});function $(e,t,{scrollTop:o=0}){var l,a;const{uuid:r,rowConfig:n={}}=t;if(!r)return;const s=T(r),{oSize:i=0,gt:u=100}=null!=(l=S(r))?l:{},{internalData:d,reactData:c}=e,{scrollYStore:p,elemStore:f,afterFullData:h,fullDataRowIdData:g}=d;if(u>h.length)return;const v=null!=(a=n.height)?a:36,x=f["main-body-wrapper"],I=x?m(x):null,b=I?Math.max(8,Math.ceil(I.clientHeight/v)+2+2*i):8,D=[0];let R=0;o&&y(0,h.length).find((e=>{const t=(H(D)||0)+Math.max(v,s.getMax(e));if(D.push(t),t>o)return R=Math.max(0,e-i),!0})),Object.assign(p,{startIndex:R,endIndex:R+b});const U=`${D[R]}px`,w=`${y(0,h.length).reduce(((e,t)=>e+Math.max(v,s.getMax(t))),0)}px`;["main","left","right"].forEach((e=>{const t=f[`${e}-body-table`],o=t?m(t):null;o&&(o.style.marginTop=U),["header","body","footer"].forEach((t=>{const o=f[`${e}-${t}-ySpace`],l=o?m(o):null;l&&(l.style.height=w)}))}));const E=h.slice(p.startIndex,p.endIndex);E.forEach(((t,o)=>{const l=e.getRowid(t),a=g[l];a&&(a.$index=o)})),c.tableData=E}function L(){const e="variableHeightRendererPlugin";return U({name:e,vxe(e){e.renderer.add(D.VARIABLE_HEIGHT,{renderCell:(e,t)=>s(C,{payload:t},null)})},apply(t){function o(e){if(!e.uuid)return;const t=S(e.uuid);t&&(e.scrollY=t),setTimeout((()=>{const t=F(e.uuid);if(!t)return;e.scrollY={enabled:!1},t.reactData.scrollYLoad=!1;const o=t.getScroll();$(t,e,{scrollTop:o.scrollTop})}),300)}t.dataHooks.dataStart.tap(e,o),t.eventHooks.onFilterChange.tap(e,((e,t)=>o(t))),t.eventHooks.onSortChange.tap(e,((e,t)=>o(t))),t.fieldHooks.field.tap(e,(e=>{if(Reflect.get(e,"variableHeight")){const t=e.slots;e.slots=x(t,["default"]),e.editRender={...e.editRender,name:D.VARIABLE_HEIGHT}}return e})),t.fieldHooks.fieldList.tap(e,((e,t)=>(t.uuid&&p(e,((e,o)=>{var l,a,r;if((null==(l=e.editRender)?void 0:l.name)===D.VARIABLE_HEIGHT){A(t.uuid,t.scrollY),t.scrollY={enabled:!1};const e=null!=(r=null==(a=t.rowConfig)?void 0:a.height)?r:36,l=T(t.uuid),n=t.cellStyle;t.cellStyle=function(t){const o={};if(t.column.fixed){const a=Math.max(e,l.getMax(t.rowIndex));a&&(o.height=`${a}px`)}return Object.assign(o,n?g(n)?n(t):n:null)};const s=t.cellClassName;t.cellClassName=function(e){var t;const o=g(s)?s(e):s,l=o?I(o)?{[o]:!0}:o:{};return Object.assign({"virtual-height":(null==(t=e.column.editRender)?void 0:t.name)===D.VARIABLE_HEIGHT},l)},setTimeout((()=>{const e=F(t.uuid);e&&(e.reactData.scrollYLoad=!1,$(e,t,{scrollTop:0}))}),300),o()}})),e))),t.setupHooks.setup.tap(e,(e=>{d((()=>{e.value.uuid&&(E(e.value.uuid),M(e.value.uuid),k(e.value.uuid))}))})),t.eventHooks.onScroll.tap(e,f((async(e,t)=>{const{uuid:o}=t;if(!o)return;const l=F(o);l&&(await h(0),$(l,t,e))}),200))}})}export{L as variableHeightRendererPlugin};
@@ -25,6 +25,7 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
25
25
  };
26
26
  checkboxConfig: Partial<VxeTableProps['checkboxConfig'] & {
27
27
  slots: VxeColumnPropTypes.Slots;
28
+ maxCheckSize: number;
28
29
  }>;
29
30
  [K: string]: unknown;
30
31
  }>;
@@ -45,7 +46,7 @@ export declare namespace IhoTableLowCodeField {
45
46
  };
46
47
  type ColorAndIconItem = {
47
48
  condition?: {
48
- con: LOW_CODE_VALUE_RELATION & string;
49
+ con: LOW_CODE_VALUE_RELATION | string;
49
50
  value: unknown;
50
51
  field_key?: string;
51
52
  }[];
@@ -92,6 +93,7 @@ export declare type LowCodeTableFieldItem = {
92
93
  */
93
94
  checkEditStatus: (payload: VxeTableDefines.CellRenderBodyParams) => boolean | void;
94
95
  colorAndIcon: IhoTableLowCodeField.ColorAndIconItem[];
96
+ variableHeight: boolean;
95
97
  }> & Partial<VxeTableDefines.ColumnInfo>;
96
98
  export declare type IhoTableFormChangePayload = {
97
99
  column: IhoTableFieldItem;
@@ -1,4 +1,4 @@
1
- import { AnyObject, ArrayAble, Func, Nullable } from '../../../../../es/shared/types';
1
+ import { AnyObject, ArrayAble, Func, Nullable, UndefinedAble } from '../../../../../es/shared/types';
2
2
  import { AsyncParallelHook, AsyncSeriesHook, SyncHook, SyncWaterfallHook } from '../../../../../es/shared/utils/tapable';
3
3
  import { MaybeRef } from '@vueuse/core';
4
4
  import { Ref, VNode } from 'vue';
@@ -16,7 +16,7 @@ export declare type IhoTableInstance = {
16
16
  };
17
17
  export declare type TablePlugin = {
18
18
  name: string;
19
- vxe?(xeTable: IhoTableInstance): void;
19
+ vxe?(vxeTable: IhoTableInstance): void;
20
20
  apply?(hooks: TableHooks): void;
21
21
  };
22
22
  export declare type TableHooks = Readonly<{
@@ -29,9 +29,12 @@ export declare type TableHooks = Readonly<{
29
29
  exposeHooks: AbstractExposeHooks;
30
30
  }>;
31
31
  export declare type WithTableConfig<T = []> = T extends any[] ? [...T, IhoTableConfig] : [T, IhoTableConfig];
32
- declare type ConfigHookType<T> = SyncWaterfallHook<WithTableConfig<T>>;
32
+ export declare type ConfigHookContext = {
33
+ $table: Ref<UndefinedAble<VxeTableInstance>>;
34
+ };
35
+ declare type ConfigHookType<T> = SyncWaterfallHook<[...WithTableConfig<[T]>, ConfigHookContext]>;
33
36
  export declare abstract class AbstractConfigHooks {
34
- abstract readonly config: SyncWaterfallHook<IhoTableConfig>;
37
+ abstract readonly config: SyncWaterfallHook<[IhoTableConfig, ConfigHookContext]>;
35
38
  abstract readonly rowConfig: ConfigHookType<IhoTableConfig['rowConfig']>;
36
39
  abstract readonly editConfig: ConfigHookType<IhoTableConfig['editConfig']>;
37
40
  abstract readonly columnConfig: ConfigHookType<IhoTableConfig['columnConfig']>;
@@ -150,7 +153,9 @@ declare type DataHookContext = {
150
153
  };
151
154
  export declare type WithTableDataContext<T> = [...WithTableConfig<T>, DataHookContext];
152
155
  export declare abstract class AbstractDataHooks {
156
+ abstract readonly dataStart: AsyncParallelHook<WithTableConfig>;
153
157
  abstract readonly data: AsyncSeriesHook<WithTableDataContext<[AnyObject]>>;
158
+ abstract readonly dataEnd: AsyncParallelHook<WithTableConfig>;
154
159
  }
155
160
  export declare abstract class AbstractSetupHooks {
156
161
  abstract readonly setup: SyncHook<[Ref<IhoTableConfig>, Ref<IhoTableFieldItem[]>]>;
@@ -14,6 +14,7 @@ export declare function eventListener2EventName<T extends string>(eventListenerN
14
14
  export declare function eventName2EventListener<T extends string>(eventName: T): EventNameToEventListener<T>;
15
15
  export declare function useUUIDMap<T>(creator: () => T, isReactive?: boolean): {
16
16
  getItemFromUUID: (uuid: string) => T;
17
+ setItemFromUUID: (uuid: string, value: T) => void;
17
18
  removeItemFromUUID: (uuid: string) => void;
18
19
  };
19
20
  export declare function getColumnRenderWidth(column: AnyObject, $table: MaybeRef<Nullable<VxeTableInstance>>): Promise<number>;
@@ -47,4 +48,6 @@ export declare const createIhoTableClearActivedInterceptor: (type: EDITABLE_WIDG
47
48
  column: VxeTableDefines.ColumnInfo;
48
49
  }) => boolean;
49
50
  export declare function isTransformTreeType(config: IhoTableConfig): boolean;
51
+ export declare function isRichContent(content: string): content is string;
52
+ export declare function parseRichContent(richContent: string): any;
50
53
  export {};
@@ -1 +1 @@
1
- import{inject as e,unref as n,toRaw as t,createVNode as r}from"vue";import{jsonParse as o,findAncestor as i}from"../../../../shared/utils/index.js";import{promiseTimeout as u}from"@vueuse/shared";import{isNumber as l,cloneDeep as c,isString as a,isObject as d}from"lodash-es";import{InjectionIhoTableEmits as s,InjectionIhoTableConfig as f,IHO_TABLE_STRING_STATUS as m,IHO_TABLE_NUMBER_STATUS as v,IHO_TABLE_TREE_TYPE as p}from"../constants/index.js";function I(e){return console.warn(`[IhoTable]: ${e}`)}const E=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function T(){var n,t,r;const o=e(f);return o||I("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(t=null==(n=null==o?void 0:o.value)?void 0:n.rowConfig)?void 0:t.height)?r:32}function h(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function g(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}async function C(e,t){return r()||await u(0),r()||function(){const n=+e.colWidth;return l(n)?n:64}();function r(){var r,o;return null==(o=null==(r=n(t))?void 0:r.getColumnByField(e.field))?void 0:o.renderWidth}}function w(n){const r=e(s);function o(){var e;return{value:n.row[n.column.field],row:n.row,column:{...n.column,...null==(e=n.column.editRender)?void 0:e.props},index:n.rowIndex>-1?n.rowIndex:n.$rowIndex}}function i(e={}){r("formChange",{...o(),...c(t(e))})}function u(e={}){r("formClick",{...o(),...c(t(e))})}return{emitFormChange:function(){i()},emitFormClick:function(){u()},emitFormChangeWithParams:i,emitFormClickWithParams:u}}const O=Object.freeze({createDefaultRenderCell:function(){return function(e,{row:n,column:t}){return[r("span",null,[n[t.field]])]}},createRenderEdit:function(e){return function({props:n},t){return e({...t,fieldItem:n||{},...w(t)})}},isEditableColumn(e,n){var t;return!1!==(null==(t=e.editConfig)?void 0:t.showIcon)&&n.editRender&&!1!==n.editRender.enabled},hasFilter(e){return a(e)&&(e=o(e||"")),d(e)&&((n=e).notParticipatingSearch!==m.POSITIVE&&"manual"===(null==(t=n.mapping)?void 0:t.type));var n,t}}),P=Object.freeze({isPositive:e=>e===v.POSITIVE||e===m.POSITIVE,isNegative:e=>e===v.NEGATIVE||e===m.NEGATIVE,notPositive:e=>e!==v.POSITIVE&&e!==m.POSITIVE,notNegative:e=>e!==v.NEGATIVE&&e!==m.NEGATIVE}),R=(e,n)=>({$event:t,column:r})=>{var o;if((null==(o=r.editRender)?void 0:o.name)!==e)return!0;const u=null==t?void 0:t.target;return!d(u)||!i(u,n)};function F(e){return[p.TRANSFORM_WITH_SPAN_METHOD,p.TRANSFORM_TREE_TYPE].includes(`${e.isTree}`)}export{O as IhoTableRenderHelper,P as IhoTableStatusHelper,E as IhoTableUtils,I as IhoTableWarn,R as createIhoTableClearActivedInterceptor,h as eventListener2EventName,g as eventName2EventListener,C as getColumnRenderWidth,T as getRowHeight,F as isTransformTreeType,w as useIhoTableFormEvent};
1
+ import{reactive as e,inject as n,unref as t,toRaw as r,createVNode as o}from"vue";import{jsonParse as i,findAncestor as u}from"../../../../shared/utils/index.js";import{promiseTimeout as l}from"@vueuse/shared";import{isNumber as c,cloneDeep as a,isString as s,isObject as d}from"lodash-es";import{InjectionIhoTableEmits as f,InjectionIhoTableConfig as m,IHO_TABLE_STRING_STATUS as v,IHO_TABLE_NUMBER_STATUS as I,IHO_TABLE_TREE_TYPE as p}from"../constants/index.js";function h(e){return console.warn(`[IhoTable]: ${e}`)}const E=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function T(){var e,t,r;const o=n(m);return o||h("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(t=null==(e=null==o?void 0:o.value)?void 0:e.rowConfig)?void 0:t.height)?r:32}function g(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function w(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}function C(n,t=!0){const r=t?e(new Map):new Map;return{getItemFromUUID:function(e){return r.set(e,r.get(e)||n()).get(e)},setItemFromUUID:function(e,n){r.set(e,n)},removeItemFromUUID:function(e){r.delete(e)}}}async function O(e,n){return r()||await l(0),r()||function(){const n=+e.colWidth;return c(n)?n:64}();function r(){var r,o;return null==(o=null==(r=t(n))?void 0:r.getColumnByField(e.field))?void 0:o.renderWidth}}function F(e){const t=n(f);function o(){var n;return{value:e.row[e.column.field],row:e.row,column:{...e.column,...null==(n=e.column.editRender)?void 0:n.props},index:e.rowIndex>-1?e.rowIndex:e.$rowIndex}}function i(e={}){t("formChange",{...o(),...a(r(e))})}function u(e={}){t("formClick",{...o(),...a(r(e))})}return{emitFormChange:function(){i()},emitFormClick:function(){u()},emitFormChangeWithParams:i,emitFormClickWithParams:u}}const P=Object.freeze({createDefaultRenderCell:function(){return function(e,{row:n,column:t}){return[o("span",null,[n[t.field]])]}},createRenderEdit:function(e){return function({props:n},t){return e({...t,fieldItem:n||{},...F(t)})}},isEditableColumn(e,n){var t;return!1!==(null==(t=e.editConfig)?void 0:t.showIcon)&&n.editRender&&!1!==n.editRender.enabled},hasFilter(e){return s(e)&&(e=i(e||"")),d(e)&&((n=e).notParticipatingSearch!==v.POSITIVE&&"manual"===(null==(t=n.mapping)?void 0:t.type));var n,t}}),R=Object.freeze({isPositive:e=>e===I.POSITIVE||e===v.POSITIVE,isNegative:e=>e===I.NEGATIVE||e===v.NEGATIVE,notPositive:e=>e!==I.POSITIVE&&e!==v.POSITIVE,notNegative:e=>e!==I.NEGATIVE&&e!==v.NEGATIVE}),N=(e,n)=>({$event:t,column:r})=>{var o;if((null==(o=r.editRender)?void 0:o.name)!==e)return!0;const i=null==t?void 0:t.target;return!d(i)||!u(i,n)};function S(e){return[p.TRANSFORM_WITH_SPAN_METHOD,p.TRANSFORM_TREE_TYPE].includes(`${e.isTree}`)}function U(e){return s(e)&&!!e.match(/^###\{[^{}]+}$/)}function V(e){try{return JSON.parse(e.replace(/^###/,""))}catch(e){return{}}}export{P as IhoTableRenderHelper,R as IhoTableStatusHelper,E as IhoTableUtils,h as IhoTableWarn,N as createIhoTableClearActivedInterceptor,g as eventListener2EventName,w as eventName2EventListener,O as getColumnRenderWidth,T as getRowHeight,U as isRichContent,S as isTransformTreeType,V as parseRichContent,F as useIhoTableFormEvent,C as useUUIDMap};
@@ -1 +1 @@
1
- .iho-table__boldCell{font-weight:700}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-cell--title{color:#35393c}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-table--render-default .vxe-body--row.row--hover,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--stripe{background-color:var(--c-hover-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--radio,.iho-table .vxe-table--render-default .vxe-body--row.row--radio{background-color:var(--c-primary-color-opacity2);font-weight:700}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:var(--c-border-color)!important}.iho-table .vxe-table--footer-wrapper{border-top-color:var(--c-border-color)!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color)),linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .vxe-table--header-border-line{border-bottom-color:var(--c-border-color)!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table__hideSortIcon .vxe-cell--sort{display:none!important}.iho-table .is--filter-active .vxe-cell--filter .vxe-filter--btn{color:var(--c-primary-color)}.iho-table__sortActiveIcon{margin-right:4px;width:14px}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:var(--c-primary-color)}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;margin:8px 12px;width:240px}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:var(--c-primary-color)}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05)}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;height:32px;padding:0 8px}.iho-table__filterListItem:hover{background:rgba(0,0,0,.05)}.iho-table__filterListItem .n-checkbox{width:100%}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table__time-picker{position:unset}.iho-table__time-picker .n-input{display:none}.iho-table__time-picker .v-binder-follower-container{height:auto;position:unset}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content{position:unset;transform:none!important}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content .n-time-picker-panel{box-shadow:none}.iho-table__scrollbar{margin:8px 8px 8px 0;max-height:255px}.iho-table{height:100%}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.iho-table__headerWrapper{display:inline-flex}
1
+ .iho-table{height:100%}.iho-table__headerWrapper{display:inline-flex}.iho-table__boldCell{font-weight:700}.iho-table .vxe-table .vxe-table--header-wrapper,.iho-table .vxe-table.vxe-table--render-default{color:#212121}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-table--render-default .vxe-body--row.row--hover,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--stripe{background-color:var(--c-hover-color)}.iho-table .vxe-table--render-default .vxe-body--row.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--checked,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--current,.iho-table .vxe-table--render-default .vxe-body--row.row--hover.row--radio,.iho-table .vxe-table--render-default .vxe-body--row.row--radio{background-color:var(--c-primary-color-opacity2);font-weight:700}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:var(--c-border-color)!important}.iho-table .vxe-table--footer-wrapper{border-top-color:var(--c-border-color)!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(var(--c-border-color),var(--c-border-color)),linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(var(--c-border-color),var(--c-border-color))!important}.iho-table .vxe-table--header-border-line{border-bottom-color:var(--c-border-color)!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table__hideSortIcon .vxe-cell--sort{display:none!important}.iho-table .is--filter-active .vxe-cell--filter .vxe-filter--btn{color:var(--c-primary-color)}.iho-table__sortActiveIcon{margin-right:4px;width:14px}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:var(--c-primary-color)}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;margin:8px 12px;width:240px}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:var(--c-primary-color)}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05)}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;height:32px;padding:0 8px}.iho-table__filterListItem:hover{background:rgba(0,0,0,.05)}.iho-table__filterListItem .n-checkbox{width:100%}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table__time-picker{position:unset}.iho-table__time-picker .n-input{display:none}.iho-table__time-picker .v-binder-follower-container{height:auto;position:unset}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content{position:unset;transform:none!important}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content .n-time-picker-panel{box-shadow:none}.iho-table__scrollbar{margin:8px 8px 8px 0;max-height:255px}.iho-table .virtual-height .vxe-cell{max-height:fit-content!important;white-space:break-spaces!important}.iho-table__selectMenu .n-scrollbar-rail__scrollbar{display:none!important}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar,.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{display:unset!important;height:6px;width:6px}.iho-table__selectMenu .n-virtual-list::-webkit-scrollbar-thumb{background:#bfbfbf;border-radius:4px}.iho-table__selectMenu .v-vl-items{min-width:100%;width:max-content}.iho-table__selectOption .n-base-select-option__content{overflow:visible!important;text-overflow:unset!important;word-break:keep-all!important}.iho-table .is--checked.vxe-checkbox,.iho-table .is--checked.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--checked.vxe-custom--option,.iho-table .is--checked.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--checked.vxe-export--panel-column-option,.iho-table .is--checked.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--checked.vxe-table--filter-option,.iho-table .is--checked.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-checkbox,.iho-table .is--indeterminate.vxe-checkbox .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-custom--option,.iho-table .is--indeterminate.vxe-custom--option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-export--panel-column-option,.iho-table .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon,.iho-table .is--indeterminate.vxe-table--filter-option,.iho-table .is--indeterminate.vxe-table--filter-option .vxe-checkbox--icon,.iho-table .vxe-checkbox:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-export--panel-column-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table .vxe-sort--asc-btn.sort--active,.iho-table .vxe-table .vxe-sort--desc-btn.sort--active,.iho-table .vxe-table--filter-option:not(.is--disabled):hover .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--checked.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox,.iho-table .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox .vxe-checkbox--icon,.iho-table .vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon{color:var(--primary-color)}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}