@progress/kendo-angular-icons 1.0.1 → 2.0.0-dev.202204131725
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-icons.umd.js +5 -0
- package/{dist/es2015/common → common}/icon-base.d.ts +10 -5
- package/{dist/es2015/common → common}/models/flip.d.ts +0 -0
- package/{dist/es2015/common → common}/models/size.d.ts +0 -0
- package/{dist/es2015/common → common}/models/theme-color.d.ts +0 -0
- package/{dist/es2015 → esm2015}/common/icon-base.js +23 -27
- package/{dist/es2015 → esm2015}/common/models/flip.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es2015 → esm2015}/common/models/theme-color.js +1 -0
- package/esm2015/icon/icon.component.js +48 -0
- package/{dist/es2015 → esm2015}/icon.module.js +14 -11
- package/{dist/es2015 → esm2015}/icons.module.js +17 -12
- package/{dist/es/index.js → esm2015/kendo-angular-icons.js} +0 -1
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/svg-icon/svg-icon.component.js +25 -24
- package/{dist/es2015 → esm2015}/svg-icon.module.js +14 -11
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-icons.js} +113 -102
- package/{dist/es2015/icon → icon}/icon.component.d.ts +7 -3
- package/{dist/es2015/icon.module.d.ts → icon.module.d.ts} +6 -0
- package/{dist/es2015/icons.module.d.ts → icons.module.d.ts} +6 -0
- package/{dist/es2015/index.d.ts → kendo-angular-icons.d.ts} +1 -1
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +34 -101
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/svg-icon → svg-icon}/svg-icon.component.d.ts +9 -5
- package/{dist/es2015/svg-icon.module.d.ts → svg-icon.module.d.ts} +6 -0
- package/dist/cdn/js/kendo-angular-icons.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/icon-base.js +0 -126
- package/dist/es/common/models/flip.js +0 -4
- package/dist/es/common/models/theme-color.js +0 -4
- package/dist/es/icon/icon.component.js +0 -58
- package/dist/es/icon.module.js +0 -56
- package/dist/es/icons.module.js +0 -53
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/svg-icon/svg-icon.component.js +0 -86
- package/dist/es/svg-icon.module.js +0 -56
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/icon/icon.component.js +0 -51
- package/dist/es2015/index.js +0 -9
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -9
- package/dist/fesm5/index.js +0 -415
- package/dist/npm/common/icon-base.js +0 -128
- package/dist/npm/common/models/flip.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/models/theme-color.js +0 -6
- package/dist/npm/icon/icon.component.js +0 -60
- package/dist/npm/icon.module.js +0 -58
- package/dist/npm/icons.module.js +0 -55
- package/dist/npm/index.js +0 -13
- package/dist/npm/main.js +0 -16
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/svg-icon/svg-icon.component.js +0 -88
- package/dist/npm/svg-icon.module.js +0 -58
- package/dist/systemjs/kendo-angular-icons.js +0 -5
package/dist/fesm5/index.js
DELETED
|
@@ -1,415 +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 { __decorate, __metadata, __extends } from 'tslib';
|
|
6
|
-
import { HostBinding, Input, Component, ElementRef, Renderer2, isDevMode, NgModule } from '@angular/core';
|
|
7
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
9
|
-
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
10
|
-
import { CommonModule } from '@angular/common';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var packageMetadata = {
|
|
16
|
-
name: '@progress/kendo-angular-icons',
|
|
17
|
-
productName: 'Kendo UI for Angular',
|
|
18
|
-
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
19
|
-
publishDate: 1646218985,
|
|
20
|
-
version: '',
|
|
21
|
-
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'
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
var sizeClasses = {
|
|
25
|
-
'default': 'k-icon',
|
|
26
|
-
'xsmall': 'k-icon-xs',
|
|
27
|
-
'small': 'k-icon-sm',
|
|
28
|
-
'medium': 'k-icon-md',
|
|
29
|
-
'large': 'k-icon-lg',
|
|
30
|
-
'xlarge': 'k-icon-xl'
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
var IconBase = /** @class */ (function () {
|
|
36
|
-
function IconBase(element, renderer) {
|
|
37
|
-
this.element = element;
|
|
38
|
-
this.renderer = renderer;
|
|
39
|
-
validatePackage(packageMetadata);
|
|
40
|
-
}
|
|
41
|
-
Object.defineProperty(IconBase.prototype, "horizontalFlip", {
|
|
42
|
-
get: function () {
|
|
43
|
-
return this.flip === 'horizontal' || this.flip === 'both';
|
|
44
|
-
},
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(IconBase.prototype, "verticalFlip", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this.flip === 'vertical' || this.flip === 'both';
|
|
51
|
-
},
|
|
52
|
-
enumerable: true,
|
|
53
|
-
configurable: true
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(IconBase.prototype, "themeColor", {
|
|
56
|
-
get: function () {
|
|
57
|
-
return this._themeColor;
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
* Specifies the theme color for the Icon.
|
|
61
|
-
*
|
|
62
|
-
* The possible values are:
|
|
63
|
-
* * `inherit` (Default)—Applies coloring based on the current color.
|
|
64
|
-
* * `primary` —Applies coloring based on primary theme color.
|
|
65
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
|
66
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
67
|
-
* * `info`—Applies coloring based on info theme color.
|
|
68
|
-
* * `success`— Applies coloring based on success theme color.
|
|
69
|
-
* * `warning`— Applies coloring based on warning theme color.
|
|
70
|
-
* * `error`— Applies coloring based on error theme color.
|
|
71
|
-
* * `dark`— Applies coloring based on dark theme color.
|
|
72
|
-
* * `light`— Applies coloring based on light theme color.
|
|
73
|
-
* * `inverse`— Applies coloring based on inverse theme color.
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
|
-
set: function (themeColor) {
|
|
77
|
-
var element = this.element.nativeElement;
|
|
78
|
-
this._themeColor = themeColor;
|
|
79
|
-
this.renderer.removeClass(element, "k-color-" + themeColor);
|
|
80
|
-
if (themeColor) {
|
|
81
|
-
this.renderer.addClass(element, "k-color-" + themeColor);
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(IconBase.prototype, "size", {
|
|
88
|
-
get: function () {
|
|
89
|
-
return this._size;
|
|
90
|
-
},
|
|
91
|
-
/**
|
|
92
|
-
* Specifies the size of the Icon.
|
|
93
|
-
*
|
|
94
|
-
* The possible values are:
|
|
95
|
-
* * `default` (Default) (Font-size: 16px; Width: 16px; Height: 16px)
|
|
96
|
-
* * `xsmall` (Font-size: 8px; Width: 8px; Height: 8px;)
|
|
97
|
-
* * `small` (Font-size: 12px; Width: 12px; Height: 12px;)
|
|
98
|
-
* * `medium` (Font-size: 32px; Width: 32px; Height: 32px;)
|
|
99
|
-
* * `large` (Font-size: 48px; Width: 48px; Height: 48px;)
|
|
100
|
-
* * `xlarge` (Font-size: 64px; Width: 64px; Height: 64px;)
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
set: function (size) {
|
|
104
|
-
var element = this.element.nativeElement;
|
|
105
|
-
this._size = size;
|
|
106
|
-
var sizeClass = sizeClasses[this.size];
|
|
107
|
-
this.renderer.removeClass(element, sizeClass);
|
|
108
|
-
if (size !== 'default') {
|
|
109
|
-
this.renderer.addClass(element, sizeClass);
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
enumerable: true,
|
|
113
|
-
configurable: true
|
|
114
|
-
});
|
|
115
|
-
__decorate([
|
|
116
|
-
HostBinding('class.k-flip-h'),
|
|
117
|
-
__metadata("design:type", Boolean),
|
|
118
|
-
__metadata("design:paramtypes", [])
|
|
119
|
-
], IconBase.prototype, "horizontalFlip", null);
|
|
120
|
-
__decorate([
|
|
121
|
-
HostBinding('class.k-flip-v'),
|
|
122
|
-
__metadata("design:type", Boolean),
|
|
123
|
-
__metadata("design:paramtypes", [])
|
|
124
|
-
], IconBase.prototype, "verticalFlip", null);
|
|
125
|
-
__decorate([
|
|
126
|
-
Input(),
|
|
127
|
-
__metadata("design:type", String)
|
|
128
|
-
], IconBase.prototype, "flip", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
Input(),
|
|
131
|
-
__metadata("design:type", String),
|
|
132
|
-
__metadata("design:paramtypes", [String])
|
|
133
|
-
], IconBase.prototype, "themeColor", null);
|
|
134
|
-
__decorate([
|
|
135
|
-
Input(),
|
|
136
|
-
__metadata("design:type", String),
|
|
137
|
-
__metadata("design:paramtypes", [String])
|
|
138
|
-
], IconBase.prototype, "size", null);
|
|
139
|
-
return IconBase;
|
|
140
|
-
}());
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Represents the Kendo UI Icon component for Angular.
|
|
144
|
-
*/
|
|
145
|
-
var IconComponent = /** @class */ (function (_super) {
|
|
146
|
-
__extends(IconComponent, _super);
|
|
147
|
-
function IconComponent(element, renderer) {
|
|
148
|
-
var _this = _super.call(this, element, renderer) || this;
|
|
149
|
-
_this.element = element;
|
|
150
|
-
_this.renderer = renderer;
|
|
151
|
-
_this.hostClass = true;
|
|
152
|
-
return _this;
|
|
153
|
-
}
|
|
154
|
-
Object.defineProperty(IconComponent.prototype, "name", {
|
|
155
|
-
get: function () {
|
|
156
|
-
return this._name;
|
|
157
|
-
},
|
|
158
|
-
/**
|
|
159
|
-
* Defines the name for an existing icon in a Kendo UI theme, which will be rendered.
|
|
160
|
-
* All [Kendo UI Icons]({% slug icons %}#toc-list-of-font-icons) are supported.
|
|
161
|
-
*/
|
|
162
|
-
set: function (name) {
|
|
163
|
-
var element = this.element.nativeElement;
|
|
164
|
-
this.renderer.removeClass(element, "k-i-" + this.name);
|
|
165
|
-
this._name = name;
|
|
166
|
-
if (name) {
|
|
167
|
-
this.renderer.addClass(element, "k-i-" + this.name);
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
enumerable: true,
|
|
171
|
-
configurable: true
|
|
172
|
-
});
|
|
173
|
-
__decorate([
|
|
174
|
-
HostBinding('class.k-icon'),
|
|
175
|
-
__metadata("design:type", Boolean)
|
|
176
|
-
], IconComponent.prototype, "hostClass", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
Input(),
|
|
179
|
-
__metadata("design:type", String),
|
|
180
|
-
__metadata("design:paramtypes", [String])
|
|
181
|
-
], IconComponent.prototype, "name", null);
|
|
182
|
-
IconComponent = __decorate([
|
|
183
|
-
Component({
|
|
184
|
-
exportAs: 'kendoIcon',
|
|
185
|
-
selector: 'kendo-icon',
|
|
186
|
-
template: ""
|
|
187
|
-
}),
|
|
188
|
-
__metadata("design:paramtypes", [ElementRef, Renderer2])
|
|
189
|
-
], IconComponent);
|
|
190
|
-
return IconComponent;
|
|
191
|
-
}(IconBase));
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Represents the Kendo UI SVG Icon component for Angular.
|
|
195
|
-
*/
|
|
196
|
-
var SVGIconComponent = /** @class */ (function (_super) {
|
|
197
|
-
__extends(SVGIconComponent, _super);
|
|
198
|
-
function SVGIconComponent(domSanitizer, element, renderer) {
|
|
199
|
-
var _this = _super.call(this, element, renderer) || this;
|
|
200
|
-
_this.domSanitizer = domSanitizer;
|
|
201
|
-
_this.element = element;
|
|
202
|
-
_this.renderer = renderer;
|
|
203
|
-
_this.hostClass = true;
|
|
204
|
-
return _this;
|
|
205
|
-
}
|
|
206
|
-
Object.defineProperty(SVGIconComponent.prototype, "icon", {
|
|
207
|
-
get: function () {
|
|
208
|
-
return this._icon;
|
|
209
|
-
},
|
|
210
|
-
/**
|
|
211
|
-
* Defines the SVG icon, which will be rendered.
|
|
212
|
-
*/
|
|
213
|
-
set: function (icon) {
|
|
214
|
-
var element = this.element.nativeElement;
|
|
215
|
-
if (this._icon && this._icon.name) {
|
|
216
|
-
this.renderer.removeClass(element, "k-svg-i-" + this._icon.name);
|
|
217
|
-
}
|
|
218
|
-
this._icon = icon;
|
|
219
|
-
this.renderer.addClass(element, "k-svg-i-" + this._icon.name);
|
|
220
|
-
},
|
|
221
|
-
enumerable: true,
|
|
222
|
-
configurable: true
|
|
223
|
-
});
|
|
224
|
-
Object.defineProperty(SVGIconComponent.prototype, "content", {
|
|
225
|
-
get: function () {
|
|
226
|
-
this.safeContent = this.safeContent || this.domSanitizer.bypassSecurityTrustHtml(this.icon.content);
|
|
227
|
-
return this.safeContent;
|
|
228
|
-
},
|
|
229
|
-
enumerable: true,
|
|
230
|
-
configurable: true
|
|
231
|
-
});
|
|
232
|
-
Object.defineProperty(SVGIconComponent.prototype, "visible", {
|
|
233
|
-
get: function () {
|
|
234
|
-
return this.icon && isDocumentAvailable();
|
|
235
|
-
},
|
|
236
|
-
enumerable: true,
|
|
237
|
-
configurable: true
|
|
238
|
-
});
|
|
239
|
-
SVGIconComponent.prototype.ngOnInit = function () {
|
|
240
|
-
this.verifyIconProperty();
|
|
241
|
-
};
|
|
242
|
-
SVGIconComponent.prototype.verifyIconProperty = function () {
|
|
243
|
-
if (!isDevMode()) {
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
if (!this._icon) {
|
|
247
|
-
throw new Error("\n Invalid configuration.\n The input [icon] is required for the Kendo UI SVG Icon component for Angular.\n See https://www.telerik.com/kendo-angular-ui/components/icons/svg-icon\n ");
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
__decorate([
|
|
251
|
-
HostBinding('class.k-svg-icon'),
|
|
252
|
-
__metadata("design:type", Boolean)
|
|
253
|
-
], SVGIconComponent.prototype, "hostClass", void 0);
|
|
254
|
-
__decorate([
|
|
255
|
-
Input(),
|
|
256
|
-
__metadata("design:type", Object),
|
|
257
|
-
__metadata("design:paramtypes", [Object])
|
|
258
|
-
], SVGIconComponent.prototype, "icon", null);
|
|
259
|
-
SVGIconComponent = __decorate([
|
|
260
|
-
Component({
|
|
261
|
-
exportAs: 'kendoSVGIcon',
|
|
262
|
-
selector: 'kendo-svg-icon',
|
|
263
|
-
template: "\n <svg *ngIf=\"visible\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n [attr.viewBox]=\"icon.viewBox\" [innerHTML]=\"content\">\n </svg>"
|
|
264
|
-
}),
|
|
265
|
-
__metadata("design:paramtypes", [DomSanitizer, ElementRef, Renderer2])
|
|
266
|
-
], SVGIconComponent);
|
|
267
|
-
return SVGIconComponent;
|
|
268
|
-
}(IconBase));
|
|
269
|
-
|
|
270
|
-
var exportedModules = [
|
|
271
|
-
IconComponent
|
|
272
|
-
];
|
|
273
|
-
var declarations = exportedModules.slice();
|
|
274
|
-
/**
|
|
275
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
276
|
-
* definition for the Icon component.
|
|
277
|
-
*
|
|
278
|
-
* @example
|
|
279
|
-
*
|
|
280
|
-
* ```ts-no-run
|
|
281
|
-
* // Import the Icon module
|
|
282
|
-
* import { IconModule } from '@progress/kendo-angular-icons';
|
|
283
|
-
*
|
|
284
|
-
* // The browser platform with a compiler
|
|
285
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
286
|
-
*
|
|
287
|
-
* import { NgModule } from '@angular/core';
|
|
288
|
-
*
|
|
289
|
-
* // Import the app component
|
|
290
|
-
* import { AppComponent } from './app.component';
|
|
291
|
-
*
|
|
292
|
-
* // Define the app module
|
|
293
|
-
* _@NgModule({
|
|
294
|
-
* declarations: [AppComponent], // declare app component
|
|
295
|
-
* imports: [BrowserModule, IconModule], // import Icon module
|
|
296
|
-
* bootstrap: [AppComponent]
|
|
297
|
-
* })
|
|
298
|
-
* export class AppModule {}
|
|
299
|
-
*
|
|
300
|
-
* // Compile and launch the module
|
|
301
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
302
|
-
*
|
|
303
|
-
* ```
|
|
304
|
-
*/
|
|
305
|
-
var IconModule = /** @class */ (function () {
|
|
306
|
-
function IconModule() {
|
|
307
|
-
}
|
|
308
|
-
IconModule = __decorate([
|
|
309
|
-
NgModule({
|
|
310
|
-
declarations: [declarations],
|
|
311
|
-
exports: [exportedModules],
|
|
312
|
-
imports: [CommonModule]
|
|
313
|
-
})
|
|
314
|
-
], IconModule);
|
|
315
|
-
return IconModule;
|
|
316
|
-
}());
|
|
317
|
-
|
|
318
|
-
var exportedModules$1 = [
|
|
319
|
-
SVGIconComponent
|
|
320
|
-
];
|
|
321
|
-
var declarations$1 = exportedModules$1.slice();
|
|
322
|
-
/**
|
|
323
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
324
|
-
* definition for the SVG Icon component.
|
|
325
|
-
*
|
|
326
|
-
* @example
|
|
327
|
-
*
|
|
328
|
-
* ```ts-no-run
|
|
329
|
-
* // Import the SVG Icon module
|
|
330
|
-
* import { SVGIconModule } from '@progress/kendo-angular-icons';
|
|
331
|
-
*
|
|
332
|
-
* // The browser platform with a compiler
|
|
333
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
334
|
-
*
|
|
335
|
-
* import { NgModule } from '@angular/core';
|
|
336
|
-
*
|
|
337
|
-
* // Import the app component
|
|
338
|
-
* import { AppComponent } from './app.component';
|
|
339
|
-
*
|
|
340
|
-
* // Define the app module
|
|
341
|
-
* _@NgModule({
|
|
342
|
-
* declarations: [AppComponent], // declare app component
|
|
343
|
-
* imports: [BrowserModule, SVGIconModule], // import SVG Icon module
|
|
344
|
-
* bootstrap: [AppComponent]
|
|
345
|
-
* })
|
|
346
|
-
* export class AppModule {}
|
|
347
|
-
*
|
|
348
|
-
* // Compile and launch the module
|
|
349
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
350
|
-
*
|
|
351
|
-
* ```
|
|
352
|
-
*/
|
|
353
|
-
var SVGIconModule = /** @class */ (function () {
|
|
354
|
-
function SVGIconModule() {
|
|
355
|
-
}
|
|
356
|
-
SVGIconModule = __decorate([
|
|
357
|
-
NgModule({
|
|
358
|
-
declarations: [declarations$1],
|
|
359
|
-
exports: [exportedModules$1],
|
|
360
|
-
imports: [CommonModule]
|
|
361
|
-
})
|
|
362
|
-
], SVGIconModule);
|
|
363
|
-
return SVGIconModule;
|
|
364
|
-
}());
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
368
|
-
* definition for the Icons components.
|
|
369
|
-
*
|
|
370
|
-
* @example
|
|
371
|
-
*
|
|
372
|
-
* ```ts-no-run
|
|
373
|
-
* // Import the Icons module
|
|
374
|
-
* import { IconsModule } from '@progress/kendo-angular-icons';
|
|
375
|
-
*
|
|
376
|
-
* // The browser platform with a compiler
|
|
377
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
378
|
-
*
|
|
379
|
-
* import { NgModule } from '@angular/core';
|
|
380
|
-
*
|
|
381
|
-
* // Import the app component
|
|
382
|
-
* import { AppComponent } from './app.component';
|
|
383
|
-
*
|
|
384
|
-
* // Define the app module
|
|
385
|
-
* _@NgModule({
|
|
386
|
-
* declarations: [AppComponent], // declare app component
|
|
387
|
-
* imports: [BrowserModule, IconsModule], // import Icons module
|
|
388
|
-
* bootstrap: [AppComponent]
|
|
389
|
-
* })
|
|
390
|
-
* export class AppModule {}
|
|
391
|
-
*
|
|
392
|
-
* // Compile and launch the module
|
|
393
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
394
|
-
*
|
|
395
|
-
* ```
|
|
396
|
-
*/
|
|
397
|
-
var IconsModule = /** @class */ (function () {
|
|
398
|
-
function IconsModule() {
|
|
399
|
-
}
|
|
400
|
-
IconsModule = __decorate([
|
|
401
|
-
NgModule({
|
|
402
|
-
exports: [
|
|
403
|
-
IconModule,
|
|
404
|
-
SVGIconModule
|
|
405
|
-
]
|
|
406
|
-
})
|
|
407
|
-
], IconsModule);
|
|
408
|
-
return IconsModule;
|
|
409
|
-
}());
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Generated bundle index. Do not edit.
|
|
413
|
-
*/
|
|
414
|
-
|
|
415
|
-
export { IconBase, IconComponent, SVGIconComponent, IconModule, SVGIconModule, IconsModule };
|
|
@@ -1,128 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
10
|
-
var package_metadata_1 = require("../package-metadata");
|
|
11
|
-
var sizeClasses = {
|
|
12
|
-
'default': 'k-icon',
|
|
13
|
-
'xsmall': 'k-icon-xs',
|
|
14
|
-
'small': 'k-icon-sm',
|
|
15
|
-
'medium': 'k-icon-md',
|
|
16
|
-
'large': 'k-icon-lg',
|
|
17
|
-
'xlarge': 'k-icon-xl'
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
var IconBase = /** @class */ (function () {
|
|
23
|
-
function IconBase(element, renderer) {
|
|
24
|
-
this.element = element;
|
|
25
|
-
this.renderer = renderer;
|
|
26
|
-
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
27
|
-
}
|
|
28
|
-
Object.defineProperty(IconBase.prototype, "horizontalFlip", {
|
|
29
|
-
get: function () {
|
|
30
|
-
return this.flip === 'horizontal' || this.flip === 'both';
|
|
31
|
-
},
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(IconBase.prototype, "verticalFlip", {
|
|
36
|
-
get: function () {
|
|
37
|
-
return this.flip === 'vertical' || this.flip === 'both';
|
|
38
|
-
},
|
|
39
|
-
enumerable: true,
|
|
40
|
-
configurable: true
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(IconBase.prototype, "themeColor", {
|
|
43
|
-
get: function () {
|
|
44
|
-
return this._themeColor;
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* Specifies the theme color for the Icon.
|
|
48
|
-
*
|
|
49
|
-
* The possible values are:
|
|
50
|
-
* * `inherit` (Default)—Applies coloring based on the current color.
|
|
51
|
-
* * `primary` —Applies coloring based on primary theme color.
|
|
52
|
-
* * `secondary`—Applies coloring based on secondary theme color.
|
|
53
|
-
* * `tertiary`— Applies coloring based on tertiary theme color.
|
|
54
|
-
* * `info`—Applies coloring based on info theme color.
|
|
55
|
-
* * `success`— Applies coloring based on success theme color.
|
|
56
|
-
* * `warning`— Applies coloring based on warning theme color.
|
|
57
|
-
* * `error`— Applies coloring based on error theme color.
|
|
58
|
-
* * `dark`— Applies coloring based on dark theme color.
|
|
59
|
-
* * `light`— Applies coloring based on light theme color.
|
|
60
|
-
* * `inverse`— Applies coloring based on inverse theme color.
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
set: function (themeColor) {
|
|
64
|
-
var element = this.element.nativeElement;
|
|
65
|
-
this._themeColor = themeColor;
|
|
66
|
-
this.renderer.removeClass(element, "k-color-" + themeColor);
|
|
67
|
-
if (themeColor) {
|
|
68
|
-
this.renderer.addClass(element, "k-color-" + themeColor);
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
enumerable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(IconBase.prototype, "size", {
|
|
75
|
-
get: function () {
|
|
76
|
-
return this._size;
|
|
77
|
-
},
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the size of the Icon.
|
|
80
|
-
*
|
|
81
|
-
* The possible values are:
|
|
82
|
-
* * `default` (Default) (Font-size: 16px; Width: 16px; Height: 16px)
|
|
83
|
-
* * `xsmall` (Font-size: 8px; Width: 8px; Height: 8px;)
|
|
84
|
-
* * `small` (Font-size: 12px; Width: 12px; Height: 12px;)
|
|
85
|
-
* * `medium` (Font-size: 32px; Width: 32px; Height: 32px;)
|
|
86
|
-
* * `large` (Font-size: 48px; Width: 48px; Height: 48px;)
|
|
87
|
-
* * `xlarge` (Font-size: 64px; Width: 64px; Height: 64px;)
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
90
|
-
set: function (size) {
|
|
91
|
-
var element = this.element.nativeElement;
|
|
92
|
-
this._size = size;
|
|
93
|
-
var sizeClass = sizeClasses[this.size];
|
|
94
|
-
this.renderer.removeClass(element, sizeClass);
|
|
95
|
-
if (size !== 'default') {
|
|
96
|
-
this.renderer.addClass(element, sizeClass);
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
enumerable: true,
|
|
100
|
-
configurable: true
|
|
101
|
-
});
|
|
102
|
-
tslib_1.__decorate([
|
|
103
|
-
core_1.HostBinding('class.k-flip-h'),
|
|
104
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
105
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
106
|
-
], IconBase.prototype, "horizontalFlip", null);
|
|
107
|
-
tslib_1.__decorate([
|
|
108
|
-
core_1.HostBinding('class.k-flip-v'),
|
|
109
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
110
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
111
|
-
], IconBase.prototype, "verticalFlip", null);
|
|
112
|
-
tslib_1.__decorate([
|
|
113
|
-
core_1.Input(),
|
|
114
|
-
tslib_1.__metadata("design:type", String)
|
|
115
|
-
], IconBase.prototype, "flip", void 0);
|
|
116
|
-
tslib_1.__decorate([
|
|
117
|
-
core_1.Input(),
|
|
118
|
-
tslib_1.__metadata("design:type", String),
|
|
119
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
120
|
-
], IconBase.prototype, "themeColor", null);
|
|
121
|
-
tslib_1.__decorate([
|
|
122
|
-
core_1.Input(),
|
|
123
|
-
tslib_1.__metadata("design:type", String),
|
|
124
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
125
|
-
], IconBase.prototype, "size", null);
|
|
126
|
-
return IconBase;
|
|
127
|
-
}());
|
|
128
|
-
exports.IconBase = IconBase;
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,60 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var icon_base_1 = require("../common/icon-base");
|
|
10
|
-
/**
|
|
11
|
-
* Represents the Kendo UI Icon component for Angular.
|
|
12
|
-
*/
|
|
13
|
-
var IconComponent = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(IconComponent, _super);
|
|
15
|
-
function IconComponent(element, renderer) {
|
|
16
|
-
var _this = _super.call(this, element, renderer) || this;
|
|
17
|
-
_this.element = element;
|
|
18
|
-
_this.renderer = renderer;
|
|
19
|
-
_this.hostClass = true;
|
|
20
|
-
return _this;
|
|
21
|
-
}
|
|
22
|
-
Object.defineProperty(IconComponent.prototype, "name", {
|
|
23
|
-
get: function () {
|
|
24
|
-
return this._name;
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* Defines the name for an existing icon in a Kendo UI theme, which will be rendered.
|
|
28
|
-
* All [Kendo UI Icons]({% slug icons %}#toc-list-of-font-icons) are supported.
|
|
29
|
-
*/
|
|
30
|
-
set: function (name) {
|
|
31
|
-
var element = this.element.nativeElement;
|
|
32
|
-
this.renderer.removeClass(element, "k-i-" + this.name);
|
|
33
|
-
this._name = name;
|
|
34
|
-
if (name) {
|
|
35
|
-
this.renderer.addClass(element, "k-i-" + this.name);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
tslib_1.__decorate([
|
|
42
|
-
core_1.HostBinding('class.k-icon'),
|
|
43
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
44
|
-
], IconComponent.prototype, "hostClass", void 0);
|
|
45
|
-
tslib_1.__decorate([
|
|
46
|
-
core_1.Input(),
|
|
47
|
-
tslib_1.__metadata("design:type", String),
|
|
48
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
49
|
-
], IconComponent.prototype, "name", null);
|
|
50
|
-
IconComponent = tslib_1.__decorate([
|
|
51
|
-
core_1.Component({
|
|
52
|
-
exportAs: 'kendoIcon',
|
|
53
|
-
selector: 'kendo-icon',
|
|
54
|
-
template: ""
|
|
55
|
-
}),
|
|
56
|
-
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef, core_1.Renderer2])
|
|
57
|
-
], IconComponent);
|
|
58
|
-
return IconComponent;
|
|
59
|
-
}(icon_base_1.IconBase));
|
|
60
|
-
exports.IconComponent = IconComponent;
|
package/dist/npm/icon.module.js
DELETED
|
@@ -1,58 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var common_1 = require("@angular/common");
|
|
10
|
-
var icon_component_1 = require("./icon/icon.component");
|
|
11
|
-
var exportedModules = [
|
|
12
|
-
icon_component_1.IconComponent
|
|
13
|
-
];
|
|
14
|
-
var declarations = exportedModules.slice();
|
|
15
|
-
/**
|
|
16
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
17
|
-
* definition for the Icon component.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
*
|
|
21
|
-
* ```ts-no-run
|
|
22
|
-
* // Import the Icon module
|
|
23
|
-
* import { IconModule } from '@progress/kendo-angular-icons';
|
|
24
|
-
*
|
|
25
|
-
* // The browser platform with a compiler
|
|
26
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
27
|
-
*
|
|
28
|
-
* import { NgModule } from '@angular/core';
|
|
29
|
-
*
|
|
30
|
-
* // Import the app component
|
|
31
|
-
* import { AppComponent } from './app.component';
|
|
32
|
-
*
|
|
33
|
-
* // Define the app module
|
|
34
|
-
* _@NgModule({
|
|
35
|
-
* declarations: [AppComponent], // declare app component
|
|
36
|
-
* imports: [BrowserModule, IconModule], // import Icon module
|
|
37
|
-
* bootstrap: [AppComponent]
|
|
38
|
-
* })
|
|
39
|
-
* export class AppModule {}
|
|
40
|
-
*
|
|
41
|
-
* // Compile and launch the module
|
|
42
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
43
|
-
*
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
var IconModule = /** @class */ (function () {
|
|
47
|
-
function IconModule() {
|
|
48
|
-
}
|
|
49
|
-
IconModule = tslib_1.__decorate([
|
|
50
|
-
core_1.NgModule({
|
|
51
|
-
declarations: [declarations],
|
|
52
|
-
exports: [exportedModules],
|
|
53
|
-
imports: [common_1.CommonModule]
|
|
54
|
-
})
|
|
55
|
-
], IconModule);
|
|
56
|
-
return IconModule;
|
|
57
|
-
}());
|
|
58
|
-
exports.IconModule = IconModule;
|