@progress/kendo-angular-typography 1.2.1 → 2.0.0-next.202203310835
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/bundles/kendo-angular-typography.umd.js +5 -0
- package/{dist/es/index.js → esm2015/kendo-angular-typography.js} +0 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/models/font-size.js +0 -0
- package/{dist/es2015 → esm2015}/models/font-weight.js +0 -0
- package/{dist/es2015 → esm2015}/models/margin-sides.js +0 -0
- package/{dist/es2015 → esm2015}/models/margin.js +0 -0
- package/{dist/es2015 → esm2015}/models/text-align.js +0 -0
- package/{dist/es2015 → esm2015}/models/text-transform.js +0 -0
- package/{dist/es2015 → esm2015}/models/theme-color.js +1 -0
- package/{dist/es2015 → esm2015}/models/variant.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/typography.directive.js +27 -42
- package/{dist/es → esm2015}/typography.module.js +13 -13
- package/{dist/es2015 → esm2015}/utils.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-typography.js} +90 -51
- package/{dist/es2015/index.js → kendo-angular-typography.d.ts} +1 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +1 -0
- package/{dist/es2015/models → models}/font-size.d.ts +5 -5
- package/{dist/es2015/models → models}/font-weight.d.ts +3 -3
- package/{dist/es2015/models → models}/margin-sides.d.ts +4 -4
- package/{dist/es2015/models → models}/margin.d.ts +35 -35
- package/{dist/es2015/models → models}/text-align.d.ts +4 -4
- package/{dist/es2015/models → models}/text-transform.d.ts +3 -3
- package/{dist/es2015/models → models}/theme-color.d.ts +0 -0
- package/{dist/es2015/models → models}/variant.d.ts +9 -9
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +31 -91
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/typography.directive.d.ts → typography.directive.d.ts} +3 -0
- package/{dist/es2015/typography.module.d.ts → typography.module.d.ts} +5 -0
- package/{dist/es2015/utils.d.ts → utils.d.ts} +0 -0
- package/dist/cdn/js/kendo-angular-typography.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/models/font-size.js +0 -14
- package/dist/es/models/font-weight.js +0 -12
- package/dist/es/models/margin-sides.js +0 -13
- package/dist/es/models/margin.js +0 -75
- package/dist/es/models/text-align.js +0 -13
- package/dist/es/models/text-transform.js +0 -12
- package/dist/es/models/theme-color.js +0 -21
- package/dist/es/models/variant.js +0 -18
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/typography.directive.js +0 -140
- package/dist/es/utils.js +0 -8
- package/dist/es2015/index.d.ts +0 -8
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -6
- package/dist/es2015/typography.module.js +0 -47
- package/dist/fesm5/index.js +0 -285
- package/dist/npm/index.js +0 -11
- package/dist/npm/main.js +0 -10
- package/dist/npm/models/font-size.js +0 -16
- package/dist/npm/models/font-weight.js +0 -14
- package/dist/npm/models/margin-sides.js +0 -15
- package/dist/npm/models/margin.js +0 -77
- package/dist/npm/models/text-align.js +0 -15
- package/dist/npm/models/text-transform.js +0 -14
- package/dist/npm/models/theme-color.js +0 -23
- package/dist/npm/models/variant.js +0 -20
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/typography.directive.js +0 -142
- package/dist/npm/typography.module.js +0 -52
- package/dist/npm/utils.js +0 -10
- package/dist/systemjs/kendo-angular-typography.js +0 -5
package/package.json
CHANGED
|
@@ -1,87 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-typography",
|
|
3
|
+
"version": "2.0.0-next.202203310835",
|
|
3
4
|
"description": "Kendo UI Angular Typography",
|
|
4
|
-
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"jsdelivr": "dist/cdn/main.js",
|
|
15
|
-
"unpkg": "dist/cdn/main.js",
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "jest",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"test:ci": "ci-angular-test",
|
|
21
|
-
"e2e:ci": "ci-angular-e2e",
|
|
22
|
-
"start": "gulp start",
|
|
23
|
-
"lint": "gulp lint && gulp lint-docs && tsc --noEmit",
|
|
24
|
-
"api-check": "gulp api-check",
|
|
25
|
-
"build-package": "gulp build-package",
|
|
26
|
-
"semantic-release": "semantic-release pre && semantic-prerelease publish --public && semantic-release post"
|
|
6
|
+
"author": "Progress",
|
|
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
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/telerik/kendo-angular"
|
|
27
14
|
},
|
|
28
15
|
"keywords": [
|
|
16
|
+
"Angular",
|
|
29
17
|
"Kendo UI",
|
|
30
18
|
"Progress",
|
|
31
|
-
"Typography"
|
|
32
|
-
"Angular"
|
|
19
|
+
"Typography"
|
|
33
20
|
],
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"@angular/core": "8 - 13",
|
|
37
|
-
"@progress/kendo-angular-common": "^2.0.0",
|
|
38
|
-
"@progress/kendo-licensing": "^1.0.0",
|
|
39
|
-
"rxjs": "^6.4.0 || ^7.0.0"
|
|
21
|
+
"@progress": {
|
|
22
|
+
"friendlyName": "Typography"
|
|
40
23
|
},
|
|
41
24
|
"dependencies": {
|
|
42
25
|
"@progress/kendo-schematics": "^2.0.0",
|
|
43
|
-
"tslib": "^
|
|
26
|
+
"tslib": "^2.3.1"
|
|
44
27
|
},
|
|
45
|
-
"
|
|
46
|
-
"@angular
|
|
47
|
-
"@angular
|
|
48
|
-
"@angular
|
|
49
|
-
"@angular/common": "^8.2.0",
|
|
50
|
-
"@angular/compiler": "^8.2.0",
|
|
51
|
-
"@angular/compiler-cli": "^8.2.0",
|
|
52
|
-
"@angular/core": "^8.2.0",
|
|
53
|
-
"@angular/forms": "^8.2.0",
|
|
54
|
-
"@angular/platform-browser": "^8.2.0",
|
|
55
|
-
"@angular/platform-browser-dynamic": "^8.2.0",
|
|
56
|
-
"@angular/platform-server": "^8.2.0",
|
|
57
|
-
"@angular/router": "^8.2.0",
|
|
58
|
-
"@progress/kendo-angular-common": "^2.0.0",
|
|
59
|
-
"@progress/kendo-angular-e2e": "^3.0.0",
|
|
60
|
-
"@progress/kendo-e2e": "latest",
|
|
61
|
-
"@progress/kendo-angular-jest-preset": "^2.0.0",
|
|
62
|
-
"@progress/kendo-angular-tasks": "cdn-bundle-v18",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@angular/common": "^12.0.0 || ^13.0.0",
|
|
30
|
+
"@angular/core": "^12.0.0 || ^13.0.0",
|
|
31
|
+
"@progress/kendo-angular-common": "next",
|
|
63
32
|
"@progress/kendo-licensing": "^1.0.0",
|
|
64
|
-
"
|
|
65
|
-
"@progress/kendo-theme-default": "^5.0.0",
|
|
66
|
-
"@progress/kendo-theme-material": "^5.0.0",
|
|
67
|
-
"@telerik/semantic-prerelease": "^1.0.0",
|
|
68
|
-
"@types/jest": "^21.1.8",
|
|
69
|
-
"@types/node": "~8.9.4",
|
|
70
|
-
"@types/zone.js": "0.0.27",
|
|
71
|
-
"codelyzer": "^5.0.0",
|
|
72
|
-
"core-js": "^2.2.2",
|
|
73
|
-
"cz-conventional-changelog": "^1.1.5",
|
|
74
|
-
"ghooks": "^1.0.3",
|
|
75
|
-
"gulp": "^4.0.0",
|
|
76
|
-
"jest-cli": "^21.2.1",
|
|
77
|
-
"jest-junit": "^8.0.0",
|
|
78
|
-
"rxjs": "~6.4.0",
|
|
79
|
-
"rxjs-tslint-rules": "^4.23.1",
|
|
80
|
-
"semantic-release": "^6.3.6",
|
|
81
|
-
"tslint": "^5.0.0",
|
|
82
|
-
"typescript": "~3.4.2",
|
|
83
|
-
"validate-commit-msg": "^1.1.1",
|
|
84
|
-
"zone.js": "~0.9.1"
|
|
33
|
+
"rxjs": "^6.5.3 || ^7.0.0"
|
|
85
34
|
},
|
|
86
35
|
"config": {
|
|
87
36
|
"commitizen": {
|
|
@@ -106,27 +55,16 @@
|
|
|
106
55
|
"maxSubjectLength": 100
|
|
107
56
|
}
|
|
108
57
|
},
|
|
109
|
-
"
|
|
110
|
-
"preset": "@progress/kendo-angular-jest-preset"
|
|
111
|
-
},
|
|
112
|
-
"repository": {
|
|
113
|
-
"type": "git",
|
|
114
|
-
"url": "https://github.com/telerik/kendo-angular-typography.git"
|
|
115
|
-
},
|
|
116
|
-
"bugs": {
|
|
117
|
-
"url": "https://github.com/telerik/kendo-angular"
|
|
118
|
-
},
|
|
119
|
-
"@progress": {
|
|
120
|
-
"friendlyName": "Typography"
|
|
121
|
-
},
|
|
122
|
-
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
58
|
+
"schematics": "./schematics/collection.json",
|
|
123
59
|
"release": {
|
|
124
60
|
"debug": false,
|
|
125
61
|
"branchTags": {
|
|
126
|
-
"develop": "dev"
|
|
62
|
+
"develop": "dev",
|
|
63
|
+
"ng12-update": "next"
|
|
127
64
|
},
|
|
128
65
|
"fallbackTags": {
|
|
129
|
-
"dev": "latest"
|
|
66
|
+
"dev": "latest",
|
|
67
|
+
"next": "latest"
|
|
130
68
|
},
|
|
131
69
|
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
132
70
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
@@ -134,9 +72,11 @@
|
|
|
134
72
|
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
|
|
135
73
|
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
|
|
136
74
|
},
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
75
|
+
"main": "bundles/kendo-angular-typography.umd.js",
|
|
76
|
+
"module": "fesm2015/kendo-angular-typography.js",
|
|
77
|
+
"es2015": "fesm2015/kendo-angular-typography.js",
|
|
78
|
+
"esm2015": "esm2015/kendo-angular-typography.js",
|
|
79
|
+
"fesm2015": "fesm2015/kendo-angular-typography.js",
|
|
80
|
+
"typings": "kendo-angular-typography.d.ts",
|
|
81
|
+
"sideEffects": false
|
|
142
82
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
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
|
+
*-------------------------------------------------------------------------------------------*/
|
|
1
5
|
"use strict";
|
|
2
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
7
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
8
|
function default_1(options) {
|
|
5
|
-
const finalOptions = Object.assign({}, options, { mainNgModule: 'TypographyModule', package: 'typography',
|
|
9
|
+
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TypographyModule', package: 'typography',
|
|
6
10
|
// Additional dependencies to install.
|
|
7
11
|
// See https://github.com/telerik/kendo-schematics/issues/28
|
|
8
12
|
peerDependencies: {} });
|
|
9
13
|
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
10
14
|
}
|
|
11
15
|
exports.default = default_1;
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKoC;AAEpC,mBAAyB,OAAY;IACjC,MAAM,YAAY,
|
|
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"}
|
|
@@ -10,6 +10,7 @@ import { TypographyTextAlign } from './models/text-align';
|
|
|
10
10
|
import { TypographyTextTransform } from './models/text-transform';
|
|
11
11
|
import { TypographyThemeColor } from './models/theme-color';
|
|
12
12
|
import { TypographyVariant } from './models/variant';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* Represents the [Kendo UI Typography directive for Angular]({% slug overview_typography %}).
|
|
15
16
|
* Used to represent element types in a uniform way by relying on the predefined Kendo theme classes.
|
|
@@ -63,4 +64,6 @@ export declare class TypographyDirective implements OnChanges {
|
|
|
63
64
|
private setMarginClassPerSide;
|
|
64
65
|
private marginClasses;
|
|
65
66
|
private setTypographyClasses;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyDirective, never>;
|
|
68
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TypographyDirective, "[kendoTypography]", ["kendoTypography"], { "variant": "variant"; "fontSize": "fontSize"; "fontWeight": "fontWeight"; "textAlign": "textAlign"; "textTransform": "textTransform"; "themeColor": "themeColor"; "margin": "margin"; }, {}, never>;
|
|
66
69
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Copyright © 2021 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 * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./typography.directive";
|
|
5
7
|
/**
|
|
6
8
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
7
9
|
* definition for the Typography component.
|
|
@@ -34,4 +36,7 @@
|
|
|
34
36
|
* ```
|
|
35
37
|
*/
|
|
36
38
|
export declare class TypographyModule {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyModule, never>;
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TypographyModule, [typeof i1.TypographyDirective], never, [typeof i1.TypographyDirective]>;
|
|
41
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TypographyModule>;
|
|
37
42
|
}
|
|
File without changes
|
|
@@ -1,20 +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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define([,],e):"object"==typeof exports?exports.KendoAngularTypography=e(require("@angular/core"),require("@progress/kendo-licensing")):t.KendoAngularTypography=e(t.ng.core,t.KendoLicensing)}(window,(function(t,e){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(t,e,r){"use strict";r.r(e),r.d(e,"__extends",(function(){return o})),r.d(e,"__assign",(function(){return i})),r.d(e,"__rest",(function(){return a})),r.d(e,"__decorate",(function(){return u})),r.d(e,"__param",(function(){return s})),r.d(e,"__metadata",(function(){return c})),r.d(e,"__awaiter",(function(){return l})),r.d(e,"__generator",(function(){return p})),r.d(e,"__createBinding",(function(){return f})),r.d(e,"__exportStar",(function(){return y})),r.d(e,"__values",(function(){return d})),r.d(e,"__read",(function(){return h})),r.d(e,"__spread",(function(){return m})),r.d(e,"__spreadArrays",(function(){return g})),r.d(e,"__await",(function(){return _})),r.d(e,"__asyncGenerator",(function(){return v})),r.d(e,"__asyncDelegator",(function(){return b})),r.d(e,"__asyncValues",(function(){return k})),r.d(e,"__makeTemplateObject",(function(){return x})),r.d(e,"__importStar",(function(){return O})),r.d(e,"__importDefault",(function(){return w})),r.d(e,"__classPrivateFieldGet",(function(){return j})),r.d(e,"__classPrivateFieldSet",(function(){return P}));
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function o(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function u(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function s(t,e){return function(r,n){e(r,n,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))}function p(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function f(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}function y(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||(e[r]=t[r])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function g(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,u=i.length;a<u;a++,o++)n[o]=i[a];return n}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function v(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(t){o[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||u(t,e)}))})}function u(t,e){try{(r=o[t](e)).value instanceof _?Promise.resolve(r.value.v).then(s,c):l(i[0][2],r)}catch(t){l(i[0][3],t)}var r}function s(t){u("next",t)}function c(t){u("throw",t)}function l(t,e){t(e),i.shift(),i.length&&u(i[0][0],i[0][1])}}function b(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:_(t[n](e)),done:"return"===n}:o?o(e):e}:o}}function k(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=d(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(e=t[r](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function w(t){return t&&t.__esModule?t:{default:t}}function j(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function P(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=r(1),i=r(5),a=r(6),u=r(7),s=r(8),c=r(9),l=r(10),p=r(11),f=r(12),y=r(13),d=r(14),h=function(){function t(t,e,r){this.elementWrapper=t,this.renderer=e,this.element=r,this.typographyClasses=[],y.validatePackage(d.packageMetadata)}return t.prototype.ngOnChanges=function(){this.setTypographyClasses()},t.prototype.variantClass=function(){return p.typographyVariantOptions[this.variant]},t.prototype.themeColorClass=function(){return f.isPresent(this.themeColor)?"k-color-"+this.themeColor:null},t.prototype.textAlignClass=function(){return c.typographyTextAlignOptions[this.textAlign]},t.prototype.fontWeightClass=function(){return a.typographyFontWeightOptions[this.fontWeight]},t.prototype.fontSizeClass=function(){return i.typographyFontSizeOptions[this.fontSize]},t.prototype.textTransformClass=function(){return l.typographyTextTransformOptions[this.textTransform]},t.prototype.setMarginClassPerSide=function(t,e){return""+s.marginSides[t]+e},t.prototype.marginClasses=function(){var t=this;if("string"==typeof this.margin)return[u.typographyMarginOptions[this.margin]];if("number"==typeof this.margin)return["k-m-"+this.margin];if("object"==typeof this.margin){var e=[];return Object.keys(this.margin).forEach((function(r){f.isPresent(t.margin[r])&&e.push(t.setMarginClassPerSide(r,t.margin[r]))})),e}},t.prototype.setTypographyClasses=function(){var t=this,e=this.element.nativeElement;this.typographyClasses.forEach((function(r){t.renderer.removeClass(e,r)})),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(r){f.isPresent(r)&&t.renderer.addClass(e,r)}))},n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"variant",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"fontSize",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"fontWeight",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"textAlign",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"textTransform",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"margin",void 0),t=n.__decorate([o.Directive({selector:"[kendoTypography]",exportAs:"kendoTypography"}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ElementRef])],t)}();e.TypographyDirective=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4);e.TypographyModule=n.TypographyModule;var o=r(2);e.TypographyDirective=o.TypographyDirective},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=r(1),i=r(2),a=function(){function t(){}return t=n.__decorate([o.NgModule({declarations:[i.TypographyDirective],exports:[i.TypographyDirective]})],t)}();e.TypographyModule=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyFontSizeOptions={xs:"k-fs-xs",sm:"k-fs-sm",md:"k-fs-md",lg:"k-fs-lg",xl:"k-fs-xl"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyFontWeightOptions={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyMarginOptions={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"},e.typographyMarginTopOptions={xs:"k-mt-xs",sm:"k-mt-sm",md:"k-mt-md",lg:"k-mt-lg",xl:"k-mt-xl",thin:"k-mt-thin",hair:"k-mt-hair"},e.typographyMarginBottomOptions={xs:"k-mb-xs",sm:"k-mb-sm",md:"k-mb-md",lg:"k-mb-lg",xl:"k-mb-xl",thin:"k-mb-thin",hair:"k-mb-hair"},e.typographyMarginLeftOptions={xs:"k-ml-xs",sm:"k-ml-sm",md:"k-ml-md",lg:"k-ml-lg",xl:"k-ml-xl",thin:"k-ml-thin",hair:"k-ml-hair"},e.typographyMarginRightOptions={xs:"k-mr-xs",sm:"k-mr-sm",md:"k-mr-md",lg:"k-mr-lg",xl:"k-mr-xl",thin:"k-mr-thin",hair:"k-mr-hair"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.marginSides={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyTextAlignOptions={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyTextTransformOptions={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyVariantOptions={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"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPresent=function(t){return null!=t}},function(t,r){t.exports=e},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-typography",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219244,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"}}])}));
|
package/dist/cdn/main.js
DELETED
|
@@ -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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define([,,],e):"object"==typeof exports?exports.KendoAngularTypography=e(require("tslib"),require("@angular/core"),require("@progress/kendo-licensing")):t.KendoAngularTypography=e(t.self,t.ng.core,t.KendoLicensing)}(window,(function(t,e,r){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=r(1),i=r(5),s=r(6),a=r(7),p=r(8),u=r(9),l=r(10),c=r(11),g=r(12),y=r(13),h=r(14),d=function(){function t(t,e,r){this.elementWrapper=t,this.renderer=e,this.element=r,this.typographyClasses=[],y.validatePackage(h.packageMetadata)}return t.prototype.ngOnChanges=function(){this.setTypographyClasses()},t.prototype.variantClass=function(){return c.typographyVariantOptions[this.variant]},t.prototype.themeColorClass=function(){return g.isPresent(this.themeColor)?"k-color-"+this.themeColor:null},t.prototype.textAlignClass=function(){return u.typographyTextAlignOptions[this.textAlign]},t.prototype.fontWeightClass=function(){return s.typographyFontWeightOptions[this.fontWeight]},t.prototype.fontSizeClass=function(){return i.typographyFontSizeOptions[this.fontSize]},t.prototype.textTransformClass=function(){return l.typographyTextTransformOptions[this.textTransform]},t.prototype.setMarginClassPerSide=function(t,e){return""+p.marginSides[t]+e},t.prototype.marginClasses=function(){var t=this;if("string"==typeof this.margin)return[a.typographyMarginOptions[this.margin]];if("number"==typeof this.margin)return["k-m-"+this.margin];if("object"==typeof this.margin){var e=[];return Object.keys(this.margin).forEach((function(r){g.isPresent(t.margin[r])&&e.push(t.setMarginClassPerSide(r,t.margin[r]))})),e}},t.prototype.setTypographyClasses=function(){var t=this,e=this.element.nativeElement;this.typographyClasses.forEach((function(r){t.renderer.removeClass(e,r)})),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(r){g.isPresent(r)&&t.renderer.addClass(e,r)}))},n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"variant",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"fontSize",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"fontWeight",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"textAlign",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"textTransform",void 0),n.__decorate([o.Input(),n.__metadata("design:type",String)],t.prototype,"themeColor",void 0),n.__decorate([o.Input(),n.__metadata("design:type",Object)],t.prototype,"margin",void 0),t=n.__decorate([o.Directive({selector:"[kendoTypography]",exportAs:"kendoTypography"}),n.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ElementRef])],t)}();e.TypographyDirective=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4);e.TypographyModule=n.TypographyModule;var o=r(2);e.TypographyDirective=o.TypographyDirective},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=r(1),i=r(2),s=function(){function t(){}return t=n.__decorate([o.NgModule({declarations:[i.TypographyDirective],exports:[i.TypographyDirective]})],t)}();e.TypographyModule=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyFontSizeOptions={xs:"k-fs-xs",sm:"k-fs-sm",md:"k-fs-md",lg:"k-fs-lg",xl:"k-fs-xl"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyFontWeightOptions={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyMarginOptions={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"},e.typographyMarginTopOptions={xs:"k-mt-xs",sm:"k-mt-sm",md:"k-mt-md",lg:"k-mt-lg",xl:"k-mt-xl",thin:"k-mt-thin",hair:"k-mt-hair"},e.typographyMarginBottomOptions={xs:"k-mb-xs",sm:"k-mb-sm",md:"k-mb-md",lg:"k-mb-lg",xl:"k-mb-xl",thin:"k-mb-thin",hair:"k-mb-hair"},e.typographyMarginLeftOptions={xs:"k-ml-xs",sm:"k-ml-sm",md:"k-ml-md",lg:"k-ml-lg",xl:"k-ml-xl",thin:"k-ml-thin",hair:"k-ml-hair"},e.typographyMarginRightOptions={xs:"k-mr-xs",sm:"k-mr-sm",md:"k-mr-md",lg:"k-mr-lg",xl:"k-mr-xl",thin:"k-mr-thin",hair:"k-mr-hair"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.marginSides={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyTextAlignOptions={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyTextTransformOptions={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typographyVariantOptions={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"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPresent=function(t){return null!=t}},function(t,e){t.exports=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-typography",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219244,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"}}])}));
|
|
@@ -1,14 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var 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 © 2021 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 var 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 © 2021 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 var marginSides = {
|
|
9
|
-
'top': 'k-mt-',
|
|
10
|
-
'right': 'k-mr-',
|
|
11
|
-
'bottom': 'k-mb-',
|
|
12
|
-
'left': 'k-ml-'
|
|
13
|
-
};
|
package/dist/es/models/margin.js
DELETED
|
@@ -1,75 +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
|
-
/**
|
|
6
|
-
* Specifies the applied margin to the element.
|
|
7
|
-
*
|
|
8
|
-
* Passing a [TypographyMarginOption]({% slug api_typography_typographymarginoption %}) will set any of the built - in Kendo classes, which provide default margin in pixels.
|
|
9
|
-
*
|
|
10
|
-
* When using the Default or Material themes, passing a number will apply a margin of 4 times the passed number in pixels.
|
|
11
|
-
* When using the Bootstrap theme the applied margin will be equal to the passed number divided by 4 in rem units.
|
|
12
|
-
* The minimum number value is 0 and the maximum is 24.
|
|
13
|
-
*
|
|
14
|
-
* Passing a [Margin]({% slug api_typography_margin %}) object allows setting the margins for each side.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export var typographyMarginOptions = {
|
|
20
|
-
'xs': 'k-m-xs',
|
|
21
|
-
'sm': 'k-m-sm',
|
|
22
|
-
'md': 'k-m-md',
|
|
23
|
-
'lg': 'k-m-lg',
|
|
24
|
-
'xl': 'k-m-xl',
|
|
25
|
-
'thin': 'k-m-thin',
|
|
26
|
-
'hair': 'k-m-hair'
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
export var typographyMarginTopOptions = {
|
|
32
|
-
'xs': 'k-mt-xs',
|
|
33
|
-
'sm': 'k-mt-sm',
|
|
34
|
-
'md': 'k-mt-md',
|
|
35
|
-
'lg': 'k-mt-lg',
|
|
36
|
-
'xl': 'k-mt-xl',
|
|
37
|
-
'thin': 'k-mt-thin',
|
|
38
|
-
'hair': 'k-mt-hair'
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export var typographyMarginBottomOptions = {
|
|
44
|
-
'xs': 'k-mb-xs',
|
|
45
|
-
'sm': 'k-mb-sm',
|
|
46
|
-
'md': 'k-mb-md',
|
|
47
|
-
'lg': 'k-mb-lg',
|
|
48
|
-
'xl': 'k-mb-xl',
|
|
49
|
-
'thin': 'k-mb-thin',
|
|
50
|
-
'hair': 'k-mb-hair'
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
export var typographyMarginLeftOptions = {
|
|
56
|
-
'xs': 'k-ml-xs',
|
|
57
|
-
'sm': 'k-ml-sm',
|
|
58
|
-
'md': 'k-ml-md',
|
|
59
|
-
'lg': 'k-ml-lg',
|
|
60
|
-
'xl': 'k-ml-xl',
|
|
61
|
-
'thin': 'k-ml-thin',
|
|
62
|
-
'hair': 'k-ml-hair'
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
export var typographyMarginRightOptions = {
|
|
68
|
-
'xs': 'k-mr-xs',
|
|
69
|
-
'sm': 'k-mr-sm',
|
|
70
|
-
'md': 'k-mr-md',
|
|
71
|
-
'lg': 'k-mr-lg',
|
|
72
|
-
'xl': 'k-mr-xl',
|
|
73
|
-
'thin': 'k-mr-thin',
|
|
74
|
-
'hair': 'k-mr-hair'
|
|
75
|
-
};
|
|
@@ -1,13 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var 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 © 2021 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 var typographyTextTransformOptions = {
|
|
9
|
-
'lowercase': 'k-text-lowercase',
|
|
10
|
-
'uppercase': 'k-text-uppercase',
|
|
11
|
-
'capitalize': 'k-text-capitalize'
|
|
12
|
-
};
|
|
@@ -1,21 +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
|
-
/**
|
|
6
|
-
* Specifies the theme color.
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* * `inherit` (Default)—Applies coloring based on the current color.
|
|
10
|
-
* * `primary` —Applies coloring based on primary theme color.
|
|
11
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
|
12
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
13
|
-
* * `info`—Applies coloring based on info theme color.
|
|
14
|
-
* * `success`— Applies coloring based on success theme color.
|
|
15
|
-
* * `warning`— Applies coloring based on warning theme color.
|
|
16
|
-
* * `error`— Applies coloring based on error theme color.
|
|
17
|
-
* * `dark`— Applies coloring based on dark theme color.
|
|
18
|
-
* * `light`— Applies coloring based on light theme color.
|
|
19
|
-
* * `inverse`— Applies coloring based on inverse theme color.
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
@@ -1,18 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var 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,15 +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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export var packageMetadata = {
|
|
9
|
-
name: '@progress/kendo-angular-typography',
|
|
10
|
-
productName: 'Kendo UI for Angular',
|
|
11
|
-
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate: 1646219244,
|
|
13
|
-
version: '',
|
|
14
|
-
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'
|
|
15
|
-
};
|
|
@@ -1,140 +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
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Input, ElementRef, Renderer2 } from '@angular/core';
|
|
7
|
-
import { typographyFontSizeOptions } from './models/font-size';
|
|
8
|
-
import { typographyFontWeightOptions } from './models/font-weight';
|
|
9
|
-
import { typographyMarginOptions } from './models/margin';
|
|
10
|
-
import { marginSides } from './models/margin-sides';
|
|
11
|
-
import { typographyTextAlignOptions } from './models/text-align';
|
|
12
|
-
import { typographyTextTransformOptions } from './models/text-transform';
|
|
13
|
-
import { typographyVariantOptions } from './models/variant';
|
|
14
|
-
import { isPresent } from './utils';
|
|
15
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
16
|
-
import { packageMetadata } from './package-metadata';
|
|
17
|
-
/**
|
|
18
|
-
* Represents the [Kendo UI Typography directive for Angular]({% slug overview_typography %}).
|
|
19
|
-
* Used to represent element types in a uniform way by relying on the predefined Kendo theme classes.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts-no-run
|
|
23
|
-
* <div kendoTypography variant="k-h1"></div>
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
var TypographyDirective = /** @class */ (function () {
|
|
27
|
-
function TypographyDirective(elementWrapper, renderer, element) {
|
|
28
|
-
this.elementWrapper = elementWrapper;
|
|
29
|
-
this.renderer = renderer;
|
|
30
|
-
this.element = element;
|
|
31
|
-
this.typographyClasses = [];
|
|
32
|
-
validatePackage(packageMetadata);
|
|
33
|
-
}
|
|
34
|
-
TypographyDirective.prototype.ngOnChanges = function () {
|
|
35
|
-
this.setTypographyClasses();
|
|
36
|
-
};
|
|
37
|
-
TypographyDirective.prototype.variantClass = function () {
|
|
38
|
-
return typographyVariantOptions[this.variant];
|
|
39
|
-
};
|
|
40
|
-
TypographyDirective.prototype.themeColorClass = function () {
|
|
41
|
-
return isPresent(this.themeColor) ? "k-color-" + this.themeColor : null;
|
|
42
|
-
};
|
|
43
|
-
TypographyDirective.prototype.textAlignClass = function () {
|
|
44
|
-
return typographyTextAlignOptions[this.textAlign];
|
|
45
|
-
};
|
|
46
|
-
TypographyDirective.prototype.fontWeightClass = function () {
|
|
47
|
-
return typographyFontWeightOptions[this.fontWeight];
|
|
48
|
-
};
|
|
49
|
-
TypographyDirective.prototype.fontSizeClass = function () {
|
|
50
|
-
return typographyFontSizeOptions[this.fontSize];
|
|
51
|
-
};
|
|
52
|
-
TypographyDirective.prototype.textTransformClass = function () {
|
|
53
|
-
return typographyTextTransformOptions[this.textTransform];
|
|
54
|
-
};
|
|
55
|
-
TypographyDirective.prototype.setMarginClassPerSide = function (marginSide, value) {
|
|
56
|
-
return "" + marginSides[marginSide] + value;
|
|
57
|
-
};
|
|
58
|
-
TypographyDirective.prototype.marginClasses = function () {
|
|
59
|
-
var _this = this;
|
|
60
|
-
if (typeof (this.margin) === 'string') {
|
|
61
|
-
return [typographyMarginOptions[this.margin]];
|
|
62
|
-
}
|
|
63
|
-
if (typeof (this.margin) === 'number') {
|
|
64
|
-
return ["k-m-" + this.margin];
|
|
65
|
-
}
|
|
66
|
-
if (typeof (this.margin) === 'object') {
|
|
67
|
-
var marginClasses_1 = [];
|
|
68
|
-
Object.keys(this.margin).forEach(function (key) {
|
|
69
|
-
if (isPresent(_this.margin[key])) {
|
|
70
|
-
marginClasses_1.push(_this.setMarginClassPerSide(key, _this.margin[key]));
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
return marginClasses_1;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
TypographyDirective.prototype.setTypographyClasses = function () {
|
|
77
|
-
var _this = this;
|
|
78
|
-
var element = this.element.nativeElement;
|
|
79
|
-
this.typographyClasses.forEach(function (className) {
|
|
80
|
-
_this.renderer.removeClass(element, className);
|
|
81
|
-
});
|
|
82
|
-
this.typographyClasses = [
|
|
83
|
-
this.variantClass(),
|
|
84
|
-
this.fontSizeClass(),
|
|
85
|
-
this.fontWeightClass(),
|
|
86
|
-
this.textTransformClass(),
|
|
87
|
-
this.textAlignClass(),
|
|
88
|
-
this.themeColorClass()
|
|
89
|
-
];
|
|
90
|
-
if (this.margin) {
|
|
91
|
-
this.marginClasses().forEach(function (className) {
|
|
92
|
-
_this.typographyClasses.push(className);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
this.typographyClasses.forEach(function (className) {
|
|
96
|
-
if (isPresent(className)) {
|
|
97
|
-
_this.renderer.addClass(element, className);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
tslib_1.__decorate([
|
|
102
|
-
Input(),
|
|
103
|
-
tslib_1.__metadata("design:type", String)
|
|
104
|
-
], TypographyDirective.prototype, "variant", void 0);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
Input(),
|
|
107
|
-
tslib_1.__metadata("design:type", String)
|
|
108
|
-
], TypographyDirective.prototype, "fontSize", void 0);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
Input(),
|
|
111
|
-
tslib_1.__metadata("design:type", String)
|
|
112
|
-
], TypographyDirective.prototype, "fontWeight", void 0);
|
|
113
|
-
tslib_1.__decorate([
|
|
114
|
-
Input(),
|
|
115
|
-
tslib_1.__metadata("design:type", String)
|
|
116
|
-
], TypographyDirective.prototype, "textAlign", void 0);
|
|
117
|
-
tslib_1.__decorate([
|
|
118
|
-
Input(),
|
|
119
|
-
tslib_1.__metadata("design:type", String)
|
|
120
|
-
], TypographyDirective.prototype, "textTransform", void 0);
|
|
121
|
-
tslib_1.__decorate([
|
|
122
|
-
Input(),
|
|
123
|
-
tslib_1.__metadata("design:type", String)
|
|
124
|
-
], TypographyDirective.prototype, "themeColor", void 0);
|
|
125
|
-
tslib_1.__decorate([
|
|
126
|
-
Input(),
|
|
127
|
-
tslib_1.__metadata("design:type", Object)
|
|
128
|
-
], TypographyDirective.prototype, "margin", void 0);
|
|
129
|
-
TypographyDirective = tslib_1.__decorate([
|
|
130
|
-
Directive({
|
|
131
|
-
selector: '[kendoTypography]',
|
|
132
|
-
exportAs: 'kendoTypography'
|
|
133
|
-
}),
|
|
134
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
135
|
-
Renderer2,
|
|
136
|
-
ElementRef])
|
|
137
|
-
], TypographyDirective);
|
|
138
|
-
return TypographyDirective;
|
|
139
|
-
}());
|
|
140
|
-
export { TypographyDirective };
|