@progress/kendo-angular-icons 2.0.3 → 11.0.0-develop.100

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.
Files changed (49) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +4 -4
  3. package/README.md +1 -1
  4. package/common/icon-base.d.ts +1 -1
  5. package/common/icon-settings.d.ts +10 -0
  6. package/common/icon-settings.service.d.ts +40 -0
  7. package/common/icons.service.d.ts +40 -0
  8. package/common/models/flip.d.ts +1 -1
  9. package/common/models/icon-settings.d.ts +14 -0
  10. package/common/models/icon-type.d.ts +5 -0
  11. package/common/models/index.d.ts +3 -1
  12. package/common/models/size.d.ts +1 -1
  13. package/common/models/theme-color.d.ts +1 -1
  14. package/common/util.d.ts +8 -0
  15. package/{esm2015/common/icon-base.js → esm2020/common/icon-base.mjs} +11 -10
  16. package/esm2020/common/icon-settings.mjs +9 -0
  17. package/esm2020/common/icon-settings.service.mjs +50 -0
  18. package/esm2020/common/icons.service.mjs +68 -0
  19. package/{esm2015/common/models/size.js → esm2020/common/models/flip.mjs} +1 -1
  20. package/{esm2015/common/models/theme-color.js → esm2020/common/models/icon-settings.mjs} +1 -1
  21. package/{esm2015/common/models/flip.js → esm2020/common/models/icon-type.mjs} +1 -1
  22. package/esm2020/common/models/index.mjs +6 -0
  23. package/{esm2015/common/models/index.js → esm2020/common/models/size.mjs} +1 -1
  24. package/esm2020/common/models/theme-color.mjs +5 -0
  25. package/esm2020/common/util.mjs +8 -0
  26. package/{esm2015/icon/icon.component.js → esm2020/icon/icon.component.mjs} +12 -11
  27. package/esm2020/icon-wrapper/icon-wrapper.component.mjs +109 -0
  28. package/{esm2015/icon.module.js → esm2020/icon.module.mjs} +6 -6
  29. package/{esm2015/icons.module.js → esm2020/icons.module.mjs} +27 -8
  30. package/{esm2015/main.js → esm2020/index.mjs} +5 -1
  31. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  32. package/{esm2015/kendo-angular-icons.js → esm2020/progress-kendo-angular-icons.mjs} +2 -2
  33. package/{esm2015/svg-icon/svg-icon.component.js → esm2020/svg-icon/svg-icon.component.mjs} +12 -9
  34. package/{esm2015/svg-icon.module.js → esm2020/svg-icon.module.mjs} +5 -5
  35. package/fesm2015/progress-kendo-angular-icons.mjs +622 -0
  36. package/{fesm2015/kendo-angular-icons.js → fesm2020/progress-kendo-angular-icons.mjs} +288 -57
  37. package/icon/icon.component.d.ts +1 -1
  38. package/icon-wrapper/icon-wrapper.component.d.ts +44 -0
  39. package/icon.module.d.ts +2 -2
  40. package/icons.module.d.ts +5 -4
  41. package/{main.d.ts → index.d.ts} +7 -2
  42. package/package-metadata.d.ts +1 -1
  43. package/package.json +27 -54
  44. package/{kendo-angular-icons.d.ts → progress-kendo-angular-icons.d.ts} +2 -2
  45. package/schematics/ngAdd/index.js +1 -5
  46. package/svg-icon/svg-icon.component.d.ts +1 -1
  47. package/svg-icon.module.d.ts +1 -1
  48. package/bundles/kendo-angular-icons.umd.js +0 -5
  49. package/schematics/ngAdd/index.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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,14 +45,14 @@ const declarations = [
45
45
  */
46
46
  export class IconModule {
47
47
  }
48
- IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
- IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconModule, declarations: [IconComponent], imports: [CommonModule], exports: [IconComponent] });
50
- IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconModule, imports: [[CommonModule]] });
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconModule, decorators: [{
48
+ IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
+ IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconModule, declarations: [IconComponent], imports: [CommonModule], exports: [IconComponent, CommonModule] });
50
+ IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconModule, imports: [[CommonModule], CommonModule] });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: IconModule, decorators: [{
52
52
  type: NgModule,
53
53
  args: [{
54
54
  declarations: [declarations],
55
- exports: [exportedModules],
55
+ exports: [exportedModules, CommonModule],
56
56
  imports: [CommonModule]
57
57
  }]
58
58
  }] });
@@ -1,11 +1,19 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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: "12.2.16", ngImport: i0, type: IconsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
- IconsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconsModule, exports: [IconModule,
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
- IconsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: IconsModule, imports: [IconModule,
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
- exports: [
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 © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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 © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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: 1668698255,
12
+ publishDate: 1673469086,
13
13
  version: '',
14
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
14
+ licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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 './main';
8
+ export * from './index';
@@ -1,8 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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,18 +25,20 @@ export class SVGIconComponent extends IconBaseDirective {
24
25
  */
25
26
  set icon(icon) {
26
27
  const element = this.element.nativeElement;
27
- if (this._icon && this._icon.name) {
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
- this.renderer.addClass(element, `k-svg-i-${this._icon.name}`);
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;
35
39
  }
36
40
  get content() {
37
- this.safeContent = this.safeContent || this.domSanitizer.bypassSecurityTrustHtml(this.icon.content);
38
- return this.safeContent;
41
+ return this.domSanitizer.bypassSecurityTrustHtml(this.icon.content);
39
42
  }
40
43
  get visible() {
41
44
  return this.icon && isDocumentAvailable();
@@ -56,12 +59,12 @@ export class SVGIconComponent extends IconBaseDirective {
56
59
  }
57
60
  }
58
61
  }
59
- SVGIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SVGIconComponent, deps: [{ token: i1.DomSanitizer }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
60
- SVGIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SVGIconComponent, selector: "kendo-svg-icon", inputs: { icon: "icon" }, host: { properties: { "class.k-svg-icon": "this.hostClass" } }, exportAs: ["kendoSVGIcon"], usesInheritance: true, ngImport: i0, template: `
62
+ 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 });
63
+ 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
64
  <svg *ngIf="visible" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
62
65
  [attr.viewBox]="icon.viewBox" [innerHTML]="content">
63
66
  </svg>`, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SVGIconComponent, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SVGIconComponent, decorators: [{
65
68
  type: Component,
66
69
  args: [{
67
70
  exportAs: 'kendoSVGIcon',
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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: "12.2.16", ngImport: i0, type: SVGIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
- SVGIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SVGIconModule, declarations: [SVGIconComponent], imports: [CommonModule], exports: [SVGIconComponent] });
50
- SVGIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SVGIconModule, imports: [[CommonModule]] });
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SVGIconModule, decorators: [{
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],