-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path20-es5.a0d40ebe313f6665b814.js
1 lines (1 loc) · 3.22 KB
/
20-es5.a0d40ebe313f6665b814.js
1
!function(){function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function t(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{AKJP:function(e,o,c){"use strict";c.r(o),c.d(o,"SampleSixModule",function(){return V});var i,r,a=c("An66"),s=c("1VvW"),l=c("5Q2+"),u=c("zMYQ"),d=c("umqh"),b=c("kZht"),p=c("mcff"),h=c("aJOL"),g=c("hCLc"),f=c("UDV5"),k=c("3kIJ"),m=c("1ZKX"),y=c("25ch"),w=c("QAKa"),G=c("oTne"),v=function(){return{standalone:!0}},C=function(){return{id:"asc"}},x=function(){return{id:"desc"}},S=((r=function(){function e(t,o){n(this,e),this.dialog=t,this.cd=o,this.sortByIdDirection=!0,this.data=[],this.skipSort=!1}var o,c,i;return o=e,(c=[{key:"ngOnInit",value:function(){var n=this;u.a.generator(1e4,50).then(function(t){n.data=t,n.cd.detectChanges()})}},{key:"ngAfterViewInit",value:function(){document.querySelectorAll("pre code").forEach(function(n){hljs.highlightBlock(n)})}},{key:"sortChanges",value:function(n){console.log("orderedField",n)}},{key:"showSample",value:function(){this.dialog.open(d.a,{data:{title:"Overview sortable table",description:"",code:'\n<ngx-table-builder\n [source]="data"\n [skip-sort]="skipSort"\n [sort-types]="sortByIdDirection ? { id: \'asc\' } : { id: \'desc\' }"\n (sortChanges)="sortChanges($event)"\n></ngx-table-builder>'},height:"350px",width:"700px"})}}])&&t(o.prototype,c),i&&t(o,i),e}()).\u0275fac=function(n){return new(n||r)(b.Ob(p.b),b.Ob(b.h))},r.\u0275cmp=b.Ib({type:r,selectors:[["sample-six"]],decls:26,vars:8,consts:[[1,"simple-toolbar"],["mat-raised-button","",3,"click"],[1,"regenerate",3,"ngModel","ngModelOptions","ngModelChange"],["mat-raised-button","",1,"show-simple",3,"click"],[3,"source","skip-sort","sort-types","sortChanges"],["is-sortable",""]],template:function(n,t){1&n&&(b.Vb(0,"mat-toolbar",0),b.Gc(1,"\n "),b.Vb(2,"span"),b.Gc(3,"\n Example sorting\n\n "),b.Vb(4,"button",1),b.dc("click",function(){return t.sortByIdDirection=!t.sortByIdDirection}),b.Gc(5,"Toggle sort by ID"),b.Ub(),b.Gc(6,"\n "),b.Vb(7,"mat-checkbox",2),b.dc("ngModelChange",function(n){return t.skipSort=n}),b.Gc(8,"\n Skip internal sort\n "),b.Ub(),b.Gc(9,"\n "),b.Ub(),b.Gc(10,"\n\n "),b.Vb(11,"button",3),b.dc("click",function(){return t.showSample()}),b.Gc(12,"show code sample"),b.Ub(),b.Gc(13,"\n"),b.Ub(),b.Gc(14,"\n\n"),b.Vb(15,"ngx-table-builder",4),b.dc("sortChanges",function(n){return t.sortChanges(n)}),b.Gc(16,"\n "),b.Vb(17,"ngx-empty"),b.Gc(18,"No data"),b.Ub(),b.Gc(19,"\n "),b.Vb(20,"ngx-source-null"),b.Gc(21,"Loading"),b.Ub(),b.Gc(22,"\n "),b.Qb(23,"ngx-options",5),b.Gc(24,"\n"),b.Ub(),b.Gc(25,"\n")),2&n&&(b.Cb(7),b.oc("ngModel",t.skipSort)("ngModelOptions",b.qc(5,v)),b.Cb(8),b.oc("source",t.data)("skip-sort",t.skipSort)("sort-types",t.sortByIdDirection?b.qc(6,C):b.qc(7,x)))},directives:[h.a,g.a,f.a,k.k,k.n,m.a,y.a,w.a,G.a],encapsulation:2,changeDetection:0}),r),V=((i=function t(){n(this,t)}).\u0275fac=function(n){return new(n||i)},i.\u0275mod=b.Mb({type:i}),i.\u0275inj=b.Lb({imports:[[a.b,l.a,s.b.forChild([{path:"",component:S}])]]}),i)}}])}();