!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/material/dialog"),require("@angular/cdk/a11y"),require("@angular/material/button"),require("@angular/material/button-toggle"),require("@angular/material/checkbox"),require("@angular/material/grid-list"),require("@angular/material/list"),require("@angular/material/select"),require("@angular/platform-browser"),require("@angular/platform-browser/animations"),require("@angular/material/form-field"),require("@angular/common"),require("@angular/common/http"),require("@angular/forms")):"function"==typeof define&&define.amd?define("lib-sirius-ng",["exports","@angular/core","@angular/material/dialog","@angular/cdk/a11y","@angular/material/button","@angular/material/button-toggle","@angular/material/checkbox","@angular/material/grid-list","@angular/material/list","@angular/material/select","@angular/platform-browser","@angular/platform-browser/animations","@angular/material/form-field","@angular/common","@angular/common/http","@angular/forms"],e):e((t=t||self)["lib-sirius-ng"]={},t.ng.core,t.ng.material.dialog,t.ng.cdk.a11y,t.ng.material.button,t.ng.material["button-toggle"],t.ng.material.checkbox,t.ng.material["grid-list"],t.ng.material.list,t.ng.material.select,t.ng.platformBrowser,t.ng.platformBrowser.animations,t.ng.material["form-field"],t.ng.common,t.ng.common.http,t.ng.forms)}(this,(function(t,e,r,n,o,i,a,l,s,c,u,m,p,d,g,f){"use strict";var h=function(){function t(){}return t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),b=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"lib-sirius-ng",template:"\n    <p>\n      lib-sirius-ng works!\n    </p>\n  "}]}],t.ctorParameters=function(){return[]},t}(),y=function(){};var v=function(){function t(t){this.http=t,this.hp=new g.HttpParams}return t.prototype.recupListeDocuments=function(t,e,r){null!=t&&(this.hp=this.hp.set("idMouvement",t)),null!=e&&(this.hp=this.hp.set("noLigne",e.toString())),null!=e&&(this.hp=this.hp.set("loginUser",r));var n={params:this.hp};return this.http.get("api/services/datamatrix/liste-docs",n)},t.prototype.recupListeMouvement=function(){return this.http.get("api/services/datamatrix/liste-mouvements")},t.prototype.recupListeLignesCap=function(t){null!=t&&(this.hp=this.hp.set("idMouvement",t));this.hp;return this.http.get("api/services/datamatrix/liste-lignes-cap")},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:g.HttpClient}]},t}();var M=function(){function t(t,e,r){this.dialogRef=t,this.data=e,this.listeDocService=r,this.color="primary"}return t.prototype.ngOnInit=function(){var t=this;this.listeDocService.recupListeDocuments(" M19033955",232130,"").subscribe((function(e){t.listeDocuments=JSON.parse(JSON.stringify(e)),console.log("liste: ",t.listeDocuments)}),(function(t){console.log("Erreur: ",t)}))},t.prototype.count=function(t){return new Array(t)},t.prototype.onNoClick=function(){this.dialogRef.close()},t.prototype.selectAll=function(t){this.listeDocuments.forEach((function(e){e.b_docuser=t}))},t.decorators=[{type:e.Component,args:[{selector:"app-impression-etiquette-template",template:'<h2 mat-dialog-title>Impression étiquettes dématérialisation</h2>\r\n<mat-dialog-content class="split">\r\n  <div class="left">\r\n    <app-liste-documents [listeDocs]="listeDocuments"></app-liste-documents>\r\n  </div>\r\n\r\n  <div class="right">\r\n    <mat-form-field appearance="fill">\r\n      <mat-label>N° mouvement</mat-label>\r\n      <mat-select>\r\n        <mat-option></mat-option>\r\n      </mat-select>\r\n    </mat-form-field>\r\n\r\n    <mat-form-field appearance="fill">\r\n      <mat-label>Ligne / CAP</mat-label>\r\n      <mat-select>\r\n        <mat-option ></mat-option>\r\n      </mat-select>\r\n    </mat-form-field>\r\n\r\n    <section>\r\n      <mat-checkbox [color]="color" (change)=selectAll($event)>Toutes les lignes</mat-checkbox>\r\n    </section>\r\n\r\n    <button mat-button>Actualiser</button>\r\n\r\n    <section>\r\n      <mat-checkbox [color]="color">Bon de réception VRAC</mat-checkbox>\r\n    </section>\r\n    <mat-form-field appearance="fill">\r\n      <mat-select>\r\n        \x3c!-- <mat-option *ngfor="let nb of count(10); let i = index">{{ i }}</mat-option> --\x3e\r\n      </mat-select>\r\n    </mat-form-field>\r\n  </div>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions align="end">\r\n  <button mat-button mat-dialog-close>Fermer</button>\r\n  <button mat-button [mat-dialog-close]="true" cdkFocusInitial>Imprimer</button>\r\n</mat-dialog-actions>\r\n\r\n\r\n\x3c!-- Copyright 2020 Google LLC. All Rights Reserved.\r\n    Use of this source code is governed by an MIT-style license that\r\n    can be found in the LICENSE file at http://angular.io/license --\x3e',styles:[".split{display:-ms-grid;display:grid;-ms-grid-columns:70% 30%;grid-template-columns:70% 30%;top:0;padding-top:20px}.left{left:0;min-width:600px;padding-right:20px}.right{right:0}.mat-dialog-title{text-align:center}"]}]}],t.ctorParameters=function(){return[{type:r.MatDialogRef},{type:y,decorators:[{type:e.Inject,args:[r.MAT_DIALOG_DATA]}]},{type:v}]},t}();var x=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"app-liste-documents",template:'<h4 class="titre">Liste des documents</h4>\r\n<div class="titre-liste">\r\n    <div class="type"><h4>Type</h4></div>\r\n    <div class="demat-client"><h4>Démat.<br/> client</h4></div>\r\n    <div class="a-imprimer"><h4>A <br/>imprimer</h4></div>\r\n</div>\r\n<ul>\r\n    <li *ngFor="let doc of listeDocs; let even = even; let odd = odd" [ngClass]="{even: even, odd: odd}" ><app-document [document]=doc></app-document></li>\r\n</ul>',styles:["ul{list-style:none}div.titre-liste{display:-ms-grid;display:grid;-ms-grid-columns:60% 20% 20%;grid-template-columns:60% 20% 20%;text-align:center}div.titre-liste h4{margin:3px}.titre{text-align:center;margin:3px}.even{background-color:#f7f6f5}.odd{background-color:none}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={listeDocs:[{type:e.Input}]},t}();var C=function(){function t(){this.color="primary"}return t.prototype.updateCheckbox=function(t){},t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"app-document",template:' <div class="ligne-doc">\r\n    <div class="type-doc">{{ document.lb_type_doc_demat }}</div>\r\n    <div class="demat-client"><mat-checkbox [color]="color" [(ngModel)]="document.b_docclient" ></mat-checkbox></div>\r\n    <div class="a-imprimer"><mat-checkbox [color]="color" [(ngModel)]="document.b_docuser" ></mat-checkbox></div>\r\n</div>',styles:[".ligne-doc{display:-ms-grid;display:grid;-ms-grid-columns:60% 20% 20%;grid-template-columns:60% 20% 20%;text-align:center}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={document:[{type:e.Input}]},t}();var k=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[C],imports:[a.MatCheckboxModule,f.FormsModule],exports:[C,a.MatCheckboxModule,f.FormsModule],schemas:[e.CUSTOM_ELEMENTS_SCHEMA]}]}],t}(),D=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[x],imports:[k,u.BrowserModule,f.FormsModule,g.HttpClientModule],exports:[x],providers:[v]}]}],t}(),q=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[d.CommonModule,m.BrowserAnimationsModule,p.MatFormFieldModule,u.BrowserModule,n.A11yModule,o.MatButtonModule,i.MatButtonToggleModule,a.MatCheckboxModule,r.MatDialogModule,l.MatGridListModule,s.MatListModule,c.MatSelectModule,D],declarations:[M],exports:[D,M],entryComponents:[M]}]}],t}(),I=function(){function t(t){this.dialog=t,this.id=3456565,this.label="Label test",this.type="EXEMPLE_TYPE"}return t.prototype.ngOnInit=function(){},t.prototype.impressionEtiquettes=function(t){this.dialog.open(M,{data:{id:this.id,label:this.label,type:this.type}}).afterClosed().subscribe((function(t){console.log("res: ",t)}))},t.decorators=[{type:e.Component,args:[{selector:"app-datamatrix",template:'<button mat-button title="Imprimer les étiquettes dématérialisées"  type="button" (click)="impressionEtiquettes($event)" [disabled]=false class="btn btn-primary h-25px"><i class="fal fa-print"></i></button>\r\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:r.MatDialog}]},t}();var L=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[I],imports:[r.MatDialogModule,q],exports:[I]}]}],t}(),E=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[b],imports:[],exports:[b,L,q,D,k]}]}],t}();t.DocumentComponent=C,t.DocumentModule=k,t.ImpressionEtiquetteComponent=I,t.ImpressionEtiquetteModule=L,t.ImpressionEtiquetteTemplateComponent=M,t.ImpressionEtiquetteTemplateModule=q,t.LibSiriusNgComponent=b,t.LibSiriusNgModule=E,t.LibSiriusNgService=h,t.ListeDocumentsComponent=x,t.ListeDocumentsModule=D,t.ListeDocumentsService=v,t.ɵa=y,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=lib-sirius-ng.umd.min.js.map