@progress/kendo-angular-typography 21.4.1 → 22.0.0

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.
@@ -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 { Directive, Input, NgModule } from '@angular/core';
6
+ import { Input, Directive, NgModule } from '@angular/core';
7
7
  import { validatePackage } from '@progress/kendo-licensing';
8
8
 
9
9
  /**
@@ -73,8 +73,8 @@ const packageMetadata = {
73
73
  productName: 'Kendo UI for Angular',
74
74
  productCode: 'KENDOUIANGULAR',
75
75
  productCodes: ['KENDOUIANGULAR'],
76
- publishDate: 1768393350,
77
- version: '21.4.1',
76
+ publishDate: 1768402549,
77
+ version: '22.0.0',
78
78
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
79
79
  };
80
80
 
@@ -162,10 +162,10 @@ class TypographyDirective {
162
162
  }
163
163
  });
164
164
  }
165
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
166
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: TypographyDirective, isStandalone: true, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor" }, exportAs: ["kendoTypography"], usesOnChanges: true, ngImport: i0 });
165
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TypographyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
166
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TypographyDirective, isStandalone: true, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor" }, exportAs: ["kendoTypography"], usesOnChanges: true, ngImport: i0 });
167
167
  }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyDirective, decorators: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TypographyDirective, decorators: [{
169
169
  type: Directive,
170
170
  args: [{
171
171
  selector: '[kendoTypography]',
@@ -240,11 +240,11 @@ const KENDO_TYPOGRAPHY = [
240
240
  * ```
241
241
  */
242
242
  class TypographyModule {
243
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
244
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule, imports: [TypographyDirective], exports: [TypographyDirective] });
245
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule });
243
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
244
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: TypographyModule, imports: [TypographyDirective], exports: [TypographyDirective] });
245
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TypographyModule });
246
246
  }
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule, decorators: [{
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TypographyModule, decorators: [{
248
248
  type: NgModule,
249
249
  args: [{
250
250
  imports: [...KENDO_TYPOGRAPHY],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-typography",
3
- "version": "21.4.1",
3
+ "version": "22.0.0",
4
4
  "description": "Kendo UI Angular Typography",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -15,26 +15,20 @@
15
15
  "Typography"
16
16
  ],
17
17
  "@progress": {
18
- "friendlyName": "Typography",
19
- "package": {
20
- "productName": "Kendo UI for Angular",
21
- "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1768393350,
23
- "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
- }
18
+ "friendlyName": "Typography"
25
19
  },
26
20
  "peerDependencies": {
27
- "@angular/animations": "18 - 21",
28
- "@angular/common": "18 - 21",
29
- "@angular/core": "18 - 21",
30
- "@angular/platform-browser": "18 - 21",
21
+ "@angular/animations": "19 - 21",
22
+ "@angular/common": "19 - 21",
23
+ "@angular/core": "19 - 21",
24
+ "@angular/platform-browser": "19 - 21",
31
25
  "@progress/kendo-licensing": "^1.7.0",
32
- "@progress/kendo-angular-common": "21.4.1",
26
+ "@progress/kendo-angular-common": "22.0.0",
33
27
  "rxjs": "^6.5.3 || ^7.0.0"
34
28
  },
35
29
  "dependencies": {
36
30
  "tslib": "^2.3.1",
37
- "@progress/kendo-angular-schematics": "21.4.1"
31
+ "@progress/kendo-angular-schematics": "22.0.0"
38
32
  },
39
33
  "schematics": "./schematics/collection.json",
40
34
  "module": "fesm2022/progress-kendo-angular-typography.mjs",
@@ -45,8 +39,6 @@
45
39
  },
46
40
  ".": {
47
41
  "types": "./index.d.ts",
48
- "esm2022": "./esm2022/progress-kendo-angular-typography.mjs",
49
- "esm": "./esm2022/progress-kendo-angular-typography.mjs",
50
42
  "default": "./fesm2022/progress-kendo-angular-typography.mjs"
51
43
  }
52
44
  },
@@ -1,25 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TypographyDirective } from "./typography.directive";
6
- /**
7
- * Use this utility array to access all `@progress/kendo-angular-typography`-related components and directives in a standalone Angular component.
8
- *
9
- * @example
10
- * ```typescript
11
- * import { Component } from '@angular/core';
12
- * import { KENDO_TYPOGRAPHY } from '@progress/kendo-angular-typography';
13
- *
14
- * @Component({
15
- * selector: 'my-app',
16
- * standalone: true,
17
- * imports: [KENDO_TYPOGRAPHY],
18
- * template: `<div kendoTypography variant="k-h1"></div>`
19
- * })
20
- * export class AppComponent {}
21
- * ```
22
- */
23
- export const KENDO_TYPOGRAPHY = [
24
- TypographyDirective
25
- ];
package/esm2022/index.mjs DELETED
@@ -1,7 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export { TypographyModule } from './typography.module';
6
- export { TypographyDirective } from './typography.directive';
7
- export * from './directives';
@@ -1,14 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const typographyFontSizeOptions = {
9
- 'xs': 'k-fs-xs',
10
- 'sm': 'k-fs-sm',
11
- 'md': 'k-fs-md',
12
- 'lg': 'k-fs-lg',
13
- 'xl': 'k-fs-xl'
14
- };
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const typographyFontWeightOptions = {
9
- 'light': 'k-font-weight-light',
10
- 'normal': 'k-font-weight-normal',
11
- 'bold': 'k-font-weight-bold'
12
- };
@@ -1,13 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const typographyTextAlignOptions = {
9
- 'left': 'k-text-left',
10
- 'right': 'k-text-right',
11
- 'center': 'k-text-center',
12
- 'justify': 'k-text-justify'
13
- };
@@ -1,12 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const typographyTextTransformOptions = {
9
- 'lowercase': 'k-text-lowercase',
10
- 'uppercase': 'k-text-uppercase',
11
- 'capitalize': 'k-text-capitalize'
12
- };
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Sets the theme color.
7
- *
8
- * You can use these values:
9
- * * `inherit` (Default)&mdash;Uses coloring based on the current color.
10
- * * `primary`&mdash;Uses coloring based on primary theme color.
11
- * * `secondary`&mdash;Uses coloring based on secondary theme color.
12
- * * `tertiary`&mdash;Uses coloring based on tertiary theme color.
13
- * * `info`&mdash;Uses coloring based on info theme color.
14
- * * `success`&mdash;Uses coloring based on success theme color.
15
- * * `warning`&mdash;Uses coloring based on warning theme color.
16
- * * `error`&mdash;Uses coloring based on error theme color.
17
- * * `dark`&mdash;Uses coloring based on dark theme color.
18
- * * `light`&mdash;Uses coloring based on light theme color.
19
- * * `inverse`&mdash;Uses coloring based on inverse theme color.
20
- */
21
- export {};
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const typographyVariantOptions = {
9
- 'p': 'k-paragraph',
10
- 'h1': 'k-h1',
11
- 'h2': 'k-h2',
12
- 'h3': 'k-h3',
13
- 'h4': 'k-h4',
14
- 'h5': 'k-h5',
15
- 'h6': 'k-h6',
16
- 'code': 'k-code',
17
- 'pre': 'k-pre'
18
- };
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const packageMetadata = {
9
- name: '@progress/kendo-angular-typography',
10
- productName: 'Kendo UI for Angular',
11
- productCode: 'KENDOUIANGULAR',
12
- productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1768393350,
14
- version: '21.4.1',
15
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
- };
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './index';
@@ -1,121 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Input, ElementRef, Renderer2 } from '@angular/core';
6
- import { typographyFontSizeOptions } from './models/font-size';
7
- import { typographyFontWeightOptions } from './models/font-weight';
8
- import { typographyTextAlignOptions } from './models/text-align';
9
- import { typographyTextTransformOptions } from './models/text-transform';
10
- import { typographyVariantOptions } from './models/variant';
11
- import { isPresent } from './utils';
12
- import { validatePackage } from '@progress/kendo-licensing';
13
- import { packageMetadata } from './package-metadata';
14
- import * as i0 from "@angular/core";
15
- /**
16
- * Represents the [Kendo UI Typography directive for Angular]({% slug overview_typography %}).
17
- * Use this directive to represent element types in a uniform way by relying on the predefined Kendo theme classes.
18
- *
19
- * @example
20
- * ```html
21
- * <div kendoTypography variant="k-h1"></div>
22
- * ```
23
- */
24
- export class TypographyDirective {
25
- elementWrapper;
26
- renderer;
27
- element;
28
- /**
29
- * Specifies the element `variant` class that will be applied.
30
- */
31
- variant;
32
- /**
33
- * Sets the element `font-size` style.
34
- */
35
- fontSize;
36
- /**
37
- * Sets the element `font-weight` style.
38
- */
39
- fontWeight;
40
- /**
41
- * Sets the element `text-align` style.
42
- */
43
- textAlign;
44
- /**
45
- * Sets the element `text-transform` style.
46
- */
47
- textTransform;
48
- /**
49
- * Applies the `theme-color` to the element.
50
- */
51
- themeColor;
52
- typographyClasses = [];
53
- constructor(elementWrapper, renderer, element) {
54
- this.elementWrapper = elementWrapper;
55
- this.renderer = renderer;
56
- this.element = element;
57
- validatePackage(packageMetadata);
58
- }
59
- ngOnChanges() {
60
- this.setTypographyClasses();
61
- }
62
- variantClass() {
63
- return typographyVariantOptions[this.variant];
64
- }
65
- themeColorClass() {
66
- return isPresent(this.themeColor) ? `k-color-${this.themeColor}` : null;
67
- }
68
- textAlignClass() {
69
- return typographyTextAlignOptions[this.textAlign];
70
- }
71
- fontWeightClass() {
72
- return typographyFontWeightOptions[this.fontWeight];
73
- }
74
- fontSizeClass() {
75
- return typographyFontSizeOptions[this.fontSize];
76
- }
77
- textTransformClass() {
78
- return typographyTextTransformOptions[this.textTransform];
79
- }
80
- setTypographyClasses() {
81
- const element = this.element.nativeElement;
82
- this.typographyClasses.forEach((className) => {
83
- this.renderer.removeClass(element, className);
84
- });
85
- this.typographyClasses = [
86
- this.variantClass(),
87
- this.fontSizeClass(),
88
- this.fontWeightClass(),
89
- this.textTransformClass(),
90
- this.textAlignClass(),
91
- this.themeColorClass()
92
- ];
93
- this.typographyClasses.forEach((className) => {
94
- if (isPresent(className)) {
95
- this.renderer.addClass(element, className);
96
- }
97
- });
98
- }
99
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
100
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: TypographyDirective, isStandalone: true, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor" }, exportAs: ["kendoTypography"], usesOnChanges: true, ngImport: i0 });
101
- }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyDirective, decorators: [{
103
- type: Directive,
104
- args: [{
105
- selector: '[kendoTypography]',
106
- exportAs: 'kendoTypography',
107
- standalone: true
108
- }]
109
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { variant: [{
110
- type: Input
111
- }], fontSize: [{
112
- type: Input
113
- }], fontWeight: [{
114
- type: Input
115
- }], textAlign: [{
116
- type: Input
117
- }], textTransform: [{
118
- type: Input
119
- }], themeColor: [{
120
- type: Input
121
- }] } });
@@ -1,52 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { NgModule } from '@angular/core';
6
- import { KENDO_TYPOGRAPHY } from './directives';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "./typography.directive";
9
- //IMPORTANT: NgModule export kept for backwards compatibility
10
- /**
11
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
12
- * definition for the Typography component.
13
- *
14
- * @example
15
- *
16
- * ```ts-no-run
17
- * // Import the Typography module
18
- * import { TypographyModule } from '@progress/kendo-angular-typography';
19
- *
20
- * // The browser platform with a compiler
21
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
22
- *
23
- * import { NgModule } from '@angular/core';
24
- *
25
- * // Import the app component
26
- * import { AppComponent } from './app.component';
27
- *
28
- * // Define the app module
29
- * _@NgModule({
30
- * declarations: [AppComponent], // declare app component
31
- * imports: [BrowserModule, TypographyModule], // import Typography module
32
- * bootstrap: [AppComponent]
33
- * })
34
- * export class AppModule { }
35
- *
36
- * // Compile and launch the module
37
- * platformBrowserDynamic().bootstrapModule(AppModule);
38
- *
39
- * ```
40
- */
41
- export class TypographyModule {
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule, imports: [i1.TypographyDirective], exports: [i1.TypographyDirective] });
44
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule });
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TypographyModule, decorators: [{
47
- type: NgModule,
48
- args: [{
49
- imports: [...KENDO_TYPOGRAPHY],
50
- exports: [...KENDO_TYPOGRAPHY]
51
- }]
52
- }] });
package/esm2022/utils.mjs DELETED
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const isPresent = (value) => value !== null && value !== undefined;