/** * @fileoverview This file is generated by the Angular template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride} */ /* tslint:disable */ import * as i0 from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from './button.component'; const styles_ButtonComponent:any[] = ['@keyframes spinner { to { transform: rotate(360deg); } } [_nghost-%COMP%] { border: 0; padding: 0; box-shadow: none; outline: none !important; background: transparent; border-radius: 0; color: inherit; font-family: inherit; font-size: inherit; position: relative; display: inline-block; background-clip: border-box; border: 1px solid transparent; border-radius: 3px; line-height: 1.25; padding: 8px 16px; cursor: pointer; vertical-align: middle; font-size: 14px; user-select: none; transition: all .1s linear; font-weight: 400; } [_nghost-%COMP%] .material-icons[_ngcontent-%COMP%] { font-size: 16px; vertical-align: middle; } [_nghost-%COMP%] .adm-button-spinner[_ngcontent-%COMP%] { display: inline-block; vertical-align: middle; position: relative; width: 18px; height: 18px; margin-top: -2px; margin-left: -2px; } [_nghost-%COMP%] .adm-button-spinner[_ngcontent-%COMP%]:before { content: \'\'; box-sizing: border-box; position: absolute; top: 50%; left: 50%; height: 100%; width: 100%; margin-top: -9px; margin-left: -9px; border-radius: 50%; border: 1px solid #ccc; border-top-color: #07d; animation: spinner .6s linear infinite; } [_nghost-%COMP%]:active { box-shadow: 0 0 3px #0070D2; } .is-neutral[_nghost-%COMP%] { color: #333; background: #fff; border-color: #cfd3d7; } .is-small[_nghost-%COMP%] { padding: 4px 8px; font-size: 12px; line-height: 1.4; border-radius: 1.5px; } .is-small[_nghost-%COMP%] .material-icons[_ngcontent-%COMP%] { font-size: 13px; } .is-large[_nghost-%COMP%] { padding: 10px 20.8px; font-size: 16px; line-height: 1.4; } .is-large[_nghost-%COMP%] .material-icons[_ngcontent-%COMP%] { font-size: 18px; } .is-disabled[_nghost-%COMP%] { cursor: not-allowed; opacity: .7; pointer-events: none; } .is-primary[_nghost-%COMP%] { background: #00beef; border-color: #00aad6; color: #fff; } .is-primary[_nghost-%COMP%]:hover { background: #00b6e5; } .is-success[_nghost-%COMP%] { background: #46bb00; border-color: #3ca200; color: #fff; } .is-success[_nghost-%COMP%]:hover { background: #42b100; } .is-danger[_nghost-%COMP%] { background: #d54c48; border-color: #d03833; color: #fff; } .is-danger[_nghost-%COMP%]:hover { background: #d34440; } .is-warning[_nghost-%COMP%] { background: #ffdd1c; border-color: #ffd903; color: #444; } .is-warning[_nghost-%COMP%]:hover { background: #ffdb12; }']; export const RenderType_ButtonComponent:i0.RendererType2 = i0.ɵcrt({encapsulation:0, styles:styles_ButtonComponent,data:{}}); function View_ButtonComponent_1(_l:any):i0.ɵViewDefinition { return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,0,(null as any),(null as any),0,'span',[['class', 'adm-button-spinner']],(null as any),(null as any),(null as any),(null as any), (null as any)))],(null as any),(null as any)); } function View_ButtonComponent_2(_l:any):i0.ɵViewDefinition { return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,0,(null as any),(null as any),1,'i',[['class', 'material-icons']],(null as any),(null as any),(null as any),(null as any),(null as any))), (_l()(),i0.ɵted(1,(null as any),['','']))],(null as any),(_ck,_v) => { var _co:any = _v.component; const currVal_0:any = _co.icon; _ck(_v,1,0,currVal_0); }); } function View_ButtonComponent_3(_l:any):i0.ɵViewDefinition { return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,0,(null as any),(null as any),1,'i',[['class', 'material-icons']],(null as any),(null as any),(null as any),(null as any),(null as any))), (_l()(),i0.ɵted(1,(null as any),['','']))],(null as any),(_ck,_v) => { var _co:any = _v.component; const currVal_0:any = _co.icon; _ck(_v,1,0,currVal_0); }); } export function View_ButtonComponent_0(_l:any):i0.ɵViewDefinition { return i0.ɵvid(0,[(_l()(),i0.ɵted(-1,(null as any),['\n '])),(_l()(),i0.ɵand(16777216, (null as any),(null as any),1,(null as any),View_ButtonComponent_1)),i0.ɵdid(2, 16384,(null as any),0,i1.NgIf,[i0.ViewContainerRef,i0.TemplateRef],{ngIf:[0, 'ngIf']},(null as any)),(_l()(),i0.ɵted(-1,(null as any),['\n '])), (_l()(),i0.ɵand(16777216,(null as any),(null as any),1,(null as any),View_ButtonComponent_2)), i0.ɵdid(5,16384,(null as any),0,i1.NgIf,[i0.ViewContainerRef,i0.TemplateRef], {ngIf:[0,'ngIf']},(null as any)),(_l()(),i0.ɵted(-1,(null as any),['\n '])), i0.ɵncd((null as any),0),(_l()(),i0.ɵted(-1,(null as any),['\n '])),(_l()(), i0.ɵand(16777216,(null as any),(null as any),1,(null as any),View_ButtonComponent_3)), i0.ɵdid(10,16384,(null as any),0,i1.NgIf,[i0.ViewContainerRef,i0.TemplateRef], {ngIf:[0,'ngIf']},(null as any)),(_l()(),i0.ɵted(-1,(null as any),['\n ']))], (_ck,_v) => { var _co:i2.ButtonComponent = _v.component; const currVal_0:any = (_co.loading && !_co.disabled); _ck(_v,2,0,currVal_0); const currVal_1:any = ((_co.icon && (_co.iconPosition === 'left')) && !_co.loading); _ck(_v,5,0,currVal_1); const currVal_2:any = ((_co.icon && (_co.iconPosition === 'right')) && !_co.loading); _ck(_v,10,0,currVal_2); },(null as any)); } export function View_ButtonComponent_Host_0(_l:any):i0.ɵViewDefinition { return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,0,(null as any),(null as any),1,'a',[['adm-button', '']],[[2,'is-primary',(null as any)],[2,'is-neutral',(null as any)],[2,'is-success', (null as any)],[2,'is-danger',(null as any)],[2,'is-warning',(null as any)], [2,'is-small',(null as any)],[2,'is-large',(null as any)],[2,'is-disabled',(null as any)]], (null as any),(null as any),View_ButtonComponent_0,RenderType_ButtonComponent)), i0.ɵdid(1,49152,(null as any),0,i2.ButtonComponent,([] as any[]),(null as any), (null as any))],(null as any),(_ck,_v) => { const currVal_0:any = (i0.ɵnov(_v,1).buttonType === 'primary'); const currVal_1:any = (i0.ɵnov(_v,1).buttonType === 'neutral'); const currVal_2:any = (i0.ɵnov(_v,1).buttonType === 'success'); const currVal_3:any = (i0.ɵnov(_v,1).buttonType === 'danger'); const currVal_4:any = (i0.ɵnov(_v,1).buttonType === 'warning'); const currVal_5:any = (i0.ɵnov(_v,1).size === 'small'); const currVal_6:any = (i0.ɵnov(_v,1).size === 'large'); const currVal_7:boolean = (!!i0.ɵnov(_v,1).disabled === true); _ck(_v,0,0,currVal_0,currVal_1,currVal_2,currVal_3,currVal_4,currVal_5,currVal_6, currVal_7); }); } export const ButtonComponentNgFactory:i0.ComponentFactory = i0.ɵccf('a[adm-button], button[adm-button], div[adm-button]', i2.ButtonComponent,View_ButtonComponent_Host_0,{icon:'icon',iconPosition:'iconPosition', buttonType:'buttonType',size:'size',disabled:'disabled',loading:'loading'}, {},['*']); //# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL19kZXZlbG9wL2FkbWFuaWMtdWkvLnRtcC9tb2R1bGVzL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQubmdmYWN0b3J5LnRzIiwidmVyc2lvbiI6Mywic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibmc6Ly8vX2RldmVsb3AvYWRtYW5pYy11aS8udG1wL21vZHVsZXMvY29tcG9uZW50cy9idXR0b24vYnV0dG9uLmNvbXBvbmVudC50cyIsIm5nOi8vL19kZXZlbG9wL2FkbWFuaWMtdWkvLnRtcC9tb2R1bGVzL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi5jb21wb25lbnQudHMuQnV0dG9uQ29tcG9uZW50Lmh0bWwiLCJuZzovLy9fZGV2ZWxvcC9hZG1hbmljLXVpLy50bXAvbW9kdWxlcy9jb21wb25lbnRzL2J1dHRvbi9idXR0b24uY29tcG9uZW50LnRzLkJ1dHRvbkNvbXBvbmVudF9Ib3N0Lmh0bWwiXSwic291cmNlc0NvbnRlbnQiOlsiICIsIlxuICAgICAgICA8c3BhbiBjbGFzcz1cImFkbS1idXR0b24tc3Bpbm5lclwiICpuZ0lmPVwibG9hZGluZyAmJiAhZGlzYWJsZWRcIj48L3NwYW4+XG4gICAgICAgIDxpICpuZ0lmPVwiaWN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