Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
this.actions
.pipe(ofActionSuccessful(StartLoader, StopLoader), filter(this.filter), takeUntilDestroy(this))
.subscribe((/**
* @param {?} action
* @return {?}
*/
action => {
if (action instanceof StartLoader)
this.startLoading();
else
this.stopLoading();
}));
this.router.events
.pipe(filter((/**
* @param {?} event
* @return {?}
*/
event => event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError)), takeUntilDestroy(this))function () {
var _this = this;
fromEvent(this.el.nativeElement, 'input')
.pipe(debounceTime(this.debounce), takeUntilDestroy(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
function (event) {
_this.debounceEvent.emit(event);
}));
};
/**ngOnInit(): void {
fromEvent(this.el.nativeElement, 'input')
.pipe(
debounceTime(this.debounce),
takeUntilDestroy(this)
)
.subscribe((event: Event) => {
this.debounceEvent.emit(event);
});
}
}function () {
var _this = this;
fromEvent(this.el.nativeElement, 'input')
.pipe(debounceTime(this.debounce), takeUntilDestroy$1(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
function (event) {
_this.debounceEvent.emit(event);
}));
};
InputEventDebounceDirective.decorators = [function () {
var _this = this;
fromEvent(this.el.nativeElement, 'click')
.pipe(takeUntilDestroy$1(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
function (event) {
event.stopPropagation();
_this.stopPropEvent.emit(event);
}));
};
ClickEventStopPropagationDirective.decorators = [function () {
var _this = this;
this.actions
.pipe(ofActionSuccessful(StartLoader, StopLoader), filter(this.filter), takeUntilDestroy(this))
.subscribe((/**
* @param {?} action
* @return {?}
*/
function (action) {
if (action instanceof StartLoader)
_this.startLoading();
else
_this.stopLoading();
}));
this.router.events
.pipe(filter((/**
* @param {?} event
* @return {?}
*/
function (event) {ofActionSuccessful(StartLoader, StopLoader),
filter(this.filter),
takeUntilDestroy(this),
)
.subscribe(action => {
if (action instanceof StartLoader) this.startLoading();
else this.stopLoading();
});
this.router.events
.pipe(
filter(
event =>
event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError,
),
takeUntilDestroy(this),
)
.subscribe(event => {
if (event instanceof NavigationStart) this.startLoading();
else this.stopLoading();
});
}function LoaderBarComponent(actions, router, cdRef) {
var _this = this;
this.actions = actions;
this.router = router;
this.cdRef = cdRef;
this.containerClass = 'abp-loader-bar';
this.color = '#77b6ff';
this.isLoading = false;
this.progressLevel = 0;
this.filter = (/**
* @param {?} action
* @return {?}
*/
function (action) { return action.payload.url.indexOf('openid-configuration') < 0; });
actions
.pipe(ofActionSuccessful(StartLoader, StopLoader), filter(this.filter), takeUntilDestroy(this))
.subscribe((/**
* @param {?} action
* @return {?}
*/
function (action) {
if (action instanceof StartLoader)
_this.startLoading();
else
_this.stopLoading();
}));
router.events
.pipe(filter((/**
* @param {?} event
* @return {?}
*/
function (event) {.subscribe((/**
* @param {?} action
* @return {?}
*/
action => {
if (action instanceof StartLoader)
this.startLoading();
else
this.stopLoading();
}));
this.router.events
.pipe(filter((/**
* @param {?} event
* @return {?}
*/
event => event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError)), takeUntilDestroy(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
event => {
if (event instanceof NavigationStart)
this.startLoading();
else
this.stopLoading();
}));
}
/**.subscribe((/**
* @param {?} action
* @return {?}
*/
action => {
if (action instanceof StartLoader)
this.startLoading();
else
this.stopLoading();
}));
router.events
.pipe(filter((/**
* @param {?} event
* @return {?}
*/
event => event instanceof NavigationStart || event instanceof NavigationEnd || event instanceof NavigationError)), takeUntilDestroy(this))
.subscribe((/**
* @param {?} event
* @return {?}
*/
event => {
if (event instanceof NavigationStart)
this.startLoading();
else
this.stopLoading();
}));
}
/**