@progress/kendo-angular-icons 25.0.0-develop.1 → 25.0.0-develop.13
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-icons.mjs +97 -69
- package/index.d.ts +28 -7
- package/package-metadata.mjs +2 -2
- package/package.json +4 -4
|
@@ -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 { Input, HostBinding, Directive, Component,
|
|
6
|
+
import { Input, HostBinding, Directive, signal, ChangeDetectionStrategy, Component, computed, isDevMode, Injectable, InjectionToken, Optional, Inject, NgModule } from '@angular/core';
|
|
7
7
|
import { isDocumentAvailable, areObjectsEqual } from '@progress/kendo-angular-common';
|
|
8
8
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
9
9
|
import * as i1_1 from '@angular/platform-browser';
|
|
@@ -19,8 +19,8 @@ const packageMetadata = {
|
|
|
19
19
|
productName: 'Kendo UI for Angular',
|
|
20
20
|
productCode: 'KENDOUIANGULAR',
|
|
21
21
|
productCodes: ['KENDOUIANGULAR'],
|
|
22
|
-
publishDate:
|
|
23
|
-
version: '25.0.0-develop.
|
|
22
|
+
publishDate: 1785426668,
|
|
23
|
+
version: '25.0.0-develop.13',
|
|
24
24
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -91,10 +91,10 @@ class IconBaseDirective {
|
|
|
91
91
|
this.renderer = renderer;
|
|
92
92
|
validatePackage(packageMetadata);
|
|
93
93
|
}
|
|
94
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
95
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
94
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconBaseDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
95
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: IconBaseDirective, isStandalone: true, selector: "[kendoIconBase]", inputs: { flip: "flip", themeColor: "themeColor", size: "size" }, host: { properties: { "class.k-flip-h": "this.horizontalFlip", "class.k-flip-v": "this.verticalFlip" } }, ngImport: i0 });
|
|
96
96
|
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconBaseDirective, decorators: [{
|
|
98
98
|
type: Directive,
|
|
99
99
|
args: [{
|
|
100
100
|
selector: '[kendoIconBase]'
|
|
@@ -132,34 +132,35 @@ class IconComponent extends IconBaseDirective {
|
|
|
132
132
|
*/
|
|
133
133
|
set name(name) {
|
|
134
134
|
if (isDocumentAvailable()) {
|
|
135
|
-
const newName = name !== this._name;
|
|
135
|
+
const newName = name !== this._name();
|
|
136
136
|
if (newName) {
|
|
137
137
|
const element = this.element.nativeElement;
|
|
138
138
|
this.renderer.removeClass(element, `k-i-${this.name}`);
|
|
139
139
|
this.renderer.addClass(element, `k-i-${name}`);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
this._name
|
|
142
|
+
this._name.set(name);
|
|
143
143
|
}
|
|
144
144
|
get name() {
|
|
145
|
-
return this._name;
|
|
145
|
+
return this._name();
|
|
146
146
|
}
|
|
147
|
-
_name;
|
|
147
|
+
_name = signal(undefined, ...(ngDevMode ? [{ debugName: "_name" }] : []));
|
|
148
148
|
constructor(element, renderer) {
|
|
149
149
|
super(element, renderer);
|
|
150
150
|
this.element = element;
|
|
151
151
|
this.renderer = renderer;
|
|
152
152
|
}
|
|
153
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
154
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
153
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
154
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: IconComponent, isStandalone: true, selector: "kendo-icon", inputs: { name: "name" }, host: { properties: { "class.k-icon": "this.hostClass", "class.k-font-icon": "this.hostClass", "attr.aria-hidden": "this.hostAriaHidden" } }, exportAs: ["kendoIcon"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
155
155
|
}
|
|
156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconComponent, decorators: [{
|
|
157
157
|
type: Component,
|
|
158
158
|
args: [{
|
|
159
|
-
exportAs: 'kendoIcon',
|
|
160
159
|
selector: 'kendo-icon',
|
|
160
|
+
exportAs: 'kendoIcon',
|
|
161
161
|
template: '',
|
|
162
|
-
standalone: true
|
|
162
|
+
standalone: true,
|
|
163
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
163
164
|
}]
|
|
164
165
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { hostClass: [{
|
|
165
166
|
type: HostBinding,
|
|
@@ -209,19 +210,19 @@ class SVGIconComponent extends IconBaseDirective {
|
|
|
209
210
|
set icon(icon) {
|
|
210
211
|
const element = this.element.nativeElement;
|
|
211
212
|
const hasDocument = isDocumentAvailable();
|
|
212
|
-
const newName = icon?.name && icon.name !== this._icon?.name;
|
|
213
|
-
if (this._icon
|
|
214
|
-
this.renderer.removeClass(element, `k-svg-i-${this._icon.name}`);
|
|
213
|
+
const newName = icon?.name && icon.name !== this._icon()?.name;
|
|
214
|
+
if (this._icon()?.name && newName && hasDocument) {
|
|
215
|
+
this.renderer.removeClass(element, `k-svg-i-${this._icon().name}`);
|
|
215
216
|
}
|
|
216
|
-
if (!areSame(icon, this._icon)) {
|
|
217
|
-
this._icon
|
|
217
|
+
if (!areSame(icon, this._icon())) {
|
|
218
|
+
this._icon.set(icon);
|
|
218
219
|
}
|
|
219
220
|
if (hasDocument && newName) {
|
|
220
|
-
this.renderer.addClass(element, `k-svg-i-${this._icon.name}`);
|
|
221
|
+
this.renderer.addClass(element, `k-svg-i-${this._icon().name}`);
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
224
|
get icon() {
|
|
224
|
-
return this._icon;
|
|
225
|
+
return this._icon();
|
|
225
226
|
}
|
|
226
227
|
/**
|
|
227
228
|
* Sets the style variant of the icon.
|
|
@@ -229,21 +230,30 @@ class SVGIconComponent extends IconBaseDirective {
|
|
|
229
230
|
* > Requires `@progress/kendo-svg-icons` v5 or later for the `variants` property to be available on icons.
|
|
230
231
|
*/
|
|
231
232
|
set variant(variant) {
|
|
232
|
-
this._variant
|
|
233
|
+
this._variant.set(variant);
|
|
233
234
|
}
|
|
234
235
|
get variant() {
|
|
235
|
-
return this._variant;
|
|
236
|
+
return this._variant();
|
|
236
237
|
}
|
|
237
238
|
get content() {
|
|
238
|
-
|
|
239
|
-
const svgContent = variantContent || this.icon.content;
|
|
240
|
-
return this.domSanitizer.bypassSecurityTrustHtml(svgContent);
|
|
239
|
+
return this._content();
|
|
241
240
|
}
|
|
242
241
|
get visible() {
|
|
243
|
-
return this.
|
|
244
|
-
}
|
|
245
|
-
_icon;
|
|
246
|
-
_variant;
|
|
242
|
+
return this._visible();
|
|
243
|
+
}
|
|
244
|
+
_icon = signal(undefined, ...(ngDevMode ? [{ debugName: "_icon" }] : []));
|
|
245
|
+
_variant = signal(undefined, ...(ngDevMode ? [{ debugName: "_variant" }] : []));
|
|
246
|
+
_content = computed(() => {
|
|
247
|
+
const icon = this._icon();
|
|
248
|
+
if (!icon) {
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
const variant = this._variant();
|
|
252
|
+
const variantContent = variant && icon.variants?.[variant];
|
|
253
|
+
const svgContent = variantContent || icon.content;
|
|
254
|
+
return this.domSanitizer.bypassSecurityTrustHtml(svgContent);
|
|
255
|
+
}, ...(ngDevMode ? [{ debugName: "_content" }] : []));
|
|
256
|
+
_visible = computed(() => !!this._icon() && isDocumentAvailable(), ...(ngDevMode ? [{ debugName: "_visible" }] : []));
|
|
247
257
|
constructor(domSanitizer, element, renderer) {
|
|
248
258
|
super(element, renderer);
|
|
249
259
|
this.domSanitizer = domSanitizer;
|
|
@@ -257,7 +267,7 @@ class SVGIconComponent extends IconBaseDirective {
|
|
|
257
267
|
if (!isDevMode()) {
|
|
258
268
|
return;
|
|
259
269
|
}
|
|
260
|
-
if (!this._icon) {
|
|
270
|
+
if (!this._icon()) {
|
|
261
271
|
throw new Error(`
|
|
262
272
|
Invalid configuration.
|
|
263
273
|
The input [icon] is required for the Kendo UI SVG Icon component for Angular.
|
|
@@ -265,15 +275,15 @@ class SVGIconComponent extends IconBaseDirective {
|
|
|
265
275
|
`);
|
|
266
276
|
}
|
|
267
277
|
}
|
|
268
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
269
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SVGIconComponent, deps: [{ token: i1_1.DomSanitizer }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
279
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: SVGIconComponent, isStandalone: true, selector: "kendo-svg-icon, kendo-svgicon", inputs: { icon: "icon", variant: "variant" }, host: { properties: { "class.k-svg-icon": "this.hostClass", "class.k-icon": "this.hostClass", "attr.aria-hidden": "this.hostAriaHidden" } }, exportAs: ["kendoSVGIcon"], usesInheritance: true, ngImport: i0, template: `
|
|
270
280
|
@if (visible) {
|
|
271
281
|
<svg [style.pointerEvents]="'none'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
272
282
|
[attr.viewBox]="icon.viewBox" [innerHTML]="content" aria-hidden="true">
|
|
273
283
|
</svg>
|
|
274
284
|
}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
275
285
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SVGIconComponent, decorators: [{
|
|
277
287
|
type: Component,
|
|
278
288
|
args: [{
|
|
279
289
|
exportAs: 'kendoSVGIcon',
|
|
@@ -354,10 +364,10 @@ class IconSettingsService {
|
|
|
354
364
|
getCustomFontIconClass(_key) {
|
|
355
365
|
return null;
|
|
356
366
|
}
|
|
357
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
358
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
367
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconSettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
368
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconSettingsService });
|
|
359
369
|
}
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconSettingsService, decorators: [{
|
|
361
371
|
type: Injectable
|
|
362
372
|
}] });
|
|
363
373
|
|
|
@@ -444,10 +454,10 @@ class IconsService {
|
|
|
444
454
|
const customClass = this.iconSettingsService && this.iconSettingsService.getCustomFontIconClass(key);
|
|
445
455
|
return customClass;
|
|
446
456
|
}
|
|
447
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
448
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
457
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconsService, deps: [{ token: ICON_SETTINGS, optional: true }, { token: IconSettingsService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
458
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconsService, providedIn: 'root' });
|
|
449
459
|
}
|
|
450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconsService, decorators: [{
|
|
451
461
|
type: Injectable,
|
|
452
462
|
args: [{
|
|
453
463
|
providedIn: 'root'
|
|
@@ -472,31 +482,46 @@ class IconWrapperComponent {
|
|
|
472
482
|
* Sets the name for an existing font icon in a Kendo UI theme to render.
|
|
473
483
|
* Supports all [Kendo UI Icons](https://www.telerik.com/kendo-angular-ui/components/styling/icons#icons-list).
|
|
474
484
|
*/
|
|
475
|
-
name;
|
|
485
|
+
set name(value) { this._name.set(value); }
|
|
486
|
+
get name() { return this._name(); }
|
|
476
487
|
/**
|
|
477
488
|
* Sets the [SVGIcon](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgicon) to render.
|
|
478
489
|
*/
|
|
479
|
-
svgIcon;
|
|
490
|
+
set svgIcon(value) { this._svgIcon.set(value); }
|
|
491
|
+
get svgIcon() { return this._svgIcon(); }
|
|
480
492
|
/**
|
|
481
493
|
* Sets an additional class on the internal Icon component.
|
|
482
494
|
*/
|
|
483
|
-
innerCssClass
|
|
495
|
+
set innerCssClass(value) { this._innerCssClass.set(value); }
|
|
496
|
+
get innerCssClass() { return this._innerCssClass(); }
|
|
484
497
|
/**
|
|
485
498
|
* Sets a custom font icon class using the API of the consuming component.
|
|
486
499
|
*/
|
|
487
|
-
customFontClass
|
|
500
|
+
set customFontClass(value) { this._customFontClass.set(value); }
|
|
501
|
+
get customFontClass() { return this._customFontClass(); }
|
|
488
502
|
/**
|
|
489
503
|
* Sets the `IconSize` for the icon.
|
|
490
504
|
*/
|
|
491
|
-
size;
|
|
505
|
+
set size(value) { this._size.set(value); }
|
|
506
|
+
get size() { return this._size(); }
|
|
492
507
|
get customClasses() {
|
|
493
508
|
const classes = [this.customFontClass, this.innerCssClass, this.customFontIconClass].filter(cl => !!cl).join(' ');
|
|
494
509
|
return classes;
|
|
495
510
|
}
|
|
496
|
-
|
|
511
|
+
_name = signal(undefined, ...(ngDevMode ? [{ debugName: "_name" }] : []));
|
|
512
|
+
_svgIcon = signal(undefined, ...(ngDevMode ? [{ debugName: "_svgIcon" }] : []));
|
|
513
|
+
_innerCssClass = signal('', ...(ngDevMode ? [{ debugName: "_innerCssClass" }] : []));
|
|
514
|
+
_customFontClass = signal('', ...(ngDevMode ? [{ debugName: "_customFontClass" }] : []));
|
|
515
|
+
_size = signal(undefined, ...(ngDevMode ? [{ debugName: "_size" }] : []));
|
|
516
|
+
// iconSettings is set from a subscription — must be a signal so changes trigger CD in zoneless apps
|
|
517
|
+
_iconSettings = signal(undefined, ...(ngDevMode ? [{ debugName: "_iconSettings" }] : []));
|
|
518
|
+
get iconSettings() { return this._iconSettings(); }
|
|
519
|
+
// Resolves the effective SVG icon: prefer service-provided icon, then fall back to the svgIcon input.
|
|
520
|
+
// Extracted from hasSvgIcon getter to avoid writing to a signal inside a reactive context.
|
|
521
|
+
_resolvedSvgIcon = computed(() => this.iconsService.getSvgIcon(this._name()) || this._svgIcon(), ...(ngDevMode ? [{ debugName: "_resolvedSvgIcon" }] : []));
|
|
522
|
+
get resolvedSvgIcon() { return this._resolvedSvgIcon(); }
|
|
497
523
|
get hasSvgIcon() {
|
|
498
|
-
|
|
499
|
-
if (this.svgIcon) {
|
|
524
|
+
if (this._resolvedSvgIcon()) {
|
|
500
525
|
return true;
|
|
501
526
|
}
|
|
502
527
|
if (isDevMode()) {
|
|
@@ -527,20 +552,21 @@ https://www.telerik.com/design-system/docs/foundation/iconography/icon-list/
|
|
|
527
552
|
this.iconsService = iconsService;
|
|
528
553
|
this.element = element;
|
|
529
554
|
this.subs = iconsService.changes.subscribe(iconSettings => {
|
|
530
|
-
this.iconSettings
|
|
555
|
+
this._iconSettings.set(iconSettings);
|
|
531
556
|
});
|
|
532
557
|
}
|
|
533
558
|
ngOnDestroy() {
|
|
534
559
|
this.subs.unsubscribe();
|
|
535
560
|
}
|
|
536
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
537
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
561
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconWrapperComponent, deps: [{ token: IconsService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
562
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: IconWrapperComponent, isStandalone: true, selector: "kendo-icon-wrapper", inputs: { name: "name", svgIcon: "svgIcon", innerCssClass: "innerCssClass", customFontClass: "customFontClass", size: "size" }, host: { properties: { "class.k-icon-wrapper-host": "this.hostClass" } }, exportAs: ["kendoIconWrapper"], ngImport: i0, template: `
|
|
538
563
|
@if (iconSettings?.type === 'svg' && hasSvgIcon) {
|
|
539
564
|
<kendo-svgicon
|
|
540
565
|
[ngClass]="innerCssClass"
|
|
541
|
-
[icon]="
|
|
566
|
+
[icon]="resolvedSvgIcon"
|
|
542
567
|
[size]="size || iconSettings?.size"
|
|
543
568
|
[themeColor]="iconSettings?.themeColor"
|
|
569
|
+
[variant]="iconSettings?.variant"
|
|
544
570
|
[flip]="iconSettings?.flip"></kendo-svgicon>
|
|
545
571
|
} @else {
|
|
546
572
|
@if (!customFontIconClass) {
|
|
@@ -554,20 +580,21 @@ https://www.telerik.com/design-system/docs/foundation/iconography/icon-list/
|
|
|
554
580
|
<span [ngClass]="customClasses"></span>
|
|
555
581
|
}
|
|
556
582
|
}
|
|
557
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "kendo-icon", inputs: ["name"], exportAs: ["kendoIcon"] }, { kind: "component", type: SVGIconComponent, selector: "kendo-svg-icon, kendo-svgicon", inputs: ["icon", "variant"], exportAs: ["kendoSVGIcon"] }] });
|
|
583
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "kendo-icon", inputs: ["name"], exportAs: ["kendoIcon"] }, { kind: "component", type: SVGIconComponent, selector: "kendo-svg-icon, kendo-svgicon", inputs: ["icon", "variant"], exportAs: ["kendoSVGIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
558
584
|
}
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconWrapperComponent, decorators: [{
|
|
560
586
|
type: Component,
|
|
561
587
|
args: [{
|
|
562
|
-
exportAs: 'kendoIconWrapper',
|
|
563
588
|
selector: 'kendo-icon-wrapper',
|
|
589
|
+
exportAs: 'kendoIconWrapper',
|
|
564
590
|
template: `
|
|
565
591
|
@if (iconSettings?.type === 'svg' && hasSvgIcon) {
|
|
566
592
|
<kendo-svgicon
|
|
567
593
|
[ngClass]="innerCssClass"
|
|
568
|
-
[icon]="
|
|
594
|
+
[icon]="resolvedSvgIcon"
|
|
569
595
|
[size]="size || iconSettings?.size"
|
|
570
596
|
[themeColor]="iconSettings?.themeColor"
|
|
597
|
+
[variant]="iconSettings?.variant"
|
|
571
598
|
[flip]="iconSettings?.flip"></kendo-svgicon>
|
|
572
599
|
} @else {
|
|
573
600
|
@if (!customFontIconClass) {
|
|
@@ -583,6 +610,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
583
610
|
}
|
|
584
611
|
`,
|
|
585
612
|
standalone: true,
|
|
613
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
586
614
|
imports: [NgClass, IconComponent, SVGIconComponent]
|
|
587
615
|
}]
|
|
588
616
|
}], ctorParameters: () => [{ type: IconsService }, { type: i0.ElementRef }], propDecorators: { hostClass: [{
|
|
@@ -620,11 +648,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
620
648
|
* ```
|
|
621
649
|
*/
|
|
622
650
|
class IconModule {
|
|
623
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
624
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
625
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
651
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
652
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: IconModule, imports: [IconComponent], exports: [IconComponent] });
|
|
653
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconModule });
|
|
626
654
|
}
|
|
627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconModule, decorators: [{
|
|
628
656
|
type: NgModule,
|
|
629
657
|
args: [{
|
|
630
658
|
exports: [IconComponent],
|
|
@@ -652,11 +680,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
652
680
|
* ```
|
|
653
681
|
*/
|
|
654
682
|
class SVGIconModule {
|
|
655
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
656
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
657
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
683
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SVGIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
684
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: SVGIconModule, imports: [SVGIconComponent], exports: [SVGIconComponent] });
|
|
685
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SVGIconModule });
|
|
658
686
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SVGIconModule, decorators: [{
|
|
660
688
|
type: NgModule,
|
|
661
689
|
args: [{
|
|
662
690
|
exports: [SVGIconComponent],
|
|
@@ -746,11 +774,11 @@ const KENDO_ICONS = [
|
|
|
746
774
|
* ```
|
|
747
775
|
*/
|
|
748
776
|
class IconsModule {
|
|
749
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
750
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
751
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
777
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
778
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: IconsModule, imports: [IconComponent, SVGIconComponent], exports: [IconComponent, SVGIconComponent] });
|
|
779
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconsModule, providers: [IconsService] });
|
|
752
780
|
}
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: IconsModule, decorators: [{
|
|
754
782
|
type: NgModule,
|
|
755
783
|
args: [{
|
|
756
784
|
imports: [
|
package/index.d.ts
CHANGED
|
@@ -158,6 +158,8 @@ declare class SVGIconComponent extends IconBaseDirective implements OnInit {
|
|
|
158
158
|
get visible(): boolean;
|
|
159
159
|
private _icon;
|
|
160
160
|
private _variant;
|
|
161
|
+
private readonly _content;
|
|
162
|
+
private readonly _visible;
|
|
161
163
|
constructor(domSanitizer: DomSanitizer, element: ElementRef, renderer: Renderer2);
|
|
162
164
|
ngOnInit(): void;
|
|
163
165
|
private verifyIconProperty;
|
|
@@ -181,7 +183,8 @@ type IconType = 'font' | 'svg';
|
|
|
181
183
|
* type: 'svg',
|
|
182
184
|
* themeColor: 'primary',
|
|
183
185
|
* size: 'large',
|
|
184
|
-
* flip: 'horizontal'
|
|
186
|
+
* flip: 'horizontal',
|
|
187
|
+
* variant: 'outline'
|
|
185
188
|
* };
|
|
186
189
|
* ```
|
|
187
190
|
*/
|
|
@@ -202,6 +205,11 @@ interface IconSettings {
|
|
|
202
205
|
* Sets the `flip` direction of the icon.
|
|
203
206
|
*/
|
|
204
207
|
flip?: IconFlip;
|
|
208
|
+
/**
|
|
209
|
+
* Sets the `variant` of the SVG icon.
|
|
210
|
+
* Requires `@progress/kendo-svg-icons` version `5.0.0` or later.
|
|
211
|
+
*/
|
|
212
|
+
variant?: IconVariant;
|
|
205
213
|
}
|
|
206
214
|
|
|
207
215
|
/**
|
|
@@ -308,25 +316,38 @@ declare class IconWrapperComponent implements OnDestroy {
|
|
|
308
316
|
* Sets the name for an existing font icon in a Kendo UI theme to render.
|
|
309
317
|
* Supports all [Kendo UI Icons](https://www.telerik.com/kendo-angular-ui/components/styling/icons#icons-list).
|
|
310
318
|
*/
|
|
311
|
-
name: string;
|
|
319
|
+
set name(value: string);
|
|
320
|
+
get name(): string;
|
|
312
321
|
/**
|
|
313
322
|
* Sets the [SVGIcon](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgicon) to render.
|
|
314
323
|
*/
|
|
315
|
-
svgIcon: SVGIcon;
|
|
324
|
+
set svgIcon(value: SVGIcon);
|
|
325
|
+
get svgIcon(): SVGIcon;
|
|
316
326
|
/**
|
|
317
327
|
* Sets an additional class on the internal Icon component.
|
|
318
328
|
*/
|
|
319
|
-
innerCssClass: string;
|
|
329
|
+
set innerCssClass(value: string);
|
|
330
|
+
get innerCssClass(): string;
|
|
320
331
|
/**
|
|
321
332
|
* Sets a custom font icon class using the API of the consuming component.
|
|
322
333
|
*/
|
|
323
|
-
customFontClass: string;
|
|
334
|
+
set customFontClass(value: string);
|
|
335
|
+
get customFontClass(): string;
|
|
324
336
|
/**
|
|
325
337
|
* Sets the `IconSize` for the icon.
|
|
326
338
|
*/
|
|
327
|
-
size: IconSize;
|
|
339
|
+
set size(value: IconSize);
|
|
340
|
+
get size(): IconSize;
|
|
328
341
|
get customClasses(): string;
|
|
329
|
-
|
|
342
|
+
private _name;
|
|
343
|
+
private _svgIcon;
|
|
344
|
+
private _innerCssClass;
|
|
345
|
+
private _customFontClass;
|
|
346
|
+
private _size;
|
|
347
|
+
private _iconSettings;
|
|
348
|
+
get iconSettings(): IconSettings;
|
|
349
|
+
private readonly _resolvedSvgIcon;
|
|
350
|
+
get resolvedSvgIcon(): SVGIcon;
|
|
330
351
|
get hasSvgIcon(): boolean;
|
|
331
352
|
get customFontIconClass(): string;
|
|
332
353
|
private subs;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.0.0-develop.
|
|
10
|
+
"publishDate": 1785426668,
|
|
11
|
+
"version": "25.0.0-develop.13",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-icons",
|
|
3
|
-
"version": "25.0.0-develop.
|
|
3
|
+
"version": "25.0.0-develop.13",
|
|
4
4
|
"description": "Kendo UI Angular component starter template",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"package": {
|
|
32
32
|
"productName": "Kendo UI for Angular",
|
|
33
33
|
"productCode": "KENDOUIANGULAR",
|
|
34
|
-
"publishDate":
|
|
34
|
+
"publishDate": 1785426668,
|
|
35
35
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@angular/platform-browser": "20 - 22",
|
|
43
43
|
"@progress/kendo-licensing": "^1.11.0",
|
|
44
44
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
45
|
-
"@progress/kendo-angular-common": "25.0.0-develop.
|
|
45
|
+
"@progress/kendo-angular-common": "25.0.0-develop.13",
|
|
46
46
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"tslib": "^2.3.1",
|
|
55
|
-
"@progress/kendo-angular-schematics": "25.0.0-develop.
|
|
55
|
+
"@progress/kendo-angular-schematics": "25.0.0-develop.13"
|
|
56
56
|
},
|
|
57
57
|
"schematics": "./schematics/collection.json",
|
|
58
58
|
"module": "fesm2022/progress-kendo-angular-icons.mjs",
|