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