@hb-hellotech/hb-ui 1.0.1 → 1.0.9
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/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_form_item_filter_modal/index.d.ts +2 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/index.d.ts.map +1 -0
- package/dist/components/{types/hb_form_item_filter_modal_type.d.ts → business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts} +9 -4
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_form_select_filter/index.d.ts +2 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/index.d.ts.map +1 -0
- package/dist/components/{types/hb_form_select_filter_type.d.ts → business_comp/list_page_comp/hb_form_select_filter/src/type.d.ts} +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_form_select_modal/index.d.ts +2 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +112 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts.map +1 -0
- package/dist/components/{types/hb_form_select_modal_type.d.ts → business_comp/list_page_comp/hb_form_select_modal/src/type.d.ts} +10 -0
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_list_btns_act/index.d.ts +2 -0
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +61 -0
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts.map +1 -0
- package/dist/components/{types/hb_list_btns_act_type.d.ts → business_comp/list_page_comp/hb_list_btns_act/src/type.d.ts} +9 -1
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_list_form/index.d.ts +2 -1
- package/dist/components/business_comp/list_page_comp/hb_list_form/index.d.ts.map +1 -0
- package/dist/components/{types/hb_list_form_type.d.ts → business_comp/list_page_comp/hb_list_form/src/type.d.ts} +13 -0
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_list_page_act/index.d.ts +2 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +60 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts.map +1 -0
- package/dist/components/{types/hb_list_page_act_type.d.ts → business_comp/list_page_comp/hb_list_page_act/src/type.d.ts} +8 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_list_page_container/index.d.ts +2 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +50 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts.map +1 -0
- package/dist/components/{types/hb_list_page_container_type.d.ts → business_comp/list_page_comp/hb_list_page_container/src/type.d.ts} +7 -0
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_list_table/index.d.ts +2 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/index.d.ts.map +1 -0
- package/dist/components/{types/hb_list_table_type.d.ts → business_comp/list_page_comp/hb_list_table/src/type.d.ts} +8 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_list_table_act/index.d.ts +2 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/index.d.ts.map +1 -0
- package/dist/components/{types/hb_list_table_act_type.d.ts → business_comp/list_page_comp/hb_list_table_act/src/type.d.ts} +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/hb_list_table_colums_set/index.d.ts +2 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/index.d.ts.map +1 -0
- package/dist/components/{types/hb_list_table_colums_set_type.d.ts → business_comp/list_page_comp/hb_list_table_colums_set/src/type.d.ts} +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/src/type.d.ts.map +1 -0
- package/dist/components/{business-comp/list-page-comp → business_comp/list_page_comp}/index.d.ts +2 -1
- package/dist/components/business_comp/list_page_comp/index.d.ts.map +1 -0
- package/dist/components/{func-comp → func_comp}/hb_func_comp_copy/index.d.ts +1 -0
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts.map +1 -0
- package/dist/components/{func-comp → func_comp}/hb_func_comp_copy/src/copy.vue.d.ts +1 -0
- package/dist/components/func_comp/hb_func_comp_copy/src/copy.vue.d.ts.map +1 -0
- package/dist/components/{func-comp → func_comp}/hb_func_comp_copy/src/type.d.ts +12 -0
- package/dist/components/func_comp/hb_func_comp_copy/src/type.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_drag/index.d.ts +443 -0
- package/dist/components/func_comp/hb_func_comp_drag/index.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_drag/src/index.vue.d.ts +182 -0
- package/dist/components/func_comp/hb_func_comp_drag/src/index.vue.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_comp_drag/src/type.d.ts +57 -0
- package/dist/components/func_comp/hb_func_comp_drag/src/type.d.ts.map +1 -0
- package/dist/components/{func-comp → func_comp}/hb_func_comp_tree/index.d.ts +1 -0
- package/dist/components/func_comp/hb_func_comp_tree/index.d.ts.map +1 -0
- package/dist/components/{func-comp → func_comp}/hb_func_comp_tree/src/tree.d.ts +1 -0
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -0
- package/dist/components/{func-comp → func_comp}/hb_func_comp_tree/src/tree.vue.d.ts +1 -0
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.vue.d.ts.map +1 -0
- package/dist/components/{func-comp → func_comp}/hb_func_comp_tree/src/treeNode.vue.d.ts +1 -0
- package/dist/components/func_comp/hb_func_comp_tree/src/treeNode.vue.d.ts.map +1 -0
- package/dist/components/func_comp/index.d.ts +5 -0
- package/dist/components/func_comp/index.d.ts.map +1 -0
- package/dist/components/hooks/useCalTableHeight.d.ts +1 -0
- package/dist/components/hooks/useCalTableHeight.d.ts.map +1 -0
- package/dist/components/hooks/useCalTableWidth.d.ts +1 -0
- package/dist/components/hooks/useCalTableWidth.d.ts.map +1 -0
- package/dist/components/hooks/useListFormItem.d.ts +8 -0
- package/dist/components/hooks/useListFormItem.d.ts.map +1 -0
- package/dist/components/utils/createBem.d.ts +1 -0
- package/dist/components/utils/createBem.d.ts.map +1 -0
- package/dist/components/utils/withInstall.d.ts +1 -0
- package/dist/components/utils/withInstall.d.ts.map +1 -0
- package/dist/components.d.ts +18 -0
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1345 -1169
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/shims-vue.d.ts +5 -0
- package/package.json +6 -5
- package/dist/components/business-comp/list-page-comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +0 -99
- package/dist/components/business-comp/list-page-comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +0 -53
- package/dist/components/business-comp/list-page-comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +0 -55
- package/dist/components/business-comp/list-page-comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +0 -41
- package/dist/components/func-comp/index.d.ts +0 -2
- package/dist/types/components.d.ts +0 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(D,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("@ant-design/icons-vue"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","@ant-design/icons-vue","ant-design-vue","vue-router","vue-i18n","lodash","@vueuse/core","dayjs"],e):(D=typeof globalThis<"u"?globalThis:D||self,e(D.HbComponentLib={},D.Vue,D.draggable,D.iconsVue,D.antDesignVue,D.vueRouter,D.vueI18n,D.lodash,D.core,D.dayjs))})(this,(function(D,e,oe,U,k,le,j,Q,ae,Z){"use strict";const ce={list:{type:Array,default:()=>[],required:!0},afterChange:{type:Function,default:()=>{}},title:{type:String,default:"自定义查询条件"},showNumber:{type:Number,default:40}},de="hb-",J=(m="")=>{const s=`${de}${m}`;return pe(s)},Y=(m,s,c,n)=>(s&&(m+=`-${s}`),c&&(m+=`__${c}`),n&&(m+=`--${n}`),m),pe=m=>({b:s=>s?Y(m,s,"",""):Y(m,"","",""),e:s=>s?Y(m,"",s,""):"",m:s=>Y(m,"","",s),be:(s,c)=>Y(m,s,c,""),em:(s,c)=>Y(m,"",s,c),bem:(s,c,n)=>Y(m,s,c,n),is:(s,c)=>c?`is-${s}`:""}),me=["onMouseenter","onMouseleave"],he=["onClick"],fe=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:ce,emits:["confirm"],setup(m,{expose:s,emit:c}){const n=j.useI18n().t,L=j.useI18n().messages.value.en_US,f=j.useI18n().messages.value.ja_JP,p=j.useI18n().messages.value.zh_CN,d=m,o=c,a=J("sfcm"),y=le.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),x=e.ref(!1),T=e.ref(600);let u=[];const S=e.ref([]),M=e.ref([]),V=e.computed(()=>S.value.every(C=>C.isLinked||C.isFixed)),E=C=>{const F=C.draggedContext.element,b=C.relatedContext.index;if(F.isLinked||F.isFixed)return!1;const H=S.value.map((O,K)=>({item:O,index:K})).filter(({item:O})=>O.isLinked).map(({index:O})=>O);if(H.length===0)return!0;for(let O=0;O<H.length-1;O++){const K=H[O],W=H[O+1];if(b>K&&b<W)return!1}return!0},w=()=>{const C=localStorage.getItem("pro__Login_Userinfo");let F="anonymous";if(C)try{F=JSON.parse(C).value.jobNumber||"anonymous"}catch(H){console.warn("解析用户信息失败:",H)}let b=y?.path;return`searchFormConfig_${F}_${b}`},h=C=>({ja_JP:()=>Q.get(f,C.labelLanguage||""),en_US:()=>Q.get(L,C.labelLanguage||""),zh_CN:()=>Q.get(p,C.labelLanguage||"")})[B.lan]?.()||C.label,t=()=>{try{const C=w(),F=localStorage.getItem(C);if(F){const b=JSON.parse(F);if(b.originalList&&Array.isArray(b.originalList)){u=JSON.parse(JSON.stringify(b.originalList));const H=u.filter(_=>_?.isFixed),O=u.filter(_=>_?.isLinked),K=b.showList.filter(_=>!_.isFixed&&!_.isLinked),W=d.showNumber&&d.showNumber>0?Math.max(0,d.showNumber-H.length-O.length):K.length,v=H.map(_=>({..._,label:h(_)||`${_.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:_.key,isFixed:_?.isFixed||!1,isLinked:_?.isLinked||!1,labelLanguage:_?.labelLanguage||void 0})),ee=O.map(_=>({..._,label:h(_)||`${_.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:_.key,isFixed:_?.isFixed||!1,isLinked:!0,labelLanguage:_?.labelLanguage||void 0})),te=K.slice(0,W).map(_=>({..._,label:h(_)||`${_.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:_.key,isFixed:_?.isFixed||!1,isLinked:_?.isLinked||!1,labelLanguage:_?.labelLanguage||void 0}));S.value=[...v,...ee,...te];const N=S.value.map(_=>_.key),Ht=u.map(_=>_.key).filter(_=>!N.includes(_));return M.value=u.filter(_=>Ht.includes(_.key)).map(_=>({..._,label:h(_)||`${_.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:_.key,isFixed:_?.isFixed||!1,isLinked:_?.isLinked||!1,active:!1,labelLanguage:_?.labelLanguage||void 0})),!0}}}catch(C){console.warn("加载保存的搜索配置失败:",C)}return!1},l=()=>{try{const C={originalList:u,showList:S.value.map(b=>({...b,key:b.key,label:b.label,isFixed:b.isFixed,isLinked:b.isLinked,labelLanguage:b?.labelLanguage||void 0}))},F=w();localStorage.setItem(F,JSON.stringify(C))}catch(C){console.warn("保存搜索配置失败:",C)}},i=e.computed(()=>{const C=S.value.filter(b=>!b.isFixed&&!b.isLinked).length,F=S.value.filter(b=>b.isFixed||b.isLinked).length;return C>=d.showNumber-F});e.watch(()=>d.list,C=>{if(!t()&&u.length===0){u=JSON.parse(JSON.stringify(C));const b=C.filter(N=>N?.isFixed),H=C.filter(N=>N?.isLinked),O=C.filter(N=>!N?.isFixed&&!N?.isLinked),K=d.showNumber&&d.showNumber>0?Math.max(0,d.showNumber-b.length-H.length):O.length,W=b.map(N=>({...N,label:h(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,labelLanguage:N?.labelLanguage||void 0})),v=H.map(N=>({...N,label:h(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:!0,labelLanguage:N?.labelLanguage||void 0})),ee=O.slice(0,K).map(N=>({...N,label:h(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,labelLanguage:N?.labelLanguage||void 0}));S.value=[...W,...v,...ee];const te=O.slice(K).map(N=>({...N,label:h(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,active:!1,labelLanguage:N?.labelLanguage||void 0}));M.value=te}},{immediate:!0});const g=C=>{const F=S.value.findIndex(b=>b.key===C.key);F!==-1&&(S.value.splice(F,1),M.value.push({...C,active:!1}))},r=C=>{if(i.value)return;const F=M.value.findIndex(b=>b.key===C.key);if(F!==-1){const[b]=M.value.splice(F,1);S.value.push({...b,active:!1})}},I=()=>{x.value=!1},$=()=>{x.value=!0},P=()=>{l(),o("confirm",S.value),I()},z=C=>{const F=M.value.findIndex(b=>b.key===C.key);F!==-1&&(M.value[F].active=!0)},A=C=>{const F=M.value.findIndex(b=>b.key===C.key);F!==-1&&(M.value[F].active=!1)};return s({toOpenModal:$}),(C,F)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.createVNode(e.unref(k.Modal),{visible:x.value,"onUpdate:visible":F[1]||(F[1]=b=>x.value=b),width:T.value,onCancel:I,onOk:P},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("title"))},e.toDisplayString(C.title),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(k.Button),{onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:P},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(a).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(a).e("title__tip"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(C.showNumber)+e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("show__tag"))},[e.createVNode(e.unref(oe),{modelValue:S.value,"onUpdate:modelValue":F[0]||(F[0]=b=>S.value=b),"item-key":"key",tag:"div",disabled:V.value,move:E},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a).e("show__tag__item"),e.unref(a).is("fixed",b.isFixed),e.unref(a).is("linked",b.isLinked)])},[e.createTextVNode(e.toDisplayString(b.label)+" ",1),!b.isFixed&&!b.isLinked&&C.list.length>1?(e.openBlock(),e.createBlock(e.unref(U.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(a).e("show__tag__item-close")),onClick:H=>g(b)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(a).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(a).e("title__tip"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("unshow__tag"))},[M.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(M.value,b=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(a).e("unshow__tag__item"),e.unref(a).is("fixed",b.isFixed||""),e.unref(a).is("linked",b.isLinked||"")]),key:b.key,onMouseenter:H=>z(b),onMouseleave:H=>A(b)},[e.createTextVNode(e.toDisplayString(b.label)+" ",1),b.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(a).e("unshow__tag__item-add")),onClick:H=>r(b)},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.add")),11,he)):e.createCommentVNode("",!0)],42,me))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).e("unshow__tag__empty"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),q=(m,s)=>{const c=m.__vccOpts||m;for(const[n,L]of s)c[n]=L;return c},be=q(fe,[["__scopeId","data-v-54bc009a"]]),R=(m,s)=>(m.install=c=>{for(const n of[m,...Object.values({})])c.component(n.name,n)},m),ne=R(be),Ce={items:{type:Array,required:!0},formData:{type:Object,required:!0},layoutConfig:{type:Object,default:{row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}}},needFooter:{type:Boolean,default:!1},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},calTableHeight:{type:Function,default:()=>{}}},ge={class:"form-footer"},ye=R(q(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:Ce,emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(m,{expose:s,emit:c}){const n=c,L=e.inject("HB_LIST_PAGE_CONTAINER"),f=J("form"),p=m,d=e.ref("show"),o=e.computed(()=>(console.log(p.items),[...p.items])),a=e.ref(),y=()=>{n("handleSearch")},B=()=>{n("handleReset")},x=e.ref(),T=()=>{x.value&&x.value.toOpenModal()},u=h=>{n("handleSfcmConfirm",h)},S=()=>{d.value=d.value==="show"?"hide":"show"};e.watch(()=>p.isFormExpanded,h=>{if(h){console.log(h);const t=document.querySelector("#subpackage_container");t instanceof HTMLElement&&(t.style.overflow="hidden",setTimeout(()=>{t.style.overflow="auto"},500))}});const M=h=>{const t=h;t.style.height="",t.offsetHeight},V=h=>{const t=h;t.style.height="",t.style.overflow="",e.nextTick(()=>{L.calTableHeight&&L.calTableHeight()})},E=h=>{const t=h,l=t.querySelector(".hb-lib-form--container");if(l){const i=l.offsetHeight;t.style.height=i+"px",t.style.overflow="hidden",t.offsetHeight,requestAnimationFrame(()=>{t.style.height="0"})}},w=()=>{e.nextTick(()=>{L.calTableHeight&&L.calTableHeight()})};return s({formRef:a,SelectOption:k.SelectOption,Form:k.Form,FormItem:k.FormItem,Row:k.Row,Col:k.Col,Input:k.Input,Select:k.Select,CheckboxGroup:k.CheckboxGroup,Checkbox:k.Checkbox,DatePicker:k.DatePicker,InputNumber:k.InputNumber,RadioGroup:k.RadioGroup,Radio:k.Radio,Switch:k.Switch,Button:k.Button,Tooltip:k.Tooltip}),(h,t)=>{const l=e.resolveComponent("a-button"),i=e.resolveComponent("a-tooltip"),g=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:M,onAfterEnter:V,onLeave:E,onAfterLeave:w},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[e.createVNode(e.unref(k.Form),e.mergeProps(h.$attrs,{model:h.formData,ref_key:"formRef",ref:a,class:["hb-lib-form--container",d.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(r,I)=>(e.openBlock(),e.createBlock(e.unref(k.FormItem),e.mergeProps({key:I,ref_for:!0},r,{name:r.key,class:r.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[r.type==="slot"?e.renderSlot(h.$slots,r.key,{key:0,formData:h.formData,item:r},void 0,!0):e.createCommentVNode("",!0),r.type==="mixin"?e.renderSlot(h.$slots,r.key,{key:1,formData:h.formData,item:r},void 0,!0):e.createCommentVNode("",!0),r.type==="input"?(e.openBlock(),e.createBlock(e.unref(k.Input),e.mergeProps({key:2,value:h.formData[r.key],"onUpdate:value":$=>h.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="select"?(e.openBlock(),e.createBlock(e.unref(k.Select),e.mergeProps({key:3,value:h.formData[r.key],"onUpdate:value":$=>h.formData[r.key]=$},{ref_for:!0},r.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,($,P)=>(e.openBlock(),e.createBlock(e.unref(k.SelectOption),{key:P,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(k.CheckboxGroup),e.mergeProps({key:4,value:h.formData[r.key],"onUpdate:value":$=>h.formData[r.key]=$},{ref_for:!0},r.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,($,P)=>(e.openBlock(),e.createBlock(e.unref(k.Checkbox),{key:P,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(k.DatePicker),e.mergeProps({key:5,value:h.formData[r.key],"onUpdate:value":$=>h.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(k.InputNumber),e.mergeProps({key:6,value:h.formData[r.key],"onUpdate:value":$=>h.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="radio"?(e.openBlock(),e.createBlock(e.unref(k.RadioGroup),e.mergeProps({key:7,value:h.formData[r.key],"onUpdate:value":$=>h.formData[r.key]=$},{ref_for:!0},r.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,($,P)=>(e.openBlock(),e.createBlock(e.unref(k.Radio),{key:P,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="switch"?(e.openBlock(),e.createBlock(e.unref(k.Switch),e.mergeProps({key:8,checked:h.formData[r.key],"onUpdate:checked":$=>h.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[r.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label)+" ",1),e.createVNode(e.unref(k.Tooltip),{title:r.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(U.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"]))),128)),e.createElementVNode("section",ge,[e.createVNode(l,{type:"primary",onClick:y,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(U.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(h.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(l,{type:"link",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),h.needFilter?(e.openBlock(),e.createBlock(i,{key:0,title:h.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:T},[...t[0]||(t[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"formBtns",{},void 0,!0)])]),_:3},16,["model","class"]),h.needFooter?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__left"))},[e.renderSlot(h.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__right"))},[d.value=="show"?e.renderSlot(h.$slots,"form-footer-right",{key:0,formRef:a.value},()=>[e.createVNode(e.unref(k.Button),{type:"primary",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):e.createCommentVNode("",!0),e.createVNode(e.unref(k.Button),{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value=="show"?`${h.$t("hbLibComp.hbListPageAct.close")}`:`${h.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,h.isFormExpanded]])]),_:3}),e.createVNode(g,{list:h.items,ref_key:"HbSfCmRef",ref:x,onConfirm:u},null,8,["list"])],64)}}}),[["__scopeId","data-v-f0b1028c"]])),ke={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},isShowOpenClose:{type:Boolean,default:!0},isShowFullScreen:{type:Boolean,default:!0}},ue={class:"hb-lib-list-page-act-box"},Le={class:"hb-lib-list-page-breadcrumb"},Se={class:"hb-lib-list-page-act"},_e={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},we={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},xe=R(q(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:ke,emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(m,{emit:s}){const c=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:n,toggle:L}=ae.useFullscreen(c.PageContainerRef),f=e.ref(""),p=()=>{const d=le.useRoute();let o=localStorage.getItem("BreadCrumb")||"[]",a=d?.path;if(o!=="[]"){let y=JSON.parse(o).find(B=>B.value===a);y&&(f.value=y.label.replace(/-/g," / "))}};return e.onMounted(()=>{p()}),(d,o)=>{const a=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ue,[e.createElementVNode("aside",Le,e.toDisplayString(f.value),1),e.createElementVNode("aside",Se,[e.createVNode(a,{title:e.unref(n)?`${d.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${d.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:o[0]||(o[0]=(...y)=>e.unref(L)&&e.unref(L)(...y))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",we,[...o[2]||(o[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",_e,[...o[1]||(o[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(d.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-a112161b"]])),Ne={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},Be={class:"hb-lib-list-btns-box"},Fe={class:"hb-lib-list-btns-left"},Te={class:"hb-lib-list-btns-right"},$e=R(q(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:Ne,emits:["handleOpenOrClose","handleReload"],setup(m,{emit:s}){const c=s,n=e.ref(!0),L=()=>{n.value=!n.value,c("handleOpenOrClose",n.value)},f=()=>{c("handleReload")};return e.onMounted(()=>{}),(p,d)=>{const o=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Be,[e.createElementVNode("aside",Fe,[e.renderSlot(p.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Te,[p.needReload?(e.openBlock(),e.createBlock(o,{key:0,title:p.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:f},[...d[0]||(d[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),p.needOpenOrClose?(e.openBlock(),e.createBlock(o,{key:1,title:n.value?`${p.$t("hbLibComp.hbListBtnsAct.close")}`:`${p.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:L},[n.value?(e.openBlock(),e.createBlock(e.unref(U.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(U.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-0f819b31"]])),Ve={tableHeight:{type:Number,default:400},tabelData:{type:Array,default:()=>[]},offsetBottom:{type:Number},minHeight:{type:Number}},Ee=(m={})=>{const{formRef:s,offsetBottom:c=50,minHeight:n=300}=m,L=e.ref(0);let f=null,p=null,d=null,o=null,a=null;const y=()=>{a&&clearTimeout(a),a=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const V=document.querySelector(".ant-table"),E=document.querySelector(".ant-pagination");if(V){const w=V.getBoundingClientRect().top,h=window.innerHeight,l=(E?E.offsetHeight+20:40)+c;let i=h-w-l;i<n&&(i=n),L.value=i}})})},100)},B=()=>{const V=document.querySelector(".ant-pagination");if(V){const E=new MutationObserver(()=>{y()});return E.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),E}return null},x=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(f=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(w=>{w.style.display="none"}),y()}),f.observe(V))},T=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(d=new MutationObserver(()=>{setTimeout(()=>{y()},100)}),d.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},u=()=>{o&&clearTimeout(o),o=setTimeout(()=>{y()},100)},S=()=>{window.addEventListener("resize",u),e.nextTick(()=>{x(),T(),p=B()})},M=()=>{window.removeEventListener("resize",u),f&&f.disconnect(),d&&d.disconnect(),p&&p.disconnect(),o&&clearTimeout(o),a&&clearTimeout(a)};return s&&e.watch(()=>s,()=>{setTimeout(()=>{y()},200)},{deep:!0}),e.onMounted(()=>{y(),S()}),e.onUnmounted(()=>{M()}),{tableHeight:L,calTableHeight:y}},Me=R(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:Ve,setup(m){const s=m,c=e.useTemplateRef("PageContainerRef"),{calTableHeight:n,tableHeight:L}=Ee({offsetBottom:s.offsetBottom||20,minHeight:s.minHeight||300}),f=e.computed(()=>L.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:c,tableHeight:L,calTableHeight:n}),(p,d)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:c},[e.renderSlot(p.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle({"--hb-list-table-height":f.value-20+"px","--hb-list-ttable-height":p.tabelData.length?"":f.value-20+"px"})},[e.renderSlot(p.$slots,"default")],4)],512))}})),Ie={style:{"font-weight":"500"}},He={key:0,class:"hb-lib-search-tag__description"},Ae={class:"hb-lib-selector-dropdown"},De={class:"hb-lib-selector-search"},ze={class:"hb-lib-selector-list"},Oe=["onClick"],Pe={class:"hb-lib-option-content"},Re={class:"hb-lib-option-label"},Ue={key:0,class:"hb-lib-selector-empty"},qe={key:1,class:"hb-lib-selector-footer"},Ke={class:"hb-lib-footer-buttons"},je={key:2,class:"hb-lib-selector-footer"},Ye={class:"hb-lib-footer-buttons"},X=q(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({title:{default:"请选择"},placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(m,{emit:s}){const c=m,n=s,L=e.useModel(m,"value"),f=e.ref(!1),p=e.ref(""),d=e.ref([]),o=e.ref(),a=e.computed(()=>{if(c.remoteSearch||!p.value)return c.options;const t=p.value.toLowerCase();return c.options.filter(l=>l.label.toLowerCase().includes(t)||l.description?.toLowerCase().includes(t))}),y=e.computed(()=>c.prefix?`${c.prefix.length*14+8}px`:"0px"),B=e.computed(()=>a.value.length===0?!1:a.value.every(t=>d.value.includes(t.value))),x=e.computed(()=>{if(a.value.length===0)return!1;const t=a.value.filter(l=>d.value.includes(l.value)).length;return t>0&&t<a.value.length});e.watch(()=>L.value,t=>{t?d.value=Array.isArray(t)?[...t]:[t]:d.value=[]},{immediate:!0}),e.watch(()=>c.searchValue,t=>{c.remoteSearch&&t!==void 0&&(p.value=t)},{immediate:!0});const T=t=>{t&&(f.value=t,u.value=[...d.value],p.value="",setTimeout(()=>{if(o.value){const l=o.value.input||o.value.$el?.querySelector("input");l&&l.focus()}},100))},u=e.ref([]),S=()=>{d.value=[...u.value],f.value=!1,n("cancel")},M=e.ref([]),V=()=>{const t=c.multiple?d.value:d.value[0]||"",l=c.options.filter(i=>d.value.includes(i.value));M.value=l,console.log(t,l),u.value=[...d.value],L.value=t,n("update:value",t),n("change",t,l),n("confirm",t,l),f.value=!1},E=ae.useDebounceFn(t=>{const l=t!==void 0?t:p.value;c.remoteSearch&&(n("search",l),n("update:searchValue",l))},300),w=t=>{if(c.multiple){const l=new Set(d.value);l.has(t.value)?l.delete(t.value):l.add(t.value),d.value=Array.from(l)}else d.value=[t.value],V()},h=t=>{if(t.target.checked){const i=new Set(d.value);a.value.forEach(g=>{i.add(g.value)}),d.value=Array.from(i)}else{const i=new Set(a.value.map(g=>g.value));d.value=d.value.filter(g=>!i.has(g))}};return(t,l)=>{const i=e.resolveComponent("a-tag"),g=e.resolveComponent("a-input"),r=e.resolveComponent("a-checkbox"),I=e.resolveComponent("a-radio"),$=e.resolveComponent("a-button"),P=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":y.value}},t.$attrs),[e.createVNode(P,{value:L.value,"onUpdate:value":l[5]||(l[5]=z=>L.value=z),mode:m.multiple?"multiple":void 0,placeholder:m.placeholder,"show-search":!0,"filter-option":!1,open:f.value,allowClear:"",maxTagCount:m.maxTagCount,options:a.value,onDropdownVisibleChange:T,onSearch:e.unref(E),"max-tag-text-length":m.tagTextLength,class:e.normalizeClass({"has-prefix":m.prefix}),"data-prefix":m.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:z,label:A,closable:C,option:F})=>[e.createVNode(i,{class:"hb-lib-search-tag",onClick:l[0]||(l[0]=()=>T(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ie,e.toDisplayString(A),1),F?.description?(e.openBlock(),e.createElementBlock("span",He," ("+e.toDisplayString(F.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:z})=>[e.createElementVNode("div",Ae,[e.createElementVNode("div",De,[e.createVNode(g,{ref_key:"searchInputRef",ref:o,class:"hb-lib-selector-search-input",value:p.value,"onUpdate:value":l[1]||(l[1]=A=>p.value=A),placeholder:"请输入关键词搜索","allow-clear":"",onInput:l[2]||(l[2]=A=>e.unref(E)(A.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(U.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:d.value.includes(A.value)}]),onClick:()=>w(A)},[m.multiple?(e.openBlock(),e.createBlock(r,{key:0,checked:d.value.includes(A.value),onChange:()=>w(A),onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(I,{key:1,checked:d.value.includes(A.value),onChange:()=>w(A),onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Pe,[e.createElementVNode("div",Re,e.toDisplayString(A.label),1)])],10,Oe))),128))]),a.value.length===0?(e.openBlock(),e.createElementBlock("div",Ue,e.toDisplayString(t.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),m.multiple?(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(r,{checked:B.value,indeterminate:x.value,onChange:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Ke,[e.createVNode($,{size:"small",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",size:"small",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",je,[l[6]||(l[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Ye,[e.createVNode($,{size:"small",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-2307d348"]]);X.install=function(m){return m.component("HbFormSelectFilter",X),m};const We={modelTitle:{type:String,default:"搜索弹窗"},modalWidth:{type:Number,default:800},tableHeight:{type:Number,default:500},tableColumn:{type:Array,default:()=>[],required:!0},tableData:{type:Array,default:()=>[]},tableKey:{type:String,default:"id"},labelKey:{type:String,default:"label"}},Je={class:"hb-lib-form-item-filter-modal-search"},Ge={class:"hb-lib-form-item-filter-modal-buttons"},Qe={key:0},Ze=R(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:We,emits:["handleConfirm","handleCancel"],setup(m,{expose:s,emit:c}){const n=m,L=c,f=e.ref(!1),p=e.ref(""),d=e.ref(),o=e.ref(),a=e.ref([]),y=e.ref([]),B=e.ref(),x=e.reactive({searchText:"",searchedColumn:""}),T=e.computed(()=>n.tableData.map(i=>(i.id=i.id||Math.random(),i))),u=e.computed(()=>n.tableColumn.map(i=>(i.customFilterDropdown&&(i.onFilter=(g,r)=>r[i.dataIndex].toString().toLowerCase().includes(g.toLowerCase()),i.onFilterDropdownVisibleChange=g=>{g&&setTimeout(()=>{d.value?.focus()},100)}),{...i}))),S=()=>{let i="";y.value.forEach(g=>{i=i+g[n.labelKey]+","}),p.value=i.substring(0,i.length-1),f.value=!1,L("handleConfirm",y.value)},M=()=>{f.value=!1},V=()=>{f.value=!0,e.nextTick(()=>{const i=B.value?.$el?.querySelector(".ant-table-body");i&&(i.scrollTop=0)})},E=()=>{a.value=[],y.value=[]},w=()=>{p.value="",E()},h=(i,g,r)=>{g(),x.searchText=i[0],x.searchedColumn=r},t=(i,g)=>{i({confirm:!0}),x.searchText="",g()},l=(i,g)=>{a.value=i,y.value=g};return s({resetInputVal:w}),(i,g)=>{const r=e.resolveComponent("a-input"),I=e.resolveComponent("a-button"),$=e.resolveComponent("a-table"),P=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:o},[e.createVNode(r,{readonly:"",onClick:V,value:p.value,"onUpdate:value":g[0]||(g[0]=z=>p.value=z),placeholder:i.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(U.UnorderedListOutlined),{onClick:V})]),_:1},8,["value","placeholder"]),e.createVNode(P,{visible:f.value,"onUpdate:visible":g[1]||(g[1]=z=>f.value=z),title:i.modelTitle,width:i.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(I,{onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(I,{onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode($,{ref_key:"tableRef",ref:B,columns:u.value,dataSource:T.value,rowSelection:{selectedRowKeys:a.value,onChange:l},rowKey:z=>z[i.tableKey],scroll:{y:i.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:z,selectedKeys:A,confirm:C,clearFilters:F,column:b})=>[e.createElementVNode("div",Je,[e.createVNode(r,{ref_key:"searchInput",ref:d,placeholder:`请输入${b.title}`,value:A[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:H=>z(H.target.value?[H.target.value]:[]),onPressEnter:H=>h(A,C,b.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Ge,[e.createVNode(I,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:H=>t(F,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(I,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:H=>h(A,C,b.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:z})=>[e.createVNode(e.unref(U.SearchOutlined),{style:e.normalizeStyle({color:z?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:z,column:A})=>[x.searchText&&x.searchedColumn===A.dataIndex?(e.openBlock(),e.createElementBlock("span",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.toString().split(new RegExp(`(?<=${x.searchText})|(?=${x.searchText})`,"i")),(C,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[C.toLowerCase()===x.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:F,class:"highlight"},e.toDisplayString(C),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(C),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Xe={class:"hb-lib-table-act-box"},ve=["onClick"],et={href:"javascript:;",class:"hb-lib-table-main-action"},tt=["onClick"],ot={href:"javascript:;",class:"hb-lib-table-more-action"},lt=["onClick"],at={href:"javascript:;"},nt=["onClick"],rt={class:"hb-lib-table-confirm-modal-content"},it=R(q(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(m,{expose:s}){const c=m,{t:n}=j.useI18n(),L=e.ref(!1),f=e.ref(!1),p=e.ref(null),d=e.computed(()=>c.actions.filter(S=>S.condition!==void 0?S.condition:!0)),o=e.computed(()=>d.value.slice(0,c.buttonDisplaysQuantity)),a=e.computed(()=>d.value.slice(c.buttonDisplaysQuantity)),y=S=>{S.handler&&S.handler(c.record)},B=S=>{p.value=S,L.value=!0},x=()=>{if(p.value){f.value=!0;try{y(p.value),f.value=!1,L.value=!1}catch{f.value=!1}}},T=()=>{L.value=!1,p.value=null},u=e.computed(()=>p.value?{title:p.value.confirmTitle,content:p.value.confirmContent||p.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return s({ADropdown:k.Dropdown,AMenu:k.Menu,AMenuItem:k.MenuItem,APopconfirm:k.Popconfirm,AModal:k.Modal,DownOutlined:U.DownOutlined}),(S,M)=>{const V=e.resolveComponent("a-divider"),E=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(w,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[w.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:t=>B(w),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(w.label),1)],8,ve)),[[E,w.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(k.Popconfirm),{key:1,title:w.confirmTitle,onConfirm:t=>y(w)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",et,[e.createTextVNode(e.toDisplayString(w.label),1)])),[[E,w.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:t=>y(w),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(w.label),1)],8,tt)),[[E,w.permissionsTag||null]]),a.value&&a.value.length>0||h!==o.value.length-1?(e.openBlock(),e.createBlock(V,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),a.value&&a.value.length>0?(e.openBlock(),e.createBlock(e.unref(k.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(k.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,w=>(e.openBlock(),e.createBlock(e.unref(k.MenuItem),{key:w.key},{default:e.withCtx(()=>[w.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:h=>B(w)},[e.createTextVNode(e.toDisplayString(w.label),1)],8,lt)),[[E,w.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(k.Popconfirm),{key:1,title:w.confirmTitle,onConfirm:h=>y(w)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",at,[e.createTextVNode(e.toDisplayString(w.label),1)])),[[E,w.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:h=>y(w)},[e.createTextVNode(e.toDisplayString(w.label),1)],8,nt)),[[E,w.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",ot,[e.createTextVNode(e.toDisplayString(S.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(U.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(k.Modal),{visible:L.value,title:u.value.title,"confirm-loading":f.value,onOk:x,onCancel:T},{default:e.withCtx(()=>[e.createElementVNode("p",rt,e.toDisplayString(u.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-6de2c78e"]])),st=m=>({tableWidth:e.computed(()=>{const c=Array.isArray(m)?m:m.value;return!c||c.length===0?0:c.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,L)=>n+L,0)})}),ct={columns:{type:Array,default:()=>[],required:!0},childColumns:{type:Array,default:()=>[]},rowHeight:{type:Number},defaultWidth:{type:[String,Number],default:150}},dt={key:0,class:"hb-lib-list-table-act"},pt={class:"empty-container"},mt=R(q(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:ct,setup(m){const{t:s}=j.useI18n(),c=m,n=e.ref([]),L=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:f}=st(e.computed(()=>c.columns));e.watch(()=>c.columns,o=>{const a=o.filter(y=>y!=null&&y.checked);n.value=a.map(y=>{let B={...y,title:y.title||y.label};if(!B.width)B.width=c.defaultWidth;else if(typeof B.width=="string"){const x=parseInt(B.width,10);B.width=isNaN(x)?c.defaultWidth:x}return B.resizable===void 0&&(B.resizable=!0),B})},{immediate:!0,deep:!0});const p=(o,a)=>{if(a){const y=typeof o=="string"?parseInt(o,10):o;a.width=isNaN(y)?150:y}},d=(o,a="YYYY-MM-DD HH:mm:ss")=>o?Z(o).format(a):"";return(o,a)=>{const y=e.resolveComponent("a-empty"),B=e.resolveComponent("a-tooltip"),x=e.resolveComponent("HbLibCopy"),T=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":c.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":o.rowHeight&&o.rowHeight+"px"||""})},[o.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",dt,[e.renderSlot(o.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(o.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(T,e.mergeProps(o.$attrs,{columns:n.value,onResizeColumn:p,scroll:{x:e.unref(f),y:e.unref(L).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",pt,[e.createVNode(y,{description:e.unref(s)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[o.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:u})=>[e.renderSlot(o.$slots,"headerCell",{column:u},()=>[e.createTextVNode(e.toDisplayString(u.title),1)],!0)]),key:"0"}:void 0,o.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:u,record:S,index:M})=>[e.renderSlot(o.$slots,"bodyCell",{column:u,record:S,index:M},void 0,!0),u&&u.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.needTooltip?(e.openBlock(),e.createBlock(B,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S[u.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(S[u.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),u&&u.needCopy?(e.openBlock(),e.createBlock(x,{key:1,"cp-text":S[u.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),u&&u.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(d(S[u.dataIndex],u.format)),1)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,o.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:u})=>[e.renderSlot(o.$slots,"expandedRowRender",{column:o.childColumns,record:u},void 0,!0)]),key:"2"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-f27e967a"]])),ht={class:"hb-lib-table-setting-box"},ft={key:0,class:"hb-lib-table-drag-item"},bt={key:0,class:"hb-lib-table-drag-item-act"},Ct=["onClick"],gt=["onClick"],yt={class:"hb-lib-table-set-btn-group"},kt={class:"select-all-container",style:{"margin-right":"10px"}},ut=R(q(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns","refresh","clearSelected"],setup(m,{emit:s}){const c=s,{t:n}=j.useI18n(),L=m,f=e.ref([]),p=e.computed(()=>o.value.filter(t=>t.checked));e.ref([]);const d=e.ref(!1),o=e.ref([]),a=e.ref(null),y=e.computed(()=>p.value.length>0&&p.value.length===f.value.length),B=e.computed(()=>p.value.length>0&&p.value.length<f.value.length),x=t=>{a.value=t.oldIndex},T=t=>{const l=t.newIndex;if(f.value.some(g=>g.fixed==="left"||g.fixed==="right"||g.fixed===!0)){const g=f.value.filter(I=>I.fixed==="left").length,r=f.value.length-f.value.filter(I=>I.fixed==="right").length;if((g>0&&l<g||r<f.value.length&&l>=r)&&(k.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),a.value!==null)){const I=o.value.splice(l,1)[0];o.value.splice(a.value,0,I)}}a.value=null},u=t=>{t.target.checked?o.value.forEach(i=>i.checked=!0):o.value.forEach(i=>i.checked=!1)},S=(t,l)=>{l?t.checked=!0:t.checked=!1},M=()=>{f.value=[...o.value],c("on-get-columns",f.value),d.value=!1},V=()=>{f.value=L.tableColumns.map(l=>({...l,label:l.title&&l.title.tag?E(l.title):l.title||l.title2,value:l.dataIndex,checked:l.checked||l.checked===void 0})),o.value=[...f.value];let t=[];L.tableColumns.forEach(function(l){t.push(l.dataIndex)})},E=t=>t.children[0].text,w=t=>{delete t.fixed;const l=o.value.findIndex(i=>i.value===t.value);if(l!==-1){let i=-1;for(let g=0;g<o.value.length;g++)o.value[g].fixed==="left"&&(i=g);if(i!==-1&&l!==i+1){const g=[...o.value],[r]=g.splice(l,1);g.splice(i+1,0,r),o.value=g}}},h=t=>{const l=o.value.findIndex(i=>i.value===t.value);if(l!==-1){let i=-1;for(let g=0;g<o.value.length;g++)o.value[g].fixed==="left"&&(i=g);if(i!==-1&&l!==i+1){const g=[...o.value],r=g.splice(l,1);r[0].fixed="left",g.splice(i+1,0,r[0]),o.value=g}}};return V(),(t,l)=>{const i=e.resolveComponent("a-tooltip"),g=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(e.unref(k.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"alertInfoContent",visible:d.value,"onUpdate:visible":l[1]||(l[1]=r=>d.value=r)},{content:e.withCtx(()=>[e.createVNode(e.unref(oe),{modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=r=>o.value=r),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:x,onEnd:T},{item:e.withCtx(({element:r})=>[r.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(e.unref(k.Checkbox),{checked:r.checked,onChange:I=>S(r,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["checked","onChange"]),r.checked?(e.openBlock(),e.createElementBlock("section",bt,[e.createElementVNode("span",{class:e.normalizeClass(r.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),r.fixed?(e.openBlock(),e.createBlock(i,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>w(r)},[...l[2]||(l[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Ct)]),_:2},1024)):e.createCommentVNode("",!0),r.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>h(r)},[...l[3]||(l[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,gt)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",yt,[e.createElementVNode("div",kt,[e.createVNode(e.unref(k.Checkbox),{checked:y.value,indeterminate:B.value,onChange:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(g,{onClick:M,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(i,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-170e52e2"]])),Lt={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:"复制"},copySuccessTip:{type:String,default:"复制成功"},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},re=R(q(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Lt,setup(m){const s=m,c=e.ref();e.watchEffect(()=>{c.value=s.data});const n=e.computed(()=>{if(s.cpText)return s.cpText;let f="";if(s.data)if(Array.isArray(s.data)){if(s.K&&s.V&&s.L){const p=s.data.find(d=>d?.[s.K]===s.V);f=p?p[s.L]:""}}else s.K&&(f=s.data[s.K]);return f}),L=()=>{navigator.clipboard.writeText(n.value).then(()=>{k.message.success(s.copySuccessTip)}).catch(()=>{k.message.error("复制失败")})};return(f,p)=>{const d=e.resolveComponent("a-tooltip");return n.value?(e.openBlock(),e.createBlock(d,{key:0,title:f.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",f.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...f.cpStyle}),onClick:e.withModifiers(L,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-69b8d557"]])),St=Object.freeze(Object.defineProperty({__proto__:null,HbLibCopy:re,HbLibFormItemFilterModal:ne,HbLibListBtnsAct:$e,HbLibListForm:ye,HbLibListMultiSelect:X,HbLibListPageAct:xe,HbLibListPageContainer:Me,HbLibListTable:mt,HbLibMutilpleSelectModal:Ze,HbLibTableAct:it,HbLibTableColumnSet:ut},Symbol.toStringTag,{value:"Module"})),_t={data:{type:Array,required:!0},modelValue:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},keyKey:{type:String,default:"key"},childrenKey:{type:String,default:"children"},defaultExpandKeys:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},clickToSelect:{type:Boolean}},wt=e.defineComponent({__name:"treeNode",props:{item:{type:Object,default(){return{}}},expandedKeys:{type:Object}},emits:["toggleExpand"],setup(m,{emit:s}){const c=m,n=s,L=J("treeNode"),f=e.computed(()=>c.expandedKeys.has(c.item.key)),p=()=>{n("toggleExpand",c.item.key)};return(d,o)=>(e.openBlock(),e.createElementBlock("div",{class:"tree-node-container",style:e.normalizeStyle({paddingLeft:`${m.item.level*20}px`}),onClick:o[0]||(o[0]=a=>p())},[e.createElementVNode("span",{class:e.normalizeClass(["tree-node-icon",[f.value&&"tree-node-icon-open",e.unref(L).is("leaf",m.item.isLeaf)]])},"➡",2),e.createTextVNode(e.toDisplayString(m.item.label),1)],4))}}),xt=R(e.defineComponent({name:"HbTree",__name:"tree",props:_t,setup(m){const s=m,c=J("tree"),n=e.ref([]),L=e.ref(new Set(s.defaultExpandKeys)),f=a=>{const y=(B,x=null)=>B.map(T=>{const u=T[s.childrenKey],S={...T,originData:T,label:T[s.labelKey]||"",key:T[s.keyKey]||"",children:[],isLeaf:T.isLeaf??u.length===0,level:x?x.level+1:0,parentKey:x?x.key:null};return u.length>0&&(S.children=y(u,S)),S});return y(a)};e.watch(()=>s.data,a=>{n.value=f(a)},{deep:!0,immediate:!0});const p=e.computed(()=>{const a=n.value,y=L.value,B=[],x=[];for(let T=a.length-1;T>=0;T--)x.push(a[T]);for(;x.length>0;){const T=x.pop();if(B.push(T),y.has(T.key))for(let u=T.children.length-1;u>=0;u--)x.push(T.children[u])}return B}),d=a=>{L.value.has(a)?L.value.delete(a):L.value.add(a)},o=()=>{};return(a,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).b()]),onClick:y[0]||(y[0]=B=>o())},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,B=>(e.openBlock(),e.createBlock(wt,{key:B.key,item:B,expandedKeys:L.value,onToggleExpand:d},null,8,["item","expandedKeys"]))),128))],2))}})),Nt=Object.freeze(Object.defineProperty({__proto__:null,default:{HbFuncCompCopy:re,HbFuncCompTree:xt}},Symbol.toStringTag,{value:"Module"})),Bt={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"}}},Ft={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"}}},Tt={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置"},hbLibListForm:{queryCase:"查询方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"}}},$t={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"}}};var G={exports:{}},Vt=G.exports,ie;function Et(){return ie||(ie=1,(function(m,s){(function(c,n){m.exports=n(Z)})(Vt,(function(c){function n(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var L=n(c),f={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,d){return d==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,d){var o=100*p+d;return o<600?"凌晨":o<900?"早上":o<1100?"上午":o<1300?"中午":o<1800?"下午":"晚上"}};return L.default.locale(f,null,!0),f}))})(G)),G.exports}Et();let se={...St,...Nt};Z.locale("zh-cn");const Mt={en_US:Bt,ja_JP:Ft,zh_CN:Tt,de_DE:$t},It=function(m){Object.keys(se).forEach(c=>{m.use(se[c])})};D.HbLibFormItemFilterModal=ne,D.install=It,D.locales=Mt,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(O,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("@ant-design/icons-vue"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","@ant-design/icons-vue","ant-design-vue","vue-router","vue-i18n","lodash","@vueuse/core","dayjs"],e):(O=typeof globalThis<"u"?globalThis:O||self,e(O.HbComponentLib={},O.Vue,O.draggable,O.iconsVue,O.antDesignVue,O.vueRouter,O.vueI18n,O.lodash,O.core,O.dayjs))})(this,(function(O,e,J,U,u,le,j,Z,ae,X){"use strict";const W=(t="")=>{const c=`hb-${t}`;return de(c)},Y=(t,c,d,n)=>(c&&(t+=`-${c}`),d&&(t+=`__${d}`),n&&(t+=`--${n}`),t),de=t=>({b:c=>c?Y(t,c,"",""):Y(t,"","",""),e:c=>c?Y(t,"",c,""):"",m:c=>Y(t,"","",c),be:(c,d)=>Y(t,c,d,""),em:(c,d)=>Y(t,"",c,d),bem:(c,d,n)=>Y(t,c,d,n),is:(c,d)=>d?`is-${c}`:""}),me=["onMouseenter","onMouseleave"],pe=["onClick"],he=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{default:"自定义查询条件"},showNumber:{default:40}},emits:["confirm"],setup(t,{expose:c,emit:d}){const n=j.useI18n().t,y=j.useI18n().messages.value.en_US,f=j.useI18n().messages.value.ja_JP,h=j.useI18n().messages.value.zh_CN,m=t,l=d,r=W("sfcm"),i=le.useRoute(),_=e.reactive({lan:window.localStorage.getItem("lan")}),S=e.ref(!1),T=e.ref(600);let k=[];const x=e.ref([]),M=e.ref([]),V=e.computed(()=>x.value.every(C=>C.isLinked||C.isFixed)),E=C=>{const F=C.draggedContext.element,b=C.relatedContext.index;if(F.isLinked||F.isFixed)return!1;const H=x.value.map((z,K)=>({item:z,index:K})).filter(({item:z})=>z.isLinked).map(({index:z})=>z);if(H.length===0)return!0;for(let z=0;z<H.length-1;z++){const K=H[z],G=H[z+1];if(b>K&&b<G)return!1}return!0},B=()=>{const C=localStorage.getItem("pro__Login_Userinfo");let F="anonymous";if(C)try{F=JSON.parse(C).value.jobNumber||"anonymous"}catch(H){console.warn("解析用户信息失败:",H)}let b=i?.path;return`searchFormConfig_${F}_${b}`},L=C=>({ja_JP:()=>Z.get(f,C.labelLanguage||""),en_US:()=>Z.get(y,C.labelLanguage||""),zh_CN:()=>Z.get(h,C.labelLanguage||"")})[_.lan]?.()||C.label,o=()=>{try{const C=B(),F=localStorage.getItem(C);if(F){const b=JSON.parse(F);if(b.originalList&&Array.isArray(b.originalList)){k=JSON.parse(JSON.stringify(b.originalList));const H=k.filter(w=>w?.isFixed),z=k.filter(w=>w?.isLinked),K=b.showList.filter(w=>!w.isFixed&&!w.isLinked),G=m.showNumber&&m.showNumber>0?Math.max(0,m.showNumber-H.length-z.length):K.length,ee=H.map(w=>({...w,label:L(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:w?.isLinked||!1,labelLanguage:w?.labelLanguage||void 0})),te=z.map(w=>({...w,label:L(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:!0,labelLanguage:w?.labelLanguage||void 0})),oe=K.slice(0,G).map(w=>({...w,label:L(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:w?.isLinked||!1,labelLanguage:w?.labelLanguage||void 0}));x.value=[...ee,...te,...oe];const N=x.value.map(w=>w.key),qt=k.map(w=>w.key).filter(w=>!N.includes(w));return M.value=k.filter(w=>qt.includes(w.key)).map(w=>({...w,label:L(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:w?.isLinked||!1,active:!1,labelLanguage:w?.labelLanguage||void 0})),!0}}}catch(C){console.warn("加载保存的搜索配置失败:",C)}return!1},a=()=>{try{const C={originalList:k,showList:x.value.map(b=>({...b,key:b.key,label:b.label,isFixed:b.isFixed,isLinked:b.isLinked,labelLanguage:b?.labelLanguage||void 0}))},F=B();localStorage.setItem(F,JSON.stringify(C))}catch(C){console.warn("保存搜索配置失败:",C)}},p=e.computed(()=>{const C=x.value.filter(b=>!b.isFixed&&!b.isLinked).length,F=x.value.filter(b=>b.isFixed||b.isLinked).length;return C>=m.showNumber-F});e.watch(()=>m.list,C=>{if(!o()&&k.length===0){k=JSON.parse(JSON.stringify(C));const b=C.filter(N=>N?.isFixed),H=C.filter(N=>N?.isLinked),z=C.filter(N=>!N?.isFixed&&!N?.isLinked),K=m.showNumber&&m.showNumber>0?Math.max(0,m.showNumber-b.length-H.length):z.length,G=b.map(N=>({...N,label:L(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,labelLanguage:N?.labelLanguage||void 0})),ee=H.map(N=>({...N,label:L(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:!0,labelLanguage:N?.labelLanguage||void 0})),te=z.slice(0,K).map(N=>({...N,label:L(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,labelLanguage:N?.labelLanguage||void 0}));x.value=[...G,...ee,...te];const oe=z.slice(K).map(N=>({...N,label:L(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,active:!1,labelLanguage:N?.labelLanguage||void 0}));M.value=oe}},{immediate:!0});const g=C=>{const F=x.value.findIndex(b=>b.key===C.key);F!==-1&&(x.value.splice(F,1),M.value.push({...C,active:!1}))},s=C=>{if(p.value)return;const F=M.value.findIndex(b=>b.key===C.key);if(F!==-1){const[b]=M.value.splice(F,1);x.value.push({...b,active:!1})}},I=()=>{S.value=!1},$=()=>{S.value=!0},R=()=>{a(),l("confirm",x.value),I()},A=C=>{const F=M.value.findIndex(b=>b.key===C.key);F!==-1&&(M.value[F].active=!0)},D=C=>{const F=M.value.findIndex(b=>b.key===C.key);F!==-1&&(M.value[F].active=!1)};return c({toOpenModal:$}),(C,F)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b())},[e.createVNode(e.unref(u.Modal),{visible:S.value,"onUpdate:visible":F[1]||(F[1]=b=>S.value=b),width:T.value,onCancel:I,onOk:R},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("title"))},e.toDisplayString(t.title),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(u.Button),{onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(u.Button),{type:"primary",onClick:R},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(r).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r).e("title__tip"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(t.showNumber)+e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("show__tag"))},[e.createVNode(e.unref(J),{modelValue:x.value,"onUpdate:modelValue":F[0]||(F[0]=b=>x.value=b),"item-key":"key",tag:"div",disabled:V.value,move:E},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r).e("show__tag__item"),e.unref(r).is("fixed",b.isFixed),e.unref(r).is("linked",b.isLinked)])},[e.createTextVNode(e.toDisplayString(b.label)+" ",1),!b.isFixed&&!b.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(U.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(r).e("show__tag__item-close")),onClick:H=>g(b)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(r).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r).e("title__tip"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("unshow__tag"))},[M.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(M.value,b=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(r).e("unshow__tag__item"),e.unref(r).is("fixed",b.isFixed||""),e.unref(r).is("linked",b.isLinked||"")]),key:b.key,onMouseenter:H=>A(b),onMouseleave:H=>D(b)},[e.createTextVNode(e.toDisplayString(b.label)+" ",1),b.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(r).e("unshow__tag__item-add")),onClick:H=>s(b)},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.add")),11,pe)):e.createCommentVNode("",!0)],42,me))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).e("unshow__tag__empty"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),q=(t,c)=>{const d=t.__vccOpts||t;for(const[n,y]of c)d[n]=y;return d},fe=q(he,[["__scopeId","data-v-6ceb65e8"]]),P=(t,c)=>(t.install=d=>{for(const n of[t,...Object.values({})])d.component(n.name,n)},t),be={list:{type:Array,default:()=>[],required:!0},afterChange:{type:Function,default:()=>{}},title:{type:String,default:"自定义查询条件"},showNumber:{type:Number,default:40}},ge=P(fe),Ce={class:"form-footer"},ue=q(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},needFooter:{type:Boolean,default:!1},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(t,{expose:c,emit:d}){const n=d,y=e.inject("HB_LIST_PAGE_CONTAINER"),f=W("form"),h=t,m=e.ref("show"),l=e.computed(()=>(console.log(h.items),[...h.items])),r=e.ref(),i=()=>{n("handleSearch")},_=()=>{n("handleReset")},S=e.ref(),T=()=>{S.value&&S.value.toOpenModal()},k=L=>{n("handleSfcmConfirm",L)},x=()=>{m.value=m.value==="show"?"hide":"show"};e.watch(()=>h.isFormExpanded,L=>{if(L){console.log(L);const o=document.querySelector("#subpackage_container");o instanceof HTMLElement&&(o.style.overflow="hidden",setTimeout(()=>{o.style.overflow="auto"},500))}});const M=L=>{const o=L;o.style.height="",o.offsetHeight},V=L=>{const o=L;o.style.height="",o.style.overflow="",e.nextTick(()=>{y.calTableHeight&&y.calTableHeight()})},E=L=>{const o=L,a=o.querySelector(".hb-lib-form--container");if(a){const p=a.offsetHeight;o.style.height=p+"px",o.style.overflow="hidden",o.offsetHeight,requestAnimationFrame(()=>{o.style.height="0"})}},B=()=>{e.nextTick(()=>{y.calTableHeight&&y.calTableHeight()})};return c({formRef:r,SelectOption:u.SelectOption,Form:u.Form,FormItem:u.FormItem,Row:u.Row,Col:u.Col,Input:u.Input,Select:u.Select,CheckboxGroup:u.CheckboxGroup,Checkbox:u.Checkbox,DatePicker:u.DatePicker,InputNumber:u.InputNumber,RadioGroup:u.RadioGroup,Radio:u.Radio,Switch:u.Switch,Button:u.Button,Tooltip:u.Tooltip}),(L,o)=>{const a=e.resolveComponent("a-button"),p=e.resolveComponent("a-tooltip"),g=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:M,onAfterEnter:V,onLeave:E,onAfterLeave:B},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[e.createVNode(e.unref(u.Form),e.mergeProps(L.$attrs,{model:t.formData,ref_key:"formRef",ref:r,class:["hb-lib-form--container",m.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(s,I)=>(e.openBlock(),e.createBlock(e.unref(u.FormItem),e.mergeProps({key:I,ref_for:!0},s,{name:s.key,class:s.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[s.type==="slot"?e.renderSlot(L.$slots,s.key,{key:0,formData:t.formData,item:s},void 0,!0):e.createCommentVNode("",!0),s.type==="mixin"?e.renderSlot(L.$slots,s.key,{key:1,formData:t.formData,item:s},void 0,!0):e.createCommentVNode("",!0),s.type==="input"?(e.openBlock(),e.createBlock(e.unref(u.Input),e.mergeProps({key:2,value:t.formData[s.key],"onUpdate:value":$=>t.formData[s.key]=$},{ref_for:!0},s.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="select"?(e.openBlock(),e.createBlock(e.unref(u.Select),e.mergeProps({key:3,value:t.formData[s.key],"onUpdate:value":$=>t.formData[s.key]=$},{ref_for:!0},s.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,($,R)=>(e.openBlock(),e.createBlock(e.unref(u.SelectOption),{key:R,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(u.CheckboxGroup),e.mergeProps({key:4,value:t.formData[s.key],"onUpdate:value":$=>t.formData[s.key]=$},{ref_for:!0},s.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,($,R)=>(e.openBlock(),e.createBlock(e.unref(u.Checkbox),{key:R,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(u.DatePicker),e.mergeProps({key:5,value:t.formData[s.key],"onUpdate:value":$=>t.formData[s.key]=$},{ref_for:!0},s.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(u.InputNumber),e.mergeProps({key:6,value:t.formData[s.key],"onUpdate:value":$=>t.formData[s.key]=$},{ref_for:!0},s.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="radio"?(e.openBlock(),e.createBlock(e.unref(u.RadioGroup),e.mergeProps({key:7,value:t.formData[s.key],"onUpdate:value":$=>t.formData[s.key]=$},{ref_for:!0},s.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,($,R)=>(e.openBlock(),e.createBlock(e.unref(u.Radio),{key:R,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="switch"?(e.openBlock(),e.createBlock(e.unref(u.Switch),e.mergeProps({key:8,checked:t.formData[s.key],"onUpdate:checked":$=>t.formData[s.key]=$},{ref_for:!0},s.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[s.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label)+" ",1),e.createVNode(e.unref(u.Tooltip),{title:s.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(U.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"]))),128)),e.createElementVNode("section",Ce,[e.createVNode(a,{type:"primary",onClick:i,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(U.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(a,{type:"link",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(p,{key:0,title:L.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:T},[...o[0]||(o[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(L.$slots,"formBtns",{},void 0,!0)])]),_:3},16,["model","class"]),t.needFooter?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__left"))},[e.renderSlot(L.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__right"))},[m.value=="show"?e.renderSlot(L.$slots,"form-footer-right",{key:0,formRef:r.value},()=>[e.createVNode(e.unref(u.Button),{type:"primary",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(u.Button),{type:"primary",onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):e.createCommentVNode("",!0),e.createVNode(e.unref(u.Button),{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value=="show"?`${L.$t("hbLibComp.hbListPageAct.close")}`:`${L.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(g,{list:t.items,ref_key:"HbSfCmRef",ref:S,onConfirm:k},null,8,["list"])],64)}}}),[["__scopeId","data-v-a1fedfa4"]]),ye={items:{type:Array,required:!0},formData:{type:Object,required:!0},layoutConfig:{type:Object,default:{row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}}},needFooter:{type:Boolean,default:!1},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},calTableHeight:{type:Function,default:()=>{}}},ke=P(ue),Se={class:"hb-lib-list-page-act-box"},Le={class:"hb-lib-list-page-breadcrumb"},xe={class:"hb-lib-list-page-act"},we={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},_e={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},Be=q(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{formItems:{},isShowSelfFilter:{type:Boolean,default:!0},isShowOpenClose:{type:Boolean,default:!0},isShowFullScreen:{type:Boolean,default:!0}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(t,{emit:c}){const d=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:n,toggle:y}=ae.useFullscreen(d.PageContainerRef),f=e.ref(""),h=()=>{const m=le.useRoute();let l=localStorage.getItem("BreadCrumb")||"[]",r=m?.path;if(l!=="[]"){let i=JSON.parse(l).find(_=>_.value===r);i&&(f.value=i.label.replace(/-/g," / "))}};return e.onMounted(()=>{h()}),(m,l)=>{const r=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Se,[e.createElementVNode("aside",Le,e.toDisplayString(f.value),1),e.createElementVNode("aside",xe,[e.createVNode(r,{title:e.unref(n)?`${m.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${m.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:l[0]||(l[0]=(...i)=>e.unref(y)&&e.unref(y)(...i))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",_e,[...l[2]||(l[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",we,[...l[1]||(l[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(m.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-cb524b69"]]),Ne={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},isShowOpenClose:{type:Boolean,default:!0},isShowFullScreen:{type:Boolean,default:!0}},Fe=P(Be),Te={class:"hb-lib-list-btns-box"},$e={class:"hb-lib-list-btns-left"},Ve={class:"hb-lib-list-btns-right"},Ee=q(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{formItems:{default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:c}){const d=c,n=e.ref(!0),y=()=>{n.value=!n.value,d("handleOpenOrClose",n.value)},f=()=>{d("handleReload")};return e.onMounted(()=>{}),(h,m)=>{const l=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Te,[e.createElementVNode("aside",$e,[e.renderSlot(h.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Ve,[t.needReload?(e.openBlock(),e.createBlock(l,{key:0,title:h.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:f},[...m[0]||(m[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),t.needOpenOrClose?(e.openBlock(),e.createBlock(l,{key:1,title:n.value?`${h.$t("hbLibComp.hbListBtnsAct.close")}`:`${h.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:y},[n.value?(e.openBlock(),e.createBlock(e.unref(U.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(U.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-0ab77a2c"]]),Me={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},Ie=P(Ee),He=(t={})=>{const{formRef:c,offsetBottom:d=50,minHeight:n=300}=t,y=e.ref(0);let f=null,h=null,m=null,l=null,r=null;const i=()=>{r&&clearTimeout(r),r=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const V=document.querySelector(".ant-table"),E=document.querySelector(".ant-pagination");if(V){const B=V.getBoundingClientRect().top,L=window.innerHeight,a=(E?E.offsetHeight+20:40)+d;let p=L-B-a;p<n&&(p=n),y.value=p}})})},100)},_=()=>{const V=document.querySelector(".ant-pagination");if(V){const E=new MutationObserver(()=>{i()});return E.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),E}return null},S=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(f=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(B=>{B.style.display="none"}),i()}),f.observe(V))},T=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(m=new MutationObserver(()=>{setTimeout(()=>{i()},100)}),m.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},k=()=>{l&&clearTimeout(l),l=setTimeout(()=>{i()},100)},x=()=>{window.addEventListener("resize",k),e.nextTick(()=>{S(),T(),h=_()})},M=()=>{window.removeEventListener("resize",k),f&&f.disconnect(),m&&m.disconnect(),h&&h.disconnect(),l&&clearTimeout(l),r&&clearTimeout(r)};return c&&e.watch(()=>c,()=>{setTimeout(()=>{i()},200)},{deep:!0}),e.onMounted(()=>{i(),x()}),e.onUnmounted(()=>{M()}),{tableHeight:y,calTableHeight:i}},De=e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{default:400},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{}},setup(t){const c=t,d=e.useTemplateRef("PageContainerRef"),{calTableHeight:n,tableHeight:y}=He({offsetBottom:c.offsetBottom||20,minHeight:c.minHeight||300}),f=e.computed(()=>y.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:d,tableHeight:y,calTableHeight:n}),(h,m)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:d},[e.renderSlot(h.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle({"--hb-list-table-height":f.value-20+"px","--hb-list-ttable-height":t.tabelData.length?"":f.value-20+"px"})},[e.renderSlot(h.$slots,"default")],4)],512))}}),Ae={tableHeight:{type:Number,default:400},tabelData:{type:Array,default:()=>[]},offsetBottom:{type:Number},minHeight:{type:Number}},ze=P(De),Oe={style:{"font-weight":"500"}},Pe={key:0,class:"hb-lib-search-tag__description"},Re={class:"hb-lib-selector-dropdown"},Ue={class:"hb-lib-selector-search"},qe={class:"hb-lib-selector-list"},Ke=["onClick"],je={class:"hb-lib-option-content"},Ye={class:"hb-lib-option-label"},We={key:0,class:"hb-lib-selector-empty"},Ge={key:1,class:"hb-lib-selector-footer"},Je={class:"hb-lib-footer-buttons"},Qe={key:2,class:"hb-lib-selector-footer"},Ze={class:"hb-lib-footer-buttons"},v=q(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({title:{default:"请选择"},placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(t,{emit:c}){const d=t,n=c,y=e.useModel(t,"value"),f=e.ref(!1),h=e.ref(""),m=e.ref([]),l=e.ref(),r=e.computed(()=>{if(d.remoteSearch||!h.value)return d.options;const o=h.value.toLowerCase();return d.options.filter(a=>a.label.toLowerCase().includes(o)||a.description?.toLowerCase().includes(o))}),i=e.computed(()=>d.prefix?`${d.prefix.length*14+8}px`:"0px"),_=e.computed(()=>r.value.length===0?!1:r.value.every(o=>m.value.includes(o.value))),S=e.computed(()=>{if(r.value.length===0)return!1;const o=r.value.filter(a=>m.value.includes(a.value)).length;return o>0&&o<r.value.length});e.watch(()=>y.value,o=>{o?m.value=Array.isArray(o)?[...o]:[o]:m.value=[]},{immediate:!0}),e.watch(()=>d.searchValue,o=>{d.remoteSearch&&o!==void 0&&(h.value=o)},{immediate:!0});const T=o=>{o&&(f.value=o,k.value=[...m.value],h.value="",setTimeout(()=>{if(l.value){const a=l.value.input||l.value.$el?.querySelector("input");a&&a.focus()}},100))},k=e.ref([]),x=()=>{m.value=[...k.value],f.value=!1,n("cancel")},M=e.ref([]),V=()=>{const o=d.multiple?m.value:m.value[0]||"",a=d.options.filter(p=>m.value.includes(p.value));M.value=a,console.log(o,a),k.value=[...m.value],y.value=o,n("update:value",o),n("change",o,a),n("confirm",o,a),f.value=!1},E=ae.useDebounceFn(o=>{const a=o!==void 0?o:h.value;d.remoteSearch&&(n("search",a),n("update:searchValue",a))},300),B=o=>{if(d.multiple){const a=new Set(m.value);a.has(o.value)?a.delete(o.value):a.add(o.value),m.value=Array.from(a)}else m.value=[o.value],V()},L=o=>{if(o.target.checked){const p=new Set(m.value);r.value.forEach(g=>{p.add(g.value)}),m.value=Array.from(p)}else{const p=new Set(r.value.map(g=>g.value));m.value=m.value.filter(g=>!p.has(g))}};return(o,a)=>{const p=e.resolveComponent("a-tag"),g=e.resolveComponent("a-input"),s=e.resolveComponent("a-checkbox"),I=e.resolveComponent("a-radio"),$=e.resolveComponent("a-button"),R=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":i.value}},o.$attrs),[e.createVNode(R,{value:y.value,"onUpdate:value":a[5]||(a[5]=A=>y.value=A),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:f.value,allowClear:"",maxTagCount:t.maxTagCount,options:r.value,onDropdownVisibleChange:T,onSearch:e.unref(E),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:A,label:D,closable:C,option:F})=>[e.createVNode(p,{class:"hb-lib-search-tag",onClick:a[0]||(a[0]=()=>T(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Oe,e.toDisplayString(D),1),F?.description?(e.openBlock(),e.createElementBlock("span",Pe," ("+e.toDisplayString(F.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:A})=>[e.createElementVNode("div",Re,[e.createElementVNode("div",Ue,[e.createVNode(g,{ref_key:"searchInputRef",ref:l,class:"hb-lib-selector-search-input",value:h.value,"onUpdate:value":a[1]||(a[1]=D=>h.value=D),placeholder:"请输入关键词搜索","allow-clear":"",onInput:a[2]||(a[2]=D=>e.unref(E)(D.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(U.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,D=>(e.openBlock(),e.createElementBlock("div",{key:D.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:m.value.includes(D.value)}]),onClick:()=>B(D)},[t.multiple?(e.openBlock(),e.createBlock(s,{key:0,checked:m.value.includes(D.value),onChange:()=>B(D),onClick:a[3]||(a[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(I,{key:1,checked:m.value.includes(D.value),onChange:()=>B(D),onClick:a[4]||(a[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",je,[e.createElementVNode("div",Ye,e.toDisplayString(D.label),1)])],10,Ke))),128))]),r.value.length===0?(e.openBlock(),e.createElementBlock("div",We,e.toDisplayString(o.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(s,{checked:_.value,indeterminate:S.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",Je,[e.createVNode($,{size:"small",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",size:"small",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Qe,[a[6]||(a[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Ze,[e.createVNode($,{size:"small",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-11422adb"]]);v.install=function(t){return t.component("HbFormSelectFilter",v),t};const Xe={class:"hb-lib-form-item-filter-modal-search"},ve={class:"hb-lib-form-item-filter-modal-buttons"},et={key:0},tt=e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:c,emit:d}){const n=t,y=d,f=e.ref(!1),h=e.ref(""),m=e.ref(),l=e.ref(),r=e.ref([]),i=e.ref([]),_=e.ref(),S=e.reactive({searchText:"",searchedColumn:""}),T=e.computed(()=>n.tableData.map(p=>(p.id=p.id||Math.random(),p))),k=e.computed(()=>n.tableColumn.map(p=>(p.customFilterDropdown&&(p.onFilter=(g,s)=>s[p.dataIndex].toString().toLowerCase().includes(g.toLowerCase()),p.onFilterDropdownVisibleChange=g=>{g&&setTimeout(()=>{m.value?.focus()},100)}),{...p}))),x=()=>{let p="";i.value.forEach(g=>{p=p+g[n.labelKey]+","}),h.value=p.substring(0,p.length-1),f.value=!1,y("handleConfirm",i.value)},M=()=>{f.value=!1},V=()=>{f.value=!0,e.nextTick(()=>{const p=_.value?.$el?.querySelector(".ant-table-body");p&&(p.scrollTop=0)})},E=()=>{r.value=[],i.value=[]},B=()=>{h.value="",E()},L=(p,g,s)=>{g(),S.searchText=p[0],S.searchedColumn=s},o=(p,g)=>{p({confirm:!0}),S.searchText="",g()},a=(p,g)=>{r.value=p,i.value=g};return c({resetInputVal:B}),(p,g)=>{const s=e.resolveComponent("a-input"),I=e.resolveComponent("a-button"),$=e.resolveComponent("a-table"),R=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[e.createVNode(s,{readonly:"",onClick:V,value:h.value,"onUpdate:value":g[0]||(g[0]=A=>h.value=A),placeholder:p.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(U.UnorderedListOutlined),{onClick:V})]),_:1},8,["value","placeholder"]),e.createVNode(R,{visible:f.value,"onUpdate:visible":g[1]||(g[1]=A=>f.value=A),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(I,{onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(I,{onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode($,{ref_key:"tableRef",ref:_,columns:k.value,dataSource:T.value,rowSelection:{selectedRowKeys:r.value,onChange:a},rowKey:A=>A[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:A,selectedKeys:D,confirm:C,clearFilters:F,column:b})=>[e.createElementVNode("div",Xe,[e.createVNode(s,{ref_key:"searchInput",ref:m,placeholder:`请输入${b.title}`,value:D[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:H=>A(H.target.value?[H.target.value]:[]),onPressEnter:H=>L(D,C,b.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",ve,[e.createVNode(I,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:H=>o(F,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(I,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:H=>L(D,C,b.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:A})=>[e.createVNode(e.unref(U.SearchOutlined),{style:e.normalizeStyle({color:A?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:A,column:D})=>[S.searchText&&S.searchedColumn===D.dataIndex?(e.openBlock(),e.createElementBlock("span",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.toString().split(new RegExp(`(?<=${S.searchText})|(?=${S.searchText})`,"i")),(C,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[C.toLowerCase()===S.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:F,class:"highlight"},e.toDisplayString(C),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(C),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}}),ot={modelTitle:{type:String,default:"搜索弹窗"},modalWidth:{type:Number,default:800},tableHeight:{type:Number,default:500},tableColumn:{type:Array,default:()=>[],required:!0},tableData:{type:Array,default:()=>[]},tableKey:{type:String,default:"id"},labelKey:{type:String,default:"label"}},lt=P(tt),at={class:"hb-lib-table-act-box"},nt=["onClick"],rt={href:"javascript:;",class:"hb-lib-table-main-action"},it=["onClick"],st={href:"javascript:;",class:"hb-lib-table-more-action"},ct=["onClick"],dt={href:"javascript:;"},mt=["onClick"],pt={class:"hb-lib-table-confirm-modal-content"},ht=P(q(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:c}){const d=t,{t:n}=j.useI18n(),y=e.ref(!1),f=e.ref(!1),h=e.ref(null),m=e.computed(()=>d.actions.filter(x=>x.condition!==void 0?x.condition:!0)),l=e.computed(()=>m.value.slice(0,d.buttonDisplaysQuantity)),r=e.computed(()=>m.value.slice(d.buttonDisplaysQuantity)),i=x=>{x.handler&&x.handler(d.record)},_=x=>{h.value=x,y.value=!0},S=()=>{if(h.value){f.value=!0;try{i(h.value),f.value=!1,y.value=!1}catch{f.value=!1}}},T=()=>{y.value=!1,h.value=null},k=e.computed(()=>h.value?{title:h.value.confirmTitle,content:h.value.confirmContent||h.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return c({ADropdown:u.Dropdown,AMenu:u.Menu,AMenuItem:u.MenuItem,APopconfirm:u.Popconfirm,AModal:u.Modal,DownOutlined:U.DownOutlined}),(x,M)=>{const V=e.resolveComponent("a-divider"),E=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(B,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:L},[B.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:o=>_(B),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(B.label),1)],8,nt)),[[E,B.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(u.Popconfirm),{key:1,title:B.confirmTitle,onConfirm:o=>i(B)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",rt,[e.createTextVNode(e.toDisplayString(B.label),1)])),[[E,B.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:o=>i(B),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(B.label),1)],8,it)),[[E,B.permissionsTag||null]]),r.value&&r.value.length>0||L!==l.value.length-1?(e.openBlock(),e.createBlock(V,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),r.value&&r.value.length>0?(e.openBlock(),e.createBlock(e.unref(u.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(u.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,B=>(e.openBlock(),e.createBlock(e.unref(u.MenuItem),{key:B.key},{default:e.withCtx(()=>[B.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:L=>_(B)},[e.createTextVNode(e.toDisplayString(B.label),1)],8,ct)),[[E,B.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(u.Popconfirm),{key:1,title:B.confirmTitle,onConfirm:L=>i(B)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",dt,[e.createTextVNode(e.toDisplayString(B.label),1)])),[[E,B.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:L=>i(B)},[e.createTextVNode(e.toDisplayString(B.label),1)],8,mt)),[[E,B.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",st,[e.createTextVNode(e.toDisplayString(x.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(U.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(u.Modal),{visible:y.value,title:k.value.title,"confirm-loading":f.value,onOk:S,onCancel:T},{default:e.withCtx(()=>[e.createElementVNode("p",pt,e.toDisplayString(k.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-ecac600b"]])),ft=t=>({tableWidth:e.computed(()=>{const d=Array.isArray(t)?t:t.value;return!d||d.length===0?0:d.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,y)=>n+y,0)})}),bt={key:0,class:"hb-lib-list-table-act"},gt={class:"empty-container"},Ct=q(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},childColumns:{},rowHeight:{},defaultWidth:{default:()=>150}},setup(t){const{t:c}=j.useI18n(),d=t,n=e.ref([]),y=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:f}=ft(e.computed(()=>d.columns));e.watch(()=>d.columns,l=>{const r=l.filter(i=>i!=null&&i.checked);n.value=r.map(i=>{let _={...i,title:i.title||i.label};if(!_.width)_.width=d.defaultWidth;else if(typeof _.width=="string"){const S=parseInt(_.width,10);_.width=isNaN(S)?d.defaultWidth:S}return _.resizable===void 0&&(_.resizable=!0),_})},{immediate:!0,deep:!0});const h=(l,r)=>{if(r){const i=typeof l=="string"?parseInt(l,10):l;r.width=isNaN(i)?150:i}},m=(l,r="YYYY-MM-DD HH:mm:ss")=>l?X(l).format(r):"";return(l,r)=>{const i=e.resolveComponent("a-empty"),_=e.resolveComponent("a-tooltip"),S=e.resolveComponent("HbLibCopy"),T=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":d.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[l.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",bt,[e.renderSlot(l.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(l.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(T,e.mergeProps(l.$attrs,{columns:n.value,onResizeColumn:h,scroll:{x:e.unref(f),y:e.unref(y).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",gt,[e.createVNode(i,{description:e.unref(c)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[l.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:k})=>[e.renderSlot(l.$slots,"headerCell",{column:k},()=>[e.createTextVNode(e.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,l.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:k,record:x,index:M})=>[e.renderSlot(l.$slots,"bodyCell",{column:k,record:x,index:M},void 0,!0),k&&k.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k.needTooltip?(e.openBlock(),e.createBlock(_,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x[k.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(x[k.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),k&&k.needCopy?(e.openBlock(),e.createBlock(S,{key:1,"cp-text":x[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),k&&k.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(m(x[k.dataIndex],k.format)),1)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,l.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:k})=>[e.renderSlot(l.$slots,"expandedRowRender",{column:t.childColumns,record:k},void 0,!0)]),key:"2"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-f5b59c06"]]),ut={columns:{type:Array,default:()=>[],required:!0},childColumns:{type:Array,default:()=>[]},rowHeight:{type:Number},defaultWidth:{type:[String,Number],default:150}},yt=P(Ct),kt={class:"hb-lib-table-setting-box"},St={key:0,class:"hb-lib-table-drag-item"},Lt={key:0,class:"hb-lib-table-drag-item-act"},xt=["onClick"],wt=["onClick"],_t={class:"hb-lib-table-set-btn-group"},Bt={class:"select-all-container",style:{"margin-right":"10px"}},Nt=P(q(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns","refresh","clearSelected"],setup(t,{emit:c}){const d=c,{t:n}=j.useI18n(),y=t,f=e.ref([]),h=e.computed(()=>l.value.filter(o=>o.checked));e.ref([]);const m=e.ref(!1),l=e.ref([]),r=e.ref(null),i=e.computed(()=>h.value.length>0&&h.value.length===f.value.length),_=e.computed(()=>h.value.length>0&&h.value.length<f.value.length),S=o=>{r.value=o.oldIndex},T=o=>{const a=o.newIndex;if(f.value.some(g=>g.fixed==="left"||g.fixed==="right"||g.fixed===!0)){const g=f.value.filter(I=>I.fixed==="left").length,s=f.value.length-f.value.filter(I=>I.fixed==="right").length;if((g>0&&a<g||s<f.value.length&&a>=s)&&(u.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),r.value!==null)){const I=l.value.splice(a,1)[0];l.value.splice(r.value,0,I)}}r.value=null},k=o=>{o.target.checked?l.value.forEach(p=>p.checked=!0):l.value.forEach(p=>p.checked=!1)},x=(o,a)=>{a?o.checked=!0:o.checked=!1},M=()=>{f.value=[...l.value],d("on-get-columns",f.value),m.value=!1},V=()=>{f.value=y.tableColumns.map(a=>({...a,label:a.title&&a.title.tag?E(a.title):a.title||a.title2,value:a.dataIndex,checked:a.checked||a.checked===void 0})),l.value=[...f.value];let o=[];y.tableColumns.forEach(function(a){o.push(a.dataIndex)})},E=o=>o.children[0].text,B=o=>{delete o.fixed;const a=l.value.findIndex(p=>p.value===o.value);if(a!==-1){let p=-1;for(let g=0;g<l.value.length;g++)l.value[g].fixed==="left"&&(p=g);if(p!==-1&&a!==p+1){const g=[...l.value],[s]=g.splice(a,1);g.splice(p+1,0,s),l.value=g}}},L=o=>{const a=l.value.findIndex(p=>p.value===o.value);if(a!==-1){let p=-1;for(let g=0;g<l.value.length;g++)l.value[g].fixed==="left"&&(p=g);if(p!==-1&&a!==p+1){const g=[...l.value],s=g.splice(a,1);s[0].fixed="left",g.splice(p+1,0,s[0]),l.value=g}}};return V(),(o,a)=>{const p=e.resolveComponent("a-tooltip"),g=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",kt,[e.createVNode(e.unref(u.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"alertInfoContent",visible:m.value,"onUpdate:visible":a[1]||(a[1]=s=>m.value=s)},{content:e.withCtx(()=>[e.createVNode(e.unref(J),{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=s=>l.value=s),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:S,onEnd:T},{item:e.withCtx(({element:s})=>[s.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",St,[e.createVNode(e.unref(u.Checkbox),{checked:s.checked,onChange:I=>x(s,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1032,["checked","onChange"]),s.checked?(e.openBlock(),e.createElementBlock("section",Lt,[e.createElementVNode("span",{class:e.normalizeClass(s.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),s.fixed?(e.openBlock(),e.createBlock(p,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>B(s)},[...a[2]||(a[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,xt)]),_:2},1024)):e.createCommentVNode("",!0),s.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>L(s)},[...a[3]||(a[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,wt)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",_t,[e.createElementVNode("div",Bt,[e.createVNode(e.unref(u.Checkbox),{checked:i.value,indeterminate:_.value,onChange:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(g,{onClick:M,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(p,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...a[4]||(a[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-c9fc6c04"]])),ne={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:"复制"},copySuccessTip:{type:String,default:"复制成功"},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},re=P(q(e.defineComponent({name:"HbLibCopy",__name:"copy",props:ne,setup(t){const c=t,d=e.ref();e.watchEffect(()=>{d.value=c.data});const n=e.computed(()=>{if(c.cpText)return c.cpText;let f="";if(c.data)if(Array.isArray(c.data)){if(c.K&&c.V&&c.L){const h=c.data.find(m=>m?.[c.K]===c.V);f=h?h[c.L]:""}}else c.K&&(f=c.data[c.K]);return f}),y=()=>{navigator.clipboard.writeText(n.value).then(()=>{u.message.success(c.copySuccessTip)}).catch(()=>{u.message.error("复制失败")})};return(f,h)=>{const m=e.resolveComponent("a-tooltip");return n.value?(e.openBlock(),e.createBlock(m,{key:0,title:f.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",f.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...f.cpStyle}),onClick:e.withModifiers(y,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d5ca4420"]])),Ft=Object.freeze(Object.defineProperty({__proto__:null,HbLibCopy:re,HbLibFormItemFilterModal:ge,HbLibListBtnsAct:Ie,HbLibListForm:ke,HbLibListMultiSelect:v,HbLibListPageAct:Fe,HbLibListPageContainer:ze,HbLibListTable:yt,HbLibMutilpleSelectModal:lt,HbLibTableAct:ht,HbLibTableColumnSet:Nt},Symbol.toStringTag,{value:"Module"})),Tt={data:{type:Array,required:!0},modelValue:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},keyKey:{type:String,default:"key"},childrenKey:{type:String,default:"children"},defaultExpandKeys:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},clickToSelect:{type:Boolean}},$t=e.defineComponent({__name:"treeNode",props:{item:{type:Object,default(){return{}}},expandedKeys:{type:Object}},emits:["toggleExpand"],setup(t,{emit:c}){const d=t,n=c,y=W("treeNode"),f=e.computed(()=>d.expandedKeys.has(d.item.key)),h=()=>{n("toggleExpand",d.item.key)};return(m,l)=>(e.openBlock(),e.createElementBlock("div",{class:"tree-node-container",style:e.normalizeStyle({paddingLeft:`${t.item.level*20}px`}),onClick:l[0]||(l[0]=r=>h())},[e.createElementVNode("span",{class:e.normalizeClass(["tree-node-icon",[f.value&&"tree-node-icon-open",e.unref(y).is("leaf",t.item.isLeaf)]])},"➡",2),e.createTextVNode(e.toDisplayString(t.item.label),1)],4))}}),Vt=P(e.defineComponent({name:"HbTree",__name:"tree",props:Tt,setup(t){const c=t,d=W("tree"),n=e.ref([]),y=e.ref(new Set(c.defaultExpandKeys)),f=r=>{const i=(_,S=null)=>_.map(T=>{const k=T[c.childrenKey],x={...T,originData:T,label:T[c.labelKey]||"",key:T[c.keyKey]||"",children:[],isLeaf:T.isLeaf??k.length===0,level:S?S.level+1:0,parentKey:S?S.key:null};return k.length>0&&(x.children=i(k,x)),x});return i(r)};e.watch(()=>c.data,r=>{n.value=f(r)},{deep:!0,immediate:!0});const h=e.computed(()=>{const r=n.value,i=y.value,_=[],S=[];for(let T=r.length-1;T>=0;T--)S.push(r[T]);for(;S.length>0;){const T=S.pop();if(_.push(T),i.has(T.key))for(let k=T.children.length-1;k>=0;k--)S.push(T.children[k])}return _}),m=r=>{y.value.has(r)?y.value.delete(r):y.value.add(r)},l=()=>{};return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(d).b()]),onClick:i[0]||(i[0]=_=>l())},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,_=>(e.openBlock(),e.createBlock($t,{key:_.key,item:_,expandedKeys:y.value,onToggleExpand:m},null,8,["item","expandedKeys"]))),128))],2))}})),ie={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},Et=P(q(e.defineComponent({name:"HbDrag",__name:"index",props:ie,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:c}){const d=t,n=e.shallowRef([]);e.watch(()=>d.dragList,i=>{n.value=i},{deep:!0,immediate:!0});const y=W("drag"),f=c,h=i=>{console.log("drag start",i),f("handleDragStart",i)},m=i=>{console.log("drag end",i),f("handleDragEnd",i)},l=i=>{console.log("drag add",i),f("handleDragAdd",i)},r=i=>{console.log("drag remove",i),f("handleDragRemove",i)};return(i,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(y).b())},[i.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(J),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":_[0]||(_[0]=S=>n.value=S),"item-key":"key",class:{[i.dragClass]:i.dragClass}},i.$attrs,{"ghost-class":i.ghostClass,onStart:h,onEnd:m,onAdd:l,onRemove:r}),{item:e.withCtx(({element:S})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(J),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":_[1]||(_[1]=S=>n.value=S),"item-key":"id",class:{[i.dragClass]:i.dragClass}},i.$attrs,{"ghost-class":i.ghostClass,onStart:h,onEnd:m,onAdd:l,onRemove:r}),{item:e.withCtx(({element:S})=>[e.createElementVNode("div",null,[e.renderSlot(i.$slots,"default",{item:S},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]]));let Mt={...Ft,...Object.freeze(Object.defineProperty({__proto__:null,HbLibFuncCompCopy:re,HbLibFuncCompDrag:Et,HbLibFuncCompTree:Vt},Symbol.toStringTag,{value:"Module"}))};const It=Object.freeze(Object.defineProperty({__proto__:null,HbCopyProps:ne,HbDragProps:ie,HbFormProps:ye,HbFormSelectModalprops:ot,HbListBtnsProps:Me,HbListPageActProps:Ne,HbSfCmProps:be,HbTableProps:ut,ListPageContainerProps:Ae,default:Mt},Symbol.toStringTag,{value:"Module"})),Ht={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"}}},Dt={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"}}},At={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置"},hbLibListForm:{queryCase:"查询方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"}}},zt={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"}}};var Q={exports:{}},Ot=Q.exports,se;function Pt(){return se||(se=1,(function(t,c){(function(d,n){t.exports=n(X)})(Ot,(function(d){function n(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var y=n(d),f={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(h,m){return m==="W"?h+"周":h+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(h,m){var l=100*h+m;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return y.default.locale(f,null,!0),f}))})(Q)),Q.exports}Pt();const ce=It;X.locale("zh-cn");const Rt={en_US:Ht,ja_JP:Dt,zh_CN:At,de_DE:zt},Ut=function(t){Object.keys(ce).forEach(d=>{t.use(ce[d])})};O.install=Ut,O.locales=Rt,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './components/hooks/useCalTableHeight';
|
|
2
|
+
export * from './components/hooks/useCalTableWidth';
|
|
3
|
+
export * from './components/hooks/useListFormItem';
|
|
4
4
|
export declare const locales: {
|
|
5
5
|
en_US: {
|
|
6
6
|
hbLibComp: {
|
|
@@ -312,3 +312,4 @@ export declare const locales: {
|
|
|
312
312
|
};
|
|
313
313
|
};
|
|
314
314
|
export declare const install: (app: any) => void;
|
|
315
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,qBAAqB,CAAC;AAE7B,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AAEnD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,OAAO,QAAkB,GAAG,SAKxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hb-hellotech/hb-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "
|
|
7
|
-
"types": "
|
|
5
|
+
"main": "dist/hb_component_lib.umd.cjs",
|
|
6
|
+
"module": "dist/hb_component_lib.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
8
|
"author": "hello-tech",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"dev": "vite",
|
|
30
|
-
"pub": "npm publish --tag latest --access public",
|
|
30
|
+
"pub": "npm publish --tag latest --access public --registry=https://registry.npmjs.org",
|
|
31
31
|
"build": "vite build",
|
|
32
32
|
"docs:dev": "vitepress dev docs --port 3001",
|
|
33
33
|
"docs:build": "vitepress build docs",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
59
|
+
"@vue/runtime-core": "^3.5.22",
|
|
59
60
|
"typescript": "^4.6.4",
|
|
60
61
|
"vite": "^7.1.12",
|
|
61
62
|
"vitepress": "^1.6.4",
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
readonly modelTitle: {
|
|
3
|
-
readonly type: StringConstructor;
|
|
4
|
-
readonly default: "搜索弹窗";
|
|
5
|
-
};
|
|
6
|
-
readonly modalWidth: {
|
|
7
|
-
readonly type: NumberConstructor;
|
|
8
|
-
readonly default: 800;
|
|
9
|
-
};
|
|
10
|
-
readonly tableHeight: {
|
|
11
|
-
readonly type: NumberConstructor;
|
|
12
|
-
readonly default: 500;
|
|
13
|
-
};
|
|
14
|
-
readonly tableColumn: {
|
|
15
|
-
readonly type: ArrayConstructor;
|
|
16
|
-
readonly default: () => never[];
|
|
17
|
-
readonly required: true;
|
|
18
|
-
};
|
|
19
|
-
readonly tableData: {
|
|
20
|
-
readonly type: ArrayConstructor;
|
|
21
|
-
readonly default: () => never[];
|
|
22
|
-
};
|
|
23
|
-
readonly tableKey: {
|
|
24
|
-
readonly type: StringConstructor;
|
|
25
|
-
readonly default: "id";
|
|
26
|
-
};
|
|
27
|
-
readonly labelKey: {
|
|
28
|
-
readonly type: StringConstructor;
|
|
29
|
-
readonly default: "label";
|
|
30
|
-
};
|
|
31
|
-
}>, {
|
|
32
|
-
props: any;
|
|
33
|
-
emits: (event: "handleCancel" | "handleConfirm", ...args: any[]) => void;
|
|
34
|
-
visible: import("vue").Ref<boolean, boolean>;
|
|
35
|
-
inputValue: import("vue").Ref<string, string>;
|
|
36
|
-
searchInput: import("vue").Ref<any, any>;
|
|
37
|
-
hbMultipSelectModalRef: import("vue").Ref<any, any>;
|
|
38
|
-
selectedRowKeysResult: any;
|
|
39
|
-
selectedRowKeysRowResult: any;
|
|
40
|
-
tableRef: import("vue").Ref<any, any>;
|
|
41
|
-
state: {
|
|
42
|
-
searchText: string | number;
|
|
43
|
-
searchedColumn: string | number;
|
|
44
|
-
};
|
|
45
|
-
data: import("vue").ComputedRef<any[]>;
|
|
46
|
-
columns: import("vue").ComputedRef<any[]>;
|
|
47
|
-
handleOk: () => void;
|
|
48
|
-
handleCancel: () => void;
|
|
49
|
-
handleOpen: () => void;
|
|
50
|
-
handleFooterReset: () => void;
|
|
51
|
-
resetInputVal: () => void;
|
|
52
|
-
handleSearch: (selectedKeys: Array<string | number>, confirm: () => void, dataIndex: string | number) => void;
|
|
53
|
-
handleReset: (clearFilters: any, confirm: any) => void;
|
|
54
|
-
onSelectChange: (selectedRowKeys: Array<any>, selectionRows: Array<any>) => void;
|
|
55
|
-
readonly UnorderedListOutlined: import("@ant-design/icons-vue/lib/icons/UnorderedListOutlined").UnorderedListOutlinedIconType;
|
|
56
|
-
readonly SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
|
|
57
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleCancel" | "handleConfirm")[], "handleCancel" | "handleConfirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
-
readonly modelTitle: {
|
|
59
|
-
readonly type: StringConstructor;
|
|
60
|
-
readonly default: "搜索弹窗";
|
|
61
|
-
};
|
|
62
|
-
readonly modalWidth: {
|
|
63
|
-
readonly type: NumberConstructor;
|
|
64
|
-
readonly default: 800;
|
|
65
|
-
};
|
|
66
|
-
readonly tableHeight: {
|
|
67
|
-
readonly type: NumberConstructor;
|
|
68
|
-
readonly default: 500;
|
|
69
|
-
};
|
|
70
|
-
readonly tableColumn: {
|
|
71
|
-
readonly type: ArrayConstructor;
|
|
72
|
-
readonly default: () => never[];
|
|
73
|
-
readonly required: true;
|
|
74
|
-
};
|
|
75
|
-
readonly tableData: {
|
|
76
|
-
readonly type: ArrayConstructor;
|
|
77
|
-
readonly default: () => never[];
|
|
78
|
-
};
|
|
79
|
-
readonly tableKey: {
|
|
80
|
-
readonly type: StringConstructor;
|
|
81
|
-
readonly default: "id";
|
|
82
|
-
};
|
|
83
|
-
readonly labelKey: {
|
|
84
|
-
readonly type: StringConstructor;
|
|
85
|
-
readonly default: "label";
|
|
86
|
-
};
|
|
87
|
-
}>> & Readonly<{
|
|
88
|
-
onHandleCancel?: ((...args: any[]) => any) | undefined;
|
|
89
|
-
onHandleConfirm?: ((...args: any[]) => any) | undefined;
|
|
90
|
-
}>, {
|
|
91
|
-
readonly labelKey: string;
|
|
92
|
-
readonly modelTitle: string;
|
|
93
|
-
readonly modalWidth: number;
|
|
94
|
-
readonly tableHeight: number;
|
|
95
|
-
readonly tableColumn: unknown[];
|
|
96
|
-
readonly tableData: unknown[];
|
|
97
|
-
readonly tableKey: string;
|
|
98
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
99
|
-
export default _sfc_main;
|
package/dist/components/business-comp/list-page-comp/hb_list_btns_act/src/HbListBtns.vue.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
readonly formItems: {
|
|
4
|
-
readonly type: PropType<import("../../hb_form_item_filter_modal").LocalShowList_intf[]>;
|
|
5
|
-
readonly default: () => never[];
|
|
6
|
-
};
|
|
7
|
-
readonly isShowSelfFilter: {
|
|
8
|
-
readonly type: BooleanConstructor;
|
|
9
|
-
readonly default: true;
|
|
10
|
-
};
|
|
11
|
-
readonly needReload: {
|
|
12
|
-
readonly type: BooleanConstructor;
|
|
13
|
-
readonly default: true;
|
|
14
|
-
};
|
|
15
|
-
readonly needOpenOrClose: {
|
|
16
|
-
readonly type: BooleanConstructor;
|
|
17
|
-
readonly default: true;
|
|
18
|
-
};
|
|
19
|
-
}>, {
|
|
20
|
-
props: any;
|
|
21
|
-
emits: (event: "handleOpenOrClose" | "handleReload", ...args: any[]) => void;
|
|
22
|
-
isFormExpanded: import("vue").Ref<boolean, boolean>;
|
|
23
|
-
handleOpenOrClose: () => void;
|
|
24
|
-
handleReload: () => void;
|
|
25
|
-
readonly UpCircleOutlined: import("@ant-design/icons-vue/lib/icons/UpCircleOutlined").UpCircleOutlinedIconType;
|
|
26
|
-
readonly DownCircleOutlined: import("@ant-design/icons-vue/lib/icons/DownCircleOutlined").DownCircleOutlinedIconType;
|
|
27
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleOpenOrClose" | "handleReload")[], "handleOpenOrClose" | "handleReload", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
readonly formItems: {
|
|
29
|
-
readonly type: PropType<import("../../hb_form_item_filter_modal").LocalShowList_intf[]>;
|
|
30
|
-
readonly default: () => never[];
|
|
31
|
-
};
|
|
32
|
-
readonly isShowSelfFilter: {
|
|
33
|
-
readonly type: BooleanConstructor;
|
|
34
|
-
readonly default: true;
|
|
35
|
-
};
|
|
36
|
-
readonly needReload: {
|
|
37
|
-
readonly type: BooleanConstructor;
|
|
38
|
-
readonly default: true;
|
|
39
|
-
};
|
|
40
|
-
readonly needOpenOrClose: {
|
|
41
|
-
readonly type: BooleanConstructor;
|
|
42
|
-
readonly default: true;
|
|
43
|
-
};
|
|
44
|
-
}>> & Readonly<{
|
|
45
|
-
onHandleOpenOrClose?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
onHandleReload?: ((...args: any[]) => any) | undefined;
|
|
47
|
-
}>, {
|
|
48
|
-
readonly formItems: import("../../hb_form_item_filter_modal").LocalShowList_intf[];
|
|
49
|
-
readonly isShowSelfFilter: boolean;
|
|
50
|
-
readonly needReload: boolean;
|
|
51
|
-
readonly needOpenOrClose: boolean;
|
|
52
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
|
-
export default _sfc_main;
|