@progress/kendo-angular-typography 25.0.0-develop.2 → 25.0.0-develop.4
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/fesm2022/progress-kendo-angular-typography.mjs +23 -13
- package/index.d.ts +20 -9
- package/package-metadata.mjs +2 -2
- package/package.json +4 -4
|
@@ -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 { Input, Directive, NgModule } from '@angular/core';
|
|
6
|
+
import { signal, effect, 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:
|
|
77
|
-
version: '25.0.0-develop.
|
|
76
|
+
publishDate: 1783940427,
|
|
77
|
+
version: '25.0.0-develop.4',
|
|
78
78
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
79
79
|
};
|
|
80
80
|
|
|
@@ -94,36 +94,46 @@ class TypographyDirective {
|
|
|
94
94
|
/**
|
|
95
95
|
* Specifies the element `variant` class that will be applied.
|
|
96
96
|
*/
|
|
97
|
-
variant;
|
|
97
|
+
set variant(value) { this._variant.set(value); }
|
|
98
|
+
get variant() { return this._variant(); }
|
|
98
99
|
/**
|
|
99
100
|
* Sets the element `font-size` style.
|
|
100
101
|
*/
|
|
101
|
-
fontSize;
|
|
102
|
+
set fontSize(value) { this._fontSize.set(value); }
|
|
103
|
+
get fontSize() { return this._fontSize(); }
|
|
102
104
|
/**
|
|
103
105
|
* Sets the element `font-weight` style.
|
|
104
106
|
*/
|
|
105
|
-
fontWeight;
|
|
107
|
+
set fontWeight(value) { this._fontWeight.set(value); }
|
|
108
|
+
get fontWeight() { return this._fontWeight(); }
|
|
106
109
|
/**
|
|
107
110
|
* Sets the element `text-align` style.
|
|
108
111
|
*/
|
|
109
|
-
textAlign;
|
|
112
|
+
set textAlign(value) { this._textAlign.set(value); }
|
|
113
|
+
get textAlign() { return this._textAlign(); }
|
|
110
114
|
/**
|
|
111
115
|
* Sets the element `text-transform` style.
|
|
112
116
|
*/
|
|
113
|
-
textTransform;
|
|
117
|
+
set textTransform(value) { this._textTransform.set(value); }
|
|
118
|
+
get textTransform() { return this._textTransform(); }
|
|
114
119
|
/**
|
|
115
120
|
* Applies the `theme-color` to the element.
|
|
116
121
|
*/
|
|
117
|
-
themeColor;
|
|
122
|
+
set themeColor(value) { this._themeColor.set(value); }
|
|
123
|
+
get themeColor() { return this._themeColor(); }
|
|
118
124
|
typographyClasses = [];
|
|
125
|
+
_variant = signal(undefined, ...(ngDevMode ? [{ debugName: "_variant" }] : []));
|
|
126
|
+
_fontSize = signal(undefined, ...(ngDevMode ? [{ debugName: "_fontSize" }] : []));
|
|
127
|
+
_fontWeight = signal(undefined, ...(ngDevMode ? [{ debugName: "_fontWeight" }] : []));
|
|
128
|
+
_textAlign = signal(undefined, ...(ngDevMode ? [{ debugName: "_textAlign" }] : []));
|
|
129
|
+
_textTransform = signal(undefined, ...(ngDevMode ? [{ debugName: "_textTransform" }] : []));
|
|
130
|
+
_themeColor = signal(undefined, ...(ngDevMode ? [{ debugName: "_themeColor" }] : []));
|
|
119
131
|
constructor(elementWrapper, renderer, element) {
|
|
120
132
|
this.elementWrapper = elementWrapper;
|
|
121
133
|
this.renderer = renderer;
|
|
122
134
|
this.element = element;
|
|
123
135
|
validatePackage(packageMetadata);
|
|
124
|
-
|
|
125
|
-
ngOnChanges() {
|
|
126
|
-
this.setTypographyClasses();
|
|
136
|
+
effect(() => { this.setTypographyClasses(); });
|
|
127
137
|
}
|
|
128
138
|
variantClass() {
|
|
129
139
|
return typographyVariantOptions[this.variant];
|
|
@@ -163,7 +173,7 @@ class TypographyDirective {
|
|
|
163
173
|
});
|
|
164
174
|
}
|
|
165
175
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", 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: "20.3.25", type: TypographyDirective, isStandalone: true, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor" }, exportAs: ["kendoTypography"],
|
|
176
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: TypographyDirective, isStandalone: true, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor" }, exportAs: ["kendoTypography"], ngImport: i0 });
|
|
167
177
|
}
|
|
168
178
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: TypographyDirective, decorators: [{
|
|
169
179
|
type: Directive,
|
package/index.d.ts
CHANGED
|
@@ -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 {
|
|
6
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Sets the font size.
|
|
@@ -121,37 +121,48 @@ type TypographyVariant = 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code'
|
|
|
121
121
|
* <div kendoTypography variant="k-h1"></div>
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
declare class TypographyDirective
|
|
124
|
+
declare class TypographyDirective {
|
|
125
125
|
elementWrapper: ElementRef;
|
|
126
126
|
private renderer;
|
|
127
127
|
private element;
|
|
128
128
|
/**
|
|
129
129
|
* Specifies the element `variant` class that will be applied.
|
|
130
130
|
*/
|
|
131
|
-
variant: TypographyVariant;
|
|
131
|
+
set variant(value: TypographyVariant);
|
|
132
|
+
get variant(): TypographyVariant;
|
|
132
133
|
/**
|
|
133
134
|
* Sets the element `font-size` style.
|
|
134
135
|
*/
|
|
135
|
-
fontSize: TypographyFontSize;
|
|
136
|
+
set fontSize(value: TypographyFontSize);
|
|
137
|
+
get fontSize(): TypographyFontSize;
|
|
136
138
|
/**
|
|
137
139
|
* Sets the element `font-weight` style.
|
|
138
140
|
*/
|
|
139
|
-
fontWeight: TypographyFontWeight;
|
|
141
|
+
set fontWeight(value: TypographyFontWeight);
|
|
142
|
+
get fontWeight(): TypographyFontWeight;
|
|
140
143
|
/**
|
|
141
144
|
* Sets the element `text-align` style.
|
|
142
145
|
*/
|
|
143
|
-
textAlign: TypographyTextAlign;
|
|
146
|
+
set textAlign(value: TypographyTextAlign);
|
|
147
|
+
get textAlign(): TypographyTextAlign;
|
|
144
148
|
/**
|
|
145
149
|
* Sets the element `text-transform` style.
|
|
146
150
|
*/
|
|
147
|
-
textTransform: TypographyTextTransform;
|
|
151
|
+
set textTransform(value: TypographyTextTransform);
|
|
152
|
+
get textTransform(): TypographyTextTransform;
|
|
148
153
|
/**
|
|
149
154
|
* Applies the `theme-color` to the element.
|
|
150
155
|
*/
|
|
151
|
-
themeColor: TypographyThemeColor;
|
|
156
|
+
set themeColor(value: TypographyThemeColor);
|
|
157
|
+
get themeColor(): TypographyThemeColor;
|
|
152
158
|
private typographyClasses;
|
|
159
|
+
private _variant;
|
|
160
|
+
private _fontSize;
|
|
161
|
+
private _fontWeight;
|
|
162
|
+
private _textAlign;
|
|
163
|
+
private _textTransform;
|
|
164
|
+
private _themeColor;
|
|
153
165
|
constructor(elementWrapper: ElementRef, renderer: Renderer2, element: ElementRef);
|
|
154
|
-
ngOnChanges(): void;
|
|
155
166
|
private variantClass;
|
|
156
167
|
private themeColorClass;
|
|
157
168
|
private textAlignClass;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.0.0-develop.
|
|
10
|
+
"publishDate": 1783940427,
|
|
11
|
+
"version": "25.0.0-develop.4",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-typography",
|
|
3
|
-
"version": "25.0.0-develop.
|
|
3
|
+
"version": "25.0.0-develop.4",
|
|
4
4
|
"description": "Kendo UI Angular Typography",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1783940427,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@angular/core": "20 - 22",
|
|
30
30
|
"@angular/platform-browser": "20 - 22",
|
|
31
31
|
"@progress/kendo-licensing": "^1.11.0",
|
|
32
|
-
"@progress/kendo-angular-common": "25.0.0-develop.
|
|
32
|
+
"@progress/kendo-angular-common": "25.0.0-develop.4",
|
|
33
33
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.3.1",
|
|
37
|
-
"@progress/kendo-angular-schematics": "25.0.0-develop.
|
|
37
|
+
"@progress/kendo-angular-schematics": "25.0.0-develop.4"
|
|
38
38
|
},
|
|
39
39
|
"schematics": "./schematics/collection.json",
|
|
40
40
|
"module": "fesm2022/progress-kendo-angular-typography.mjs",
|