@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
43 lines (42 loc) • 2.15 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, HostBinding } from '@angular/core';
import { LocalizationService } from '@progress/kendo-angular-l10n';
import * as i0 from "@angular/core";
import * as i1 from "@progress/kendo-angular-l10n";
/**
* @hidden
*/
export class LoadingComponent {
localization;
hostClass = true;
get loadingText() {
return this.localization.get('loading');
}
constructor(localization) {
this.localization = localization;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoadingComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: LoadingComponent, isStandalone: true, selector: "[kendoTreeListLoading]", host: { properties: { "class.k-loading-mask": "this.hostClass" } }, ngImport: i0, template: `
<span class="k-loading-text">{{ loadingText }}</span>
<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: [{
selector: '[kendoTreeListLoading]',
template: `
<span class="k-loading-text">{{ loadingText }}</span>
<div class="k-loading-image"></div>
<div class="k-loading-color"></div>
`,
standalone: true
}]
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { hostClass: [{
type: HostBinding,
args: ['class.k-loading-mask']
}] } });