sunyard-szyy-ui 0.7.9 → 0.7.11

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.
@@ -1,7 +1,7 @@
1
- (function(m,f){typeof exports=="object"&&typeof module!="undefined"?f(exports,require("@sunyard-szyy-ui/utils"),require("vue"),require("@sunyard-szyy-ui/hooks"),require("@sunyard-szyy-ui/adapter"),require("@element-plus/icons-vue"),require("sortablejs")):typeof define=="function"&&define.amd?define(["exports","@sunyard-szyy-ui/utils","vue","@sunyard-szyy-ui/hooks","@sunyard-szyy-ui/adapter","@element-plus/icons-vue","sortablejs"],f):(m=typeof globalThis!="undefined"?globalThis:m||self,f(m.SunyardSzyyUI={},m.utils,m.Vue,m.hooks,m.adapter,m.iconsVue,m.Sortable))})(this,function(m,f,e,C,d,v,Ie){"use strict";var Fs=Object.defineProperty,Ds=Object.defineProperties;var zs=Object.getOwnPropertyDescriptors;var _t=Object.getOwnPropertySymbols;var Os=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable;var Rt=(m,f,e)=>f in m?Fs(m,f,{enumerable:!0,configurable:!0,writable:!0,value:e}):m[f]=e,T=(m,f)=>{for(var e in f||(f={}))Os.call(f,e)&&Rt(m,e,f[e]);if(_t)for(var e of _t(f))Hs.call(f,e)&&Rt(m,e,f[e]);return m},J=(m,f)=>Ds(m,zs(f));var Te=(m,f,e)=>new Promise((C,d)=>{var v=de=>{try{Se(e.next(de))}catch(ge){d(ge)}},Ie=de=>{try{Se(e.throw(de))}catch(ge){d(ge)}},Se=de=>de.done?C(de.value):Promise.resolve(de.value).then(v,Ie);Se((e=e.apply(m,f)).next())});/*!
2
- * sunyard-szyy-ui v0.7.9
1
+ (function(f,h){typeof exports=="object"&&typeof module!="undefined"?h(exports,require("@sunyard-szyy-ui/utils"),require("vue"),require("@sunyard-szyy-ui/hooks"),require("@sunyard-szyy-ui/adapter"),require("@element-plus/icons-vue"),require("sortablejs")):typeof define=="function"&&define.amd?define(["exports","@sunyard-szyy-ui/utils","vue","@sunyard-szyy-ui/hooks","@sunyard-szyy-ui/adapter","@element-plus/icons-vue","sortablejs"],h):(f=typeof globalThis!="undefined"?globalThis:f||self,h(f.SunyardSzyyUI={},f.utils,f.Vue,f.hooks,f.adapter,f.iconsVue,f.Sortable))})(this,function(f,h,e,w,p,X,Ie){"use strict";var Ds=Object.defineProperty,zs=Object.defineProperties;var Os=Object.getOwnPropertyDescriptors;var _t=Object.getOwnPropertySymbols;var Hs=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable;var Rt=(f,h,e)=>h in f?Ds(f,h,{enumerable:!0,configurable:!0,writable:!0,value:e}):f[h]=e,R=(f,h)=>{for(var e in h||(h={}))Hs.call(h,e)&&Rt(f,e,h[e]);if(_t)for(var e of _t(h))Us.call(h,e)&&Rt(f,e,h[e]);return f},Q=(f,h)=>zs(f,Os(h));var Te=(f,h,e)=>new Promise((w,p)=>{var X=ie=>{try{ye(e.next(ie))}catch(Se){p(Se)}},Ie=ie=>{try{ye(e.throw(ie))}catch(Se){p(Se)}},ye=ie=>ie.done?w(ie.value):Promise.resolve(ie.value).then(X,Ie);ye((e=e.apply(f,h)).next())});/*!
2
+ * sunyard-szyy-ui v0.7.11
3
3
  * (c) 2026 Sunyard SZYY Base Team
4
- */const Se=e.defineComponent({name:"SyAutocomplete",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("autocomplete"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},close:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.close)==null?void 0:t.call(n)},highlight:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.highlight)==null?void 0:l.call(t,n)},handleKeyEnter:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleKeyEnter)==null?void 0:t.call(n)},handleSelect:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleSelect)==null?void 0:l.call(t,n)}}),()=>e.h(d.AdapterAutocomplete,e.mergeProps({ref:a,class:r.b()},c),i)}}),de=f.withInstall(Se),ge=e.defineComponent({name:"SyAlert",inheritAttrs:!1,setup(){const o=C.useNamespace("alert"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterAlert,e.mergeProps({class:o.b()},s),r)}}),Tt=f.withInstall(ge),It=e.defineComponent({name:"SyBacktop",inheritAttrs:!1,setup(){const o=C.useNamespace("backtop"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterBacktop,e.mergeProps({class:o.b()},s),r)}}),$t=f.withInstall(It),Et=e.defineComponent({name:"SyButton",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("button"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterButton,e.mergeProps({ref:a,class:r.b()},c),i)}}),G=f.withInstall(Et),Lt=e.defineComponent({name:"SyCard",inheritAttrs:!1,setup(){const o=C.useNamespace("card"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCard,e.mergeProps({class:o.b()},s),r)}}),Mt=f.withInstall(Lt),Ft=e.defineComponent({name:"SyCascader",inheritAttrs:!1,setup(){const o=C.useNamespace("cascader"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCascader,e.mergeProps({class:o.b()},s),r)}}),Ge=f.withInstall(Ft),Dt=e.defineComponent({name:"SyCheckbox",inheritAttrs:!1,setup(){const o=C.useNamespace("checkbox"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCheckbox,e.mergeProps({class:o.b()},s),r)}}),zt=e.defineComponent({name:"SyCheckboxGroup",inheritAttrs:!1,setup(){const o=C.useNamespace("checkbox-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCheckboxGroup,e.mergeProps({class:o.b()},s),r)}}),Ye=f.withInstall(Dt),We=f.withInstall(zt),Ot=e.defineComponent({name:"SyCheckboxButton",inheritAttrs:!1,setup(){const o=C.useNamespace("checkbox-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCheckboxButton,e.mergeProps({class:o.b()},s),r)}}),Ht=f.withInstall(Ot),Ut=e.defineComponent({name:"SyColorPicker",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("color-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({show:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.show)==null?void 0:t.call(n)},hide:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.hide)==null?void 0:t.call(n)},focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterColorPicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),qt=f.withInstall(Ut),jt=e.defineComponent({name:"SyCollapse",inheritAttrs:!1,setup(){const o=C.useNamespace("collapse"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCollapse,e.mergeProps({class:o.b()},s),r)}}),Kt=e.defineComponent({name:"SyCollapseItem",inheritAttrs:!1,setup(){const o=C.useNamespace("collapse-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCollapseItem,e.mergeProps({class:o.b()},s),r)}}),Gt=f.withInstall(jt),Yt=f.withInstall(Kt),Wt=new Set(["SyHeader","SyFooter","ElHeader","ElFooter"]);function Qt(o){return o.some(s=>{var c;const r=(c=s.type)==null?void 0:c.name;return!!r&&Wt.has(r)})}const Jt=e.defineComponent({name:"SyContainer",inheritAttrs:!1,setup(){const o=C.useNamespace("container"),s=e.useAttrs(),r=e.useSlots();return()=>{const c={class:o.b()};if(!("direction"in s)&&r.default){const i=r.default();Qt(i)&&(c.direction="vertical")}return e.h(d.AdapterContainer,e.mergeProps(c,s),r)}}}),Zt=e.defineComponent({name:"SyHeader",inheritAttrs:!1,setup(){const o=C.useNamespace("header"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterHeader,e.mergeProps({class:o.b()},s),r)}}),Xt=e.defineComponent({name:"SyAside",inheritAttrs:!1,setup(){const o=C.useNamespace("aside"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterAside,e.mergeProps({class:o.b()},s),r)}}),vt=e.defineComponent({name:"SyMain",inheritAttrs:!1,setup(){const o=C.useNamespace("main"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMain,e.mergeProps({class:o.b()},s),r)}}),en=e.defineComponent({name:"SyFooter",inheritAttrs:!1,setup(){const o=C.useNamespace("footer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterFooter,e.mergeProps({class:o.b()},s),r)}}),tn=f.withInstall(Jt),nn=f.withInstall(Zt),on=f.withInstall(Xt),sn=f.withInstall(vt),rn=f.withInstall(en),ln=e.defineComponent({name:"SyConfigProvider",inheritAttrs:!1,setup(o,{expose:s}){const r=e.useAttrs(),c=e.useSlots(),i=e.ref();return s({}),()=>e.h(d.AdapterConfigProvider,e.mergeProps({ref:i},r),c)}}),an=f.withInstall(ln),cn=e.defineComponent({name:"SyDatePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("date-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterDatePicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),Qe=f.withInstall(cn),dn=e.defineComponent({name:"SyDateTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("date-time-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterDatePicker,e.mergeProps({ref:a,class:r.b(),type:"datetime"},c),i)}}),pn=f.withInstall(dn),mn=e.defineComponent({name:"SyDescriptions",inheritAttrs:!1,setup(){const o=C.useNamespace("descriptions"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDescriptions,e.mergeProps({class:o.b()},s),r)}}),fn=e.defineComponent({name:"ElDescriptionsItem",inheritAttrs:!1,setup(){const o=C.useNamespace("descriptions-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDescriptionsItem,e.mergeProps({class:o.b()},s),r)}}),hn=f.withInstall(mn),un=f.withInstall(fn,"SyDescriptionsItem"),yn=e.defineComponent({name:"SyDialog",inheritAttrs:!1,setup(){const o=C.useNamespace("dialog"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDialog,e.mergeProps({class:o.b()},s),r)}}),Sn=f.withInstall(yn),gn=e.defineComponent({name:"SyDivider",inheritAttrs:!1,setup(){const o=C.useNamespace("divider"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDivider,e.mergeProps({class:o.b()},s),r)}}),bn=f.withInstall(gn),Cn=e.defineComponent({name:"SyDrawer",inheritAttrs:!1,setup(){const o=C.useNamespace("drawer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDrawer,e.mergeProps({class:o.b()},s),r)}}),Je=f.withInstall(Cn),wn=e.defineComponent({name:"SyDropdown",inheritAttrs:!1,setup(){const o=C.useNamespace("dropdown"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDropdown,e.mergeProps({class:o.b()},s),r)}}),An=e.defineComponent({name:"SyDropdownMenu",inheritAttrs:!1,setup(){const o=C.useNamespace("dropdown-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDropdownMenu,e.mergeProps({class:o.b()},s),r)}}),kn=e.defineComponent({name:"SyDropdownItem",inheritAttrs:!1,setup(){const o=C.useNamespace("dropdown-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDropdownItem,e.mergeProps({class:o.b()},s),r)}}),xn=f.withInstall(wn),Nn=f.withInstall(An),Bn=f.withInstall(kn),Pn=e.defineComponent({name:"SyEmpty",inheritAttrs:!1,setup(){const o=C.useNamespace("empty"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterEmpty,e.mergeProps({class:o.b()},s),r)}}),Ze=f.withInstall(Pn),Vn=e.defineComponent({name:"SyForm",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("form"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({validate:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.validate)==null?void 0:l.call(t,...n)},validateField:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.validateField)==null?void 0:l.call(t,...n)},resetFields:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.resetFields)==null?void 0:l.call(t,...n)},scrollToField:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollToField)==null?void 0:l.call(t,...n)},clearValidate:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearValidate)==null?void 0:l.call(t,...n)}}),()=>e.h(d.AdapterForm,e.mergeProps({ref:a,class:r.b()},c),i)}}),_n=e.defineComponent({name:"SyFormItem",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("form-item"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({resetField:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.resetField)==null?void 0:t.call(n)},clearValidate:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearValidate)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterFormItem,e.mergeProps({ref:a,class:r.b()},c),i)}}),Xe=f.withInstall(Vn),ve=f.withInstall(_n),Rn=e.defineComponent({name:"SyIcon",inheritAttrs:!1,setup(){const o=e.useAttrs(),s=e.useSlots();return()=>e.h(d.AdapterIcon,e.mergeProps(o),s)}}),he=f.withInstall(Rn),Tn=e.defineComponent({name:"SyImage",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("image"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({showPreview:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.showPreview)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterImage,e.mergeProps({ref:a,class:r.b()},c),i)}}),In=f.withInstall(Tn),$n=e.defineComponent({name:"SyInput",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("input"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},clear:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clear)==null?void 0:t.call(n)},select:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.select)==null?void 0:t.call(n)},resizeTextarea:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.resizeTextarea)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterInput,e.mergeProps({ref:a,class:r.b()},c),i)}}),$e=f.withInstall($n),En=e.defineComponent({name:"SyInputNumber",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("input-number"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterInputNumber,e.mergeProps({ref:a,class:r.b()},c),i)}}),et=f.withInstall(En),Ln=e.defineComponent({name:"SyRow",inheritAttrs:!1,setup(){const o=C.useNamespace("row"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRow,e.mergeProps({class:o.b()},s),r)}}),Mn=e.defineComponent({name:"SyCol",inheritAttrs:!1,setup(){const o=C.useNamespace("col"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCol,e.mergeProps({class:o.b()},s),r)}}),Fn=f.withInstall(Ln),Dn=f.withInstall(Mn),zn=e.defineComponent({name:"SyLink",inheritAttrs:!1,setup(){const o=C.useNamespace("link"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterLink,e.mergeProps({class:o.b()},s),r)}}),On=f.withInstall(zn),pe="sy-loading",Ee="element-loading-custom-class";function Hn(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)}function Un(o){if(o==null||o==="")return pe;const s=String(e.unref(o));return s.includes(pe)?s:`${pe} ${s}`}function qn(o){if(o===void 0)return{customClass:pe};const s=T({},o),r=s.customClass;return r===void 0?s.customClass=pe:typeof r=="string"&&(s.customClass=`${pe} ${r}`),s}function tt(o,s){if(!s.value)return s;if(Hn(s.value))return J(T({},s),{value:J(T({},s.value),{customClass:Un(s.value.customClass)})});const r=o.getAttribute(Ee);return r?r.includes(pe)||o.setAttribute(Ee,`${pe} ${r}`):o.setAttribute(Ee,pe),s}const re=d.AdapterLoadingDirective,Ae=(o,s)=>d.AdapterLoading.service(qn(o),s);Object.defineProperty(Ae,"_context",{get(){return d.AdapterLoading.service._context},set(o){d.AdapterLoading.service._context=o}});const ke={mounted(o,s,r,c){var i;(i=re.mounted)==null||i.call(re,o,tt(o,s),r,c)},updated(o,s,r,c){var i;(i=re.updated)==null||i.call(re,o,tt(o,s),r,c)},unmounted(o,s,r,c){var i;(i=re.unmounted)==null||i.call(re,o,s,r,c)},get _context(){return re._context},set _context(o){re._context=o}},jn={install(o){Ae._context=o._context,ke._context=o._context,o.directive("loading",ke),o.config.globalProperties.$loading=Ae},directive:ke,service:Ae},Kn=e.defineComponent({name:"SyMenu",inheritAttrs:!1,setup(){const o=C.useNamespace("menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMenu,e.mergeProps({class:o.b()},s),r)}}),Gn=e.defineComponent({name:"SySubMenu",inheritAttrs:!1,setup(){const o=C.useNamespace("sub-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSubMenu,e.mergeProps({class:o.b()},s),r)}}),Yn=e.defineComponent({name:"SyMenuItem",inheritAttrs:!1,setup(){const o=C.useNamespace("menu-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMenuItem,e.mergeProps({class:o.b()},s),r)}}),Wn=e.defineComponent({name:"SyMenuItemGroup",inheritAttrs:!1,setup(){const o=C.useNamespace("menu-item-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMenuItemGroup,e.mergeProps({class:o.b()},s),r)}}),Qn=f.withInstall(Kn),Jn=f.withInstall(Gn),Zn=f.withInstall(Yn),Xn=f.withInstall(Wn),xe="sy-message";function be(o){if(o===void 0)return{customClass:xe};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:xe};const s=o;return J(T({},s),{customClass:s.customClass?`${xe} ${s.customClass}`:xe})}const Le=(o,s)=>d.AdapterMessage(be(o),s);Le.closeAll=o=>d.AdapterMessage.closeAll(o),Le.closeAllByPlacement=o=>d.AdapterMessage.closeAllByPlacement(o);const ue=Le;ue.success=(o,s)=>d.AdapterMessage.success(be(o),s),ue.warning=(o,s)=>d.AdapterMessage.warning(be(o),s),ue.info=(o,s)=>d.AdapterMessage.info(be(o),s),ue.error=(o,s)=>d.AdapterMessage.error(be(o),s),Object.defineProperty(ue,"_context",{get(){return d.AdapterMessage._context},set(o){d.AdapterMessage._context=o}});const Me="sy-message-box";function Ne(o){return o?J(T({},o),{customClass:o.customClass?`${Me} ${o.customClass}`:Me}):{customClass:Me}}const Ce=(o,s)=>d.AdapterMessageBox(Ne(o),s);Ce.alert=(...o)=>{const[s,r,c,i]=o;return d.AdapterMessageBox.alert(s,r,Ne(c),i)},Ce.confirm=(...o)=>{const[s,r,c,i]=o;return d.AdapterMessageBox.confirm(s,r,Ne(c),i)},Ce.prompt=(...o)=>{const[s,r,c,i]=o;return d.AdapterMessageBox.prompt(s,r,Ne(c),i)},Ce.close=()=>d.AdapterMessageBox.close();const nt=Ce;Object.defineProperty(nt,"_context",{get(){return d.AdapterMessageBox._context},set(o){d.AdapterMessageBox._context=o}});const Be="sy-notification";function we(o){if(o===void 0)return{customClass:Be};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:Be};const s=o;return J(T({},s),{customClass:s.customClass?`${Be} ${s.customClass}`:Be})}const ye=(o,s)=>d.AdapterNotification(we(o),s);ye.success=(o,s)=>d.AdapterNotification.success(we(o),s),ye.warning=(o,s)=>d.AdapterNotification.warning(we(o),s),ye.info=(o,s)=>d.AdapterNotification.info(we(o),s),ye.error=(o,s)=>d.AdapterNotification.error(we(o),s),ye.closeAll=()=>d.AdapterNotification.closeAll();const ot=ye;Object.defineProperty(ot,"_context",{get(){return d.AdapterNotification._context},set(o){d.AdapterNotification._context=o}});const vn=e.defineComponent({name:"SyPagination",inheritAttrs:!1,setup(){const o=C.useNamespace("pagination"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterPagination,e.mergeProps({class:o.b()},s),r)}}),st=f.withInstall(vn),eo=e.defineComponent({name:"SyPopconfirm",inheritAttrs:!1,setup(){const o=C.useNamespace("popconfirm"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterPopconfirm,e.mergeProps({class:o.b()},s),r)}}),to=f.withInstall(eo);function no(o,s){var n;const r=T({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const a=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:a.length?a:[s]}}const oo=e.defineComponent({name:"SyPopover",inheritAttrs:!1,setup(){const o=C.useNamespace("popover"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=no(s,o.b());return e.h(d.AdapterPopover,e.mergeProps(c,{popperClass:i}),r)}}}),so=f.withInstall(oo),ro=e.defineComponent({name:"SyProgress",inheritAttrs:!1,setup(){const o=C.useNamespace("progress"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterProgress,e.mergeProps({class:o.b()},s),r)}}),lo=f.withInstall(ro),ao=e.defineComponent({name:"SyRadio",inheritAttrs:!1,setup(){const o=C.useNamespace("radio"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRadio,e.mergeProps({class:o.b()},s),r)}}),co=e.defineComponent({name:"SyRadioGroup",inheritAttrs:!1,setup(){const o=C.useNamespace("radio-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRadioGroup,e.mergeProps({class:o.b()},s),r)}}),Fe=f.withInstall(ao),rt=f.withInstall(co),io=e.defineComponent({name:"SyRadioButton",inheritAttrs:!1,setup(){const o=C.useNamespace("radio-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRadioButton,e.mergeProps({class:o.b()},s),r)}}),lt=f.withInstall(io),po=e.defineComponent({name:"SyScrollbar",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("scrollbar"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({handleScroll:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleScroll)==null?void 0:t.call(n)},scrollTo:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,...n)},setScrollTop:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollTop)==null?void 0:l.call(t,n)},setScrollLeft:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollLeft)==null?void 0:l.call(t,n)},update:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.update)==null?void 0:t.call(n)},wrapRef:()=>{var n;return(n=a.value)==null?void 0:n.wrapRef}}),()=>e.h(d.AdapterScrollbar,e.mergeProps({ref:a,class:r.b()},c),i)}}),mo=f.withInstall(po),fo=e.defineComponent({name:"SySelect",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),ho=e.defineComponent({name:"SyOption",inheritAttrs:!1,setup(){const o=C.useNamespace("option"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterOption,e.mergeProps({class:o.b()},s),r)}}),at=f.withInstall(fo),ct=f.withInstall(ho),uo=d.AdapterSelectV2,yo=e.defineComponent({name:"SySelectV2",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("select-v2"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},scrollTo:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,n)},toggleMenu:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.toggleMenu)==null?void 0:t.call(n)}}),()=>e.h(uo,e.mergeProps({ref:a,class:r.b()},c),i)}}),So=f.withInstall(yo),go=e.defineComponent({name:"SySkeleton",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("skeleton"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({get uiLoading(){var n;return(n=a.value)==null?void 0:n.uiLoading}}),()=>e.h(d.AdapterSkeleton,e.mergeProps({ref:a,class:r.b()},c),i)}}),bo=e.defineComponent({name:"SySkeletonItem",inheritAttrs:!1,setup(){const o=C.useNamespace("skeleton-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSkeletonItem,e.mergeProps({class:o.b()},s),r)}}),Co=f.withInstall(go),wo=f.withInstall(bo),Ao=e.defineComponent({name:"SySlider",inheritAttrs:!1,setup(){const o=C.useNamespace("slider"),s=e.useAttrs(),r=e.useSlots(),c=e.ref();return()=>e.h(d.AdapterSlider,e.mergeProps({ref:c,class:o.b()},s),r)}}),ko=f.withInstall(Ao),xo=e.defineComponent({name:"SySpace",inheritAttrs:!1,setup(){const o=C.useNamespace("space"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSpace,e.mergeProps({class:o.b()},s),r)}}),No=f.withInstall(xo),Bo=e.defineComponent({name:"SySteps",inheritAttrs:!1,setup(){const o=C.useNamespace("steps"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSteps,e.mergeProps({class:o.b()},s),r)}}),Po=e.defineComponent({name:"SyStep",inheritAttrs:!1,setup(){const o=C.useNamespace("step"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterStep,e.mergeProps({class:o.b()},s),r)}}),Vo=f.withInstall(Bo),_o=f.withInstall(Po),Ro=e.defineComponent({name:"SySwitch",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("switch"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterSwitch,e.mergeProps({ref:a,class:r.b()},c),i)}}),Pe=f.withInstall(Ro),To=e.defineComponent({name:"SyTable",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("table"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({clearSelection:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearSelection)==null?void 0:t.call(n)},getSelectionRows:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.getSelectionRows)==null?void 0:t.call(n)},toggleRowSelection:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.toggleRowSelection)==null?void 0:l.call(t,...n)},toggleAllSelection:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.toggleAllSelection)==null?void 0:t.call(n)},toggleRowExpansion:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.toggleRowExpansion)==null?void 0:l.call(t,...n)},setCurrentRow:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentRow)==null?void 0:l.call(t,...n)},clearSort:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearSort)==null?void 0:t.call(n)},clearFilter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearFilter)==null?void 0:l.call(t,...n)},doLayout:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.doLayout)==null?void 0:t.call(n)},sort:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.sort)==null?void 0:l.call(t,...n)},scrollTo:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,...n)},setScrollTop:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollTop)==null?void 0:l.call(t,...n)},setScrollLeft:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollLeft)==null?void 0:l.call(t,...n)}}),()=>e.h(d.AdapterTable,e.mergeProps({ref:a,class:r.b()},c),i)}}),Io=e.defineComponent({name:"SyTableColumn",inheritAttrs:!1,setup(){const o=C.useNamespace("table-column"),s=e.useAttrs(),r=e.useSlots();return()=>{const c=r.default?J(T({},r),{default:(...i)=>{var a;return((a=r.default(...i))!=null?a:[]).map(n=>{var t;return((t=n==null?void 0:n.type)==null?void 0:t.name)==="SyTableColumn"?e.h(d.AdapterTableColumn,n.props,n.children):n})}}):r;return e.h(d.AdapterTableColumn,e.mergeProps({class:o.b()},s),c)}}}),De=f.withInstall(To),ae=f.withInstall(Io),$o=e.defineComponent({name:"SyTabs",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("tabs"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({get currentName(){var n;return(n=a.value)==null?void 0:n.currentName},get tabNavRef(){var n;return(n=a.value)==null?void 0:n.tabNavRef}}),()=>e.h(d.AdapterTabs,e.mergeProps({ref:a,class:r.b()},c),i)}}),Eo=e.defineComponent({name:"SyTabPane",inheritAttrs:!1,setup(){const o=C.useNamespace("tab-pane"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterTabPane,e.mergeProps({class:o.b()},s),r)}}),Lo=f.withInstall($o),Mo=f.withInstall(Eo),Fo=e.defineComponent({name:"SyTag",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("tag"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({ref:()=>a.value}),()=>e.h(d.AdapterTag,e.mergeProps({ref:a,class:r.b()},c),i)}}),Ve=f.withInstall(Fo),Do=e.defineComponent({name:"SyText",inheritAttrs:!1,setup(){const o=C.useNamespace("text"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterText,e.mergeProps({class:o.b()},s),r)}}),zo=f.withInstall(Do),Oo=e.defineComponent({name:"SyTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("time-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterTimePicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),it=f.withInstall(Oo),Ho=e.defineComponent({name:"SyTimeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("time-select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterTimeSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),dt=f.withInstall(Ho);function Uo(o,s){var n;const r=T({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const a=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:a.length?a:[s]}}const qo=e.defineComponent({name:"SyTooltip",inheritAttrs:!1,setup(){const o=C.useNamespace("tooltip"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=Uo(s,o.b());return e.h(d.AdapterTooltip,e.mergeProps(c,{popperClass:i}),r)}}}),me=f.withInstall(qo),jo=e.defineComponent({name:"SyTree",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("tree"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({filter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.filter)==null?void 0:l.call(t,...n)},updateKeyChildren:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.updateKeyChildren)==null?void 0:l.call(t,...n)},getCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCheckedNodes)==null?void 0:l.call(t,...n)},getCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCheckedKeys)==null?void 0:l.call(t,...n)},setCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCheckedNodes)==null?void 0:l.call(t,...n)},setCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCheckedKeys)==null?void 0:l.call(t,...n)},setChecked:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setChecked)==null?void 0:l.call(t,...n)},getHalfCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getHalfCheckedNodes)==null?void 0:l.call(t,...n)},getHalfCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getHalfCheckedKeys)==null?void 0:l.call(t,...n)},getCurrentKey:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCurrentKey)==null?void 0:l.call(t,...n)},getCurrentNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCurrentNode)==null?void 0:l.call(t,...n)},setCurrentKey:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentKey)==null?void 0:l.call(t,...n)},setCurrentNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentNode)==null?void 0:l.call(t,...n)},getNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getNode)==null?void 0:l.call(t,...n)},remove:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.remove)==null?void 0:l.call(t,...n)},append:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.append)==null?void 0:l.call(t,...n)},insertBefore:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.insertBefore)==null?void 0:l.call(t,...n)},insertAfter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.insertAfter)==null?void 0:l.call(t,...n)}}),()=>e.h(d.AdapterTree,e.mergeProps({ref:a,class:r.b()},c),i)}}),Ko=f.withInstall(jo),Go=e.defineComponent({name:"SyTreeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("tree-select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},filter:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.filter)==null?void 0:l.call(t,n)},updateKeyChildren:(n,t)=>{var l,A;return(A=(l=a.value)==null?void 0:l.updateKeyChildren)==null?void 0:A.call(l,n,t)}}),()=>e.h(d.AdapterTreeSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),Yo=f.withInstall(Go),Wo=e.defineComponent({name:"SyUpload",inheritAttrs:!1,setup(o,{expose:s}){const r=C.useNamespace("upload"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({abort:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.abort)==null?void 0:l.call(t,n)},submit:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.submit)==null?void 0:t.call(n)},clearFiles:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearFiles)==null?void 0:l.call(t,n)},handleStart:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleStart)==null?void 0:l.call(t,n)},handleRemove:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleRemove)==null?void 0:l.call(t,n)}}),()=>e.h(d.AdapterUpload,e.mergeProps({ref:a,class:r.b()},c),i)}}),Qo=f.withInstall(Wo),Jo={input:$e,"input-number":et,"time-picker":it,"time-select":dt,autocomplete:d.AdapterAutocomplete,switch:Pe,slider:d.AdapterSlider,"color-picker":d.AdapterColorPicker},ze={input:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"input-number":o=>({placeholder:o.placeholder,style:"width: 100%"}),"time-picker":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"time-select":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),autocomplete:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),switch:()=>({}),slider:()=>({style:"width: 100%; padding: 0 6px"}),"color-picker":()=>({})};function Zo(o){return o?Object.fromEntries(Object.entries(o).map(([s,r])=>[s.startsWith("on")?s:`on${s[0].toUpperCase()}${s.slice(1)}`,r])):{}}const Oe=e.defineComponent({name:"ProFormItem",props:{schema:{type:Object,required:!0},model:{type:Object,required:!0},modelValue:{default:void 0}},emits:["update:modelValue"],setup(o,{emit:s}){const r=e.inject("proTableEnumMap",{value:new Map}),c=e.computed({get:()=>o.modelValue,set:h=>s("update:modelValue",h)}),i=e.computed(()=>{var h,p;return(p=(h=o.schema.fieldNames)==null?void 0:h.label)!=null?p:"label"}),a=e.computed(()=>{var h,p;return(p=(h=o.schema.fieldNames)==null?void 0:h.value)!=null?p:"value"}),n=e.computed(()=>{var h,p;return(p=(h=o.schema.fieldNames)==null?void 0:h.children)!=null?p:"children"}),t=e.computed(()=>{var h;return o.schema.options!=null?o.schema.options:(h=r.value.get(o.schema.field))!=null?h:[]}),l=e.computed(()=>{const{label:h,value:p}={label:i.value,value:a.value};return h==="label"&&p==="value"?t.value:t.value.map(u=>J(T({},u),{label:u[h],value:u[p]}))}),A=e.computed(()=>{const h=T({},o.schema.props),{label:p,value:u,children:P}={label:i.value,value:a.value,children:n.value};return J(T({},h),{props:J(T({},h.props),{label:p,children:P}),nodeKey:u})}),w=e.computed(()=>{const h=T({},o.schema.props),{label:p,value:u,children:P}={label:i.value,value:a.value,children:n.value};return J(T({},h),{props:J(T({},h.props),{label:p,value:u,children:P})})}),B=e.computed(()=>T({},o.schema.props)),_=e.computed(()=>{var p,u,P;const h=(u=(p=o.schema.props)==null?void 0:p.type)!=null?u:"";return["daterange","datetimerange","monthrange","yearrange"].includes(h)||!!((P=o.schema.props)!=null&&P.isRange)}),I=e.computed(()=>{var p,u;if(((p=o.schema.props)==null?void 0:p.placeholder)!=null)return o.schema.props.placeholder;const h=(u=o.schema.component)!=null?u:"input";return["input","input-number","autocomplete"].includes(h)?"请输入":"请选择"}),y=e.computed(()=>{var h;return((h=o.schema.props)==null?void 0:h.clearable)!=null?o.schema.props.clearable:o.schema.defaultValue==null}),b=e.computed(()=>{var p,u,P;const h=T({},o.schema.props);return _.value?J(T({},h),{rangeSeparator:(p=h.rangeSeparator)!=null?p:"至",startPlaceholder:(u=h.startPlaceholder)!=null?u:"开始时间",endPlaceholder:(P=h.endPlaceholder)!=null?P:"结束时间",clearable:y.value}):J(T({},h),{placeholder:I.value,clearable:y.value})});return()=>{var D,F,O,L,M,K,q,Z;const{schema:h}=o,p=(D=h.component)!=null?D:"input",u=Zo(h.events),P={modelValue:c.value,"onUpdate:modelValue":U=>c.value=U};if(h.render)return h.render(o.model);if(p==="text")return e.h("span",{class:"sy-pro-form-item__text"},String((F=c.value)!=null?F:""));if(p==="select")return e.h(at,J(T(T(T({},P),B.value),u),{placeholder:I.value,clearable:y.value,style:"width: 100%"}),{default:e.withCtx(()=>t.value.map(U=>e.h(ct,{key:U[a.value],label:U[i.value],value:U[a.value]})))});if(p==="select-v2")return e.h(d.AdapterSelectV2,J(T(T(T({},P),B.value),u),{placeholder:I.value,clearable:y.value,options:l.value,style:"width: 100%"}));if(p==="tree-select"){const U=(L=(O=o.schema.props)==null?void 0:O.data)!=null?L:t.value;return e.h(d.AdapterTreeSelect,J(T(T(T({},P),A.value),u),{placeholder:I.value,clearable:y.value,data:U,style:"width: 100%"}))}if(p==="cascader"){const U=(K=(M=o.schema.props)==null?void 0:M.options)!=null?K:t.value;return e.h(Ge,J(T(T(T({},P),w.value),u),{placeholder:I.value,clearable:y.value,options:U,style:"width: 100%"}))}if(p==="radio"||p==="radio-button"){const U=p==="radio"?Fe:lt;return e.h(rt,T(T(T({},P),B.value),u),{default:()=>t.value.map(X=>e.h(U,{key:X[a.value],value:X[a.value]},{default:()=>String(X[i.value])}))})}if(p==="checkbox")return e.h(We,T(T(T({},P),B.value),u),{default:()=>t.value.map(U=>e.h(Ye,{key:U[a.value],value:U[a.value]},{default:()=>String(U[i.value])}))});if(p==="date-picker")return e.h(Qe,J(T(T(T({},P),b.value),u),{style:"width: 100%"}));const $=Jo[p];if($){const U=(Z=(q=ze[p])==null?void 0:q.call(ze,{placeholder:I.value,clearable:y.value}))!=null?Z:{};return e.h($,T(T(T(T({},P),B.value),u),U))}return e.h($e,J(T(T(T({},P),B.value),u),{placeholder:I.value,clearable:y.value,style:"width: 100%"}))}}}),Xo=2,vo=e.defineComponent({name:"SyProForm",__name:"ProForm",props:{model:{},schema:{},cols:{},labelWidth:{},labelPosition:{},disabled:{type:Boolean,default:!1},size:{},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},queryBtnText:{default:"查询"},resetBtnText:{default:"重置"},loading:{type:Boolean,default:!1},collapsible:{type:[Boolean,Number],default:!1},defaultCollapsed:{type:Boolean,default:!0},buttonAlign:{default:"inline"}},emits:["search","reset"],setup(o,{expose:s,emit:r}){var ce,ie;const c=e.useSlots(),i=o,a=(ce=e.inject(f.SY_UI_CONFIG_KEY,{}).proForm)!=null?ce:{},n=(ie=f.getMasterConfig(f.detectMicroAppName()).proForm)!=null?ie:{},t=e.computed(()=>{var S,V,N;return(N=(V=(S=n.cols)!=null?S:i.cols)!=null?V:a.cols)!=null?N:4}),l=e.computed(()=>{var S,V,N;return(N=(V=(S=n.labelWidth)!=null?S:i.labelWidth)!=null?V:a.labelWidth)!=null?N:"auto"}),A=e.computed(()=>{var S,V,N;return(N=(V=(S=n.labelPosition)!=null?S:i.labelPosition)!=null?V:a.labelPosition)!=null?N:"right"}),w=e.computed(()=>{var S,V;return(V=(S=n.size)!=null?S:i.size)!=null?V:a.size}),B=r;C.useNamespace("pro-form");const _=e.ref(),I=e.ref(i.defaultCollapsed),y=e.ref("xl");function b(){const S=window.innerWidth;return S<768?"xs":S<992?"sm":S<1200?"md":S<1920?"lg":"xl"}function h(){y.value=b()}e.onMounted(()=>{y.value=b(),window.addEventListener("resize",h)}),e.onUnmounted(()=>{window.removeEventListener("resize",h)});const p=e.computed(()=>i.schema.filter(S=>typeof S.hidden=="function"?!S.hidden(i.model):!S.hidden).sort((S,V)=>{var N,H;return((N=S.order)!=null?N:0)-((H=V.order)!=null?H:0)}));function u(S){var N,H,j;const V=y.value;return(j=(H=(N=S[V])==null?void 0:N.span)!=null?H:S.span)!=null?j:1}function P(S){var N,H,j;const V=y.value;return(j=(H=(N=S[V])==null?void 0:N.offset)!=null?H:S.offset)!=null?j:0}const $=e.computed(()=>{var N,H,j,le,se,te;const S=t.value;if(typeof S=="number")return S;const V=y.value;return(te=(se=(le=(j=(H=(N=S==null?void 0:S[V])!=null?N:S==null?void 0:S.xl)!=null?H:S==null?void 0:S.lg)!=null?j:S==null?void 0:S.md)!=null?le:S==null?void 0:S.sm)!=null?se:S==null?void 0:S.xs)!=null?te:4}),D=e.computed(()=>{const S=i.collapsible;return typeof S=="number"&&S>0?S:1}),F=e.computed(()=>{if(!i.collapsible)return-1;const S=i.buttonAlign==="inline"&&(i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons),V=$.value*D.value-(S?Xo:0);if(V<=0)return 0;let N=0;for(let H=0;H<p.value.length;H++){const j=p.value[H];if(N+=u(j)+P(j),N>V)return H}return-1}),O=e.computed(()=>F.value>=0),L=e.computed(()=>({display:"grid",gridTemplateColumns:`repeat(${$.value}, 1fr)`,gap:"0 16px"}));function M(S){const V=$.value,N=Math.min(u(S),V),H=P(S),j={gridColumn:`span ${N}`};return H>0&&(j.marginLeft=`calc(${H/V*100}% + ${H*16}px)`),j}const K=e.computed(()=>{const S=$.value,V=p.value,N=i.collapsible&&I.value&&F.value>=0?F.value:V.length;let H=0;for(let j=0;j<N;j++){const le=u(V[j]),se=P(V[j]),te=H+le+se;H=te>=S?te%S:te}return H}),q=e.computed(()=>{const S=K.value;return{gridColumn:`${S===0?1:S+1} / -1`}}),Z={left:"flex-start",center:"center",right:"flex-end"},U=e.computed(()=>{var V;const S={justifyContent:(V=Z[i.buttonAlign])!=null?V:"flex-start"};if(i.buttonAlign==="left"&&A.value!=="top"){const N=l.value;N&&N!=="auto"&&(S.paddingLeft=typeof N=="number"?`${N}px`:String(N))}return S}),X=e.computed(()=>i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons);function ee(S,V){i.model[S]=V}function Y(){var S;(S=_.value)==null||S.validate(V=>{V&&B("search",i.model)})}function oe(){var S,V;for(const N of i.schema)ee(N.field,(S=N.defaultValue)!=null?S:null);(V=_.value)==null||V.clearValidate(),B("reset",i.model)}return s({formRef:_,validate:S=>{var V;return(V=_.value)==null?void 0:V.validate(S)},validateField:(S,V)=>{var N;return(N=_.value)==null?void 0:N.validateField(S,V)},resetFields:oe,clearValidate:S=>{var V;return(V=_.value)==null?void 0:V.clearValidate(S)}}),(S,V)=>(e.openBlock(),e.createBlock(e.unref(Xe),{ref_key:"formRef",ref:_,class:"sy-pro-form",model:o.model,"label-width":l.value,"label-position":A.value,disabled:o.disabled,size:w.value,onSubmit:V[2]||(V[2]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"sy-pro-form__grid",style:e.normalizeStyle(L.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(N,H)=>{var j;return e.openBlock(),e.createElementBlock(e.Fragment,{key:N.field},[!o.collapsible||!I.value||F.value<0||H<F.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item",style:e.normalizeStyle(M(N))},[e.createCommentVNode(" slot 类型:渲染具名插槽,用户自行提供完整的 sy-form-item 内容 "),N.component==="slot"?e.renderSlot(S.$slots,N.field,{key:0,item:N}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 内置组件类型:走原有渲染路径 "),e.createVNode(e.unref(ve),e.mergeProps({prop:N.field,label:(j=N.label)!=null?j:""},{ref_for:!0},N.labelWidth!=null?{labelWidth:N.labelWidth}:{},{rules:N.rules}),e.createSlots({default:e.withCtx(()=>[e.createVNode(Oe,{"model-value":o.model[N.field],schema:N,model:o.model,"onUpdate:modelValue":le=>ee(N.field,le)},null,8,["model-value","schema","model","onUpdate:modelValue"])]),_:2},[N.tooltip?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(N.label),1),e.createVNode(e.unref(me),{content:N.tooltip,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(he),{class:"sy-pro-form__tip-icon",style:{"margin-left":"4px","vertical-align":"middle",cursor:"pointer"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.InfoFilled))]),_:1})]),_:1},8,["content"])]),key:"0"}:void 0]),1040,["prop","label","rules"])],2112))],4)):e.createCommentVNode("v-if",!0)],64)}),128)),e.createCommentVNode(" 默认插槽:额外自定义字段 "),e.renderSlot(S.$slots,"default"),e.createCommentVNode(" 按钮区 —— inline 模式:在网格内贴右 "),o.buttonAlign==="inline"&&(X.value||o.collapsible&&O.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item sy-pro-form__buttons",style:e.normalizeStyle(q.value)},[e.renderSlot(S.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(G),{key:0,type:"primary",loading:o.loading,onClick:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(G),{key:1,onClick:oe},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(S.$slots,"extra-buttons")]),o.collapsible&&O.value?(e.openBlock(),e.createBlock(e.unref(G),{key:0,type:"primary",link:"",onClick:V[0]||(V[0]=N=>I.value=!I.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.value?"展开":"合并")+" ",1),e.createVNode(e.unref(he),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I.value?e.unref(v.ArrowDown):e.unref(v.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)],4),e.createCommentVNode(" 按钮区 —— 独立成行模式(left / center / right) "),o.buttonAlign!=="inline"&&(X.value||o.collapsible&&O.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__footer",style:e.normalizeStyle(U.value)},[e.renderSlot(S.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(G),{key:0,type:"primary",loading:o.loading,onClick:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(G),{key:1,onClick:oe},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(S.$slots,"extra-buttons")]),o.collapsible&&O.value?(e.openBlock(),e.createBlock(e.unref(G),{key:0,type:"primary",link:"",onClick:V[1]||(V[1]=N=>I.value=!I.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.value?"展开":"合并")+" ",1),e.createVNode(e.unref(he),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I.value?e.unref(v.ArrowDown):e.unref(v.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)]),_:3},8,["model","label-width","label-position","disabled","size"]))}}),pt=f.withInstall(vo);function es(o="id"){const s=e.ref([]),r=e.computed(()=>s.value.length>0),c=e.computed(()=>s.value.map(n=>n[o]));function i(n){s.value=n}function a(){s.value=[]}return{selectedList:s,isSelected:r,selectedListIds:c,selectionChange:i,clearSelection:a}}function ts(o){const{request:s,params:r,searchParam:c,postData:i,requestError:a,pagination:n=!0,staticData:t,initialPageSize:l}=o,A=e.ref(!1),w=e.ref([]),B=e.reactive({pageNum:1,pageSize:l!=null?l:10,total:0}),_=e.reactive({}),I=e.reactive({}),y=e.computed(()=>{if(!(t!=null&&t.value))return w.value;if(!n)return t.value;const F=(B.pageNum-1)*B.pageSize;return t.value.slice(F,F+B.pageSize)});function b(F,O){for(const[L,M]of Object.entries(F))(M!=null&&M!==""||M===!1||M===0)&&(O[L]=M)}function h(){const F={};return b(I,F),c!=null&&c.value&&b(c.value,F),F}function p(){return Te(this,null,function*(){var F,O,L;if(t!=null&&t.value){B.total=t.value.length;return}if(s)try{A.value=!0;const M=h(),K=T(T(T({},_),M),(F=r==null?void 0:r.value)!=null?F:{});n&&(K.pageNum=B.pageNum,K.pageSize=B.pageSize);const q=yield s(K);if(!q.success){a==null||a(q);return}let Z=(O=q.data)!=null?O:[];i&&(Z=i(Z)),w.value=Z,n&&(B.total=(L=q.total)!=null?L:0)}catch(M){a==null||a(M)}finally{A.value=!1}})}function u(){B.pageNum=1,p()}function P(){var F;B.pageNum=1;for(const O of Object.keys(I))I[O]=(F=_[O])!=null?F:null;p()}function $(F){B.pageSize=F,B.pageNum=1,p()}function D(F){B.pageNum=F,p()}return r&&e.watch(r,()=>p(),{deep:!0}),{loading:A,tableData:w,pageable:B,processTableData:y,searchParam:I,searchInitParam:_,getTableList:p,search:u,reset:P,handleSizeChange:$,handleCurrentChange:D}}function mt(o){var r;const s=[];for(const c of o)(r=c.children)!=null&&r.length?s.push(c,...mt(c.children)):s.push(c);return s}const ft={border:!1,stripe:!1,rowKey:"id",type:"custom",searchCols:4,panelCols:1,filterChipWidth:140,filterChipMax:3,pageSizes:[10,20,50,100],pageLayout:"total, sizes, prev, pager, next, jumper",autoHeight:!1};function ns(o,s,r){var se,te,_e,Re;const i=(se=e.inject(f.SY_UI_CONFIG_KEY,{}).proTable)!=null?se:{},a=(te=f.getMasterConfig(f.detectMicroAppName()).proTable)!=null?te:{},n=new Proxy(o,{get(k,g,x){const R=a[g];if(R!==void 0)return R;const E=Reflect.get(k,g,x);if(E!==void 0)return E;const z=g;if(z in i&&i[z]!==void 0)return i[z];const W=g;if(W in ft)return ft[W]}}),t=n,l=e.ref(),A=e.ref(),w=e.ref(),B=e.ref(t.type!=="unify"&&t.type!=="custom"),_=e.ref(null),I=e.computed(()=>e.reactive(mt(o.columns))),y=e.ref(new Map);function b(k){return Te(this,null,function*(){var x;if(!k.enum||!k.prop)return;const g=k.enum;if(typeof g=="function"){y.value.set(k.prop,[]);try{const R=yield g();y.value.set(k.prop,R)}catch(R){}}else y.value.set(k.prop,Array.isArray(g)?g:(x=g.value)!=null?x:[])})}e.provide("proTableEnumMap",y),e.provide("proTableSlots",r);const h=e.computed(()=>I.value.filter(k=>{var g,x;return((g=k.search)==null?void 0:g.component)||((x=k.search)==null?void 0:x.render)}).sort((k,g)=>{var x,R,E,z;return((R=(x=k.search)==null?void 0:x.order)!=null?R:0)-((z=(E=g.search)==null?void 0:E.order)!=null?z:0)})),p=e.computed(()=>h.value.filter(k=>{var g;return!!((g=k.search)!=null&&g.quick)}).sort((k,g)=>{var E,z,W,ne,Q,fe;const x=typeof((E=k.search)==null?void 0:E.quick)=="object"&&(W=(z=k.search)==null?void 0:z.quick.order)!=null?W:0,R=typeof((ne=g.search)==null?void 0:ne.quick)=="object"&&(fe=(Q=g.search)==null?void 0:Q.quick.order)!=null?fe:0;return x-R})),u=e.computed(()=>h.value.map(k=>{var g,x,R,E,z,W,ne,Q,fe,yt,St,gt,bt,Ct,wt;return{field:(R=(x=(g=k.search)==null?void 0:g.key)!=null?x:k.prop)!=null?R:"",label:k.label,component:(E=k.search)==null?void 0:E.component,props:(z=k.search)==null?void 0:z.props,options:(()=>{var At,kt,xt,Nt,Bt,Pt,Vt;if(((At=k.search)==null?void 0:At.options)!==void 0){const Ke=k.search.options;return Array.isArray(Ke)?Ke:(kt=e.unref(Ke))!=null?kt:void 0}if(!(!k.enum||(Nt=(xt=k.search)==null?void 0:xt.component)!=null&&Nt.includes("tree")))return typeof k.enum=="function"?(Pt=y.value.get((Bt=k.prop)!=null?Bt:""))!=null?Pt:void 0:Array.isArray(k.enum)?k.enum:(Vt=e.unref(k.enum))!=null?Vt:void 0})(),fieldNames:k.fieldNames,defaultValue:(W=k.search)==null?void 0:W.defaultValue,span:(ne=k.search)==null?void 0:ne.span,offset:(Q=k.search)==null?void 0:Q.offset,order:(fe=k.search)==null?void 0:fe.order,render:(yt=k.search)==null?void 0:yt.render,xs:(St=k.search)==null?void 0:St.xs,sm:(gt=k.search)==null?void 0:gt.sm,md:(bt=k.search)==null?void 0:bt.md,lg:(Ct=k.search)==null?void 0:Ct.lg,xl:(wt=k.search)==null?void 0:wt.xl}})),P=e.ref({}),$={};function D(){var k,g,x,R,E;for(const z of Object.keys(P.value))delete P.value[z];for(const z of Object.keys($))delete $[z];for(const z of h.value){const W=(x=(g=(k=z.search)==null?void 0:k.key)!=null?g:z.prop)!=null?x:"",ne=(E=(R=z.search)==null?void 0:R.defaultValue)!=null?E:null;P.value[W]=ne,$[W]=ne}}const{loading:F,processTableData:O,pageable:L,getTableList:M,handleSizeChange:K,handleCurrentChange:q}=ts({request:o.request,params:e.toRef(o,"params"),searchParam:P,postData:o.postData,requestError:o.requestError,pagination:o.pagination,staticData:e.computed(()=>o.data),initialPageSize:(Re=(_e=t.pageSize)!=null?_e:i.pageSize)!=null?Re:10});function Z(){Object.assign(L,{pageNum:1}),M(),s("search")}function U(){D(),Object.assign(L,{pageNum:1}),M(),s("reset")}const{selectedList:X,isSelected:ee,selectedListIds:Y,selectionChange:oe,clearSelection:ce}=es(t.rowKey);function ie(){var k,g;ce(),(g=(k=l.value)==null?void 0:k.clearSelection)==null||g.call(k)}function S(k){var g;_.value=k[(g=t.rowKey)!=null?g:"id"]}function V(){var k,g;_.value=null,(g=(k=l.value)==null?void 0:k.setCurrentRow)==null||g.call(k,void 0)}function N(k){M()}function H(k){return t.toolButton===!0?!0:t.toolButton===!1?!1:t.toolButton.includes(k)}function j(){B.value=!B.value}function le(){var k,g;(g=(k=w.value)==null?void 0:k.open)==null||g.call(k)}return e.onMounted(()=>Te(this,null,function*(){for(const k of I.value)b(k);D(),o.manualRequest||M()})),{props:n,type:t.type,tableRef:l,formRef:A,colSettingRef:w,flatColumns:I,enumMap:y,searchColumns:h,quickSearchColumns:p,searchSchema:u,searchParam:P,searchInitParam:$,loading:F,tableData:O,pageable:L,selectedList:X,selectedListIds:Y,isSelected:ee,radio:_,isShowSearch:B,getTableList:M,search:Z,reset:U,clearSelection:ie,clearRadio:V,handleSizeChange:K,handleCurrentChange:q,onSortChange:N,onRadioChange:S,selectionChange:oe,showToolBtn:H,toggleSearch:j,openColSetting:le}}const os={key:1,style:{color:"var(--el-text-color-placeholder)"}},ss=e.defineComponent({__name:"ColSetting",props:{columns:{}},setup(o,{expose:s}){const r=o,c=e.ref(!1),i=e.computed(()=>r.columns.filter(l=>{if(l.type&&["selection","index","expand","radio","sort"].includes(l.type))return!1;const A=l.isSetting;return A===void 0||A===!0}));e.computed(()=>i.value.every(l=>l.isShow!==!1)),e.computed(()=>{const l=i.value.length,A=i.value.filter(w=>w.isShow!==!1).length;return A>0&&A<l});const a=new WeakMap;function n(){i.value.forEach(l=>{a.has(l)||a.set(l,{isShow:l.isShow!==!1,sortable:l.sortable})})}function t(){n(),c.value=!0}return s({open:t}),(l,A)=>(e.openBlock(),e.createBlock(e.unref(Je),{modelValue:c.value,"onUpdate:modelValue":A[0]||(A[0]=w=>c.value=w),title:"列设置",size:"380px","append-to-body":!0,class:"sy-pro-table__col-setting"},{default:e.withCtx(()=>[e.createCommentVNode(" 全选 + 重置 "),e.createCommentVNode(` <div class="sy-pro-table__col-setting-toolbar">
4
+ */const ye=e.defineComponent({name:"SyAutocomplete",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("autocomplete"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},close:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.close)==null?void 0:t.call(n)},highlight:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.highlight)==null?void 0:l.call(t,n)},handleKeyEnter:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleKeyEnter)==null?void 0:t.call(n)},handleSelect:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleSelect)==null?void 0:l.call(t,n)}}),()=>e.h(p.AdapterAutocomplete,e.mergeProps({ref:a,class:r.b()},c),i)}}),ie=h.withInstall(ye),Se=e.defineComponent({name:"SyAlert",inheritAttrs:!1,setup(){const o=w.useNamespace("alert"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterAlert,e.mergeProps({class:o.b()},s),r)}}),Tt=h.withInstall(Se),It=e.defineComponent({name:"SyBacktop",inheritAttrs:!1,setup(){const o=w.useNamespace("backtop"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterBacktop,e.mergeProps({class:o.b()},s),r)}}),$t=h.withInstall(It),Et=e.defineComponent({name:"SyButton",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("button"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterButton,e.mergeProps({ref:a,class:r.b()},c),i)}}),Y=h.withInstall(Et),Lt=e.defineComponent({name:"SyCard",inheritAttrs:!1,setup(){const o=w.useNamespace("card"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCard,e.mergeProps({class:o.b()},s),r)}}),Mt=h.withInstall(Lt),Ft=e.defineComponent({name:"SyCascader",inheritAttrs:!1,setup(){const o=w.useNamespace("cascader"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCascader,e.mergeProps({class:o.b()},s),r)}}),Ge=h.withInstall(Ft),Dt=e.defineComponent({name:"SyCheckbox",inheritAttrs:!1,setup(){const o=w.useNamespace("checkbox"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckbox,e.mergeProps({class:o.b()},s),r)}}),zt=e.defineComponent({name:"SyCheckboxGroup",inheritAttrs:!1,setup(){const o=w.useNamespace("checkbox-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckboxGroup,e.mergeProps({class:o.b()},s),r)}}),Ye=h.withInstall(Dt),We=h.withInstall(zt),Ot=e.defineComponent({name:"SyCheckboxButton",inheritAttrs:!1,setup(){const o=w.useNamespace("checkbox-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCheckboxButton,e.mergeProps({class:o.b()},s),r)}}),Ht=h.withInstall(Ot),Ut=e.defineComponent({name:"SyColorPicker",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("color-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({show:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.show)==null?void 0:t.call(n)},hide:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.hide)==null?void 0:t.call(n)},focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterColorPicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),qt=h.withInstall(Ut),jt=e.defineComponent({name:"SyCollapse",inheritAttrs:!1,setup(){const o=w.useNamespace("collapse"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCollapse,e.mergeProps({class:o.b()},s),r)}}),Kt=e.defineComponent({name:"SyCollapseItem",inheritAttrs:!1,setup(){const o=w.useNamespace("collapse-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCollapseItem,e.mergeProps({class:o.b()},s),r)}}),Gt=h.withInstall(jt),Yt=h.withInstall(Kt),Wt=new Set(["SyHeader","SyFooter","ElHeader","ElFooter"]);function Qt(o){return o.some(s=>{var c;const r=(c=s.type)==null?void 0:c.name;return!!r&&Wt.has(r)})}const Jt=e.defineComponent({name:"SyContainer",inheritAttrs:!1,setup(){const o=w.useNamespace("container"),s=e.useAttrs(),r=e.useSlots();return()=>{const c={class:o.b()};if(!("direction"in s)&&r.default){const i=r.default();Qt(i)&&(c.direction="vertical")}return e.h(p.AdapterContainer,e.mergeProps(c,s),r)}}}),Zt=e.defineComponent({name:"SyHeader",inheritAttrs:!1,setup(){const o=w.useNamespace("header"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterHeader,e.mergeProps({class:o.b()},s),r)}}),Xt=e.defineComponent({name:"SyAside",inheritAttrs:!1,setup(){const o=w.useNamespace("aside"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterAside,e.mergeProps({class:o.b()},s),r)}}),vt=e.defineComponent({name:"SyMain",inheritAttrs:!1,setup(){const o=w.useNamespace("main"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMain,e.mergeProps({class:o.b()},s),r)}}),en=e.defineComponent({name:"SyFooter",inheritAttrs:!1,setup(){const o=w.useNamespace("footer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterFooter,e.mergeProps({class:o.b()},s),r)}}),tn=h.withInstall(Jt),nn=h.withInstall(Zt),on=h.withInstall(Xt),sn=h.withInstall(vt),rn=h.withInstall(en),ln=e.defineComponent({name:"SyConfigProvider",inheritAttrs:!1,setup(o,{expose:s}){const r=e.useAttrs(),c=e.useSlots(),i=e.ref();return s({}),()=>e.h(p.AdapterConfigProvider,e.mergeProps({ref:i},r),c)}}),an=h.withInstall(ln),cn=e.defineComponent({name:"SyDatePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("date-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterDatePicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),Qe=h.withInstall(cn),dn=e.defineComponent({name:"SyDateTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("date-time-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterDatePicker,e.mergeProps({ref:a,class:r.b(),type:"datetime"},c),i)}}),pn=h.withInstall(dn),mn=e.defineComponent({name:"SyDescriptions",inheritAttrs:!1,setup(){const o=w.useNamespace("descriptions"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDescriptions,e.mergeProps({class:o.b()},s),r)}}),fn=e.defineComponent({name:"ElDescriptionsItem",inheritAttrs:!1,setup(){const o=w.useNamespace("descriptions-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDescriptionsItem,e.mergeProps({class:o.b()},s),r)}}),hn=h.withInstall(mn),un=h.withInstall(fn,"SyDescriptionsItem"),yn=e.defineComponent({name:"SyDialog",inheritAttrs:!1,setup(){const o=w.useNamespace("dialog"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDialog,e.mergeProps({class:o.b()},s),r)}}),Sn=h.withInstall(yn),gn=e.defineComponent({name:"SyDivider",inheritAttrs:!1,setup(){const o=w.useNamespace("divider"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDivider,e.mergeProps({class:o.b()},s),r)}}),bn=h.withInstall(gn),Cn=e.defineComponent({name:"SyDrawer",inheritAttrs:!1,setup(){const o=w.useNamespace("drawer"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDrawer,e.mergeProps({class:o.b()},s),r)}}),Je=h.withInstall(Cn),wn=e.defineComponent({name:"SyDropdown",inheritAttrs:!1,setup(){const o=w.useNamespace("dropdown"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdown,e.mergeProps({class:o.b()},s),r)}}),An=e.defineComponent({name:"SyDropdownMenu",inheritAttrs:!1,setup(){const o=w.useNamespace("dropdown-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdownMenu,e.mergeProps({class:o.b()},s),r)}}),kn=e.defineComponent({name:"SyDropdownItem",inheritAttrs:!1,setup(){const o=w.useNamespace("dropdown-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterDropdownItem,e.mergeProps({class:o.b()},s),r)}}),Nn=h.withInstall(wn),xn=h.withInstall(An),Bn=h.withInstall(kn),Pn=e.defineComponent({name:"SyEmpty",inheritAttrs:!1,setup(){const o=w.useNamespace("empty"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterEmpty,e.mergeProps({class:o.b()},s),r)}}),Ze=h.withInstall(Pn),Vn=e.defineComponent({name:"SyForm",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("form"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({validate:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.validate)==null?void 0:l.call(t,...n)},validateField:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.validateField)==null?void 0:l.call(t,...n)},resetFields:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.resetFields)==null?void 0:l.call(t,...n)},scrollToField:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollToField)==null?void 0:l.call(t,...n)},clearValidate:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearValidate)==null?void 0:l.call(t,...n)}}),()=>e.h(p.AdapterForm,e.mergeProps({ref:a,class:r.b()},c),i)}}),_n=e.defineComponent({name:"SyFormItem",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("form-item"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({resetField:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.resetField)==null?void 0:t.call(n)},clearValidate:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearValidate)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterFormItem,e.mergeProps({ref:a,class:r.b()},c),i)}}),Xe=h.withInstall(Vn),ve=h.withInstall(_n),Rn=e.defineComponent({name:"SyIcon",inheritAttrs:!1,setup(){const o=e.useAttrs(),s=e.useSlots();return()=>e.h(p.AdapterIcon,e.mergeProps(o),s)}}),fe=h.withInstall(Rn),Tn=e.defineComponent({name:"SyImage",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("image"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({showPreview:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.showPreview)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterImage,e.mergeProps({ref:a,class:r.b()},c),i)}}),In=h.withInstall(Tn),$n=e.defineComponent({name:"SyInput",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("input"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},clear:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clear)==null?void 0:t.call(n)},select:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.select)==null?void 0:t.call(n)},resizeTextarea:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.resizeTextarea)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterInput,e.mergeProps({ref:a,class:r.b()},c),i)}}),$e=h.withInstall($n),En=e.defineComponent({name:"SyInputNumber",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("input-number"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterInputNumber,e.mergeProps({ref:a,class:r.b()},c),i)}}),et=h.withInstall(En),Ln=e.defineComponent({name:"SyRow",inheritAttrs:!1,setup(){const o=w.useNamespace("row"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRow,e.mergeProps({class:o.b()},s),r)}}),Mn=e.defineComponent({name:"SyCol",inheritAttrs:!1,setup(){const o=w.useNamespace("col"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterCol,e.mergeProps({class:o.b()},s),r)}}),Fn=h.withInstall(Ln),Dn=h.withInstall(Mn),zn=e.defineComponent({name:"SyLink",inheritAttrs:!1,setup(){const o=w.useNamespace("link"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterLink,e.mergeProps({class:o.b()},s),r)}}),On=h.withInstall(zn),de="sy-loading",Ee="element-loading-custom-class";function Hn(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)}function Un(o){if(o==null||o==="")return de;const s=String(e.unref(o));return s.includes(de)?s:`${de} ${s}`}function qn(o){if(o===void 0)return{customClass:de};const s=R({},o),r=s.customClass;return r===void 0?s.customClass=de:typeof r=="string"&&(s.customClass=`${de} ${r}`),s}function tt(o,s){if(!s.value)return s;if(Hn(s.value))return Q(R({},s),{value:Q(R({},s.value),{customClass:Un(s.value.customClass)})});const r=o.getAttribute(Ee);return r?r.includes(de)||o.setAttribute(Ee,`${de} ${r}`):o.setAttribute(Ee,de),s}const se=p.AdapterLoadingDirective,ke=(o,s)=>p.AdapterLoading.service(qn(o),s);Object.defineProperty(ke,"_context",{get(){return p.AdapterLoading.service._context},set(o){p.AdapterLoading.service._context=o}});const Ne={mounted(o,s,r,c){var i;(i=se.mounted)==null||i.call(se,o,tt(o,s),r,c)},updated(o,s,r,c){var i;(i=se.updated)==null||i.call(se,o,tt(o,s),r,c)},unmounted(o,s,r,c){var i;(i=se.unmounted)==null||i.call(se,o,s,r,c)},get _context(){return se._context},set _context(o){se._context=o}},jn={install(o){ke._context=o._context,Ne._context=o._context,o.directive("loading",Ne),o.config.globalProperties.$loading=ke},directive:Ne,service:ke},Kn=e.defineComponent({name:"SyMenu",inheritAttrs:!1,setup(){const o=w.useNamespace("menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenu,e.mergeProps({class:o.b()},s),r)}}),Gn=e.defineComponent({name:"SySubMenu",inheritAttrs:!1,setup(){const o=w.useNamespace("sub-menu"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSubMenu,e.mergeProps({class:o.b()},s),r)}}),Yn=e.defineComponent({name:"SyMenuItem",inheritAttrs:!1,setup(){const o=w.useNamespace("menu-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenuItem,e.mergeProps({class:o.b()},s),r)}}),Wn=e.defineComponent({name:"SyMenuItemGroup",inheritAttrs:!1,setup(){const o=w.useNamespace("menu-item-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterMenuItemGroup,e.mergeProps({class:o.b()},s),r)}}),Qn=h.withInstall(Kn),Jn=h.withInstall(Gn),Zn=h.withInstall(Yn),Xn=h.withInstall(Wn),xe="sy-message";function ge(o){if(o===void 0)return{customClass:xe};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:xe};const s=o;return Q(R({},s),{customClass:s.customClass?`${xe} ${s.customClass}`:xe})}const Le=(o,s)=>p.AdapterMessage(ge(o),s);Le.closeAll=o=>p.AdapterMessage.closeAll(o),Le.closeAllByPlacement=o=>p.AdapterMessage.closeAllByPlacement(o);const he=Le;he.success=(o,s)=>p.AdapterMessage.success(ge(o),s),he.warning=(o,s)=>p.AdapterMessage.warning(ge(o),s),he.info=(o,s)=>p.AdapterMessage.info(ge(o),s),he.error=(o,s)=>p.AdapterMessage.error(ge(o),s),Object.defineProperty(he,"_context",{get(){return p.AdapterMessage._context},set(o){p.AdapterMessage._context=o}});const Me="sy-message-box";function Be(o){return o?Q(R({},o),{customClass:o.customClass?`${Me} ${o.customClass}`:Me}):{customClass:Me}}const be=(o,s)=>p.AdapterMessageBox(Be(o),s);be.alert=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.alert(s,r,Be(c),i)},be.confirm=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.confirm(s,r,Be(c),i)},be.prompt=(...o)=>{const[s,r,c,i]=o;return p.AdapterMessageBox.prompt(s,r,Be(c),i)},be.close=()=>p.AdapterMessageBox.close();const nt=be;Object.defineProperty(nt,"_context",{get(){return p.AdapterMessageBox._context},set(o){p.AdapterMessageBox._context=o}});const Pe="sy-notification";function Ce(o){if(o===void 0)return{customClass:Pe};if(typeof o!="object"||o.__v_isVNode===!0)return{message:o,customClass:Pe};const s=o;return Q(R({},s),{customClass:s.customClass?`${Pe} ${s.customClass}`:Pe})}const ue=(o,s)=>p.AdapterNotification(Ce(o),s);ue.success=(o,s)=>p.AdapterNotification.success(Ce(o),s),ue.warning=(o,s)=>p.AdapterNotification.warning(Ce(o),s),ue.info=(o,s)=>p.AdapterNotification.info(Ce(o),s),ue.error=(o,s)=>p.AdapterNotification.error(Ce(o),s),ue.closeAll=()=>p.AdapterNotification.closeAll();const ot=ue;Object.defineProperty(ot,"_context",{get(){return p.AdapterNotification._context},set(o){p.AdapterNotification._context=o}});const vn=e.defineComponent({name:"SyPagination",inheritAttrs:!1,setup(){const o=w.useNamespace("pagination"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterPagination,e.mergeProps({class:o.b()},s),r)}}),st=h.withInstall(vn),eo=e.defineComponent({name:"SyPopconfirm",inheritAttrs:!1,setup(){const o=w.useNamespace("popconfirm"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterPopconfirm,e.mergeProps({class:o.b()},s),r)}}),to=h.withInstall(eo);function no(o,s){var n;const r=R({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const a=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:a.length?a:[s]}}const oo=e.defineComponent({name:"SyPopover",inheritAttrs:!1,setup(){const o=w.useNamespace("popover"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=no(s,o.b());return e.h(p.AdapterPopover,e.mergeProps(c,{popperClass:i}),r)}}}),so=h.withInstall(oo),ro=e.defineComponent({name:"SyProgress",inheritAttrs:!1,setup(){const o=w.useNamespace("progress"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterProgress,e.mergeProps({class:o.b()},s),r)}}),lo=h.withInstall(ro),ao=e.defineComponent({name:"SyRadio",inheritAttrs:!1,setup(){const o=w.useNamespace("radio"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadio,e.mergeProps({class:o.b()},s),r)}}),co=e.defineComponent({name:"SyRadioGroup",inheritAttrs:!1,setup(){const o=w.useNamespace("radio-group"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadioGroup,e.mergeProps({class:o.b()},s),r)}}),Fe=h.withInstall(ao),rt=h.withInstall(co),io=e.defineComponent({name:"SyRadioButton",inheritAttrs:!1,setup(){const o=w.useNamespace("radio-button"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterRadioButton,e.mergeProps({class:o.b()},s),r)}}),lt=h.withInstall(io),po=e.defineComponent({name:"SyScrollbar",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("scrollbar"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({handleScroll:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleScroll)==null?void 0:t.call(n)},scrollTo:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,...n)},setScrollTop:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollTop)==null?void 0:l.call(t,n)},setScrollLeft:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollLeft)==null?void 0:l.call(t,n)},update:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.update)==null?void 0:t.call(n)},wrapRef:()=>{var n;return(n=a.value)==null?void 0:n.wrapRef}}),()=>e.h(p.AdapterScrollbar,e.mergeProps({ref:a,class:r.b()},c),i)}}),mo=h.withInstall(po),fo=e.defineComponent({name:"SySelect",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),ho=e.defineComponent({name:"SyOption",inheritAttrs:!1,setup(){const o=w.useNamespace("option"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterOption,e.mergeProps({class:o.b()},s),r)}}),at=h.withInstall(fo),ct=h.withInstall(ho),uo=p.AdapterSelectV2,yo=e.defineComponent({name:"SySelectV2",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("select-v2"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},scrollTo:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,n)},toggleMenu:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.toggleMenu)==null?void 0:t.call(n)}}),()=>e.h(uo,e.mergeProps({ref:a,class:r.b()},c),i)}}),So=h.withInstall(yo),go=e.defineComponent({name:"SySkeleton",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("skeleton"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({get uiLoading(){var n;return(n=a.value)==null?void 0:n.uiLoading}}),()=>e.h(p.AdapterSkeleton,e.mergeProps({ref:a,class:r.b()},c),i)}}),bo=e.defineComponent({name:"SySkeletonItem",inheritAttrs:!1,setup(){const o=w.useNamespace("skeleton-item"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSkeletonItem,e.mergeProps({class:o.b()},s),r)}}),Co=h.withInstall(go),wo=h.withInstall(bo),Ao=e.defineComponent({name:"SySlider",inheritAttrs:!1,setup(){const o=w.useNamespace("slider"),s=e.useAttrs(),r=e.useSlots(),c=e.ref();return()=>e.h(p.AdapterSlider,e.mergeProps({ref:c,class:o.b()},s),r)}}),ko=h.withInstall(Ao),No=e.defineComponent({name:"SySpace",inheritAttrs:!1,setup(){const o=w.useNamespace("space"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSpace,e.mergeProps({class:o.b()},s),r)}}),xo=h.withInstall(No),Bo=e.defineComponent({name:"SySteps",inheritAttrs:!1,setup(){const o=w.useNamespace("steps"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterSteps,e.mergeProps({class:o.b()},s),r)}}),Po=e.defineComponent({name:"SyStep",inheritAttrs:!1,setup(){const o=w.useNamespace("step"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterStep,e.mergeProps({class:o.b()},s),r)}}),Vo=h.withInstall(Bo),_o=h.withInstall(Po),Ro=e.defineComponent({name:"SySwitch",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("switch"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterSwitch,e.mergeProps({ref:a,class:r.b()},c),i)}}),Ve=h.withInstall(Ro),To=e.defineComponent({name:"SyTable",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("table"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({clearSelection:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearSelection)==null?void 0:t.call(n)},getSelectionRows:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.getSelectionRows)==null?void 0:t.call(n)},toggleRowSelection:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.toggleRowSelection)==null?void 0:l.call(t,...n)},toggleAllSelection:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.toggleAllSelection)==null?void 0:t.call(n)},toggleRowExpansion:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.toggleRowExpansion)==null?void 0:l.call(t,...n)},setCurrentRow:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentRow)==null?void 0:l.call(t,...n)},clearSort:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.clearSort)==null?void 0:t.call(n)},clearFilter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearFilter)==null?void 0:l.call(t,...n)},doLayout:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.doLayout)==null?void 0:t.call(n)},sort:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.sort)==null?void 0:l.call(t,...n)},scrollTo:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.scrollTo)==null?void 0:l.call(t,...n)},setScrollTop:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollTop)==null?void 0:l.call(t,...n)},setScrollLeft:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setScrollLeft)==null?void 0:l.call(t,...n)}}),()=>e.h(p.AdapterTable,e.mergeProps({ref:a,class:r.b()},c),i)}}),Io=e.defineComponent({name:"SyTableColumn",inheritAttrs:!1,setup(){const o=w.useNamespace("table-column"),s=e.useAttrs(),r=e.useSlots();return()=>{const c=r.default?Q(R({},r),{default:(...i)=>{var a;return((a=r.default(...i))!=null?a:[]).map(n=>{var t;return((t=n==null?void 0:n.type)==null?void 0:t.name)==="SyTableColumn"?e.h(p.AdapterTableColumn,n.props,n.children):n})}}):r;return e.h(p.AdapterTableColumn,e.mergeProps({class:o.b()},s),c)}}}),De=h.withInstall(To),le=h.withInstall(Io),$o=e.defineComponent({name:"SyTabs",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("tabs"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({get currentName(){var n;return(n=a.value)==null?void 0:n.currentName},get tabNavRef(){var n;return(n=a.value)==null?void 0:n.tabNavRef}}),()=>e.h(p.AdapterTabs,e.mergeProps({ref:a,class:r.b()},c),i)}}),Eo=e.defineComponent({name:"SyTabPane",inheritAttrs:!1,setup(){const o=w.useNamespace("tab-pane"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterTabPane,e.mergeProps({class:o.b()},s),r)}}),Lo=h.withInstall($o),Mo=h.withInstall(Eo),Fo=e.defineComponent({name:"SyTag",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("tag"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({ref:()=>a.value}),()=>e.h(p.AdapterTag,e.mergeProps({ref:a,class:r.b()},c),i)}}),_e=h.withInstall(Fo),Do=e.defineComponent({name:"SyText",inheritAttrs:!1,setup(){const o=w.useNamespace("text"),s=e.useAttrs(),r=e.useSlots();return()=>e.h(p.AdapterText,e.mergeProps({class:o.b()},s),r)}}),zo=h.withInstall(Do),Oo=e.defineComponent({name:"SyTimePicker",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("time-picker"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterTimePicker,e.mergeProps({ref:a,class:r.b()},c),i)}}),it=h.withInstall(Oo),Ho=e.defineComponent({name:"SyTimeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("time-select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(p.AdapterTimeSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),dt=h.withInstall(Ho);function Uo(o,s){var n;const r=R({},o),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const a=[s,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:a.length?a:[s]}}const qo=e.defineComponent({name:"SyTooltip",inheritAttrs:!1,setup(){const o=w.useNamespace("tooltip"),s=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=Uo(s,o.b());return e.h(p.AdapterTooltip,e.mergeProps(c,{popperClass:i}),r)}}}),pe=h.withInstall(qo),jo=e.defineComponent({name:"SyTree",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("tree"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({filter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.filter)==null?void 0:l.call(t,...n)},updateKeyChildren:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.updateKeyChildren)==null?void 0:l.call(t,...n)},getCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCheckedNodes)==null?void 0:l.call(t,...n)},getCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCheckedKeys)==null?void 0:l.call(t,...n)},setCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCheckedNodes)==null?void 0:l.call(t,...n)},setCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCheckedKeys)==null?void 0:l.call(t,...n)},setChecked:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setChecked)==null?void 0:l.call(t,...n)},getHalfCheckedNodes:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getHalfCheckedNodes)==null?void 0:l.call(t,...n)},getHalfCheckedKeys:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getHalfCheckedKeys)==null?void 0:l.call(t,...n)},getCurrentKey:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCurrentKey)==null?void 0:l.call(t,...n)},getCurrentNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getCurrentNode)==null?void 0:l.call(t,...n)},setCurrentKey:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentKey)==null?void 0:l.call(t,...n)},setCurrentNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.setCurrentNode)==null?void 0:l.call(t,...n)},getNode:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.getNode)==null?void 0:l.call(t,...n)},remove:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.remove)==null?void 0:l.call(t,...n)},append:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.append)==null?void 0:l.call(t,...n)},insertBefore:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.insertBefore)==null?void 0:l.call(t,...n)},insertAfter:(...n)=>{var t,l;return(l=(t=a.value)==null?void 0:t.insertAfter)==null?void 0:l.call(t,...n)}}),()=>e.h(p.AdapterTree,e.mergeProps({ref:a,class:r.b()},c),i)}}),Ko=h.withInstall(jo),Go=e.defineComponent({name:"SyTreeSelect",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("tree-select"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({focus:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.blur)==null?void 0:t.call(n)},filter:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.filter)==null?void 0:l.call(t,n)},updateKeyChildren:(n,t)=>{var l,k;return(k=(l=a.value)==null?void 0:l.updateKeyChildren)==null?void 0:k.call(l,n,t)}}),()=>e.h(p.AdapterTreeSelect,e.mergeProps({ref:a,class:r.b()},c),i)}}),Yo=h.withInstall(Go),Wo=e.defineComponent({name:"SyUpload",inheritAttrs:!1,setup(o,{expose:s}){const r=w.useNamespace("upload"),c=e.useAttrs(),i=e.useSlots(),a=e.ref();return s({abort:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.abort)==null?void 0:l.call(t,n)},submit:()=>{var n,t;return(t=(n=a.value)==null?void 0:n.submit)==null?void 0:t.call(n)},clearFiles:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.clearFiles)==null?void 0:l.call(t,n)},handleStart:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleStart)==null?void 0:l.call(t,n)},handleRemove:n=>{var t,l;return(l=(t=a.value)==null?void 0:t.handleRemove)==null?void 0:l.call(t,n)}}),()=>e.h(p.AdapterUpload,e.mergeProps({ref:a,class:r.b()},c),i)}}),Qo=h.withInstall(Wo),Jo={input:$e,"input-number":et,"time-picker":it,"time-select":dt,autocomplete:p.AdapterAutocomplete,switch:Ve,slider:p.AdapterSlider,"color-picker":p.AdapterColorPicker},ze={input:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"input-number":o=>({placeholder:o.placeholder,style:"width: 100%"}),"time-picker":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),"time-select":o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),autocomplete:o=>({placeholder:o.placeholder,clearable:o.clearable,style:"width: 100%"}),switch:()=>({}),slider:()=>({style:"width: 100%; padding: 0 6px"}),"color-picker":()=>({})};function Zo(o){return o?Object.fromEntries(Object.entries(o).map(([s,r])=>[s.startsWith("on")?s:`on${s[0].toUpperCase()}${s.slice(1)}`,r])):{}}const Oe=e.defineComponent({name:"ProFormItem",props:{schema:{type:Object,required:!0},model:{type:Object,required:!0},modelValue:{default:void 0}},emits:["update:modelValue"],setup(o,{emit:s}){const r=e.inject("proTableEnumMap",{value:new Map}),c=e.computed({get:()=>o.modelValue,set:u=>s("update:modelValue",u)}),i=e.computed(()=>{var u,m;return(m=(u=o.schema.fieldNames)==null?void 0:u.label)!=null?m:"label"}),a=e.computed(()=>{var u,m;return(m=(u=o.schema.fieldNames)==null?void 0:u.value)!=null?m:"value"}),n=e.computed(()=>{var u,m;return(m=(u=o.schema.fieldNames)==null?void 0:u.children)!=null?m:"children"}),t=e.computed(()=>{var u;return o.schema.options!=null?o.schema.options:(u=r.value.get(o.schema.field))!=null?u:[]}),l=e.computed(()=>{const{label:u,value:m}={label:i.value,value:a.value};return u==="label"&&m==="value"?t.value:t.value.map(y=>Q(R({},y),{label:y[u],value:y[m]}))}),k=e.computed(()=>{const u=R({},o.schema.props),{label:m,value:y,children:B}={label:i.value,value:a.value,children:n.value};return Q(R({},u),{props:Q(R({},u.props),{label:m,children:B}),nodeKey:y})}),A=e.computed(()=>{const u=R({},o.schema.props),{label:m,value:y,children:B}={label:i.value,value:a.value,children:n.value};return Q(R({},u),{props:Q(R({},u.props),{label:m,value:y,children:B})})}),x=e.computed(()=>R({},o.schema.props)),_=e.computed(()=>{var m,y,B;const u=(y=(m=o.schema.props)==null?void 0:m.type)!=null?y:"";return["daterange","datetimerange","monthrange","yearrange"].includes(u)||!!((B=o.schema.props)!=null&&B.isRange)}),T=e.computed(()=>{var m,y;if(((m=o.schema.props)==null?void 0:m.placeholder)!=null)return o.schema.props.placeholder;const u=(y=o.schema.component)!=null?y:"input";return["input","input-number","autocomplete"].includes(u)?"请输入":"请选择"}),g=e.computed(()=>{var u;return((u=o.schema.props)==null?void 0:u.clearable)!=null?o.schema.props.clearable:o.schema.defaultValue==null}),C=e.computed(()=>{var m,y,B;const u=R({},o.schema.props);return _.value?Q(R({},u),{rangeSeparator:(m=u.rangeSeparator)!=null?m:"至",startPlaceholder:(y=u.startPlaceholder)!=null?y:"开始时间",endPlaceholder:(B=u.endPlaceholder)!=null?B:"结束时间",clearable:g.value}):Q(R({},u),{placeholder:T.value,clearable:g.value})});return()=>{var F,M,D,E,L,K,q,J;const{schema:u}=o,m=(F=u.component)!=null?F:"input",y=Zo(u.events),B={modelValue:c.value,"onUpdate:modelValue":H=>c.value=H};if(u.render)return u.render(o.model);if(m==="text")return e.h("span",{class:"sy-pro-form-item__text"},String((M=c.value)!=null?M:""));if(m==="select")return e.h(at,Q(R(R(R({},B),x.value),y),{placeholder:T.value,clearable:g.value,style:"width: 100%"}),{default:e.withCtx(()=>t.value.map(H=>e.h(ct,{key:H[a.value],label:H[i.value],value:H[a.value]})))});if(m==="select-v2")return e.h(p.AdapterSelectV2,Q(R(R(R({},B),x.value),y),{placeholder:T.value,clearable:g.value,options:l.value,style:"width: 100%"}));if(m==="tree-select"){const H=(E=(D=o.schema.props)==null?void 0:D.data)!=null?E:t.value;return e.h(p.AdapterTreeSelect,Q(R(R(R({},B),k.value),y),{placeholder:T.value,clearable:g.value,data:H,style:"width: 100%"}))}if(m==="cascader"){const H=(K=(L=o.schema.props)==null?void 0:L.options)!=null?K:t.value;return e.h(Ge,Q(R(R(R({},B),A.value),y),{placeholder:T.value,clearable:g.value,options:H,style:"width: 100%"}))}if(m==="radio"||m==="radio-button"){const H=m==="radio"?Fe:lt;return e.h(rt,R(R(R({},B),x.value),y),{default:()=>t.value.map(Z=>e.h(H,{key:Z[a.value],value:Z[a.value]},{default:()=>String(Z[i.value])}))})}if(m==="checkbox")return e.h(We,R(R(R({},B),x.value),y),{default:()=>t.value.map(H=>e.h(Ye,{key:H[a.value],value:H[a.value]},{default:()=>String(H[i.value])}))});if(m==="date-picker")return e.h(Qe,Q(R(R(R({},B),C.value),y),{style:"width: 100%"}));const $=Jo[m];if($){const H=(J=(q=ze[m])==null?void 0:q.call(ze,{placeholder:T.value,clearable:g.value}))!=null?J:{};return e.h($,R(R(R(R({},B),x.value),y),H))}return e.h($e,Q(R(R(R({},B),x.value),y),{placeholder:T.value,clearable:g.value,style:"width: 100%"}))}}}),Xo=2,vo=e.defineComponent({name:"SyProForm",__name:"ProForm",props:{model:{},schema:{},cols:{},labelWidth:{},labelPosition:{},disabled:{type:Boolean,default:!1},size:{},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},queryBtnText:{default:"查询"},resetBtnText:{default:"重置"},loading:{type:Boolean,default:!1},collapsible:{type:[Boolean,Number],default:!1},defaultCollapsed:{type:Boolean,default:!0},buttonAlign:{default:"inline"}},emits:["search","reset"],setup(o,{expose:s,emit:r}){var ae,ce;const c=e.useSlots(),i=o,a=(ae=e.inject(h.SY_UI_CONFIG_KEY,{}).proForm)!=null?ae:{},n=(ce=h.getMasterConfig(h.detectMicroAppName()).proForm)!=null?ce:{},t=e.computed(()=>{var S,P,N;return(N=(P=(S=n.cols)!=null?S:i.cols)!=null?P:a.cols)!=null?N:4}),l=e.computed(()=>{var S,P,N;return(N=(P=(S=n.labelWidth)!=null?S:i.labelWidth)!=null?P:a.labelWidth)!=null?N:"auto"}),k=e.computed(()=>{var S,P,N;return(N=(P=(S=n.labelPosition)!=null?S:i.labelPosition)!=null?P:a.labelPosition)!=null?N:"right"}),A=e.computed(()=>{var S,P;return(P=(S=n.size)!=null?S:i.size)!=null?P:a.size}),x=r;w.useNamespace("pro-form");const _=e.ref(),T=e.ref(i.defaultCollapsed),g=e.ref("xl");function C(){const S=window.innerWidth;return S<768?"xs":S<992?"sm":S<1200?"md":S<1920?"lg":"xl"}function u(){g.value=C()}e.onMounted(()=>{g.value=C(),window.addEventListener("resize",u)}),e.onUnmounted(()=>{window.removeEventListener("resize",u)});const m=e.computed(()=>i.schema.filter(S=>typeof S.hidden=="function"?!S.hidden(i.model):!S.hidden).sort((S,P)=>{var N,U;return((N=S.order)!=null?N:0)-((U=P.order)!=null?U:0)}));function y(S){var N,U,j;const P=g.value;return(j=(U=(N=S[P])==null?void 0:N.span)!=null?U:S.span)!=null?j:1}function B(S){var N,U,j;const P=g.value;return(j=(U=(N=S[P])==null?void 0:N.offset)!=null?U:S.offset)!=null?j:0}const $=e.computed(()=>{var N,U,j,ne,oe,re;const S=t.value;if(typeof S=="number")return S;const P=g.value;return(re=(oe=(ne=(j=(U=(N=S==null?void 0:S[P])!=null?N:S==null?void 0:S.xl)!=null?U:S==null?void 0:S.lg)!=null?j:S==null?void 0:S.md)!=null?ne:S==null?void 0:S.sm)!=null?oe:S==null?void 0:S.xs)!=null?re:4}),F=e.computed(()=>{const S=i.collapsible;return typeof S=="number"&&S>0?S:1}),M=e.computed(()=>{if(!i.collapsible)return-1;const S=i.buttonAlign==="inline"&&(i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons),P=$.value*F.value-(S?Xo:0);if(P<=0)return 0;let N=0;for(let U=0;U<m.value.length;U++){const j=m.value[U];if(N+=y(j)+B(j),N>P)return U}return-1}),D=e.computed(()=>M.value>=0),E=e.computed(()=>({display:"grid",gridTemplateColumns:`repeat(${$.value}, 1fr)`,gap:"0 16px"}));function L(S){const P=$.value,N=Math.min(y(S),P),U=B(S),j={gridColumn:`span ${N}`};return U>0&&(j.marginLeft=`calc(${U/P*100}% + ${U*16}px)`),j}const K=e.computed(()=>{const S=$.value,P=m.value,N=i.collapsible&&T.value&&M.value>=0?M.value:P.length;let U=0;for(let j=0;j<N;j++){const ne=y(P[j]),oe=B(P[j]),re=U+ne+oe;U=re>=S?re%S:re}return U}),q=e.computed(()=>{const S=K.value;return{gridColumn:`${S===0?1:S+1} / -1`}}),J={left:"flex-start",center:"center",right:"flex-end"},H=e.computed(()=>{var P;const S={justifyContent:(P=J[i.buttonAlign])!=null?P:"flex-start"};if(i.buttonAlign==="left"&&k.value!=="top"){const N=l.value;N&&N!=="auto"&&(S.paddingLeft=typeof N=="number"?`${N}px`:String(N))}return S}),Z=e.computed(()=>i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons);function W(S,P){i.model[S]=P}function ee(){var S;(S=_.value)==null||S.validate(P=>{P&&x("search",i.model)})}function te(){var S,P;for(const N of i.schema)W(N.field,(S=N.defaultValue)!=null?S:null);(P=_.value)==null||P.clearValidate(),x("reset",i.model)}return s({formRef:_,validate:S=>{var P;return(P=_.value)==null?void 0:P.validate(S)},validateField:(S,P)=>{var N;return(N=_.value)==null?void 0:N.validateField(S,P)},resetFields:te,clearValidate:S=>{var P;return(P=_.value)==null?void 0:P.clearValidate(S)}}),(S,P)=>(e.openBlock(),e.createBlock(e.unref(Xe),{ref_key:"formRef",ref:_,class:"sy-pro-form",model:o.model,"label-width":l.value,"label-position":k.value,disabled:o.disabled,size:A.value,onSubmit:P[2]||(P[2]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"sy-pro-form__grid",style:e.normalizeStyle(E.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(N,U)=>{var j;return e.openBlock(),e.createElementBlock(e.Fragment,{key:N.field},[!o.collapsible||!T.value||M.value<0||U<M.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item",style:e.normalizeStyle(L(N))},[e.createCommentVNode(" slot 类型:渲染具名插槽,用户自行提供完整的 sy-form-item 内容 "),N.component==="slot"?e.renderSlot(S.$slots,N.field,{key:0,item:N}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 内置组件类型:走原有渲染路径 "),e.createVNode(e.unref(ve),e.mergeProps({prop:N.field,label:(j=N.label)!=null?j:""},{ref_for:!0},N.labelWidth!=null?{labelWidth:N.labelWidth}:{},{rules:N.rules}),e.createSlots({default:e.withCtx(()=>[e.createVNode(Oe,{"model-value":o.model[N.field],schema:N,model:o.model,"onUpdate:modelValue":ne=>W(N.field,ne)},null,8,["model-value","schema","model","onUpdate:modelValue"])]),_:2},[N.tooltip?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(N.label),1),e.createVNode(e.unref(pe),{content:N.tooltip,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(fe),{class:"sy-pro-form__tip-icon",style:{"margin-left":"4px","vertical-align":"middle",cursor:"pointer"}},{default:e.withCtx(()=>[e.createVNode(e.unref(X.InfoFilled))]),_:1})]),_:1},8,["content"])]),key:"0"}:void 0]),1040,["prop","label","rules"])],2112))],4)):e.createCommentVNode("v-if",!0)],64)}),128)),e.createCommentVNode(" 默认插槽:额外自定义字段 "),e.renderSlot(S.$slots,"default"),e.createCommentVNode(" 按钮区 —— inline 模式:在网格内贴右 "),o.buttonAlign==="inline"&&(Z.value||o.collapsible&&D.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item sy-pro-form__buttons",style:e.normalizeStyle(q.value)},[e.renderSlot(S.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",loading:o.loading,onClick:ee},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,onClick:te},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(S.$slots,"extra-buttons")]),o.collapsible&&D.value?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",link:"",onClick:P[0]||(P[0]=N=>T.value=!T.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.value?"展开":"合并")+" ",1),e.createVNode(e.unref(fe),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value?e.unref(X.ArrowDown):e.unref(X.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)],4),e.createCommentVNode(" 按钮区 —— 独立成行模式(left / center / right) "),o.buttonAlign!=="inline"&&(Z.value||o.collapsible&&D.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__footer",style:e.normalizeStyle(H.value)},[e.renderSlot(S.$slots,"buttons",{},()=>[o.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",loading:o.loading,onClick:ee},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),o.showResetBtn?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,onClick:te},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(S.$slots,"extra-buttons")]),o.collapsible&&D.value?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",link:"",onClick:P[1]||(P[1]=N=>T.value=!T.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.value?"展开":"合并")+" ",1),e.createVNode(e.unref(fe),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value?e.unref(X.ArrowDown):e.unref(X.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)]),_:3},8,["model","label-width","label-position","disabled","size"]))}}),pt=h.withInstall(vo);function es(o="id"){const s=e.ref([]),r=e.computed(()=>s.value.length>0),c=e.computed(()=>s.value.map(n=>n[o]));function i(n){s.value=n}function a(){s.value=[]}return{selectedList:s,isSelected:r,selectedListIds:c,selectionChange:i,clearSelection:a}}function ts(o){const{request:s,params:r,searchParam:c,postData:i,requestError:a,pagination:n=!0,staticData:t,initialPageSize:l}=o,k=e.ref(!1),A=e.ref([]),x=e.reactive({pageNum:1,pageSize:l!=null?l:10,total:0}),_=e.reactive({}),T=e.reactive({}),g=e.computed(()=>{if(!(t!=null&&t.value))return A.value;if(!n)return t.value;const M=(x.pageNum-1)*x.pageSize;return t.value.slice(M,M+x.pageSize)});function C(M,D){for(const[E,L]of Object.entries(M))(L!=null&&L!==""||L===!1||L===0)&&(D[E]=L)}function u(){const M={};return C(T,M),c!=null&&c.value&&C(c.value,M),M}function m(){return Te(this,null,function*(){var M,D,E;if(t!=null&&t.value){x.total=t.value.length;return}if(s)try{k.value=!0;const L=u(),K=R(R(R({},_),L),(M=r==null?void 0:r.value)!=null?M:{});n&&(K.pageNum=x.pageNum,K.pageSize=x.pageSize);const q=yield s(K);if(!q.success){a==null||a(q);return}let J=(D=q.data)!=null?D:[];i&&(J=i(J)),A.value=J,n&&(x.total=(E=q.total)!=null?E:0)}catch(L){a==null||a(L)}finally{k.value=!1}})}function y(){x.pageNum=1,m()}function B(){var M;x.pageNum=1;for(const D of Object.keys(T))T[D]=(M=_[D])!=null?M:null;m()}function $(M){x.pageSize=M,x.pageNum=1,m()}function F(M){x.pageNum=M,m()}return r&&e.watch(r,()=>m(),{deep:!0}),{loading:k,tableData:A,pageable:x,processTableData:g,searchParam:T,searchInitParam:_,getTableList:m,search:y,reset:B,handleSizeChange:$,handleCurrentChange:F}}function mt(o){var r;const s=[];for(const c of o)(r=c.children)!=null&&r.length?s.push(c,...mt(c.children)):s.push(c);return s}const ft={border:!1,stripe:!1,rowKey:"id",type:"custom",searchCols:4,panelCols:1,filterChipWidth:140,filterChipMax:3,pageSizes:[10,20,50,100],pageLayout:"total, sizes, prev, pager, next, jumper",autoHeight:!1};function ns(o,s,r){var oe,re,Re,we;const i=(oe=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?oe:{},a=(re=h.getMasterConfig(h.detectMicroAppName()).proTable)!=null?re:{},n=new Proxy(o,{get(d,b,V){const I=a[b];if(I!==void 0)return I;const z=Reflect.get(d,b,V);if(z!==void 0)return z;const O=b;if(O in i&&i[O]!==void 0)return i[O];const v=b;if(v in ft)return ft[v]}}),t=n,l=e.ref(),k=e.ref(),A=e.ref(),x=e.ref(t.type!=="unify"&&t.type!=="custom"),_=e.ref(null),T=e.computed(()=>e.reactive(mt(o.columns))),g=e.ref(new Map);function C(d){return Te(this,null,function*(){var V;if(!d.enum||!d.prop)return;const b=d.enum;if(typeof b=="function"){g.value.set(d.prop,[]);try{const I=yield b();g.value.set(d.prop,I)}catch(I){}}else g.value.set(d.prop,Array.isArray(b)?b:(V=b.value)!=null?V:[])})}e.provide("proTableEnumMap",g),e.provide("proTableSlots",r);const u=e.computed(()=>T.value.filter(d=>{var b,V;return((b=d.search)==null?void 0:b.component)||((V=d.search)==null?void 0:V.render)}).sort((d,b)=>{var V,I,z,O;return((I=(V=d.search)==null?void 0:V.order)!=null?I:0)-((O=(z=b.search)==null?void 0:z.order)!=null?O:0)})),m=e.computed(()=>u.value.filter(d=>{var b;return!!((b=d.search)!=null&&b.quick)}).sort((d,b)=>{var z,O,v,G,me,Ae;const V=typeof((z=d.search)==null?void 0:z.quick)=="object"&&(v=(O=d.search)==null?void 0:O.quick.order)!=null?v:0,I=typeof((G=b.search)==null?void 0:G.quick)=="object"&&(Ae=(me=b.search)==null?void 0:me.quick.order)!=null?Ae:0;return V-I})),y=e.computed(()=>u.value.map(d=>{var b,V,I,z,O,v,G,me,Ae,yt,St,gt,bt,Ct,wt;return{field:(I=(V=(b=d.search)==null?void 0:b.key)!=null?V:d.prop)!=null?I:"",label:d.label,component:(z=d.search)==null?void 0:z.component,props:(O=d.search)==null?void 0:O.props,options:(()=>{var At,kt,Nt,xt,Bt,Pt,Vt;if(((At=d.search)==null?void 0:At.options)!==void 0){const Ke=d.search.options;return Array.isArray(Ke)?Ke:(kt=e.unref(Ke))!=null?kt:void 0}if(!(!d.enum||(xt=(Nt=d.search)==null?void 0:Nt.component)!=null&&xt.includes("tree")))return typeof d.enum=="function"?(Pt=g.value.get((Bt=d.prop)!=null?Bt:""))!=null?Pt:void 0:Array.isArray(d.enum)?d.enum:(Vt=e.unref(d.enum))!=null?Vt:void 0})(),fieldNames:d.fieldNames,defaultValue:(v=d.search)==null?void 0:v.defaultValue,span:(G=d.search)==null?void 0:G.span,offset:(me=d.search)==null?void 0:me.offset,order:(Ae=d.search)==null?void 0:Ae.order,render:(yt=d.search)==null?void 0:yt.render,xs:(St=d.search)==null?void 0:St.xs,sm:(gt=d.search)==null?void 0:gt.sm,md:(bt=d.search)==null?void 0:bt.md,lg:(Ct=d.search)==null?void 0:Ct.lg,xl:(wt=d.search)==null?void 0:wt.xl}})),B=e.ref({}),$={};function F(){var d,b,V,I,z;for(const O of Object.keys(B.value))delete B.value[O];for(const O of Object.keys($))delete $[O];for(const O of u.value){const v=(V=(b=(d=O.search)==null?void 0:d.key)!=null?b:O.prop)!=null?V:"",G=(z=(I=O.search)==null?void 0:I.defaultValue)!=null?z:null;B.value[v]=G,$[v]=G}}const{loading:M,processTableData:D,pageable:E,getTableList:L,handleSizeChange:K,handleCurrentChange:q}=ts({request:o.request,params:e.toRef(o,"params"),searchParam:B,postData:o.postData,requestError:o.requestError,pagination:o.pagination,staticData:e.computed(()=>o.data),initialPageSize:(we=(Re=t.pageSize)!=null?Re:i.pageSize)!=null?we:10});function J(){Object.assign(E,{pageNum:1}),L(),s("search")}function H(){F(),Object.assign(E,{pageNum:1}),L(),s("reset")}const{selectedList:Z,isSelected:W,selectedListIds:ee,selectionChange:te,clearSelection:ae}=es(t.rowKey);function ce(){var d,b;ae(),(b=(d=l.value)==null?void 0:d.clearSelection)==null||b.call(d)}function S(d){var b;_.value=d[(b=t.rowKey)!=null?b:"id"]}function P(){var d,b;_.value=null,(b=(d=l.value)==null?void 0:d.setCurrentRow)==null||b.call(d,void 0)}function N(d){L()}function U(d){return t.toolButton===!0?!0:t.toolButton===!1?!1:t.toolButton.includes(d)}function j(){x.value=!x.value}function ne(){var d,b;(b=(d=A.value)==null?void 0:d.open)==null||b.call(d)}return e.onMounted(()=>Te(this,null,function*(){for(const d of T.value)C(d);F(),o.manualRequest||L()})),{props:n,type:t.type,tableRef:l,formRef:k,colSettingRef:A,flatColumns:T,enumMap:g,searchColumns:u,quickSearchColumns:m,searchSchema:y,searchParam:B,searchInitParam:$,loading:M,tableData:D,pageable:E,selectedList:Z,selectedListIds:ee,isSelected:W,radio:_,isShowSearch:x,getTableList:L,search:J,reset:H,clearSelection:ce,clearRadio:P,handleSizeChange:K,handleCurrentChange:q,onSortChange:N,onRadioChange:S,selectionChange:te,showToolBtn:U,toggleSearch:j,openColSetting:ne}}const os={key:1,style:{color:"var(--el-text-color-placeholder)"}},ss=e.defineComponent({__name:"ColSetting",props:{columns:{}},setup(o,{expose:s}){const r=o,c=e.ref(!1),i=e.computed(()=>r.columns.filter(l=>{if(l.type&&["selection","index","expand","radio","sort"].includes(l.type))return!1;const k=l.isSetting;return k===void 0||k===!0}));e.computed(()=>i.value.every(l=>l.isShow!==!1)),e.computed(()=>{const l=i.value.length,k=i.value.filter(A=>A.isShow!==!1).length;return k>0&&k<l});const a=new WeakMap;function n(){i.value.forEach(l=>{a.has(l)||a.set(l,{isShow:l.isShow!==!1,sortable:l.sortable})})}function t(){n(),c.value=!0}return s({open:t}),(l,k)=>(e.openBlock(),e.createBlock(e.unref(Je),{modelValue:c.value,"onUpdate:modelValue":k[0]||(k[0]=A=>c.value=A),title:"列设置",size:"380px","append-to-body":!0,class:"sy-pro-table__col-setting"},{default:e.withCtx(()=>[e.createCommentVNode(" 全选 + 重置 "),e.createCommentVNode(` <div class="sy-pro-table__col-setting-toolbar">
5
5
  <sy-checkbox :model-value="checkAll" :indeterminate="isIndeterminate" @change="onCheckAll"> 全部显示 </sy-checkbox>
6
6
  <sy-button type="primary" link @click="onReset">重置</sy-button>
7
- </div> `),e.createCommentVNode(" 列配置表格 "),e.createVNode(e.unref(De),{data:i.value,"row-key":"prop",border:!0,"default-expand-all":"","tree-props":{children:"_children"}},{empty:e.withCtx(()=>[...A[1]||(A[1]=[e.createElementVNode("div",{style:{padding:"24px 0",color:"var(--el-text-color-secondary)","font-size":"13px"}},"暂无可配置列",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(ae),{prop:"label",label:"列名",align:"left","min-width":"100"},{default:e.withCtx(({row:w})=>{var B,_;return[e.createTextVNode(e.toDisplayString((_=(B=w.label)!=null?B:w.prop)!=null?_:"—"),1)]}),_:1}),e.createVNode(e.unref(ae),{prop:"isShow",label:"显示",align:"center",width:"80"},{default:e.withCtx(({row:w})=>[e.createVNode(e.unref(Pe),{"model-value":w.isShow!==!1,"onUpdate:modelValue":B=>{w.isShow=B}},null,8,["model-value","onUpdate:modelValue"])]),_:1}),e.createVNode(e.unref(ae),{prop:"sortable",label:"排序",align:"center",width:"80"},{default:e.withCtx(({row:w})=>[typeof w.sortable=="boolean"?(e.openBlock(),e.createBlock(e.unref(Pe),{key:0,modelValue:w.sortable,"onUpdate:modelValue":B=>w.sortable=B},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("span",os,"—"))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]))}}),He=e.defineComponent({__name:"ProTableColSetting",props:{context:{}},setup(o,{expose:s}){const c=o.context.flatColumns,i=e.ref();function a(){var n,t;(t=(n=i.value)==null?void 0:n.open)==null||t.call(n)}return s({open:a}),(n,t)=>(e.openBlock(),e.createBlock(ss,{ref_key:"innerRef",ref:i,columns:e.unref(c)},null,8,["columns"]))}}),rs={key:0,class:"sy-pro-table__pagination"},Ue=e.defineComponent({__name:"ProTablePagination",props:{context:{}},setup(o){const s=o,r=s.context.props,c=s.context.pageable,i=s.context.handleSizeChange,a=s.context.handleCurrentChange;return(n,t)=>e.unref(r).pagination&&e.unref(c).total>0?(e.openBlock(),e.createElementBlock("div",rs,[e.renderSlot(n.$slots,"pagination",{},()=>[e.createVNode(e.unref(st),{"current-page":e.unref(c).pageNum,"onUpdate:currentPage":t[0]||(t[0]=l=>e.unref(c).pageNum=l),"page-size":e.unref(c).pageSize,"onUpdate:pageSize":t[1]||(t[1]=l=>e.unref(c).pageSize=l),total:e.unref(c).total,"page-sizes":e.unref(r).pageSizes,layout:e.unref(r).pageLayout,background:"",onSizeChange:e.unref(i),onCurrentChange:e.unref(a)},null,8,["current-page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])])):e.createCommentVNode("v-if",!0)}}),qe=e.defineComponent({__name:"ProTableSearchRenderer",props:{context:{},cols:{default:4},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!0}},setup(o,{expose:s}){const r=o,c=r.context.searchParam,i=r.context.searchSchema,a=r.context.search,n=r.context.reset,t=e.ref();return s({validate:l=>{var A,w;return(w=(A=t.value)==null?void 0:A.validate)==null?void 0:w.call(A,l)},resetFields:()=>{var l,A;return(A=(l=t.value)==null?void 0:l.resetFields)==null?void 0:A.call(l)},clearValidate:l=>{var A,w;return(w=(A=t.value)==null?void 0:A.clearValidate)==null?void 0:w.call(A,l)},formRef:t}),(l,A)=>(e.openBlock(),e.createBlock(e.unref(pt),{ref_key:"innerFormRef",ref:t,model:e.unref(c),schema:e.unref(i),cols:o.cols,"show-query-btn":o.showQueryBtn,"show-reset-btn":o.showResetBtn,collapsible:o.collapsible,onSearch:e.unref(a),onReset:e.unref(n)},null,8,["model","schema","cols","show-query-btn","show-reset-btn","collapsible","onSearch","onReset"]))}}),ls=e.defineComponent({__name:"ProTableColumn",props:{column:{}},emits:["radioChange"],setup(o){const s=o,r=e.inject("proTableEnumMap",{value:new Map}),c=e.inject("proTableSlots",{}),i=e.computed(()=>{const y=s.column.isShow;return y===void 0?!0:e.unref(y)}),a=e.computed(()=>{var b,h,p,u;const y=s.column.enum;return typeof y=="function"?(h=r.value.get((b=s.column.prop)!=null?b:""))!=null?h:[]:y?e.unref(y):(u=r.value.get((p=s.column.prop)!=null?p:""))!=null?u:[]});function n(y){var P,$;const{fieldNames:b}=s.column,h=(P=b==null?void 0:b.label)!=null?P:"label",p=($=b==null?void 0:b.value)!=null?$:"value",u=a.value.find(D=>D[p]===y);return u?u[h]:String(y!=null?y:"")}function t(y){var u;const{fieldNames:b}=s.column,h=(u=b==null?void 0:b.value)!=null?u:"value",p=a.value.find(P=>P[h]===y);return(p==null?void 0:p.tagType)||void 0}function l(y){return y.split(".").reduce((h,p,u)=>u===0?h+p:h+p.charAt(0).toUpperCase()+p.slice(1),"")}function A(y){var $;const{column:b}=s;if(b.render)return b.render(y);if(b.type==="expand"){const D="expand";return c[D]?c[D](y):null}const h=($=b.prop)!=null?$:"",p=y.row[h],u=l(h);if(c[u])return c[u](y);if(b.isFilterEnum!==!1&&a.value.length>0){if(b.tag){const D=t(p);return e.h(Ve,D?{type:D}:{},()=>n(p))}return e.h("span",{},n(p))}return b.tag?e.h(Ve,{},()=>String(p!=null?p:"")):e.h("span",{},String(p!=null?p:""))}function w(y){var p,u;const{column:b}=s;if(b.headerRender)return b.headerRender(y);const h=`${l((p=b.prop)!=null?p:"")}Header`;return c[h]?c[h](y):(u=b.label)!=null?u:""}const B=e.defineComponent({name:"ProTableExpandRenderer",props:{scope:{type:Object,required:!0}},setup(y){return()=>c.expand?c.expand(y.scope):null}}),_=e.defineComponent({name:"ProTableHeaderRenderer",props:{scope:{type:Object,required:!0}},setup(y){return()=>w(y.scope)}}),I=e.defineComponent({name:"ProTableCellRenderer",props:{scope:{type:Object,required:!0}},setup(y){return()=>A(y.scope)}});return(y,b)=>{var p;const h=e.resolveComponent("ProTableColumn",!0);return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(" 多级表头 "),(p=o.column.children)!=null&&p.length?(e.openBlock(),e.createBlock(e.unref(ae),{key:0,label:o.column.label,align:o.column.align},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.column.children,u=>{var P;return e.openBlock(),e.createBlock(h,{key:(P=u.prop)!=null?P:u.label,column:u},null,8,["column"])}),128))]),_:1},8,["label","align"])):o.column.type&&["selection","index"].includes(o.column.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 特殊列:selection / index(自闭合,无需 slot) "),e.createVNode(e.unref(ae),e.normalizeProps(e.guardReactiveProps(o.column)),null,16)],2112)):o.column.type==="expand"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" expand 列:必须通过 #default slot 提供展开行内容 "),e.createVNode(e.unref(ae),e.normalizeProps(e.guardReactiveProps(o.column)),{default:e.withCtx(u=>[e.createVNode(e.unref(B),{scope:u},null,8,["scope"])]),_:1},16)],2112)):o.column.type==="radio"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" radio 列 "),e.createVNode(e.unref(ae),e.mergeProps(o.column,{width:"60",align:"center"}),{default:e.withCtx(u=>[e.createVNode(e.unref(Fe),{modelValue:u.row.__radioSelected,"onUpdate:modelValue":P=>u.row.__radioSelected=P,value:!0,onChange:()=>y.$emit("radioChange",u.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1},16)],2112)):o.column.type==="sort"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createCommentVNode(" sort 列(拖拽手柄) "),e.createVNode(e.unref(ae),e.mergeProps(o.column,{width:"60",align:"center",label:"排序"}),{default:e.withCtx(()=>[e.createVNode(e.unref(Ve),{class:"move",style:{cursor:"move"}},{default:e.withCtx(()=>[e.createVNode(e.unref(he),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.DCaret))]),_:1})]),_:1})]),_:1},16)],2112)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createCommentVNode(" 普通列 "),e.createVNode(e.unref(ae),e.normalizeProps(e.guardReactiveProps(o.column)),{header:e.withCtx(u=>[e.createVNode(e.unref(_),{scope:u},null,8,["scope"])]),default:e.withCtx(u=>[e.createVNode(e.unref(I),{scope:u},null,8,["scope"])]),_:1},16)],2112))],64)):e.createCommentVNode("v-if",!0)}}}),as={class:"sy-pro-table__table"},cs={class:"sy-pro-table__empty"},je=e.defineComponent({__name:"ProTableTable",props:{context:{},tableHeight:{},tableMaxHeight:{},onDragSort:{type:Function}},setup(o){const s=o,r=s.context.props,c=e.computed(()=>s.tableHeight),i=e.computed(()=>s.tableMaxHeight),a=s.context.tableRef,n=s.context.loading,t=s.context.tableData,l=s.context.flatColumns,A=s.context.selectionChange,w=s.context.onSortChange,B=s.context.onRadioChange;function _(y){a.value=y}function I(){var h;if(!r.columns.some(p=>p.type==="sort")||!a.value)return;const b=(h=a.value.$el)==null?void 0:h.querySelector("tbody");b&&Ie.create(b,{handle:".move",animation:150,onEnd({newIndex:p,oldIndex:u}){var D;if(p===u)return;const P=t.value,$=P.splice(u,1)[0];P.splice(p,0,$),(D=s.onDragSort)==null||D.call(s,{newIndex:p,oldIndex:u})}})}return e.onMounted(()=>{e.nextTick(()=>I())}),(y,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" wrapper 保证 querySelector 能找到 .sy-pro-table__table,height 直接传给 el-table "),e.createElementVNode("div",as,[e.withDirectives((e.openBlock(),e.createBlock(e.unref(De),{ref:_,height:c.value,"max-height":i.value,data:e.unref(t),border:e.unref(r).border,stripe:e.unref(r).stripe,"row-key":e.unref(r).rowKey,size:e.unref(r).size,"highlight-current-row":e.unref(r).highlightCurrentRow,onSelectionChange:e.unref(A),onSortChange:e.unref(w)},{append:e.withCtx(()=>[e.renderSlot(y.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(y.$slots,"empty",{},()=>[e.createElementVNode("div",cs,[e.createVNode(e.unref(Ze),{description:"暂无数据"})])])]),default:e.withCtx(()=>[e.renderSlot(y.$slots,"default"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),h=>{var p,u;return e.openBlock(),e.createBlock(ls,{key:(u=(p=h.prop)!=null?p:h.label)!=null?u:h.type,column:h,onRadioChange:e.unref(B)},null,8,["column","onRadioChange"])}),128))]),_:3},8,["height","max-height","data","border","stripe","row-key","size","highlight-current-row","onSelectionChange","onSortChange"])),[[e.unref(d.AdapterLoadingDirective),e.unref(n)]])])],2112))}}),is={key:0,class:"sy-pro-table__search"},ds={class:"sy-pro-table__main"},ps={class:"sy-pro-table__header"},ms={class:"sy-pro-table__header-left"},fs={class:"sy-pro-table__header-right"},hs=e.defineComponent({__name:"ClassicLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var O;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.selectedList,n=s.context.selectedListIds,t=s.context.isSelected,l=s.context.getTableList,A=s.context.openColSetting,w=s.context.toggleSearch,B=s.context.showToolBtn,_=s.context.formRef,I=s.context.colSettingRef,y=e.ref(),b=e.ref(void 0),h=e.ref(void 0),p=(O=e.inject(f.SY_UI_CONFIG_KEY,{}).proTable)!=null?O:{};function u(){var ee,Y;const L=y.value;if(!L)return;const M=L.querySelector(".sy-pro-table__table"),K=L.querySelector(".sy-pro-table__pagination");if(!M)return;const q=M.getBoundingClientRect().top,Z=K?K.getBoundingClientRect().height:0,U=(Y=(ee=r.heightOffset)!=null?ee:p.heightOffset)!=null?Y:0,X=Math.floor(window.innerHeight-q-Z-U);return X>80?X:void 0}function P(){if(r.height!==void 0){b.value=r.height,h.value=void 0;return}if(r.autoHeight===!0){b.value=u(),h.value=void 0;return}if(r.maxHeight!==void 0){b.value=void 0,h.value=r.maxHeight;return}b.value=void 0,h.value=u()}e.watch(c,()=>e.nextTick(P));let $=null;e.onMounted(()=>{e.nextTick(P),window.addEventListener("resize",P),y.value&&($=new ResizeObserver(P),$.observe(y.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",P),$==null||$.disconnect()});function D(L){_.value=L}function F(L){I.value=L}return(L,M)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:y,class:"sy-pro-table sy-pro-table--classic"},[e.unref(r).showSearch&&e.unref(c)&&e.unref(i).length>0?(e.openBlock(),e.createElementBlock("div",is,[e.createVNode(qe,{ref:D,context:o.context,cols:e.unref(r).searchCols},null,8,["context","cols"])])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ds,[e.createElementVNode("div",ps,[e.createElementVNode("div",ms,[e.renderSlot(L.$slots,"tableHeader",{selectedList:e.unref(a),selectedListIds:e.unref(n),isSelected:e.unref(t)})]),e.createElementVNode("div",fs,[e.renderSlot(L.$slots,"toolButton",{},()=>[e.unref(B)("refresh")?(e.openBlock(),e.createBlock(e.unref(me),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{icon:e.unref(v.Refresh),circle:"",onClick:e.unref(l)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(B)("setting")?(e.openBlock(),e.createBlock(e.unref(me),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{icon:e.unref(v.Operation),circle:"",onClick:e.unref(A)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(B)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(me),{key:2,content:"搜索",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{icon:e.unref(v.Search),circle:"",onClick:e.unref(w)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])])]),e.createVNode(je,{context:o.context,"table-height":b.value,"table-max-height":h.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(L.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(L.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(L.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(L.$slots,"pagination")]),_:3},8,["context"])]),e.createVNode(He,{ref:F,context:o.context},null,8,["context"])],512))}}),ht=e.defineComponent({__name:"CustomFilterChip",props:{column:{},model:{},modelValue:{},width:{}},emits:["search","remove","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),a=e.computed(()=>{var A,w,B,_,I,y,b;const t=r.column,l=(()=>{var h,p,u,P,$,D,F;if(((h=t.search)==null?void 0:h.options)!==void 0){const O=t.search.options;return Array.isArray(O)?O:(p=e.unref(O))!=null?p:void 0}if(!(!t.enum||(P=(u=t.search)==null?void 0:u.component)!=null&&P.includes("tree")))return typeof t.enum=="function"?(D=i.value.get(($=t.prop)!=null?$:""))!=null?D:void 0:Array.isArray(t.enum)?t.enum:(F=e.unref(t.enum))!=null?F:void 0})();return{field:(B=(w=(A=t.search)==null?void 0:A.key)!=null?w:t.prop)!=null?B:"",label:t.label,component:(_=t.search)==null?void 0:_.component,props:J(T({},(I=t.search)==null?void 0:I.props),{clearable:!1}),options:l,fieldNames:t.fieldNames,defaultValue:(y=t.search)==null?void 0:y.defaultValue,render:(b=t.search)==null?void 0:b.render}});function n(t){c("update:modelValue",t)}return(t,l)=>{var A,w,B;return e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__custom-filter-chip",onKeyup:l[1]||(l[1]=e.withKeys(_=>c("search"),["enter"]))},[e.createElementVNode("div",{class:"sy-pro-table__custom-filter-chip-control",style:e.normalizeStyle({width:`${(B=(w=(A=r.column.search)==null?void 0:A.chipWidth)!=null?w:r.width)!=null?B:100}px`})},[e.createVNode(Oe,{schema:a.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":n},null,8,["schema","model","model-value"])],4),e.createElementVNode("span",{class:"sy-pro-table__custom-filter-chip-close",onClick:l[0]||(l[0]=e.withModifiers(_=>c("remove"),["stop"]))},[e.createVNode(e.unref(he),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.Close))]),_:1})])],32)}}}),ut=e.defineComponent({__name:"UnifyQuickSearch",props:{column:{},model:{},modelValue:{}},emits:["search","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),a=e.computed(()=>{var w;const l=(w=r.column.search)==null?void 0:w.quick,A=typeof l=="object"&&(l==null?void 0:l.width)||220;return{width:typeof A=="number"?`${A}px`:A}}),n=e.computed(()=>{var w,B,_,I,y,b,h;const l=r.column,A=(()=>{var p,u,P,$,D,F,O;if(((p=l.search)==null?void 0:p.options)!==void 0){const L=l.search.options;return Array.isArray(L)?L:(u=e.unref(L))!=null?u:void 0}if(!(!l.enum||($=(P=l.search)==null?void 0:P.component)!=null&&$.includes("tree")))return typeof l.enum=="function"?(F=i.value.get((D=l.prop)!=null?D:""))!=null?F:void 0:Array.isArray(l.enum)?l.enum:(O=e.unref(l.enum))!=null?O:void 0})();return{field:(_=(B=(w=l.search)==null?void 0:w.key)!=null?B:l.prop)!=null?_:"",label:l.label,component:(I=l.search)==null?void 0:I.component,props:(y=l.search)==null?void 0:y.props,options:A,fieldNames:l.fieldNames,defaultValue:(b=l.search)==null?void 0:b.defaultValue,render:(h=l.search)==null?void 0:h.render}});function t(l){c("update:modelValue",l)}return(l,A)=>(e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__unify-quick",style:e.normalizeStyle(a.value),onKeyup:A[0]||(A[0]=e.withKeys(w=>c("search"),["enter"]))},[e.createVNode(Oe,{schema:n.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":t},null,8,["schema","model","model-value"])],36))}}),us={class:"sy-pro-table__custom-search"},ys=e.defineComponent({__name:"CustomSearchBar",props:{quickSearchColumns:{},searchParam:{},showAdvanced:{type:Boolean},filterActive:{type:Boolean}},emits:["search","toggleAdvanced","updateParam"],setup(o,{emit:s}){const r=s;function c(){r("search")}return(i,a)=>(e.openBlock(),e.createElementBlock("div",us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.quickSearchColumns,n=>{var t,l,A,w,B;return e.openBlock(),e.createBlock(ut,{key:(l=(t=n.search)==null?void 0:t.key)!=null?l:n.prop,"model-value":o.searchParam[(B=(w=(A=n.search)==null?void 0:A.key)!=null?w:n.prop)!=null?B:""],column:n,model:o.searchParam,"onUpdate:modelValue":_=>{var I,y,b;return r("updateParam",(b=(y=(I=n.search)==null?void 0:I.key)!=null?y:n.prop)!=null?b:"",_)},onSearch:c},null,8,["model-value","column","model","onUpdate:modelValue"])}),128)),e.createVNode(e.unref(me),{content:"查询",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{class:"sy-pro-table__custom-search-btn",icon:e.unref(v.Search),onClick:c},null,8,["icon"])]),_:1}),o.showAdvanced?(e.openBlock(),e.createBlock(e.unref(me),{key:0,content:"高级筛选",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{class:e.normalizeClass(["sy-pro-table__custom-filter-btn",{"is-active":o.filterActive}]),icon:e.unref(v.Filter),onClick:a[0]||(a[0]=n=>r("toggleAdvanced"))},null,8,["class","icon"])]),_:1})):e.createCommentVNode("v-if",!0)]))}}),Ss={class:"sy-pro-table__custom-panel-inner"},gs={class:"sy-pro-table__custom-panel-footer"},bs=e.defineComponent({__name:"CustomSearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close","panelSearch"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const y=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,y*280+32)}px`}}),a=r.context.search,n=r.context.reset;function t(){a(),c("panelSearch"),c("close")}function l(){n(),c("close")}const A=r.context.formRef,w=e.ref();function B(y){A.value=y}let _=null;function I(y){var h;const b=y.composedPath();for(const p of b){const u=p;if(u!=null&&u.classList&&(u===w.value||r.excludeSelector&&((h=u.matches)!=null&&h.call(u,r.excludeSelector))||u.classList.contains("el-popper")||u.classList.contains("el-overlay")||u.classList.contains("el-picker__popper")||u.classList.contains("el-select__popper")||u.classList.contains("el-select-dropdown")||u.classList.contains("el-date-picker")||u.classList.contains("el-date-range-picker")))return}c("close")}return e.watch(()=>r.visible,y=>{_==null||_(),_=null,y&&e.nextTick(()=>{document.addEventListener("mousedown",I,!0),_=()=>document.removeEventListener("mousedown",I,!0)})}),e.onBeforeUnmount(()=>_==null?void 0:_()),(y,b)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:w,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",Ss,[e.createVNode(qe,{ref:B,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",gs,[e.createVNode(e.unref(G),{onClick:l},{default:e.withCtx(()=>[...b[0]||(b[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(G),{type:"primary",onClick:t},{default:e.withCtx(()=>[...b[1]||(b[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),Cs={class:"sy-pro-table__header sy-pro-table__header--custom"},ws={class:"sy-pro-table__custom-batch"},As={class:"sy-pro-table__custom-batch-count"},ks={class:"sy-pro-table__header-left"},xs={class:"sy-pro-table__header-right sy-pro-table__header-right--custom"},Ns={class:"sy-pro-table__custom-panel-inner sy-pro-table__chip-overflow-list"},Bs=e.defineComponent({__name:"CustomLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var k;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,l=s.context.selectedListIds,A=s.context.isSelected,w=s.context.search,B=s.context.toggleSearch,_=s.context.showToolBtn,I=s.context.getTableList,y=s.context.openColSetting,b=s.context.colSettingRef,h=s.context.clearSelection,p=s.context.searchInitParam,u=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),P=e.computed(()=>{const g=new Set(a.value.map(x=>{var R,E,z;return(z=(E=(R=x.search)==null?void 0:R.key)!=null?E:x.prop)!=null?z:""}));return i.value.filter(x=>{var R,E,z;return!g.has((z=(E=(R=x.search)==null?void 0:R.key)!=null?E:x.prop)!=null?z:"")})}),$=e.ref(new Set),D=e.computed(()=>P.value.map(g=>{var E,z,W;const x=(W=(z=(E=g.search)==null?void 0:E.key)!=null?z:g.prop)!=null?W:"";if(!$.value.has(x))return null;const R=n.value[x];return R==null||R===""||Array.isArray(R)&&R.length===0?null:{key:x,column:g}}).filter(g=>g!==null)),F=e.computed(()=>{var x;const g=(x=r.filterChipMax)!=null?x:3;return D.value.slice(0,g)}),O=e.computed(()=>{var x;const g=(x=r.filterChipMax)!=null?x:3;return D.value.slice(g)}),L=e.ref(!1),M=e.ref(),K=e.ref(null),q=e.ref(null),Z=e.ref(null),U=e.computed(()=>{const g=q.value,x=Z.value;if(!g||!x)return{left:"16px"};const R=x.getBoundingClientRect(),E=g.getBoundingClientRect();return{left:`${Math.round(E.left-R.left)}px`}});function X(){L.value=!L.value}e.watch(O,g=>{g.length===0&&(L.value=!1)});function ee(g){var E,z,W;const x=g.composedPath(),R=(z=(E=K.value)==null?void 0:E.$el)!=null?z:K.value;for(const ne of x){const Q=ne;if(Q!=null&&Q.classList&&(Q===M.value||(W=R==null?void 0:R.contains)!=null&&W.call(R,Q)||Q===R||Q.classList.contains("el-popper")||Q.classList.contains("el-overlay")||Q.classList.contains("el-picker__popper")||Q.classList.contains("el-select__popper")||Q.classList.contains("el-select-dropdown")||Q.classList.contains("el-date-picker")||Q.classList.contains("el-date-range-picker")))return}L.value=!1}let Y=null;e.watch(L,g=>{Y==null||Y(),Y=null,g&&e.nextTick(()=>{document.addEventListener("mousedown",ee,!0),Y=()=>document.removeEventListener("mousedown",ee,!0)})}),e.onBeforeUnmount(()=>Y==null?void 0:Y());function oe(){$.value=new Set(P.value.map(g=>{var x,R,E;return(E=(R=(x=g.search)==null?void 0:x.key)!=null?R:g.prop)!=null?E:""}).filter(g=>{const x=n.value[g];return x!=null&&x!==""&&!(Array.isArray(x)&&x.length===0)}))}function ce(g,x){n.value[g]=x}function ie(g){var x;n.value[g]=(x=p[g])!=null?x:void 0,$.value.delete(g),w()}function S(){P.value.forEach(g=>{var R,E,z,W;const x=(z=(E=(R=g.search)==null?void 0:R.key)!=null?E:g.prop)!=null?z:"";n.value[x]=(W=p[x])!=null?W:void 0}),$.value.clear(),w()}const V=e.ref(),N=e.ref(void 0),H=e.ref(void 0),j=(k=e.inject(f.SY_UI_CONFIG_KEY,{}).proTable)!=null?k:{};function le(){var Q,fe;const g=V.value;if(!g)return;const x=g.querySelector(".sy-pro-table__table"),R=g.querySelector(".sy-pro-table__pagination");if(!x)return;const E=x.getBoundingClientRect().top,z=R?R.getBoundingClientRect().height:0,W=(fe=(Q=r.heightOffset)!=null?Q:j.heightOffset)!=null?fe:0,ne=Math.floor(window.innerHeight-E-z-W);return ne>80?ne:void 0}function se(){if(r.height!==void 0){N.value=r.height,H.value=void 0;return}if(r.autoHeight===!0){N.value=le(),H.value=void 0;return}if(r.maxHeight!==void 0){N.value=void 0,H.value=r.maxHeight;return}N.value=void 0,H.value=le()}let te=null;e.onMounted(()=>{e.nextTick(se),window.addEventListener("resize",se),V.value&&(te=new ResizeObserver(se),te.observe(V.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",se),te==null||te.disconnect()});function _e(g){b.value=g}function Re(){c.value&&B()}return(g,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:V,class:"sy-pro-table sy-pro-table--custom"},[e.createElementVNode("div",{ref_key:"mainRef",ref:Z,class:"sy-pro-table__main sy-pro-table__main--custom"},[e.createElementVNode("div",Cs,[e.createCommentVNode(" 批量操作模式:选中行时替换整个 header "),e.unref(A)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",ws,[e.createElementVNode("span",As,"已选 "+e.toDisplayString(e.unref(t).length)+" 条数据",1),x[1]||(x[1]=e.createElementVNode("span",{class:"sy-pro-table__custom-batch-divider"},null,-1)),e.renderSlot(g.$slots,"tableHeader",{selectedList:e.unref(t),selectedListIds:e.unref(l),isSelected:e.unref(A)})]),e.createVNode(e.unref(G),{class:"sy-pro-table__custom-batch-close",icon:e.unref(v.Close),circle:"",onClick:e.unref(h)},null,8,["icon","onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 正常模式 "),e.createCommentVNode(" 左侧:快速查询 + 高级筛选 + 已应用筛选 tags "),e.createElementVNode("div",ks,[e.createVNode(ys,{"quick-search-columns":e.unref(a),"search-param":e.unref(n),"show-advanced":e.unref(r).showSearch&&e.unref(_)("search")&&e.unref(i).length>0,"filter-active":u.value||D.value.length>0,onSearch:e.unref(w),onToggleAdvanced:e.unref(B),onUpdateParam:x[0]||(x[0]=(R,E)=>e.unref(n)[R]=E)},null,8,["quick-search-columns","search-param","show-advanced","filter-active","onSearch","onToggleAdvanced"]),e.createCommentVNode(" chips 行整体包一个 div,用于精确计算 overflow panel 的对齐 left "),D.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chipsRowRef",ref:q,class:"sy-pro-table__chip-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,R=>(e.openBlock(),e.createBlock(ht,{key:R.key,column:R.column,model:e.unref(n),"model-value":e.unref(n)[R.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":E=>ce(R.key,E),onSearch:e.unref(w),onRemove:E=>ie(R.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createCommentVNode(" 超出 filterChipMax 时的折叠入口 "),O.value.length>0?(e.openBlock(),e.createBlock(e.unref(G),{key:0,ref_key:"overflowBtnRef",ref:K,class:"sy-pro-table__custom-filter-more",size:"small",type:"primary",plain:"",onClick:X},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(O.value.length),1)]),_:1},512)):e.createCommentVNode("v-if",!0),O.value.length===0?(e.openBlock(),e.createBlock(e.unref(G),{key:1,link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:S},{default:e.withCtx(()=>[...x[2]||(x[2]=[e.createTextVNode("清空",-1)])]),_:1})):e.createCommentVNode("v-if",!0)],512)):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 右侧:功能按钮 + 刷新 + 列设置 "),e.createElementVNode("div",xs,[e.renderSlot(g.$slots,"toolButton"),e.unref(_)("refresh")?(e.openBlock(),e.createBlock(e.unref(me),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{icon:e.unref(v.Refresh),circle:"",onClick:e.unref(I)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(_)("setting")?(e.openBlock(),e.createBlock(e.unref(me),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(G),{icon:e.unref(v.Operation),circle:"",onClick:e.unref(y)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])],64))]),e.createVNode(bs,{context:o.context,visible:u.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__custom-filter-btn",onClose:Re,onPanelSearch:oe},null,8,["context","visible","cols"]),e.createCommentVNode(" overflow chip 浮层:与第一个 chip 左对齐,样式同 custom-panel "),e.createVNode(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"overflowPanelRef",ref:M,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(U.value)},[e.createElementVNode("div",Ns,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,R=>(e.openBlock(),e.createBlock(ht,{key:R.key,column:R.column,model:e.unref(n),"model-value":e.unref(n)[R.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":E=>ce(R.key,E),onSearch:e.unref(w),onRemove:E=>ie(R.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createVNode(e.unref(G),{link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:S},{default:e.withCtx(()=>[...x[3]||(x[3]=[e.createTextVNode("清空全部",-1)])]),_:1})])],4),[[e.vShow,L.value]])]),_:1}),e.createVNode(je,{context:o.context,"table-height":N.value,"table-max-height":H.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(g.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(g.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(g.$slots,"pagination")]),_:3},8,["context"])],512),e.createVNode(He,{ref:_e,context:o.context},null,8,["context"])],512))}}),Ps={class:"sy-pro-table__unify-panel-inner"},Vs={class:"sy-pro-table__unify-panel-footer"},_s=e.defineComponent({__name:"UnifySearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const y=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,y*280+32)}px`}}),a=r.context.search,n=r.context.reset;function t(){a(),c("close")}function l(){n(),c("close")}const A=r.context.formRef,w=e.ref();function B(y){A.value=y}let _=null;function I(y){var h;const b=y.target;b&&((h=w.value)!=null&&h.contains(b)||r.excludeSelector&&b.closest(r.excludeSelector)||b.closest(".el-popper")||b.closest(".el-overlay")||c("close"))}return e.watch(()=>r.visible,y=>{_==null||_(),_=null,y&&e.nextTick(()=>{document.addEventListener("mousedown",I,!0),_=()=>document.removeEventListener("mousedown",I,!0)})}),e.onBeforeUnmount(()=>_==null?void 0:_()),(y,b)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:w,class:"sy-pro-table__unify-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",Ps,[e.createVNode(qe,{ref:B,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",Vs,[e.createVNode(e.unref(G),{onClick:l},{default:e.withCtx(()=>[...b[0]||(b[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(G),{type:"primary",onClick:t},{default:e.withCtx(()=>[...b[1]||(b[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),Rs={class:"sy-pro-table__main sy-pro-table__main--unify"},Ts={class:"sy-pro-table__header sy-pro-table__header--unify"},Is={class:"sy-pro-table__header-left"},$s={class:"sy-pro-table__header-right sy-pro-table__header-right--unify"},Es=e.defineComponent({__name:"UnifyLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var L;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,l=s.context.selectedListIds,A=s.context.isSelected,w=s.context.search,B=s.context.toggleSearch,_=s.context.showToolBtn,I=s.context.colSettingRef,y=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),b=e.ref(),h=e.ref(void 0),p=e.ref(void 0),u=(L=e.inject(f.SY_UI_CONFIG_KEY,{}).proTable)!=null?L:{};function P(){var Y,oe;const M=b.value;if(!M)return;const K=M.querySelector(".sy-pro-table__table"),q=M.querySelector(".sy-pro-table__pagination");if(!K)return;const Z=K.getBoundingClientRect().top,U=q?q.getBoundingClientRect().height:0,X=(oe=(Y=r.heightOffset)!=null?Y:u.heightOffset)!=null?oe:0,ee=Math.floor(window.innerHeight-Z-U-X);return ee>80?ee:void 0}function $(){if(r.height!==void 0){h.value=r.height,p.value=void 0;return}if(r.autoHeight===!0){h.value=P(),p.value=void 0;return}if(r.maxHeight!==void 0){h.value=void 0,p.value=r.maxHeight;return}h.value=void 0,p.value=P()}let D=null;e.onMounted(()=>{e.nextTick($),window.addEventListener("resize",$),b.value&&(D=new ResizeObserver($),D.observe(b.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",$),D==null||D.disconnect()});function F(M){I.value=M}function O(){c.value&&B()}return(M,K)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:b,class:"sy-pro-table sy-pro-table--unify"},[e.createElementVNode("div",Rs,[e.createElementVNode("div",Ts,[e.createElementVNode("div",Is,[e.renderSlot(M.$slots,"tableHeader",{selectedList:e.unref(t),selectedListIds:e.unref(l),isSelected:e.unref(A)})]),e.createElementVNode("div",$s,[e.renderSlot(M.$slots,"toolButton",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),q=>{var Z,U,X,ee,Y;return e.openBlock(),e.createBlock(ut,{key:(U=(Z=q.search)==null?void 0:Z.key)!=null?U:q.prop,modelValue:e.unref(n)[(Y=(ee=(X=q.search)==null?void 0:X.key)!=null?ee:q.prop)!=null?Y:""],"onUpdate:modelValue":oe=>{var ce,ie,S;return e.unref(n)[(S=(ie=(ce=q.search)==null?void 0:ce.key)!=null?ie:q.prop)!=null?S:""]=oe},column:q,model:e.unref(n),onSearch:e.unref(w)},null,8,["modelValue","onUpdate:modelValue","column","model","onSearch"])}),128)),e.unref(a).length>0?(e.openBlock(),e.createBlock(e.unref(G),{key:0,type:"primary",onClick:e.unref(w)},{default:e.withCtx(()=>[...K[0]||(K[0]=[e.createTextVNode("查询",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(_)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(G),{key:1,class:"sy-pro-table__unify-advanced-btn",type:"primary",plain:"",onClick:e.unref(B)},{default:e.withCtx(()=>[...K[1]||(K[1]=[e.createTextVNode(" 高级筛选 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0)])])]),e.createVNode(_s,{context:o.context,visible:y.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__unify-advanced-btn",onClose:O},null,8,["context","visible","cols"]),e.createVNode(je,{context:o.context,"table-height":h.value,"table-max-height":p.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(M.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(M.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(M.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(M.$slots,"pagination")]),_:3},8,["context"])]),e.createVNode(He,{ref:F,context:o.context},null,8,["context"])],512))}}),Ls=e.defineComponent({name:"SyProTable",inheritAttrs:!1,__name:"ProTable",props:{columns:{},data:{},request:{},params:{},postData:{},requestError:{},manualRequest:{type:Boolean,default:!1},pagination:{type:Boolean,default:!0},rowKey:{},border:{type:Boolean},stripe:{type:Boolean},showSearch:{type:Boolean,default:!0},searchCols:{},panelCols:{},filterChipWidth:{},filterChipMax:{},toolButton:{type:[Boolean,Array],default:!0},highlightCurrentRow:{type:Boolean,default:!1},size:{},pageSizes:{},pageSize:{},pageLayout:{},type:{},height:{},maxHeight:{},autoHeight:{type:Boolean},heightOffset:{}},emits:["search","reset","dragSort"],setup(o,{expose:s,emit:r}){const c=o,i=r,a=e.useSlots(),n=ns(c,i,a);function t(l){i("dragSort",l)}return s({tableRef:n.tableRef,formRef:n.formRef,tableData:n.tableData,enumMap:n.enumMap,pageable:n.pageable,searchParam:n.searchParam,searchInitParam:n.searchInitParam,isSelected:n.isSelected,selectedList:n.selectedList,selectedListIds:n.selectedListIds,radio:n.radio,getTableList:n.getTableList,search:n.search,reset:n.reset,clearSelection:n.clearSelection,clearRadio:n.clearRadio,handleSizeChange:n.handleSizeChange,handleCurrentChange:n.handleCurrentChange}),(l,A)=>e.unref(n).type==="classic"?(e.openBlock(),e.createBlock(hs,{key:0,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(w=>[e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(w)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"0"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"1"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"2"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"])):e.unref(n).type==="unify"?(e.openBlock(),e.createBlock(Es,{key:1,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(w=>[e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(w)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"0"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"1"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"2"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"])):(e.openBlock(),e.createBlock(Bs,{key:2,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(w=>[e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(w)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"0"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"1"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"2"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"]))}}),Ms=f.withInstall(Ls);Object.defineProperty(m,"SY_UI_CONFIG_KEY",{enumerable:!0,get:()=>f.SY_UI_CONFIG_KEY}),m.SyAlert=Tt,m.SyAside=on,m.SyAutocomplete=de,m.SyBacktop=$t,m.SyButton=G,m.SyCard=Mt,m.SyCascader=Ge,m.SyCheckbox=Ye,m.SyCheckboxButton=Ht,m.SyCheckboxGroup=We,m.SyCol=Dn,m.SyCollapse=Gt,m.SyCollapseItem=Yt,m.SyColorPicker=qt,m.SyConfigProvider=an,m.SyContainer=tn,m.SyDatePicker=Qe,m.SyDateTimePicker=pn,m.SyDescriptions=hn,m.SyDescriptionsItem=un,m.SyDialog=Sn,m.SyDivider=bn,m.SyDrawer=Je,m.SyDropdown=xn,m.SyDropdownItem=Bn,m.SyDropdownMenu=Nn,m.SyEmpty=Ze,m.SyFooter=rn,m.SyForm=Xe,m.SyFormItem=ve,m.SyHeader=nn,m.SyIcon=he,m.SyImage=In,m.SyInput=$e,m.SyInputNumber=et,m.SyLink=On,m.SyLoading=jn,m.SyLoadingDirective=ke,m.SyMain=sn,m.SyMenu=Qn,m.SyMenuItem=Zn,m.SyMenuItemGroup=Xn,m.SyMessage=ue,m.SyMessageBox=nt,m.SyNotification=ot,m.SyOption=ct,m.SyPagination=st,m.SyPopconfirm=to,m.SyPopover=so,m.SyProForm=pt,m.SyProTable=Ms,m.SyProgress=lo,m.SyRadio=Fe,m.SyRadioButton=lt,m.SyRadioGroup=rt,m.SyRow=Fn,m.SyScrollbar=mo,m.SySelect=at,m.SySelectV2=So,m.SySkeleton=Co,m.SySkeletonItem=wo,m.SySlider=ko,m.SySpace=No,m.SyStep=_o,m.SySteps=Vo,m.SySubMenu=Jn,m.SySwitch=Pe,m.SyTabPane=Mo,m.SyTable=De,m.SyTableColumn=ae,m.SyTabs=Lo,m.SyTag=Ve,m.SyText=zo,m.SyTimePicker=it,m.SyTimeSelect=dt,m.SyTooltip=me,m.SyTree=Ko,m.SyTreeSelect=Yo,m.SyUpload=Qo,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
7
+ </div> `),e.createCommentVNode(" 列配置表格 "),e.createVNode(e.unref(De),{data:i.value,"row-key":"prop",border:!0,"default-expand-all":"","tree-props":{children:"_children"}},{empty:e.withCtx(()=>[...k[1]||(k[1]=[e.createElementVNode("div",{style:{padding:"24px 0",color:"var(--el-text-color-secondary)","font-size":"13px"}},"暂无可配置列",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(le),{prop:"label",label:"列名",align:"left","min-width":"100"},{default:e.withCtx(({row:A})=>{var x,_;return[e.createTextVNode(e.toDisplayString((_=(x=A.label)!=null?x:A.prop)!=null?_:"—"),1)]}),_:1}),e.createVNode(e.unref(le),{prop:"isShow",label:"显示",align:"center",width:"80"},{default:e.withCtx(({row:A})=>[e.createVNode(e.unref(Ve),{"model-value":A.isShow!==!1,"onUpdate:modelValue":x=>{A.isShow=x}},null,8,["model-value","onUpdate:modelValue"])]),_:1}),e.createVNode(e.unref(le),{prop:"sortable",label:"排序",align:"center",width:"80"},{default:e.withCtx(({row:A})=>[typeof A.sortable=="boolean"?(e.openBlock(),e.createBlock(e.unref(Ve),{key:0,modelValue:A.sortable,"onUpdate:modelValue":x=>A.sortable=x},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("span",os,"—"))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]))}}),He=e.defineComponent({__name:"ProTableColSetting",props:{context:{}},setup(o,{expose:s}){const c=o.context.flatColumns,i=e.ref();function a(){var n,t;(t=(n=i.value)==null?void 0:n.open)==null||t.call(n)}return s({open:a}),(n,t)=>(e.openBlock(),e.createBlock(ss,{ref_key:"innerRef",ref:i,columns:e.unref(c)},null,8,["columns"]))}}),rs={key:0,class:"sy-pro-table__pagination"},Ue=e.defineComponent({__name:"ProTablePagination",props:{context:{}},setup(o){const s=o,r=s.context.props,c=s.context.pageable,i=s.context.handleSizeChange,a=s.context.handleCurrentChange;return(n,t)=>e.unref(r).pagination&&e.unref(c).total>0?(e.openBlock(),e.createElementBlock("div",rs,[e.renderSlot(n.$slots,"pagination",{},()=>[e.createVNode(e.unref(st),{"current-page":e.unref(c).pageNum,"onUpdate:currentPage":t[0]||(t[0]=l=>e.unref(c).pageNum=l),"page-size":e.unref(c).pageSize,"onUpdate:pageSize":t[1]||(t[1]=l=>e.unref(c).pageSize=l),total:e.unref(c).total,"page-sizes":e.unref(r).pageSizes,layout:e.unref(r).pageLayout,background:"",onSizeChange:e.unref(i),onCurrentChange:e.unref(a)},null,8,["current-page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])])):e.createCommentVNode("v-if",!0)}}),qe=e.defineComponent({__name:"ProTableSearchRenderer",props:{context:{},cols:{default:4},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!0}},setup(o,{expose:s}){const r=o,c=r.context.searchParam,i=r.context.searchSchema,a=r.context.search,n=r.context.reset,t=e.ref();return s({validate:l=>{var k,A;return(A=(k=t.value)==null?void 0:k.validate)==null?void 0:A.call(k,l)},resetFields:()=>{var l,k;return(k=(l=t.value)==null?void 0:l.resetFields)==null?void 0:k.call(l)},clearValidate:l=>{var k,A;return(A=(k=t.value)==null?void 0:k.clearValidate)==null?void 0:A.call(k,l)},formRef:t}),(l,k)=>(e.openBlock(),e.createBlock(e.unref(pt),{ref_key:"innerFormRef",ref:t,model:e.unref(c),schema:e.unref(i),cols:o.cols,"show-query-btn":o.showQueryBtn,"show-reset-btn":o.showResetBtn,collapsible:o.collapsible,onSearch:e.unref(a),onReset:e.unref(n)},null,8,["model","schema","cols","show-query-btn","show-reset-btn","collapsible","onSearch","onReset"]))}}),ls=e.defineComponent({__name:"ProTableColumn",props:{column:{}},emits:["radioChange"],setup(o){const s=o,r=e.inject("proTableEnumMap",{value:new Map}),c=e.inject("proTableSlots",{}),i=e.computed(()=>{const g=s.column.isShow;return g===void 0?!0:e.unref(g)}),a=e.computed(()=>{var C,u,m,y;const g=s.column.enum;return typeof g=="function"?(u=r.value.get((C=s.column.prop)!=null?C:""))!=null?u:[]:g?e.unref(g):(y=r.value.get((m=s.column.prop)!=null?m:""))!=null?y:[]});function n(g){var B,$;const{fieldNames:C}=s.column,u=(B=C==null?void 0:C.label)!=null?B:"label",m=($=C==null?void 0:C.value)!=null?$:"value",y=a.value.find(F=>F[m]===g);return y?y[u]:String(g!=null?g:"")}function t(g){var y;const{fieldNames:C}=s.column,u=(y=C==null?void 0:C.value)!=null?y:"value",m=a.value.find(B=>B[u]===g);return(m==null?void 0:m.tagType)||void 0}function l(g){return g.split(".").reduce((u,m,y)=>y===0?u+m:u+m.charAt(0).toUpperCase()+m.slice(1),"")}function k(g){var $;const{column:C}=s;if(C.render)return C.render(g);if(C.type==="expand"){const F="expand";return c[F]?c[F](g):null}const u=($=C.prop)!=null?$:"",m=g.row[u],y=l(u);if(c[y])return c[y](g);if(C.isFilterEnum!==!1&&a.value.length>0){if(C.tag){const F=t(m);return e.h(_e,F?{type:F}:{},()=>n(m))}return e.h("span",{},n(m))}return C.tag?e.h(_e,{},()=>String(m!=null?m:"")):e.h("span",{},String(m!=null?m:""))}function A(g){var m,y;const{column:C}=s;if(C.headerRender)return C.headerRender(g);const u=`${l((m=C.prop)!=null?m:"")}Header`;return c[u]?c[u](g):(y=C.label)!=null?y:""}const x=e.defineComponent({name:"ProTableExpandRenderer",props:{scope:{type:Object,required:!0}},setup(g){return()=>c.expand?c.expand(g.scope):null}}),_=e.defineComponent({name:"ProTableHeaderRenderer",props:{scope:{type:Object,required:!0}},setup(g){return()=>A(g.scope)}}),T=e.defineComponent({name:"ProTableCellRenderer",props:{scope:{type:Object,required:!0}},setup(g){return()=>k(g.scope)}});return(g,C)=>{var m;const u=e.resolveComponent("ProTableColumn",!0);return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(" 多级表头 "),(m=o.column.children)!=null&&m.length?(e.openBlock(),e.createBlock(e.unref(le),{key:0,label:o.column.label,align:o.column.align},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.column.children,y=>{var B;return e.openBlock(),e.createBlock(u,{key:(B=y.prop)!=null?B:y.label,column:y},null,8,["column"])}),128))]),_:1},8,["label","align"])):o.column.type&&["selection","index"].includes(o.column.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 特殊列:selection / index(自闭合,无需 slot) "),e.createVNode(e.unref(le),e.normalizeProps(e.guardReactiveProps(o.column)),null,16)],2112)):o.column.type==="expand"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" expand 列:必须通过 #default slot 提供展开行内容 "),e.createVNode(e.unref(le),e.normalizeProps(e.guardReactiveProps(o.column)),{default:e.withCtx(y=>[e.createVNode(e.unref(x),{scope:y},null,8,["scope"])]),_:1},16)],2112)):o.column.type==="radio"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" radio 列 "),e.createVNode(e.unref(le),e.mergeProps(o.column,{width:"60",align:"center"}),{default:e.withCtx(y=>[e.createVNode(e.unref(Fe),{modelValue:y.row.__radioSelected,"onUpdate:modelValue":B=>y.row.__radioSelected=B,value:!0,onChange:()=>g.$emit("radioChange",y.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1},16)],2112)):o.column.type==="sort"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createCommentVNode(" sort 列(拖拽手柄) "),e.createVNode(e.unref(le),e.mergeProps(o.column,{width:"60",align:"center",label:"排序"}),{default:e.withCtx(()=>[e.createVNode(e.unref(_e),{class:"move",style:{cursor:"move"}},{default:e.withCtx(()=>[e.createVNode(e.unref(fe),null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.DCaret))]),_:1})]),_:1})]),_:1},16)],2112)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createCommentVNode(" 普通列 "),e.createVNode(e.unref(le),e.normalizeProps(e.guardReactiveProps(o.column)),{header:e.withCtx(y=>[e.createVNode(e.unref(_),{scope:y},null,8,["scope"])]),default:e.withCtx(y=>[e.createVNode(e.unref(T),{scope:y},null,8,["scope"])]),_:1},16)],2112))],64)):e.createCommentVNode("v-if",!0)}}}),as={class:"sy-pro-table__table"},cs={class:"sy-pro-table__empty"},je=e.defineComponent({__name:"ProTableTable",props:{context:{},tableHeight:{},tableMaxHeight:{},onDragSort:{type:Function}},setup(o){const s=o,r=s.context.props,c=e.computed(()=>s.tableHeight),i=e.computed(()=>s.tableMaxHeight),a=s.context.tableRef,n=s.context.loading,t=s.context.tableData,l=s.context.flatColumns,k=s.context.selectionChange,A=s.context.onSortChange,x=s.context.onRadioChange;function _(g){a.value=g}function T(){var u;if(!r.columns.some(m=>m.type==="sort")||!a.value)return;const C=(u=a.value.$el)==null?void 0:u.querySelector("tbody");C&&Ie.create(C,{handle:".move",animation:150,onEnd({newIndex:m,oldIndex:y}){var F;if(m===y)return;const B=t.value,$=B.splice(y,1)[0];B.splice(m,0,$),(F=s.onDragSort)==null||F.call(s,{newIndex:m,oldIndex:y})}})}return e.onMounted(()=>{e.nextTick(()=>T())}),(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createCommentVNode(" wrapper 保证 querySelector 能找到 .sy-pro-table__table,height 直接传给 el-table "),e.createElementVNode("div",as,[e.withDirectives((e.openBlock(),e.createBlock(e.unref(De),{ref:_,height:c.value,"max-height":i.value,data:e.unref(t),border:e.unref(r).border,stripe:e.unref(r).stripe,"row-key":e.unref(r).rowKey,size:e.unref(r).size,"highlight-current-row":e.unref(r).highlightCurrentRow,onSelectionChange:e.unref(k),onSortChange:e.unref(A)},{append:e.withCtx(()=>[e.renderSlot(g.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(g.$slots,"empty",{},()=>[e.createElementVNode("div",cs,[e.createVNode(e.unref(Ze),{description:"暂无数据"})])])]),default:e.withCtx(()=>[e.renderSlot(g.$slots,"default"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),u=>{var m,y;return e.openBlock(),e.createBlock(ls,{key:(y=(m=u.prop)!=null?m:u.label)!=null?y:u.type,column:u,onRadioChange:e.unref(x)},null,8,["column","onRadioChange"])}),128))]),_:3},8,["height","max-height","data","border","stripe","row-key","size","highlight-current-row","onSelectionChange","onSortChange"])),[[e.unref(p.AdapterLoadingDirective),e.unref(n)]])])],2112))}}),is={key:0,class:"sy-pro-table__search"},ds={class:"sy-pro-table__main"},ps={class:"sy-pro-table__header"},ms={class:"sy-pro-table__header-left"},fs={class:"sy-pro-table__header-right"},hs=e.defineComponent({__name:"ClassicLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var D;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.selectedList,n=s.context.selectedListIds,t=s.context.isSelected,l=s.context.getTableList,k=s.context.openColSetting,A=s.context.toggleSearch,x=s.context.showToolBtn,_=s.context.formRef,T=s.context.colSettingRef,g=e.ref(),C=e.ref(void 0),u=e.ref(void 0),m=(D=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?D:{};function y(){var W,ee;const E=g.value;if(!E)return;const L=E.querySelector(".sy-pro-table__table"),K=E.querySelector(".sy-pro-table__pagination");if(!L)return;const q=L.getBoundingClientRect().top,J=K?K.getBoundingClientRect().height:0,H=(ee=(W=r.heightOffset)!=null?W:m.heightOffset)!=null?ee:0,Z=Math.floor(window.innerHeight-q-J-H);return Z>80?Z:void 0}function B(){if(r.height!==void 0){C.value=r.height,u.value=void 0;return}if(r.autoHeight===!0){C.value=y(),u.value=void 0;return}if(r.maxHeight!==void 0){C.value=void 0,u.value=r.maxHeight;return}C.value=void 0,u.value=y()}e.watch(c,()=>e.nextTick(B));let $=null;e.onMounted(()=>{e.nextTick(B),window.addEventListener("resize",B),g.value&&($=new ResizeObserver(B),$.observe(g.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",B),$==null||$.disconnect()});function F(E){_.value=E}function M(E){T.value=E}return(E,L)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:g,class:"sy-pro-table sy-pro-table--classic"},[e.unref(r).showSearch&&e.unref(c)&&e.unref(i).length>0?(e.openBlock(),e.createElementBlock("div",is,[e.createVNode(qe,{ref:F,context:o.context,cols:e.unref(r).searchCols},null,8,["context","cols"])])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",ds,[e.createElementVNode("div",ps,[e.createElementVNode("div",ms,[e.renderSlot(E.$slots,"tableHeader",{selectedList:e.unref(a),selectedListIds:e.unref(n),isSelected:e.unref(t)})]),e.createElementVNode("div",fs,[e.renderSlot(E.$slots,"toolButton",{},()=>[e.unref(x)("refresh")?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Refresh),circle:"",onClick:e.unref(l)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(x)("setting")?(e.openBlock(),e.createBlock(e.unref(pe),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Operation),circle:"",onClick:e.unref(k)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(x)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(pe),{key:2,content:"搜索",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Search),circle:"",onClick:e.unref(A)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])])]),e.createVNode(je,{context:o.context,"table-height":C.value,"table-max-height":u.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(E.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(E.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(E.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(E.$slots,"pagination")]),_:3},8,["context"])]),e.createVNode(He,{ref:M,context:o.context},null,8,["context"])],512))}}),ht=e.defineComponent({__name:"CustomFilterChip",props:{column:{},model:{},modelValue:{},width:{}},emits:["search","remove","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),a=e.computed(()=>{var k,A,x,_,T,g,C;const t=r.column,l=(()=>{var u,m,y,B,$,F,M;if(((u=t.search)==null?void 0:u.options)!==void 0){const D=t.search.options;return Array.isArray(D)?D:(m=e.unref(D))!=null?m:void 0}if(!(!t.enum||(B=(y=t.search)==null?void 0:y.component)!=null&&B.includes("tree")))return typeof t.enum=="function"?(F=i.value.get(($=t.prop)!=null?$:""))!=null?F:void 0:Array.isArray(t.enum)?t.enum:(M=e.unref(t.enum))!=null?M:void 0})();return{field:(x=(A=(k=t.search)==null?void 0:k.key)!=null?A:t.prop)!=null?x:"",label:t.label,component:(_=t.search)==null?void 0:_.component,props:Q(R({},(T=t.search)==null?void 0:T.props),{clearable:!1}),options:l,fieldNames:t.fieldNames,defaultValue:(g=t.search)==null?void 0:g.defaultValue,render:(C=t.search)==null?void 0:C.render}});function n(t){c("update:modelValue",t)}return(t,l)=>{var k,A,x;return e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__custom-filter-chip",onKeyup:l[1]||(l[1]=e.withKeys(_=>c("search"),["enter"]))},[e.createElementVNode("div",{class:"sy-pro-table__custom-filter-chip-control",style:e.normalizeStyle({width:`${(x=(A=(k=r.column.search)==null?void 0:k.chipWidth)!=null?A:r.width)!=null?x:100}px`})},[e.createVNode(Oe,{schema:a.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":n},null,8,["schema","model","model-value"])],4),e.createElementVNode("span",{class:"sy-pro-table__custom-filter-chip-close",onClick:l[0]||(l[0]=e.withModifiers(_=>c("remove"),["stop"]))},[e.createVNode(e.unref(fe),null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Close))]),_:1})])],32)}}}),ut=e.defineComponent({__name:"UnifyQuickSearch",props:{column:{},model:{},modelValue:{}},emits:["search","update:modelValue"],setup(o,{emit:s}){const r=o,c=s,i=e.inject("proTableEnumMap",{value:new Map}),a=e.computed(()=>{var A;const l=(A=r.column.search)==null?void 0:A.quick,k=typeof l=="object"&&(l==null?void 0:l.width)||220;return{width:typeof k=="number"?`${k}px`:k}}),n=e.computed(()=>{var A,x,_,T,g,C,u;const l=r.column,k=(()=>{var m,y,B,$,F,M,D;if(((m=l.search)==null?void 0:m.options)!==void 0){const E=l.search.options;return Array.isArray(E)?E:(y=e.unref(E))!=null?y:void 0}if(!(!l.enum||($=(B=l.search)==null?void 0:B.component)!=null&&$.includes("tree")))return typeof l.enum=="function"?(M=i.value.get((F=l.prop)!=null?F:""))!=null?M:void 0:Array.isArray(l.enum)?l.enum:(D=e.unref(l.enum))!=null?D:void 0})();return{field:(_=(x=(A=l.search)==null?void 0:A.key)!=null?x:l.prop)!=null?_:"",label:l.label,component:(T=l.search)==null?void 0:T.component,props:(g=l.search)==null?void 0:g.props,options:k,fieldNames:l.fieldNames,defaultValue:(C=l.search)==null?void 0:C.defaultValue,render:(u=l.search)==null?void 0:u.render}});function t(l){c("update:modelValue",l)}return(l,k)=>(e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__unify-quick",style:e.normalizeStyle(a.value),onKeyup:k[0]||(k[0]=e.withKeys(A=>c("search"),["enter"]))},[e.createVNode(Oe,{schema:n.value,model:o.model,"model-value":o.modelValue,"onUpdate:modelValue":t},null,8,["schema","model","model-value"])],36))}}),us={class:"sy-pro-table__custom-search"},ys=e.defineComponent({__name:"CustomSearchBar",props:{quickSearchColumns:{},searchParam:{},showAdvanced:{type:Boolean},filterActive:{type:Boolean}},emits:["search","toggleAdvanced","updateParam"],setup(o,{emit:s}){const r=s;function c(){r("search")}return(i,a)=>(e.openBlock(),e.createElementBlock("div",us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.quickSearchColumns,n=>{var t,l,k,A,x;return e.openBlock(),e.createBlock(ut,{key:(l=(t=n.search)==null?void 0:t.key)!=null?l:n.prop,"model-value":o.searchParam[(x=(A=(k=n.search)==null?void 0:k.key)!=null?A:n.prop)!=null?x:""],column:n,model:o.searchParam,"onUpdate:modelValue":_=>{var T,g,C;return r("updateParam",(C=(g=(T=n.search)==null?void 0:T.key)!=null?g:n.prop)!=null?C:"",_)},onSearch:c},null,8,["model-value","column","model","onUpdate:modelValue"])}),128)),e.createVNode(e.unref(pe),{content:"查询",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{class:"sy-pro-table__custom-search-btn",icon:e.unref(X.Search),onClick:c},null,8,["icon"])]),_:1}),o.showAdvanced?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,content:"高级筛选",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{class:e.normalizeClass(["sy-pro-table__custom-filter-btn",{"is-active":o.filterActive}]),icon:e.unref(X.Filter),onClick:a[0]||(a[0]=n=>r("toggleAdvanced"))},null,8,["class","icon"])]),_:1})):e.createCommentVNode("v-if",!0)]))}}),Ss={class:"sy-pro-table__custom-panel-inner"},gs={class:"sy-pro-table__custom-panel-footer"},bs=e.defineComponent({__name:"CustomSearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close","panelSearch"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const g=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,g*280+32)}px`}}),a=r.context.search,n=r.context.reset;function t(){a(),c("panelSearch"),c("close")}function l(){n(),c("close")}const k=r.context.formRef,A=e.ref();function x(g){k.value=g}let _=null;function T(g){var u;const C=g.composedPath();for(const m of C){const y=m;if(y!=null&&y.classList&&(y===A.value||r.excludeSelector&&((u=y.matches)!=null&&u.call(y,r.excludeSelector))||y.classList.contains("el-popper")||y.classList.contains("el-overlay")||y.classList.contains("el-picker__popper")||y.classList.contains("el-select__popper")||y.classList.contains("el-select-dropdown")||y.classList.contains("el-date-picker")||y.classList.contains("el-date-range-picker")))return}c("close")}return e.watch(()=>r.visible,g=>{_==null||_(),_=null,g&&e.nextTick(()=>{document.addEventListener("mousedown",T,!0),_=()=>document.removeEventListener("mousedown",T,!0)})}),e.onBeforeUnmount(()=>_==null?void 0:_()),(g,C)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:A,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",Ss,[e.createVNode(qe,{ref:x,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",gs,[e.createVNode(e.unref(Y),{onClick:l},{default:e.withCtx(()=>[...C[0]||(C[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(Y),{type:"primary",onClick:t},{default:e.withCtx(()=>[...C[1]||(C[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),Cs={class:"sy-pro-table__main sy-pro-table__main--custom"},ws={class:"sy-pro-table__header sy-pro-table__header--custom"},As={class:"sy-pro-table__custom-batch"},ks={class:"sy-pro-table__custom-batch-count"},Ns={class:"sy-pro-table__header-left"},xs={class:"sy-pro-table__header-right sy-pro-table__header-right--custom"},Bs={class:"sy-pro-table__custom-panel-inner sy-pro-table__chip-overflow-list"},Ps=e.defineComponent({__name:"CustomLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var we;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,l=s.context.selectedListIds,k=s.context.isSelected,A=s.context.search,x=s.context.toggleSearch,_=s.context.showToolBtn,T=s.context.getTableList,g=s.context.openColSetting,C=s.context.colSettingRef,u=s.context.clearSelection,m=s.context.searchInitParam,y=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),B=e.computed(()=>{const d=new Set(a.value.map(b=>{var V,I,z;return(z=(I=(V=b.search)==null?void 0:V.key)!=null?I:b.prop)!=null?z:""}));return i.value.filter(b=>{var V,I,z;return!d.has((z=(I=(V=b.search)==null?void 0:V.key)!=null?I:b.prop)!=null?z:"")})}),$=e.ref(new Set),F=e.computed(()=>B.value.map(d=>{var I,z,O;const b=(O=(z=(I=d.search)==null?void 0:I.key)!=null?z:d.prop)!=null?O:"";if(!$.value.has(b))return null;const V=n.value[b];return V==null||V===""||Array.isArray(V)&&V.length===0?null:{key:b,column:d}}).filter(d=>d!==null)),M=e.computed(()=>{var b;const d=(b=r.filterChipMax)!=null?b:3;return F.value.slice(0,d)}),D=e.computed(()=>{var b;const d=(b=r.filterChipMax)!=null?b:3;return F.value.slice(d)}),E=e.ref(!1),L=e.ref(),K=e.ref(null),q=e.ref(null),J=e.computed(()=>{const d=q.value,b=S.value;if(!d||!b)return{left:"16px"};const V=b.getBoundingClientRect(),I=d.getBoundingClientRect();return{left:`${Math.round(I.left-V.left)}px`}});function H(){E.value=!E.value}e.watch(D,d=>{d.length===0&&(E.value=!1)});function Z(d){var I,z,O;const b=d.composedPath(),V=(z=(I=K.value)==null?void 0:I.$el)!=null?z:K.value;for(const v of b){const G=v;if(G!=null&&G.classList&&(G===L.value||(O=V==null?void 0:V.contains)!=null&&O.call(V,G)||G===V||G.classList.contains("el-popper")||G.classList.contains("el-overlay")||G.classList.contains("el-picker__popper")||G.classList.contains("el-select__popper")||G.classList.contains("el-select-dropdown")||G.classList.contains("el-date-picker")||G.classList.contains("el-date-range-picker")))return}E.value=!1}let W=null;e.watch(E,d=>{W==null||W(),W=null,d&&e.nextTick(()=>{document.addEventListener("mousedown",Z,!0),W=()=>document.removeEventListener("mousedown",Z,!0)})}),e.onBeforeUnmount(()=>W==null?void 0:W());function ee(){$.value=new Set(B.value.map(d=>{var b,V,I;return(I=(V=(b=d.search)==null?void 0:b.key)!=null?V:d.prop)!=null?I:""}).filter(d=>{const b=n.value[d];return b!=null&&b!==""&&!(Array.isArray(b)&&b.length===0)}))}function te(d,b){n.value[d]=b}function ae(d){var b;n.value[d]=(b=m[d])!=null?b:void 0,$.value.delete(d),A()}function ce(){B.value.forEach(d=>{var V,I,z,O;const b=(z=(I=(V=d.search)==null?void 0:V.key)!=null?I:d.prop)!=null?z:"";n.value[b]=(O=m[b])!=null?O:void 0}),$.value.clear(),A()}const S=e.ref(),P=e.ref(void 0),N=e.ref(void 0),U=(we=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?we:{};function j(){var G,me;const d=S.value;if(!d)return;const b=d.querySelector(".sy-pro-table__table"),V=d.querySelector(".sy-pro-table__pagination");if(!b)return;const I=b.getBoundingClientRect().top,z=V?V.getBoundingClientRect().height:0,O=(me=(G=r.heightOffset)!=null?G:U.heightOffset)!=null?me:0,v=Math.floor(window.innerHeight-I-z-O);return v>80?v:void 0}function ne(){if(r.height!==void 0){P.value=r.height,N.value=void 0;return}if(r.autoHeight===!0){P.value=j(),N.value=void 0;return}if(r.maxHeight!==void 0){P.value=void 0,N.value=r.maxHeight;return}P.value=void 0,N.value=j()}let oe=null;e.onMounted(()=>{e.nextTick(ne),window.addEventListener("resize",ne),S.value&&(oe=new ResizeObserver(ne),oe.observe(S.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",ne),oe==null||oe.disconnect()});function re(d){C.value=d}function Re(){c.value&&x()}return(d,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:S,class:"sy-pro-table sy-pro-table--custom"},[e.createElementVNode("div",Cs,[e.createElementVNode("div",ws,[e.createCommentVNode(" 批量操作模式:选中行时替换整个 header "),e.unref(k)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",As,[e.createElementVNode("span",ks,"已选 "+e.toDisplayString(e.unref(t).length)+" 条数据",1),b[1]||(b[1]=e.createElementVNode("span",{class:"sy-pro-table__custom-batch-divider"},null,-1)),e.renderSlot(d.$slots,"tableHeader",{selectedList:e.unref(t),selectedListIds:e.unref(l),isSelected:e.unref(k)})]),e.createVNode(e.unref(Y),{class:"sy-pro-table__custom-batch-close",icon:e.unref(X.Close),circle:"",onClick:e.unref(u)},null,8,["icon","onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 正常模式 "),e.createCommentVNode(" 左侧:快速查询 + 高级筛选 + 已应用筛选 tags "),e.createElementVNode("div",Ns,[e.createVNode(ys,{"quick-search-columns":e.unref(a),"search-param":e.unref(n),"show-advanced":e.unref(r).showSearch&&e.unref(_)("search")&&e.unref(i).length>0,"filter-active":y.value||F.value.length>0,onSearch:e.unref(A),onToggleAdvanced:e.unref(x),onUpdateParam:b[0]||(b[0]=(V,I)=>e.unref(n)[V]=I)},null,8,["quick-search-columns","search-param","show-advanced","filter-active","onSearch","onToggleAdvanced"]),e.createCommentVNode(" chips 行整体包一个 div,用于精确计算 overflow panel 的对齐 left "),F.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chipsRowRef",ref:q,class:"sy-pro-table__chip-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,V=>(e.openBlock(),e.createBlock(ht,{key:V.key,column:V.column,model:e.unref(n),"model-value":e.unref(n)[V.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":I=>te(V.key,I),onSearch:e.unref(A),onRemove:I=>ae(V.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createCommentVNode(" 超出 filterChipMax 时的折叠入口 "),D.value.length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,ref_key:"overflowBtnRef",ref:K,class:"sy-pro-table__custom-filter-more",size:"small",type:"primary",plain:"",onClick:H},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(D.value.length),1)]),_:1},512)):e.createCommentVNode("v-if",!0),D.value.length===0?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:ce},{default:e.withCtx(()=>[...b[2]||(b[2]=[e.createTextVNode("清空",-1)])]),_:1})):e.createCommentVNode("v-if",!0)],512)):e.createCommentVNode("v-if",!0)]),e.createCommentVNode(" 右侧:功能按钮 + 刷新 + 列设置 "),e.createElementVNode("div",xs,[e.renderSlot(d.$slots,"toolButton"),e.unref(_)("refresh")?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Refresh),circle:"",onClick:e.unref(T)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(_)("setting")?(e.openBlock(),e.createBlock(e.unref(pe),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(Y),{icon:e.unref(X.Operation),circle:"",onClick:e.unref(g)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])],64))]),e.createVNode(je,{context:o.context,"table-height":P.value,"table-max-height":N.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(d.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(d.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(d.$slots,"pagination")]),_:3},8,["context"])]),e.createCommentVNode(" 两个浮层面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),e.createVNode(bs,{context:o.context,visible:y.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__custom-filter-btn",onClose:Re,onPanelSearch:ee},null,8,["context","visible","cols"]),e.createCommentVNode(" overflow chip 浮层:与第一个 chip 左对齐 "),e.createVNode(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"overflowPanelRef",ref:L,class:"sy-pro-table__custom-panel",style:e.normalizeStyle(J.value)},[e.createElementVNode("div",Bs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,V=>(e.openBlock(),e.createBlock(ht,{key:V.key,column:V.column,model:e.unref(n),"model-value":e.unref(n)[V.key],width:e.unref(r).filterChipWidth,"onUpdate:modelValue":I=>te(V.key,I),onSearch:e.unref(A),onRemove:I=>ae(V.key)},null,8,["column","model","model-value","width","onUpdate:modelValue","onSearch","onRemove"]))),128)),e.createVNode(e.unref(Y),{link:"",size:"small",class:"sy-pro-table__custom-filter-clear",onClick:ce},{default:e.withCtx(()=>[...b[3]||(b[3]=[e.createTextVNode("清空全部",-1)])]),_:1})])],4),[[e.vShow,E.value]])]),_:1}),e.createVNode(He,{ref:re,context:o.context},null,8,["context"])],512))}}),Vs={class:"sy-pro-table__unify-panel-inner"},_s={class:"sy-pro-table__unify-panel-footer"},Rs=e.defineComponent({__name:"UnifySearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""},cols:{default:1}},emits:["close"],setup(o,{emit:s}){const r=o,c=s,i=e.computed(()=>{const g=typeof r.cols=="number"?r.cols:1;return{width:`${Math.max(360,g*280+32)}px`}}),a=r.context.search,n=r.context.reset;function t(){a(),c("close")}function l(){n(),c("close")}const k=r.context.formRef,A=e.ref();function x(g){k.value=g}let _=null;function T(g){var u;const C=g.target;C&&((u=A.value)!=null&&u.contains(C)||r.excludeSelector&&C.closest(r.excludeSelector)||C.closest(".el-popper")||C.closest(".el-overlay")||c("close"))}return e.watch(()=>r.visible,g=>{_==null||_(),_=null,g&&e.nextTick(()=>{document.addEventListener("mousedown",T,!0),_=()=>document.removeEventListener("mousedown",T,!0)})}),e.onBeforeUnmount(()=>_==null?void 0:_()),(g,C)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:A,class:"sy-pro-table__unify-panel",style:e.normalizeStyle(i.value)},[e.createElementVNode("div",Vs,[e.createVNode(qe,{ref:x,context:o.context,cols:r.cols,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context","cols"]),e.createElementVNode("div",_s,[e.createVNode(e.unref(Y),{onClick:l},{default:e.withCtx(()=>[...C[0]||(C[0]=[e.createTextVNode("重置",-1)])]),_:1}),e.createVNode(e.unref(Y),{type:"primary",onClick:t},{default:e.withCtx(()=>[...C[1]||(C[1]=[e.createTextVNode("查询",-1)])]),_:1})])])],4),[[e.vShow,o.visible]])]),_:1}))}}),Ts={class:"sy-pro-table__main sy-pro-table__main--unify"},Is={class:"sy-pro-table__header sy-pro-table__header--unify"},$s={class:"sy-pro-table__header-left"},Es={class:"sy-pro-table__header-right sy-pro-table__header-right--unify"},Ls=e.defineComponent({__name:"UnifyLayout",props:{context:{},onDragSort:{type:Function}},setup(o){var E;const s=o,r=s.context.props,c=s.context.isShowSearch,i=s.context.searchColumns,a=s.context.quickSearchColumns,n=s.context.searchParam,t=s.context.selectedList,l=s.context.selectedListIds,k=s.context.isSelected,A=s.context.search,x=s.context.toggleSearch,_=s.context.showToolBtn,T=s.context.colSettingRef,g=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0),C=e.ref(),u=e.ref(void 0),m=e.ref(void 0),y=(E=e.inject(h.SY_UI_CONFIG_KEY,{}).proTable)!=null?E:{};function B(){var ee,te;const L=C.value;if(!L)return;const K=L.querySelector(".sy-pro-table__table"),q=L.querySelector(".sy-pro-table__pagination");if(!K)return;const J=K.getBoundingClientRect().top,H=q?q.getBoundingClientRect().height:0,Z=(te=(ee=r.heightOffset)!=null?ee:y.heightOffset)!=null?te:0,W=Math.floor(window.innerHeight-J-H-Z);return W>80?W:void 0}function $(){if(r.height!==void 0){u.value=r.height,m.value=void 0;return}if(r.autoHeight===!0){u.value=B(),m.value=void 0;return}if(r.maxHeight!==void 0){u.value=void 0,m.value=r.maxHeight;return}u.value=void 0,m.value=B()}let F=null;e.onMounted(()=>{e.nextTick($),window.addEventListener("resize",$),C.value&&(F=new ResizeObserver($),F.observe(C.value))}),e.onUnmounted(()=>{window.removeEventListener("resize",$),F==null||F.disconnect()});function M(L){T.value=L}function D(){c.value&&x()}return(L,K)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"layoutRef",ref:C,class:"sy-pro-table sy-pro-table--unify"},[e.createElementVNode("div",Ts,[e.createElementVNode("div",Is,[e.createElementVNode("div",$s,[e.renderSlot(L.$slots,"tableHeader",{selectedList:e.unref(t),selectedListIds:e.unref(l),isSelected:e.unref(k)})]),e.createElementVNode("div",Es,[e.renderSlot(L.$slots,"toolButton",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),q=>{var J,H,Z,W,ee;return e.openBlock(),e.createBlock(ut,{key:(H=(J=q.search)==null?void 0:J.key)!=null?H:q.prop,modelValue:e.unref(n)[(ee=(W=(Z=q.search)==null?void 0:Z.key)!=null?W:q.prop)!=null?ee:""],"onUpdate:modelValue":te=>{var ae,ce,S;return e.unref(n)[(S=(ce=(ae=q.search)==null?void 0:ae.key)!=null?ce:q.prop)!=null?S:""]=te},column:q,model:e.unref(n),onSearch:e.unref(A)},null,8,["modelValue","onUpdate:modelValue","column","model","onSearch"])}),128)),e.unref(a).length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,type:"primary",onClick:e.unref(A)},{default:e.withCtx(()=>[...K[0]||(K[0]=[e.createTextVNode("查询",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(_)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(Y),{key:1,class:"sy-pro-table__unify-advanced-btn",type:"primary",plain:"",onClick:e.unref(x)},{default:e.withCtx(()=>[...K[1]||(K[1]=[e.createTextVNode(" 高级筛选 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0)])])]),e.createVNode(je,{context:o.context,"table-height":u.value,"table-max-height":m.value,"on-drag-sort":o.onDragSort},{append:e.withCtx(()=>[e.renderSlot(L.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(L.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(L.$slots,"default")]),_:3},8,["context","table-height","table-max-height","on-drag-sort"]),e.createVNode(Ue,{context:o.context},{pagination:e.withCtx(()=>[e.renderSlot(L.$slots,"pagination")]),_:3},8,["context"])]),e.createCommentVNode(" 面板放在最外层容器下,避免被 __main 的 overflow:hidden 裁剪 "),e.createVNode(Rs,{context:o.context,visible:g.value,cols:e.unref(r).panelCols,"exclude-selector":".sy-pro-table__unify-advanced-btn",onClose:D},null,8,["context","visible","cols"]),e.createVNode(He,{ref:M,context:o.context},null,8,["context"])],512))}}),Ms=e.defineComponent({name:"SyProTable",inheritAttrs:!1,__name:"ProTable",props:{columns:{},data:{},request:{},params:{},postData:{},requestError:{},manualRequest:{type:Boolean,default:!1},pagination:{type:Boolean,default:!0},rowKey:{},border:{type:Boolean},stripe:{type:Boolean},showSearch:{type:Boolean,default:!0},searchCols:{},panelCols:{},filterChipWidth:{},filterChipMax:{},toolButton:{type:[Boolean,Array],default:!0},highlightCurrentRow:{type:Boolean,default:!1},size:{},pageSizes:{},pageSize:{},pageLayout:{},type:{},height:{},maxHeight:{},autoHeight:{type:Boolean},heightOffset:{}},emits:["search","reset","dragSort"],setup(o,{expose:s,emit:r}){const c=o,i=r,a=e.useSlots(),n=ns(c,i,a);function t(l){i("dragSort",l)}return s({tableRef:n.tableRef,formRef:n.formRef,tableData:n.tableData,enumMap:n.enumMap,pageable:n.pageable,searchParam:n.searchParam,searchInitParam:n.searchInitParam,isSelected:n.isSelected,selectedList:n.selectedList,selectedListIds:n.selectedListIds,radio:n.radio,getTableList:n.getTableList,search:n.search,reset:n.reset,clearSelection:n.clearSelection,clearRadio:n.clearRadio,handleSizeChange:n.handleSizeChange,handleCurrentChange:n.handleCurrentChange}),(l,k)=>e.unref(n).type==="classic"?(e.openBlock(),e.createBlock(hs,{key:0,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(A=>[e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(A)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"0"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"1"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"2"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"])):e.unref(n).type==="unify"?(e.openBlock(),e.createBlock(Ls,{key:1,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(A=>[e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(A)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"0"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"1"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"2"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"])):(e.openBlock(),e.createBlock(Ps,{key:2,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(A=>[e.renderSlot(l.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(A)))]),default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:2},[e.unref(a).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"toolButton")]),key:"0"}:void 0,e.unref(a).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"append")]),key:"1"}:void 0,e.unref(a).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"empty")]),key:"2"}:void 0,e.unref(a).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"]))}}),Fs=h.withInstall(Ms);Object.defineProperty(f,"SY_UI_CONFIG_KEY",{enumerable:!0,get:()=>h.SY_UI_CONFIG_KEY}),f.SyAlert=Tt,f.SyAside=on,f.SyAutocomplete=ie,f.SyBacktop=$t,f.SyButton=Y,f.SyCard=Mt,f.SyCascader=Ge,f.SyCheckbox=Ye,f.SyCheckboxButton=Ht,f.SyCheckboxGroup=We,f.SyCol=Dn,f.SyCollapse=Gt,f.SyCollapseItem=Yt,f.SyColorPicker=qt,f.SyConfigProvider=an,f.SyContainer=tn,f.SyDatePicker=Qe,f.SyDateTimePicker=pn,f.SyDescriptions=hn,f.SyDescriptionsItem=un,f.SyDialog=Sn,f.SyDivider=bn,f.SyDrawer=Je,f.SyDropdown=Nn,f.SyDropdownItem=Bn,f.SyDropdownMenu=xn,f.SyEmpty=Ze,f.SyFooter=rn,f.SyForm=Xe,f.SyFormItem=ve,f.SyHeader=nn,f.SyIcon=fe,f.SyImage=In,f.SyInput=$e,f.SyInputNumber=et,f.SyLink=On,f.SyLoading=jn,f.SyLoadingDirective=Ne,f.SyMain=sn,f.SyMenu=Qn,f.SyMenuItem=Zn,f.SyMenuItemGroup=Xn,f.SyMessage=he,f.SyMessageBox=nt,f.SyNotification=ot,f.SyOption=ct,f.SyPagination=st,f.SyPopconfirm=to,f.SyPopover=so,f.SyProForm=pt,f.SyProTable=Fs,f.SyProgress=lo,f.SyRadio=Fe,f.SyRadioButton=lt,f.SyRadioGroup=rt,f.SyRow=Fn,f.SyScrollbar=mo,f.SySelect=at,f.SySelectV2=So,f.SySkeleton=Co,f.SySkeletonItem=wo,f.SySlider=ko,f.SySpace=xo,f.SyStep=_o,f.SySteps=Vo,f.SySubMenu=Jn,f.SySwitch=Ve,f.SyTabPane=Mo,f.SyTable=De,f.SyTableColumn=le,f.SyTabs=Lo,f.SyTag=_e,f.SyText=zo,f.SyTimePicker=it,f.SyTimeSelect=dt,f.SyTooltip=pe,f.SyTree=Ko,f.SyTreeSelect=Yo,f.SyUpload=Qo,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});