novo-elements
Version:
Bullhorn's NOVO Element Repository for Angular 2
157 lines (154 loc) • 11.9 kB
text/typescript
/**
* @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 '../../../list/List.ngfactory';
import * as i2 from '../../../../../../src/elements/list/List';
import * as i3 from '@angular/common';
import * as i4 from '../../../loading/Loading.ngfactory';
import * as i5 from '../../../../../../src/elements/loading/Loading';
import * as i6 from '../../../../../../src/elements/picker/extras/picker-results/PickerResults';
import * as i7 from '../../../../../../src/services/novo-label-service';
const styles_PickerResults:any[] = ([] as any[]);
export const RenderType_PickerResults:i0.RendererType2 = i0.ɵcrt({encapsulation:2,
styles:styles_PickerResults,data:{}});
function View_PickerResults_2(_l:any):i0.ɵViewDefinition {
return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,(null as any),(null as any),8,'novo-list-item',
([] as any[]),[[2,'active',(null as any)],[2,'disabled',(null as any)]],[[(null as any),
'click'],[(null as any),'mouseenter']],(_v,en,$event) => {
var ad:boolean = true;
var _co:any = _v.component;
if (('click' === en)) {
const pd_0:any = ((<any>_co.selectMatch($event)) !== false);
ad = (pd_0 && ad);
}
if (('mouseenter' === en)) {
const pd_1:any = ((<any>_co.selectActive(_v.context.$implicit)) !== false);
ad = (pd_1 && ad);
}
return ad;
},i1.View_NovoListItemElement_0,i1.RenderType_NovoListItemElement)),i0.ɵdid(114688,
(null as any),0,i2.NovoListItemElement,[i0.ElementRef],(null as any),(null as any)),
(_l()(),i0.ɵted((null as any),['\n '])),(_l()(),i0.ɵeld(0,(null as any),
1,4,'item-content',([] as any[]),[[2,'vertical-list',(null as any)],[2,'horizontal-list',
(null as any)]],(null as any),(null as any),i1.View_NovoItemContentElement_0,
i1.RenderType_NovoItemContentElement)),i0.ɵdid(49152,(null as any),0,i2.NovoItemContentElement,
([] as any[]),(null as any),(null as any)),(_l()(),i0.ɵted(0,['\n '])),
(_l()(),i0.ɵeld(0,(null as any),0,0,'span',([] as any[]),[[8,'innerHTML',1]],
(null as any),(null as any),(null as any),(null as any))),(_l()(),i0.ɵted(0,
['\n '])),(_l()(),i0.ɵted((null as any),['\n ']))],
(_ck,_v) => {
_ck(_v,1,0);
},(_ck,_v) => {
var _co:any = _v.component;
const currVal_0:any = (_v.context.$implicit === _co.activeMatch);
const currVal_1:any = _co.preselected(_v.context.$implicit);
_ck(_v,0,0,currVal_0,currVal_1);
const currVal_2:any = (i0.ɵnov(_v,4).direction === 'vertical');
const currVal_3:any = (i0.ɵnov(_v,4).direction === 'horizontal');
_ck(_v,3,0,currVal_2,currVal_3);
const currVal_4:any = _co.highlight(_v.context.$implicit.label,_co.term);
_ck(_v,6,0,currVal_4);
});
}
function View_PickerResults_1(_l:any):i0.ɵViewDefinition {
return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,(null as any),(null as any),5,'novo-list',[['direction',
'vertical']],[[2,'vertical-list',(null as any)],[2,'horizontal-list',(null as any)],
[1,'theme',0]],(null as any),(null as any),i1.View_NovoListElement_0,i1.RenderType_NovoListElement)),
i0.ɵdid(49152,(null as any),0,i2.NovoListElement,[i0.ElementRef],{direction:[0,
'direction']},(null as any)),(_l()(),i0.ɵted(0,['\n '])),(_l()(),
i0.ɵand(16777216,(null as any),0,1,(null as any),View_PickerResults_2)),
i0.ɵdid(802816,(null as any),0,i3.NgForOf,[i0.ViewContainerRef,i0.TemplateRef,
i0.IterableDiffers],{ngForOf:[0,'ngForOf']},(null as any)),(_l()(),i0.ɵted(0,
['\n ']))],(_ck,_v) => {
var _co:any = _v.component;
const currVal_3:any = 'vertical';
_ck(_v,1,0,currVal_3);
const currVal_4:any = _co.matches;
_ck(_v,4,0,currVal_4);
},(_ck,_v) => {
const currVal_0:any = (i0.ɵnov(_v,1).direction === 'vertical');
const currVal_1:any = (i0.ɵnov(_v,1).direction === 'horizontal');
const currVal_2:any = i0.ɵnov(_v,1).theme;
_ck(_v,0,0,currVal_0,currVal_1,currVal_2);
});
}
function View_PickerResults_3(_l:any):i0.ɵViewDefinition {
return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,(null as any),(null as any),4,'div',[['class',
'picker-loader']],(null as any),(null as any),(null as any),(null as any),(null as any))),
(_l()(),i0.ɵted((null as any),['\n '])),(_l()(),i0.ɵeld(0,(null as any),
(null as any),1,'novo-loading',[['theme','line']],[[8,'className',0]],(null as any),
(null as any),i4.View_NovoLoadingElement_0,i4.RenderType_NovoLoadingElement)),
i0.ɵdid(49152,(null as any),0,i5.NovoLoadingElement,([] as any[]),{theme:[0,
'theme']},(null as any)),(_l()(),i0.ɵted((null as any),['\n ']))],
(_ck,_v) => {
const currVal_1:any = 'line';
_ck(_v,3,0,currVal_1);
},(_ck,_v) => {
const currVal_0:any = (i0.ɵnov(_v,3).theme || '');
_ck(_v,2,0,currVal_0);
});
}
function View_PickerResults_4(_l:any):i0.ɵViewDefinition {
return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,(null as any),(null as any),1,'p',[['class',
'picker-error']],(null as any),(null as any),(null as any),(null as any),(null as any))),
(_l()(),i0.ɵted((null as any),['','']))],(null as any),(_ck,_v) => {
var _co:any = _v.component;
const currVal_0:any = _co.labels.pickerError;
_ck(_v,1,0,currVal_0);
});
}
function View_PickerResults_5(_l:any):i0.ɵViewDefinition {
return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,(null as any),(null as any),1,'p',[['class',
'picker-null-results']],(null as any),(null as any),(null as any),(null as any),
(null as any))),(_l()(),i0.ɵted((null as any),['','']))],(null as any),(_ck,
_v) => {
var _co:any = _v.component;
const currVal_0:any = _co.labels.pickerEmpty;
_ck(_v,1,0,currVal_0);
});
}
export function View_PickerResults_0(_l:any):i0.ɵViewDefinition {
return i0.ɵvid(0,[(_l()(),i0.ɵted((null as any),['\n '])),(_l()(),i0.ɵand(16777216,
(null as any),(null as any),1,(null as any),View_PickerResults_1)),i0.ɵdid(16384,
(null as any),0,i3.NgIf,[i0.ViewContainerRef,i0.TemplateRef],{ngIf:[0,'ngIf']},
(null as any)),(_l()(),i0.ɵted((null as any),['\n '])),(_l()(),i0.ɵand(16777216,
(null as any),(null as any),1,(null as any),View_PickerResults_3)),i0.ɵdid(16384,
(null as any),0,i3.NgIf,[i0.ViewContainerRef,i0.TemplateRef],{ngIf:[0,'ngIf']},
(null as any)),(_l()(),i0.ɵted((null as any),['\n '])),(_l()(),i0.ɵand(16777216,
(null as any),(null as any),1,(null as any),View_PickerResults_4)),i0.ɵdid(16384,
(null as any),0,i3.NgIf,[i0.ViewContainerRef,i0.TemplateRef],{ngIf:[0,'ngIf']},
(null as any)),(_l()(),i0.ɵted((null as any),['\n '])),(_l()(),i0.ɵand(16777216,
(null as any),(null as any),1,(null as any),View_PickerResults_5)),i0.ɵdid(16384,
(null as any),0,i3.NgIf,[i0.ViewContainerRef,i0.TemplateRef],{ngIf:[0,'ngIf']},
(null as any)),(_l()(),i0.ɵted((null as any),['\n ']))],(_ck,_v) => {
var _co:i6.PickerResults = _v.component;
const currVal_0:any = (_co.matches.length > 0);
_ck(_v,2,0,currVal_0);
const currVal_1:any = (_co.isLoading && (_co.matches.length === 0));
_ck(_v,5,0,currVal_1);
const currVal_2:any = _co.hasError;
_ck(_v,8,0,currVal_2);
const currVal_3:boolean = ((!_co.isLoading && !_co.matches.length) && !_co.hasError);
_ck(_v,11,0,currVal_3);
},(null as any));
}
export function View_PickerResults_Host_0(_l:any):i0.ɵViewDefinition {
return i0.ɵvid(0,[(_l()(),i0.ɵeld(0,(null as any),(null as any),1,'picker-results',
[['class','active']],(null as any),[[(null as any),'scroll']],(_v,en,$event) => {
var ad:boolean = true;
if (('scroll' === en)) {
const pd_0:any = ((<any>i0.ɵnov(_v,1).onScrollDown($event.target)) !== false);
ad = (pd_0 && ad);
}
return ad;
},View_PickerResults_0,RenderType_PickerResults)),i0.ɵdid(49152,(null as any),
0,i6.PickerResults,[i0.ElementRef,i7.NovoLabelService],(null as any),(null as any))],
(null as any),(null as any));
}
export const PickerResultsNgFactory:i0.ComponentFactory<i6.PickerResults> = i0.ɵccf('picker-results',
i6.PickerResults,View_PickerResults_Host_0,{matches:'matches'},{},([] as any[]));
//# sourceMappingURL=data:application/json;base64,eyJmaWxlIjoiL1VzZXJzL2pnb2RpL2JoL25vdm8tZWxlbWVudHMvc3JjL2VsZW1lbnRzL3BpY2tlci9leHRyYXMvcGlja2VyLXJlc3VsdHMvUGlja2VyUmVzdWx0cy5uZ2ZhY3RvcnkudHMiLCJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJuZzovLy9Vc2Vycy9qZ29kaS9iaC9ub3ZvLWVsZW1lbnRzL3NyYy9lbGVtZW50cy9waWNrZXIvZXh0cmFzL3BpY2tlci1yZXN1bHRzL1BpY2tlclJlc3VsdHMudHMiLCJuZzovLy9Vc2Vycy9qZ29kaS9iaC9ub3ZvLWVsZW1lbnRzL3NyYy9lbGVtZW50cy9waWNrZXIvZXh0cmFzL3BpY2tlci1yZXN1bHRzL1BpY2tlclJlc3VsdHMudHMuUGlja2VyUmVzdWx0cy5odG1sIiwibmc6Ly8vVXNlcnMvamdvZGkvYmgvbm92by1lbGVtZW50cy9zcmMvZWxlbWVudHMvcGlja2VyL2V4dHJhcy9waWNrZXItcmVzdWx0cy9QaWNrZXJSZXN1bHRzLnRzLlBpY2tlclJlc3VsdHNfSG9zdC5odG1sIl0sInNvdXJjZXNDb250ZW50IjpbIiAiLCJcbiAgICAgICAgPG5vdm8tbGlzdCAqbmdJZj1cIm1hdGNoZXMubGVuZ3RoID4gMFwiIGRpcmVjdGlvbj1cInZlcnRpY2FsXCI+XG4gICAgICAgICAgICA8bm92by1saXN0LWl0ZW1cbiAgICAgICAgICAgICAgICAqbmdGb3I9XCJsZXQgbWF0Y2ggb2YgbWF0Y2hlc1wiXG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cInNlbGVjdE1hdGNoKCRldmVudClcIlxuICAgICAgICAgICAgICAgIFtj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