cnhis-design-vue 3.2.1-release.2 → 3.2.2-beta.1
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.
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/calendar/index.d.ts +1 -11
- package/es/components/calendar/src/Calendar.vue.d.ts +1 -11
- package/es/components/callback/src/components/render/popupMaps.d.ts +72 -70
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +0 -3
- package/es/components/default-page/index.d.ts +71 -0
- package/es/components/default-page/index.js +1 -0
- package/es/components/default-page/src/constants/index.d.ts +19 -0
- package/es/components/default-page/src/constants/index.js +1 -0
- package/es/components/default-page/src/index.vue.d.ts +72 -0
- package/es/components/default-page/src/index.vue.js +1 -0
- package/es/components/default-page/src/index.vue2.js +1 -0
- package/es/components/default-page/style/index.css +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/iho-table/index.d.ts +72 -70
- package/es/components/iho-table/src/IhoTable.vue.d.ts +72 -70
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +3 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.d.ts +112 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useColumn2Data.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useColumn2Data.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useCurrentColumn.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useCurrentColumn.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useData2Column.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useData2Column.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEditCell.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEditCell.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEventConvert.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEventConvert.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useExpose.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useExpose.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHeaderCSS.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHeaderCSS.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHoverColumn.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHoverColumn.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useTriggerRow.d.ts +2 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useTriggerRow.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/{renderer.d.ts → src/renderer.d.ts} +2 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/renderer.js +1 -0
- package/es/components/iho-table/src/plugins/verticalTablePlugin/{types.d.ts → src/types.d.ts} +3 -3
- package/es/components/iho-table/src/plugins/verticalTablePlugin/{utils.d.ts → src/utils.d.ts} +7 -6
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -0
- package/es/components/iho-table/src/types/index.d.ts +33 -4
- package/es/components/iho-table/src/types/pluginType.d.ts +1 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +4 -1
- package/es/components/index.js +1 -1
- package/es/components/step-notice/index.d.ts +301 -0
- package/es/components/step-notice/index.js +1 -0
- package/es/components/step-notice/src/StepNotice.vue.d.ts +279 -0
- package/es/components/step-notice/src/StepNotice.vue.js +1 -0
- package/es/components/step-notice/src/StepNotice.vue2.js +1 -0
- package/es/components/step-notice/src/components/NoticeConnection.vue.d.ts +39 -0
- package/es/components/step-notice/src/components/NoticeConnection.vue.js +1 -0
- package/es/components/step-notice/src/components/NoticeConnection.vue2.js +1 -0
- package/es/components/step-notice/src/components/NoticeItem.vue.d.ts +148 -0
- package/es/components/step-notice/src/components/NoticeItem.vue.js +1 -0
- package/es/components/step-notice/src/components/NoticeItem.vue2.js +1 -0
- package/es/components/step-notice/src/components/NoticeItemAside.vue.d.ts +35 -0
- package/es/components/step-notice/src/components/NoticeItemAside.vue.js +1 -0
- package/es/components/step-notice/src/components/NoticeItemAside.vue2.js +1 -0
- package/es/components/step-notice/src/components/NoticeOperationList.vue.d.ts +49 -0
- package/es/components/step-notice/src/components/NoticeOperationList.vue.js +1 -0
- package/es/components/step-notice/src/components/NoticeOperationList.vue2.js +1 -0
- package/es/components/step-notice/src/hooks/useTheme.d.ts +1 -0
- package/es/components/step-notice/src/hooks/useTheme.js +1 -0
- package/es/components/step-notice/src/types.d.ts +32 -0
- package/es/components/step-notice/src/types.js +1 -0
- package/es/components/step-notice/src/utils.d.ts +3 -0
- package/es/components/step-notice/src/utils.js +1 -0
- package/es/components/step-notice/style/index.css +1 -0
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10reload.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/1tab.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/2menu.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/3view.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/4system.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/5location.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/6notfound.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/7loading.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/8nopermission.jpg.js +1 -0
- package/es/shared/assets/img/defaultCover/9nodata.jpg.js +1 -0
- package/es/shared/components/JSONTree/JSONTree.vue.d.ts +26 -0
- package/es/shared/components/JSONTree/JSONTree.vue.js +1 -0
- package/es/shared/components/JSONTree/JSONTree.vue2.js +1 -0
- package/es/shared/components/JSONTree/index.d.ts +2 -0
- package/es/shared/components/JSONTree/index.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/verticalTablePlugin/renderer.js +0 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/utils.js +0 -1
- /package/es/components/iho-table/src/plugins/verticalTablePlugin/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/es/components/iho-table/src/plugins/verticalTablePlugin/{constants.js → src/constants.js} +0 -0
- /package/es/components/iho-table/src/plugins/verticalTablePlugin/{types.js → src/types.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as r,computed as a,inject as o,openBlock as s,createElementBlock as t,createElementVNode as l,normalizeClass as i,unref as n,
|
|
1
|
+
import{defineComponent as e,ref as r,computed as a,inject as o,openBlock as s,createElementBlock as t,createElementVNode as l,normalizeClass as i,unref as n,renderSlot as d,createTextVNode as m,toDisplayString as f,createBlock as u,createCommentVNode as p,Fragment as v,createVNode as c,withCtx as _}from"vue";import"../../../../index.js";import b from"../../tooltipMessage.vue.js";import{InjectionFormItemDepsCollector as h}from"../../../constants/index.js";import{ChevronDown as k,ChevronUp as g}from"@vicons/ionicons5";import{NCollapseTransition as y}from"naive-ui";import{useFormField as j}from"../../../hooks/useFormField.js";const w={class:"form-render__linebar","anchor-target":""},x={class:"form-render__linebarHeaderTitle"};var F=e({__name:"FormCollapse",props:{show:{type:Boolean,default:!0},title:{type:String,default:""},remark:String,disabled:{type:Boolean,default:!1}},setup(e){const F=e,H=r(F.show);function S(){F.disabled||(H.value=!H.value)}const B=a((()=>["form-render__linebarHeader",{"form-render__linebarHeader--disabled":!!F.disabled}])),{field:C}=j();return o(h).setDeps(C.value.path,C.value.path.toString(),((e,r=!0)=>{H.value=r})),(r,a)=>(s(),t("section",w,[l("header",{class:i(n(B)),onClick:S},[l("div",x,[d(r.$slots,"title",{},(()=>[m(f(e.title),1)])),e.remark?(s(),u(b,{key:0,message:e.remark},null,8,["message"])):p("v-if",!0)]),e.disabled?p("v-if",!0):(s(),t(v,{key:0},[H.value?(s(),u(n(k),{key:0})):(s(),u(n(g),{key:1}))],64))],2),c(n(y),{class:"form-render__linebarItem",show:H.value},{default:_((()=>[d(r.$slots,"default")])),_:3},8,["show"])]))}});export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as i,formRenderLog as r}from"../utils/index.js";import{format as l}from"date-fns";import{useFieldNormalize as s}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as c}from"./useFormValidator.js";import{transformDateFormat as d}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function u(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig","wordbook"])})}function f(e){return"1"===e||!0===e}function _(_,x){const{createValidatorSchema:h}=c(),g=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,beforeSetValue:null==x?void 0:x.beforeSetValue,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=h(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},v=e=>{var o,t,r,l,s,a,p,c,d,_,x,h,v,y;const b=g(e);e.urlConfig?u(b,e):e.autograph&&m(b,e);const w=!!e.__multiple,C=f(null!=(t=null==(o=e.componentProps)?void 0:o.allowModify)?t:e.allowModify),O=f(null!=(l=null==(r=e.componentProps)?void 0:r.selectAll)?l:e.selectAll),A=f(null!=(a=null==(s=e.componentProps)?void 0:s.shouldSave)?a:e.save_free_entry),E=f(null!=(c=null==(p=e.componentProps)?void 0:p.allowCreate)?c:e.free_entry),j=null!=(_=null==(d=e.componentProps)?void 0:d.showField)?_:e.show_key,k=null!=(h=null==(x=e.componentProps)?void 0:x.options)?h:e.option,N=null!=(y=i(e.multi_select_value))?y:null==(v=e.componentProps)?void 0:v.maxTagCount;return Object.assign(b["x-component-props"],{multiple:w,options:k,allowModify:C,allowCreate:E||C,shouldSave:A,showField:j,maxTagCount:N,selectAll:O,...n(e,["lazyRequest","requestCache"])}),w&&(b.type="array"),b},y=e=>{var o,t;const n=g(e),i=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(n["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode,vertical:e.__vertical,selectAll:"1"===i||!0===i}),e.urlConfig?u(n,e):e.autograph&&m(n,e),n},b=e=>{const t=g(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},w=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark}}),C=new Map([["LINEBAR",w],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-component-props":{border:e.lineBreaksBorder},"x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=g(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=g(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=g(e),{decimal_length:t,validate:n,allowSlash:r}=e;return!0!==r&&"1"!==r||(o["x-component"]="INPUT_NUMBER_SLASH",o.type="string"),Object.assign(o["x-component-props"],{precision:i(null!=t?t:null==n?void 0:n.decimal_length),whiteList:e.whiteList,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",v],["REMOTE_SEARCH",v],["DATE",e=>{const o=g(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:d(e.date_format),validate:e.validate}),"current"===o.default&&(o.default=l(new Date,e.date_format||"yyyy-MM-dd")),o}],["TIME",e=>{const o=g(e);return Object.assign(o["x-component-props"],{format:e.date_format,type:d(e.date_format),validate:e.validate}),"current"===o.default&&(o.default=l(new Date,e.date_format||"HH:mm:ss")),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=g(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),"1"===e.is_allow_check_mid&&e.allow_check_mid_level&&(o["x-component-props"].checkAbleLevel=+e.allow_check_mid_level),o}],["SEARCH_CASCADER",e=>{var o;const t=g(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=g(e);return o.type="array","table"===e.displayMode?o["x-component"]="TABLE_COMBINATION":!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,minGroupNum:e.minGroupNum,showLabel:"1"!==e.hide_title,properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",y],["CHECKBOX",y],["SWITCH",e=>{const o=g(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close,showMode:e.show_mode}),o}],["SLIDER",e=>{const o=g(e);return Object.assign(o["x-component-props"],{step:i(e.step_length),max:i(e.max_length),min:i(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=g(e);Array.isArray(e.properties)&&r("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?k(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),O=e=>{if(e.suffixConfig)return A(e);return(C.get(e.html_type)||b)(e)},A=o=>{if(!o.suffixConfig&&!o.prefixConfig)return O(o);const t=o.suffixConfig?e(o.suffixConfig):[],n=[...(o.prefixConfig?e(o.prefixConfig):[]).map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:"1"}))),{...o,is_show:"1",hide_title:"1",suffixConfig:void 0,prefixConfig:void 0},...t.map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:"1"})))],i=g(o),r=n.reduce(((e,o)=>e+2*(o.elem_width||3)),0);return Object.assign(i,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:r},"x-decorator-props":{...i["x-decorator-props"],showFeedback:!1,suffixFields:n.map((e=>e.val_key))},properties:k(n)}),i},{FieldNormalizeWaterfallHook:E,FieldListNormalizeWaterfallHook:j}=s();function k(o,n={column:9999}){let i=null;return j.call(t(o),n).reduce(((e,o,s)=>{var a;const p=null==(a=(o=E.call(o,n)).validate)?void 0:a.obj_type;return p&&_&&_.collect(p,t(o)),"LINEBAR"===o.html_type?(e[l(o)]=r(w(o),s),i=e[l(o)].properties={}):i?i[l(o)]=r(O(o),s):(i=null,e[l(o)]=r(O(o),s)),e}),{});function r(e,o){return e["x-index"]=o,e}function l(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:k}}export{_ as useFieldListAdaptor};
|
|
1
|
+
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as i,formRenderLog as r}from"../utils/index.js";import{format as l}from"date-fns";import{useFieldNormalize as s}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as c}from"./useFormValidator.js";import{transformDateFormat as d}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function u(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig","wordbook"])})}function f(e){return"1"===e||!0===e}function _(_,x){const{createValidatorSchema:h}=c(),g=e=>{var o;const t={name:e.val_key,type:null!=(o=e.fieldType)?o:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable","x-compile-omitted":["title","x-component-props","x-decorator-props"]};e.reactions&&(t["x-reactions"]=e.reactions),e.noDecorator||Object.assign(t,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:e,beforeSetValue:null==x?void 0:x.beforeSetValue,span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const n=h(e);return n&&(t["x-validator"]=n),"0"===e.is_null&&(t.required=!0),t},v=e=>{var o,t,r,l,s,a,p,c,d,_,x,h,v,y;const b=g(e);e.urlConfig?u(b,e):e.autograph&&m(b,e);const w=!!e.__multiple,C=f(null!=(t=null==(o=e.componentProps)?void 0:o.allowModify)?t:e.allowModify),O=f(null!=(l=null==(r=e.componentProps)?void 0:r.selectAll)?l:e.selectAll),A=f(null!=(a=null==(s=e.componentProps)?void 0:s.shouldSave)?a:e.save_free_entry),E=f(null!=(c=null==(p=e.componentProps)?void 0:p.allowCreate)?c:e.free_entry),j=null!=(_=null==(d=e.componentProps)?void 0:d.showField)?_:e.show_key,k=null!=(h=null==(x=e.componentProps)?void 0:x.options)?h:e.option,N=null!=(y=i(e.multi_select_value))?y:null==(v=e.componentProps)?void 0:v.maxTagCount;return Object.assign(b["x-component-props"],{multiple:w,options:k,allowModify:C,allowCreate:E||C,shouldSave:A,showField:j,maxTagCount:N,selectAll:O,...n(e,["lazyRequest","requestCache"])}),w&&(b.type="array"),b},y=e=>{var o,t;const n=g(e),i=null!=(t=null==(o=e.componentProps)?void 0:o.selectAll)?t:e.selectAll;return Object.assign(n["x-component-props"],{options:e.option,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode,vertical:e.__vertical,selectAll:"1"===i||!0===i}),e.urlConfig?u(n,e):e.autograph&&m(n,e),n},b=e=>{const t=g(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},w=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark},"x-content":e.slots}),C=new Map([["LINEBAR",w],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-component-props":{border:e.lineBreaksBorder},"x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=g(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["TEXTAREA",e=>{const o=g(e);return Object.assign(o["x-component-props"],{rows:e.initialize_high||3}),o}],["INPUT_NUMBER",e=>{const o=g(e),{decimal_length:t,validate:n,allowSlash:r}=e;return!0!==r&&"1"!==r||(o["x-component"]="INPUT_NUMBER_SLASH",o.type="string"),Object.assign(o["x-component-props"],{precision:i(null!=t?t:null==n?void 0:n.decimal_length),whiteList:e.whiteList,prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",v],["REMOTE_SEARCH",v],["DATE",e=>{const o=g(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:d(e.date_format),validate:e.validate}),"current"===o.default&&(o.default=l(new Date,e.date_format||"yyyy-MM-dd")),o}],["TIME",e=>{const o=g(e);return Object.assign(o["x-component-props"],{format:e.date_format,type:d(e.date_format),validate:e.validate}),"current"===o.default&&(o.default=l(new Date,e.date_format||"HH:mm:ss")),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=g(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),"1"===e.is_allow_check_mid&&e.allow_check_mid_level&&(o["x-component-props"].checkAbleLevel=+e.allow_check_mid_level),o}],["SEARCH_CASCADER",e=>{var o;const t=g(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=g(e);return o.type="array","table"===e.displayMode?o["x-component"]="TABLE_COMBINATION":!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,minGroupNum:e.minGroupNum,showLabel:"1"!==e.hide_title,properties:e.children||[],combinationItemDeletable:e.combinationItemDeletable}),o}],["RADIO",y],["CHECKBOX",y],["SWITCH",e=>{const o=g(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close,showMode:e.show_mode}),o}],["SLIDER",e=>{const o=g(e);return Object.assign(o["x-component-props"],{step:i(e.step_length),max:i(e.max_length),min:i(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=g(e);Array.isArray(e.properties)&&r("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?k(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),O=e=>{if(e.suffixConfig)return A(e);return(C.get(e.html_type)||b)(e)},A=o=>{if(!o.suffixConfig&&!o.prefixConfig)return O(o);const t=o.suffixConfig?e(o.suffixConfig):[],n=[...(o.prefixConfig?e(o.prefixConfig):[]).map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:"1"}))),{...o,is_show:"1",hide_title:"1",suffixConfig:void 0,prefixConfig:void 0},...t.map((e=>({elem_width:o.elem_width,...e,hide_title:"1",is_show:"1"})))],i=g(o),r=n.reduce(((e,o)=>e+2*(o.elem_width||3)),0);return Object.assign(i,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:r},"x-decorator-props":{...i["x-decorator-props"],showFeedback:!1,suffixFields:n.map((e=>e.val_key))},properties:k(n)}),i},{FieldNormalizeWaterfallHook:E,FieldListNormalizeWaterfallHook:j}=s();function k(o,n={column:9999}){let i=null;return j.call(t(o),n).reduce(((e,o,s)=>{var a;const p=null==(a=(o=E.call(o,n)).validate)?void 0:a.obj_type;return p&&_&&_.collect(p,t(o)),"LINEBAR"===o.html_type?(e[l(o)]=r(w(o),s),i=e[l(o)].properties={}):i?i[l(o)]=r(O(o),s):(i=null,e[l(o)]=r(O(o),s)),e}),{});function r(e,o){return e["x-index"]=o,e}function l(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:k}}export{_ as useFieldListAdaptor};
|
|
@@ -1845,6 +1845,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1845
1845
|
maxCheckSize?: number | undefined;
|
|
1846
1846
|
disableHeader?: boolean | undefined;
|
|
1847
1847
|
useNCheckbox?: boolean | undefined;
|
|
1848
|
+
indeterminateField?: string | undefined;
|
|
1848
1849
|
} | undefined;
|
|
1849
1850
|
tooltipConfig?: {
|
|
1850
1851
|
showAll?: boolean | undefined;
|
|
@@ -2983,71 +2984,6 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2983
2984
|
adaptive?: boolean | undefined;
|
|
2984
2985
|
} | undefined;
|
|
2985
2986
|
params?: any;
|
|
2986
|
-
onFormChange?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
2987
|
-
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
|
2988
|
-
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
|
2989
|
-
onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
|
|
2990
|
-
onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
|
|
2991
|
-
onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
|
|
2992
|
-
onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
|
|
2993
|
-
onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
|
|
2994
|
-
onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
|
|
2995
|
-
onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
|
|
2996
|
-
onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
|
|
2997
|
-
onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
|
|
2998
|
-
onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
|
|
2999
|
-
onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
|
|
3000
|
-
onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
|
|
3001
|
-
onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
|
|
3002
|
-
onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
|
|
3003
|
-
onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
|
|
3004
|
-
onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
|
|
3005
|
-
onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
|
|
3006
|
-
onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
|
|
3007
|
-
onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
|
|
3008
|
-
onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
|
|
3009
|
-
onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
|
|
3010
|
-
onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
|
|
3011
|
-
onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
|
|
3012
|
-
onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
|
|
3013
|
-
onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
|
|
3014
|
-
onFilterVisible?: (() => void) | undefined;
|
|
3015
|
-
onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
|
|
3016
|
-
onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
|
|
3017
|
-
onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
|
|
3018
|
-
onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
|
|
3019
|
-
onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
|
|
3020
|
-
onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
|
|
3021
|
-
onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
|
|
3022
|
-
onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
|
|
3023
|
-
onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
|
|
3024
|
-
onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
|
|
3025
|
-
onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
|
|
3026
|
-
onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
|
|
3027
|
-
onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
|
|
3028
|
-
onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
|
|
3029
|
-
onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
|
|
3030
|
-
onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
|
|
3031
|
-
onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
|
|
3032
|
-
onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
|
|
3033
|
-
onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
|
|
3034
|
-
onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
|
|
3035
|
-
onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
|
|
3036
|
-
onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
|
|
3037
|
-
onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
|
|
3038
|
-
onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
|
|
3039
|
-
onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
|
|
3040
|
-
onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
|
|
3041
|
-
onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
|
|
3042
|
-
onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
|
|
3043
|
-
onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
|
|
3044
|
-
onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
|
|
3045
|
-
onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
|
|
3046
|
-
onPageChange?: (() => void) | undefined;
|
|
3047
|
-
onSettingClick?: (() => void) | undefined;
|
|
3048
|
-
onFormClick?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
3049
|
-
onKeyboard?: ((payload_0: import("../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
3050
|
-
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
3051
2987
|
uuid?: string | undefined;
|
|
3052
2988
|
isTree?: import("../../shared/types").MaybeString<0 | 2 | 1 | 3> | undefined;
|
|
3053
2989
|
isBatchSelect?: import("../../shared/types").MaybeString<0 | 1> | undefined;
|
|
@@ -3276,6 +3212,71 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3276
3212
|
enable?: boolean | undefined;
|
|
3277
3213
|
headerWidth?: number | "auto" | ((level: number) => number) | undefined;
|
|
3278
3214
|
} | undefined;
|
|
3215
|
+
onFormChange?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
3216
|
+
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
|
3217
|
+
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
|
3218
|
+
onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
|
|
3219
|
+
onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
|
|
3220
|
+
onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
|
|
3221
|
+
onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
|
|
3222
|
+
onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
|
|
3223
|
+
onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
|
|
3224
|
+
onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
|
|
3225
|
+
onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
|
|
3226
|
+
onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
|
|
3227
|
+
onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
|
|
3228
|
+
onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
|
|
3229
|
+
onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
|
|
3230
|
+
onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
|
|
3231
|
+
onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
|
|
3232
|
+
onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
|
|
3233
|
+
onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
|
|
3234
|
+
onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
|
|
3235
|
+
onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
|
|
3236
|
+
onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
|
|
3237
|
+
onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
|
|
3238
|
+
onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
|
|
3239
|
+
onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
|
|
3240
|
+
onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
|
|
3241
|
+
onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
|
|
3242
|
+
onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
|
|
3243
|
+
onFilterVisible?: (() => void) | undefined;
|
|
3244
|
+
onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
|
|
3245
|
+
onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
|
|
3246
|
+
onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
|
|
3247
|
+
onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
|
|
3248
|
+
onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
|
|
3249
|
+
onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
|
|
3250
|
+
onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
|
|
3251
|
+
onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
|
|
3252
|
+
onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
|
|
3253
|
+
onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
|
|
3254
|
+
onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
|
|
3255
|
+
onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
|
|
3256
|
+
onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
|
|
3257
|
+
onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
|
|
3258
|
+
onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
|
|
3259
|
+
onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
|
|
3260
|
+
onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
|
|
3261
|
+
onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
|
|
3262
|
+
onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
|
|
3263
|
+
onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
|
|
3264
|
+
onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
|
|
3265
|
+
onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
|
|
3266
|
+
onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
|
|
3267
|
+
onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
|
|
3268
|
+
onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
|
|
3269
|
+
onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
|
|
3270
|
+
onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
|
|
3271
|
+
onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
|
|
3272
|
+
onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
|
|
3273
|
+
onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
|
|
3274
|
+
onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
|
|
3275
|
+
onPageChange?: (() => void) | undefined;
|
|
3276
|
+
onSettingClick?: (() => void) | undefined;
|
|
3277
|
+
onFormClick?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
3278
|
+
onKeyboard?: ((payload_0: import("../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
3279
|
+
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
3279
3280
|
}>;
|
|
3280
3281
|
updateConfigRefDebounced: () => void;
|
|
3281
3282
|
updateConfigRef: () => void;
|
|
@@ -5407,6 +5408,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5407
5408
|
maxCheckSize?: number | undefined;
|
|
5408
5409
|
disableHeader?: boolean | undefined;
|
|
5409
5410
|
useNCheckbox?: boolean | undefined;
|
|
5411
|
+
indeterminateField?: string | undefined;
|
|
5410
5412
|
} | undefined;
|
|
5411
5413
|
tooltipConfig?: {
|
|
5412
5414
|
showAll?: boolean | undefined;
|
|
@@ -6545,11 +6547,6 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6545
6547
|
adaptive?: boolean | undefined;
|
|
6546
6548
|
} | undefined;
|
|
6547
6549
|
params?: any;
|
|
6548
|
-
onFormChange?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6549
|
-
onSettingClick?: (() => void) | undefined;
|
|
6550
|
-
onFormClick?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6551
|
-
onKeyboard?: ((payload_0: import("../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
6552
|
-
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
6553
6550
|
uuid?: string | undefined;
|
|
6554
6551
|
isTree?: import("../../shared/types").MaybeString<0 | 2 | 1 | 3> | undefined;
|
|
6555
6552
|
isBatchSelect?: import("../../shared/types").MaybeString<0 | 1> | undefined;
|
|
@@ -6778,6 +6775,11 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
6778
6775
|
enable?: boolean | undefined;
|
|
6779
6776
|
headerWidth?: number | "auto" | ((level: number) => number) | undefined;
|
|
6780
6777
|
} | undefined;
|
|
6778
|
+
onFormChange?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6779
|
+
onSettingClick?: (() => void) | undefined;
|
|
6780
|
+
onFormClick?: ((payload_0: import("../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6781
|
+
onKeyboard?: ((payload_0: import("../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
6782
|
+
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
6781
6783
|
}>;
|
|
6782
6784
|
configChanged: boolean;
|
|
6783
6785
|
fieldChanged: boolean;
|
|
@@ -1846,6 +1846,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1846
1846
|
maxCheckSize?: number | undefined;
|
|
1847
1847
|
disableHeader?: boolean | undefined;
|
|
1848
1848
|
useNCheckbox?: boolean | undefined;
|
|
1849
|
+
indeterminateField?: string | undefined;
|
|
1849
1850
|
} | undefined;
|
|
1850
1851
|
tooltipConfig?: {
|
|
1851
1852
|
showAll?: boolean | undefined;
|
|
@@ -2984,71 +2985,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2984
2985
|
adaptive?: boolean | undefined;
|
|
2985
2986
|
} | undefined;
|
|
2986
2987
|
params?: any;
|
|
2987
|
-
onFormChange?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
2988
|
-
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
|
2989
|
-
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
|
2990
|
-
onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
|
|
2991
|
-
onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
|
|
2992
|
-
onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
|
|
2993
|
-
onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
|
|
2994
|
-
onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
|
|
2995
|
-
onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
|
|
2996
|
-
onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
|
|
2997
|
-
onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
|
|
2998
|
-
onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
|
|
2999
|
-
onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
|
|
3000
|
-
onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
|
|
3001
|
-
onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
|
|
3002
|
-
onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
|
|
3003
|
-
onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
|
|
3004
|
-
onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
|
|
3005
|
-
onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
|
|
3006
|
-
onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
|
|
3007
|
-
onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
|
|
3008
|
-
onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
|
|
3009
|
-
onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
|
|
3010
|
-
onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
|
|
3011
|
-
onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
|
|
3012
|
-
onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
|
|
3013
|
-
onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
|
|
3014
|
-
onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
|
|
3015
|
-
onFilterVisible?: (() => void) | undefined;
|
|
3016
|
-
onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
|
|
3017
|
-
onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
|
|
3018
|
-
onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
|
|
3019
|
-
onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
|
|
3020
|
-
onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
|
|
3021
|
-
onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
|
|
3022
|
-
onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
|
|
3023
|
-
onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
|
|
3024
|
-
onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
|
|
3025
|
-
onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
|
|
3026
|
-
onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
|
|
3027
|
-
onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
|
|
3028
|
-
onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
|
|
3029
|
-
onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
|
|
3030
|
-
onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
|
|
3031
|
-
onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
|
|
3032
|
-
onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
|
|
3033
|
-
onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
|
|
3034
|
-
onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
|
|
3035
|
-
onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
|
|
3036
|
-
onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
|
|
3037
|
-
onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
|
|
3038
|
-
onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
|
|
3039
|
-
onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
|
|
3040
|
-
onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
|
|
3041
|
-
onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
|
|
3042
|
-
onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
|
|
3043
|
-
onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
|
|
3044
|
-
onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
|
|
3045
|
-
onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
|
|
3046
|
-
onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
|
|
3047
|
-
onPageChange?: (() => void) | undefined;
|
|
3048
|
-
onSettingClick?: (() => void) | undefined;
|
|
3049
|
-
onFormClick?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
3050
|
-
onKeyboard?: ((payload_0: import("../../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
3051
|
-
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
3052
2988
|
uuid?: string | undefined;
|
|
3053
2989
|
isTree?: import("../../../shared/types").MaybeString<0 | 2 | 1 | 3> | undefined;
|
|
3054
2990
|
isBatchSelect?: import("../../../shared/types").MaybeString<0 | 1> | undefined;
|
|
@@ -3277,6 +3213,71 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3277
3213
|
enable?: boolean | undefined;
|
|
3278
3214
|
headerWidth?: number | "auto" | ((level: number) => number) | undefined;
|
|
3279
3215
|
} | undefined;
|
|
3216
|
+
onFormChange?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
3217
|
+
onCopy?: ((params: import("vxe-table").VxeTableDefines.CopyEventParams) => void) | undefined;
|
|
3218
|
+
onCut?: ((params: import("vxe-table").VxeTableDefines.CutEventParams) => void) | undefined;
|
|
3219
|
+
onPaste?: ((params: import("vxe-table").VxeTableDefines.PasteEventParams) => void) | undefined;
|
|
3220
|
+
onKeydown?: ((params: import("vxe-table").VxeTableDefines.KeydownEventParams) => void) | undefined;
|
|
3221
|
+
onScroll?: ((params: import("vxe-table").VxeTableDefines.ScrollEventParams) => void) | undefined;
|
|
3222
|
+
onKeydownStart?: ((params: import("vxe-table").VxeTableDefines.KeydownStartEventParams) => void) | undefined;
|
|
3223
|
+
onKeydownEnd?: ((params: import("vxe-table").VxeTableDefines.KeydownEndEventParams) => void) | undefined;
|
|
3224
|
+
onCurrentChange?: ((params: import("vxe-table").VxeTableDefines.CurrentChangeEventParams) => void) | undefined;
|
|
3225
|
+
onRadioChange?: ((params: import("vxe-table").VxeTableDefines.RadioChangeEventParams) => void) | undefined;
|
|
3226
|
+
onCheckboxChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxChangeEventParams) => void) | undefined;
|
|
3227
|
+
onCheckboxAll?: ((params: import("vxe-table").VxeTableDefines.CheckboxAllEventParams) => void) | undefined;
|
|
3228
|
+
onCheckboxRangeStart?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeStartEventParams) => void) | undefined;
|
|
3229
|
+
onCheckboxRangeChange?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeChangeEventParams) => void) | undefined;
|
|
3230
|
+
onCheckboxRangeEnd?: ((params: import("vxe-table").VxeTableDefines.CheckboxRangeEndEventParams) => void) | undefined;
|
|
3231
|
+
onCellClick?: ((params: import("vxe-table").VxeTableDefines.CellClickEventParams) => void) | undefined;
|
|
3232
|
+
onCellDblclick?: ((params: import("vxe-table").VxeTableDefines.CellDblclickEventParams) => void) | undefined;
|
|
3233
|
+
onCellMenu?: ((params: import("vxe-table").VxeTableDefines.CellMenuEventParams) => void) | undefined;
|
|
3234
|
+
onCellMouseenter?: ((params: import("vxe-table").VxeTableDefines.CellMouseenterEventParams) => void) | undefined;
|
|
3235
|
+
onCellMouseleave?: ((params: import("vxe-table").VxeTableDefines.CellMouseleaveEventParams) => void) | undefined;
|
|
3236
|
+
onHeaderCellClick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellClickEventParams) => void) | undefined;
|
|
3237
|
+
onHeaderCellDblclick?: ((params: import("vxe-table").VxeTableDefines.HeaderCellDblclickEventParams) => void) | undefined;
|
|
3238
|
+
onHeaderCellMenu?: ((params: import("vxe-table").VxeTableDefines.HeaderCellMenuEventParams) => void) | undefined;
|
|
3239
|
+
onFooterCellClick?: ((params: import("vxe-table").VxeTableDefines.FooterCellClickEventParams) => void) | undefined;
|
|
3240
|
+
onFooterCellDblclick?: ((params: import("vxe-table").VxeTableDefines.FooterCellDblclickEventParams) => void) | undefined;
|
|
3241
|
+
onFooterCellMenu?: ((params: import("vxe-table").VxeTableDefines.FooterCellMenuEventParams) => void) | undefined;
|
|
3242
|
+
onSortChange?: ((params: import("vxe-table").VxeTableDefines.SortChangeEventParams) => void) | undefined;
|
|
3243
|
+
onFilterChange?: ((params: import("vxe-table").VxeTableDefines.FilterChangeEventParams) => void) | undefined;
|
|
3244
|
+
onFilterVisible?: (() => void) | undefined;
|
|
3245
|
+
onResizableChange?: ((params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void) | undefined;
|
|
3246
|
+
onToggleRowExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleRowExpandEventParams) => void) | undefined;
|
|
3247
|
+
onToggleTreeExpand?: ((params: import("vxe-table").VxeTableDefines.ToggleTreeExpandEventParams) => void) | undefined;
|
|
3248
|
+
onMenuClick?: ((params: import("vxe-table").VxeTableDefines.MenuClickEventParams) => void) | undefined;
|
|
3249
|
+
onEditClosed?: ((params: import("vxe-table").VxeTableDefines.EditClosedEventParams) => void) | undefined;
|
|
3250
|
+
onEditActived?: ((params: import("vxe-table").VxeTableDefines.EditActivedEventParams) => void) | undefined;
|
|
3251
|
+
onEditDisabled?: ((params: import("vxe-table").VxeTableDefines.EditDisabledEventParams) => void) | undefined;
|
|
3252
|
+
onValidError?: ((params: import("vxe-table").VxeTableDefines.ValidErrorEventParams) => void) | undefined;
|
|
3253
|
+
onCustom?: ((params: import("vxe-table").VxeTableDefines.CustomEventParams) => void) | undefined;
|
|
3254
|
+
onOpenFnr?: ((params: import("vxe-table").VxeTableProDefines.OpenFnrParams) => void) | undefined;
|
|
3255
|
+
onFnrChange?: ((params: import("vxe-table").VxeTableProDefines.FnrChangeParams) => void) | undefined;
|
|
3256
|
+
onFnrFind?: ((params: import("vxe-table").VxeTableProDefines.FnrFindParams) => void) | undefined;
|
|
3257
|
+
onFnrFindAll?: ((params: import("vxe-table").VxeTableProDefines.FnrFindAllParams) => void) | undefined;
|
|
3258
|
+
onFnrReplace?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceParams) => void) | undefined;
|
|
3259
|
+
onFnrReplaceAll?: ((params: import("vxe-table").VxeTableProDefines.FnrReplaceAllParams) => void) | undefined;
|
|
3260
|
+
onCellAreaCopy?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCopyParams) => void) | undefined;
|
|
3261
|
+
onCellAreaCut?: ((params: import("vxe-table").VxeTableProDefines.CellAreaCutParams) => void) | undefined;
|
|
3262
|
+
onCellAreaPaste?: ((params: import("vxe-table").VxeTableProDefines.CellAreaPasteParams) => void) | undefined;
|
|
3263
|
+
onCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.CellAreaMergeEventParams) => void) | undefined;
|
|
3264
|
+
onClearCellAreaMerge?: ((params: import("vxe-table").VxeTableProDefines.ClearCellAreaMergeEventParams) => void) | undefined;
|
|
3265
|
+
onHeaderCellAreaSelection?: ((params: import("vxe-table").VxeTableProDefines.HeaderCellAreaSelectionEventParams) => void) | undefined;
|
|
3266
|
+
onCellAreaSelectionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionStartEventParams) => void) | undefined;
|
|
3267
|
+
onCellAreaSelectionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionDragEventParams) => void) | undefined;
|
|
3268
|
+
onCellAreaSelectionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaSelectionEndEventParams) => void) | undefined;
|
|
3269
|
+
onCellAreaExtensionStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionStartEventParams) => void) | undefined;
|
|
3270
|
+
onCellAreaExtensionDrag?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionDragEventParams) => void) | undefined;
|
|
3271
|
+
onCellAreaExtensionEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaExtensionEndEventParams) => void) | undefined;
|
|
3272
|
+
onCellAreaArrowsStart?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsStartEventParams) => void) | undefined;
|
|
3273
|
+
onCellAreaArrowsEnd?: ((params: import("vxe-table").VxeTableProDefines.CellAreaArrowsEndEventParams) => void) | undefined;
|
|
3274
|
+
onActiveCellChangeStart?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeStartEventParams) => void) | undefined;
|
|
3275
|
+
onActiveCellChangeEnd?: ((params: import("vxe-table").VxeTableProDefines.ActiveCellChangeEndEventParams) => void) | undefined;
|
|
3276
|
+
onPageChange?: (() => void) | undefined;
|
|
3277
|
+
onSettingClick?: (() => void) | undefined;
|
|
3278
|
+
onFormClick?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
3279
|
+
onKeyboard?: ((payload_0: import("../../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
3280
|
+
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
3280
3281
|
}>;
|
|
3281
3282
|
updateConfigRefDebounced: () => void;
|
|
3282
3283
|
updateConfigRef: () => void;
|
|
@@ -5408,6 +5409,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5408
5409
|
maxCheckSize?: number | undefined;
|
|
5409
5410
|
disableHeader?: boolean | undefined;
|
|
5410
5411
|
useNCheckbox?: boolean | undefined;
|
|
5412
|
+
indeterminateField?: string | undefined;
|
|
5411
5413
|
} | undefined;
|
|
5412
5414
|
tooltipConfig?: {
|
|
5413
5415
|
showAll?: boolean | undefined;
|
|
@@ -6546,11 +6548,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6546
6548
|
adaptive?: boolean | undefined;
|
|
6547
6549
|
} | undefined;
|
|
6548
6550
|
params?: any;
|
|
6549
|
-
onFormChange?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6550
|
-
onSettingClick?: (() => void) | undefined;
|
|
6551
|
-
onFormClick?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6552
|
-
onKeyboard?: ((payload_0: import("../../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
6553
|
-
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
6554
6551
|
uuid?: string | undefined;
|
|
6555
6552
|
isTree?: import("../../../shared/types").MaybeString<0 | 2 | 1 | 3> | undefined;
|
|
6556
6553
|
isBatchSelect?: import("../../../shared/types").MaybeString<0 | 1> | undefined;
|
|
@@ -6779,6 +6776,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6779
6776
|
enable?: boolean | undefined;
|
|
6780
6777
|
headerWidth?: number | "auto" | ((level: number) => number) | undefined;
|
|
6781
6778
|
} | undefined;
|
|
6779
|
+
onFormChange?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6780
|
+
onSettingClick?: (() => void) | undefined;
|
|
6781
|
+
onFormClick?: ((payload_0: import("../../../components/iho-table/src/types").IhoTableFormChangePayload) => void) | undefined;
|
|
6782
|
+
onKeyboard?: ((payload_0: import("../../../components/iho-table/src/types").IHoTableKeyboardPayload) => void) | undefined;
|
|
6783
|
+
onRowDrag?: ((payload_0: import("sortablejs").SortableEvent) => void) | undefined;
|
|
6782
6784
|
}>;
|
|
6783
6785
|
configChanged: boolean;
|
|
6784
6786
|
fieldChanged: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,provide as o,ref as a,toRaw as l,watch as n,resolveComponent as s,openBlock as r,createElementBlock as i,mergeProps as u,unref as c,createBlock as d,resolveDynamicComponent as f,createElementVNode as m,normalizeStyle as p,createVNode as v,withCtx as b,createSlots as h,renderList as g,createCommentVNode as x,renderSlot as k,normalizeProps as y,guardReactiveProps as C}from"vue";import{useTheme as D}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as j}from"@vueuse/core";import"date-fns";import{isString as $,isEqualWith as I,isFunction as w,pick as q}from"lodash-es";import{useFormAsyncQueue as R,presetRequestHandler as H}from"../../../shared/hooks/useFormRequest/index.js";import{promiseTimeout as
|
|
1
|
+
import{defineComponent as e,computed as t,provide as o,ref as a,toRaw as l,watch as n,resolveComponent as s,openBlock as r,createElementBlock as i,mergeProps as u,unref as c,createBlock as d,resolveDynamicComponent as f,createElementVNode as m,normalizeStyle as p,createVNode as v,withCtx as b,createSlots as h,renderList as g,createCommentVNode as x,renderSlot as k,normalizeProps as y,guardReactiveProps as C}from"vue";import{useTheme as D}from"../../../shared/hooks/useTheme.js";import{useDebounceFn as j}from"@vueuse/core";import"date-fns";import{isString as $,isEqualWith as I,isFunction as w,pick as q}from"lodash-es";import{useFormAsyncQueue as R,presetRequestHandler as H}from"../../../shared/hooks/useFormRequest/index.js";import{promiseTimeout as T}from"@vueuse/shared";import{widthAppend as _,uuidGenerator as P}from"../../../shared/utils/index.js";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NConfigProvider as A}from"naive-ui";import{useVersion as L}from"../../../shared/hooks/useVersion.js";import{VxeTableEventNameList as S,InjectionIhoTableEmits as F,InjectionTableAsyncQueue as O,InjectionIhoTableAnnotation as B,InjectionIhoTableUUID as E,InjectionIhoTableInstance as N,InjectionIhoTableConfig as V,InjectionIhoTableFieldList as W,InjectionIhoTableHandler as z}from"./constants/index.js";import{createTableHooks as G,applyTableConfigHooks as J,applyTableFieldHooks as K,createTableEventHandlers as M,createDomInsertComponent as Q,createDataTransfer as U}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as X}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as Y}from"./utils/index.js";const Z=["id"];var ee=e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object},requestInstance:{type:Object},uniqueCacheData:{type:Boolean,default:!1},parallelism:{type:Number,default:3}},emits:["formChange","settingClick","formClick","keyboard","rowDrag",...S],setup(e,{expose:S,emit:ee}){var te,oe;const ae=e,le=D({"--c-border-color":"#d0d0d0","--c-head-bg-color":"#f2f2f2","--c-hover-color":"#e6e6e6","--c-stripe-color":"#f6f6f6"}),ne=t((()=>{var e,t;const o=null!=(t=null==(e=ae.tableConfig)?void 0:e.height)?t:"100%";return{height:"auto"===o?"100%":$(o)&&(o.includes("calc")||o.endsWith("%"))?o:_(o)}})),se=X(),re=function(e,...t){ee(e,...t);const o=c(fe)[Y(e)];w(o)&&o(...t),se.trigger(e,...t)};o(F,re);const ie=R(t((()=>ae.requestInstance)),t((()=>!!ae.uniqueCacheData))).create(ae.parallelism,{beforeRequest:(e,t)=>t,afterRequest:(e,t)=>H(t)});o(O,ie);const ue=G();o(B,t((()=>ae.annotation)));const ce=P();o(E,ce);const de=a();o(N,de);const fe=a({uuid:null!=(oe=null==(te=ae.tableConfig)?void 0:te.uuid)?oe:ce});o(V,fe);const me=j(pe,10);function pe(){var e,t;fe.value=J(ue,{...ae.tableConfig,uuid:null!=(t=null==(e=ae.tableConfig)?void 0:e.uuid)?t:ce},{$table:de,emits:re,globProps:ae})}const ve=a([]);o(W,ve);const be=j(he,10);function he(){const e=K(ue,ae.fieldList,fe.value,{$table:de,emits:re,globProps:ae});I(e,l(ve.value),((e,t)=>{if(w(e)&&w(t))return e.toString()===t.toString()}))||(ve.value=e)}const ge=U(ue,fe,de),xe=a([]);async function ke(){var e,t;const o=await ge(ae.tableData),a=null==(e=de.value)?void 0:e.getTableData().fullData;if(a){let e=0;if(!(a.some((t=>{var a;if(!(null==(a=de.value)?void 0:a.isInsertByRow(t))){if(t!==o[e])return!0;e++}}))||e!==o.length))return}xe.value=o,null==(t=de.value)||t.recalculate(!0)}const ye={updateTableDataRef:j(ke,10),updateConfigRef:me,updateFieldListRef:be};o(z,ye);const Ce=M({hooks:ue,config:fe,$table:de,context:ye,emits:re,globProps:ae}),De=t((()=>({...fe.value,...Ce})));let je=!1,$e=!1,Ie=!1;const we=j((()=>{je&&pe(),$e&&he(),Ie&&ke(),je=!1,$e=!1,Ie=!1}),10);n((()=>ae.tableConfig),(()=>{je=!0,$e=!0,Ie=!0,we()}),{deep:!0}),n((()=>ae.fieldList),(()=>{$e=!0,Ie=!0,we()}),{deep:!0}),n([()=>[...ae.tableData],()=>{var e;return null==(e=ae.tableData)?void 0:e.length}],(()=>{Ie=!0,we()})),n([()=>ae.tableData,()=>{var e;return null==(e=ae.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=fe.value.treeConfig)?void 0:e.expandAll)&&(await T(11),null==(t=de.value)||t.setAllTreeExpand(!0))})),pe(),he(),ke();const{header:qe,footer:Re}=Q(ue);function He(e){return q(e,["row","rowIndex","$rowIndex","column","columnIndex","$columnIndex","_columnIndex","checked","disabled","indeterminate"])}return S({$table:de,async loadData(e){var t;null==(t=de.value)||t.loadData(await ge(e))},setSort:(e,t)=>({field:e,value:t}),setFilter:(e,t)=>({field:e,value:t}),reload(){var e,t;null==(e=de.value)||e.loadColumn([]),null==(t=de.value)||t.loadData([]),pe(),he(),ke()},verticalTable:{update:()=>{}},...ue.exposeHooks.expose.call({},fe,{$table:de,emits:re,globProps:ae,...ye})}),ue.setupHooks.setup.call(fe,ve,{$table:de,emits:re,globProps:ae}),(e,t)=>{const o=s("vxe-grid");return r(),i("section",u({class:"iho-table",id:c(ce),style:c(le)},c(L)()),[(r(),d(f(c(qe)))),m("section",{style:p(c(ne))},[v(c(A),{abstract:"",namespace:"vxe-table--ignore-clear"},{default:b((()=>[v(o,u({ref_key:"$table",ref:de},c(De),{columns:ve.value,data:xe.value}),h({_:2},[g(e.$slots,((t,o)=>({name:o,fn:b((t=>[x(" 实际上所有的vxe-grid插槽都支持 "),k(e.$slots,o,y(C(He(t))))]))})))]),1040,["columns","data"])])),_:3})],4),(r(),d(f(c(Re))))],16,Z)}}});export{ee as default};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnyObject, Nullable } from '../../../../../shared/types';
|
|
2
2
|
import { MaybeRef } from '@vueuse/core';
|
|
3
|
+
import { IhoTableProps } from 'cnhis-design-vue';
|
|
3
4
|
import { VxeTableInstance } from 'vxe-table';
|
|
4
5
|
import { IhoTableHandlerContext, IhoTableConfig, IhoTableEmits, IhoTableFieldItem, IhoTableHandler, TableHooks } from '../../../../../components/iho-table/src/types';
|
|
5
6
|
export declare const createTableHooks: () => Readonly<{
|
|
@@ -13,12 +14,13 @@ export declare const createTableHooks: () => Readonly<{
|
|
|
13
14
|
}>;
|
|
14
15
|
export declare function applyTableConfigHooks(hooks: TableHooks, config: IhoTableConfig, context: IhoTableHandlerContext): IhoTableConfig;
|
|
15
16
|
export declare function applyTableFieldHooks(hooks: TableHooks, fieldList: IhoTableFieldItem[], config: IhoTableConfig, context: IhoTableHandlerContext): IhoTableFieldItem[];
|
|
16
|
-
export declare function createTableEventHandlers({ hooks, config, $table, emits, context }: {
|
|
17
|
+
export declare function createTableEventHandlers({ hooks, config, $table, emits, context, globProps }: {
|
|
17
18
|
hooks: TableHooks;
|
|
18
19
|
config: MaybeRef<IhoTableConfig>;
|
|
19
20
|
$table: MaybeRef<Nullable<VxeTableInstance>>;
|
|
20
21
|
emits: IhoTableEmits;
|
|
21
22
|
context: IhoTableHandler;
|
|
23
|
+
globProps: IhoTableProps;
|
|
22
24
|
}): {
|
|
23
25
|
onCopy: import("vxe-table").VxeTableEvents.Copy | undefined;
|
|
24
26
|
onCut: import("vxe-table").VxeTableEvents.Cut | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as o}from"../../../../../shared/utils/index.js";import{cloneDeep as e,isArray as r}from"lodash-es";import{unref as t,defineComponent as s}from"vue";import{VxeEventListenerNameList as n}from"../../constants/index.js";import{eventListener2EventName as i}from"../../utils/index.js";import{useConfigHooks as a}from"./useConfigHooks.js";import{useDataHooks as
|
|
1
|
+
import{arrayed as o}from"../../../../../shared/utils/index.js";import{cloneDeep as e,isArray as r}from"lodash-es";import{unref as t,defineComponent as s}from"vue";import{VxeEventListenerNameList as n}from"../../constants/index.js";import{eventListener2EventName as i}from"../../utils/index.js";import{useConfigHooks as a}from"./useConfigHooks.js";import{useDataHooks as l}from"./useDataHooks.js";import{useDomInsertHooks as f}from"./useDomInsertHooks.js";import{useEventHooks as c}from"./useEventHooks.js";import{useExposeHooks as u}from"./useExposeHooks.js";import{useFieldHooks as d}from"./useFieldHooks.js";import{useSetupHooks as m}from"./useSetupHooks.js";const p=(()=>{let o=null;return()=>o||(o=Object.freeze({configHooks:a().create(),fieldHooks:d().create(),eventHooks:c().create(),dataHooks:l().create(),setupHooks:m().create(),domInsertHooks:f().create(),exposeHooks:u().create()}))})();function k(o,r,t){const s=o.configHooks.config.call(e(r),t);return["rowConfig","editConfig","columnConfig","resizableConfig","seqConfig","sortConfig","filterConfig","radioConfig","checkboxConfig","expandConfig","treeConfig","mouseConfig","menuConfig","keyboardConfig","scrollY","scrollX","editRules"].forEach((e=>{s[e]=o.configHooks[e].call(s[e],s,t)})),s}function H(t,s,n,i){t.fieldHooks.fieldStart.promise(n,i);let a=function e(s){return s.reduce(((s,a,l)=>{const f=[],c=[];let u=!1;return a=t.fieldHooks.field.call(a,{index:l,remove(){u=!0},insertAfter(e){c.push(...o(e))},insertBefore(e){f.push(...o(e))}},n,i),s.push(...f),u||(s.push(a),r(a.children)&&(a.children=e(a.children))),s.push(...c),s}),[])}(e(s));return a=t.fieldHooks.fieldList.call(a,n,i),t.fieldHooks.fieldEnd.promise(n,i),a}function g({hooks:o,config:e,$table:r,emits:s,context:a,globProps:l}){return n.reduce(((n,f)=>(n[f]=n=>function(n,f){var c;const u=i(n);f=o.eventHooks.beforeEvent.call(f,t(e),{$table:t(r),emits:s,globProps:l,...a},u),s(u,f),null==(c=o.eventHooks[n])||c.promise(f,t(e),{$table:t(r),globProps:l,emits:s,...a})}(f,n),n)),{})}function h(e,r,s){return async n=>{e.dataHooks.dataStart.promise(t(r));let i=await n.reduce((async(n,i,a)=>{const l=[],f=[];let c=!1;await e.dataHooks.data.promise(i,t(r),{index:a,$table:s,insertBefore(e){l.push(...o(e))},insertAfter(e){f.push(...o(e))},remove(){c=!0}});const u=await n;return u.push(...l),!c&&u.push(i),u.push(...f),u}),Promise.resolve([]));return i=e.dataHooks.dataList.call(i,t(r)),e.dataHooks.dataEnd.promise(t(r)),i}}function C(o){return{header:s({name:"IhoTableHeader",render:()=>o.domInsertHooks.header.call([])}),footer:s({name:"IhoTableFooter",render:()=>o.domInsertHooks.footer.call([])})}}export{k as applyTableConfigHooks,H as applyTableFieldHooks,h as createDataTransfer,C as createDomInsertComponent,g as createTableEventHandlers,p as createTableHooks};
|
|
@@ -23,6 +23,7 @@ declare class ConfigHooks extends AbstractConfigHooks {
|
|
|
23
23
|
maxCheckSize: number;
|
|
24
24
|
disableHeader: boolean;
|
|
25
25
|
useNCheckbox: boolean;
|
|
26
|
+
indeterminateField: string;
|
|
26
27
|
}>) | undefined, IhoTableConfig, IhoTableHandlerContext<true>], import("../../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
|
27
28
|
readonly expandConfig: SyncWaterfallHook<[import("vxe-table").VxeTablePropTypes.ExpandConfig | undefined, IhoTableConfig, IhoTableHandlerContext<true>], import("../../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
|
28
29
|
readonly treeConfig: SyncWaterfallHook<[import("vxe-table").VxeTablePropTypes.TreeConfig | undefined, IhoTableConfig, IhoTableHandlerContext<true>], import("../../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AnyFn } from '../../../../../shared/types';
|
|
2
|
-
import { AsyncParallelHook } from '../../../../../shared/utils/tapable';
|
|
2
|
+
import { AsyncParallelHook, SyncWaterfallHook } from '../../../../../shared/utils/tapable';
|
|
3
3
|
import { AbstractEventHooks, IhoTableEmitPayload, IhoTableEventNameUnion } from '../../../../../components/iho-table/src/types';
|
|
4
4
|
declare class EventHooks extends AbstractEventHooks {
|
|
5
|
+
readonly beforeEvent: SyncWaterfallHook<[any, import("../../../../../components/iho-table/src/types").IhoTableConfig, import("../../../../../components/iho-table/src/types").IhoTableHandler & import("../../../../../components/iho-table/src/types").IhoTableHandlerContext<false>, string], import("../../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
|
5
6
|
readonly onKeydownStart: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.KeydownStartEventParams, import("../../../../../components/iho-table/src/types").IhoTableConfig, import("../../../../../components/iho-table/src/types").IhoTableHandler & import("../../../../../components/iho-table/src/types").IhoTableHandlerContext<false>], import("../../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
|
6
7
|
readonly onKeydown: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.KeydownEventParams, import("../../../../../components/iho-table/src/types").IhoTableConfig, import("../../../../../components/iho-table/src/types").IhoTableHandler & import("../../../../../components/iho-table/src/types").IhoTableHandlerContext<false>], import("../../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
|
7
8
|
readonly onKeydownEnd: AsyncParallelHook<[import("vxe-table/types/table").VxeTableDefines.KeydownEndEventParams, import("../../../../../components/iho-table/src/types").IhoTableConfig, import("../../../../../components/iho-table/src/types").IhoTableHandler & import("../../../../../components/iho-table/src/types").IhoTableHandlerContext<false>], import("../../../../../shared/utils/tapable").UnsetAdditionalOptions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import
|
|
1
|
+
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import e from"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import n from"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{getCurrentInstance as t,onMounted as o,onBeforeUnmount as i,provide as c}from"vue";import{InjectionIhoTableEventListener as s}from"../../constants/index.js";import{AbstractEventHooks as l}from"../../types/pluginType.js";class r extends l{constructor(){super(...arguments),this.beforeEvent=new e(["payload","config","context","eventName"]),this.onKeydownStart=new n(["event","config","context"]),this.onKeydown=new n(["event","config","context"]),this.onKeydownEnd=new n(["event","config","context"]),this.onPaste=new n(["event","config","context"]),this.onCopy=new n(["event","config","context"]),this.onCut=new n(["event","config","context"]),this.onCurrentChange=new n(["event","config","context"]),this.onRadioChange=new n(["event","config","context"]),this.onCheckboxChange=new n(["event","config","context"]),this.onCheckboxAll=new n(["event","config","context"]),this.onCheckboxRangeStart=new n(["event","config","context"]),this.onCheckboxRangeChange=new n(["event","config","context"]),this.onCheckboxRangeEnd=new n(["event","config","context"]),this.onCellClick=new n(["event","config","context"]),this.onCellDblclick=new n(["event","config","context"]),this.onCellMenu=new n(["event","config","context"]),this.onCellMouseenter=new n(["event","config","context"]),this.onCellMouseleave=new n(["event","config","context"]),this.onHeaderCellClick=new n(["event","config","context"]),this.onHeaderCellDblclick=new n(["event","config","context"]),this.onHeaderCellMenu=new n(["event","config","context"]),this.onFooterCellClick=new n(["event","config","context"]),this.onFooterCellDblclick=new n(["event","config","context"]),this.onFooterCellMenu=new n(["event","config","context"]),this.onSortChange=new n(["event","config","context"]),this.onFilterChange=new n(["event","config","context"]),this.onFilterVisible=new n(["event","config","context"]),this.onResizableChange=new n(["event","config","context"]),this.onToggleRowExpand=new n(["event","config","context"]),this.onToggleTreeExpand=new n(["event","config","context"]),this.onMenuClick=new n(["event","config","context"]),this.onEditClosed=new n(["event","config","context"]),this.onEditActived=new n(["event","config","context"]),this.onEditDisabled=new n(["event","config","context"]),this.onValidError=new n(["event","config","context"]),this.onScroll=new n(["event","config","context"]),this.onCustom=new n(["event","config","context"]),this.onOpenFnr=new n(["event","config","context"]),this.onFnrChange=new n(["event","config","context"]),this.onFnrFind=new n(["event","config","context"]),this.onFnrFindAll=new n(["event","config","context"]),this.onFnrReplace=new n(["event","config","context"]),this.onFnrReplaceAll=new n(["event","config","context"]),this.onCellAreaCopy=new n(["event","config","context"]),this.onCellAreaCut=new n(["event","config","context"]),this.onCellAreaPaste=new n(["event","config","context"]),this.onCellAreaMerge=new n(["event","config","context"]),this.onClearCellAreaMerge=new n(["event","config","context"]),this.onHeaderCellAreaSelection=new n(["event","config","context"]),this.onCellAreaSelectionStart=new n(["event","config","context"]),this.onCellAreaSelectionDrag=new n(["event","config","context"]),this.onCellAreaSelectionEnd=new n(["event","config","context"]),this.onCellAreaExtensionStart=new n(["event","config","context"]),this.onCellAreaExtensionDrag=new n(["event","config","context"]),this.onCellAreaExtensionEnd=new n(["event","config","context"]),this.onCellAreaArrowsStart=new n(["event","config","context"]),this.onCellAreaArrowsEnd=new n(["event","config","context"]),this.onActiveCellChangeStart=new n(["event","config","context"]),this.onActiveCellChangeEnd=new n(["event","config","context"]),this.onCellAreaSelectionAllStart=new n(["event","config","context"]),this.onCellAreaSelectionAllEnd=new n(["event","config","context"]),this.onPageChange=new n(["event","config","context"])}}function a(){return{create:function(){return new r}}}class h{constructor(){this.eventMap=new Map}addEventListener(e,n){if(!t())throw new Error("addEventListener can only used in setup environment!");const c=this.eventMap.get(e)||new Set;this.eventMap.set(e,c),o((()=>c.add(n))),i((()=>c.delete(n)))}trigger(e,...n){var t;null==(t=this.eventMap.get(e))||t.forEach((e=>{e(...n)}))}}function g(){if(!t())throw new Error("provideIhoTableEventListener can only used in setup environment!");const e=new h;return c(s,e),e}export{h as IhoTableEventListener,g as provideIhoTableEventListener,a as useEventHooks};
|