@coreui/icons-angular 3.0.0-alpha.3 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,528 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/platform-browser'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@coreui/icons-angular', ['exports', '@angular/core', '@angular/platform-browser', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.coreui = global.coreui || {}, global.coreui["icons-angular"] = {}), global.ng.core, global.ng.platformBrowser, global.ng.common));
5
- })(this, (function (exports, i0, i1, i3) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
-
29
- var IconSetService = /** @class */ (function () {
30
- function IconSetService() {
31
- this._iconNames = {};
32
- this._icons = {};
33
- }
34
- Object.defineProperty(IconSetService.prototype, "iconNames", {
35
- get: function () {
36
- return this._iconNames;
37
- },
38
- enumerable: false,
39
- configurable: true
40
- });
41
- ;
42
- Object.defineProperty(IconSetService.prototype, "icons", {
43
- get: function () {
44
- return this._icons;
45
- },
46
- set: function (iconSet) {
47
- for (var iconsKey in iconSet) {
48
- this._iconNames[iconsKey] = iconsKey;
49
- }
50
- this._icons = iconSet;
51
- },
52
- enumerable: false,
53
- configurable: true
54
- });
55
- IconSetService.prototype.getIcon = function (name) {
56
- var icon = this.icons[name];
57
- if (!icon) {
58
- console.warn("CoreUI WARN: Icon " + name + " is not registered in IconService");
59
- }
60
- return this.icons[name];
61
- };
62
- return IconSetService;
63
- }());
64
- IconSetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconSetService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
65
- IconSetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconSetService, providedIn: 'root' });
66
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconSetService, decorators: [{
67
- type: i0.Injectable,
68
- args: [{
69
- providedIn: 'root'
70
- }]
71
- }], ctorParameters: function () { return []; } });
72
-
73
- var IconSetModule = /** @class */ (function () {
74
- function IconSetModule(parentModule) {
75
- if (parentModule) {
76
- throw new Error('CoreUI IconSetModule is already loaded. Import it in the AppModule only');
77
- }
78
- }
79
- IconSetModule.forRoot = function () {
80
- return {
81
- ngModule: IconSetModule,
82
- providers: [
83
- { provide: IconSetService }
84
- ]
85
- };
86
- };
87
- return IconSetModule;
88
- }());
89
- IconSetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconSetModule, deps: [{ token: IconSetModule, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
90
- IconSetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconSetModule, imports: [i3.CommonModule] });
91
- IconSetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconSetModule, providers: [
92
- IconSetService
93
- ], imports: [[
94
- i3.CommonModule
95
- ]] });
96
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconSetModule, decorators: [{
97
- type: i0.NgModule,
98
- args: [{
99
- imports: [
100
- i3.CommonModule
101
- ],
102
- providers: [
103
- IconSetService
104
- ]
105
- }]
106
- }], ctorParameters: function () {
107
- return [{ type: IconSetModule, decorators: [{
108
- type: i0.Optional
109
- }, {
110
- type: i0.SkipSelf
111
- }] }];
112
- } });
113
-
114
- var IconDirective = /** @class */ (function () {
115
- function IconDirective(renderer, elementRef, sanitizer, iconSet) {
116
- this.renderer = renderer;
117
- this.elementRef = elementRef;
118
- this.sanitizer = sanitizer;
119
- this.iconSet = iconSet;
120
- this.size = '';
121
- this.xmlns = 'http://www.w3.org/2000/svg';
122
- this.pointerEvents = 'none';
123
- this.role = 'img';
124
- }
125
- Object.defineProperty(IconDirective.prototype, "name", {
126
- get: function () {
127
- return this._name;
128
- },
129
- set: function (name) {
130
- this._name = (name === null || name === void 0 ? void 0 : name.includes('-')) ? this.toCamelCase(name) : name;
131
- },
132
- enumerable: false,
133
- configurable: true
134
- });
135
- Object.defineProperty(IconDirective.prototype, "viewBox", {
136
- get: function () {
137
- var _a;
138
- return (_a = this._viewBox) !== null && _a !== void 0 ? _a : this.scale;
139
- },
140
- set: function (viewBox) {
141
- this._viewBox = viewBox;
142
- },
143
- enumerable: false,
144
- configurable: true
145
- });
146
- Object.defineProperty(IconDirective.prototype, "hostClasses", {
147
- get: function () {
148
- var _c;
149
- var _a;
150
- var classes = (_c = {
151
- icon: true
152
- },
153
- _c["icon-" + this.computedSize] = !!this.computedSize,
154
- _c);
155
- return (_a = this.customClasses) !== null && _a !== void 0 ? _a : classes;
156
- },
157
- enumerable: false,
158
- configurable: true
159
- });
160
- Object.defineProperty(IconDirective.prototype, "innerHtml", {
161
- get: function () {
162
- var _a, _b;
163
- var code = Array.isArray(this.code) ? this.code[1] || this.code[0] : (_a = this.code) !== null && _a !== void 0 ? _a : '';
164
- // todo proper sanitize
165
- // const sanitized = this.sanitizer.sanitize(SecurityContext.HTML, code);
166
- return this.sanitizer.bypassSecurityTrustHtml((_b = (this.titleCode + code)) !== null && _b !== void 0 ? _b : '');
167
- },
168
- enumerable: false,
169
- configurable: true
170
- });
171
- Object.defineProperty(IconDirective.prototype, "titleCode", {
172
- get: function () {
173
- return this.title ? "<title>" + this.title + "</title>" : '';
174
- },
175
- enumerable: false,
176
- configurable: true
177
- });
178
- Object.defineProperty(IconDirective.prototype, "code", {
179
- get: function () {
180
- var _a;
181
- if (this.content) {
182
- return this.content;
183
- }
184
- if (this.iconSet && this.name) {
185
- return this.iconSet.getIcon(this.name);
186
- }
187
- if (this.name && !((_a = this.iconSet) === null || _a === void 0 ? void 0 : _a.icons[this.name]))
188
- console.warn("c-icon component: icon name '" + this.name + "' does not exist for IconSet service. " +
189
- "To use icon by 'name' prop you need to add it to IconSet service. \n", this.name);
190
- return undefined;
191
- },
192
- enumerable: false,
193
- configurable: true
194
- });
195
- Object.defineProperty(IconDirective.prototype, "scale", {
196
- get: function () {
197
- return Array.isArray(this.code) && this.code.length > 1 ? "0 0 " + this.code[0] : '0 0 64 64';
198
- },
199
- enumerable: false,
200
- configurable: true
201
- });
202
- Object.defineProperty(IconDirective.prototype, "computedSize", {
203
- get: function () {
204
- var addCustom = !this.size && (this.width || this.height);
205
- return this.size === 'custom' || addCustom ? 'custom-size' : this.size;
206
- },
207
- enumerable: false,
208
- configurable: true
209
- });
210
- Object.defineProperty(IconDirective.prototype, "computedClasses", {
211
- get: function () {
212
- var _c;
213
- var classes = (_c = {
214
- icon: true
215
- },
216
- _c["icon-" + this.computedSize] = !!this.computedSize,
217
- _c);
218
- return !!this.customClasses ? this.customClasses : classes;
219
- },
220
- enumerable: false,
221
- configurable: true
222
- });
223
- IconDirective.prototype.toCamelCase = function (str) {
224
- return str.replace(/([-_][a-z0-9])/ig, function ($1) {
225
- return $1.toUpperCase().replace('-', '');
226
- });
227
- };
228
- return IconDirective;
229
- }());
230
- IconDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }, { token: i1__namespace.DomSanitizer }, { token: IconSetService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
231
- IconDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: IconDirective, selector: "svg[cIcon]", inputs: { content: ["cIcon", "content"], size: "size", title: "title", customClasses: "customClasses", width: "width", height: "height", name: "name", viewBox: "viewBox", xmlns: "xmlns", pointerEvents: ["pointer-events", "pointerEvents"], role: "role" }, host: { properties: { "attr.viewBox": "this.viewBox", "attr.xmlns": "this.xmlns", "attr.pointer-events": "this.pointerEvents", "attr.role": "this.role", "class": "this.hostClasses", "innerHtml": "this.innerHtml" } }, exportAs: ["cIcon"], ngImport: i0__namespace });
232
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconDirective, decorators: [{
233
- type: i0.Directive,
234
- args: [{
235
- selector: 'svg[cIcon]',
236
- exportAs: 'cIcon'
237
- }]
238
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }, { type: i1__namespace.DomSanitizer }, { type: IconSetService }]; }, propDecorators: { content: [{
239
- type: i0.Input,
240
- args: ['cIcon']
241
- }], size: [{
242
- type: i0.Input
243
- }], title: [{
244
- type: i0.Input
245
- }], customClasses: [{
246
- type: i0.Input
247
- }], width: [{
248
- type: i0.Input
249
- }], height: [{
250
- type: i0.Input
251
- }], name: [{
252
- type: i0.Input
253
- }], viewBox: [{
254
- type: i0.HostBinding,
255
- args: ['attr.viewBox']
256
- }, {
257
- type: i0.Input
258
- }], xmlns: [{
259
- type: i0.HostBinding,
260
- args: ['attr.xmlns']
261
- }, {
262
- type: i0.Input
263
- }], pointerEvents: [{
264
- type: i0.HostBinding,
265
- args: ['attr.pointer-events']
266
- }, {
267
- type: i0.Input,
268
- args: ['pointer-events']
269
- }], role: [{
270
- type: i0.HostBinding,
271
- args: ['attr.role']
272
- }, {
273
- type: i0.Input
274
- }], hostClasses: [{
275
- type: i0.HostBinding,
276
- args: ['class']
277
- }], innerHtml: [{
278
- type: i0.HostBinding,
279
- args: ['innerHtml']
280
- }] } });
281
-
282
- var HtmlAttributesDirective = /** @class */ (function () {
283
- function HtmlAttributesDirective(renderer, el) {
284
- this.renderer = renderer;
285
- this.el = el;
286
- }
287
- HtmlAttributesDirective.prototype.ngOnInit = function () {
288
- var attribs = this.cHtmlAttr;
289
- for (var attr in attribs) {
290
- if (attr === 'style' && typeof (attribs[attr]) === 'object') {
291
- this.setStyle(attribs[attr]);
292
- }
293
- else if (attr === 'class') {
294
- this.addClass(attribs[attr]);
295
- }
296
- else {
297
- this.setAttrib(attr, attribs[attr]);
298
- }
299
- }
300
- };
301
- HtmlAttributesDirective.prototype.setStyle = function (styles) {
302
- // tslint:disable-next-line:forin
303
- for (var style in styles) {
304
- this.renderer.setStyle(this.el.nativeElement, style, styles[style]);
305
- }
306
- };
307
- HtmlAttributesDirective.prototype.addClass = function (classes) {
308
- var _this = this;
309
- var classArray = (Array.isArray(classes) ? classes : classes.split(' '));
310
- classArray.filter(function (element) { return element.length > 0; }).forEach(function (element) {
311
- _this.renderer.addClass(_this.el.nativeElement, element);
312
- });
313
- };
314
- HtmlAttributesDirective.prototype.setAttrib = function (key, value) {
315
- value !== null ?
316
- this.renderer.setAttribute(this.el.nativeElement, key, value) :
317
- this.renderer.removeAttribute(this.el.nativeElement, key);
318
- };
319
- return HtmlAttributesDirective;
320
- }());
321
- HtmlAttributesDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HtmlAttributesDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
322
- HtmlAttributesDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: HtmlAttributesDirective, selector: "[cHtmlAttr]", inputs: { cHtmlAttr: "cHtmlAttr" }, exportAs: ["cHtmlAttr"], ngImport: i0__namespace });
323
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: HtmlAttributesDirective, decorators: [{
324
- type: i0.Directive,
325
- args: [{
326
- selector: '[cHtmlAttr]',
327
- exportAs: 'cHtmlAttr'
328
- }]
329
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }]; }, propDecorators: { cHtmlAttr: [{
330
- type: i0.Input
331
- }] } });
332
-
333
- var IconComponent = /** @class */ (function () {
334
- function IconComponent(renderer, elementRef, sanitizer, iconSet) {
335
- this.renderer = renderer;
336
- this.elementRef = elementRef;
337
- this.sanitizer = sanitizer;
338
- this.iconSet = iconSet;
339
- this.attributes = { role: 'img' };
340
- this.size = '';
341
- this.use = '';
342
- this.customClasses = '';
343
- this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');
344
- }
345
- Object.defineProperty(IconComponent.prototype, "name", {
346
- get: function () {
347
- return this._name;
348
- },
349
- set: function (name) {
350
- this._name = name.includes('-') ? this.toCamelCase(name) : name;
351
- },
352
- enumerable: false,
353
- configurable: true
354
- });
355
- Object.defineProperty(IconComponent.prototype, "viewBox", {
356
- get: function () {
357
- var _a;
358
- return (_a = this._viewBox) !== null && _a !== void 0 ? _a : this.scale;
359
- },
360
- set: function (viewBox) {
361
- this._viewBox = viewBox;
362
- },
363
- enumerable: false,
364
- configurable: true
365
- });
366
- Object.defineProperty(IconComponent.prototype, "innerHtml", {
367
- get: function () {
368
- var _a, _b;
369
- var code = Array.isArray(this.code) ? this.code[1] || this.code[0] : (_a = this.code) !== null && _a !== void 0 ? _a : '';
370
- // todo proper sanitize
371
- // const sanitized = this.sanitizer.sanitize(SecurityContext.HTML, code);
372
- return this.sanitizer.bypassSecurityTrustHtml((_b = (this.titleCode + code)) !== null && _b !== void 0 ? _b : '');
373
- },
374
- enumerable: false,
375
- configurable: true
376
- });
377
- IconComponent.prototype.ngAfterViewInit = function () {
378
- var _this = this;
379
- this.elementRef.nativeElement.classList.forEach(function (item) {
380
- _this.renderer.addClass(_this.svgElementRef.nativeElement, item);
381
- });
382
- var parentElement = this.renderer.parentNode(this.elementRef.nativeElement);
383
- var svgElement = this.svgElementRef.nativeElement;
384
- this.renderer.insertBefore(parentElement, svgElement, this.elementRef.nativeElement);
385
- this.renderer.removeChild(parentElement, this.elementRef.nativeElement);
386
- };
387
- Object.defineProperty(IconComponent.prototype, "titleCode", {
388
- get: function () {
389
- return this.title ? "<title>" + this.title + "</title>" : '';
390
- },
391
- enumerable: false,
392
- configurable: true
393
- });
394
- Object.defineProperty(IconComponent.prototype, "code", {
395
- get: function () {
396
- var _a;
397
- if (this.content) {
398
- return this.content;
399
- }
400
- if (this.iconSet && this.name) {
401
- return this.iconSet.getIcon(this.name);
402
- }
403
- if (this.name && !((_a = this.iconSet) === null || _a === void 0 ? void 0 : _a.icons[this.name]))
404
- console.warn("c-icon component: icon name '" + this.name + "' does not exist for IconSet service. " +
405
- "To use icon by 'name' prop you need to add it to IconSet service. \n", this.name);
406
- return undefined;
407
- },
408
- enumerable: false,
409
- configurable: true
410
- });
411
- Object.defineProperty(IconComponent.prototype, "scale", {
412
- get: function () {
413
- return Array.isArray(this.code) && this.code.length > 1 ? "0 0 " + this.code[0] : '0 0 64 64';
414
- },
415
- enumerable: false,
416
- configurable: true
417
- });
418
- Object.defineProperty(IconComponent.prototype, "computedSize", {
419
- get: function () {
420
- var addCustom = !this.size && (this.width || this.height);
421
- return this.size === 'custom' || addCustom ? 'custom-size' : this.size;
422
- },
423
- enumerable: false,
424
- configurable: true
425
- });
426
- Object.defineProperty(IconComponent.prototype, "computedClasses", {
427
- get: function () {
428
- var _c;
429
- var classes = (_c = {
430
- icon: true
431
- },
432
- _c["icon-" + this.computedSize] = !!this.computedSize,
433
- _c);
434
- return !!this.customClasses ? this.customClasses : classes;
435
- },
436
- enumerable: false,
437
- configurable: true
438
- });
439
- IconComponent.prototype.toCamelCase = function (str) {
440
- return str.replace(/([-_][a-z0-9])/ig, function ($1) {
441
- return $1.toUpperCase().replace('-', '');
442
- });
443
- };
444
- return IconComponent;
445
- }());
446
- IconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconComponent, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }, { token: i1__namespace.DomSanitizer }, { token: IconSetService }], target: i0__namespace.ɵɵFactoryTarget.Component });
447
- IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: IconComponent, selector: "c-icon", inputs: { attributes: "attributes", content: "content", size: "size", title: "title", use: "use", customClasses: "customClasses", width: "width", height: "height", name: "name", viewBox: "viewBox" }, viewQueries: [{ propertyName: "svgElementRef", first: true, predicate: ["svgElement"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<svg *ngIf=\"(!use) && (!!code)\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n [attr.width]=\"width\"\r\n [attr.height]=\"height || width\"\r\n [attr.viewBox]=\"viewBox\"\r\n [innerHtml]=\"innerHtml\"\r\n [ngClass]=\"computedClasses\"\r\n [cHtmlAttr]=\"attributes\"\r\n role=\"img\"\r\n pointer-events=\"none\"\r\n #svgElement\r\n>\r\n</svg>\r\n\r\n<svg *ngIf=\"use\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n [attr.width]=\"width\"\r\n [attr.height]=\"height || width\"\r\n [ngClass]=\"computedClasses\"\r\n [cHtmlAttr]=\"attributes\"\r\n role=\"img\"\r\n pointer-events=\"none\"\r\n>\r\n <use [attr.href]=\"use\"></use>\r\n</svg>\r\n", styles: [".icon{display:inline-block;color:inherit;text-align:center;vertical-align:-.125rem;fill:currentColor}.icon:not(.icon-c-s):not(.icon-custom-size){width:1rem;height:1rem;font-size:1rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-xxl{width:2rem;height:2rem;font-size:2rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-xl{width:1.5rem;height:1.5rem;font-size:1.5rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-lg{width:1.25rem;height:1.25rem;font-size:1.25rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-sm{width:.875rem;height:.875rem;font-size:.875rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-3xl{width:3rem;height:3rem;font-size:3rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-4xl{width:4rem;height:4rem;font-size:4rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-5xl{width:5rem;height:5rem;font-size:5rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-6xl{width:6rem;height:6rem;font-size:6rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-7xl{width:7rem;height:7rem;font-size:7rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-8xl{width:8rem;height:8rem;font-size:8rem}.icon:not(.icon-c-s):not(.icon-custom-size).icon-9xl{width:9rem;height:9rem;font-size:9rem}\n"], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: HtmlAttributesDirective, selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }] });
448
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconComponent, decorators: [{
449
- type: i0.Component,
450
- args: [{
451
- selector: 'c-icon',
452
- templateUrl: './icon.component.svg',
453
- styleUrls: ['./icon.component.scss']
454
- }]
455
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }, { type: i1__namespace.DomSanitizer }, { type: IconSetService }]; }, propDecorators: { attributes: [{
456
- type: i0.Input
457
- }], content: [{
458
- type: i0.Input
459
- }], size: [{
460
- type: i0.Input
461
- }], title: [{
462
- type: i0.Input
463
- }], use: [{
464
- type: i0.Input
465
- }], customClasses: [{
466
- type: i0.Input
467
- }], width: [{
468
- type: i0.Input
469
- }], height: [{
470
- type: i0.Input
471
- }], name: [{
472
- type: i0.Input
473
- }], viewBox: [{
474
- type: i0.Input
475
- }], svgElementRef: [{
476
- type: i0.ViewChild,
477
- args: ['svgElement', { read: i0.ElementRef }]
478
- }] } });
479
-
480
- var IconModule = /** @class */ (function () {
481
- function IconModule() {
482
- }
483
- return IconModule;
484
- }());
485
- IconModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
486
- IconModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconModule, declarations: [IconComponent,
487
- HtmlAttributesDirective,
488
- IconDirective], imports: [i3.CommonModule], exports: [IconComponent,
489
- IconDirective] });
490
- IconModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconModule, imports: [[
491
- i3.CommonModule,
492
- ]] });
493
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IconModule, decorators: [{
494
- type: i0.NgModule,
495
- args: [{
496
- declarations: [
497
- IconComponent,
498
- HtmlAttributesDirective,
499
- IconDirective
500
- ],
501
- imports: [
502
- i3.CommonModule,
503
- ],
504
- exports: [
505
- IconComponent,
506
- IconDirective
507
- ],
508
- }]
509
- }] });
510
-
511
- /*
512
- * Public API Surface of @coreui/icons-angular
513
- */
514
-
515
- /**
516
- * Generated bundle index. Do not edit.
517
- */
518
-
519
- exports.IconComponent = IconComponent;
520
- exports.IconDirective = IconDirective;
521
- exports.IconModule = IconModule;
522
- exports.IconSetModule = IconSetModule;
523
- exports.IconSetService = IconSetService;
524
-
525
- Object.defineProperty(exports, '__esModule', { value: true });
526
-
527
- }));
528
- //# sourceMappingURL=coreui-icons-angular.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coreui-icons-angular.umd.js","sources":["../../../projects/coreui-icons-angular/src/lib/icon-set/icon-set.service.ts","../../../projects/coreui-icons-angular/src/lib/icon-set/icon-set.module.ts","../../../projects/coreui-icons-angular/src/lib/icon/icon.directive.ts","../../../projects/coreui-icons-angular/src/lib/shared/html-attr.directive.ts","../../../projects/coreui-icons-angular/src/lib/icon/icon.component.ts","../../../projects/coreui-icons-angular/src/lib/icon/icon.component.svg","../../../projects/coreui-icons-angular/src/lib/icon/icon.module.ts","../../../projects/coreui-icons-angular/src/public-api.ts","../../../projects/coreui-icons-angular/src/coreui-icons-angular.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\nexport interface IIconSet {\r\n [iconName: string]: string[];\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class IconSetService {\r\n\r\n constructor() {}\r\n\r\n public get iconNames() {\r\n return this._iconNames;\r\n };\r\n private _iconNames: { [key: string]: string } = {};\r\n\r\n get icons(): IIconSet {\r\n return this._icons;\r\n }\r\n set icons(iconSet) {\r\n for (const iconsKey in iconSet) {\r\n this._iconNames[iconsKey] = iconsKey;\r\n }\r\n this._icons = iconSet;\r\n }\r\n private _icons: IIconSet = {};\r\n\r\n public getIcon(name: string): string[] {\r\n const icon = this.icons[name];\r\n if (!icon) {\r\n console.warn(`CoreUI WARN: Icon ${name} is not registered in IconService`);\r\n }\r\n return this.icons[name];\r\n }\r\n}\r\n","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { IconSetService } from './icon-set.service';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule\r\n ],\r\n providers: [\r\n IconSetService\r\n ]\r\n})\r\nexport class IconSetModule {\r\n constructor(@Optional() @SkipSelf() parentModule?: IconSetModule) {\r\n if (parentModule) {\r\n throw new Error(\r\n 'CoreUI IconSetModule is already loaded. Import it in the AppModule only');\r\n }\r\n }\r\n\r\n static forRoot(): ModuleWithProviders<IconSetModule> {\r\n return {\r\n ngModule: IconSetModule,\r\n providers: [\r\n { provide: IconSetService }\r\n ]\r\n };\r\n }\r\n}\r\n","import { Directive, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { IconSetService } from '../icon-set';\n\nimport { IconSize, IIcon } from './icon.interface';\n\n@Directive({\n selector: 'svg[cIcon]',\n exportAs: 'cIcon'\n})\nexport class IconDirective implements IIcon {\n\n @Input('cIcon') content?: string | string[] | any[];\n @Input() size: IconSize = '';\n @Input() title?: string;\n @Input() customClasses?: string | string[] | Set<string> | { [klass: string]: any };\n @Input() width?: string;\n @Input() height?: string;\n\n @Input()\n set name(name: string) {\n this._name = name?.includes('-') ? this.toCamelCase(name) : name;\n }\n get name(): string {\n return this._name;\n }\n private _name!: string;\n\n @HostBinding('attr.viewBox')\n @Input()\n set viewBox(viewBox: string) {\n this._viewBox = viewBox;\n }\n get viewBox(): string {\n return this._viewBox ?? this.scale;\n }\n private _viewBox!: string;\n\n @HostBinding('attr.xmlns')\n @Input() xmlns = 'http://www.w3.org/2000/svg';\n\n @HostBinding('attr.pointer-events')\n @Input('pointer-events') pointerEvents = 'none';\n\n @HostBinding('attr.role')\n @Input() role = 'img';\n\n @HostBinding('class')\n get hostClasses() {\n const classes = {\n icon: true,\n [`icon-${this.computedSize}`]: !!this.computedSize\n };\n return this.customClasses ?? classes;\n }\n\n @HostBinding('innerHtml')\n get innerHtml() {\n const code = Array.isArray(this.code) ? this.code[1] || this.code[0] : this.code ?? '';\n // todo proper sanitize\n // const sanitized = this.sanitizer.sanitize(SecurityContext.HTML, code);\n return this.sanitizer.bypassSecurityTrustHtml((this.titleCode + code) ?? '');\n }\n\n constructor(\n private renderer: Renderer2,\n private elementRef: ElementRef,\n private sanitizer: DomSanitizer,\n private iconSet: IconSetService\n ) { }\n\n get titleCode(): string {\n return this.title ? `<title>${this.title}</title>` : '';\n }\n\n get code(): string | string[] | undefined {\n if (this.content) {\n return this.content;\n }\n if (this.iconSet && this.name) {\n return this.iconSet.getIcon(this.name);\n }\n if (this.name && !this.iconSet?.icons[this.name])\n console.warn(`c-icon component: icon name '${this.name}' does not exist for IconSet service. ` +\n `To use icon by 'name' prop you need to add it to IconSet service. \\n`,\n this.name\n );\n return undefined;\n }\n\n get scale(): string {\n return Array.isArray(this.code) && this.code.length > 1 ? `0 0 ${this.code[0]}` : '0 0 64 64';\n }\n\n get computedSize(): Exclude<IconSize, 'custom'> | undefined {\n const addCustom = !this.size && (this.width || this.height);\n return this.size === 'custom' || addCustom ? 'custom-size' : this.size;\n }\n\n get computedClasses(): any {\n const classes = {\n icon: true,\n [`icon-${this.computedSize}`]: !!this.computedSize\n };\n return !!this.customClasses ? this.customClasses : classes;\n }\n\n toCamelCase(str: string): any {\n return str.replace(/([-_][a-z0-9])/ig, ($1: string) => {\n return $1.toUpperCase().replace('-', '');\n });\n }\n}\n","import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[cHtmlAttr]',\r\n exportAs: 'cHtmlAttr'\r\n})\r\nexport class HtmlAttributesDirective implements OnInit {\r\n\r\n @Input() cHtmlAttr?: { [key: string]: any };\r\n\r\n constructor(\r\n private renderer: Renderer2,\r\n private el: ElementRef\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n const attribs = this.cHtmlAttr;\r\n for (const attr in attribs) {\r\n if (attr === 'style' && typeof (attribs[attr]) === 'object') {\r\n this.setStyle(attribs[attr]);\r\n } else if (attr === 'class') {\r\n this.addClass(attribs[attr]);\r\n } else {\r\n this.setAttrib(attr, attribs[attr]);\r\n }\r\n }\r\n }\r\n\r\n private setStyle(styles: any): void {\r\n // tslint:disable-next-line:forin\r\n for (const style in styles) {\r\n this.renderer.setStyle(this.el.nativeElement, style, styles[style]);\r\n }\r\n }\r\n\r\n private addClass(classes: string | string[]): void {\r\n const classArray = (Array.isArray(classes) ? classes : classes.split(' '));\r\n classArray.filter((element) => element.length > 0).forEach(element => {\r\n this.renderer.addClass(this.el.nativeElement, element);\r\n });\r\n }\r\n\r\n private setAttrib(key: string, value: string | null): void {\r\n value !== null ?\r\n this.renderer.setAttribute(this.el.nativeElement, key, value) :\r\n this.renderer.removeAttribute(this.el.nativeElement, key);\r\n }\r\n}\r\n","import { AfterViewInit, Component, ElementRef, Input, Renderer2, ViewChild } from '@angular/core';\r\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\r\nimport { IconSetService } from '../icon-set/icon-set.service';\r\nimport { IconSize, IIcon } from './icon.interface';\r\n\r\n@Component({\r\n selector: 'c-icon',\r\n templateUrl: './icon.component.svg',\r\n styleUrls: ['./icon.component.scss']\r\n})\r\nexport class IconComponent implements IIcon, AfterViewInit {\r\n\r\n @Input() attributes: any = {role: 'img'};\r\n @Input() content?: string | string[] | any[];\r\n @Input() size: IconSize = '';\r\n @Input() title?: string;\r\n @Input() use = '';\r\n @Input() customClasses?: string | string[] | Set<string> | { [klass: string]: any } = '';\r\n @Input() width?: string;\r\n @Input() height?: string;\r\n\r\n @Input()\r\n set name(name: string) {\r\n this._name = name.includes('-') ? this.toCamelCase(name) : name;\r\n }\r\n get name(): string {\r\n return this._name;\r\n }\r\n private _name!: string;\r\n\r\n @Input()\r\n set viewBox(viewBox: string) {\r\n this._viewBox = viewBox;\r\n }\r\n get viewBox(): string {\r\n return this._viewBox ?? this.scale;\r\n }\r\n private _viewBox!: string;\r\n\r\n @ViewChild('svgElement', {read: ElementRef}) svgElementRef!: ElementRef;\r\n\r\n get innerHtml(): SafeHtml {\r\n const code = Array.isArray(this.code) ? this.code[1] || this.code[0] : this.code ?? '';\r\n // todo proper sanitize\r\n // const sanitized = this.sanitizer.sanitize(SecurityContext.HTML, code);\r\n return this.sanitizer.bypassSecurityTrustHtml((this.titleCode + code) ?? '');\r\n }\r\n\r\n constructor(\r\n private renderer: Renderer2,\r\n private elementRef: ElementRef,\r\n private sanitizer: DomSanitizer,\r\n private iconSet: IconSetService\r\n ) {\r\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.elementRef.nativeElement.classList.forEach((item: string) => {\r\n this.renderer.addClass(this.svgElementRef.nativeElement, item);\r\n });\r\n const parentElement = this.renderer.parentNode(this.elementRef.nativeElement);\r\n const svgElement = this.svgElementRef.nativeElement;\r\n this.renderer.insertBefore(parentElement, svgElement, this.elementRef.nativeElement);\r\n this.renderer.removeChild(parentElement, this.elementRef.nativeElement);\r\n }\r\n\r\n get titleCode(): string {\r\n return this.title ? `<title>${this.title}</title>` : '';\r\n }\r\n\r\n get code(): string | string[] | undefined {\r\n if (this.content) {\r\n return this.content;\r\n }\r\n if (this.iconSet && this.name) {\r\n return this.iconSet.getIcon(this.name);\r\n }\r\n if (this.name && !this.iconSet?.icons[this.name])\r\n console.warn(`c-icon component: icon name '${this.name}' does not exist for IconSet service. ` +\r\n `To use icon by 'name' prop you need to add it to IconSet service. \\n`,\r\n this.name\r\n );\r\n return undefined;\r\n }\r\n\r\n get scale(): string {\r\n return Array.isArray(this.code) && this.code.length > 1 ? `0 0 ${this.code[0]}` : '0 0 64 64';\r\n }\r\n\r\n get computedSize(): Exclude<IconSize, 'custom'> | undefined {\r\n const addCustom = !this.size && (this.width || this.height);\r\n return this.size === 'custom' || addCustom ? 'custom-size' : this.size;\r\n }\r\n\r\n get computedClasses(): any {\r\n const classes = {\r\n icon: true,\r\n [`icon-${this.computedSize}`]: !!this.computedSize\r\n };\r\n return !!this.customClasses ? this.customClasses : classes;\r\n }\r\n\r\n toCamelCase(str: string): any {\r\n return str.replace(/([-_][a-z0-9])/ig, ($1: string) => {\r\n return $1.toUpperCase().replace('-', '');\r\n });\r\n }\r\n}\r\n","<svg *ngIf=\"(!use) && (!!code)\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n [attr.width]=\"width\"\r\n [attr.height]=\"height || width\"\r\n [attr.viewBox]=\"viewBox\"\r\n [innerHtml]=\"innerHtml\"\r\n [ngClass]=\"computedClasses\"\r\n [cHtmlAttr]=\"attributes\"\r\n role=\"img\"\r\n pointer-events=\"none\"\r\n #svgElement\r\n>\r\n</svg>\r\n\r\n<svg *ngIf=\"use\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n [attr.width]=\"width\"\r\n [attr.height]=\"height || width\"\r\n [ngClass]=\"computedClasses\"\r\n [cHtmlAttr]=\"attributes\"\r\n role=\"img\"\r\n pointer-events=\"none\"\r\n>\r\n <use [attr.href]=\"use\"></use>\r\n</svg>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { IconComponent } from './icon.component';\r\nimport { IconDirective } from './icon.directive';\r\nimport { HtmlAttributesDirective } from '../shared/html-attr.directive';\r\n\r\n@NgModule({\r\n declarations: [\r\n IconComponent,\r\n HtmlAttributesDirective,\r\n IconDirective\r\n ],\r\n imports: [\r\n CommonModule,\r\n ],\r\n exports: [\r\n IconComponent,\r\n IconDirective\r\n ],\r\n})\r\nexport class IconModule {\r\n}\r\n","/*\r\n * Public API Surface of @coreui/icons-angular\r\n */\r\nexport { IconDirective } from './lib/icon/icon.directive';\r\nexport { IconComponent } from './lib/icon/icon.component';\r\nexport { IconModule } from './lib/icon/icon.module';\r\nexport { IconSetService, IIconSet } from './lib/icon-set/icon-set.service';\r\nexport { IconSetModule } from './lib/icon-set/icon-set.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Injectable","CommonModule","NgModule","Optional","SkipSelf","Directive","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