cnhis-design-vue 3.1.41-beta.0 → 3.1.41-beta.10

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 (141) hide show
  1. package/es/components/button-print/src/utils/print.d.ts +1 -1
  2. package/es/components/button-print/src/utils/print.js +1 -1
  3. package/es/components/form-config/index.d.ts +14 -2
  4. package/es/components/form-config/src/FormConfig.vue.d.ts +14 -2
  5. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -1
  6. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
  7. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -1
  8. package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
  9. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  10. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  11. package/es/components/form-config/src/types/index.d.ts +1 -0
  12. package/es/components/form-render/index.d.ts +4 -1
  13. package/es/components/form-render/index.js +1 -1
  14. package/es/components/form-render/src/FormRender.vue.d.ts +4 -1
  15. package/es/components/form-render/src/FormRender.vue.js +1 -1
  16. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -1
  17. package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
  18. package/es/components/form-render/src/components/renderer/formItem.d.ts +7 -0
  19. package/es/components/form-render/src/components/renderer/formItem.js +1 -1
  20. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  21. package/es/components/form-render/src/components/renderer/select.d.ts +3 -0
  22. package/es/components/form-render/src/components/renderer/select.js +1 -1
  23. package/es/components/form-render/src/constants/index.d.ts +2 -0
  24. package/es/components/form-render/src/constants/index.js +1 -1
  25. package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -6
  26. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  27. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  28. package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
  29. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  30. package/es/components/form-render/src/hooks/useFormField.d.ts +1 -0
  31. package/es/components/form-render/src/hooks/useFormField.js +1 -1
  32. package/es/components/form-render/src/hooks/useFormGraph.d.ts +6 -0
  33. package/es/components/form-render/src/hooks/useFormGraph.js +1 -0
  34. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  35. package/es/components/form-render/src/types/fieldItem.d.ts +7 -1
  36. package/es/components/form-render/src/types/index.d.ts +1 -1
  37. package/es/components/form-render/src/utils/dom.d.ts +2 -1
  38. package/es/components/form-render/src/utils/dom.js +1 -1
  39. package/es/components/iho-table/index.d.ts +5 -5
  40. package/es/components/iho-table/index.js +1 -1
  41. package/es/components/iho-table/src/IhoTable.vue.d.ts +5 -5
  42. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  43. package/es/components/iho-table/src/constants/index.d.ts +2 -2
  44. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
  45. package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
  46. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
  47. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
  48. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
  49. package/es/components/iho-table/src/plugins/index.js +1 -1
  50. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
  51. package/es/components/iho-table/src/types/index.d.ts +6 -6
  52. package/es/components/iho-table/src/utils/index.js +1 -1
  53. package/es/components/iho-table/style/index.css +1 -1
  54. package/es/components/index.css +1 -1
  55. package/es/components/index.js +1 -1
  56. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  57. package/es/components/recommend-search/index.d.ts +10 -10
  58. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +10 -10
  59. package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
  60. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
  61. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
  62. package/es/components/scale-view/index.d.ts +1 -2
  63. package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -2
  64. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  65. package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
  66. package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
  67. package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
  68. package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
  69. package/es/components/scale-view/src/utils/judge-types.js +1 -1
  70. package/es/components/scale-view/style/index.css +1 -1
  71. package/es/components/shortcut-setter/index.d.ts +6 -1
  72. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -1
  73. package/es/components/steps-wheel/index.d.ts +1 -1
  74. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
  75. package/es/components/table-filter/index.d.ts +1171 -7721
  76. package/es/components/table-filter/index.js +1 -1
  77. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +42 -3529
  78. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
  79. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +486 -2454
  80. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
  81. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
  82. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
  83. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -42
  84. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  85. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +45 -5
  86. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  87. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  88. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  89. package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +456 -0
  90. package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -0
  91. package/es/components/table-filter/src/components/{search-modal/set-classification.vue.d.ts → set-classification/index.vue.d.ts} +37 -818
  92. package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -0
  93. package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -0
  94. package/es/components/table-filter/src/hooks/export.js +1 -1
  95. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +3 -3
  96. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  97. package/es/components/table-filter/src/hooks/useMixins.d.ts +3 -2
  98. package/es/components/table-filter/src/hooks/useMixins.js +1 -1
  99. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  100. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +47 -1188
  101. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
  102. package/es/components/table-filter/src/types/index.d.ts +4 -14
  103. package/es/components/table-filter/style/index.css +1 -1
  104. package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
  105. package/package.json +2 -2
  106. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
  107. package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
  108. package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
  109. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
  110. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -1
  111. package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +0 -71
  112. package/es/components/table-filter/src/classification/search-class-name.vue.js +0 -1
  113. package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +0 -1119
  114. package/es/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
  115. package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
  116. package/es/components/table-filter/src/components/age-com/index.vue.js +0 -1
  117. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
  118. package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
  119. package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
  120. package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
  121. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
  122. package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
  123. package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
  124. package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
  125. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
  126. package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
  127. package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
  128. package/es/components/table-filter/src/components/range-age/index.vue.js +0 -1
  129. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +0 -789
  130. package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
  131. package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +0 -18
  132. package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +0 -1
  133. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +0 -1217
  134. package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
  135. package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
  136. package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
  137. package/es/components/table-filter/src/const/dataOptions.d.ts +0 -36
  138. package/es/components/table-filter/src/const/dataOptions.js +0 -1
  139. package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
  140. package/es/components/table-filter/src/directive/preventReClick.js +0 -1
  141. /package/es/components/table-filter/src/components/table-modal/{TableModal.vue.d.ts → index.vue.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ import{defineComponent as e,computed as l,inject as t,ref as a,onDeactivated as u,openBlock as o,createElementBlock as n,unref as i,Fragment as r,renderList as s,createElementVNode as v,normalizeClass as c,createBlock as d,createCommentVNode as p,createTextVNode as f,toDisplayString as m,createVNode as h,isRef as _,withCtx as y,normalizeStyle as g}from"vue";import{widthAppend as b}from"../../../../../shared/utils/index.js";import{CheckmarkOutline as k}from"@vicons/ionicons5";import{useVirtualList as C}from"@vueuse/core";import{NInput as x,NCheckbox as S,NCheckboxGroup as $,NButtonGroup as E,NButton as j}from"naive-ui";import w from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"iho-table__filterWrapper"},I={key:0},L=["onClick"],U={class:"iho-table__filterListItem"},B={class:"iho-table__filterFooter"};var F=w(e({__name:"filter",props:{payload:{type:Object,required:!0}},setup(e){const w=e,F=l((()=>{var e,l,t;return null==(t=null==(l=null==(e=w.payload)?void 0:e.column.editRender)?void 0:l.props)?void 0:t.sortable})),O=l((()=>{var e,l,t;return null!=(t=null==(l=null==(e=w.payload)?void 0:e.column)?void 0:l.filters)?t:[]})),P=l({get:()=>O.value.reduce(((e,l)=>(l.checked&&e.push(l.value),e)),[]),set(e){if(w.payload)return O.value.forEach((l=>{w.payload.$panel.changeOption(null,e.includes(l.value),l)})),w.payload.$panel.confirmFilter(new CustomEvent("click"))}}),W=t("$xetable"),Z=l({get(){if(!W)return null;const e=W.getSortColumns().find((e=>{var l;return e.column===(null==(l=w.payload)?void 0:l.column)}));return e?e.order:null},set(e){W&&w.payload&&w.payload.$panel&&W.triggerSortEvent(new CustomEvent("click"),w.payload.column,e)}}),q=a([...P.value]),z=a("");function D(){W&&(W.reactData.filterStore.visible=!1)}u(D);const{list:H,containerProps:R,wrapperProps:G}=C(l((()=>z.value?O.value.filter((e=>`${e.label}`.includes(z.value))):O.value)),{itemHeight:32,overscan:3}),J=l((()=>!!q.value.length&&q.value.length!==O.value.length)),K=l({get:()=>q.value.length===O.value.length&&0!==O.value.length,set:e=>{q.value=e?O.value.map((e=>e.value)):[]}}),M=l((()=>({...R.style,height:b(320)})));function N(){P.value=q.value,D()}function Q(){q.value=[]}const T=[{status:"asc",text:"升序 A to Z"},{status:"desc",text:"降序 Z to A"}];return(e,l)=>(o(),n("section",A,[i(F)?(o(),n("div",I,[(o(),n(r,null,s(T,(e=>v("div",{key:e.status,class:c(["iho-table__filterButton",{"iho-table__filterButton--active":i(Z)===e.status}]),onClick:l=>{return t=e.status,Z.value=t,void D();var t}},[i(Z)===e.status?(o(),d(i(k),{key:0,class:"iho-table__sortActiveIcon"})):p("v-if",!0),f(" "+m(e.text),1)],10,L))),64))])):p("v-if",!0),i(O).length>5?(o(),d(i(x),{key:1,value:z.value,"onUpdate:value":l[0]||(l[0]=e=>z.value=e)},null,8,["value"])):p("v-if",!0),v("div",U,[h(i(S),{label:"全选",checked:i(K),"onUpdate:checked":l[1]||(l[1]=e=>_(K)?K.value=e:null),indeterminate:i(J)},null,8,["checked","indeterminate"])]),h(i($),{value:q.value,"onUpdate:value":l[3]||(l[3]=e=>q.value=e)},{default:y((()=>[v("section",{ref:i(R).ref,style:g(i(M)),onScroll:l[2]||(l[2]=(...e)=>i(R).onScroll&&i(R).onScroll(...e)),class:"iho-table__filterListWrapper"},[v("section",{style:g(i(G).style)},[(o(!0),n(r,null,s(i(H),(e=>(o(),n("div",{class:"iho-table__filterListItem",key:e.data.value},[h(i(S),{value:e.data.value,label:e.data.label},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),v("footer",B,[v("section",null,m(`已选择${q.value.length}项`),1),h(i(E),{size:"small"},{default:y((()=>[h(i(j),{onClick:Q},{default:y((()=>[f("清空")])),_:1}),h(i(j),{onClick:D},{default:y((()=>[f("取消")])),_:1}),h(i(j),{type:"primary",onClick:N},{default:y((()=>[f("确定")])),_:1})])),_:1})])]))}}),[["__file","filter.vue"]]);export{F as default};
@@ -0,0 +1 @@
1
+ export declare function filterRenderPlugin(): import("../../../../../../es/components/iho-table").TablePlugin;
@@ -0,0 +1 @@
1
+ import{createVNode as e}from"vue";import{jsonParse as t,arrayed as r}from"../../../../../shared/utils/index.js";import{isObject as i,first as l,isArray as o}from"lodash-es";import"../../../index.js";import{IHO_TABLE_NUMBER_STATUS as n}from"../../constants/index.js";import{IhoTableRenderHelper as s,IhoTableUtils as a}from"../../utils/index.js";import u from"./filter.vue.js";import{defineTablePlugin as d}from"../../hooks/useTablePlugin.js";function p(){const p="filterRenderPlugin";return d({name:p,vxe(t){t.renderer.mixin({filterRenderPlugin:{showFilterFooter:!1,renderFilter:(t,r)=>e(u,{payload:r},null)}})},apply(e){e.fieldHooks.field.tap(p,(e=>{var r,u,d,p,f,c;const m=null==(r=e.editRender)?void 0:r.props;if(!i(m))return e;const v=t(m.fieldSetting||"");if(!s.hasFilter(v))return e;e.editRender={...e.editRender,props:{...null==(u=e.editRender)?void 0:u.props,sortable:e.sortable}},e.filterRender={name:"filterRenderPlugin"};let h=null!=(f=null==(p=null==(d=v.mapping)?void 0:d.mappingFiled)?void 0:p.reduce(((e,t)=>{const r=l(t.value);return i(r)&&e.push({label:r.key,value:r.value,data:r.value}),e}),[]))?f:[];return function(e){const t=["SEARCH","SELECT","RADIO","CHECKBOX"];return(e.notParticipatingSearch||"")!==n.POSITIVE&&t.includes(a.getCellType(e))&&o(e.options)&&e.options.length}(m)&&(h=null!=(c=m.options)?c:[]),e.filters=h,e.sortable?e.headerClassName=({$table:e,column:t})=>{const r=["iho-table__hideSortIcon"];return e.isSort(t)&&r.push("is--filter-active"),r}:e.headerClassName="iho-table__hideSortIcon",e})),e.exposeHooks.expose.tap(p,((e,t,{$table:i})=>(Object.assign(e,{setSort(e,t){i.value&&i.value.sort(e,t)},setFilter(e,t){if(!i.value)return;const l=i.value.getColumnByField(e);if(!l||!o(l.filters))return;const n=r(t);l.filters.forEach((e=>{e.checked=n.includes(e.value)})),i.value.updateData()}}),e)))}})}export{p as filterRenderPlugin};
@@ -1 +1 @@
1
- import*as e from"./anchorPlugin/index.js";import*as r from"./defaultConfigPlugin/index.js";import*as i from"./filterPlugin/index.js";import*as n from"./keyboardEventPlugin/index.js";import*as d from"./lowCodeFieldAdaptorPlugin/index.js";import*as s from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as t from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as l from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as g from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as u from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as o from"./rendererPlugins/editableWidgets/timeRendererPlugin.js";import*as P from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as a from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as m from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as x from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as p from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as f from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as R from"./rowClickPlugin/index.js";import*as j from"./rowGroupSettingPlugin/index.js";import*as b from"./virtualTreePlugin/index.js";import{separateMetaModule as w}from"../../../../shared/utils/index.js";var c=w(Object.assign({"./anchorPlugin/index.tsx":e,"./defaultConfigPlugin/index.ts":r,"./filterPlugin/index.tsx":i,"./keyboardEventPlugin/index.ts":n,"./lowCodeFieldAdaptorPlugin/index.tsx":d,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":s,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":t,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":l,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":g,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":u,"./rendererPlugins/editableWidgets/timeRendererPlugin.tsx":o,"./rendererPlugins/widgets/checkRendererPlugin.tsx":P,"./rendererPlugins/widgets/colorRendererPlugin.tsx":a,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":m,"./rendererPlugins/widgets/labelRendererPlugin.tsx":x,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":p,"./rendererPlugins/widgets/seqRendererPlugin.tsx":f,"./rowClickPlugin/index.ts":R,"./rowGroupSettingPlugin/index.ts":j,"./virtualTreePlugin/index.ts":b}));export{c as default};
1
+ import*as e from"./anchorPlugin/index.js";import*as r from"./defaultConfigPlugin/index.js";import*as i from"./filterRenderPlugin/index.js";import*as n from"./keyboardEventPlugin/index.js";import*as d from"./lowCodeFieldAdaptorPlugin/index.js";import*as s from"./rendererPlugins/editableWidgets/dateRendererPlugin/index.js";import*as t from"./rendererPlugins/editableWidgets/inputRendererPlugin.js";import*as l from"./rendererPlugins/editableWidgets/numberRendererPlugin.js";import*as g from"./rendererPlugins/editableWidgets/selectRendererPlugin/index.js";import*as u from"./rendererPlugins/editableWidgets/separateRendererPlugin/index.js";import*as o from"./rendererPlugins/editableWidgets/timeRendererPlugin.js";import*as P from"./rendererPlugins/widgets/checkRendererPlugin.js";import*as a from"./rendererPlugins/widgets/colorRendererPlugin.js";import*as m from"./rendererPlugins/widgets/defaultRendererPlugin.js";import*as x from"./rendererPlugins/widgets/labelRendererPlugin.js";import*as p from"./rendererPlugins/widgets/pictureRendererPlugin.js";import*as f from"./rendererPlugins/widgets/seqRendererPlugin.js";import*as R from"./rowClickPlugin/index.js";import*as j from"./rowGroupSettingPlugin/index.js";import*as b from"./virtualTreePlugin/index.js";import{separateMetaModule as w}from"../../../../shared/utils/index.js";var c=w(Object.assign({"./anchorPlugin/index.tsx":e,"./defaultConfigPlugin/index.ts":r,"./filterRenderPlugin/index.tsx":i,"./keyboardEventPlugin/index.ts":n,"./lowCodeFieldAdaptorPlugin/index.tsx":d,"./rendererPlugins/editableWidgets/dateRendererPlugin/index.tsx":s,"./rendererPlugins/editableWidgets/inputRendererPlugin.tsx":t,"./rendererPlugins/editableWidgets/numberRendererPlugin.tsx":l,"./rendererPlugins/editableWidgets/selectRendererPlugin/index.tsx":g,"./rendererPlugins/editableWidgets/separateRendererPlugin/index.tsx":u,"./rendererPlugins/editableWidgets/timeRendererPlugin.tsx":o,"./rendererPlugins/widgets/checkRendererPlugin.tsx":P,"./rendererPlugins/widgets/colorRendererPlugin.tsx":a,"./rendererPlugins/widgets/defaultRendererPlugin.tsx":m,"./rendererPlugins/widgets/labelRendererPlugin.tsx":x,"./rendererPlugins/widgets/pictureRendererPlugin.tsx":p,"./rendererPlugins/widgets/seqRendererPlugin.tsx":f,"./rowClickPlugin/index.ts":R,"./rowGroupSettingPlugin/index.ts":j,"./virtualTreePlugin/index.ts":b}));export{c as default};
@@ -1 +1 @@
1
- import{createVNode as e}from"vue";import"../../../../index.js";import{WIDGET_TYPE as r}from"../../../constants/index.js";import{getRowHeight as n}from"../../../utils/index.js";import{defineTablePlugin as o}from"../../../hooks/useTablePlugin.js";function l(){const l={blue:"blue",sky:"skyblue",azure:"azure",palegreen:"palegreen",yellow:"yellow",darkorange:"darkorange",magenta:"magenta",purple:"purple",maroon:"maroon",orange:"orange",green:"green",red:"red",grey:"grey"};return o({name:"checkRendererPlugin",vxe(o){o.renderer.add(r.COLOR,{renderCell(r,{row:o,column:a}){const t=o[a.field];if(!t)return[];const[u,i]=t.split("-");return[e("div",{style:{background:l[i]||u,height:n()-8+"px"}},null)]}})}})}export{l as colorRendererPlugin};
1
+ import{createVNode as e}from"vue";import"../../../../index.js";import{WIDGET_TYPE as r}from"../../../constants/index.js";import{getRowHeight as n}from"../../../utils/index.js";import{defineTablePlugin as o}from"../../../hooks/useTablePlugin.js";function l(){const l={blue:"blue",sky:"skyblue",azure:"azure",palegreen:"palegreen",yellow:"yellow",darkorange:"darkorange",magenta:"magenta",purple:"purple",maroon:"maroon",orange:"orange",green:"green",red:"red",grey:"grey"};return o({name:"colorRendererPlugin",vxe(o){o.renderer.add(r.COLOR,{renderCell(r,{row:o,column:a}){const t=o[a.field];if(!t)return[];const[u,i]=t.split("-");return[e("div",{style:{background:l[i]||u,height:n()-8+"px"}},null)]}})}})}export{l as colorRendererPlugin};
@@ -1,8 +1,7 @@
1
- import { AnyObject, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
1
+ import { AnyObject, ArrayAble, MaybeString, TupleToUnion } from '../../../../../es/shared/types';
2
2
  import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes } from 'vxe-table';
3
3
  import { VxeTableListeners } from 'vxe-table/types/table';
4
4
  import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../../es/components/iho-table/src/constants';
5
- import { FilterState } from '../../../../../es/components/iho-table/src/plugins/filterPlugin/types';
6
5
  export * from './pluginType';
7
6
  export interface IhoTableRowGroupItem {
8
7
  groupName?: string;
@@ -38,9 +37,7 @@ export declare namespace IhoTableLowCodeField {
38
37
  mapping?: {
39
38
  type: string;
40
39
  mappingFiled: Array<{
41
- value: Array<{
42
- options: AnyObject[];
43
- }>;
40
+ value: Array<Record<'key' | 'value', string>>;
44
41
  }>;
45
42
  };
46
43
  };
@@ -67,6 +64,7 @@ export declare type LowCodeTableFieldItem = {
67
64
  componentProps: AnyObject;
68
65
  options: {
69
66
  label?: string;
67
+ key?: string;
70
68
  value: string;
71
69
  disabled?: boolean;
72
70
  }[];
@@ -109,5 +107,7 @@ export declare type IhoTableAnchorItem = {
109
107
  };
110
108
  export declare type IhoTableExpose = {
111
109
  $table: VxeTableInstance;
112
- setFilterState(fieldName: string, value: Partial<Omit<FilterState, 'options'>>): void;
110
+ loadData(data: AnyObject[]): void;
111
+ setSort(field: string, value: 'asc' | 'desc' | null): void;
112
+ setFilter(field: string, value: ArrayAble<string>): void;
113
113
  };
@@ -1 +1 @@
1
- import{inject as e,reactive 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 d,isObject as s}from"lodash-es";import{InjectionIhoTableEmits as m,InjectionIhoTableConfig as f,IHO_TABLE_STRING_STATUS as v,IHO_TABLE_NUMBER_STATUS as p}from"../constants/index.js";function I(e){return console.warn(`[IhoTable]: ${e}`)}const g=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function h(){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 E(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(e,t=!0){const r=t?n(new Map):new Map;return{getItemFromUUID:function(n){return r.set(n,r.get(n)||e()).get(n)},removeItemFromUUID:function(e){r.delete(e)}}}async function T(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 P(n){const t=e(m);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={}){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 F=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||{},...P(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 d(e)&&(e=i(e||"")),s(e)&&((n=e).notParticipatingSearch!==v.POSITIVE&&"manual"===(null==(t=n.mapping)?void 0:t.type));var n,t}}),O=Object.freeze({isPositive:e=>e===p.POSITIVE||e===v.POSITIVE,isNegative:e=>e===p.NEGATIVE||e===v.NEGATIVE,notPositive:e=>e!==p.POSITIVE&&e!==v.POSITIVE,notNegative:e=>e!==p.NEGATIVE&&e!==v.NEGATIVE}),V=(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!s(i)||!u(i,n)};export{F as IhoTableRenderHelper,O as IhoTableStatusHelper,g as IhoTableUtils,I as IhoTableWarn,V as createIhoTableClearActivedInterceptor,E as eventListener2EventName,w as eventName2EventListener,T as getColumnRenderWidth,h as getRowHeight,P as useIhoTableFormEvent,C as useUUIDMap};
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}from"../constants/index.js";function p(e){return console.warn(`[IhoTable]: ${e}`)}const I=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function h(){var n,t,r;const o=e(f);return o||p("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 g(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function E(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 T=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}),O=(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)};export{T as IhoTableRenderHelper,P as IhoTableStatusHelper,I as IhoTableUtils,p as IhoTableWarn,O as createIhoTableClearActivedInterceptor,g as eventListener2EventName,E as eventName2EventListener,C as getColumnRenderWidth,h as getRowHeight,w as useIhoTableFormEvent};
@@ -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-body--expanded-column,.iho-table .vxe-table--border-line{border-color:#d5d5d599!important}.iho-table .vxe-table--footer-wrapper{border-top-color:#d5d5d599!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(#d5d5d599,#d5d5d599)!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(#d5d5d599,#d5d5d599),linear-gradient(#d5d5d599,#d5d5d599)!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(#d5d5d599,#d5d5d599)!important}.iho-table .vxe-table--header-border-line{border-bottom-color:#d5d5d599!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__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:#5585f5}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;width:200px}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:#5585f5}.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__filterFooter{display:flex;justify-content:space-between}.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__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-body--expanded-column,.iho-table .vxe-table--border-line{border-color:#d5d5d599!important}.iho-table .vxe-table--footer-wrapper{border-top-color:#d5d5d599!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(#d5d5d599,#d5d5d599)!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(#d5d5d599,#d5d5d599),linear-gradient(#d5d5d599,#d5d5d599)!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(#d5d5d599,#d5d5d599)!important}.iho-table .vxe-table--header-border-line{border-bottom-color:#d5d5d599!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__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:#5585f5}.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:#5585f5}.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{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}