@progress/kendo-angular-scheduler
Version:
Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.
53 lines (52 loc) • 2.49 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Component, Input, HostBinding, Renderer2, ElementRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* @hidden
*/
export class LoadingComponent {
element;
renderer;
hostClasses = true;
loading;
get display() {
return this.loading || this.force ? 'block' : 'none';
}
force;
constructor(element, renderer) {
this.element = element;
this.renderer = renderer;
}
toggle(value) {
this.force = value;
this.renderer.setStyle(this.element.nativeElement, 'display', this.display);
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoadingComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: LoadingComponent, isStandalone: true, selector: "[kendoSchedulerLoading]", inputs: { loading: "loading" }, host: { properties: { "class.k-loading-mask": "this.hostClasses", "style.display": "this.display" } }, ngImport: i0, template: `
<div class="k-loading-image"></div>
<div class="k-loading-color"></div>
`, isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoadingComponent, decorators: [{
type: Component,
args: [{
// eslint-disable-next-line @angular-eslint/component-selector
selector: '[kendoSchedulerLoading]',
template: `
<div class="k-loading-image"></div>
<div class="k-loading-color"></div>
`,
standalone: true
}]
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { hostClasses: [{
type: HostBinding,
args: ['class.k-loading-mask']
}], loading: [{
type: Input
}], display: [{
type: HostBinding,
args: ['style.display']
}] } });