@progress/kendo-angular-icons 17.1.2-develop.5 → 17.2.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.
@@ -35,7 +35,6 @@ export declare class IconsService implements OnDestroy {
35
35
  * Override in a custom service to provide classes for custom font icons.
36
36
  */
37
37
  getCustomFontIconClass(key: string): string;
38
- private areSettingsEqual;
39
38
  static ɵfac: i0.ɵɵFactoryDeclaration<IconsService, [{ optional: true; }, { optional: true; }]>;
40
39
  static ɵprov: i0.ɵɵInjectableDeclaration<IconsService>;
41
40
  }
@@ -8,6 +8,7 @@ import { map, tap } from 'rxjs/operators';
8
8
  import { isPresent } from './../common/util';
9
9
  import { IconSettingsService } from './icon-settings.service';
10
10
  import { ICON_SETTINGS } from './icon-settings';
11
+ import { areObjectsEqual } from '@progress/kendo-angular-common';
11
12
  import * as i0 from "@angular/core";
12
13
  import * as i1 from "./icon-settings.service";
13
14
  const DEFAULT_ICON_SETTINGS = { type: 'svg' };
@@ -30,7 +31,7 @@ export class IconsService {
30
31
  .pipe(map(iconSettings => isPresent(iconSettings) ? iconSettings : this._iconSettings), tap(iconSettings => this._iconSettings = iconSettings))
31
32
  .subscribe(iconSettings => this.changes.next(iconSettings)));
32
33
  }
33
- if (isPresent(this.iconSettings) && !this.areSettingsEqual()) {
34
+ if (isPresent(this.iconSettings) && !areObjectsEqual(this.iconSettings, DEFAULT_ICON_SETTINGS)) {
34
35
  this.changes.next(this.iconSettings);
35
36
  }
36
37
  }
@@ -59,14 +60,6 @@ export class IconsService {
59
60
  const customClass = this.iconSettingsService && this.iconSettingsService.getCustomFontIconClass(key);
60
61
  return customClass;
61
62
  }
62
- areSettingsEqual() {
63
- if (Object.keys(this.iconSettings).length !== Object.keys(DEFAULT_ICON_SETTINGS).length) {
64
- return false;
65
- }
66
- const equalSettings = Object.entries(this.iconSettings)
67
- .filter(([key, value]) => value === DEFAULT_ICON_SETTINGS[key.toString()]);
68
- return equalSettings.length === Object.keys(this.iconSettings).length;
69
- }
70
63
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconsService, deps: [{ token: ICON_SETTINGS, optional: true }, { token: i1.IconSettingsService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
71
64
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconsService, providedIn: 'root' });
72
65
  }
@@ -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: 1734360626,
13
- version: '17.1.2-develop.5',
12
+ publishDate: 1734429988,
13
+ version: '17.2.0-develop.2',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
6
  import { Directive, HostBinding, Input, Component, isDevMode, ChangeDetectionStrategy, Injectable, InjectionToken, Optional, Inject, NgModule } from '@angular/core';
7
- import { isDocumentAvailable } from '@progress/kendo-angular-common';
7
+ import { isDocumentAvailable, areObjectsEqual } from '@progress/kendo-angular-common';
8
8
  import { validatePackage } from '@progress/kendo-licensing';
9
9
  import * as i1 from '@angular/platform-browser';
10
10
  import { NgIf, NgClass } from '@angular/common';
@@ -18,8 +18,8 @@ const packageMetadata = {
18
18
  name: '@progress/kendo-angular-icons',
19
19
  productName: 'Kendo UI for Angular',
20
20
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
21
- publishDate: 1734360626,
22
- version: '17.1.2-develop.5',
21
+ publishDate: 1734429988,
22
+ version: '17.2.0-develop.2',
23
23
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
24
24
  };
25
25
 
@@ -366,7 +366,7 @@ class IconsService {
366
366
  .pipe(map(iconSettings => isPresent(iconSettings) ? iconSettings : this._iconSettings), tap(iconSettings => this._iconSettings = iconSettings))
367
367
  .subscribe(iconSettings => this.changes.next(iconSettings)));
368
368
  }
369
- if (isPresent(this.iconSettings) && !this.areSettingsEqual()) {
369
+ if (isPresent(this.iconSettings) && !areObjectsEqual(this.iconSettings, DEFAULT_ICON_SETTINGS)) {
370
370
  this.changes.next(this.iconSettings);
371
371
  }
372
372
  }
@@ -395,14 +395,6 @@ class IconsService {
395
395
  const customClass = this.iconSettingsService && this.iconSettingsService.getCustomFontIconClass(key);
396
396
  return customClass;
397
397
  }
398
- areSettingsEqual() {
399
- if (Object.keys(this.iconSettings).length !== Object.keys(DEFAULT_ICON_SETTINGS).length) {
400
- return false;
401
- }
402
- const equalSettings = Object.entries(this.iconSettings)
403
- .filter(([key, value]) => value === DEFAULT_ICON_SETTINGS[key.toString()]);
404
- return equalSettings.length === Object.keys(this.iconSettings).length;
405
- }
406
398
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconsService, deps: [{ token: ICON_SETTINGS, optional: true }, { token: IconSettingsService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
407
399
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconsService, providedIn: 'root' });
408
400
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-icons",
3
- "version": "17.1.2-develop.5",
3
+ "version": "17.2.0-develop.2",
4
4
  "description": "Kendo UI Angular component starter template",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -22,12 +22,12 @@
22
22
  "@angular/platform-browser": "16 - 19",
23
23
  "@progress/kendo-licensing": "^1.0.2",
24
24
  "@progress/kendo-svg-icons": "^4.0.0",
25
- "@progress/kendo-angular-common": "17.1.2-develop.5",
25
+ "@progress/kendo-angular-common": "17.2.0-develop.2",
26
26
  "rxjs": "^6.5.3 || ^7.0.0"
27
27
  },
28
28
  "dependencies": {
29
29
  "tslib": "^2.3.1",
30
- "@progress/kendo-angular-schematics": "17.1.2-develop.5"
30
+ "@progress/kendo-angular-schematics": "17.2.0-develop.2"
31
31
  },
32
32
  "schematics": "./schematics/collection.json",
33
33
  "module": "fesm2022/progress-kendo-angular-icons.mjs",