@progress/kendo-angular-typography 2.0.2 → 11.0.0-develop.79
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/NOTICE.txt +3 -3
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/models/font-size.js → esm2020/models/font-size.mjs} +1 -1
- package/{esm2015/models/font-weight.js → esm2020/models/font-weight.mjs} +1 -1
- package/{esm2015/models/margin-sides.js → esm2020/models/margin-sides.mjs} +1 -1
- package/{esm2015/models/margin.js → esm2020/models/margin.mjs} +1 -1
- package/{esm2015/models/text-align.js → esm2020/models/text-align.mjs} +1 -1
- package/{esm2015/models/text-transform.js → esm2020/models/text-transform.mjs} +1 -1
- package/{esm2015/models/theme-color.js → esm2020/models/theme-color.mjs} +1 -1
- package/{esm2015/models/variant.js → esm2020/models/variant.mjs} +1 -1
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-typography.js → esm2020/progress-kendo-angular-typography.mjs} +2 -2
- package/{esm2015/typography.directive.js → esm2020/typography.directive.mjs} +5 -5
- package/{esm2015/typography.module.js → esm2020/typography.module.mjs} +5 -5
- package/{esm2015/utils.js → esm2020/utils.mjs} +1 -1
- package/fesm2015/{kendo-angular-typography.js → progress-kendo-angular-typography.mjs} +10 -10
- package/fesm2020/progress-kendo-angular-typography.mjs +318 -0
- package/{main.d.ts → index.d.ts} +1 -1
- package/models/font-size.d.ts +1 -1
- package/models/font-weight.d.ts +1 -1
- package/models/margin-sides.d.ts +1 -1
- package/models/margin.d.ts +1 -1
- package/models/text-align.d.ts +1 -1
- package/models/text-transform.d.ts +1 -1
- package/models/theme-color.d.ts +1 -1
- package/models/variant.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +27 -53
- package/{kendo-angular-typography.d.ts → progress-kendo-angular-typography.d.ts} +2 -2
- package/schematics/ngAdd/index.js +1 -5
- package/typography.directive.d.ts +1 -1
- package/typography.module.d.ts +1 -1
- package/utils.d.ts +1 -1
- package/bundles/kendo-angular-typography.umd.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
package/NOTICE.txt
CHANGED
|
@@ -37,7 +37,7 @@ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style
|
|
|
37
37
|
Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
|
|
38
38
|
Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
|
|
39
39
|
Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
|
|
40
|
-
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
40
|
+
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
41
41
|
Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
|
|
42
42
|
Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
|
|
43
43
|
ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
|
|
@@ -433,7 +433,7 @@ subject to the following terms and conditions:
|
|
|
433
433
|
@types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
|
|
434
434
|
@types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
|
|
435
435
|
@types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
|
|
436
|
-
subject to the following terms and conditions:
|
|
436
|
+
subject to the following terms and conditions:
|
|
437
437
|
|
|
438
438
|
This project is licensed under the MIT license.
|
|
439
439
|
Copyrights are respective of each contributor listed at the beginning of each
|
|
@@ -640,7 +640,7 @@ Such technology is subject to the following terms and conditions:
|
|
|
640
640
|
2. Special Notices Regarding Commercially Licensed Third-Party Components
|
|
641
641
|
incorporated into the Product: NONE
|
|
642
642
|
|
|
643
|
-
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
643
|
+
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
644
644
|
|
|
645
645
|
(a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
|
|
646
646
|
from Progress Software Corporation. See NOTICE.txt text file within product for
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { TypographyModule } from './typography.module';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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-typography',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1672320631,
|
|
13
13
|
version: '',
|
|
14
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
14
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
package/{esm2015/kendo-angular-typography.js → esm2020/progress-kendo-angular-typography.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 './
|
|
8
|
+
export * from './index';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { Directive, Input } from '@angular/core';
|
|
5
|
+
import { Directive, Input, ElementRef, Renderer2 } from '@angular/core';
|
|
6
6
|
import { typographyFontSizeOptions } from './models/font-size';
|
|
7
7
|
import { typographyFontWeightOptions } from './models/font-weight';
|
|
8
8
|
import { typographyMarginOptions } from './models/margin';
|
|
@@ -97,9 +97,9 @@ export class TypographyDirective {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
TypographyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
101
|
-
TypographyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
100
|
+
TypographyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
101
|
+
TypographyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TypographyDirective, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor", margin: "margin" }, exportAs: ["kendoTypography"], usesOnChanges: true, ngImport: i0 });
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyDirective, decorators: [{
|
|
103
103
|
type: Directive,
|
|
104
104
|
args: [{
|
|
105
105
|
selector: '[kendoTypography]',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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';
|
|
@@ -38,10 +38,10 @@ import * as i0 from "@angular/core";
|
|
|
38
38
|
*/
|
|
39
39
|
export class TypographyModule {
|
|
40
40
|
}
|
|
41
|
-
TypographyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
42
|
-
TypographyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
43
|
-
TypographyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
TypographyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
42
|
+
TypographyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, declarations: [TypographyDirective], exports: [TypographyDirective] });
|
|
43
|
+
TypographyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, decorators: [{
|
|
45
45
|
type: NgModule,
|
|
46
46
|
args: [{
|
|
47
47
|
declarations: [TypographyDirective],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 * as i0 from '@angular/core';
|
|
@@ -154,9 +154,9 @@ const packageMetadata = {
|
|
|
154
154
|
name: '@progress/kendo-angular-typography',
|
|
155
155
|
productName: 'Kendo UI for Angular',
|
|
156
156
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
157
|
-
publishDate:
|
|
157
|
+
publishDate: 1672320631,
|
|
158
158
|
version: '',
|
|
159
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
159
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
/**
|
|
@@ -242,9 +242,9 @@ class TypographyDirective {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
TypographyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
246
|
-
TypographyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
245
|
+
TypographyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
246
|
+
TypographyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TypographyDirective, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor", margin: "margin" }, exportAs: ["kendoTypography"], usesOnChanges: true, ngImport: i0 });
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyDirective, decorators: [{
|
|
248
248
|
type: Directive,
|
|
249
249
|
args: [{
|
|
250
250
|
selector: '[kendoTypography]',
|
|
@@ -299,10 +299,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
299
299
|
*/
|
|
300
300
|
class TypographyModule {
|
|
301
301
|
}
|
|
302
|
-
TypographyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
303
|
-
TypographyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
304
|
-
TypographyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
302
|
+
TypographyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
303
|
+
TypographyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, declarations: [TypographyDirective], exports: [TypographyDirective] });
|
|
304
|
+
TypographyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule });
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, decorators: [{
|
|
306
306
|
type: NgModule,
|
|
307
307
|
args: [{
|
|
308
308
|
declarations: [TypographyDirective],
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { Directive, Input, NgModule } from '@angular/core';
|
|
7
|
+
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
const typographyFontSizeOptions = {
|
|
13
|
+
'xs': 'k-fs-xs',
|
|
14
|
+
'sm': 'k-fs-sm',
|
|
15
|
+
'md': 'k-fs-md',
|
|
16
|
+
'lg': 'k-fs-lg',
|
|
17
|
+
'xl': 'k-fs-xl'
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
const typographyFontWeightOptions = {
|
|
24
|
+
'light': 'k-font-weight-light',
|
|
25
|
+
'normal': 'k-font-weight-normal',
|
|
26
|
+
'bold': 'k-font-weight-bold'
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the applied margin to the element.
|
|
31
|
+
*
|
|
32
|
+
* Passing a [TypographyMarginOption]({% slug api_typography_typographymarginoption %}) will set any of the built - in Kendo classes, which provide default margin in pixels.
|
|
33
|
+
*
|
|
34
|
+
* When using the Default or Material themes, passing a number will apply a margin of 4 times the passed number in pixels.
|
|
35
|
+
* When using the Bootstrap theme the applied margin will be equal to the passed number divided by 4 in rem units.
|
|
36
|
+
* The minimum number value is 0 and the maximum is 24.
|
|
37
|
+
*
|
|
38
|
+
* Passing a [Margin]({% slug api_typography_margin %}) object allows setting the margins for each side.
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
const typographyMarginOptions = {
|
|
44
|
+
'xs': 'k-m-xs',
|
|
45
|
+
'sm': 'k-m-sm',
|
|
46
|
+
'md': 'k-m-md',
|
|
47
|
+
'lg': 'k-m-lg',
|
|
48
|
+
'xl': 'k-m-xl',
|
|
49
|
+
'thin': 'k-m-thin',
|
|
50
|
+
'hair': 'k-m-hair'
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
const typographyMarginTopOptions = {
|
|
56
|
+
'xs': 'k-mt-xs',
|
|
57
|
+
'sm': 'k-mt-sm',
|
|
58
|
+
'md': 'k-mt-md',
|
|
59
|
+
'lg': 'k-mt-lg',
|
|
60
|
+
'xl': 'k-mt-xl',
|
|
61
|
+
'thin': 'k-mt-thin',
|
|
62
|
+
'hair': 'k-mt-hair'
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
const typographyMarginBottomOptions = {
|
|
68
|
+
'xs': 'k-mb-xs',
|
|
69
|
+
'sm': 'k-mb-sm',
|
|
70
|
+
'md': 'k-mb-md',
|
|
71
|
+
'lg': 'k-mb-lg',
|
|
72
|
+
'xl': 'k-mb-xl',
|
|
73
|
+
'thin': 'k-mb-thin',
|
|
74
|
+
'hair': 'k-mb-hair'
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
const typographyMarginLeftOptions = {
|
|
80
|
+
'xs': 'k-ml-xs',
|
|
81
|
+
'sm': 'k-ml-sm',
|
|
82
|
+
'md': 'k-ml-md',
|
|
83
|
+
'lg': 'k-ml-lg',
|
|
84
|
+
'xl': 'k-ml-xl',
|
|
85
|
+
'thin': 'k-ml-thin',
|
|
86
|
+
'hair': 'k-ml-hair'
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
const typographyMarginRightOptions = {
|
|
92
|
+
'xs': 'k-mr-xs',
|
|
93
|
+
'sm': 'k-mr-sm',
|
|
94
|
+
'md': 'k-mr-md',
|
|
95
|
+
'lg': 'k-mr-lg',
|
|
96
|
+
'xl': 'k-mr-xl',
|
|
97
|
+
'thin': 'k-mr-thin',
|
|
98
|
+
'hair': 'k-mr-hair'
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @hidden
|
|
103
|
+
*/
|
|
104
|
+
const marginSides = {
|
|
105
|
+
'top': 'k-mt-',
|
|
106
|
+
'right': 'k-mr-',
|
|
107
|
+
'bottom': 'k-mb-',
|
|
108
|
+
'left': 'k-ml-'
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @hidden
|
|
113
|
+
*/
|
|
114
|
+
const typographyTextAlignOptions = {
|
|
115
|
+
'left': 'k-text-left',
|
|
116
|
+
'right': 'k-text-right',
|
|
117
|
+
'center': 'k-text-center',
|
|
118
|
+
'justify': 'k-text-justify'
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @hidden
|
|
123
|
+
*/
|
|
124
|
+
const typographyTextTransformOptions = {
|
|
125
|
+
'lowercase': 'k-text-lowercase',
|
|
126
|
+
'uppercase': 'k-text-uppercase',
|
|
127
|
+
'capitalize': 'k-text-capitalize'
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @hidden
|
|
132
|
+
*/
|
|
133
|
+
const typographyVariantOptions = {
|
|
134
|
+
'p': 'k-paragraph',
|
|
135
|
+
'h1': 'k-h1',
|
|
136
|
+
'h2': 'k-h2',
|
|
137
|
+
'h3': 'k-h3',
|
|
138
|
+
'h4': 'k-h4',
|
|
139
|
+
'h5': 'k-h5',
|
|
140
|
+
'h6': 'k-h6',
|
|
141
|
+
'code': 'k-code',
|
|
142
|
+
'pre': 'k-pre'
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @hidden
|
|
147
|
+
*/
|
|
148
|
+
const isPresent = (value) => value !== null && value !== undefined;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @hidden
|
|
152
|
+
*/
|
|
153
|
+
const packageMetadata = {
|
|
154
|
+
name: '@progress/kendo-angular-typography',
|
|
155
|
+
productName: 'Kendo UI for Angular',
|
|
156
|
+
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
157
|
+
publishDate: 1672320631,
|
|
158
|
+
version: '',
|
|
159
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Represents the [Kendo UI Typography directive for Angular]({% slug overview_typography %}).
|
|
164
|
+
* Used to represent element types in a uniform way by relying on the predefined Kendo theme classes.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```ts-no-run
|
|
168
|
+
* <div kendoTypography variant="k-h1"></div>
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
class TypographyDirective {
|
|
172
|
+
constructor(elementWrapper, renderer, element) {
|
|
173
|
+
this.elementWrapper = elementWrapper;
|
|
174
|
+
this.renderer = renderer;
|
|
175
|
+
this.element = element;
|
|
176
|
+
this.typographyClasses = [];
|
|
177
|
+
validatePackage(packageMetadata);
|
|
178
|
+
}
|
|
179
|
+
ngOnChanges() {
|
|
180
|
+
this.setTypographyClasses();
|
|
181
|
+
}
|
|
182
|
+
variantClass() {
|
|
183
|
+
return typographyVariantOptions[this.variant];
|
|
184
|
+
}
|
|
185
|
+
themeColorClass() {
|
|
186
|
+
return isPresent(this.themeColor) ? `k-color-${this.themeColor}` : null;
|
|
187
|
+
}
|
|
188
|
+
textAlignClass() {
|
|
189
|
+
return typographyTextAlignOptions[this.textAlign];
|
|
190
|
+
}
|
|
191
|
+
fontWeightClass() {
|
|
192
|
+
return typographyFontWeightOptions[this.fontWeight];
|
|
193
|
+
}
|
|
194
|
+
fontSizeClass() {
|
|
195
|
+
return typographyFontSizeOptions[this.fontSize];
|
|
196
|
+
}
|
|
197
|
+
textTransformClass() {
|
|
198
|
+
return typographyTextTransformOptions[this.textTransform];
|
|
199
|
+
}
|
|
200
|
+
setMarginClassPerSide(marginSide, value) {
|
|
201
|
+
return `${marginSides[marginSide]}${value}`;
|
|
202
|
+
}
|
|
203
|
+
marginClasses() {
|
|
204
|
+
if (typeof (this.margin) === 'string') {
|
|
205
|
+
return [typographyMarginOptions[this.margin]];
|
|
206
|
+
}
|
|
207
|
+
if (typeof (this.margin) === 'number') {
|
|
208
|
+
return [`k-m-${this.margin}`];
|
|
209
|
+
}
|
|
210
|
+
if (typeof (this.margin) === 'object') {
|
|
211
|
+
const marginClasses = [];
|
|
212
|
+
Object.keys(this.margin).forEach(key => {
|
|
213
|
+
if (isPresent(this.margin[key])) {
|
|
214
|
+
marginClasses.push(this.setMarginClassPerSide(key, this.margin[key]));
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
return marginClasses;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
setTypographyClasses() {
|
|
221
|
+
const element = this.element.nativeElement;
|
|
222
|
+
this.typographyClasses.forEach((className) => {
|
|
223
|
+
this.renderer.removeClass(element, className);
|
|
224
|
+
});
|
|
225
|
+
this.typographyClasses = [
|
|
226
|
+
this.variantClass(),
|
|
227
|
+
this.fontSizeClass(),
|
|
228
|
+
this.fontWeightClass(),
|
|
229
|
+
this.textTransformClass(),
|
|
230
|
+
this.textAlignClass(),
|
|
231
|
+
this.themeColorClass()
|
|
232
|
+
];
|
|
233
|
+
if (this.margin) {
|
|
234
|
+
this.marginClasses().forEach(className => {
|
|
235
|
+
this.typographyClasses.push(className);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
this.typographyClasses.forEach((className) => {
|
|
239
|
+
if (isPresent(className)) {
|
|
240
|
+
this.renderer.addClass(element, className);
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
TypographyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
246
|
+
TypographyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: TypographyDirective, selector: "[kendoTypography]", inputs: { variant: "variant", fontSize: "fontSize", fontWeight: "fontWeight", textAlign: "textAlign", textTransform: "textTransform", themeColor: "themeColor", margin: "margin" }, exportAs: ["kendoTypography"], usesOnChanges: true, ngImport: i0 });
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyDirective, decorators: [{
|
|
248
|
+
type: Directive,
|
|
249
|
+
args: [{
|
|
250
|
+
selector: '[kendoTypography]',
|
|
251
|
+
exportAs: 'kendoTypography'
|
|
252
|
+
}]
|
|
253
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { variant: [{
|
|
254
|
+
type: Input
|
|
255
|
+
}], fontSize: [{
|
|
256
|
+
type: Input
|
|
257
|
+
}], fontWeight: [{
|
|
258
|
+
type: Input
|
|
259
|
+
}], textAlign: [{
|
|
260
|
+
type: Input
|
|
261
|
+
}], textTransform: [{
|
|
262
|
+
type: Input
|
|
263
|
+
}], themeColor: [{
|
|
264
|
+
type: Input
|
|
265
|
+
}], margin: [{
|
|
266
|
+
type: Input
|
|
267
|
+
}] } });
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
271
|
+
* definition for the Typography component.
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
*
|
|
275
|
+
* ```ts-no-run
|
|
276
|
+
* // Import the Typography module
|
|
277
|
+
* import { TypographyModule } from '@progress/kendo-angular-typography';
|
|
278
|
+
*
|
|
279
|
+
* // The browser platform with a compiler
|
|
280
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
281
|
+
*
|
|
282
|
+
* import { NgModule } from '@angular/core';
|
|
283
|
+
*
|
|
284
|
+
* // Import the app component
|
|
285
|
+
* import { AppComponent } from './app.component';
|
|
286
|
+
*
|
|
287
|
+
* // Define the app module
|
|
288
|
+
* _@NgModule({
|
|
289
|
+
* declarations: [AppComponent], // declare app component
|
|
290
|
+
* imports: [BrowserModule, TypographyModule], // import Typography module
|
|
291
|
+
* bootstrap: [AppComponent]
|
|
292
|
+
* })
|
|
293
|
+
* export class AppModule { }
|
|
294
|
+
*
|
|
295
|
+
* // Compile and launch the module
|
|
296
|
+
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
297
|
+
*
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
class TypographyModule {
|
|
301
|
+
}
|
|
302
|
+
TypographyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
303
|
+
TypographyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, declarations: [TypographyDirective], exports: [TypographyDirective] });
|
|
304
|
+
TypographyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule });
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TypographyModule, decorators: [{
|
|
306
|
+
type: NgModule,
|
|
307
|
+
args: [{
|
|
308
|
+
declarations: [TypographyDirective],
|
|
309
|
+
exports: [TypographyDirective]
|
|
310
|
+
}]
|
|
311
|
+
}] });
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Generated bundle index. Do not edit.
|
|
315
|
+
*/
|
|
316
|
+
|
|
317
|
+
export { TypographyDirective, TypographyModule };
|
|
318
|
+
|
package/{main.d.ts → index.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { TypographyModule } from './typography.module';
|
package/models/font-size.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
package/models/font-weight.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
package/models/margin-sides.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
package/models/margin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
package/models/text-align.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
package/models/theme-color.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
package/models/variant.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
package/package-metadata.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { PackageMetadata } from '@progress/kendo-licensing';
|
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-typography",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-develop.79",
|
|
4
4
|
"description": "Kendo UI Angular Typography",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
7
7
|
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/telerik/kendo-angular-typography.git"
|
|
11
|
-
},
|
|
12
8
|
"bugs": {
|
|
13
9
|
"url": "https://github.com/telerik/kendo-angular"
|
|
14
10
|
},
|
|
@@ -21,60 +17,38 @@
|
|
|
21
17
|
"@progress": {
|
|
22
18
|
"friendlyName": "Typography"
|
|
23
19
|
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@progress/kendo-schematics": "^3.0.0",
|
|
26
|
-
"tslib": "^2.3.1"
|
|
27
|
-
},
|
|
28
20
|
"peerDependencies": {
|
|
29
|
-
"@angular/
|
|
30
|
-
"@angular/
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
21
|
+
"@angular/animations": "13 - 15",
|
|
22
|
+
"@angular/common": "13 - 15",
|
|
23
|
+
"@angular/core": "13 - 15",
|
|
24
|
+
"@angular/platform-browser": "13 - 15",
|
|
25
|
+
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
+
"@progress/kendo-angular-common": "11.0.0-develop.79",
|
|
27
|
+
"@progress/kendo-angular-schematics": "11.0.0-develop.79",
|
|
33
28
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
34
29
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
38
|
-
},
|
|
39
|
-
"ghooks": {
|
|
40
|
-
"commit-msg": "validate-commit-msg"
|
|
41
|
-
},
|
|
42
|
-
"validate-commit-msg": {
|
|
43
|
-
"types": [
|
|
44
|
-
"feat",
|
|
45
|
-
"fix",
|
|
46
|
-
"docs",
|
|
47
|
-
"style",
|
|
48
|
-
"refactor",
|
|
49
|
-
"perf",
|
|
50
|
-
"test",
|
|
51
|
-
"chore",
|
|
52
|
-
"revert"
|
|
53
|
-
],
|
|
54
|
-
"warnOnFail": false,
|
|
55
|
-
"maxSubjectLength": 100
|
|
56
|
-
}
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"tslib": "^2.3.1"
|
|
57
32
|
},
|
|
58
33
|
"schematics": "./schematics/collection.json",
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
34
|
+
"module": "fesm2015/progress-kendo-angular-typography.mjs",
|
|
35
|
+
"es2020": "fesm2020/progress-kendo-angular-typography.mjs",
|
|
36
|
+
"esm2020": "esm2020/progress-kendo-angular-typography.mjs",
|
|
37
|
+
"fesm2020": "fesm2020/progress-kendo-angular-typography.mjs",
|
|
38
|
+
"fesm2015": "fesm2015/progress-kendo-angular-typography.mjs",
|
|
39
|
+
"typings": "progress-kendo-angular-typography.d.ts",
|
|
40
|
+
"exports": {
|
|
41
|
+
"./package.json": {
|
|
42
|
+
"default": "./package.json"
|
|
63
43
|
},
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./progress-kendo-angular-typography.d.ts",
|
|
46
|
+
"esm2020": "./esm2020/progress-kendo-angular-typography.mjs",
|
|
47
|
+
"es2020": "./fesm2020/progress-kendo-angular-typography.mjs",
|
|
48
|
+
"es2015": "./fesm2015/progress-kendo-angular-typography.mjs",
|
|
49
|
+
"node": "./fesm2015/progress-kendo-angular-typography.mjs",
|
|
50
|
+
"default": "./fesm2020/progress-kendo-angular-typography.mjs"
|
|
51
|
+
}
|
|
72
52
|
},
|
|
73
|
-
"main": "bundles/kendo-angular-typography.umd.js",
|
|
74
|
-
"module": "fesm2015/kendo-angular-typography.js",
|
|
75
|
-
"es2015": "fesm2015/kendo-angular-typography.js",
|
|
76
|
-
"esm2015": "esm2015/kendo-angular-typography.js",
|
|
77
|
-
"fesm2015": "fesm2015/kendo-angular-typography.js",
|
|
78
|
-
"typings": "kendo-angular-typography.d.ts",
|
|
79
53
|
"sideEffects": false
|
|
80
54
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
8
|
/// <amd-module name="@progress/kendo-angular-typography" />
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './index';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
1
|
"use strict";
|
|
6
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
@@ -10,6 +6,6 @@ function default_1(options) {
|
|
|
10
6
|
// Additional dependencies to install.
|
|
11
7
|
// See https://github.com/telerik/kendo-schematics/issues/28
|
|
12
8
|
peerDependencies: {} });
|
|
13
|
-
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
9
|
+
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
14
10
|
}
|
|
15
11
|
exports.default = default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 { ElementRef, Renderer2, OnChanges } from '@angular/core';
|
package/typography.module.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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 * as i0 from "@angular/core";
|
package/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 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
|
/**
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define("KendoAngularTypography",["exports","@angular/core","@progress/kendo-licensing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularTypography={},e.ng.core,e.KendoLicensing)}(this,function(e,t,n){"use strict";function r(r){var n;return r&&r.__esModule?r:(n=Object.create(null),r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),n.default=r,Object.freeze(n))}function o(e){return null!=e}var s=r(t),i={xs:"k-fs-xs",sm:"k-fs-sm",md:"k-fs-md",lg:"k-fs-lg",xl:"k-fs-xl"},a={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},p={xs:"k-m-xs",sm:"k-m-sm",md:"k-m-md",lg:"k-m-lg",xl:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},l={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},g={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},h={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},c={p:"k-paragraph",h1:"k-h1",h2:"k-h2",h3:"k-h3",h4:"k-h4",h5:"k-h5",h6:"k-h6",code:"k-code",pre:"k-pre"},u={name:"@progress/kendo-angular-typography",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1668753494,version:"",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"},m=(f.prototype.ngOnChanges=function(){this.setTypographyClasses()},f.prototype.variantClass=function(){return c[this.variant]},f.prototype.themeColorClass=function(){return o(this.themeColor)?"k-color-"+this.themeColor:null},f.prototype.textAlignClass=function(){return g[this.textAlign]},f.prototype.fontWeightClass=function(){return a[this.fontWeight]},f.prototype.fontSizeClass=function(){return i[this.fontSize]},f.prototype.textTransformClass=function(){return h[this.textTransform]},f.prototype.setMarginClassPerSide=function(e,t){return""+l[e]+t},f.prototype.marginClasses=function(){var t,r=this;return"string"==typeof this.margin?[p[this.margin]]:"number"==typeof this.margin?["k-m-"+this.margin]:"object"==typeof this.margin?(t=[],Object.keys(this.margin).forEach(function(e){o(r.margin[e])&&t.push(r.setMarginClassPerSide(e,r.margin[e]))}),t):void 0},f.prototype.setTypographyClasses=function(){var t=this,r=this.element.nativeElement;this.typographyClasses.forEach(function(e){t.renderer.removeClass(r,e)}),this.typographyClasses=[this.variantClass(),this.fontSizeClass(),this.fontWeightClass(),this.textTransformClass(),this.textAlignClass(),this.themeColorClass()],this.margin&&this.marginClasses().forEach(function(e){t.typographyClasses.push(e)}),this.typographyClasses.forEach(function(e){o(e)&&t.renderer.addClass(r,e)})},f);function f(e,t,r){this.elementWrapper=e,this.renderer=t,this.element=r,this.typographyClasses=[],n.validatePackage(u)}m.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:m,deps:[{token:s.ElementRef},{token:s.Renderer2},{token:s.ElementRef}],target:s.ɵɵFactoryTarget.Directive}),m.ɵdir=s.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"[kendoTypography]",inputs:{variant:"variant",fontSize:"fontSize",fontWeight:"fontWeight",textAlign:"textAlign",textTransform:"textTransform",themeColor:"themeColor",margin:"margin"},exportAs:["kendoTypography"],usesOnChanges:!0,ngImport:s}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:m,decorators:[{type:t.Directive,args:[{selector:"[kendoTypography]",exportAs:"kendoTypography"}]}],ctorParameters:function(){return[{type:s.ElementRef},{type:s.Renderer2},{type:s.ElementRef}]},propDecorators:{variant:[{type:t.Input}],fontSize:[{type:t.Input}],fontWeight:[{type:t.Input}],textAlign:[{type:t.Input}],textTransform:[{type:t.Input}],themeColor:[{type:t.Input}],margin:[{type:t.Input}]}});var y=function(){};y.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y,deps:[],target:s.ɵɵFactoryTarget.NgModule}),y.ɵmod=s.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y,declarations:[m],exports:[m]}),y.ɵinj=s.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y,decorators:[{type:t.NgModule,args:[{declarations:[m],exports:[m]}]}]}),e.TypographyDirective=m,e.TypographyModule=y,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKoC;AAEpC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,kBAAkB,EAChC,OAAO,EAAE,YAAY;QACrB,sCAAsC;QACtC,4DAA4D;QAC5D,gBAAgB,EAAE,EAAE,GACvB,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AAXD,4BAWC"}
|