1
0
Fork 0
owl-admin-starter/public/admin-assets/assets/CollapseGroup-CFxKs9BJ.js

2 lines
1.7 KiB
JavaScript

import{t as C,G as I,H as w,w as E,x as F,l as n,af as N,ag as G,ad as y,z as r,ae as P,D as v,Q as R,T as u,E as A,ah as K}from"./index-CEmnTf-r.js";var U=function(t){C(a,t);function a(e){return t.call(this,e)||this}return a.prototype.handleCollapseChange=function(e,p,d){return I(this,void 0,void 0,function(){var o,s;return w(this,function(l){switch(l.label){case 0:return o=this.props.dispatchEvent,[4,o("change",K(this.props,{activeKeys:e,collapseId:p,collapsed:d}))];case 1:return s=l.sent(),s!=null&&s.prevented?[2]:[2]}})})},a.prototype.render=function(){var e=this.props,p=e.defaultActiveKey,d=e.accordion,o=e.expandIcon,s=e.expandIconPosition,l=e.body,f=e.className,b=e.style,g=e.render,S=e.mobileUI,_=e.data,c=e.id,m=e.themeCss,h=e.wrapperCustomStyle,x=e.env,i=this.props.enableFieldSetStyle;return E(i)&&(i=F(i,_,"| raw")),n.createElement(n.Fragment,null,n.createElement(N,{defaultActiveKey:p,accordion:d,expandIcon:o,expandIconPosition:s,className:G(f,y(r(r({},this.props),{name:"className",id:c,themeCss:m})),y(r(r({},this.props),{name:"wrapperCustomStyle",id:c,themeCss:h}))),style:b,mobileUI:S,onCollapseChange:this.handleCollapseChange},g("body",l||"",{enableFieldSetStyle:i})),n.createElement(P,r({},this.props,{config:{wrapperCustomStyle:h,id:c,themeCss:m,classNames:[{key:"className"}]},env:x})))},a.defaultProps={enableFieldSetStyle:!0},v([R,u("design:type",Function),u("design:paramtypes",[Array,Object,Boolean]),u("design:returntype",Promise)],a.prototype,"handleCollapseChange",null),a}(n.Component),T=function(t){C(a,t);function a(){return t!==null&&t.apply(this,arguments)||this}return a=v([A({type:"collapse-group"})],a),a}(U);export{U as CollapseGroupRender,T as CollapseGroupRenderer};