@hb-hellotech/hb-ui 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/components/business-comp/list-page-comp/hb_form_item_filter_modal/index.d.ts +2 -1
  2. package/dist/components/business-comp/list-page-comp/hb_form_item_filter_modal/index.d.ts.map +1 -0
  3. 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
  4. package/dist/components/business-comp/list-page-comp/hb_form_item_filter_modal/src/type.d.ts.map +1 -0
  5. package/dist/components/business-comp/list-page-comp/hb_form_select_filter/index.d.ts +2 -1
  6. package/dist/components/business-comp/list-page-comp/hb_form_select_filter/index.d.ts.map +1 -0
  7. 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
  8. package/dist/components/business-comp/list-page-comp/hb_form_select_filter/src/type.d.ts.map +1 -0
  9. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/index.d.ts +2 -1
  10. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/index.d.ts.map +1 -0
  11. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +66 -53
  12. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts.map +1 -0
  13. 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
  14. package/dist/components/business-comp/list-page-comp/hb_form_select_modal/src/type.d.ts.map +1 -0
  15. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/index.d.ts +2 -0
  16. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/index.d.ts.map +1 -0
  17. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +43 -35
  18. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/src/HbListBtns.vue.d.ts.map +1 -0
  19. 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
  20. package/dist/components/business-comp/list-page-comp/hb_list_btns_act/src/type.d.ts.map +1 -0
  21. package/dist/components/business-comp/list-page-comp/hb_list_form/index.d.ts +2 -1
  22. package/dist/components/business-comp/list-page-comp/hb_list_form/index.d.ts.map +1 -0
  23. package/dist/components/{types/hb_list_form_type.d.ts → business-comp/list-page-comp/hb_list_form/src/type.d.ts} +13 -0
  24. package/dist/components/business-comp/list-page-comp/hb_list_form/src/type.d.ts.map +1 -0
  25. package/dist/components/business-comp/list-page-comp/hb_list_page_act/index.d.ts +2 -0
  26. package/dist/components/business-comp/list-page-comp/hb_list_page_act/index.d.ts.map +1 -0
  27. package/dist/components/business-comp/list-page-comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +34 -29
  28. package/dist/components/business-comp/list-page-comp/hb_list_page_act/src/HbListPageAct.vue.d.ts.map +1 -0
  29. 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
  30. package/dist/components/business-comp/list-page-comp/hb_list_page_act/src/type.d.ts.map +1 -0
  31. package/dist/components/business-comp/list-page-comp/hb_list_page_container/index.d.ts +2 -0
  32. package/dist/components/business-comp/list-page-comp/hb_list_page_container/index.d.ts.map +1 -0
  33. package/dist/components/business-comp/list-page-comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts +31 -22
  34. package/dist/components/business-comp/list-page-comp/hb_list_page_container/src/HbListPageContainer.vue.d.ts.map +1 -0
  35. 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
  36. package/dist/components/business-comp/list-page-comp/hb_list_page_container/src/type.d.ts.map +1 -0
  37. package/dist/components/business-comp/list-page-comp/hb_list_table/index.d.ts +2 -1
  38. package/dist/components/business-comp/list-page-comp/hb_list_table/index.d.ts.map +1 -0
  39. package/dist/components/{types/hb_list_table_type.d.ts → business-comp/list-page-comp/hb_list_table/src/type.d.ts} +8 -0
  40. package/dist/components/business-comp/list-page-comp/hb_list_table/src/type.d.ts.map +1 -0
  41. package/dist/components/business-comp/list-page-comp/hb_list_table_act/index.d.ts +2 -0
  42. package/dist/components/business-comp/list-page-comp/hb_list_table_act/index.d.ts.map +1 -0
  43. 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
  44. package/dist/components/business-comp/list-page-comp/hb_list_table_act/src/type.d.ts.map +1 -0
  45. package/dist/components/business-comp/list-page-comp/hb_list_table_colums_set/index.d.ts +2 -0
  46. package/dist/components/business-comp/list-page-comp/hb_list_table_colums_set/index.d.ts.map +1 -0
  47. 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
  48. package/dist/components/business-comp/list-page-comp/hb_list_table_colums_set/src/type.d.ts.map +1 -0
  49. package/dist/components/business-comp/list-page-comp/index.d.ts +1 -0
  50. package/dist/components/business-comp/list-page-comp/index.d.ts.map +1 -0
  51. package/dist/components/func-comp/hb_func_comp_copy/index.d.ts +1 -0
  52. package/dist/components/func-comp/hb_func_comp_copy/index.d.ts.map +1 -0
  53. package/dist/components/func-comp/hb_func_comp_copy/src/copy.vue.d.ts +1 -0
  54. package/dist/components/func-comp/hb_func_comp_copy/src/copy.vue.d.ts.map +1 -0
  55. package/dist/components/func-comp/hb_func_comp_copy/src/type.d.ts +1 -0
  56. package/dist/components/func-comp/hb_func_comp_copy/src/type.d.ts.map +1 -0
  57. package/dist/components/func-comp/hb_func_comp_tree/index.d.ts +1 -0
  58. package/dist/components/func-comp/hb_func_comp_tree/index.d.ts.map +1 -0
  59. package/dist/components/func-comp/hb_func_comp_tree/src/tree.d.ts +1 -0
  60. package/dist/components/func-comp/hb_func_comp_tree/src/tree.d.ts.map +1 -0
  61. package/dist/components/func-comp/hb_func_comp_tree/src/tree.vue.d.ts +1 -0
  62. package/dist/components/func-comp/hb_func_comp_tree/src/tree.vue.d.ts.map +1 -0
  63. package/dist/components/func-comp/hb_func_comp_tree/src/treeNode.vue.d.ts +1 -0
  64. package/dist/components/func-comp/hb_func_comp_tree/src/treeNode.vue.d.ts.map +1 -0
  65. package/dist/components/func-comp/index.d.ts +1 -0
  66. package/dist/components/func-comp/index.d.ts.map +1 -0
  67. package/dist/components/hooks/useCalTableHeight.d.ts +1 -0
  68. package/dist/components/hooks/useCalTableHeight.d.ts.map +1 -0
  69. package/dist/components/hooks/useCalTableWidth.d.ts +1 -0
  70. package/dist/components/hooks/useCalTableWidth.d.ts.map +1 -0
  71. package/dist/components/utils/createBem.d.ts +1 -0
  72. package/dist/components/utils/createBem.d.ts.map +1 -0
  73. package/dist/components/utils/withInstall.d.ts +1 -0
  74. package/dist/components/utils/withInstall.d.ts.map +1 -0
  75. package/dist/hb_component_lib.css +1 -1
  76. package/dist/hb_component_lib.js +983 -1018
  77. package/dist/hb_component_lib.umd.cjs +1 -1
  78. package/dist/index.d.ts +6 -2
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/shims-vue.d.ts +5 -0
  81. package/package.json +1 -1
  82. 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(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,u,le,Y,Q,ae,Z){"use strict";const G=(t="")=>{const s=`hb-${t}`;return ce(s)},j=(t,s,c,r)=>(s&&(t+=`-${s}`),c&&(t+=`__${c}`),r&&(t+=`--${r}`),t),ce=t=>({b:s=>s?j(t,s,"",""):j(t,"","",""),e:s=>s?j(t,"",s,""):"",m:s=>j(t,"","",s),be:(s,c)=>j(t,s,c,""),em:(s,c)=>j(t,"",s,c),bem:(s,c,r)=>j(t,s,c,r),is:(s,c)=>c?`is-${s}`:""}),de=["onMouseenter","onMouseleave"],me=["onClick"],pe=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{default:"自定义查询条件"},showNumber:{default:40}},emits:["confirm"],setup(t,{expose:s,emit:c}){const r=Y.useI18n().t,k=Y.useI18n().messages.value.en_US,h=Y.useI18n().messages.value.ja_JP,p=Y.useI18n().messages.value.zh_CN,d=t,a=c,n=G("sfcm"),g=le.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),_=e.ref(!1),T=e.ref(600);let y=[];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,f=C.relatedContext.index;if(F.isLinked||F.isFixed)return!1;const H=S.value.map((P,K)=>({item:P,index:K})).filter(({item:P})=>P.isLinked).map(({index:P})=>P);if(H.length===0)return!0;for(let P=0;P<H.length-1;P++){const K=H[P],W=H[P+1];if(f>K&&f<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 f=g?.path;return`searchFormConfig_${F}_${f}`},L=C=>({ja_JP:()=>Q.get(h,C.labelLanguage||""),en_US:()=>Q.get(k,C.labelLanguage||""),zh_CN:()=>Q.get(p,C.labelLanguage||"")})[B.lan]?.()||C.label,o=()=>{try{const C=w(),F=localStorage.getItem(C);if(F){const f=JSON.parse(F);if(f.originalList&&Array.isArray(f.originalList)){y=JSON.parse(JSON.stringify(f.originalList));const H=y.filter(x=>x?.isFixed),P=y.filter(x=>x?.isLinked),K=f.showList.filter(x=>!x.isFixed&&!x.isLinked),W=d.showNumber&&d.showNumber>0?Math.max(0,d.showNumber-H.length-P.length):K.length,v=H.map(x=>({...x,label:L(x)||`${x.subLabel||""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:x?.isLinked||!1,labelLanguage:x?.labelLanguage||void 0})),ee=P.map(x=>({...x,label:L(x)||`${x.subLabel||""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:!0,labelLanguage:x?.labelLanguage||void 0})),te=K.slice(0,W).map(x=>({...x,label:L(x)||`${x.subLabel||""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:x?.isLinked||!1,labelLanguage:x?.labelLanguage||void 0}));S.value=[...v,...ee,...te];const N=S.value.map(x=>x.key),It=y.map(x=>x.key).filter(x=>!N.includes(x));return M.value=y.filter(x=>It.includes(x.key)).map(x=>({...x,label:L(x)||`${x.subLabel||""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:x?.isLinked||!1,active:!1,labelLanguage:x?.labelLanguage||void 0})),!0}}}catch(C){console.warn("加载保存的搜索配置失败:",C)}return!1},l=()=>{try{const C={originalList:y,showList:S.value.map(f=>({...f,key:f.key,label:f.label,isFixed:f.isFixed,isLinked:f.isLinked,labelLanguage:f?.labelLanguage||void 0}))},F=w();localStorage.setItem(F,JSON.stringify(C))}catch(C){console.warn("保存搜索配置失败:",C)}},m=e.computed(()=>{const C=S.value.filter(f=>!f.isFixed&&!f.isLinked).length,F=S.value.filter(f=>f.isFixed||f.isLinked).length;return C>=d.showNumber-F});e.watch(()=>d.list,C=>{if(!o()&&y.length===0){y=JSON.parse(JSON.stringify(C));const f=C.filter(N=>N?.isFixed),H=C.filter(N=>N?.isLinked),P=C.filter(N=>!N?.isFixed&&!N?.isLinked),K=d.showNumber&&d.showNumber>0?Math.max(0,d.showNumber-f.length-H.length):P.length,W=f.map(N=>({...N,label:L(N)||`${N.subLabel||""}${r("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:L(N)||`${N.subLabel||""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:!0,labelLanguage:N?.labelLanguage||void 0})),ee=P.slice(0,K).map(N=>({...N,label:L(N)||`${N.subLabel||""}${r("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=P.slice(K).map(N=>({...N,label:L(N)||`${N.subLabel||""}${r("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 b=C=>{const F=S.value.findIndex(f=>f.key===C.key);F!==-1&&(S.value.splice(F,1),M.value.push({...C,active:!1}))},i=C=>{if(m.value)return;const F=M.value.findIndex(f=>f.key===C.key);if(F!==-1){const[f]=M.value.splice(F,1);S.value.push({...f,active:!1})}},I=()=>{_.value=!1},$=()=>{_.value=!0},O=()=>{l(),a("confirm",S.value),I()},z=C=>{const F=M.value.findIndex(f=>f.key===C.key);F!==-1&&(M.value[F].active=!0)},A=C=>{const F=M.value.findIndex(f=>f.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(n).b())},[e.createVNode(e.unref(u.Modal),{visible:_.value,"onUpdate:visible":F[1]||(F[1]=f=>_.value=f),width:T.value,onCancel:I,onOk:O},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).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:O},{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(n).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).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(n).e("show__tag"))},[e.createVNode(e.unref(oe),{modelValue:S.value,"onUpdate:modelValue":F[0]||(F[0]=f=>S.value=f),"item-key":"key",tag:"div",disabled:V.value,move:E},{item:e.withCtx(({element:f})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(n).e("show__tag__item"),e.unref(n).is("fixed",f.isFixed),e.unref(n).is("linked",f.isLinked)])},[e.createTextVNode(e.toDisplayString(f.label)+" ",1),!f.isFixed&&!f.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(U.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(n).e("show__tag__item-close")),onClick:H=>b(f)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(n).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("title__tip"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("unshow__tag"))},[M.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(M.value,f=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n).e("unshow__tag__item"),e.unref(n).is("fixed",f.isFixed||""),e.unref(n).is("linked",f.isLinked||"")]),key:f.key,onMouseenter:H=>z(f),onMouseleave:H=>A(f)},[e.createTextVNode(e.toDisplayString(f.label)+" ",1),f.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(n).e("unshow__tag__item-add")),onClick:H=>i(f)},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.add")),11,me)):e.createCommentVNode("",!0)],42,de))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(n).e("unshow__tag__empty"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),q=(t,s)=>{const c=t.__vccOpts||t;for(const[r,k]of s)c[r]=k;return c},he=q(pe,[["__scopeId","data-v-37126124"]]),R=(t,s)=>(t.install=c=>{for(const r of[t,...Object.values({})])c.component(r.name,r)},t),fe={list:{type:Array,default:()=>[],required:!0},afterChange:{type:Function,default:()=>{}},title:{type:String,default:"自定义查询条件"},showNumber:{type:Number,default:40}},ne=R(he),be={class:"form-footer"},Ce=R(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:s,emit:c}){const r=c,k=e.inject("HB_LIST_PAGE_CONTAINER"),h=G("form"),p=t,d=e.ref("show"),a=e.computed(()=>(console.log(p.items),[...p.items])),n=e.ref(),g=()=>{r("handleSearch")},B=()=>{r("handleReset")},_=e.ref(),T=()=>{_.value&&_.value.toOpenModal()},y=L=>{r("handleSfcmConfirm",L)},S=()=>{d.value=d.value==="show"?"hide":"show"};e.watch(()=>p.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(()=>{k.calTableHeight&&k.calTableHeight()})},E=L=>{const o=L,l=o.querySelector(".hb-lib-form--container");if(l){const m=l.offsetHeight;o.style.height=m+"px",o.style.overflow="hidden",o.offsetHeight,requestAnimationFrame(()=>{o.style.height="0"})}},w=()=>{e.nextTick(()=>{k.calTableHeight&&k.calTableHeight()})};return s({formRef:n,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 l=e.resolveComponent("a-button"),m=e.resolveComponent("a-tooltip"),b=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(h).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:n,class:["hb-lib-form--container",d.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(i,I)=>(e.openBlock(),e.createBlock(e.unref(u.FormItem),e.mergeProps({key:I,ref_for:!0},i,{name:i.key,class:i.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[i.type==="slot"?e.renderSlot(L.$slots,i.key,{key:0,formData:t.formData,item:i},void 0,!0):e.createCommentVNode("",!0),i.type==="mixin"?e.renderSlot(L.$slots,i.key,{key:1,formData:t.formData,item:i},void 0,!0):e.createCommentVNode("",!0),i.type==="input"?(e.openBlock(),e.createBlock(e.unref(u.Input),e.mergeProps({key:2,value:t.formData[i.key],"onUpdate:value":$=>t.formData[i.key]=$},{ref_for:!0},i.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),i.type==="select"?(e.openBlock(),e.createBlock(e.unref(u.Select),e.mergeProps({key:3,value:t.formData[i.key],"onUpdate:value":$=>t.formData[i.key]=$},{ref_for:!0},i.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,($,O)=>(e.openBlock(),e.createBlock(e.unref(u.SelectOption),{key:O,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),i.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(u.CheckboxGroup),e.mergeProps({key:4,value:t.formData[i.key],"onUpdate:value":$=>t.formData[i.key]=$},{ref_for:!0},i.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,($,O)=>(e.openBlock(),e.createBlock(e.unref(u.Checkbox),{key:O,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),i.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(u.DatePicker),e.mergeProps({key:5,value:t.formData[i.key],"onUpdate:value":$=>t.formData[i.key]=$},{ref_for:!0},i.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),i.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(u.InputNumber),e.mergeProps({key:6,value:t.formData[i.key],"onUpdate:value":$=>t.formData[i.key]=$},{ref_for:!0},i.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),i.type==="radio"?(e.openBlock(),e.createBlock(e.unref(u.RadioGroup),e.mergeProps({key:7,value:t.formData[i.key],"onUpdate:value":$=>t.formData[i.key]=$},{ref_for:!0},i.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.options,($,O)=>(e.openBlock(),e.createBlock(e.unref(u.Radio),{key:O,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),i.type==="switch"?(e.openBlock(),e.createBlock(e.unref(u.Switch),e.mergeProps({key:8,checked:t.formData[i.key],"onUpdate:checked":$=>t.formData[i.key]=$},{ref_for:!0},i.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[i.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label)+" ",1),e.createVNode(e.unref(u.Tooltip),{title:i.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",be,[e.createVNode(l,{type:"primary",onClick:g,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(l,{type:"link",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(m,{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(h).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).e("footer__left"))},[e.renderSlot(L.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).e("footer__right"))},[d.value=="show"?e.renderSlot(L.$slots,"form-footer-right",{key:0,formRef:n.value},()=>[e.createVNode(e.unref(u.Button),{type:"primary",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(u.Button),{type:"primary",onClick:g},{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:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.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(b,{list:t.items,ref_key:"HbSfCmRef",ref:_,onConfirm:y},null,8,["list"])],64)}}}),[["__scopeId","data-v-cc28b022"]])),ge={class:"hb-lib-list-page-act-box"},ue={class:"hb-lib-list-page-breadcrumb"},ye={class:"hb-lib-list-page-act"},ke={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"},Le={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"},Se=R(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:s}){const c=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:r,toggle:k}=ae.useFullscreen(c.PageContainerRef),h=e.ref(""),p=()=>{const d=le.useRoute();let a=localStorage.getItem("BreadCrumb")||"[]",n=d?.path;if(a!=="[]"){let g=JSON.parse(a).find(B=>B.value===n);g&&(h.value=g.label.replace(/-/g," / "))}};return e.onMounted(()=>{p()}),(d,a)=>{const n=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ge,[e.createElementVNode("aside",ue,e.toDisplayString(h.value),1),e.createElementVNode("aside",ye,[e.createVNode(n,{title:e.unref(r)?`${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:a[0]||(a[0]=(...g)=>e.unref(k)&&e.unref(k)(...g))},[e.unref(r)?(e.openBlock(),e.createElementBlock("svg",Le,[...a[2]||(a[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",ke,[...a[1]||(a[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-8decdc56"]])),xe={class:"hb-lib-list-btns-box"},we={class:"hb-lib-list-btns-left"},_e={class:"hb-lib-list-btns-right"},Ne=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:s}){const c=s,r=e.ref(!0),k=()=>{r.value=!r.value,c("handleOpenOrClose",r.value)},h=()=>{c("handleReload")};return e.onMounted(()=>{}),(p,d)=>{const a=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",xe,[e.createElementVNode("aside",we,[e.renderSlot(p.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",_e,[t.needReload?(e.openBlock(),e.createBlock(a,{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:h},[...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),t.needOpenOrClose?(e.openBlock(),e.createBlock(a,{key:1,title:r.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:k},[r.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-53427847"]]),Be={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},Fe=R(Ne),Te=(t={})=>{const{formRef:s,offsetBottom:c=50,minHeight:r=300}=t,k=e.ref(0);let h=null,p=null,d=null,a=null,n=null;const g=()=>{n&&clearTimeout(n),n=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const V=document.querySelector(".ant-table"),E=document.querySelector(".ant-pagination");if(V){const w=V.getBoundingClientRect().top,L=window.innerHeight,l=(E?E.offsetHeight+20:40)+c;let m=L-w-l;m<r&&(m=r),k.value=m}})})},100)},B=()=>{const V=document.querySelector(".ant-pagination");if(V){const E=new MutationObserver(()=>{g()});return E.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),E}return null},_=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(h=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(w=>{w.style.display="none"}),g()}),h.observe(V))},T=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(d=new MutationObserver(()=>{setTimeout(()=>{g()},100)}),d.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},y=()=>{a&&clearTimeout(a),a=setTimeout(()=>{g()},100)},S=()=>{window.addEventListener("resize",y),e.nextTick(()=>{_(),T(),p=B()})},M=()=>{window.removeEventListener("resize",y),h&&h.disconnect(),d&&d.disconnect(),p&&p.disconnect(),a&&clearTimeout(a),n&&clearTimeout(n)};return s&&e.watch(()=>s,()=>{setTimeout(()=>{g()},200)},{deep:!0}),e.onMounted(()=>{g(),S()}),e.onUnmounted(()=>{M()}),{tableHeight:k,calTableHeight:g}},$e=e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{default:400},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{}},setup(t){const s=t,c=e.useTemplateRef("PageContainerRef"),{calTableHeight:r,tableHeight:k}=Te({offsetBottom:s.offsetBottom||20,minHeight:s.minHeight||300}),h=e.computed(()=>k.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:c,tableHeight:k,calTableHeight:r}),(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":h.value-20+"px","--hb-list-ttable-height":t.tabelData.length?"":h.value-20+"px"})},[e.renderSlot(p.$slots,"default")],4)],512))}}),Ve={tableHeight:{type:Number,default:400},tabelData:{type:Array,default:()=>[]},offsetBottom:{type:Number},minHeight:{type:Number}},Ee=R($e),Me={style:{"font-weight":"500"}},Ie={key:0,class:"hb-lib-search-tag__description"},He={class:"hb-lib-selector-dropdown"},Ae={class:"hb-lib-selector-search"},De={class:"hb-lib-selector-list"},ze=["onClick"],Pe={class:"hb-lib-option-content"},Oe={class:"hb-lib-option-label"},Re={key:0,class:"hb-lib-selector-empty"},Ue={key:1,class:"hb-lib-selector-footer"},qe={class:"hb-lib-footer-buttons"},Ke={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(t,{emit:s}){const c=t,r=s,k=e.useModel(t,"value"),h=e.ref(!1),p=e.ref(""),d=e.ref([]),a=e.ref(),n=e.computed(()=>{if(c.remoteSearch||!p.value)return c.options;const o=p.value.toLowerCase();return c.options.filter(l=>l.label.toLowerCase().includes(o)||l.description?.toLowerCase().includes(o))}),g=e.computed(()=>c.prefix?`${c.prefix.length*14+8}px`:"0px"),B=e.computed(()=>n.value.length===0?!1:n.value.every(o=>d.value.includes(o.value))),_=e.computed(()=>{if(n.value.length===0)return!1;const o=n.value.filter(l=>d.value.includes(l.value)).length;return o>0&&o<n.value.length});e.watch(()=>k.value,o=>{o?d.value=Array.isArray(o)?[...o]:[o]:d.value=[]},{immediate:!0}),e.watch(()=>c.searchValue,o=>{c.remoteSearch&&o!==void 0&&(p.value=o)},{immediate:!0});const T=o=>{o&&(h.value=o,y.value=[...d.value],p.value="",setTimeout(()=>{if(a.value){const l=a.value.input||a.value.$el?.querySelector("input");l&&l.focus()}},100))},y=e.ref([]),S=()=>{d.value=[...y.value],h.value=!1,r("cancel")},M=e.ref([]),V=()=>{const o=c.multiple?d.value:d.value[0]||"",l=c.options.filter(m=>d.value.includes(m.value));M.value=l,console.log(o,l),y.value=[...d.value],k.value=o,r("update:value",o),r("change",o,l),r("confirm",o,l),h.value=!1},E=ae.useDebounceFn(o=>{const l=o!==void 0?o:p.value;c.remoteSearch&&(r("search",l),r("update:searchValue",l))},300),w=o=>{if(c.multiple){const l=new Set(d.value);l.has(o.value)?l.delete(o.value):l.add(o.value),d.value=Array.from(l)}else d.value=[o.value],V()},L=o=>{if(o.target.checked){const m=new Set(d.value);n.value.forEach(b=>{m.add(b.value)}),d.value=Array.from(m)}else{const m=new Set(n.value.map(b=>b.value));d.value=d.value.filter(b=>!m.has(b))}};return(o,l)=>{const m=e.resolveComponent("a-tag"),b=e.resolveComponent("a-input"),i=e.resolveComponent("a-checkbox"),I=e.resolveComponent("a-radio"),$=e.resolveComponent("a-button"),O=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":g.value}},o.$attrs),[e.createVNode(O,{value:k.value,"onUpdate:value":l[5]||(l[5]=z=>k.value=z),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:h.value,allowClear:"",maxTagCount:t.maxTagCount,options:n.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:z,label:A,closable:C,option:F})=>[e.createVNode(m,{class:"hb-lib-search-tag",onClick:l[0]||(l[0]=()=>T(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Me,e.toDisplayString(A),1),F?.description?(e.openBlock(),e.createElementBlock("span",Ie," ("+e.toDisplayString(F.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:z})=>[e.createElementVNode("div",He,[e.createElementVNode("div",Ae,[e.createVNode(b,{ref_key:"searchInputRef",ref:a,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",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.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)},[t.multiple?(e.openBlock(),e.createBlock(i,{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",Oe,e.toDisplayString(A.label),1)])],10,ze))),128))]),n.value.length===0?(e.openBlock(),e.createElementBlock("div",Re,e.toDisplayString(o.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(i,{checked:B.value,indeterminate:_.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",qe,[e.createVNode($,{size:"small",onClick:S},{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",Ke,[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(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-b362db65"]]);X.install=function(t){return t.component("HbFormSelectFilter",X),t};const je={class:"hb-lib-form-item-filter-modal-search"},We={class:"hb-lib-form-item-filter-modal-buttons"},Ge={key:0},Je=R(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:s,emit:c}){const r=t,k=c,h=e.ref(!1),p=e.ref(""),d=e.ref(),a=e.ref(),n=e.ref([]),g=e.ref([]),B=e.ref(),_=e.reactive({searchText:"",searchedColumn:""}),T=e.computed(()=>r.tableData.map(m=>(m.id=m.id||Math.random(),m))),y=e.computed(()=>r.tableColumn.map(m=>(m.customFilterDropdown&&(m.onFilter=(b,i)=>i[m.dataIndex].toString().toLowerCase().includes(b.toLowerCase()),m.onFilterDropdownVisibleChange=b=>{b&&setTimeout(()=>{d.value?.focus()},100)}),{...m}))),S=()=>{let m="";g.value.forEach(b=>{m=m+b[r.labelKey]+","}),p.value=m.substring(0,m.length-1),h.value=!1,k("handleConfirm",g.value)},M=()=>{h.value=!1},V=()=>{h.value=!0,e.nextTick(()=>{const m=B.value?.$el?.querySelector(".ant-table-body");m&&(m.scrollTop=0)})},E=()=>{n.value=[],g.value=[]},w=()=>{p.value="",E()},L=(m,b,i)=>{b(),_.searchText=m[0],_.searchedColumn=i},o=(m,b)=>{m({confirm:!0}),_.searchText="",b()},l=(m,b)=>{n.value=m,g.value=b};return s({resetInputVal:w}),(m,b)=>{const i=e.resolveComponent("a-input"),I=e.resolveComponent("a-button"),$=e.resolveComponent("a-table"),O=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:a},[e.createVNode(i,{readonly:"",onClick:V,value:p.value,"onUpdate:value":b[0]||(b[0]=z=>p.value=z),placeholder:m.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(U.UnorderedListOutlined),{onClick:V})]),_:1},8,["value","placeholder"]),e.createVNode(O,{visible:h.value,"onUpdate:visible":b[1]||(b[1]=z=>h.value=z),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(m.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(I,{onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode($,{ref_key:"tableRef",ref:B,columns:y.value,dataSource:T.value,rowSelection:{selectedRowKeys:n.value,onChange:l},rowKey:z=>z[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:z,selectedKeys:A,confirm:C,clearFilters:F,column:f})=>[e.createElementVNode("div",je,[e.createVNode(i,{ref_key:"searchInput",ref:d,placeholder:`请输入${f.title}`,value:A[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:H=>z(H.target.value?[H.target.value]:[]),onPressEnter:H=>L(A,C,f.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",We,[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(m.$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(A,C,f.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$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})=>[_.searchText&&_.searchedColumn===A.dataIndex?(e.openBlock(),e.createElementBlock("span",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.toString().split(new RegExp(`(?<=${_.searchText})|(?=${_.searchText})`,"i")),(C,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[C.toLowerCase()===_.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)}}})),Qe={class:"hb-lib-table-act-box"},Ze=["onClick"],Xe={href:"javascript:;",class:"hb-lib-table-main-action"},ve=["onClick"],et={href:"javascript:;",class:"hb-lib-table-more-action"},tt=["onClick"],ot={href:"javascript:;"},lt=["onClick"],at={class:"hb-lib-table-confirm-modal-content"},nt=R(q(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:s}){const c=t,{t:r}=Y.useI18n(),k=e.ref(!1),h=e.ref(!1),p=e.ref(null),d=e.computed(()=>c.actions.filter(S=>S.condition!==void 0?S.condition:!0)),a=e.computed(()=>d.value.slice(0,c.buttonDisplaysQuantity)),n=e.computed(()=>d.value.slice(c.buttonDisplaysQuantity)),g=S=>{S.handler&&S.handler(c.record)},B=S=>{p.value=S,k.value=!0},_=()=>{if(p.value){h.value=!0;try{g(p.value),h.value=!1,k.value=!1}catch{h.value=!1}}},T=()=>{k.value=!1,p.value=null},y=e.computed(()=>p.value?{title:p.value.confirmTitle,content:p.value.confirmContent||p.value.confirmTitle}:{title:r("hbLibComp.hbTableAct.secendConfirm"),content:r("hbLibComp.hbTableAct.confirmContent")});return s({ADropdown:u.Dropdown,AMenu:u.Menu,AMenuItem:u.MenuItem,APopconfirm:u.Popconfirm,AModal:u.Modal,DownOutlined:U.DownOutlined}),(S,M)=>{const V=e.resolveComponent("a-divider"),E=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(w,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:L},[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:o=>B(w),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(w.label),1)],8,Ze)),[[E,w.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(u.Popconfirm),{key:1,title:w.confirmTitle,onConfirm:o=>g(w)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Xe,[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:o=>g(w),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(w.label),1)],8,ve)),[[E,w.permissionsTag||null]]),n.value&&n.value.length>0||L!==a.value.length-1?(e.openBlock(),e.createBlock(V,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),n.value&&n.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(n.value,w=>(e.openBlock(),e.createBlock(e.unref(u.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:L=>B(w)},[e.createTextVNode(e.toDisplayString(w.label),1)],8,tt)),[[E,w.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(u.Popconfirm),{key:1,title:w.confirmTitle,onConfirm:L=>g(w)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",ot,[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:L=>g(w)},[e.createTextVNode(e.toDisplayString(w.label),1)],8,lt)),[[E,w.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",et,[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(u.Modal),{visible:k.value,title:y.value.title,"confirm-loading":h.value,onOk:_,onCancel:T},{default:e.withCtx(()=>[e.createElementVNode("p",at,e.toDisplayString(y.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-e79addff"]])),rt=t=>({tableWidth:e.computed(()=>{const c=Array.isArray(t)?t:t.value;return!c||c.length===0?0:c.map(r=>r.width&&Number(r.width.toString().replace("px",""))||0).reduce((r,k)=>r+k,0)})}),it={key:0,class:"hb-lib-list-table-act"},st={class:"empty-container"},ct=q(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},childColumns:{},rowHeight:{},defaultWidth:{default:()=>150}},setup(t){const{t:s}=Y.useI18n(),c=t,r=e.ref([]),k=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:h}=rt(e.computed(()=>c.columns));e.watch(()=>c.columns,a=>{const n=a.filter(g=>g!=null&&g.checked);r.value=n.map(g=>{let B={...g,title:g.title||g.label};if(!B.width)B.width=c.defaultWidth;else if(typeof B.width=="string"){const _=parseInt(B.width,10);B.width=isNaN(_)?c.defaultWidth:_}return B.resizable===void 0&&(B.resizable=!0),B})},{immediate:!0,deep:!0});const p=(a,n)=>{if(n){const g=typeof a=="string"?parseInt(a,10):a;n.width=isNaN(g)?150:g}},d=(a,n="YYYY-MM-DD HH:mm:ss")=>a?Z(a).format(n):"";return(a,n)=>{const g=e.resolveComponent("a-empty"),B=e.resolveComponent("a-tooltip"),_=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":t.rowHeight&&t.rowHeight+"px"||""})},[a.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",it,[e.renderSlot(a.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(a.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(T,e.mergeProps(a.$attrs,{columns:r.value,onResizeColumn:p,scroll:{x:e.unref(h),y:e.unref(k).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",st,[e.createVNode(g,{description:e.unref(s)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[a.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:y})=>[e.renderSlot(a.$slots,"headerCell",{column:y},()=>[e.createTextVNode(e.toDisplayString(y.title),1)],!0)]),key:"0"}:void 0,a.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:y,record:S,index:M})=>[e.renderSlot(a.$slots,"bodyCell",{column:y,record:S,index:M},void 0,!0),y&&y.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[y.needTooltip?(e.openBlock(),e.createBlock(B,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S[y.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(S[y.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),y&&y.needCopy?(e.openBlock(),e.createBlock(_,{key:1,"cp-text":S[y.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),y&&y.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(d(S[y.dataIndex],y.format)),1)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,a.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:y})=>[e.renderSlot(a.$slots,"expandedRowRender",{column:t.childColumns,record:y},void 0,!0)]),key:"2"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-902c66e0"]]),dt={columns:{type:Array,default:()=>[],required:!0},childColumns:{type:Array,default:()=>[]},rowHeight:{type:Number},defaultWidth:{type:[String,Number],default:150}},mt=R(ct),pt={class:"hb-lib-table-setting-box"},ht={key:0,class:"hb-lib-table-drag-item"},ft={key:0,class:"hb-lib-table-drag-item-act"},bt=["onClick"],Ct=["onClick"],gt={class:"hb-lib-table-set-btn-group"},ut={class:"select-all-container",style:{"margin-right":"10px"}},yt=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(t,{emit:s}){const c=s,{t:r}=Y.useI18n(),k=t,h=e.ref([]),p=e.computed(()=>a.value.filter(o=>o.checked));e.ref([]);const d=e.ref(!1),a=e.ref([]),n=e.ref(null),g=e.computed(()=>p.value.length>0&&p.value.length===h.value.length),B=e.computed(()=>p.value.length>0&&p.value.length<h.value.length),_=o=>{n.value=o.oldIndex},T=o=>{const l=o.newIndex;if(h.value.some(b=>b.fixed==="left"||b.fixed==="right"||b.fixed===!0)){const b=h.value.filter(I=>I.fixed==="left").length,i=h.value.length-h.value.filter(I=>I.fixed==="right").length;if((b>0&&l<b||i<h.value.length&&l>=i)&&(u.message.warning(r("hbLibComp.hbLibListTableColumsSet.errorTip")),n.value!==null)){const I=a.value.splice(l,1)[0];a.value.splice(n.value,0,I)}}n.value=null},y=o=>{o.target.checked?a.value.forEach(m=>m.checked=!0):a.value.forEach(m=>m.checked=!1)},S=(o,l)=>{l?o.checked=!0:o.checked=!1},M=()=>{h.value=[...a.value],c("on-get-columns",h.value),d.value=!1},V=()=>{h.value=k.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})),a.value=[...h.value];let o=[];k.tableColumns.forEach(function(l){o.push(l.dataIndex)})},E=o=>o.children[0].text,w=o=>{delete o.fixed;const l=a.value.findIndex(m=>m.value===o.value);if(l!==-1){let m=-1;for(let b=0;b<a.value.length;b++)a.value[b].fixed==="left"&&(m=b);if(m!==-1&&l!==m+1){const b=[...a.value],[i]=b.splice(l,1);b.splice(m+1,0,i),a.value=b}}},L=o=>{const l=a.value.findIndex(m=>m.value===o.value);if(l!==-1){let m=-1;for(let b=0;b<a.value.length;b++)a.value[b].fixed==="left"&&(m=b);if(m!==-1&&l!==m+1){const b=[...a.value],i=b.splice(l,1);i[0].fixed="left",b.splice(m+1,0,i[0]),a.value=b}}};return V(),(o,l)=>{const m=e.resolveComponent("a-tooltip"),b=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(u.Popover),{title:e.unref(r)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"alertInfoContent",visible:d.value,"onUpdate:visible":l[1]||(l[1]=i=>d.value=i)},{content:e.withCtx(()=>[e.createVNode(e.unref(oe),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:_,onEnd:T},{item:e.withCtx(({element:i})=>[i.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(e.unref(u.Checkbox),{checked:i.checked,onChange:I=>S(i,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["checked","onChange"]),i.checked?(e.openBlock(),e.createElementBlock("section",ft,[e.createElementVNode("span",{class:e.normalizeClass(i.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),i.fixed?(e.openBlock(),e.createBlock(m,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>w(i)},[...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,bt)]),_:2},1024)):e.createCommentVNode("",!0),i.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>L(i)},[...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,Ct)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",gt,[e.createElementVNode("div",ut,[e.createVNode(e.unref(u.Checkbox),{checked:g.value,indeterminate:B.value,onChange:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(b,{onClick:M,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(m,{title:e.unref(r)("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-32cf2804"]])),kt={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:kt,setup(t){const s=t,c=e.ref();e.watchEffect(()=>{c.value=s.data});const r=e.computed(()=>{if(s.cpText)return s.cpText;let h="";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);h=p?p[s.L]:""}}else s.K&&(h=s.data[s.K]);return h}),k=()=>{navigator.clipboard.writeText(r.value).then(()=>{u.message.success(s.copySuccessTip)}).catch(()=>{u.message.error("复制失败")})};return(h,p)=>{const d=e.resolveComponent("a-tooltip");return r.value?(e.openBlock(),e.createBlock(d,{key:0,title:h.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",h.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...h.cpStyle}),onClick:e.withModifiers(k,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-69b8d557"]])),Lt=Object.freeze(Object.defineProperty({__proto__:null,HbLibCopy:re,HbLibFormItemFilterModal:ne,HbLibListBtnsAct:Fe,HbLibListForm:Ce,HbLibListMultiSelect:X,HbLibListPageAct:Se,HbLibListPageContainer:Ee,HbLibListTable:mt,HbLibMutilpleSelectModal:Je,HbLibTableAct:nt,HbLibTableColumnSet:yt},Symbol.toStringTag,{value:"Module"})),St={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}},xt=e.defineComponent({__name:"treeNode",props:{item:{type:Object,default(){return{}}},expandedKeys:{type:Object}},emits:["toggleExpand"],setup(t,{emit:s}){const c=t,r=s,k=G("treeNode"),h=e.computed(()=>c.expandedKeys.has(c.item.key)),p=()=>{r("toggleExpand",c.item.key)};return(d,a)=>(e.openBlock(),e.createElementBlock("div",{class:"tree-node-container",style:e.normalizeStyle({paddingLeft:`${t.item.level*20}px`}),onClick:a[0]||(a[0]=n=>p())},[e.createElementVNode("span",{class:e.normalizeClass(["tree-node-icon",[h.value&&"tree-node-icon-open",e.unref(k).is("leaf",t.item.isLeaf)]])},"➡",2),e.createTextVNode(e.toDisplayString(t.item.label),1)],4))}}),wt=R(e.defineComponent({name:"HbTree",__name:"tree",props:St,setup(t){const s=t,c=G("tree"),r=e.ref([]),k=e.ref(new Set(s.defaultExpandKeys)),h=n=>{const g=(B,_=null)=>B.map(T=>{const y=T[s.childrenKey],S={...T,originData:T,label:T[s.labelKey]||"",key:T[s.keyKey]||"",children:[],isLeaf:T.isLeaf??y.length===0,level:_?_.level+1:0,parentKey:_?_.key:null};return y.length>0&&(S.children=g(y,S)),S});return g(n)};e.watch(()=>s.data,n=>{r.value=h(n)},{deep:!0,immediate:!0});const p=e.computed(()=>{const n=r.value,g=k.value,B=[],_=[];for(let T=n.length-1;T>=0;T--)_.push(n[T]);for(;_.length>0;){const T=_.pop();if(B.push(T),g.has(T.key))for(let y=T.children.length-1;y>=0;y--)_.push(T.children[y])}return B}),d=n=>{k.value.has(n)?k.value.delete(n):k.value.add(n)},a=()=>{};return(n,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).b()]),onClick:g[0]||(g[0]=B=>a())},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,B=>(e.openBlock(),e.createBlock(xt,{key:B.key,item:B,expandedKeys:k.value,onToggleExpand:d},null,8,["item","expandedKeys"]))),128))],2))}})),_t=Object.freeze(Object.defineProperty({__proto__:null,default:{HbFuncCompCopy:re,HbFuncCompTree:wt}},Symbol.toStringTag,{value:"Module"})),Nt={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"}}},Bt={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回目の確認"}}},Ft={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:"操作内容"}}},Tt={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 J={exports:{}},$t=J.exports,ie;function Vt(){return ie||(ie=1,(function(t,s){(function(c,r){t.exports=r(Z)})($t,(function(c){function r(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var k=r(c),h={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 a=100*p+d;return a<600?"凌晨":a<900?"早上":a<1100?"上午":a<1300?"中午":a<1800?"下午":"晚上"}};return k.default.locale(h,null,!0),h}))})(J)),J.exports}Vt();let se={...Lt,..._t};Z.locale("zh-cn");const Et={en_US:Nt,ja_JP:Bt,zh_CN:Ft,de_DE:Tt},Mt=function(t){Object.keys(se).forEach(c=>{t.use(se[c])})};D.HbLibFormItemFilterModal=ne,D.HbListBtnsProps=Be,D.HbSfCmProps=fe,D.HbTableProps=dt,D.ListPageContainerProps=Ve,D.install=Mt,D.locales=Et,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
- import type { HbFormItemFilterModalInstance } from './components/business-comp/list-page-comp/hb_form_item_filter_modal';
2
- export type { HbFormItemFilterModalInstance };
1
+ export * from './components/business-comp/list-page-comp/hb_form_item_filter_modal/src/type';
2
+ export * from './components/business-comp/list-page-comp/hb_list_table/src/type';
3
+ export * from './components/business-comp/list-page-comp/hb_list_page_container/src/type';
4
+ export * from './components/business-comp/list-page-comp/hb_list_btns_act/src/type';
5
+ export * from './components/business-comp/list-page-comp/hb_list_table/src/type';
3
6
  export { default as HbLibFormItemFilterModal } from './components/business-comp/list-page-comp/hb_form_item_filter_modal';
4
7
  export declare const locales: {
5
8
  en_US: {
@@ -312,3 +315,4 @@ export declare const locales: {
312
315
  };
313
316
  };
314
317
  export declare const install: (app: any) => void;
318
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AASA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,qBAAqB,CAAC;AAG7B,cAAc,8EAA8E,CAAC;AAC7F,cAAc,kEAAkE,CAAC;AACjF,cAAc,2EAA2E,CAAC;AAC1F,cAAc,qEAAqE,CAAC;AACpF,cAAc,kEAAkE,CAAC;AAEjF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,qEAAqE,CAAC;AAE1H,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnB,CAAC;AACF,eAAO,MAAM,OAAO,QAAkB,GAAG,SAKxC,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare module '*.vue' {
2
+ import type { DefineComponent } from 'vue';
3
+ const component: DefineComponent<{}, {}, any>;
4
+ export default component;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hb-hellotech/hb-ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "./dist/hb_component_lib.umd.cjs",
6
6
  "module": "./dist/hb_component_lib.js",
@@ -1,32 +0,0 @@
1
- // src/types/components.d.ts
2
- import type { DefineComponent } from 'vue';
3
- import type { HbSfCmType } from '../components/types/hb_form_item_filter_modal_type';
4
- import type { SelectorProps_Intf } from '../components/types/hb_form_item_filter_modal_type';
5
- import type { HbFormSelectModalpropsType } from '../components/types/hb_form_select_modal_type';
6
- import type { HbListBtnsPropsType } from '../components/types/hb_list_btns_act_type';
7
- import type { HbFormPropsType } from '../components/types/hb_list_form_type';
8
- import type { HbListPageActType } from '../components/types/hb_list_page_act_type';
9
-
10
- import type { HbLibListPageContainerProps } from '../components/types/hb_list_page_container_type';
11
- import type { Props } from '../components/types/hb_list_table_act_type';
12
- import type { HbTablePropsType } from '../components/types/hb_list_table_type';
13
- // 为全局组件提供类型支持
14
- declare global {
15
- interface HbUIComponents {
16
- HbLibFormItemFilterModal: DefineComponent<HbSfCmType, {}, {}>;
17
- HbLibListForm: DefineComponent<HbFormPropsType, {}, {}>;
18
- HbLibListPageAct: DefineComponent<HbListPageActType, {}, {}>;
19
-
20
- HbLibListBtnsAct: DefineComponent<HbListBtnsPropsType, {}, {}>;
21
-
22
- HbLibListPageContainer: DefineComponent<HbLibListPageContainerProps, {}, {}>;
23
-
24
- HbLibMutilpleSelectModal: DefineComponent<HbFormSelectModalpropsType, {}, {}>;
25
- HbLibTableAct: DefineComponent<Props, {}, {}>;
26
-
27
- HbLibListTable: DefineComponent<HbTablePropsType, {}, {}>;
28
- // 其他组件...
29
- }
30
- }
31
-
32
- export {};