UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

2 lines (1 loc) • 3.29 kB
import{c as K,d as Q}from"./chunk-5ONGW7JF.js";import{a as E,d as z,i as T,j as F}from"./chunk-AN3YSLKY.js";import"./chunk-6J2GCUHA.js";import{b as B,f as N,g as P,h as W,j as R,k as j,v as L}from"./chunk-ICUC3WIE.js";import{a as J}from"./chunk-R73GSFUT.js";import{d as H,e as q}from"./chunk-VMTBY4VN.js";import{b as O,c as V}from"./chunk-HFDIHHHN.js";import{a as A,d as D,e as I,f as k,g as v}from"./chunk-7JNYLOAK.js";import{Bb as i,Cb as f,Da as g,Db as p,Hb as M,Ia as C,Ib as _,Jb as h,Ld as x,Nd as y,Pd as w,Rd as G,cb as e,db as n,lb as u,oc as S,xa as l}from"./chunk-KQUCMSSK.js";import"./chunk-FCVD6SGJ.js";import"./chunk-O7S4L63H.js";var ct=(()=>{class m{dialogRef;i18n;model={username:"",password:""};strings;constructor(c,r){this.dialogRef=c,this.i18n=r,this.strings=this.i18n.strings}submit(){this.dialogRef.close(this.model)}cancel(){this.dialogRef.close(void 0)}static \u0275fac=function(r){return new(r||m)(g(A),g(G))};static \u0275cmp=C({type:m,selectors:[["p3xr-ask-authorization-dialog"]],decls:30,vars:7,consts:[["novalidate","",3,"ngSubmit"],[1,"p3xr-dialog-toolbar","p3xr-mat-layout-strong"],["mat-dialog-title","",1,"p3xr-dialog-title"],[2,"margin-right","8px","vertical-align","middle"],["mat-icon-button","","type","button",3,"click"],[1,"p3xr-dialog-content"],[2,"font-size","12px","opacity","0.7","margin-bottom","8px"],[1,"full-width"],["matPrefix",""],["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(r,t){if(r&1&&(e(0,"form",0),u("ngSubmit",function(){return t.submit()}),e(1,"mat-toolbar",1)(2,"span",2)(3,"mat-icon",3),i(4,"shield"),n(),i(5),n(),e(6,"button",4),u("click",function(){return t.cancel()}),e(7,"mat-icon"),i(8,"close"),n()()(),e(9,"mat-dialog-content",5)(10,"div",6),i(11),n(),e(12,"mat-form-field",7)(13,"mat-label"),i(14),n(),e(15,"mat-icon",8),i(16,"person"),n(),e(17,"input",9),h("ngModelChange",function(o){return _(t.model.username,o)||(t.model.username=o),o}),n()(),e(18,"mat-form-field",7)(19,"mat-label"),i(20),n(),e(21,"mat-icon",8),i(22,"lock"),n(),e(23,"input",10),h("ngModelChange",function(o){return _(t.model.password,o)||(t.model.password=o),o}),n()()(),e(24,"mat-dialog-actions",11)(25,"p3xr-dialog-cancel",12),u("cancel",function(){return t.cancel()}),n(),e(26,"button",13)(27,"mat-icon"),i(28,"done"),n(),i(29),n()()()),r&2){let a,o,s,d,b;l(5),p(" ",(a=t.strings().label)==null?null:a.askAuth," "),l(6),p(" ",(o=t.strings().label)==null?null:o.aclAuthHint," "),l(3),f((s=t.strings().form)==null||s.connection==null||s.connection.label==null?null:s.connection.label.username),l(3),M("ngModel",t.model.username),l(3),f((d=t.strings().form)==null||d.connection==null||d.connection.label==null?null:d.connection.label.password),l(3),M("ngModel",t.model.password),l(6),p(" ",(b=t.strings().intention)==null?null:b.ok," ")}},dependencies:[S,L,j,B,N,P,R,W,v,D,k,I,F,T,E,z,Q,K,w,y,x,V,O,q,H,J],styles:[".full-width[_ngcontent-%COMP%]{width:100%}.p3xr-dialog-content[_ngcontent-%COMP%]{min-width:300px}"]})}return m})();export{ct as AskAuthorizationDialogComponent};