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