@progress/kendo-angular-icons 2.0.3 → 11.0.0-develop.79
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/NOTICE.txt +3 -3
- package/common/icon-base.d.ts +1 -1
- package/common/icon-settings.d.ts +10 -0
- package/common/icon-settings.service.d.ts +40 -0
- package/common/icons.service.d.ts +40 -0
- package/common/models/flip.d.ts +1 -1
- package/common/models/icon-settings.d.ts +14 -0
- package/common/models/icon-type.d.ts +5 -0
- package/common/models/index.d.ts +3 -1
- package/common/models/size.d.ts +1 -1
- package/common/models/theme-color.d.ts +1 -1
- package/common/util.d.ts +8 -0
- package/{esm2015/common/icon-base.js → esm2020/common/icon-base.mjs} +11 -10
- package/esm2020/common/icon-settings.mjs +9 -0
- package/esm2020/common/icon-settings.service.mjs +50 -0
- package/esm2020/common/icons.service.mjs +68 -0
- package/{esm2015/common/models/size.js → esm2020/common/models/flip.mjs} +1 -1
- package/{esm2015/common/models/theme-color.js → esm2020/common/models/icon-settings.mjs} +1 -1
- package/{esm2015/common/models/flip.js → esm2020/common/models/icon-type.mjs} +1 -1
- package/esm2020/common/models/index.mjs +6 -0
- package/{esm2015/common/models/index.js → esm2020/common/models/size.mjs} +1 -1
- package/esm2020/common/models/theme-color.mjs +5 -0
- package/esm2020/common/util.mjs +8 -0
- package/{esm2015/icon/icon.component.js → esm2020/icon/icon.component.mjs} +12 -11
- package/esm2020/icon-wrapper/icon-wrapper.component.mjs +105 -0
- package/{esm2015/icon.module.js → esm2020/icon.module.mjs} +6 -6
- package/{esm2015/icons.module.js → esm2020/icons.module.mjs} +27 -8
- package/{esm2015/main.js → esm2020/index.mjs} +5 -1
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-icons.js → esm2020/progress-kendo-angular-icons.mjs} +2 -2
- package/{esm2015/svg-icon/svg-icon.component.js → esm2020/svg-icon/svg-icon.component.mjs} +11 -7
- package/{esm2015/svg-icon.module.js → esm2020/svg-icon.module.mjs} +5 -5
- package/fesm2015/progress-kendo-angular-icons.mjs +619 -0
- package/{fesm2015/kendo-angular-icons.js → fesm2020/progress-kendo-angular-icons.mjs} +283 -55
- package/icon/icon.component.d.ts +1 -1
- package/icon-wrapper/icon-wrapper.component.d.ts +43 -0
- package/icon.module.d.ts +2 -2
- package/icons.module.d.ts +5 -4
- package/{main.d.ts → index.d.ts} +7 -2
- package/package-metadata.d.ts +1 -1
- package/package.json +27 -54
- package/{kendo-angular-icons.d.ts → progress-kendo-angular-icons.d.ts} +2 -2
- package/schematics/ngAdd/index.js +1 -5
- package/svg-icon/svg-icon.component.d.ts +1 -1
- package/svg-icon.module.d.ts +1 -1
- package/bundles/kendo-angular-icons.umd.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
+
import { IconsService } from './common/icons.service';
|
|
7
|
+
import { IconWrapperComponent } from './icon-wrapper/icon-wrapper.component';
|
|
6
8
|
import { IconModule } from './icon.module';
|
|
7
9
|
import { SVGIconModule } from './svg-icon.module';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
const exportedModules = [
|
|
12
|
+
IconWrapperComponent
|
|
13
|
+
];
|
|
14
|
+
const declarations = [
|
|
15
|
+
...exportedModules
|
|
16
|
+
];
|
|
9
17
|
/**
|
|
10
18
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
11
19
|
* definition for the Icons components.
|
|
@@ -39,17 +47,28 @@ import * as i0 from "@angular/core";
|
|
|
39
47
|
*/
|
|
40
48
|
export class IconsModule {
|
|
41
49
|
}
|
|
42
|
-
IconsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
IconsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
50
|
+
IconsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
51
|
+
IconsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconsModule, declarations: [IconWrapperComponent], imports: [IconModule,
|
|
52
|
+
SVGIconModule], exports: [IconModule,
|
|
53
|
+
SVGIconModule, IconWrapperComponent] });
|
|
54
|
+
IconsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconsModule, providers: [IconsService], imports: [[
|
|
55
|
+
IconModule,
|
|
56
|
+
SVGIconModule
|
|
57
|
+
], IconModule,
|
|
44
58
|
SVGIconModule] });
|
|
45
|
-
|
|
46
|
-
SVGIconModule] });
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconsModule, decorators: [{
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconsModule, decorators: [{
|
|
48
60
|
type: NgModule,
|
|
49
61
|
args: [{
|
|
50
|
-
|
|
62
|
+
declarations,
|
|
63
|
+
imports: [
|
|
51
64
|
IconModule,
|
|
52
65
|
SVGIconModule
|
|
53
|
-
]
|
|
66
|
+
],
|
|
67
|
+
exports: [
|
|
68
|
+
IconModule,
|
|
69
|
+
SVGIconModule,
|
|
70
|
+
exportedModules
|
|
71
|
+
],
|
|
72
|
+
providers: [IconsService]
|
|
54
73
|
}]
|
|
55
74
|
}] });
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export { IconComponent } from './icon/icon.component';
|
|
6
6
|
export { SVGIconComponent } from './svg-icon/svg-icon.component';
|
|
7
|
+
export { IconWrapperComponent } from './icon-wrapper/icon-wrapper.component';
|
|
7
8
|
export { IconModule } from './icon.module';
|
|
8
9
|
export { SVGIconModule } from './svg-icon.module';
|
|
9
10
|
export { IconsModule } from './icons.module';
|
|
11
|
+
export { IconsService } from './common/icons.service';
|
|
12
|
+
export { IconSettingsService } from './common/icon-settings.service';
|
|
13
|
+
export { ICON_SETTINGS } from './common/icon-settings';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-icons',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1672320624,
|
|
13
13
|
version: '',
|
|
14
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
14
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './index';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, HostBinding, isDevMode } from '@angular/core';
|
|
5
|
+
import { Component, ElementRef, Input, Renderer2, HostBinding, isDevMode } from '@angular/core';
|
|
6
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
6
7
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
8
|
import { IconBaseDirective } from '../common/icon-base';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
@@ -24,11 +25,14 @@ export class SVGIconComponent extends IconBaseDirective {
|
|
|
24
25
|
*/
|
|
25
26
|
set icon(icon) {
|
|
26
27
|
const element = this.element.nativeElement;
|
|
27
|
-
|
|
28
|
+
const hasDocument = isDocumentAvailable();
|
|
29
|
+
if (this._icon && this._icon.name && hasDocument) {
|
|
28
30
|
this.renderer.removeClass(element, `k-svg-i-${this._icon.name}`);
|
|
29
31
|
}
|
|
30
32
|
this._icon = icon;
|
|
31
|
-
|
|
33
|
+
if (hasDocument) {
|
|
34
|
+
this.renderer.addClass(element, `k-svg-i-${this._icon.name}`);
|
|
35
|
+
}
|
|
32
36
|
}
|
|
33
37
|
get icon() {
|
|
34
38
|
return this._icon;
|
|
@@ -56,12 +60,12 @@ export class SVGIconComponent extends IconBaseDirective {
|
|
|
56
60
|
}
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
|
-
SVGIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
60
|
-
SVGIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
63
|
+
SVGIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SVGIconComponent, deps: [{ token: i1.DomSanitizer }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
+
SVGIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SVGIconComponent, selector: "kendo-svg-icon", inputs: { icon: "icon" }, host: { properties: { "class.k-svg-icon": "this.hostClass" } }, exportAs: ["kendoSVGIcon"], usesInheritance: true, ngImport: i0, template: `
|
|
61
65
|
<svg *ngIf="visible" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
62
66
|
[attr.viewBox]="icon.viewBox" [innerHTML]="content">
|
|
63
67
|
</svg>`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SVGIconComponent, decorators: [{
|
|
65
69
|
type: Component,
|
|
66
70
|
args: [{
|
|
67
71
|
exportAs: 'kendoSVGIcon',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
@@ -45,10 +45,10 @@ const declarations = [
|
|
|
45
45
|
*/
|
|
46
46
|
export class SVGIconModule {
|
|
47
47
|
}
|
|
48
|
-
SVGIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
SVGIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
50
|
-
SVGIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
+
SVGIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SVGIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
49
|
+
SVGIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SVGIconModule, declarations: [SVGIconComponent], imports: [CommonModule], exports: [SVGIconComponent] });
|
|
50
|
+
SVGIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SVGIconModule, imports: [[CommonModule]] });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SVGIconModule, decorators: [{
|
|
52
52
|
type: NgModule,
|
|
53
53
|
args: [{
|
|
54
54
|
declarations: [declarations],
|