-
Notifications
You must be signed in to change notification settings - Fork 0
/
chunk-L33VBHGC.js
1 lines (1 loc) · 10.4 KB
/
chunk-L33VBHGC.js
1
import{a as N,b as D}from"./chunk-NDOKSOBD.js";import{m as x,n as I,q as A,u as B,v as R}from"./chunk-T3ESSPXM.js";import"./chunk-SJDOEHTM.js";import{Aa as a,Ab as P,Ba as s,Fa as w,G as f,Ha as m,L as C,M as E,Ma as q,Na as z,Oa as M,Ob as O,Q as l,R as p,S as y,Sa as i,Ta as d,Ua as S,da as t,na as T,oa as h,qa as o,rb as V,sa as b,sb as F,ta as k,za as n}from"./chunk-J6TELLLA.js";var j=["logs"];function G(c,Q){if(c&1&&(n(0,"li",22),i(1),a()),c&2){let v=Q.$implicit;o("ngClass",v.type),t(),d(v.text)}}var H=(()=>{class c extends D{constructor(){super(...arguments),this.action={a1s:25,a2s:50,a3s:25,a1v:!0,a2v:!0,a3v:!0,useTransition:!0},this.logMessages=[],this.class="split-example-page",this.only=0,this.keepA=!0,this.keepB=!0,this.keepC=!0}log(v){this.logMessages.push({type:"transitionEnd",text:`${N(new Date)} > transitionEnd event > ${v}`}),setTimeout(()=>{this.logsEl.nativeElement.scroll&&this.logsEl.nativeElement.scroll({top:this.logMessages.length*30})})}left(){switch(this.only){case 0:case 2:case 3:this.only=1;return;case 1:this.only=0;return}}center(){switch(this.only){case 0:case 1:case 3:this.only=2;return;case 2:this.only=0;return}}right(){switch(this.only){case 0:case 1:case 2:this.only=3;return;case 3:this.only=0;return}}static{this.\u0275fac=(()=>{let v;return function(e){return(v||(v=y(c)))(e||c)}})()}static{this.\u0275cmp=C({type:c,selectors:[["sp-ex-transitions"]],viewQuery:function(_,e){if(_&1&&q(j,5),_&2){let r;z(r=M())&&(e.logsEl=r.first)}},hostVars:2,hostBindings:function(_,e){_&2&&k(e.class)},features:[T],decls:138,vars:53,consts:[["logs",""],[1,"container"],[3,"type"],[1,"split-example"],["direction","horizontal","disabled","true",3,"dragEnd","transitionEnd","useTransition"],["order","1",3,"visible","size"],["order","2",3,"visible","size"],["order","3",3,"visible","size"],[1,"btns"],[1,"btn","btn-warning",3,"click"],[1,"btn-group"],[1,"logs"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"split-example","ex2",2,"height","150px"],["useTransition","true","unit","pixel"],["size","200","minSize","200","order","1",3,"visible"],["size","*","order","2",3,"visible"],["size","200","minSize","200","order","3",3,"visible"],["useTransition","true","unit","percent"],["size","30","minSize","30","order","1",3,"visible"],["size","40","order","2",3,"visible"],["size","30","minSize","30","order","3",3,"visible"],[3,"ngClass"]],template:function(_,e){if(_&1){let r=w();i(0),n(1,"div",1),s(2,"sp-example-title",2),n(3,"div",3)(4,"as-split",4),m("dragEnd",function(g){return l(r),e.action.a1s=g.sizes[0],e.action.a2s=g.sizes[1],p(e.action.a3s=g.sizes[2])})("transitionEnd",function(g){return l(r),p(e.log(g))}),n(5,"as-split-area",5)(6,"p"),i(7," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tiam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. "),a()(),n(8,"as-split-area",6)(9,"p"),i(10," Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eodolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? "),a()(),n(11,"as-split-area",7)(12,"p"),i(13," Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eodolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? "),a()()()(),s(14,"br"),n(15,"div",8)(16,"div")(17,"button",9),m("click",function(){return l(r),p(e.action.useTransition=!e.action.useTransition)}),i(18),a()(),n(19,"div",10)(20,"label",9),m("click",function(){return l(r),p(e.action.a1v=!e.action.a1v)}),i(21),a(),n(22,"label",9),m("click",function(){return l(r),p(e.action.a2v=!e.action.a2v)}),i(23),a(),n(24,"label",9),m("click",function(){return l(r),p(e.action.a3v=!e.action.a3v)}),i(25),a()(),n(26,"div",10)(27,"label",9),m("click",function(){return l(r),e.action.a1s=25,e.action.a2s=50,p(e.action.a3s=25)}),i(28,"Set sizes to 25/50/25"),a(),n(29,"label",9),m("click",function(){return l(r),e.action.a1s=40,e.action.a2s=20,p(e.action.a3s=40)}),i(30,"Set sizes to 40/20/40"),a()()(),n(31,"div",11)(32,"p"),i(33,"Events "),n(34,"code"),i(35,"(transitionEnd)"),a(),i(36,":"),a(),n(37,"ul",null,0),h(39,G,2,2,"li",12),a()(),s(40,"br")(41,"hr")(42,"br"),n(43,"div",13)(44,"as-split",14)(45,"as-split-area",15)(46,"button",9),m("click",function(){return l(r),p(e.left())}),i(47),a(),n(48,"p"),i(49,"size: 200px"),s(50,"br"),i(51,"minSize: 200px"),a()(),n(52,"as-split-area",16)(53,"button",9),m("click",function(){return l(r),p(e.center())}),i(54),a(),n(55,"p"),i(56,"size: *"),a()(),n(57,"as-split-area",17)(58,"button",9),m("click",function(){return l(r),p(e.right())}),i(59),a(),n(60,"p"),i(61,"size: 200px"),s(62,"br"),i(63,"minSize: 200px"),a()()()(),n(64,"div",13)(65,"as-split",18)(66,"as-split-area",19)(67,"button",9),m("click",function(){return l(r),p(e.left())}),i(68),a(),n(69,"p"),i(70,"size: 30%"),s(71,"br"),i(72,"minSize: 30%"),a()(),n(73,"as-split-area",20)(74,"button",9),m("click",function(){return l(r),p(e.center())}),i(75),a(),n(76,"p"),i(77,"size: 40%"),a()(),n(78,"as-split-area",21)(79,"button",9),m("click",function(){return l(r),p(e.right())}),i(80),a(),n(81,"p"),i(82,"size: 30%"),s(83,"br"),i(84,"minSize: 30%"),a()()()(),s(85,"br")(86,"hr")(87,"br"),n(88,"div",8)(89,"div",10)(90,"label",9),m("click",function(){return l(r),p(e.keepA=!e.keepA)}),i(91),a(),n(92,"label",9),m("click",function(){return l(r),p(e.keepB=!e.keepB)}),i(93),a(),n(94,"label",9),m("click",function(){return l(r),p(e.keepC=!e.keepC)}),i(95),a()()(),n(96,"div",13)(97,"as-split",14)(98,"as-split-area",15)(99,"p"),i(100,"A"),s(101,"br"),i(102,"size: 200px"),s(103,"br"),i(104,"minSize: 200px"),a()(),n(105,"as-split-area",16)(106,"p"),i(107,"B"),s(108,"br"),i(109,"size: *"),a()(),n(110,"as-split-area",17)(111,"p"),i(112,"C"),s(113,"br"),i(114,"size: 200px"),s(115,"br"),i(116,"minSize: 200px"),a()()()(),n(117,"div",13)(118,"as-split",18)(119,"as-split-area",19)(120,"p"),i(121,"A"),s(122,"br"),i(123,"size: 30%"),s(124,"br"),i(125,"minSize: 30%"),a()(),n(126,"as-split-area",20)(127,"p"),i(128,"B"),s(129,"br"),i(130,"size: 40%"),a()(),n(131,"as-split-area",21)(132,"p"),i(133,"C"),s(134,"br"),i(135,"size: 30%"),s(136,"br"),i(137,"minSize: 30%"),a()()()()()}_&2&&(S(" ",e.testChangeDetectorRun()," "),t(2),o("type",e.exampleEnum.TRANSITION),t(2),o("useTransition",e.action.useTransition),t(),o("visible",e.action.a1v)("size",e.action.a1s),t(3),o("visible",e.action.a2v)("size",e.action.a2s),t(3),o("visible",e.action.a3v)("size",e.action.a3s),t(6),b("active",!e.action.useTransition),t(),S(" ","useTransition: "+e.action.useTransition," "),t(2),b("active",!e.action.a1v),t(),d("area1: "+e.action.a1v),t(),b("active",!e.action.a2v),t(),d("area2: "+e.action.a2v),t(),b("active",!e.action.a3v),t(),d("area3: "+e.action.a3v),t(2),b("disabled",e.action.a1s===25||!e.action.a1v||!e.action.a2v||!e.action.a3v),t(2),b("disabled",e.action.a1s===40||!e.action.a1v||!e.action.a2v||!e.action.a3v),t(10),o("ngForOf",e.logMessages),t(6),o("visible",e.only===1||e.only===0),t(2),d(e.only===1?"LEFT \u2B05\uFE0F":"LEFT \u27A1"),t(5),o("visible",e.only===2||e.only===0),t(2),S(" ",e.only===2?"\u27A1 \uFE0FCENTER \u2B05":"\uFE0F\u2B05 \uFE0FCENTER \u27A1"," "),t(3),o("visible",e.only===3||e.only===0),t(2),d(e.only===3?"\u27A1 RIGHT":"\u2B05\uFE0F RIGHT"),t(7),o("visible",e.only===1||e.only===0),t(2),d(e.only===1?"LEFT \u2B05\uFE0F":"LEFT \u27A1"),t(5),o("visible",e.only===2||e.only===0),t(2),S(" ",e.only===2?"\u27A1 \uFE0FCENTER \u2B05":"\uFE0F\u2B05 \uFE0FCENTER \u27A1"," "),t(3),o("visible",e.only===3||e.only===0),t(2),d(e.only===3?"\u27A1 RIGHT":"\u2B05\uFE0F RIGHT"),t(10),b("active",!e.keepA),t(),d("A: "+e.keepA),t(),b("active",!e.keepB),t(),d("B: "+e.keepB),t(),b("active",!e.keepC),t(),d("C: "+e.keepC),t(3),o("visible",e.keepA),t(7),o("visible",e.keepB),t(5),o("visible",e.keepC),t(9),o("visible",e.keepA),t(7),o("visible",e.keepB),t(5),o("visible",e.keepC))},dependencies:[V,F,B,x,I],styles:["button[_ngcontent-%COMP%]{margin:4px}.btns[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap}.btns[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.btns[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-bottom:10px}.btns[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(1){flex:1 1 20%}.btns[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){flex:1 1 40%}.btns[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){flex:1 1 40%}.logs[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin-bottom:5px}.logs[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{height:200px;width:100%;overflow-y:scroll;overflow-x:hidden;border:1px solid #bfbfbf;background-color:#e8e8e8}.as-split-area[_ngcontent-%COMP%]{background:#d3d3d3}.as-split-area.as-min[_ngcontent-%COMP%]{background:green}.as-split-area.as-max[_ngcontent-%COMP%]{background:red}[_nghost-%COMP%] .ex2[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.ex2[_ngcontent-%COMP%]{--as-transition-duration: 1s}"],changeDetection:0})}}return c})();var ne=(()=>{class c{static{this.\u0275fac=function(_){return new(_||c)}}static{this.\u0275mod=E({type:c})}static{this.\u0275inj=f({imports:[P,R,O.forChild([{path:"",component:H}]),A]})}}return c})();export{ne as SplitTransitionsModule};