@progress/kendo-angular-indicators 24.2.2 → 25.0.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/progress-kendo-angular-indicators.mjs +147 -96
- package/index.d.ts +429 -19
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
- package/badge/badge-container.component.d.ts +0 -21
- package/badge/badge.component.d.ts +0 -89
- package/badge/models/align.d.ts +0 -27
- package/badge/models/fill.d.ts +0 -14
- package/badge/models/position.d.ts +0 -15
- package/badge/models/rounded.d.ts +0 -17
- package/badge/models/size.d.ts +0 -15
- package/badge/models/theme-color.d.ts +0 -19
- package/badge.module.d.ts +0 -16
- package/directives.d.ts +0 -28
- package/indicators.module.d.ts +0 -36
- package/loader/loader.component.d.ts +0 -56
- package/loader/models/size.d.ts +0 -15
- package/loader/models/theme-color.d.ts +0 -16
- package/loader/models/type.d.ts +0 -14
- package/loader.module.d.ts +0 -15
- package/package-metadata.d.ts +0 -9
- package/skeleton/constants.d.ts +0 -27
- package/skeleton/models.d.ts +0 -30
- package/skeleton/skeleton.component.d.ts +0 -55
- package/skeleton.module.d.ts +0 -15
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { HostBinding, Component, Input, isDevMode,
|
|
6
|
+
import { HostBinding, ChangeDetectionStrategy, Component, signal, computed, effect, Input, isDevMode, NgModule } from '@angular/core';
|
|
7
7
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -43,16 +43,16 @@ class BadgeContainerComponent {
|
|
|
43
43
|
this.dynamicRTLSubscription.unsubscribe();
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BadgeContainerComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: BadgeContainerComponent, isStandalone: true, selector: "kendo-badge-container", host: { properties: { "class.k-badge-container": "this.hostClass", "attr.dir": "this.direction" } }, providers: [
|
|
48
48
|
LocalizationService,
|
|
49
49
|
{
|
|
50
50
|
provide: L10N_PREFIX,
|
|
51
51
|
useValue: 'kendo.badge.component'
|
|
52
52
|
}
|
|
53
|
-
], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true });
|
|
53
|
+
], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BadgeContainerComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{
|
|
58
58
|
selector: 'kendo-badge-container',
|
|
@@ -64,7 +64,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
66
|
template: `<ng-content></ng-content>`,
|
|
67
|
-
standalone: true
|
|
67
|
+
standalone: true,
|
|
68
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
68
69
|
}]
|
|
69
70
|
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { hostClass: [{
|
|
70
71
|
type: HostBinding,
|
|
@@ -82,8 +83,8 @@ const packageMetadata = {
|
|
|
82
83
|
productName: 'Kendo UI for Angular',
|
|
83
84
|
productCode: 'KENDOUIANGULAR',
|
|
84
85
|
productCodes: ['KENDOUIANGULAR'],
|
|
85
|
-
publishDate:
|
|
86
|
-
version: '
|
|
86
|
+
publishDate: 1783688539,
|
|
87
|
+
version: '25.0.0-develop.2',
|
|
87
88
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
88
89
|
};
|
|
89
90
|
|
|
@@ -127,44 +128,101 @@ class BadgeComponent {
|
|
|
127
128
|
*
|
|
128
129
|
* @default "{ vertical: 'top', horizontal: 'end' }"
|
|
129
130
|
*/
|
|
130
|
-
get align() {
|
|
131
|
-
return this.badgeAlign;
|
|
132
|
-
}
|
|
133
131
|
set align(align) {
|
|
134
|
-
this.
|
|
132
|
+
this._align.set({ ...this._align(), ...align });
|
|
133
|
+
}
|
|
134
|
+
get align() {
|
|
135
|
+
return this._align();
|
|
135
136
|
}
|
|
136
137
|
/**
|
|
137
138
|
* Specifies the size of the Badge ([see example](https://www.telerik.com/kendo-angular-ui/components/indicators/badge/appearance#size)). The default value is set by the Kendo theme.
|
|
138
139
|
*/
|
|
139
|
-
size
|
|
140
|
+
set size(value) {
|
|
141
|
+
this._size.set(value);
|
|
142
|
+
}
|
|
143
|
+
get size() {
|
|
144
|
+
return this._size();
|
|
145
|
+
}
|
|
140
146
|
/**
|
|
141
147
|
* Specifies the appearance fill style of the Badge ([see example](https://www.telerik.com/kendo-angular-ui/components/indicators/badge/appearance#fill)). The default value is set by the Kendo theme.
|
|
142
148
|
*/
|
|
143
|
-
fill
|
|
149
|
+
set fill(value) {
|
|
150
|
+
this._fill.set(value);
|
|
151
|
+
}
|
|
152
|
+
get fill() {
|
|
153
|
+
return this._fill();
|
|
154
|
+
}
|
|
144
155
|
/**
|
|
145
156
|
* Specifies the theme color of the Badge.
|
|
146
157
|
* The theme color applies as background and border color, while also amending the text color accordingly
|
|
147
158
|
* ([see example](https://www.telerik.com/kendo-angular-ui/components/indicators/badge/appearance#theme-color)). The default value is set by the Kendo theme.
|
|
148
159
|
*/
|
|
149
|
-
themeColor
|
|
160
|
+
set themeColor(value) {
|
|
161
|
+
this._themeColor.set(value);
|
|
162
|
+
}
|
|
163
|
+
get themeColor() {
|
|
164
|
+
return this._themeColor();
|
|
165
|
+
}
|
|
150
166
|
/**
|
|
151
167
|
* Specifies the roundness of the Badge ([see example](https://www.telerik.com/kendo-angular-ui/components/indicators/badge/appearance#rounded)). The default value is set by the Kendo theme.
|
|
152
168
|
*/
|
|
153
|
-
rounded
|
|
169
|
+
set rounded(value) {
|
|
170
|
+
this._rounded.set(value);
|
|
171
|
+
}
|
|
172
|
+
get rounded() {
|
|
173
|
+
return this._rounded();
|
|
174
|
+
}
|
|
154
175
|
/**
|
|
155
176
|
* Specifies the position of the Badge relative to the edge of the parent container element ([see example](https://www.telerik.com/kendo-angular-ui/components/indicators/badge/align-and-position#position)).
|
|
156
177
|
*
|
|
157
178
|
* @default edge
|
|
158
179
|
*/
|
|
159
|
-
position
|
|
180
|
+
set position(value) {
|
|
181
|
+
this._position.set(value);
|
|
182
|
+
}
|
|
183
|
+
get position() {
|
|
184
|
+
return this._position();
|
|
185
|
+
}
|
|
160
186
|
/**
|
|
161
187
|
* Specifies whether to render additional `cutout` border around the Badge ([see example](https://www.telerik.com/kendo-angular-ui/components/indicators/badge/appearance#cutout-border)).
|
|
162
188
|
*
|
|
163
189
|
* @default false
|
|
164
190
|
*/
|
|
165
|
-
cutoutBorder
|
|
191
|
+
set cutoutBorder(value) {
|
|
192
|
+
this._cutoutBorder.set(value);
|
|
193
|
+
}
|
|
194
|
+
get cutoutBorder() {
|
|
195
|
+
return this._cutoutBorder();
|
|
196
|
+
}
|
|
197
|
+
_align = signal({ vertical: 'top', horizontal: 'end' }, ...(ngDevMode ? [{ debugName: "_align" }] : []));
|
|
198
|
+
_size = signal(undefined, ...(ngDevMode ? [{ debugName: "_size" }] : []));
|
|
199
|
+
_fill = signal(undefined, ...(ngDevMode ? [{ debugName: "_fill" }] : []));
|
|
200
|
+
_themeColor = signal(undefined, ...(ngDevMode ? [{ debugName: "_themeColor" }] : []));
|
|
201
|
+
_rounded = signal(undefined, ...(ngDevMode ? [{ debugName: "_rounded" }] : []));
|
|
202
|
+
_position = signal('edge', ...(ngDevMode ? [{ debugName: "_position" }] : []));
|
|
203
|
+
_cutoutBorder = signal(false, ...(ngDevMode ? [{ debugName: "_cutoutBorder" }] : []));
|
|
166
204
|
badgeClasses = [];
|
|
167
|
-
|
|
205
|
+
computedBadgeClasses = computed(() => [
|
|
206
|
+
this._themeColor() ? `k-badge-${this._themeColor()}` : '',
|
|
207
|
+
this._fill() ? `k-badge-${this._fill()}` : '',
|
|
208
|
+
SIZE_CLASSES$1[this._size()],
|
|
209
|
+
ROUNDED_CLASSES[this._rounded()],
|
|
210
|
+
`k-${this._align().vertical}-${this._align().horizontal}`,
|
|
211
|
+
`k-badge-${this._position()}`
|
|
212
|
+
].filter((className) => className), ...(ngDevMode ? [{ debugName: "computedBadgeClasses" }] : []));
|
|
213
|
+
badgeClassEffect = effect(() => {
|
|
214
|
+
const newClasses = this.computedBadgeClasses();
|
|
215
|
+
const element = this.element.nativeElement;
|
|
216
|
+
this.badgeClasses.forEach((className) => {
|
|
217
|
+
this.renderer.removeClass(element, className);
|
|
218
|
+
});
|
|
219
|
+
newClasses.forEach((className) => {
|
|
220
|
+
if (className) {
|
|
221
|
+
this.renderer.addClass(element, className);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
this.badgeClasses = newClasses;
|
|
225
|
+
}, ...(ngDevMode ? [{ debugName: "badgeClassEffect" }] : []));
|
|
168
226
|
dynamicRTLSubscription;
|
|
169
227
|
rtl = false;
|
|
170
228
|
constructor(element, renderer, localizationService) {
|
|
@@ -178,48 +236,28 @@ class BadgeComponent {
|
|
|
178
236
|
});
|
|
179
237
|
}
|
|
180
238
|
ngAfterViewInit() {
|
|
239
|
+
// Trigger initial class application if effect hasn't run yet
|
|
181
240
|
if (!this.badgeClasses.length) {
|
|
182
241
|
this.setBadgeClasses();
|
|
183
242
|
}
|
|
184
243
|
}
|
|
185
|
-
ngOnChanges() {
|
|
186
|
-
this.setBadgeClasses();
|
|
187
|
-
}
|
|
188
244
|
ngOnDestroy() {
|
|
189
245
|
if (this.dynamicRTLSubscription) {
|
|
190
246
|
this.dynamicRTLSubscription.unsubscribe();
|
|
191
247
|
}
|
|
192
248
|
}
|
|
193
|
-
alignClass() {
|
|
194
|
-
return `k-${this.badgeAlign.vertical}-${this.badgeAlign.horizontal}`;
|
|
195
|
-
}
|
|
196
|
-
positionClass() {
|
|
197
|
-
return `k-badge-${this.position}`;
|
|
198
|
-
}
|
|
199
|
-
sizeClass() {
|
|
200
|
-
return SIZE_CLASSES$1[this.size];
|
|
201
|
-
}
|
|
202
|
-
roundedClass() {
|
|
203
|
-
return ROUNDED_CLASSES[this.rounded];
|
|
204
|
-
}
|
|
205
|
-
themeColorClass() {
|
|
206
|
-
return this.themeColor ? `k-badge-${this.themeColor}` : '';
|
|
207
|
-
}
|
|
208
|
-
fillClass() {
|
|
209
|
-
return this.fill ? `k-badge-${this.fill}` : '';
|
|
210
|
-
}
|
|
211
249
|
setBadgeClasses() {
|
|
212
250
|
const element = this.element.nativeElement;
|
|
213
251
|
this.badgeClasses.forEach((className) => {
|
|
214
252
|
this.renderer.removeClass(element, className);
|
|
215
253
|
});
|
|
216
254
|
this.badgeClasses = [
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
255
|
+
this._themeColor() ? `k-badge-${this._themeColor()}` : '',
|
|
256
|
+
this._fill() ? `k-badge-${this._fill()}` : '',
|
|
257
|
+
SIZE_CLASSES$1[this._size()],
|
|
258
|
+
ROUNDED_CLASSES[this._rounded()],
|
|
259
|
+
`k-${this._align().vertical}-${this._align().horizontal}`,
|
|
260
|
+
`k-badge-${this._position()}`
|
|
223
261
|
].filter((className) => className);
|
|
224
262
|
this.badgeClasses.forEach((className) => {
|
|
225
263
|
if (className) {
|
|
@@ -227,16 +265,16 @@ class BadgeComponent {
|
|
|
227
265
|
}
|
|
228
266
|
});
|
|
229
267
|
}
|
|
230
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
231
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
268
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BadgeComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
269
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: BadgeComponent, isStandalone: true, selector: "kendo-badge", inputs: { align: "align", size: "size", fill: "fill", themeColor: "themeColor", rounded: "rounded", position: "position", cutoutBorder: "cutoutBorder" }, host: { properties: { "class.k-badge": "this.hostClass", "class.k-badge-border-cutout": "this.cutoutBorderClass", "attr.dir": "this.direction" } }, providers: [
|
|
232
270
|
LocalizationService,
|
|
233
271
|
{
|
|
234
272
|
provide: L10N_PREFIX,
|
|
235
273
|
useValue: 'kendo.badge.component'
|
|
236
274
|
}
|
|
237
|
-
],
|
|
275
|
+
], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
238
276
|
}
|
|
239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
240
278
|
type: Component,
|
|
241
279
|
args: [{
|
|
242
280
|
selector: 'kendo-badge',
|
|
@@ -248,7 +286,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
248
286
|
}
|
|
249
287
|
],
|
|
250
288
|
template: `<ng-content></ng-content>`,
|
|
251
|
-
standalone: true
|
|
289
|
+
standalone: true,
|
|
290
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
252
291
|
}]
|
|
253
292
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }], propDecorators: { hostClass: [{
|
|
254
293
|
type: HostBinding,
|
|
@@ -312,38 +351,38 @@ class LoaderComponent {
|
|
|
312
351
|
* @default pulsing
|
|
313
352
|
*/
|
|
314
353
|
set type(type) {
|
|
315
|
-
this.renderer.removeClass(this.loader, TYPE_CLASSES[this.
|
|
354
|
+
this.renderer.removeClass(this.loader, TYPE_CLASSES[this._type()]);
|
|
316
355
|
this.renderer.addClass(this.loader, TYPE_CLASSES[type]);
|
|
317
|
-
this._type
|
|
356
|
+
this._type.set(type);
|
|
318
357
|
}
|
|
319
358
|
get type() {
|
|
320
|
-
return this._type;
|
|
359
|
+
return this._type();
|
|
321
360
|
}
|
|
322
361
|
/**
|
|
323
362
|
* Specifies the theme color of the Loader. The default value is set by the Kendo theme.
|
|
324
363
|
*/
|
|
325
364
|
set themeColor(themeColor) {
|
|
326
|
-
this.renderer.removeClass(this.loader, `k-loader-${this.
|
|
365
|
+
this.renderer.removeClass(this.loader, `k-loader-${this._themeColor()}`);
|
|
327
366
|
this.renderer.addClass(this.loader, `k-loader-${themeColor}`);
|
|
328
|
-
this._themeColor
|
|
367
|
+
this._themeColor.set(themeColor);
|
|
329
368
|
}
|
|
330
369
|
get themeColor() {
|
|
331
|
-
return this._themeColor;
|
|
370
|
+
return this._themeColor();
|
|
332
371
|
}
|
|
333
372
|
/**
|
|
334
373
|
* Specifies the size of the Loader. The default value is set by the Kendo theme.
|
|
335
374
|
*/
|
|
336
375
|
set size(size) {
|
|
337
|
-
this.renderer.removeClass(this.loader, SIZE_CLASSES[this.
|
|
376
|
+
this.renderer.removeClass(this.loader, SIZE_CLASSES[this._size()]);
|
|
338
377
|
this.renderer.addClass(this.loader, SIZE_CLASSES[size]);
|
|
339
|
-
this._size
|
|
378
|
+
this._size.set(size);
|
|
340
379
|
}
|
|
341
380
|
get size() {
|
|
342
|
-
return this._size;
|
|
381
|
+
return this._size();
|
|
343
382
|
}
|
|
344
|
-
_type = 'pulsing';
|
|
345
|
-
_themeColor;
|
|
346
|
-
_size;
|
|
383
|
+
_type = signal('pulsing', ...(ngDevMode ? [{ debugName: "_type" }] : []));
|
|
384
|
+
_themeColor = signal(undefined, ...(ngDevMode ? [{ debugName: "_themeColor" }] : []));
|
|
385
|
+
_size = signal(undefined, ...(ngDevMode ? [{ debugName: "_size" }] : []));
|
|
347
386
|
loader;
|
|
348
387
|
constructor(element, renderer) {
|
|
349
388
|
this.element = element;
|
|
@@ -365,16 +404,16 @@ class LoaderComponent {
|
|
|
365
404
|
this.themeColor && this.renderer.addClass(this.loader, `k-loader-${this.themeColor}`);
|
|
366
405
|
this.size && this.renderer.addClass(this.loader, SIZE_CLASSES[this.size]);
|
|
367
406
|
}
|
|
368
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
369
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
407
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LoaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
408
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: LoaderComponent, isStandalone: true, selector: "kendo-loader", inputs: { type: "type", themeColor: "themeColor", size: "size" }, host: { properties: { "class.k-loader": "this.hostClass", "attr.role": "this.role" } }, ngImport: i0, template: `
|
|
370
409
|
<div class="k-loader-canvas">
|
|
371
410
|
@for (segment of segmentCount; track $index) {
|
|
372
411
|
<span class="k-loader-segment"></span>
|
|
373
412
|
}
|
|
374
413
|
</div>
|
|
375
|
-
`, isInline: true });
|
|
414
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
376
415
|
}
|
|
377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LoaderComponent, decorators: [{
|
|
378
417
|
type: Component,
|
|
379
418
|
args: [{
|
|
380
419
|
selector: 'kendo-loader',
|
|
@@ -386,7 +425,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
386
425
|
</div>
|
|
387
426
|
`,
|
|
388
427
|
standalone: true,
|
|
389
|
-
imports: []
|
|
428
|
+
imports: [],
|
|
429
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
390
430
|
}]
|
|
391
431
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { hostClass: [{
|
|
392
432
|
type: HostBinding,
|
|
@@ -458,16 +498,17 @@ class SkeletonComponent {
|
|
|
458
498
|
if (isDevMode() && validAnimations.indexOf(animation) === -1) {
|
|
459
499
|
throw new Error(skeletonAnimationError(animation));
|
|
460
500
|
}
|
|
461
|
-
|
|
462
|
-
|
|
501
|
+
const currentAnimation = this._animation();
|
|
502
|
+
if (currentAnimation && ANIMATION_CLASSES[currentAnimation]) {
|
|
503
|
+
this.renderer.removeClass(this.hostElement.nativeElement, ANIMATION_CLASSES[currentAnimation]);
|
|
463
504
|
}
|
|
464
505
|
if (animation) {
|
|
465
506
|
this.renderer.addClass(this.hostElement.nativeElement, ANIMATION_CLASSES[animation]);
|
|
466
507
|
}
|
|
467
|
-
this._animation
|
|
508
|
+
this._animation.set(animation);
|
|
468
509
|
}
|
|
469
510
|
get animation() {
|
|
470
|
-
return this._animation;
|
|
511
|
+
return this._animation();
|
|
471
512
|
}
|
|
472
513
|
/**
|
|
473
514
|
* Specifies the shape of the Skeleton.
|
|
@@ -478,12 +519,12 @@ class SkeletonComponent {
|
|
|
478
519
|
if (isDevMode() && validShapes.indexOf(shape) === -1) {
|
|
479
520
|
throw new Error(skeletonShapeError(shape));
|
|
480
521
|
}
|
|
481
|
-
this.renderer.removeClass(this.hostElement.nativeElement, SHAPE_CLASSES[this.
|
|
522
|
+
this.renderer.removeClass(this.hostElement.nativeElement, SHAPE_CLASSES[this._shape()]);
|
|
482
523
|
this.renderer.addClass(this.hostElement.nativeElement, SHAPE_CLASSES[shape]);
|
|
483
|
-
this._shape
|
|
524
|
+
this._shape.set(shape);
|
|
484
525
|
}
|
|
485
526
|
get shape() {
|
|
486
|
-
return this._shape;
|
|
527
|
+
return this._shape();
|
|
487
528
|
}
|
|
488
529
|
/**
|
|
489
530
|
* Specifies the width of the Skeleton component.
|
|
@@ -491,8 +532,12 @@ class SkeletonComponent {
|
|
|
491
532
|
* Accepts a string like `100px`, `3em`, or `50%`, or an integer number for pixels.
|
|
492
533
|
*/
|
|
493
534
|
set width(width) {
|
|
535
|
+
this._width.set(width);
|
|
494
536
|
this.renderer.setStyle(this.hostElement.nativeElement, "width", typeof width === "string" ? width : width + "px");
|
|
495
537
|
}
|
|
538
|
+
get width() {
|
|
539
|
+
return this._width();
|
|
540
|
+
}
|
|
496
541
|
/**
|
|
497
542
|
* Specifies the height of the Skeleton component.
|
|
498
543
|
* Required for `circle` and `rectangle` shapes.
|
|
@@ -500,10 +545,16 @@ class SkeletonComponent {
|
|
|
500
545
|
* Accepts a string like `100px`, `3em`, or `50%`, or an integer number for pixels.
|
|
501
546
|
*/
|
|
502
547
|
set height(height) {
|
|
548
|
+
this._height.set(height);
|
|
503
549
|
this.renderer.setStyle(this.hostElement.nativeElement, "height", typeof height === "string" ? height : height + "px");
|
|
504
550
|
}
|
|
505
|
-
|
|
506
|
-
|
|
551
|
+
get height() {
|
|
552
|
+
return this._height();
|
|
553
|
+
}
|
|
554
|
+
_animation = signal("pulse", ...(ngDevMode ? [{ debugName: "_animation" }] : []));
|
|
555
|
+
_shape = signal('text', ...(ngDevMode ? [{ debugName: "_shape" }] : []));
|
|
556
|
+
_width = signal(undefined, ...(ngDevMode ? [{ debugName: "_width" }] : []));
|
|
557
|
+
_height = signal(undefined, ...(ngDevMode ? [{ debugName: "_height" }] : []));
|
|
507
558
|
constructor(renderer, hostElement) {
|
|
508
559
|
this.renderer = renderer;
|
|
509
560
|
this.hostElement = hostElement;
|
|
@@ -515,10 +566,10 @@ class SkeletonComponent {
|
|
|
515
566
|
hostElement.classList.add(ANIMATION_CLASSES[this.animation]);
|
|
516
567
|
}
|
|
517
568
|
}
|
|
518
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
519
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
569
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SkeletonComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
570
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: SkeletonComponent, isStandalone: true, selector: "kendo-skeleton", inputs: { animation: "animation", shape: "shape", width: "width", height: "height" }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
520
571
|
}
|
|
521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SkeletonComponent, decorators: [{
|
|
522
573
|
type: Component,
|
|
523
574
|
args: [{
|
|
524
575
|
selector: "kendo-skeleton",
|
|
@@ -576,11 +627,11 @@ const KENDO_INDICATORS = [
|
|
|
576
627
|
* definition for the Badge and BadgeContainer components.
|
|
577
628
|
*/
|
|
578
629
|
class BadgeModule {
|
|
579
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
580
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
581
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
630
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
631
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: BadgeModule, imports: [BadgeComponent, BadgeContainerComponent], exports: [BadgeComponent, BadgeContainerComponent] });
|
|
632
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BadgeModule });
|
|
582
633
|
}
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: BadgeModule, decorators: [{
|
|
584
635
|
type: NgModule,
|
|
585
636
|
args: [{
|
|
586
637
|
exports: [...KENDO_BADGECONTAINER],
|
|
@@ -594,11 +645,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
594
645
|
* definition for the Loader component.
|
|
595
646
|
*/
|
|
596
647
|
class LoaderModule {
|
|
597
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
598
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
599
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
648
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
649
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: LoaderModule, imports: [LoaderComponent], exports: [LoaderComponent] });
|
|
650
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LoaderModule });
|
|
600
651
|
}
|
|
601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LoaderModule, decorators: [{
|
|
602
653
|
type: NgModule,
|
|
603
654
|
args: [{
|
|
604
655
|
exports: [...KENDO_LOADER],
|
|
@@ -612,11 +663,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
612
663
|
* definition for the Skeleton component.
|
|
613
664
|
*/
|
|
614
665
|
class SkeletonModule {
|
|
615
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
616
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
617
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
666
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
667
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: SkeletonModule, imports: [SkeletonComponent], exports: [SkeletonComponent] });
|
|
668
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SkeletonModule });
|
|
618
669
|
}
|
|
619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
670
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SkeletonModule, decorators: [{
|
|
620
671
|
type: NgModule,
|
|
621
672
|
args: [{
|
|
622
673
|
exports: [...KENDO_SKELETON],
|
|
@@ -648,11 +699,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
648
699
|
* ```
|
|
649
700
|
*/
|
|
650
701
|
class IndicatorsModule {
|
|
651
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
652
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
653
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
702
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: IndicatorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
703
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: IndicatorsModule, imports: [BadgeComponent, BadgeContainerComponent, LoaderComponent, SkeletonComponent], exports: [BadgeComponent, BadgeContainerComponent, LoaderComponent, SkeletonComponent] });
|
|
704
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: IndicatorsModule });
|
|
654
705
|
}
|
|
655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: IndicatorsModule, decorators: [{
|
|
656
707
|
type: NgModule,
|
|
657
708
|
args: [{
|
|
658
709
|
imports: [...KENDO_INDICATORS],
|