@progress/kendo-angular-icons 18.0.0-develop.10 → 18.0.0-develop.12
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.
|
@@ -9,13 +9,31 @@ import { IconSettingsService } from './icon-settings.service';
|
|
|
9
9
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The service responsible for handling changes in the icons settings. Should be included in the providers array when implementing the functionality in a standalone component.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* ```ts-no-run
|
|
17
|
+
* // Import the IconsService
|
|
18
|
+
* import { IconsService } from '@progress/kendo-angular-icons';
|
|
19
|
+
*
|
|
20
|
+
* // Define a standalone component
|
|
21
|
+
* @Component({
|
|
22
|
+
* selector: my-component,
|
|
23
|
+
* standalone: true,
|
|
24
|
+
* imports: [ ... ],
|
|
25
|
+
* providers: [IconsService, { provide: ICON_SETTINGS , useValue: { type: 'font' } }],
|
|
26
|
+
* template: ...
|
|
27
|
+
* })
|
|
28
|
+
* export class AppComponent {}
|
|
29
|
+
* ```
|
|
13
30
|
*/
|
|
14
31
|
export declare class IconsService implements OnDestroy {
|
|
15
32
|
private _iconSettings;
|
|
16
33
|
private iconSettingsService;
|
|
17
34
|
/**
|
|
18
35
|
* Notifies subscribers of the initial icon settings, and upon each call to `notify`.
|
|
36
|
+
* @hidden
|
|
19
37
|
*/
|
|
20
38
|
readonly changes: Subject<IconSettings>;
|
|
21
39
|
private subs;
|
|
@@ -28,11 +46,13 @@ export declare class IconsService implements OnDestroy {
|
|
|
28
46
|
/**
|
|
29
47
|
* Returns the [`SVGIcon`](slug:api_icons_svgicon) object for the provided key.
|
|
30
48
|
* Override in a custom service to provide custom SVG icons.
|
|
49
|
+
* @hidden
|
|
31
50
|
*/
|
|
32
51
|
getSvgIcon(name: string): SVGIcon;
|
|
33
52
|
/**
|
|
34
53
|
* Returns the list of classes to be rendered on the host `SPAN` element of custom font icons.
|
|
35
54
|
* Override in a custom service to provide classes for custom font icons.
|
|
55
|
+
* @hidden
|
|
36
56
|
*/
|
|
37
57
|
getCustomFontIconClass(key: string): string;
|
|
38
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconsService, [{ optional: true; }, { optional: true; }]>;
|
|
@@ -13,13 +13,31 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
import * as i1 from "./icon-settings.service";
|
|
14
14
|
const DEFAULT_ICON_SETTINGS = { type: 'svg' };
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* The service responsible for handling changes in the icons settings. Should be included in the providers array when implementing the functionality in a standalone component.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* ```ts-no-run
|
|
21
|
+
* // Import the IconsService
|
|
22
|
+
* import { IconsService } from '@progress/kendo-angular-icons';
|
|
23
|
+
*
|
|
24
|
+
* // Define a standalone component
|
|
25
|
+
* @Component({
|
|
26
|
+
* selector: my-component,
|
|
27
|
+
* standalone: true,
|
|
28
|
+
* imports: [ ... ],
|
|
29
|
+
* providers: [IconsService, { provide: ICON_SETTINGS , useValue: { type: 'font' } }],
|
|
30
|
+
* template: ...
|
|
31
|
+
* })
|
|
32
|
+
* export class AppComponent {}
|
|
33
|
+
* ```
|
|
17
34
|
*/
|
|
18
35
|
export class IconsService {
|
|
19
36
|
_iconSettings;
|
|
20
37
|
iconSettingsService;
|
|
21
38
|
/**
|
|
22
39
|
* Notifies subscribers of the initial icon settings, and upon each call to `notify`.
|
|
40
|
+
* @hidden
|
|
23
41
|
*/
|
|
24
42
|
changes = new BehaviorSubject(this.iconSettings || DEFAULT_ICON_SETTINGS);
|
|
25
43
|
subs = new Subscription();
|
|
@@ -47,6 +65,7 @@ export class IconsService {
|
|
|
47
65
|
/**
|
|
48
66
|
* Returns the [`SVGIcon`](slug:api_icons_svgicon) object for the provided key.
|
|
49
67
|
* Override in a custom service to provide custom SVG icons.
|
|
68
|
+
* @hidden
|
|
50
69
|
*/
|
|
51
70
|
getSvgIcon(name) {
|
|
52
71
|
const customIcon = this.iconSettingsService && this.iconSettingsService.getSvgIcon(name);
|
|
@@ -55,6 +74,7 @@ export class IconsService {
|
|
|
55
74
|
/**
|
|
56
75
|
* Returns the list of classes to be rendered on the host `SPAN` element of custom font icons.
|
|
57
76
|
* Override in a custom service to provide classes for custom font icons.
|
|
77
|
+
* @hidden
|
|
58
78
|
*/
|
|
59
79
|
getCustomFontIconClass(key) {
|
|
60
80
|
const customClass = this.iconSettingsService && this.iconSettingsService.getCustomFontIconClass(key);
|
|
@@ -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:
|
|
13
|
-
version: '18.0.0-develop.
|
|
12
|
+
publishDate: 1737100531,
|
|
13
|
+
version: '18.0.0-develop.12',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -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:
|
|
22
|
-
version: '18.0.0-develop.
|
|
21
|
+
publishDate: 1737100531,
|
|
22
|
+
version: '18.0.0-develop.12',
|
|
23
23
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -348,13 +348,31 @@ const ICON_SETTINGS = new InjectionToken('Kendo UI Icon-Settings token');
|
|
|
348
348
|
|
|
349
349
|
const DEFAULT_ICON_SETTINGS = { type: 'svg' };
|
|
350
350
|
/**
|
|
351
|
-
*
|
|
351
|
+
* The service responsible for handling changes in the icons settings. Should be included in the providers array when implementing the functionality in a standalone component.
|
|
352
|
+
*
|
|
353
|
+
* @example
|
|
354
|
+
*
|
|
355
|
+
* ```ts-no-run
|
|
356
|
+
* // Import the IconsService
|
|
357
|
+
* import { IconsService } from '@progress/kendo-angular-icons';
|
|
358
|
+
*
|
|
359
|
+
* // Define a standalone component
|
|
360
|
+
* @Component({
|
|
361
|
+
* selector: my-component,
|
|
362
|
+
* standalone: true,
|
|
363
|
+
* imports: [ ... ],
|
|
364
|
+
* providers: [IconsService, { provide: ICON_SETTINGS , useValue: { type: 'font' } }],
|
|
365
|
+
* template: ...
|
|
366
|
+
* })
|
|
367
|
+
* export class AppComponent {}
|
|
368
|
+
* ```
|
|
352
369
|
*/
|
|
353
370
|
class IconsService {
|
|
354
371
|
_iconSettings;
|
|
355
372
|
iconSettingsService;
|
|
356
373
|
/**
|
|
357
374
|
* Notifies subscribers of the initial icon settings, and upon each call to `notify`.
|
|
375
|
+
* @hidden
|
|
358
376
|
*/
|
|
359
377
|
changes = new BehaviorSubject(this.iconSettings || DEFAULT_ICON_SETTINGS);
|
|
360
378
|
subs = new Subscription();
|
|
@@ -382,6 +400,7 @@ class IconsService {
|
|
|
382
400
|
/**
|
|
383
401
|
* Returns the [`SVGIcon`](slug:api_icons_svgicon) object for the provided key.
|
|
384
402
|
* Override in a custom service to provide custom SVG icons.
|
|
403
|
+
* @hidden
|
|
385
404
|
*/
|
|
386
405
|
getSvgIcon(name) {
|
|
387
406
|
const customIcon = this.iconSettingsService && this.iconSettingsService.getSvgIcon(name);
|
|
@@ -390,6 +409,7 @@ class IconsService {
|
|
|
390
409
|
/**
|
|
391
410
|
* Returns the list of classes to be rendered on the host `SPAN` element of custom font icons.
|
|
392
411
|
* Override in a custom service to provide classes for custom font icons.
|
|
412
|
+
* @hidden
|
|
393
413
|
*/
|
|
394
414
|
getCustomFontIconClass(key) {
|
|
395
415
|
const customClass = this.iconSettingsService && this.iconSettingsService.getCustomFontIconClass(key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-icons",
|
|
3
|
-
"version": "18.0.0-develop.
|
|
3
|
+
"version": "18.0.0-develop.12",
|
|
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": "18.0.0-develop.
|
|
25
|
+
"@progress/kendo-angular-common": "18.0.0-develop.12",
|
|
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": "18.0.0-develop.
|
|
30
|
+
"@progress/kendo-angular-schematics": "18.0.0-develop.12"
|
|
31
31
|
},
|
|
32
32
|
"schematics": "./schematics/collection.json",
|
|
33
33
|
"module": "fesm2022/progress-kendo-angular-icons.mjs",
|