inferyx-codegate 1.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codegate/__init__.py +8 -0
- codegate/__main__.py +3 -0
- codegate/api/__init__.py +0 -0
- codegate/api/admin.py +457 -0
- codegate/api/deps.py +36 -0
- codegate/api/devproxy.py +132 -0
- codegate/api/public.py +371 -0
- codegate/app.py +115 -0
- codegate/auth/__init__.py +0 -0
- codegate/auth/csrf.py +43 -0
- codegate/auth/native.py +111 -0
- codegate/auth/passwords.py +88 -0
- codegate/auth/saml.py +222 -0
- codegate/auth/sessions.py +121 -0
- codegate/cli/__init__.py +0 -0
- codegate/cli/auth_cmd.py +168 -0
- codegate/cli/backup_cmd.py +114 -0
- codegate/cli/common.py +103 -0
- codegate/cli/doctor_cmd.py +136 -0
- codegate/cli/main.py +526 -0
- codegate/cli/nginx_setup.py +220 -0
- codegate/cli/setup_cmd.py +401 -0
- codegate/cli/ssh_setup.py +114 -0
- codegate/cli/upgrade_cmd.py +209 -0
- codegate/config.py +161 -0
- codegate/db.py +297 -0
- codegate/errors.py +122 -0
- codegate/jobs.py +133 -0
- codegate/pages.py +177 -0
- codegate/resources/__init__.py +20 -0
- codegate/resources/docker/Dockerfile +36 -0
- codegate/resources/nginx/codegate.conf.tmpl +51 -0
- codegate/resources/nginx/map.conf +5 -0
- codegate/resources/nginx/site.conf.tmpl +9 -0
- codegate/resources/nginx/user.conf.tmpl +19 -0
- codegate/resources/systemd/codegate-backup.service.tmpl +7 -0
- codegate/resources/systemd/codegate-backup.timer +10 -0
- codegate/resources/systemd/codegate.service.tmpl +20 -0
- codegate/static/admin/3rdpartylicenses.txt +614 -0
- codegate/static/admin/chunk-0r_p7pcB.js +672 -0
- codegate/static/admin/chunk-BoGqYCjO.js +1260 -0
- codegate/static/admin/chunk-BqiJ460N.js +1269 -0
- codegate/static/admin/chunk-BtoaIoDj.js +449 -0
- codegate/static/admin/chunk-CB4E-q63.js +255 -0
- codegate/static/admin/chunk-CMN75K3s.js +181 -0
- codegate/static/admin/chunk-CW_CPa20.js +106 -0
- codegate/static/admin/chunk-CcgsCK7w.js +393 -0
- codegate/static/admin/chunk-Cjwyuum6.js +375 -0
- codegate/static/admin/chunk-D6j6hnz3.js +1 -0
- codegate/static/admin/chunk-D9RytJgO.js +1 -0
- codegate/static/admin/chunk-DA6TldFU.js +35 -0
- codegate/static/admin/chunk-DFGdyoNb.js +1 -0
- codegate/static/admin/chunk-DXvCZ3pT.js +1 -0
- codegate/static/admin/chunk-DstgVdtz.js +27 -0
- codegate/static/admin/chunk-kPDFCwHP.js +102 -0
- codegate/static/admin/chunk-yikJ2ObQ.js +1 -0
- codegate/static/admin/favicon.ico +0 -0
- codegate/static/admin/index.html +14 -0
- codegate/static/admin/main-LWBML7JF.js +2347 -0
- codegate/static/admin/media/material-icons-JLIDJUWE.woff +0 -0
- codegate/static/admin/media/material-icons-LEZCGFVT.woff2 +0 -0
- codegate/static/admin/styles-YWRWGLKG.css +1 -0
- codegate/system/__init__.py +27 -0
- codegate/system/base.py +165 -0
- codegate/system/devdocker.py +90 -0
- codegate/system/fake.py +199 -0
- codegate/system/real.py +493 -0
- codegate/system/shell.py +40 -0
- codegate/users.py +262 -0
- codegate/workspace.py +355 -0
- inferyx_codegate-1.1.0.dist-info/METADATA +217 -0
- inferyx_codegate-1.1.0.dist-info/RECORD +74 -0
- inferyx_codegate-1.1.0.dist-info/WHEEL +4 -0
- inferyx_codegate-1.1.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,1269 @@
|
|
|
1
|
+
import{t as v}from"./chunk-DFGdyoNb.js";import{n as ke,t as ie}from"./chunk-BtoaIoDj.js";import"./chunk-DA6TldFU.js";import{$n as eC,An as Yo,Ar as oe,At as J,Bn as ab,Bt as Lr,Cn as Wn,Dn as Xs,Dt as Hw,Et as Hg,Ft as Ko,Gt as Nt,Hn as ae,Hr as tn$1,Ir as qr,Jn as cW,Jt as O,Kn as bS,Mr as po,Mt as Kd,Nn as Zy,Nt as Ke,On as Y,Pt as Km,Qn as db,Qt as P,Rr as rb,Rt as Lg,Sn as Wg,Sr as m,St as Gn,Tr as me,Vn as ad,Vt as Lw,Wn as b2,Wt as Mw,Xn as ct,Xr as xe,Xt as Ou,Yn as cb,Zn as dS,Zr as xw,Zt as Oy,_ as x,a as Qt$1,at as Ar,bn as Wd,bt as Fa,cn as Qy,dt as Cb,ei as yI,er as en$1,g as se,gr as jn,h as on$1,hn as Uw,hr as jg,i as In,ii as zw,in as QT,ir as g,jn as Ys,kn as Ye,kr as od,kt as Ip,ln as R,lt as Bv,m as nn$1,mn as Ug,mt as Dc,n as Fn,ni as zd,or as gI,ot as Aw,pn as Te,qr as wp,qt as Nw,r as He,ri as zo,rt as $r,s as Ut,sn as Qo,sr as gT,st as B,t as $t,tr as fe,u as an$1,un as Ra,ur as i8,vr as jw,wn as Wy,wt as Gy,xn as Wf,xt as Gg,y as pt,yr as ke$1,zn as aW,zr as s8}from"./main-LWBML7JF.js";import{n as Pe,t as Be}from"./chunk-DstgVdtz.js";import{a as Ne,c as Ve,d as Xt,i as Ke$1,l as Vt$1,m as je,o as Qr,p as en$2,r as Ce,s as Qt$2,t as Be$1,u as Xr}from"./chunk-BoGqYCjO.js";import{n as _t,t as Vt$2}from"./chunk-CW_CPa20.js";var Vt=new g(`mat-chips-default-options`,{providedIn:`root`,factory:()=>({separatorKeyCodes:[13]})});var Rt=new g(`MatChipAvatar`);var Ft=new g(`MatChipLeadingIcon`);var zt=new g(`MatChipTrailingIcon`);var Lt=new g(`MatChipEdit`);var Ci=new g(`MatChipRemove`);var Ni=new g(`MatChip`);var Ht=(()=>{class o{_elementRef=m(oe);_parentChip=m(Ni);_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(i){this._disabled=i}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?``:null}constructor(){m(Nt).load(Gy),this._elementRef.nativeElement.nodeName===`BUTTON`&&this._elementRef.nativeElement.setAttribute(`type`,`button`)}focus(){this._elementRef.nativeElement.focus()}static ɵfac=function(n){return new(n||o)};static ɵdir=xe({type:o,selectors:[[``,`matChipContent`,``]],hostAttrs:[1,`mat-mdc-chip-action`,`mdc-evolution-chip__action`,`mdc-evolution-chip__action--presentational`],hostVars:8,hostBindings:function(n,t){n&2&&(Wn(`disabled`,t._getDisabledAttribute())(`aria-disabled`,t.disabled),ct(`mdc-evolution-chip__action--primary`,t._isPrimary)(`mdc-evolution-chip__action--secondary`,!t._isPrimary)(`mdc-evolution-chip__action--trailing`,!t._isPrimary&&!t._isLeading))},inputs:{disabled:[2,`disabled`,`disabled`,Ke],tabIndex:[2,`tabIndex`,`tabIndex`,i=>i==null?-1:Cb(i)],_allowFocusWhenDisabled:`_allowFocusWhenDisabled`}})}return o})();var Ii=(()=>{class o extends Ht{_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()}_handleClick(i){!this.disabled&&this._isPrimary&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&this._isPrimary&&!this._parentChip._isEditing&&(i.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static ɵfac=(()=>{let i;return function(t){return(i||(i=Km(o)))(t||o)}})();static ɵdir=xe({type:o,selectors:[[``,`matChipAction`,``]],hostVars:3,hostBindings:function(n,t){n&1&&Ug(`click`,function(l){return t._handleClick(l)})(`keydown`,function(l){return t._handleKeydown(l)}),n&2&&(Wn(`tabindex`,t._getTabindex()),ct(`mdc-evolution-chip__action--presentational`,!1))},features:[Lr]})}return o})();var Wt=(()=>{class o extends Ii{_isPrimary=!1;_handleClick(i){this.disabled||(i.stopPropagation(),i.preventDefault(),this._parentChip.remove())}_handleKeydown(i){(i.keyCode===13||i.keyCode===32)&&!this.disabled&&(i.stopPropagation(),i.preventDefault(),this._parentChip.remove())}static ɵfac=(()=>{let i;return function(t){return(i||(i=Km(o)))(t||o)}})();static ɵdir=xe({type:o,selectors:[[``,`matChipRemove`,``]],hostAttrs:[`role`,`button`,1,`mat-mdc-chip-remove`,`mat-mdc-chip-trailing-icon`,`mat-focus-indicator`,`mdc-evolution-chip__icon`,`mdc-evolution-chip__icon--trailing`],hostVars:1,hostBindings:function(n,t){n&2&&Wn(`aria-hidden`,null)},features:[db([{provide:Ci,useExisting:o}]),Lr]})}return o})();var Si=(()=>{class o{_changeDetectorRef=m(eC);_elementRef=m(oe);_tagName=m(b2);_ngZone=m(P);_focusMonitor=m(Fa);_globalRippleOptions=m(Kd,{optional:!0});_document=m(O);_onFocus=new B;_onBlur=new B;_isBasicChip=!1;role=null;_hasFocusInternal=!1;_pendingFocus=!1;_actionChanges;_animationsDisabled=qr();_allAvatars;_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=m(Wd).getId(`mat-mdc-chip-`);ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(i){this._value=i}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(i){this._disabled=i}_disabled=!1;removed=new me;destroyed=new me;basicChipAttrName=`mat-basic-chip`;avatar;leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=m(Wy);_injector=m(Y);constructor(){let i=m(Nt);i.load(Gy),i.load(Ra),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:`mat-mdc-chip-ripple`,disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(`.mat-mdc-chip-action-label`),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Bv(this._allAvatars.changes,this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this.destroyed.emit({chip:this}),this.destroyed.complete(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasLeadingGraphic(){return!!(this.leadingIcon||this.avatar)}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(i){(i.keyCode===8&&!i.repeat||i.keyCode===46)&&(i.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(i){return this._getActions().find(n=>{let t=n._elementRef.nativeElement;return t===i||t.contains(i)})}_getActions(){let i=[];return this.editIcon&&i.push(this.editIcon),this.primaryAction&&i.push(this.primaryAction),this.removeIcon&&i.push(this.removeIcon),i}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().length>0}_edit(i){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(i=>{let n=i!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static ɵfac=function(n){return new(n||o)};static ɵcmp=(function(){let i=[`*`,[[`mat-chip-avatar`],[``,`matChipAvatar`,``],[`mat-chip-leading-icon`],[``,`matChipLeadingIcon`,``]],[[`mat-chip-trailing-icon`],[``,`matChipRemove`,``],[``,`matChipTrailingIcon`,``]]],n=[`*`,`mat-chip-avatar, [matChipAvatar], mat-chip-leading-icon, [matChipLeadingIcon]`,`mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]`];function t(l,u){l&1&&(Ys(0,`span`,3),Ye(1,1),od())}function e(l,u){l&1&&(Ys(0,`span`,7),Ye(1,2),od())}return Te({type:o,selectors:[[`mat-basic-chip`],[``,`mat-basic-chip`,``],[`mat-chip`],[``,`mat-chip`,``]],contentQueries:function(u,p,M){if(u&1&&Wg(M,Rt,5)(M,Ft,5)(M,Lt,5)(M,zt,5)(M,Ci,5)(M,Rt,5)(M,Ft,5)(M,zt,5)(M,Lt,5)(M,Ci,5),u&2){let _;Hw(_=Uw())&&(p.avatar=_.first),Hw(_=Uw())&&(p.leadingIcon=_.first),Hw(_=Uw())&&(p.editIcon=_.first),Hw(_=Uw())&&(p.trailingIcon=_.first),Hw(_=Uw())&&(p.removeIcon=_.first),Hw(_=Uw())&&(p._allAvatars=_),Hw(_=Uw())&&(p._allLeadingIcons=_),Hw(_=Uw())&&(p._allTrailingIcons=_),Hw(_=Uw())&&(p._allEditIcons=_),Hw(_=Uw())&&(p._allRemoveIcons=_)}},viewQuery:function(u,p){if(u&1&&Gg(Ii,5),u&2){let M;Hw(M=Uw())&&(p.primaryAction=M.first)}},hostAttrs:[1,`mat-mdc-chip`],hostVars:33,hostBindings:function(u,p){u&1&&Ug(`keydown`,function(_){return p._handleKeydown(_)}),u&2&&(Hg(`id`,p.id),Wn(`role`,p.role)(`aria-label`,p.ariaLabel),Qo(`mat-`+(p.color||`primary`)),ct(`mdc-evolution-chip`,!p._isBasicChip)(`mdc-evolution-chip--disabled`,p.disabled)(`mdc-evolution-chip--with-trailing-action`,p._hasTrailingIcon())(`mdc-evolution-chip--with-primary-graphic`,p._hasLeadingGraphic())(`mdc-evolution-chip--with-primary-icon`,p.leadingIcon||p.avatar)(`mdc-evolution-chip--with-avatar`,p.avatar)(`mat-mdc-chip-with-avatar`,p.avatar)(`mat-mdc-chip-with-leading-icon`,p.leadingIcon)(`mat-mdc-chip-highlighted`,p.highlighted)(`mat-mdc-chip-disabled`,p.disabled)(`mat-mdc-basic-chip`,p._isBasicChip)(`mat-mdc-standard-chip`,!p._isBasicChip)(`mat-mdc-chip-with-trailing-icon`,p._hasTrailingIcon())(`_mat-animation-noopable`,p._animationsDisabled))},inputs:{role:`role`,id:`id`,ariaLabel:[0,`aria-label`,`ariaLabel`],ariaDescription:[0,`aria-description`,`ariaDescription`],value:`value`,color:`color`,removable:[2,`removable`,`removable`,Ke],highlighted:[2,`highlighted`,`highlighted`,Ke],disableRipple:[2,`disableRipple`,`disableRipple`,Ke],disabled:[2,`disabled`,`disabled`,Ke]},outputs:{removed:`removed`,destroyed:`destroyed`},exportAs:[`matChip`],features:[db([{provide:Ni,useExisting:o}])],ngContentSelectors:n,decls:9,vars:2,consts:[[1,`mat-mdc-chip-focus-overlay`],[1,`mdc-evolution-chip__cell`,`mdc-evolution-chip__cell--primary`],[`matChipContent`,``],[1,`mdc-evolution-chip__graphic`,`mat-mdc-chip-graphic`],[1,`mdc-evolution-chip__text-label`,`mat-mdc-chip-action-label`],[1,`mat-mdc-chip-primary-focus-indicator`,`mat-focus-indicator`],[1,`mat-mdc-chip-touch-target`],[1,`mdc-evolution-chip__cell`,`mdc-evolution-chip__cell--trailing`]],template:function(u,p){u&1&&(Gn(i),jg(0,`span`,0),Ys(1,`span`,1)(2,`span`,2),Yo(3,t,2,0,`span`,3),Ys(4,`span`,4),Ye(5),jg(6,`span`,5),od(),jg(7,`span`,6),od()(),Yo(8,e,2,0,`span`,7)),u&2&&(zo(3),Ko(p._hasLeadingGraphic()?3:-1),zo(5),Ko(p._hasTrailingIcon()?8:-1))},dependencies:[Ht],styles:[`.mdc-evolution-chip,
|
|
2
|
+
.mdc-evolution-chip__cell,
|
|
3
|
+
.mdc-evolution-chip__action {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.mdc-evolution-chip {
|
|
9
|
+
position: relative;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mat-mdc-chip-touch-target {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
left: 0;
|
|
17
|
+
right: 0;
|
|
18
|
+
height: 48px;
|
|
19
|
+
transform: translateY(-50%);
|
|
20
|
+
display: var(--%NS%mat-chip-touch-target-display, block);
|
|
21
|
+
pointer-events: auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mdc-evolution-chip__cell,
|
|
25
|
+
.mdc-evolution-chip__action {
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mdc-evolution-chip__cell--primary {
|
|
30
|
+
flex-basis: 100%;
|
|
31
|
+
overflow-x: hidden;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mdc-evolution-chip__cell--trailing {
|
|
35
|
+
flex: 1 0 auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mdc-evolution-chip__action {
|
|
39
|
+
align-items: center;
|
|
40
|
+
background: none;
|
|
41
|
+
border: none;
|
|
42
|
+
box-sizing: content-box;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
outline: none;
|
|
47
|
+
padding: 0;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
color: inherit;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mdc-evolution-chip__action--presentational {
|
|
53
|
+
cursor: auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mdc-evolution-chip--disabled,
|
|
57
|
+
.mdc-evolution-chip__action:disabled {
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
@media (forced-colors: active) {
|
|
61
|
+
.mdc-evolution-chip--disabled,
|
|
62
|
+
.mdc-evolution-chip__action:disabled {
|
|
63
|
+
forced-color-adjust: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mdc-evolution-chip__action--primary {
|
|
68
|
+
font: inherit;
|
|
69
|
+
letter-spacing: inherit;
|
|
70
|
+
white-space: inherit;
|
|
71
|
+
overflow-x: hidden;
|
|
72
|
+
}
|
|
73
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__action--%NS%primary::before {
|
|
74
|
+
border-width: var(--%NS%mat-chip-outline-width, 1px);
|
|
75
|
+
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
content: "";
|
|
78
|
+
height: 100%;
|
|
79
|
+
left: 0;
|
|
80
|
+
position: absolute;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
top: 0;
|
|
83
|
+
width: 100%;
|
|
84
|
+
z-index: 1;
|
|
85
|
+
border-style: solid;
|
|
86
|
+
}
|
|
87
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
|
|
88
|
+
padding-left: 12px;
|
|
89
|
+
padding-right: 12px;
|
|
90
|
+
}
|
|
91
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
92
|
+
padding-left: 0;
|
|
93
|
+
padding-right: 12px;
|
|
94
|
+
}
|
|
95
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
96
|
+
padding-left: 12px;
|
|
97
|
+
padding-right: 0;
|
|
98
|
+
}
|
|
99
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--%NS%primary::before {
|
|
100
|
+
border-color: var(--%NS%mat-chip-outline-color, var(--%NS%mat-sys-outline));
|
|
101
|
+
}
|
|
102
|
+
.mdc-evolution-chip__action--%NS%primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before {
|
|
103
|
+
border-color: var(--%NS%mat-chip-focus-outline-color, var(--%NS%mat-sys-on-surface-variant));
|
|
104
|
+
}
|
|
105
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--%NS%primary::before {
|
|
106
|
+
border-color: var(--%NS%mat-chip-disabled-outline-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
107
|
+
}
|
|
108
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--%NS%primary::before {
|
|
109
|
+
border-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
110
|
+
}
|
|
111
|
+
.mat-mdc-basic-chip .mdc-evolution-chip__action--primary {
|
|
112
|
+
font: inherit;
|
|
113
|
+
}
|
|
114
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
115
|
+
padding-left: 0;
|
|
116
|
+
padding-right: 12px;
|
|
117
|
+
}
|
|
118
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
119
|
+
padding-left: 12px;
|
|
120
|
+
padding-right: 0;
|
|
121
|
+
}
|
|
122
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
123
|
+
padding-left: 12px;
|
|
124
|
+
padding-right: 0;
|
|
125
|
+
}
|
|
126
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
127
|
+
padding-left: 0;
|
|
128
|
+
padding-right: 12px;
|
|
129
|
+
}
|
|
130
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
131
|
+
padding-left: 0;
|
|
132
|
+
padding-right: 0;
|
|
133
|
+
}
|
|
134
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
135
|
+
padding-left: 0;
|
|
136
|
+
padding-right: 0;
|
|
137
|
+
}
|
|
138
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
139
|
+
padding-left: 0;
|
|
140
|
+
padding-right: 0;
|
|
141
|
+
}
|
|
142
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
143
|
+
padding-left: 0;
|
|
144
|
+
padding-right: 12px;
|
|
145
|
+
}
|
|
146
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
147
|
+
padding-left: 12px;
|
|
148
|
+
padding-right: 0;
|
|
149
|
+
}
|
|
150
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
151
|
+
padding-left: 0;
|
|
152
|
+
padding-right: 0;
|
|
153
|
+
}
|
|
154
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
155
|
+
padding-left: 0;
|
|
156
|
+
padding-right: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.mdc-evolution-chip__action--secondary {
|
|
160
|
+
position: relative;
|
|
161
|
+
overflow: visible;
|
|
162
|
+
}
|
|
163
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary {
|
|
164
|
+
color: var(--%NS%mat-chip-with-trailing-icon-trailing-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
165
|
+
}
|
|
166
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary {
|
|
167
|
+
color: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
168
|
+
}
|
|
169
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
170
|
+
padding-left: 8px;
|
|
171
|
+
padding-right: 8px;
|
|
172
|
+
}
|
|
173
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
174
|
+
padding-left: 8px;
|
|
175
|
+
padding-right: 8px;
|
|
176
|
+
}
|
|
177
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
178
|
+
padding-left: 8px;
|
|
179
|
+
padding-right: 8px;
|
|
180
|
+
}
|
|
181
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, [dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
182
|
+
padding-left: 8px;
|
|
183
|
+
padding-right: 8px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.mdc-evolution-chip__text-label {
|
|
187
|
+
-webkit-user-select: none;
|
|
188
|
+
user-select: none;
|
|
189
|
+
white-space: nowrap;
|
|
190
|
+
text-overflow: ellipsis;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
}
|
|
193
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__text-label {
|
|
194
|
+
font-family: var(--%NS%mat-chip-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
195
|
+
line-height: var(--%NS%mat-chip-label-text-line-height, var(--%NS%mat-sys-label-large-line-height));
|
|
196
|
+
font-size: var(--%NS%mat-chip-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
197
|
+
font-weight: var(--%NS%mat-chip-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
198
|
+
letter-spacing: var(--%NS%mat-chip-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
199
|
+
}
|
|
200
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
201
|
+
color: var(--%NS%mat-chip-label-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
202
|
+
}
|
|
203
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
204
|
+
color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
205
|
+
}
|
|
206
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label {
|
|
207
|
+
color: var(--%NS%mat-chip-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.mdc-evolution-chip__graphic {
|
|
211
|
+
align-items: center;
|
|
212
|
+
display: inline-flex;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
pointer-events: none;
|
|
216
|
+
position: relative;
|
|
217
|
+
flex: 1 0 auto;
|
|
218
|
+
}
|
|
219
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__graphic {
|
|
220
|
+
width: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
221
|
+
height: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
222
|
+
font-size: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
223
|
+
}
|
|
224
|
+
.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic {
|
|
225
|
+
transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
226
|
+
}
|
|
227
|
+
.mdc-evolution-chip--%NS%selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic {
|
|
228
|
+
width: 0;
|
|
229
|
+
}
|
|
230
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
231
|
+
padding-left: 6px;
|
|
232
|
+
padding-right: 6px;
|
|
233
|
+
}
|
|
234
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
235
|
+
padding-left: 4px;
|
|
236
|
+
padding-right: 8px;
|
|
237
|
+
}
|
|
238
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
239
|
+
padding-left: 8px;
|
|
240
|
+
padding-right: 4px;
|
|
241
|
+
}
|
|
242
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
243
|
+
padding-left: 6px;
|
|
244
|
+
padding-right: 6px;
|
|
245
|
+
}
|
|
246
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
247
|
+
padding-left: 4px;
|
|
248
|
+
padding-right: 8px;
|
|
249
|
+
}
|
|
250
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
251
|
+
padding-left: 8px;
|
|
252
|
+
padding-right: 4px;
|
|
253
|
+
}
|
|
254
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic {
|
|
255
|
+
padding-left: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.mdc-evolution-chip__checkmark {
|
|
259
|
+
position: absolute;
|
|
260
|
+
opacity: 0;
|
|
261
|
+
top: 50%;
|
|
262
|
+
left: 50%;
|
|
263
|
+
height: 20px;
|
|
264
|
+
width: 20px;
|
|
265
|
+
}
|
|
266
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark {
|
|
267
|
+
color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
268
|
+
}
|
|
269
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark {
|
|
270
|
+
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
271
|
+
}
|
|
272
|
+
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark {
|
|
273
|
+
transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
274
|
+
transform: translate(-75%, -50%);
|
|
275
|
+
}
|
|
276
|
+
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
277
|
+
transform: translate(-50%, -50%);
|
|
278
|
+
opacity: 1;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.mdc-evolution-chip__checkmark-svg {
|
|
282
|
+
display: block;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.mdc-evolution-chip__checkmark-path {
|
|
286
|
+
stroke-width: 2px;
|
|
287
|
+
stroke-dasharray: 29.7833385;
|
|
288
|
+
stroke-dashoffset: 29.7833385;
|
|
289
|
+
stroke: currentColor;
|
|
290
|
+
}
|
|
291
|
+
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path {
|
|
292
|
+
transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
293
|
+
}
|
|
294
|
+
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path {
|
|
295
|
+
stroke-dashoffset: 0;
|
|
296
|
+
}
|
|
297
|
+
@media (forced-colors: active) {
|
|
298
|
+
.mdc-evolution-chip__checkmark-path {
|
|
299
|
+
stroke: CanvasText !important;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
|
|
304
|
+
height: 18px;
|
|
305
|
+
width: 18px;
|
|
306
|
+
font-size: 18px;
|
|
307
|
+
}
|
|
308
|
+
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove {
|
|
309
|
+
opacity: calc(var(--%NS%mat-chip-trailing-action-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
310
|
+
}
|
|
311
|
+
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus {
|
|
312
|
+
opacity: calc(var(--%NS%mat-chip-trailing-action-focus-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.mat-mdc-standard-chip {
|
|
316
|
+
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
317
|
+
height: var(--%NS%mat-chip-container-height, 32px);
|
|
318
|
+
}
|
|
319
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) {
|
|
320
|
+
background-color: var(--%NS%mat-chip-elevated-container-color, transparent);
|
|
321
|
+
}
|
|
322
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
323
|
+
background-color: var(--%NS%mat-chip-elevated-disabled-container-color);
|
|
324
|
+
}
|
|
325
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) {
|
|
326
|
+
background-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
327
|
+
}
|
|
328
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled {
|
|
329
|
+
background-color: var(--%NS%mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
330
|
+
}
|
|
331
|
+
@media (forced-colors: active) {
|
|
332
|
+
.mat-mdc-standard-chip {
|
|
333
|
+
outline: solid 1px;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary {
|
|
338
|
+
width: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
339
|
+
height: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
340
|
+
font-size: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
341
|
+
}
|
|
342
|
+
.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary {
|
|
343
|
+
opacity: 0;
|
|
344
|
+
}
|
|
345
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary {
|
|
346
|
+
color: var(--%NS%mat-chip-with-icon-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
347
|
+
}
|
|
348
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary {
|
|
349
|
+
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.mat-mdc-chip-highlighted {
|
|
353
|
+
--%NS%mat-chip-with-icon-icon-color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
354
|
+
--%NS%mat-chip-elevated-container-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
355
|
+
--%NS%mat-chip-label-text-color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
356
|
+
--%NS%mat-chip-outline-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.mat-mdc-chip-focus-overlay {
|
|
360
|
+
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
361
|
+
}
|
|
362
|
+
.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay {
|
|
363
|
+
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
364
|
+
}
|
|
365
|
+
.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay {
|
|
366
|
+
background: var(--%NS%mat-chip-hover-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
367
|
+
opacity: var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
368
|
+
}
|
|
369
|
+
.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay {
|
|
370
|
+
background: var(--%NS%mat-chip-selected-hover-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
371
|
+
opacity: var(--%NS%mat-chip-selected-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
372
|
+
}
|
|
373
|
+
.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
374
|
+
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
375
|
+
opacity: var(--%NS%mat-chip-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
376
|
+
}
|
|
377
|
+
.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
378
|
+
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
379
|
+
opacity: var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.mdc-evolution-chip--%NS%disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar {
|
|
383
|
+
opacity: var(--%NS%mat-chip-with-avatar-disabled-avatar-opacity, 0.38);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.mdc-evolution-chip--%NS%disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-leading-icon {
|
|
387
|
+
opacity: var(--%NS%mat-chip-with-icon-disabled-icon-opacity, 0.38);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
391
|
+
opacity: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
395
|
+
opacity: var(--%NS%mat-chip-with-icon-disabled-icon-opacity, 0.38);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
399
|
+
opacity: var(--%NS%mat-chip-disabled-container-opacity, 1);
|
|
400
|
+
}
|
|
401
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing {
|
|
402
|
+
color: var(--%NS%mat-chip-selected-trailing-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
403
|
+
}
|
|
404
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
405
|
+
color: var(--%NS%mat-chip-selected-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.mat-mdc-chip-edit, .mat-mdc-chip-remove {
|
|
409
|
+
opacity: var(--%NS%mat-chip-trailing-action-opacity, 1);
|
|
410
|
+
}
|
|
411
|
+
.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus {
|
|
412
|
+
opacity: var(--%NS%mat-chip-trailing-action-focus-opacity, 1);
|
|
413
|
+
}
|
|
414
|
+
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
415
|
+
background-color: var(--%NS%mat-chip-trailing-action-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
416
|
+
}
|
|
417
|
+
.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after {
|
|
418
|
+
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
419
|
+
}
|
|
420
|
+
.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after {
|
|
421
|
+
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.mat-mdc-chip-selected .mat-mdc-chip-remove::after,
|
|
425
|
+
.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after {
|
|
426
|
+
background-color: var(--%NS%mat-chip-selected-trailing-action-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after {
|
|
430
|
+
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
431
|
+
}
|
|
432
|
+
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after {
|
|
433
|
+
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.mat-mdc-standard-chip {
|
|
437
|
+
-webkit-tap-highlight-color: transparent;
|
|
438
|
+
}
|
|
439
|
+
.mat-mdc-standard-chip .mat-mdc-chip-graphic,
|
|
440
|
+
.mat-mdc-standard-chip .mat-mdc-chip-leading-icon,
|
|
441
|
+
.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon {
|
|
442
|
+
box-sizing: content-box;
|
|
443
|
+
}
|
|
444
|
+
.mat-mdc-standard-chip._mat-animation-noopable,
|
|
445
|
+
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,
|
|
446
|
+
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,
|
|
447
|
+
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path {
|
|
448
|
+
transition-duration: 1ms;
|
|
449
|
+
animation-duration: 1ms;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.mat-mdc-chip-focus-overlay {
|
|
453
|
+
top: 0;
|
|
454
|
+
left: 0;
|
|
455
|
+
right: 0;
|
|
456
|
+
bottom: 0;
|
|
457
|
+
position: absolute;
|
|
458
|
+
pointer-events: none;
|
|
459
|
+
opacity: 0;
|
|
460
|
+
border-radius: inherit;
|
|
461
|
+
transition: opacity 150ms linear;
|
|
462
|
+
}
|
|
463
|
+
._mat-animation-noopable .mat-mdc-chip-focus-overlay {
|
|
464
|
+
transition: none;
|
|
465
|
+
}
|
|
466
|
+
.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay {
|
|
467
|
+
display: none;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple {
|
|
471
|
+
top: 0;
|
|
472
|
+
left: 0;
|
|
473
|
+
right: 0;
|
|
474
|
+
bottom: 0;
|
|
475
|
+
position: absolute;
|
|
476
|
+
pointer-events: none;
|
|
477
|
+
border-radius: inherit;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.mat-mdc-chip-avatar {
|
|
481
|
+
text-align: center;
|
|
482
|
+
line-height: 1;
|
|
483
|
+
color: var(--%NS%mat-chip-with-icon-icon-color, currentColor);
|
|
484
|
+
}
|
|
485
|
+
.mat-mdc-standard-chip .mat-mdc-chip-avatar {
|
|
486
|
+
border-radius: var(--%NS%mat-chip-with-avatar-avatar-shape-radius, 24px);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.mat-mdc-chip {
|
|
490
|
+
position: relative;
|
|
491
|
+
z-index: 0;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.mat-mdc-chip-action-label {
|
|
495
|
+
text-align: left;
|
|
496
|
+
z-index: 1;
|
|
497
|
+
}
|
|
498
|
+
[dir=rtl] .mat-mdc-chip-action-label {
|
|
499
|
+
text-align: right;
|
|
500
|
+
}
|
|
501
|
+
.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label {
|
|
502
|
+
position: relative;
|
|
503
|
+
}
|
|
504
|
+
.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator {
|
|
505
|
+
position: absolute;
|
|
506
|
+
top: 0;
|
|
507
|
+
right: 0;
|
|
508
|
+
bottom: 0;
|
|
509
|
+
left: 0;
|
|
510
|
+
pointer-events: none;
|
|
511
|
+
}
|
|
512
|
+
.mat-mdc-chip-action-label .mat-focus-indicator::before {
|
|
513
|
+
margin: calc(calc(var(--%NS%mat-focus-indicator-border-width, 3px) + 2px) * -1);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before {
|
|
517
|
+
margin: calc(var(--%NS%mat-focus-indicator-border-width, 3px) * -1);
|
|
518
|
+
left: 8px;
|
|
519
|
+
right: 8px;
|
|
520
|
+
}
|
|
521
|
+
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
522
|
+
content: "";
|
|
523
|
+
display: block;
|
|
524
|
+
opacity: 0;
|
|
525
|
+
position: absolute;
|
|
526
|
+
top: -3px;
|
|
527
|
+
bottom: -3px;
|
|
528
|
+
left: 5px;
|
|
529
|
+
right: 5px;
|
|
530
|
+
border-radius: 50%;
|
|
531
|
+
box-sizing: border-box;
|
|
532
|
+
padding: 12px;
|
|
533
|
+
margin: -12px;
|
|
534
|
+
background-clip: content-box;
|
|
535
|
+
}
|
|
536
|
+
.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
537
|
+
width: 18px;
|
|
538
|
+
height: 18px;
|
|
539
|
+
font-size: 18px;
|
|
540
|
+
box-sizing: content-box;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.mat-chip-edit-input {
|
|
544
|
+
cursor: text;
|
|
545
|
+
display: inline-block;
|
|
546
|
+
color: inherit;
|
|
547
|
+
outline: 0;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
@media (forced-colors: active) {
|
|
551
|
+
.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) {
|
|
552
|
+
outline-width: 3px;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before {
|
|
557
|
+
content: "";
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
561
|
+
min-height: fit-content;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
img.mdc-evolution-chip__icon {
|
|
565
|
+
min-height: 0;
|
|
566
|
+
}
|
|
567
|
+
`],encapsulation:2})})()}return o})();var xi=(()=>{class o{_elementRef=m(oe);_document=m(O);initialize(i){this.getNativeElement().focus(),this.setValue(i)}getNativeElement(){return this._elementRef.nativeElement}setValue(i){this.getNativeElement().textContent=i,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||``}_moveCursorToEndOfInput(){let i=this._document.createRange();i.selectNodeContents(this.getNativeElement()),i.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(i)}static ɵfac=function(n){return new(n||o)};static ɵdir=xe({type:o,selectors:[[`span`,`matChipEditInput`,``]],hostAttrs:[`role`,`textbox`,`tabindex`,`-1`,`contenteditable`,`true`,1,`mat-chip-edit-input`]})}return o})();var Mi=(()=>{class o extends Si{basicChipAttrName=`mat-basic-chip-row`;_renderer=m(Ar);_cleanupMousedown;_editStartPending=!1;editable=!1;edited=new me;defaultEditInput;contentEditInput;_alreadyFocused=!1;_isEditing=!1;constructor(){super(),this.role=`row`,this._onBlur.pipe(po(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish(),this._alreadyFocused=!1})}ngAfterViewInit(){super.ngAfterViewInit(),this._cleanupMousedown=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,`mousedown`,()=>{this._alreadyFocused=this._hasFocus()}))}ngOnDestroy(){super.ngOnDestroy(),this._cleanupMousedown?.()}_hasLeadingActionIcon(){return!this._isEditing&&!!this.editIcon}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(i){i.keyCode===13&&!this.disabled?this._isEditing?(i.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(i):this._isEditing?i.stopPropagation():super._handleKeydown(i)}_handleClick(i){!this.disabled&&this.editable&&!this._isEditing&&this._alreadyFocused&&(i.preventDefault(),i.stopPropagation(),this._startEditing(i))}_handleDoubleclick(i){!this.disabled&&this.editable&&this._startEditing(i)}_edit(){this._changeDetectorRef.markForCheck(),this._startEditing()}_startEditing(i){if(!this.primaryAction||this.removeIcon&&i&&this._getSourceAction(i.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,Ou(()=>{this._getEditInput().initialize(n),setTimeout(()=>this._ngZone.run(()=>this._editStartPending=!1))},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static ɵfac=function(n){return new(n||o)};static ɵcmp=(function(){let i=[[[``,`matChipEdit`,``]],[[`mat-chip-avatar`],[``,`matChipAvatar`,``],[`mat-chip-leading-icon`],[``,`matChipLeadingIcon`,``]],[[``,`matChipEditInput`,``]],`*`,[[`mat-chip-trailing-icon`],[``,`matChipRemove`,``],[``,`matChipTrailingIcon`,``]]],n=[`[matChipEdit]`,`mat-chip-avatar, [matChipAvatar], mat-chip-leading-icon, [matChipLeadingIcon]`,`[matChipEditInput]`,`*`,`mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]`];function t(y,S){y&1&&jg(0,`span`,0)}function e(y,S){y&1&&(Ys(0,`span`,1),Ye(1),od())}function l(y,S){y&1&&(Ys(0,`span`,3),Ye(1,1),od())}function u(y,S){y&1&&Ye(0,2)}function p(y,S){y&1&&jg(0,`span`,8)}function M(y,S){if(y&1&&Yo(0,u,1,0)(1,p,1,0,`span`,8),y&2){let m=jw();Ko(m.contentEditInput?0:1)}}function _(y,S){y&1&&Ye(0,3)}function Kt(y,S){y&1&&(Ys(0,`span`,7),Ye(1,4),od())}return Te({type:o,selectors:[[`mat-chip-row`],[``,`mat-chip-row`,``],[`mat-basic-chip-row`],[``,`mat-basic-chip-row`,``]],contentQueries:function(S,m,V){if(S&1&&Wg(V,xi,5),S&2){let G;Hw(G=Uw())&&(m.contentEditInput=G.first)}},viewQuery:function(S,m){if(S&1&&Gg(xi,5),S&2){let V;Hw(V=Uw())&&(m.defaultEditInput=V.first)}},hostAttrs:[1,`mat-mdc-chip`,`mat-mdc-chip-row`,`mdc-evolution-chip`],hostVars:31,hostBindings:function(S,m){S&1&&Ug(`focus`,function(){return m._handleFocus()})(`click`,function(G){return m._hasInteractiveActions()?m._handleClick(G):null})(`dblclick`,function(G){return m._handleDoubleclick(G)}),S&2&&(Hg(`id`,m.id),Wn(`tabindex`,m.disabled?null:-1)(`aria-label`,null)(`aria-description`,null)(`role`,m.role),ct(`mat-mdc-chip-with-avatar`,m.avatar)(`mat-mdc-chip-with-leading-icon`,m.leadingIcon)(`mat-mdc-chip-disabled`,m.disabled)(`mat-mdc-chip-editing`,m._isEditing)(`mat-mdc-chip-editable`,m.editable)(`mdc-evolution-chip--disabled`,m.disabled)(`mdc-evolution-chip--with-leading-action`,m._hasLeadingActionIcon())(`mdc-evolution-chip--with-trailing-action`,m._hasTrailingIcon())(`mdc-evolution-chip--with-primary-graphic`,m._hasLeadingGraphic())(`mdc-evolution-chip--with-primary-icon`,m.leadingIcon||m.avatar)(`mdc-evolution-chip--with-avatar`,m.avatar)(`mat-mdc-chip-highlighted`,m.highlighted)(`mat-mdc-chip-with-trailing-icon`,m._hasTrailingIcon()))},inputs:{editable:`editable`},outputs:{edited:`edited`},features:[db([{provide:Si,useExisting:o},{provide:Ni,useExisting:o}]),Lr],ngContentSelectors:n,decls:10,vars:8,consts:[[1,`mat-mdc-chip-focus-overlay`],[`role`,`gridcell`,1,`mdc-evolution-chip__cell`,`mdc-evolution-chip__cell--leading`],[`role`,`gridcell`,`matChipAction`,``,1,`mdc-evolution-chip__cell`,`mdc-evolution-chip__cell--primary`,3,`disabled`],[1,`mdc-evolution-chip__graphic`,`mat-mdc-chip-graphic`],[1,`mdc-evolution-chip__text-label`,`mat-mdc-chip-action-label`],[`aria-hidden`,`true`,1,`mat-mdc-chip-primary-focus-indicator`,`mat-focus-indicator`],[1,`mat-mdc-chip-touch-target`],[`role`,`gridcell`,1,`mdc-evolution-chip__cell`,`mdc-evolution-chip__cell--trailing`],[`matChipEditInput`,``]],template:function(S,m){S&1&&(Gn(i),Yo(0,t,1,0,`span`,0),Yo(1,e,2,0,`span`,1),Ys(2,`span`,2),Yo(3,l,2,0,`span`,3),Ys(4,`span`,4),Yo(5,M,2,1)(6,_,1,0),jg(7,`span`,5),od(),jg(8,`span`,6),od(),Yo(9,Kt,2,0,`span`,7)),S&2&&(Ko(m._isEditing?-1:0),zo(),Ko(m._hasLeadingActionIcon()?1:-1),zo(),Lg(`disabled`,m.disabled),Wn(`aria-description`,m.ariaDescription)(`aria-label`,m.ariaLabel),zo(),Ko(m._hasLeadingGraphic()?3:-1),zo(2),Ko(m._isEditing?5:6),zo(4),Ko(m._hasTrailingIcon()?9:-1))},dependencies:[Ii,xi],styles:[`.mdc-evolution-chip,
|
|
568
|
+
.mdc-evolution-chip__cell,
|
|
569
|
+
.mdc-evolution-chip__action {
|
|
570
|
+
display: inline-flex;
|
|
571
|
+
align-items: center;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.mdc-evolution-chip {
|
|
575
|
+
position: relative;
|
|
576
|
+
max-width: 100%;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.mat-mdc-chip-touch-target {
|
|
580
|
+
position: absolute;
|
|
581
|
+
top: 50%;
|
|
582
|
+
left: 0;
|
|
583
|
+
right: 0;
|
|
584
|
+
height: 48px;
|
|
585
|
+
transform: translateY(-50%);
|
|
586
|
+
display: var(--%NS%mat-chip-touch-target-display, block);
|
|
587
|
+
pointer-events: auto;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.mdc-evolution-chip__cell,
|
|
591
|
+
.mdc-evolution-chip__action {
|
|
592
|
+
height: 100%;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.mdc-evolution-chip__cell--primary {
|
|
596
|
+
flex-basis: 100%;
|
|
597
|
+
overflow-x: hidden;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.mdc-evolution-chip__cell--trailing {
|
|
601
|
+
flex: 1 0 auto;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.mdc-evolution-chip__action {
|
|
605
|
+
align-items: center;
|
|
606
|
+
background: none;
|
|
607
|
+
border: none;
|
|
608
|
+
box-sizing: content-box;
|
|
609
|
+
cursor: pointer;
|
|
610
|
+
display: inline-flex;
|
|
611
|
+
justify-content: center;
|
|
612
|
+
outline: none;
|
|
613
|
+
padding: 0;
|
|
614
|
+
text-decoration: none;
|
|
615
|
+
color: inherit;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.mdc-evolution-chip__action--presentational {
|
|
619
|
+
cursor: auto;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.mdc-evolution-chip--disabled,
|
|
623
|
+
.mdc-evolution-chip__action:disabled {
|
|
624
|
+
pointer-events: none;
|
|
625
|
+
}
|
|
626
|
+
@media (forced-colors: active) {
|
|
627
|
+
.mdc-evolution-chip--disabled,
|
|
628
|
+
.mdc-evolution-chip__action:disabled {
|
|
629
|
+
forced-color-adjust: none;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.mdc-evolution-chip__action--primary {
|
|
634
|
+
font: inherit;
|
|
635
|
+
letter-spacing: inherit;
|
|
636
|
+
white-space: inherit;
|
|
637
|
+
overflow-x: hidden;
|
|
638
|
+
}
|
|
639
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__action--%NS%primary::before {
|
|
640
|
+
border-width: var(--%NS%mat-chip-outline-width, 1px);
|
|
641
|
+
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
642
|
+
box-sizing: border-box;
|
|
643
|
+
content: "";
|
|
644
|
+
height: 100%;
|
|
645
|
+
left: 0;
|
|
646
|
+
position: absolute;
|
|
647
|
+
pointer-events: none;
|
|
648
|
+
top: 0;
|
|
649
|
+
width: 100%;
|
|
650
|
+
z-index: 1;
|
|
651
|
+
border-style: solid;
|
|
652
|
+
}
|
|
653
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__action--primary {
|
|
654
|
+
padding-left: 12px;
|
|
655
|
+
padding-right: 12px;
|
|
656
|
+
}
|
|
657
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
658
|
+
padding-left: 0;
|
|
659
|
+
padding-right: 12px;
|
|
660
|
+
}
|
|
661
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
662
|
+
padding-left: 12px;
|
|
663
|
+
padding-right: 0;
|
|
664
|
+
}
|
|
665
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--%NS%primary::before {
|
|
666
|
+
border-color: var(--%NS%mat-chip-outline-color, var(--%NS%mat-sys-outline));
|
|
667
|
+
}
|
|
668
|
+
.mdc-evolution-chip__action--%NS%primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before {
|
|
669
|
+
border-color: var(--%NS%mat-chip-focus-outline-color, var(--%NS%mat-sys-on-surface-variant));
|
|
670
|
+
}
|
|
671
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--%NS%primary::before {
|
|
672
|
+
border-color: var(--%NS%mat-chip-disabled-outline-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
673
|
+
}
|
|
674
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--%NS%primary::before {
|
|
675
|
+
border-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
676
|
+
}
|
|
677
|
+
.mat-mdc-basic-chip .mdc-evolution-chip__action--primary {
|
|
678
|
+
font: inherit;
|
|
679
|
+
}
|
|
680
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
681
|
+
padding-left: 0;
|
|
682
|
+
padding-right: 12px;
|
|
683
|
+
}
|
|
684
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary {
|
|
685
|
+
padding-left: 12px;
|
|
686
|
+
padding-right: 0;
|
|
687
|
+
}
|
|
688
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
689
|
+
padding-left: 12px;
|
|
690
|
+
padding-right: 0;
|
|
691
|
+
}
|
|
692
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
693
|
+
padding-left: 0;
|
|
694
|
+
padding-right: 12px;
|
|
695
|
+
}
|
|
696
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
697
|
+
padding-left: 0;
|
|
698
|
+
padding-right: 0;
|
|
699
|
+
}
|
|
700
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
701
|
+
padding-left: 0;
|
|
702
|
+
padding-right: 0;
|
|
703
|
+
}
|
|
704
|
+
[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
705
|
+
padding-left: 0;
|
|
706
|
+
padding-right: 0;
|
|
707
|
+
}
|
|
708
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
709
|
+
padding-left: 0;
|
|
710
|
+
padding-right: 12px;
|
|
711
|
+
}
|
|
712
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary {
|
|
713
|
+
padding-left: 12px;
|
|
714
|
+
padding-right: 0;
|
|
715
|
+
}
|
|
716
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
717
|
+
padding-left: 0;
|
|
718
|
+
padding-right: 0;
|
|
719
|
+
}
|
|
720
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary {
|
|
721
|
+
padding-left: 0;
|
|
722
|
+
padding-right: 0;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.mdc-evolution-chip__action--secondary {
|
|
726
|
+
position: relative;
|
|
727
|
+
overflow: visible;
|
|
728
|
+
}
|
|
729
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary {
|
|
730
|
+
color: var(--%NS%mat-chip-with-trailing-icon-trailing-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
731
|
+
}
|
|
732
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary {
|
|
733
|
+
color: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
734
|
+
}
|
|
735
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
736
|
+
padding-left: 8px;
|
|
737
|
+
padding-right: 8px;
|
|
738
|
+
}
|
|
739
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
740
|
+
padding-left: 8px;
|
|
741
|
+
padding-right: 8px;
|
|
742
|
+
}
|
|
743
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
744
|
+
padding-left: 8px;
|
|
745
|
+
padding-right: 8px;
|
|
746
|
+
}
|
|
747
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary, [dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--secondary {
|
|
748
|
+
padding-left: 8px;
|
|
749
|
+
padding-right: 8px;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.mdc-evolution-chip__text-label {
|
|
753
|
+
-webkit-user-select: none;
|
|
754
|
+
user-select: none;
|
|
755
|
+
white-space: nowrap;
|
|
756
|
+
text-overflow: ellipsis;
|
|
757
|
+
overflow: hidden;
|
|
758
|
+
}
|
|
759
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__text-label {
|
|
760
|
+
font-family: var(--%NS%mat-chip-label-text-font, var(--%NS%mat-sys-label-large-font));
|
|
761
|
+
line-height: var(--%NS%mat-chip-label-text-line-height, var(--%NS%mat-sys-label-large-line-height));
|
|
762
|
+
font-size: var(--%NS%mat-chip-label-text-size, var(--%NS%mat-sys-label-large-size));
|
|
763
|
+
font-weight: var(--%NS%mat-chip-label-text-weight, var(--%NS%mat-sys-label-large-weight));
|
|
764
|
+
letter-spacing: var(--%NS%mat-chip-label-text-tracking, var(--%NS%mat-sys-label-large-tracking));
|
|
765
|
+
}
|
|
766
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
767
|
+
color: var(--%NS%mat-chip-label-text-color, var(--%NS%mat-sys-on-surface-variant));
|
|
768
|
+
}
|
|
769
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label {
|
|
770
|
+
color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
771
|
+
}
|
|
772
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label, .mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label {
|
|
773
|
+
color: var(--%NS%mat-chip-disabled-label-text-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent));
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.mdc-evolution-chip__graphic {
|
|
777
|
+
align-items: center;
|
|
778
|
+
display: inline-flex;
|
|
779
|
+
justify-content: center;
|
|
780
|
+
overflow: hidden;
|
|
781
|
+
pointer-events: none;
|
|
782
|
+
position: relative;
|
|
783
|
+
flex: 1 0 auto;
|
|
784
|
+
}
|
|
785
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__graphic {
|
|
786
|
+
width: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
787
|
+
height: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
788
|
+
font-size: var(--%NS%mat-chip-with-avatar-avatar-size, 24px);
|
|
789
|
+
}
|
|
790
|
+
.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic {
|
|
791
|
+
transition: width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
792
|
+
}
|
|
793
|
+
.mdc-evolution-chip--%NS%selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic {
|
|
794
|
+
width: 0;
|
|
795
|
+
}
|
|
796
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
797
|
+
padding-left: 6px;
|
|
798
|
+
padding-right: 6px;
|
|
799
|
+
}
|
|
800
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
801
|
+
padding-left: 4px;
|
|
802
|
+
padding-right: 8px;
|
|
803
|
+
}
|
|
804
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic {
|
|
805
|
+
padding-left: 8px;
|
|
806
|
+
padding-right: 4px;
|
|
807
|
+
}
|
|
808
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
809
|
+
padding-left: 6px;
|
|
810
|
+
padding-right: 6px;
|
|
811
|
+
}
|
|
812
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
813
|
+
padding-left: 4px;
|
|
814
|
+
padding-right: 8px;
|
|
815
|
+
}
|
|
816
|
+
[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic {
|
|
817
|
+
padding-left: 8px;
|
|
818
|
+
padding-right: 4px;
|
|
819
|
+
}
|
|
820
|
+
.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic {
|
|
821
|
+
padding-left: 0;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.mdc-evolution-chip__checkmark {
|
|
825
|
+
position: absolute;
|
|
826
|
+
opacity: 0;
|
|
827
|
+
top: 50%;
|
|
828
|
+
left: 50%;
|
|
829
|
+
height: 20px;
|
|
830
|
+
width: 20px;
|
|
831
|
+
}
|
|
832
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark {
|
|
833
|
+
color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
834
|
+
}
|
|
835
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark {
|
|
836
|
+
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
837
|
+
}
|
|
838
|
+
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark {
|
|
839
|
+
transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
840
|
+
transform: translate(-75%, -50%);
|
|
841
|
+
}
|
|
842
|
+
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
843
|
+
transform: translate(-50%, -50%);
|
|
844
|
+
opacity: 1;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.mdc-evolution-chip__checkmark-svg {
|
|
848
|
+
display: block;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.mdc-evolution-chip__checkmark-path {
|
|
852
|
+
stroke-width: 2px;
|
|
853
|
+
stroke-dasharray: 29.7833385;
|
|
854
|
+
stroke-dashoffset: 29.7833385;
|
|
855
|
+
stroke: currentColor;
|
|
856
|
+
}
|
|
857
|
+
.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path {
|
|
858
|
+
transition: stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
859
|
+
}
|
|
860
|
+
.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path {
|
|
861
|
+
stroke-dashoffset: 0;
|
|
862
|
+
}
|
|
863
|
+
@media (forced-colors: active) {
|
|
864
|
+
.mdc-evolution-chip__checkmark-path {
|
|
865
|
+
stroke: CanvasText !important;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing {
|
|
870
|
+
height: 18px;
|
|
871
|
+
width: 18px;
|
|
872
|
+
font-size: 18px;
|
|
873
|
+
}
|
|
874
|
+
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove {
|
|
875
|
+
opacity: calc(var(--%NS%mat-chip-trailing-action-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
876
|
+
}
|
|
877
|
+
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus {
|
|
878
|
+
opacity: calc(var(--%NS%mat-chip-trailing-action-focus-opacity, 1) * var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38));
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.mat-mdc-standard-chip {
|
|
882
|
+
border-radius: var(--%NS%mat-chip-container-shape-radius, 8px);
|
|
883
|
+
height: var(--%NS%mat-chip-container-height, 32px);
|
|
884
|
+
}
|
|
885
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) {
|
|
886
|
+
background-color: var(--%NS%mat-chip-elevated-container-color, transparent);
|
|
887
|
+
}
|
|
888
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
889
|
+
background-color: var(--%NS%mat-chip-elevated-disabled-container-color);
|
|
890
|
+
}
|
|
891
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--%NS%selected:not(.mdc-evolution-chip--disabled) {
|
|
892
|
+
background-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
893
|
+
}
|
|
894
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled {
|
|
895
|
+
background-color: var(--%NS%mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--%NS%mat-sys-on-surface) 12%, transparent));
|
|
896
|
+
}
|
|
897
|
+
@media (forced-colors: active) {
|
|
898
|
+
.mat-mdc-standard-chip {
|
|
899
|
+
outline: solid 1px;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary {
|
|
904
|
+
width: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
905
|
+
height: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
906
|
+
font-size: var(--%NS%mat-chip-with-icon-icon-size, 18px);
|
|
907
|
+
}
|
|
908
|
+
.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary {
|
|
909
|
+
opacity: 0;
|
|
910
|
+
}
|
|
911
|
+
.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary {
|
|
912
|
+
color: var(--%NS%mat-chip-with-icon-icon-color, var(--%NS%mat-sys-on-surface-variant));
|
|
913
|
+
}
|
|
914
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary {
|
|
915
|
+
color: var(--%NS%mat-chip-with-icon-disabled-icon-color, var(--%NS%mat-sys-on-surface));
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.mat-mdc-chip-highlighted {
|
|
919
|
+
--%NS%mat-chip-with-icon-icon-color: var(--%NS%mat-chip-with-icon-selected-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
920
|
+
--%NS%mat-chip-elevated-container-color: var(--%NS%mat-chip-elevated-selected-container-color, var(--%NS%mat-sys-secondary-container));
|
|
921
|
+
--%NS%mat-chip-label-text-color: var(--%NS%mat-chip-selected-label-text-color, var(--%NS%mat-sys-on-secondary-container));
|
|
922
|
+
--%NS%mat-chip-outline-width: var(--%NS%mat-chip-flat-selected-outline-width, 0);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.mat-mdc-chip-focus-overlay {
|
|
926
|
+
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
927
|
+
}
|
|
928
|
+
.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay {
|
|
929
|
+
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
930
|
+
}
|
|
931
|
+
.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay {
|
|
932
|
+
background: var(--%NS%mat-chip-hover-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
933
|
+
opacity: var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
934
|
+
}
|
|
935
|
+
.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover, .mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay {
|
|
936
|
+
background: var(--%NS%mat-chip-selected-hover-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
937
|
+
opacity: var(--%NS%mat-chip-selected-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity));
|
|
938
|
+
}
|
|
939
|
+
.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
940
|
+
background: var(--%NS%mat-chip-focus-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
941
|
+
opacity: var(--%NS%mat-chip-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
942
|
+
}
|
|
943
|
+
.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay, .mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay {
|
|
944
|
+
background: var(--%NS%mat-chip-selected-focus-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
945
|
+
opacity: var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity));
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.mdc-evolution-chip--%NS%disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar {
|
|
949
|
+
opacity: var(--%NS%mat-chip-with-avatar-disabled-avatar-opacity, 0.38);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.mdc-evolution-chip--%NS%disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-leading-icon {
|
|
953
|
+
opacity: var(--%NS%mat-chip-with-icon-disabled-icon-opacity, 0.38);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
957
|
+
opacity: var(--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark {
|
|
961
|
+
opacity: var(--%NS%mat-chip-with-icon-disabled-icon-opacity, 0.38);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--disabled {
|
|
965
|
+
opacity: var(--%NS%mat-chip-disabled-container-opacity, 1);
|
|
966
|
+
}
|
|
967
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing {
|
|
968
|
+
color: var(--%NS%mat-chip-selected-trailing-icon-color, var(--%NS%mat-sys-on-secondary-container));
|
|
969
|
+
}
|
|
970
|
+
.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing, .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing {
|
|
971
|
+
color: var(--%NS%mat-chip-selected-disabled-trailing-icon-color, var(--%NS%mat-sys-on-surface));
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.mat-mdc-chip-edit, .mat-mdc-chip-remove {
|
|
975
|
+
opacity: var(--%NS%mat-chip-trailing-action-opacity, 1);
|
|
976
|
+
}
|
|
977
|
+
.mat-mdc-chip-edit:focus, .mat-mdc-chip-remove:focus {
|
|
978
|
+
opacity: var(--%NS%mat-chip-trailing-action-focus-opacity, 1);
|
|
979
|
+
}
|
|
980
|
+
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
981
|
+
background-color: var(--%NS%mat-chip-trailing-action-state-layer-color, var(--%NS%mat-sys-on-surface-variant));
|
|
982
|
+
}
|
|
983
|
+
.mat-mdc-chip-edit:hover::after, .mat-mdc-chip-remove:hover::after {
|
|
984
|
+
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
985
|
+
}
|
|
986
|
+
.mat-mdc-chip-edit:focus::after, .mat-mdc-chip-remove:focus::after {
|
|
987
|
+
opacity: calc(var(--%NS%mat-chip-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.mat-mdc-chip-selected .mat-mdc-chip-remove::after,
|
|
991
|
+
.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after {
|
|
992
|
+
background-color: var(--%NS%mat-chip-selected-trailing-action-state-layer-color, var(--%NS%mat-sys-on-secondary-container));
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:focus::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after {
|
|
996
|
+
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)));
|
|
997
|
+
}
|
|
998
|
+
.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after, .mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after {
|
|
999
|
+
opacity: calc(var(--%NS%mat-chip-selected-focus-state-layer-opacity, var(--%NS%mat-sys-focus-state-layer-opacity)) + var(--%NS%mat-chip-trailing-action-hover-state-layer-opacity, var(--%NS%mat-sys-hover-state-layer-opacity)));
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.mat-mdc-standard-chip {
|
|
1003
|
+
-webkit-tap-highlight-color: transparent;
|
|
1004
|
+
}
|
|
1005
|
+
.mat-mdc-standard-chip .mat-mdc-chip-graphic,
|
|
1006
|
+
.mat-mdc-standard-chip .mat-mdc-chip-leading-icon,
|
|
1007
|
+
.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon {
|
|
1008
|
+
box-sizing: content-box;
|
|
1009
|
+
}
|
|
1010
|
+
.mat-mdc-standard-chip._mat-animation-noopable,
|
|
1011
|
+
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,
|
|
1012
|
+
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,
|
|
1013
|
+
.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path {
|
|
1014
|
+
transition-duration: 1ms;
|
|
1015
|
+
animation-duration: 1ms;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.mat-mdc-chip-focus-overlay {
|
|
1019
|
+
top: 0;
|
|
1020
|
+
left: 0;
|
|
1021
|
+
right: 0;
|
|
1022
|
+
bottom: 0;
|
|
1023
|
+
position: absolute;
|
|
1024
|
+
pointer-events: none;
|
|
1025
|
+
opacity: 0;
|
|
1026
|
+
border-radius: inherit;
|
|
1027
|
+
transition: opacity 150ms linear;
|
|
1028
|
+
}
|
|
1029
|
+
._mat-animation-noopable .mat-mdc-chip-focus-overlay {
|
|
1030
|
+
transition: none;
|
|
1031
|
+
}
|
|
1032
|
+
.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay {
|
|
1033
|
+
display: none;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple {
|
|
1037
|
+
top: 0;
|
|
1038
|
+
left: 0;
|
|
1039
|
+
right: 0;
|
|
1040
|
+
bottom: 0;
|
|
1041
|
+
position: absolute;
|
|
1042
|
+
pointer-events: none;
|
|
1043
|
+
border-radius: inherit;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.mat-mdc-chip-avatar {
|
|
1047
|
+
text-align: center;
|
|
1048
|
+
line-height: 1;
|
|
1049
|
+
color: var(--%NS%mat-chip-with-icon-icon-color, currentColor);
|
|
1050
|
+
}
|
|
1051
|
+
.mat-mdc-standard-chip .mat-mdc-chip-avatar {
|
|
1052
|
+
border-radius: var(--%NS%mat-chip-with-avatar-avatar-shape-radius, 24px);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.mat-mdc-chip {
|
|
1056
|
+
position: relative;
|
|
1057
|
+
z-index: 0;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.mat-mdc-chip-action-label {
|
|
1061
|
+
text-align: left;
|
|
1062
|
+
z-index: 1;
|
|
1063
|
+
}
|
|
1064
|
+
[dir=rtl] .mat-mdc-chip-action-label {
|
|
1065
|
+
text-align: right;
|
|
1066
|
+
}
|
|
1067
|
+
.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label {
|
|
1068
|
+
position: relative;
|
|
1069
|
+
}
|
|
1070
|
+
.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator {
|
|
1071
|
+
position: absolute;
|
|
1072
|
+
top: 0;
|
|
1073
|
+
right: 0;
|
|
1074
|
+
bottom: 0;
|
|
1075
|
+
left: 0;
|
|
1076
|
+
pointer-events: none;
|
|
1077
|
+
}
|
|
1078
|
+
.mat-mdc-chip-action-label .mat-focus-indicator::before {
|
|
1079
|
+
margin: calc(calc(var(--%NS%mat-focus-indicator-border-width, 3px) + 2px) * -1);
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.mat-mdc-chip-edit::before, .mat-mdc-chip-remove::before {
|
|
1083
|
+
margin: calc(var(--%NS%mat-focus-indicator-border-width, 3px) * -1);
|
|
1084
|
+
left: 8px;
|
|
1085
|
+
right: 8px;
|
|
1086
|
+
}
|
|
1087
|
+
.mat-mdc-chip-edit::after, .mat-mdc-chip-remove::after {
|
|
1088
|
+
content: "";
|
|
1089
|
+
display: block;
|
|
1090
|
+
opacity: 0;
|
|
1091
|
+
position: absolute;
|
|
1092
|
+
top: -3px;
|
|
1093
|
+
bottom: -3px;
|
|
1094
|
+
left: 5px;
|
|
1095
|
+
right: 5px;
|
|
1096
|
+
border-radius: 50%;
|
|
1097
|
+
box-sizing: border-box;
|
|
1098
|
+
padding: 12px;
|
|
1099
|
+
margin: -12px;
|
|
1100
|
+
background-clip: content-box;
|
|
1101
|
+
}
|
|
1102
|
+
.mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
1103
|
+
width: 18px;
|
|
1104
|
+
height: 18px;
|
|
1105
|
+
font-size: 18px;
|
|
1106
|
+
box-sizing: content-box;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
.mat-chip-edit-input {
|
|
1110
|
+
cursor: text;
|
|
1111
|
+
display: inline-block;
|
|
1112
|
+
color: inherit;
|
|
1113
|
+
outline: 0;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
@media (forced-colors: active) {
|
|
1117
|
+
.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple) {
|
|
1118
|
+
outline-width: 3px;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.mat-mdc-chip-action:focus-visible .mat-focus-indicator::before {
|
|
1123
|
+
content: "";
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.mdc-evolution-chip__icon, .mat-mdc-chip-edit .mat-icon, .mat-mdc-chip-remove .mat-icon {
|
|
1127
|
+
min-height: fit-content;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
img.mdc-evolution-chip__icon {
|
|
1131
|
+
min-height: 0;
|
|
1132
|
+
}
|
|
1133
|
+
`],encapsulation:2})})()}return o})();var Jt=(()=>{class o{_elementRef=m(oe);_changeDetectorRef=m(eC);_dir=m(gT,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new B;_defaultRole=`presentation`;get chipFocusChanges(){return this._getChipStream(i=>i._onFocus)}get chipDestroyedChanges(){return this._getChipStream(i=>i.destroyed)}get chipRemovedChanges(){return this._getChipStream(i=>i.removed)}get disabled(){return this._disabled}set disabled(i){this._disabled=i,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(i){this._explicitRole=i}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new jn;ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(i=>i._hasFocus())}_syncChipsState(){this._chips?.forEach(i=>{i._chipListDisabled=this._disabled,i._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(i){this._originatesFromChip(i)&&this._keyManager.onKeydown(i)}_isValidIndex(i){return i>=0&&i<this._chips.length}_allowFocusEscape(){let i=this._elementRef.nativeElement.tabIndex;i!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(()=>this._elementRef.nativeElement.tabIndex=i))}_getChipStream(i){return this._chips.changes.pipe(Dc(null),Wf(()=>Bv(...this._chips.map(i))))}_originatesFromChip(i){let n=i.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains(`mat-mdc-chip`))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Dc(this._chips)).subscribe(i=>{let n=[];i.forEach(t=>t._getActions().forEach(e=>n.push(e))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new zd(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:`ltr`).withHomeAndEnd().skipPredicate(i=>this._skipPredicate(i)),this.chipFocusChanges.pipe(po(this._destroyed)).subscribe(({chip:i})=>{let n=i._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(po(this._destroyed)).subscribe(i=>this._keyManager.withHorizontalOrientation(i))}_skipPredicate(i){return i.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Dc(null),po(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(po(this._destroyed)).subscribe(i=>{let t=this._chips.toArray().indexOf(i.chip),e=i.chip._hasFocus(),l=i.chip._hadFocusOnRemove&&this._keyManager.activeItem&&i.chip._getActions().includes(this._keyManager.activeItem),u=e||l;this._isValidIndex(t)&&u&&(this._lastDestroyedFocusedChipIndex=t)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let i=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[i];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static ɵfac=function(n){return new(n||o)};static ɵcmp=(function(){return Te({type:o,selectors:[[`mat-chip-set`]],contentQueries:function(t,e,l){if(t&1&&Wg(l,Si,5),t&2){let u;Hw(u=Uw())&&(e._chips=u)}},hostAttrs:[1,`mat-mdc-chip-set`,`mdc-evolution-chip-set`],hostVars:1,hostBindings:function(t,e){t&1&&Ug(`keydown`,function(u){return e._handleKeydown(u)}),t&2&&Wn(`role`,e.role)},inputs:{disabled:[2,`disabled`,`disabled`,Ke],role:`role`,tabIndex:[2,`tabIndex`,`tabIndex`,n=>n==null?0:Cb(n)]},ngContentSelectors:[`*`],decls:2,vars:0,consts:[[`role`,`presentation`,1,`mdc-evolution-chip-set__chips`]],template:function(t,e){t&1&&(Gn(),en$1(0,`div`,0),Ye(1),tn$1())},styles:[`.mat-mdc-chip-set {
|
|
1134
|
+
display: flex;
|
|
1135
|
+
}
|
|
1136
|
+
.mat-mdc-chip-set:focus {
|
|
1137
|
+
outline: none;
|
|
1138
|
+
}
|
|
1139
|
+
.mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
1140
|
+
min-width: 100%;
|
|
1141
|
+
margin-left: -8px;
|
|
1142
|
+
margin-right: 0;
|
|
1143
|
+
}
|
|
1144
|
+
.mat-mdc-chip-set .mdc-evolution-chip {
|
|
1145
|
+
margin: 8px 0 8px 8px;
|
|
1146
|
+
}
|
|
1147
|
+
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
1148
|
+
margin-left: 0;
|
|
1149
|
+
margin-right: -8px;
|
|
1150
|
+
}
|
|
1151
|
+
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip {
|
|
1152
|
+
margin-left: 0;
|
|
1153
|
+
margin-right: 8px;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.mdc-evolution-chip-set__chips {
|
|
1157
|
+
display: flex;
|
|
1158
|
+
flex-flow: wrap;
|
|
1159
|
+
min-width: 0;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.mat-mdc-chip-set-stacked {
|
|
1163
|
+
flex-direction: column;
|
|
1164
|
+
align-items: flex-start;
|
|
1165
|
+
}
|
|
1166
|
+
.mat-mdc-chip-set-stacked .mat-mdc-chip {
|
|
1167
|
+
width: 100%;
|
|
1168
|
+
}
|
|
1169
|
+
.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic {
|
|
1170
|
+
flex-grow: 0;
|
|
1171
|
+
}
|
|
1172
|
+
.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary {
|
|
1173
|
+
flex-basis: 100%;
|
|
1174
|
+
justify-content: start;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
input.mat-mdc-chip-input {
|
|
1178
|
+
flex: 1 0 150px;
|
|
1179
|
+
margin-left: 8px;
|
|
1180
|
+
}
|
|
1181
|
+
[dir=rtl] input.mat-mdc-chip-input {
|
|
1182
|
+
margin-left: 0;
|
|
1183
|
+
margin-right: 8px;
|
|
1184
|
+
}
|
|
1185
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder {
|
|
1186
|
+
opacity: 1;
|
|
1187
|
+
}
|
|
1188
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder {
|
|
1189
|
+
opacity: 1;
|
|
1190
|
+
}
|
|
1191
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder {
|
|
1192
|
+
opacity: 1;
|
|
1193
|
+
}
|
|
1194
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder {
|
|
1195
|
+
opacity: 1;
|
|
1196
|
+
}
|
|
1197
|
+
.mat-mdc-chip-set + input.mat-mdc-chip-input {
|
|
1198
|
+
margin-left: 0;
|
|
1199
|
+
margin-right: 0;
|
|
1200
|
+
}
|
|
1201
|
+
`],encapsulation:2})})()}return o})();var ki=class{source;value;constructor(s,i){this.source=s,this.value=i}};var Gt=(()=>{class o extends Jt{ngControl=m(x,{optional:!0,self:!0});controlType=`mat-chip-grid`;_chipInput;_defaultRole=`grid`;_errorStateTracker;_uid=m(Wd).getId(`mat-chip-grid-`);_ariaDescribedbyIds=[];_onTouched=()=>{};_onChange=()=>{};get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(i){this._disabled=i,this._syncChipsState(),this.stateChanges.next()}get id(){return this._chipInput?this._chipInput.id:this._uid}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}_placeholder=``;get focused(){return this._chipInput?.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(se.required)??!1}set required(i){this._required=i,this.stateChanges.next()}_required;get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(i){this._value=i}_value=[];get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(i){this._errorStateTracker.matcher=i}get chipBlurChanges(){return this._getChipStream(i=>i._onBlur)}change=new me;valueChange=new me;_chips=void 0;stateChanges=new B;get errorState(){return this._errorStateTracker.errorState}set errorState(i){this._errorStateTracker.errorState=i}constructor(){super();let i=m(Qt$1,{optional:!0}),n=m(nn$1,{optional:!0}),t=m(en$2),e=m(Vt$1,{optional:!0,self:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Ne(t,e||this.ngControl,n,i,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(po(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),Bv(this.chipFocusChanges,this._chips.changes).pipe(po(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(i){this._chipInput=i,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds),this._elementRef.nativeElement.removeAttribute(`aria-describedby`)}onContainerClick(i){!this.disabled&&!this._originatesFromChip(i)&&this.focus()}focus(){if(!(this.disabled||this._chipInput?.focused)){if(!this._chips.length||this._chips.first.disabled){if(!this._chipInput)return;Promise.resolve().then(()=>this._chipInput.focus())}else{let i=this._keyManager.activeItem;i?i.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}get describedByIds(){if(this._chipInput)return this._chipInput.describedByIds||[];let i=this._elementRef.nativeElement.getAttribute(`aria-describedby`);return i?i.split(` `):[]}setDescribedByIds(i){this._ariaDescribedbyIds=i,this._chipInput?this._chipInput.setDescribedByIds(i):i.length?this._elementRef.nativeElement.setAttribute(`aria-describedby`,i.join(` `)):this._elementRef.nativeElement.removeAttribute(`aria-describedby`)}writeValue(i){this._value=i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput?.focused||super._allowFocusEscape()}_handleKeydown(i){let n=i.keyCode,t=this._keyManager.activeItem;if(n===9)this._chipInput?.focused&&Oy(i,`shiftKey`)&&this._chips.length&&!this._chips.last.disabled?(i.preventDefault(),t?this._keyManager.setActiveItem(t):this._focusLastChip()):super._allowFocusEscape();else if(!this._chipInput?.focused)if((n===38||n===40)&&t){let e=this._chipActions.filter(p=>p._isPrimary===t._isPrimary&&!this._skipPredicate(p)),l=e.indexOf(t),u=i.keyCode===38?-1:1;i.preventDefault(),l>-1&&this._isValidIndex(l+u)&&this._keyManager.setActiveItem(e[l+u])}else super._handleKeydown(i);this.stateChanges.next()}_redirectDestroyedChipFocus(){this._lastDestroyedFocusedChipIndex!==null&&(super._redirectDestroyedChipFocus(),(!this._chips.length||this._chips.length===1&&this._chips.first.disabled)&&this._keyManager.updateActiveItem(-1))}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let i=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=i,this.change.emit(new ki(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static ɵfac=function(n){return new(n||o)};static ɵcmp=(function(){return Te({type:o,selectors:[[`mat-chip-grid`]],contentQueries:function(t,e,l){if(t&1&&Wg(l,Mi,5),t&2){let u;Hw(u=Uw())&&(e._chips=u)}},hostAttrs:[1,`mat-mdc-chip-set`,`mat-mdc-chip-grid`,`mdc-evolution-chip-set`],hostVars:10,hostBindings:function(t,e){t&1&&Ug(`focus`,function(){return e.focus()})(`blur`,function(){return e._blur()}),t&2&&(Wn(`role`,e.role)(`tabindex`,e.disabled||e._chips&&e._chips.length===0?-1:e.tabIndex)(`aria-disabled`,e.disabled.toString())(`aria-invalid`,e.errorState),ct(`mat-mdc-chip-list-disabled`,e.disabled)(`mat-mdc-chip-list-invalid`,e.errorState)(`mat-mdc-chip-list-required`,e.required))},inputs:{disabled:[2,`disabled`,`disabled`,Ke],placeholder:`placeholder`,required:[2,`required`,`required`,Ke],value:`value`,errorStateMatcher:`errorStateMatcher`},outputs:{change:`change`,valueChange:`valueChange`},features:[db([{provide:je,useExisting:o}]),Lr],ngContentSelectors:[`*`],decls:2,vars:0,consts:[[`role`,`presentation`,1,`mdc-evolution-chip-set__chips`]],template:function(t,e){t&1&&(Gn(),en$1(0,`div`,0),Ye(1),tn$1())},styles:[`.mat-mdc-chip-set {
|
|
1202
|
+
display: flex;
|
|
1203
|
+
}
|
|
1204
|
+
.mat-mdc-chip-set:focus {
|
|
1205
|
+
outline: none;
|
|
1206
|
+
}
|
|
1207
|
+
.mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
1208
|
+
min-width: 100%;
|
|
1209
|
+
margin-left: -8px;
|
|
1210
|
+
margin-right: 0;
|
|
1211
|
+
}
|
|
1212
|
+
.mat-mdc-chip-set .mdc-evolution-chip {
|
|
1213
|
+
margin: 8px 0 8px 8px;
|
|
1214
|
+
}
|
|
1215
|
+
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips {
|
|
1216
|
+
margin-left: 0;
|
|
1217
|
+
margin-right: -8px;
|
|
1218
|
+
}
|
|
1219
|
+
[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip {
|
|
1220
|
+
margin-left: 0;
|
|
1221
|
+
margin-right: 8px;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
.mdc-evolution-chip-set__chips {
|
|
1225
|
+
display: flex;
|
|
1226
|
+
flex-flow: wrap;
|
|
1227
|
+
min-width: 0;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.mat-mdc-chip-set-stacked {
|
|
1231
|
+
flex-direction: column;
|
|
1232
|
+
align-items: flex-start;
|
|
1233
|
+
}
|
|
1234
|
+
.mat-mdc-chip-set-stacked .mat-mdc-chip {
|
|
1235
|
+
width: 100%;
|
|
1236
|
+
}
|
|
1237
|
+
.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic {
|
|
1238
|
+
flex-grow: 0;
|
|
1239
|
+
}
|
|
1240
|
+
.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary {
|
|
1241
|
+
flex-basis: 100%;
|
|
1242
|
+
justify-content: start;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
input.mat-mdc-chip-input {
|
|
1246
|
+
flex: 1 0 150px;
|
|
1247
|
+
margin-left: 8px;
|
|
1248
|
+
}
|
|
1249
|
+
[dir=rtl] input.mat-mdc-chip-input {
|
|
1250
|
+
margin-left: 0;
|
|
1251
|
+
margin-right: 8px;
|
|
1252
|
+
}
|
|
1253
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::placeholder {
|
|
1254
|
+
opacity: 1;
|
|
1255
|
+
}
|
|
1256
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-moz-placeholder {
|
|
1257
|
+
opacity: 1;
|
|
1258
|
+
}
|
|
1259
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input::-webkit-input-placeholder {
|
|
1260
|
+
opacity: 1;
|
|
1261
|
+
}
|
|
1262
|
+
.mat-mdc-form-field:not(.mat-form-field-hide-placeholder) input.mat-mdc-chip-input:-ms-input-placeholder {
|
|
1263
|
+
opacity: 1;
|
|
1264
|
+
}
|
|
1265
|
+
.mat-mdc-chip-set + input.mat-mdc-chip-input {
|
|
1266
|
+
margin-left: 0;
|
|
1267
|
+
margin-right: 0;
|
|
1268
|
+
}
|
|
1269
|
+
`],encapsulation:2})})()}return o})();var jt=(()=>{class o{_elementRef=m(oe);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(i){i&&(this._chipGrid=i,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new me;placeholder=``;id=m(Wd).getId(`mat-mdc-chip-list-input-`);get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(i){this._disabled=i}_disabled=!1;readonly=!1;disabledInteractive;get empty(){return!this.inputElement.value}inputElement;constructor(){let i=m(Vt),n=m(Ke$1,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=i.separatorKeyCodes,this.disabledInteractive=i.inputDisabledInteractive??!1,n&&this.inputElement.classList.add(`mat-mdc-form-field-input-control`)}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(i){this.empty&&i.keyCode===8?(i.repeat||this._chipGrid._focusLastChip(),i.preventDefault()):this._emitChipEnd(i)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(i){(!i||this._isSeparatorKey(i)&&!i.repeat)&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),i?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=``}get describedByIds(){return this._elementRef.nativeElement.getAttribute(`aria-describedby`)?.split(` `)||[]}setDescribedByIds(i){let n=this._elementRef.nativeElement;i.length?n.setAttribute(`aria-describedby`,i.join(` `)):n.removeAttribute(`aria-describedby`)}_isSeparatorKey(i){if(!this.separatorKeyCodes)return!1;for(let n of this.separatorKeyCodes){let t,e;typeof n==`number`?(t=n,e=null):(t=n.keyCode,e=n.modifiers);let l=e?.length?Oy(i,...e):!Oy(i);if(t===i.keyCode&&l)return!0}return!1}_getReadonlyAttribute(){return this.readonly||this.disabled&&this.disabledInteractive?`true`:null}static ɵfac=function(n){return new(n||o)};static ɵdir=xe({type:o,selectors:[[`input`,`matChipInputFor`,``]],hostAttrs:[1,`mat-mdc-chip-input`,`mat-mdc-input-element`,`mdc-text-field__input`,`mat-input-element`],hostVars:8,hostBindings:function(n,t){n&1&&Ug(`keydown`,function(l){return t._keydown(l)})(`blur`,function(){return t._blur()})(`focus`,function(){return t._focus()})(`input`,function(){return t._onInput()}),n&2&&(Hg(`id`,t.id),Wn(`disabled`,t.disabled&&!t.disabledInteractive?``:null)(`placeholder`,t.placeholder||null)(`aria-invalid`,t._chipGrid&&t._chipGrid.ngControl?t._chipGrid.ngControl.invalid:null)(`aria-required`,t._chipGrid&&t._chipGrid.required||null)(`aria-disabled`,t.disabled&&t.disabledInteractive?`true`:null)(`readonly`,t._getReadonlyAttribute())(`required`,t._chipGrid&&t._chipGrid.required||null))},inputs:{chipGrid:[0,`matChipInputFor`,`chipGrid`],addOnBlur:[2,`matChipInputAddOnBlur`,`addOnBlur`,Ke],separatorKeyCodes:[0,`matChipInputSeparatorKeyCodes`,`separatorKeyCodes`],placeholder:`placeholder`,id:`id`,disabled:[2,`disabled`,`disabled`,Ke],readonly:[2,`readonly`,`readonly`,Ke],disabledInteractive:[2,`matChipInputDisabledInteractive`,`disabledInteractive`,Ke]},outputs:{chipEnd:`matChipInputTokenEnd`},exportAs:[`matChipInput`,`matChipInputFor`],features:[Xs]})}return o})();var qt=(()=>{class o{static ɵfac=function(n){return new(n||o)};static ɵmod=fe({type:o});static ɵinj=ae({providers:[en$2,{provide:Vt,useValue:{separatorKeyCodes:[13]}}],imports:[Zy,$r]})}return o})();var tn=(o,s)=>s.name;function nn(o,s){if(o&1){let i=Lw();Ys(0,`tr`)(1,`td`)(2,`input`,10),gI(),cb(`ngModelChange`,function(t){let e=Ip(i).$implicit;return bS(e.name,t)||(e.name=t),wp(t)}),od()(),Ys(3,`td`)(4,`input`,33),gI(),cb(`ngModelChange`,function(t){let e=Ip(i).$implicit;return bS(e.cpu,t)||(e.cpu=t),wp(t)}),od()(),Ys(5,`td`)(6,`input`,34),gI(),cb(`ngModelChange`,function(t){let e=Ip(i).$implicit;return bS(e.mem_mb,t)||(e.mem_mb=t),wp(t)}),od()(),Ys(7,`td`)(8,`input`,35),gI(),cb(`ngModelChange`,function(t){let e=Ip(i).$implicit;return bS(e.disk_gb,t)||(e.disk_gb=t),wp(t)}),od()(),Ys(9,`td`)(10,`input`,35),gI(),cb(`ngModelChange`,function(t){let e=Ip(i).$implicit;return bS(e.pids,t)||(e.pids=t),wp(t)}),od()(),Ys(11,`td`)(12,`button`,36),Ug(`click`,function(){let t=Ip(i).$index,e=jw(2);return wp(e.plans.splice(t,1))}),Ys(13,`mat-icon`),dS(14,`delete`),od()()()()}if(o&2){let i=s.$implicit,n=jw(2);zo(2),ab(`ngModel`,i.name),yI(),zo(2),ab(`ngModel`,i.cpu),yI(),zo(2),ab(`ngModel`,i.mem_mb),yI(),zo(2),ab(`ngModel`,i.disk_gb),yI(),zo(2),ab(`ngModel`,i.pids),yI(),zo(2),Lg(`disabled`,n.plans.length===1)}}function en(o,s){if(o&1&&(Ys(0,`mat-option`,11),dS(1),od()),o&2){let i=s.$implicit;Lg(`value`,i.name),zo(),rb(i.name)}}function an(o,s){if(o&1){let i=Lw();Ys(0,`mat-chip-row`,37),Ug(`removed`,function(){let t=Ip(i).$implicit,e=jw(2);return wp(e.removeDomain(t))}),dS(1),Ys(2,`button`,38)(3,`mat-icon`),dS(4,`cancel`),od()()()}if(o&2){let i=s.$implicit;zo(),rb(i)}}function cn(o,s){o&1&&(Ys(0,`p`,20),dS(1,`At least one login method must stay on.`),od())}function on(o,s){o&1&&(Ys(0,`span`,31),dS(1),od()),o&2&&(zo(),ad(`OK · `,s.has_certificate?`signing cert found`:`no cert!`))}function rn(o,s){o&1&&(Ys(0,`div`,32)(1,`span`),dS(2,`IdP sign-in URL`),od(),Ys(3,`b`,39),dS(4),od()()),o&2&&(zo(4),rb(s.sso_url))}function dn(o,s){o&1&&(Ys(0,`p`,20),dS(1,`The SAML library is not installed on the server (run: sudo codegate setup).`),od())}function ln(o,s){if(o&1){let i=Lw();Ys(0,`p`,40),dS(1,`Enter these in the AWS application (“Manually type your metadata values”):`),od(),Ys(2,`div`,32)(3,`span`),dS(4,`Application ACS URL`),od(),Ys(5,`b`,39),dS(6),Ys(7,`button`,41),Ug(`click`,function(){let t=Ip(i),e=jw(2);return wp(e.copy(t.acs_url))}),Ys(8,`mat-icon`),dS(9,`content_copy`),od()()()(),Ys(10,`div`,32)(11,`span`),dS(12,`Application SAML audience`),od(),Ys(13,`b`,39),dS(14),Ys(15,`button`,41),Ug(`click`,function(){let t=Ip(i),e=jw(2);return wp(e.copy(t.sp_entity_id))}),Ys(16,`mat-icon`),dS(17,`content_copy`),od()()()(),Ys(18,`div`,32)(19,`span`),dS(20,`Attribute: Subject`),od(),Ys(21,`b`,39),dS(22),od()(),Ys(23,`div`,32)(24,`span`),dS(25,`Attribute: email`),od(),Ys(26,`b`,39),dS(27),od()(),Yo(28,dn,2,0,`p`,20)}if(o&2){let i=s,n=jw(2);zo(6),ad(``,i.acs_url,` `),zo(8),ad(``,i.sp_entity_id,` `),zo(8),ad(``,n.emailAttr,` · emailAddress`),zo(5),ad(``,n.emailAttr,` · unspecified`),zo(),Ko(i.saml_installed?-1:28)}}function pn(o,s){o&1&&(Ys(0,`span`,42),dS(1,`DEV MODE`),od())}function sn(o,s){if(o&1){let i=Lw();Ys(0,`div`,5)(1,`h3`),dS(2,`System`),od(),Ys(3,`div`,32)(4,`span`),dS(5,`Version`),od(),Ys(6,`b`),dS(7),Yo(8,pn,2,0,`span`,42),od()(),Ys(9,`div`,32)(10,`span`),dS(11,`Login URL`),od(),Ys(12,`b`,39),dS(13),od()(),Ys(14,`div`,43)(15,`span`,44),dS(16),od(),Ys(17,`span`,44),dS(18),od(),Ys(19,`span`,44),dS(20),od()(),Ys(21,`button`,45),Ug(`click`,function(){Ip(i);let t=jw(2);return wp(t.sync())}),Ys(22,`mat-icon`),dS(23,`sync`),od(),dS(24,` Re-sync nginx routes`),od()()}if(o&2){let i=s;zo(7),ad(`v`,i.version,` `),zo(),Ko(i.mode!==`real`?8:-1),zo(5),ad(``,i.public_url,`/`),zo(2),Qo(i.sso_active?`active`:`none`),zo(),ad(`SSO `,i.sso_active?`on`:`off`),zo(),Qo(i.docker_ok?`active`:`error`),zo(),ad(`Docker `,i.docker_ok?`OK`:`down`),zo(),Qo(i.quota_enabled?`active`:`pending`),zo(),ad(`Quota `,i.quota_enabled?`on`:`monitor only`)}}function mn(o,s){if(o&1){let i=Lw();Ys(0,`div`,4)(1,`div`,5)(2,`h3`),dS(3,`Resource plans`),od(),Ys(4,`table`,6)(5,`tr`)(6,`th`),dS(7,`Name`),od(),Ys(8,`th`),dS(9,`CPU`),od(),Ys(10,`th`),dS(11,`RAM (MB)`),od(),Ys(12,`th`),dS(13,`Disk (GB)`),od(),Ys(14,`th`),dS(15,`Max processes`),od(),jg(16,`th`),od(),Mw(17,nn,15,6,`tr`,null,xw),od(),Ys(19,`button`,7),Ug(`click`,function(){Ip(i);let t=jw();return wp(t.plans.push({name:`new`,cpu:1,mem_mb:2048,disk_gb:10,pids:512}))}),Ys(20,`mat-icon`),dS(21,`add`),od(),dS(22,` Add plan`),od(),Ys(23,`p`,8),dS(24,`Changing a plan here does not change existing users. Edit a user to apply a new plan.`),od()(),Ys(25,`div`,5)(26,`h3`),dS(27,`New users`),od(),Ys(28,`mat-form-field`,9)(29,`mat-label`),dS(30,`Default plan`),od(),Ys(31,`mat-select`,10),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.default_plan,t)||(e.default_plan=t),wp(t)}),Mw(32,en,2,2,`mat-option`,11,tn),od()(),Ys(34,`mat-form-field`,9)(35,`mat-label`),dS(36,`Auto-approve email domains`),od(),Ys(37,`mat-chip-grid`,null,0),Mw(39,an,5,1,`mat-chip-row`,null,Nw),Ys(41,`input`,12),Ug(`matChipInputTokenEnd`,function(t){Ip(i);let e=jw();return wp(e.addDomain(t))}),od()(),Ys(42,`mat-hint`),dS(43,`Empty = every new SSO user waits for admin approval`),od()(),Ys(44,`mat-slide-toggle`,13),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.default_internet,t)||(e.default_internet=t),wp(t)}),dS(45,`Internet access on by default`),od()(),Ys(46,`div`,5)(47,`h3`),dS(48,`Sessions & workspaces`),od(),Ys(49,`div`,14)(50,`mat-form-field`)(51,`mat-label`),dS(52,`Login session (hours)`),od(),Ys(53,`input`,15),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.session_hours,t)||(e.session_hours=t),wp(t)}),od()(),Ys(54,`mat-form-field`)(55,`mat-label`),dS(56,`Session idle logout (min, 0 = off)`),od(),Ys(57,`input`,16),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.idle_session_minutes,t)||(e.idle_session_minutes=t),wp(t)}),od()(),Ys(58,`mat-form-field`)(59,`mat-label`),dS(60,`Idle stop (min, 0 = never)`),od(),Ys(61,`input`,16),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.idle_timeout_minutes,t)||(e.idle_timeout_minutes=t),wp(t)}),od()(),Ys(62,`mat-form-field`)(63,`mat-label`),dS(64,`Disk warning at (%)`),od(),Ys(65,`input`,17),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.disk_warning_pct,t)||(e.disk_warning_pct=t),wp(t)}),od()(),Ys(66,`mat-form-field`)(67,`mat-label`),dS(68,`Keep backups (days)`),od(),Ys(69,`input`,15),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.backup_keep_days,t)||(e.backup_keep_days=t),wp(t)}),od()()()(),Ys(70,`div`,5)(71,`h3`),dS(72,`Login`),od(),Ys(73,`div`,18)(74,`mat-slide-toggle`,10),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.password_login_enabled,t)||(e.password_login_enabled=t),wp(t)}),dS(75,`Password login (username / email + password)`),od(),Ys(76,`mat-slide-toggle`,19),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.sso_enabled,t)||(e.sso_enabled=t),wp(t)}),dS(77,`AWS SSO login (IAM Identity Center)`),od()(),Yo(78,cn,2,0,`p`,20),Ys(79,`div`,21)(80,`mat-form-field`)(81,`mat-label`),dS(82,`Min password length`),od(),Ys(83,`input`,22),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.password_min_length,t)||(e.password_min_length=t),wp(t)}),od()(),Ys(84,`mat-form-field`)(85,`mat-label`),dS(86,`Lock after failed logins`),od(),Ys(87,`input`,23),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.max_failed_logins,t)||(e.max_failed_logins=t),wp(t)}),od()(),Ys(88,`mat-form-field`)(89,`mat-label`),dS(90,`Lock for (minutes)`),od(),Ys(91,`input`,24),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.lockout_minutes,t)||(e.lockout_minutes=t),wp(t)}),od()()(),Ys(92,`h3`,25),dS(93,`AWS SSO (IAM Identity Center)`),od(),Ys(94,`mat-form-field`,9)(95,`mat-label`),dS(96,`IAM Identity Center SAML metadata URL`),od(),Ys(97,`input`,26),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.saml_idp_metadata_url,t)||(e.saml_idp_metadata_url=t),wp(t)}),od(),Ys(98,`mat-hint`),dS(99,`AWS console → IAM Identity Center → Applications → your app → “IAM Identity Center SAML metadata file”`),od()(),Ys(100,`mat-form-field`,27)(101,`mat-label`),dS(102,`Email attribute name`),od(),Ys(103,`input`,28),gI(),cb(`ngModelChange`,function(t){let e=Ip(i);return bS(e.saml_email_attribute,t)||(e.saml_email_attribute=t),wp(t)}),od()(),Ys(104,`div`,29)(105,`button`,30),Ug(`click`,function(){Ip(i);let t=jw();return wp(t.testSso())}),Ys(106,`mat-icon`),dS(107,`fact_check`),od(),dS(108,` Test metadata`),od(),Yo(109,on,2,1,`span`,31),od(),Yo(110,rn,5,1,`div`,32),Yo(111,ln,29,5),Ys(112,`p`,8),dS(113,`Turning a method off ends the sessions that used it. Save to apply.`),od()(),Yo(114,sn,25,12,`div`,5),od()}if(o&2){let i,n,t,e,l=s,u=zw(38),p=jw();zo(17),Aw(p.plans),zo(14),ab(`ngModel`,l.default_plan),yI(),zo(),Aw(p.plans),zo(7),Aw(l.auto_approve_domains),zo(2),Lg(`matChipInputFor`,u),zo(3),ab(`ngModel`,l.default_internet),yI(),zo(9),ab(`ngModel`,l.session_hours),yI(),zo(4),ab(`ngModel`,l.idle_session_minutes),yI(),zo(4),ab(`ngModel`,l.idle_timeout_minutes),yI(),zo(4),ab(`ngModel`,l.disk_warning_pct),yI(),zo(4),ab(`ngModel`,l.backup_keep_days),yI(),zo(5),ab(`ngModel`,l.password_login_enabled),yI(),zo(2),ab(`ngModel`,l.sso_enabled),Lg(`disabled`,!l.saml_idp_metadata_url&&!l.sso_enabled),yI(),zo(2),Ko(!l.password_login_enabled&&!l.sso_enabled?78:-1),zo(5),ab(`ngModel`,l.password_min_length),yI(),zo(4),ab(`ngModel`,l.max_failed_logins),yI(),zo(4),ab(`ngModel`,l.lockout_minutes),yI(),zo(6),ab(`ngModel`,l.saml_idp_metadata_url),yI(),zo(6),ab(`ngModel`,l.saml_email_attribute),yI(),zo(2),Lg(`disabled`,!l.saml_idp_metadata_url||p.testing()),zo(4),Ko((i=p.test())?109:-1,i),zo(),Ko((n=p.test())?110:-1,n),zo(),Ko((t=p.sys())?111:-1,t),zo(3),Ko((e=p.sys())?114:-1,e)}}var Qt=class o{api=m(Qy);notify=m(pt);clip=m(v);s=ke$1(null);sys=ke$1(null);test=ke$1(null);testing=ke$1(!1);emailAttr="${user:email}";plans=[];constructor(){this.api.settings().subscribe(s=>this.set(s)),this.api.system().subscribe(s=>this.sys.set(s))}set(s){this.plans=Object.entries(s.plans).map(([i,n])=>R({name:i},n)),this.s.set(J(R({},s),{auto_approve_domains:[...s.auto_approve_domains]}))}addDomain(s){let i=(s.value||``).trim().toLowerCase().replace(/^@/,``),n=this.s();i&&n&&!n.auto_approve_domains.includes(i)&&n.auto_approve_domains.push(i),s.chipInput.clear()}removeDomain(s){let i=this.s();i&&(i.auto_approve_domains=i.auto_approve_domains.filter(n=>n!==s))}save(){let s=this.s();if(!s)return;let i={};for(let n of this.plans){let t=n.name.trim();if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(t)){this.notify.error(`Invalid plan name "${t}" (letters, digits, _)`);return}i[t]={cpu:+n.cpu,mem_mb:+n.mem_mb,disk_gb:+n.disk_gb,pids:+n.pids}}this.api.saveSettings(J(R({},s),{plans:i})).subscribe(n=>{this.set(n),this.notify.ok(`Settings saved`),this.api.system().subscribe(t=>this.sys.set(t))})}testSso(){let s=this.s();s&&(this.testing.set(!0),this.test.set(null),this.api.ssoTest(s.saml_idp_metadata_url).subscribe({next:i=>{this.testing.set(!1),this.test.set(i),this.notify.ok(`Metadata loaded`)},error:()=>this.testing.set(!1)}))}sync(){this.api.nginxSync().subscribe(s=>this.notify.ok(`nginx: ${s.written.length} routes, ${s.removed.length} removed`))}copy(s){this.clip.copy(s),this.notify.ok(`Copied`)}static ɵfac=function(i){return new(i||o)};static ɵcmp=Te({type:o,selectors:[[`ng-component`]],decls:9,vars:2,consts:[[`grid`,``],[1,`page`],[1,`page-head`],[`mat-flat-button`,``,3,`click`,`disabled`],[1,`grid`,`cols`],[1,`card`],[1,`plans`],[`mat-button`,``,3,`click`],[1,`muted`],[1,`full`],[3,`ngModelChange`,`ngModel`],[3,`value`],[`placeholder`,`e.g. example.com (Enter)`,3,`matChipInputTokenEnd`,`matChipInputFor`],[1,`t`,3,`ngModelChange`,`ngModel`],[1,`form-grid`],[`matInput`,``,`type`,`number`,`min`,`1`,3,`ngModelChange`,`ngModel`],[`matInput`,``,`type`,`number`,`min`,`0`,3,`ngModelChange`,`ngModel`],[`matInput`,``,`type`,`number`,`min`,`50`,`max`,`99`,3,`ngModelChange`,`ngModel`],[1,`toggles`],[3,`ngModelChange`,`ngModel`,`disabled`],[1,`err`],[1,`form-grid`,2,`margin-top`,`14px`],[`matInput`,``,`type`,`number`,`min`,`10`,`max`,`128`,3,`ngModelChange`,`ngModel`],[`matInput`,``,`type`,`number`,`min`,`3`,`max`,`50`,3,`ngModelChange`,`ngModel`],[`matInput`,``,`type`,`number`,`min`,`1`,`max`,`1440`,3,`ngModelChange`,`ngModel`],[2,`margin-top`,`8px`],[`matInput`,``,`placeholder`,`https://portal.sso.<region>.amazonaws.com/saml/metadata/…`,3,`ngModelChange`,`ngModel`],[1,`full`,2,`margin-top`,`10px`],[`matInput`,``,3,`ngModelChange`,`ngModel`],[1,`row`],[`mat-stroked-button`,``,3,`click`,`disabled`],[1,`chip`,`active`],[1,`kv`],[`type`,`number`,`step`,`0.25`,3,`ngModelChange`,`ngModel`],[`type`,`number`,`step`,`256`,3,`ngModelChange`,`ngModel`],[`type`,`number`,3,`ngModelChange`,`ngModel`],[`mat-icon-button`,``,3,`click`,`disabled`],[3,`removed`],[`matChipRemove`,``],[1,`mono`],[1,`muted`,2,`margin-top`,`14px`],[`mat-icon-button`,``,`matTooltip`,`Copy`,3,`click`],[1,`chip`,`pending`],[1,`row`,2,`margin`,`10px 0`],[1,`chip`],[`mat-stroked-button`,``,3,`click`]],template:function(i,n){if(i&1&&(Ys(0,`div`,1)(1,`div`,2)(2,`h1`),dS(3,`Settings`),od(),Ys(4,`button`,3),Ug(`click`,function(){return n.save()}),Ys(5,`mat-icon`),dS(6,`save`),od(),dS(7,` Save settings`),od()(),Yo(8,mn,115,22,`div`,4),od()),i&2){let t;zo(4),Lg(`disabled`,!n.s()),zo(4),Ko((t=n.s())?8:-1,t)}},dependencies:[Fn,He,an$1,In,$t,Ut,on$1,Xt,Qt$2,Ve,Be$1,Pe,Be,Xr,Qr,Ce,ke,ie,cW,aW,QT,s8,i8,qt,Gt,jt,Wt,Mi,Vt$2,_t],styles:[`.cols[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(420px,1fr))}h3[_ngcontent-%COMP%]{margin:0 0 12px;font-size:15px}.plans[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13px}.plans[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;color:#6b7280;font-weight:500;padding:4px}.plans[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:6px;border:1px solid #d1d5db;border-radius:6px}.plans[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:3px}.t[_ngcontent-%COMP%]{margin-top:8px;display:block}.toggles[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.err[_ngcontent-%COMP%]{color:#dc2626;font-size:13px}.kv[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;font-size:13px}.kv[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#6b7280}.kv[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-weight:500;text-align:right;word-break:break-all}`]})};export{Qt as SettingsPage};
|