@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
2 lines (1 loc) • 1.68 kB
JavaScript
import{a as w}from"./chunk-7A4HO4AV.js";import{Aa as o,Ba as i,I as r,La as a,Oa as g,Pa as v,U as c,Va as y,Wa as b,Xa as d,Ya as h,Z as m,_ as n,da as u,ga as f,sb as D,tb as l}from"./chunk-FYA6QUPZ.js";var _=["*"],x=class s{elementRef=r(c);renderer=r(u);title=l.required();width=l("max-w-lg");scrollBody=l(!0);closed=D();ngOnInit(){this.renderer.appendChild(document.body,this.elementRef.nativeElement)}ngOnDestroy(){this.elementRef.nativeElement.remove()}onEscape(){this.closed.emit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-dialog"]],hostBindings:function(e,t){e&1&&a("keydown.escape",function(){return t.onEscape()},m)},inputs:{title:[1,"title"],width:[1,"width"],scrollBody:[1,"scrollBody"]},outputs:{closed:"closed"},ngContentSelectors:_,decls:10,vars:5,consts:[[1,"fixed","inset-0","z-40","overflow-y-auto","bg-gray-900/40","backdrop-blur-[2px]"],[1,"flex","min-h-full","items-center","justify-center","p-4"],["role","dialog","aria-modal","true",1,"flex","max-h-[85vh]","w-full","flex-col","rounded-xl","bg-popover","shadow-xl","ring-1","ring-border","backdrop-blur-2xl"],[1,"flex","shrink-0","items-center","justify-between","border-b","border-border","px-6","py-4"],[1,"ui-subtitle"],["variant","ghost","size","icon","ariaLabel","Close",3,"click"],[1,"px-6","py-5"]],template:function(e,t){e&1&&(g(),o(0,"div",0)(1,"div",1)(2,"div",2)(3,"header",3)(4,"h2",4),d(5),i(),o(6,"app-button",5),a("click",function(){return t.closed.emit()}),d(7," \u2715 "),i()(),o(8,"div",6),v(9),i()()()()),e&2&&(n(2),b(t.width()),n(3),h(t.title()),n(3),y("overflow-y-auto",t.scrollBody()))},dependencies:[w],encapsulation:2})};export{x as a};