p3x-redis-ui-material
Version:
💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io
1 lines • 4.21 kB
JavaScript
;(self.webpackChunkp3x_redis_ui_material=self.webpackChunkp3x_redis_ui_material||[]).push([[6626],{628(n,t,e){e.d(t,{m:()=>b});var i=e(11228),l=e(24698),o=e(63924),a=e(30943),s=e(33825),c=e(46256),r=e(90870),u=e(23232),d=e(51218),m=e(34503);function p(n,t){if(1&n&&(d.j41(0,"span"),d.EFF(1),d.k0s()),2&n){const n=d.XpG();d.R7$(),d.JRh(n.label)}}class b{breakpointObserver;i18n;cdr;label="";icon="cancel";cancel=new l.bkB;isWide=!0;constructor(n,t,e){this.breakpointObserver=n,this.i18n=t,this.cdr=e,this.breakpointObserver.observe("(min-width: 600px)").subscribe((n=>{this.isWide=n.matches,this.cdr.markForCheck()}))}ngOnInit(){this.label||(this.label=this.i18n.strings().intention?.cancel||"Cancel")}static ɵfac=function(n){return new(n||b)(d.rXU(r.Q),d.rXU(u.W),d.rXU(i.gRc))};static ɵcmp=d.VBU({type:b,selectors:[["p3xr-dialog-cancel"]],inputs:{label:"label",icon:"icon"},outputs:{cancel:"cancel"},decls:4,vars:5,consts:[["mat-raised-button","","type","button",1,"btn-warn",3,"click","matTooltip","matTooltipDisabled"]],template:function(n,t){1&n&&(d.j41(0,"button",0),d.bIt("click",(function(){return t.cancel.emit()})),d.j41(1,"mat-icon"),d.EFF(2),d.k0s(),d.nVh(3,p,2,1,"span"),d.k0s()),2&n&&(d.Y8G("matTooltip",t.label)("matTooltipDisabled",t.isWide),d.BMQ("aria-label",t.label),d.R7$(2),d.JRh(t.icon),d.R7$(),d.vxM(t.isWide?3:-1))},dependencies:[o.MD,a.Hl,a.$z,s.m_,s.An,c.uc,m.oV],encapsulation:2})}},13301(n,t,e){e.d(t,{AskAuthorizationDialogComponent:()=>h});var i=e(63924),l=e(71016),o=e(64961),a=e(90918),s=e(73761),c=e(30943),r=e(33825),u=e(66608),d=e(628),m=e(23232),p=e(51218),b=e(3735),g=e(65209);class h{dialogRef;i18n;model={username:"",password:""};strings;constructor(n,t){this.dialogRef=n,this.i18n=t,this.strings=this.i18n.strings}submit(){this.dialogRef.close(this.model)}cancel(){this.dialogRef.close(void 0)}static ɵfac=function(n){return new(n||h)(p.rXU(o.CP),p.rXU(m.W))};static ɵcmp=p.VBU({type:h,selectors:[["p3xr-ask-authorization-dialog"]],decls:22,vars:6,consts:[["novalidate","",3,"ngSubmit"],[1,"p3xr-dialog-toolbar","p3xr-mat-layout-strong"],["mat-dialog-title","",1,"p3xr-dialog-title"],["mat-icon-button","","type","button",3,"click"],[1,"p3xr-dialog-content"],[1,"full-width"],["matInput","","name","username","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["matInput","","name","password","type","password","autocomplete","off",3,"ngModelChange","ngModel"],[1,"p3xr-dialog-actions"],[3,"cancel"],["mat-raised-button","","type","submit",1,"btn-primary"]],template:function(n,t){if(1&n&&(p.j41(0,"form",0),p.bIt("ngSubmit",(function(){return t.submit()})),p.j41(1,"mat-toolbar",1)(2,"span",2),p.EFF(3),p.k0s(),p.j41(4,"button",3),p.bIt("click",(function(){return t.cancel()})),p.j41(5,"mat-icon"),p.EFF(6,"close"),p.k0s()()(),p.j41(7,"mat-dialog-content",4)(8,"mat-form-field",5)(9,"mat-label"),p.EFF(10),p.k0s(),p.j41(11,"input",6),p.mxI("ngModelChange",(function(n){return p.DH7(t.model.username,n)||(t.model.username=n),n})),p.k0s()(),p.j41(12,"mat-form-field",5)(13,"mat-label"),p.EFF(14),p.k0s(),p.j41(15,"input",7),p.mxI("ngModelChange",(function(n){return p.DH7(t.model.password,n)||(t.model.password=n),n})),p.k0s()()(),p.j41(16,"mat-dialog-actions",8)(17,"p3xr-dialog-cancel",9),p.bIt("cancel",(function(){return t.cancel()})),p.k0s(),p.j41(18,"button",10)(19,"mat-icon"),p.EFF(20,"done"),p.k0s(),p.EFF(21),p.k0s()()()),2&n){let n,e,i,l;p.R7$(3),p.SpI(" ",(null==(n=t.strings().label)?null:n.askAuth)||"Authorization"," "),p.R7$(7),p.JRh((null==(e=t.strings().form)||null==e.connection||null==e.connection.label?null:e.connection.label.username)||"Username"),p.R7$(),p.R50("ngModel",t.model.username),p.R7$(3),p.JRh((null==(i=t.strings().form)||null==i.connection||null==i.connection.label?null:i.connection.label.password)||"Password"),p.R7$(),p.R50("ngModel",t.model.password),p.R7$(6),p.SpI(" ",(null==(l=t.strings().intention)?null:l.ok)||"OK"," ")}},dependencies:[i.MD,l.YN,l.qT,l.me,l.BC,l.cb,l.vS,l.cV,o.hM,o.BI,o.E7,o.Yi,a.RG,b.rl,b.nJ,s.fS,s.fg,c.Hl,c.$z,g.iY,r.m_,r.An,u.s5,u.KQ,d.m],styles:[".full-width[_ngcontent-%COMP%] { width: 100%; }\n .p3xr-dialog-content[_ngcontent-%COMP%] { min-width: 300px; }"]})}}}]);