@coreui/icons-angular 3.0.0-alpha.0 → 3.0.0-alpha.4

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.
Files changed (33) hide show
  1. package/README.md +59 -24
  2. package/{esm2015/coreui-icons-angular.js → esm2020/coreui-icons-angular.mjs} +0 -0
  3. package/esm2020/lib/icon/icon.component.mjs +110 -0
  4. package/esm2020/lib/icon/icon.directive.mjs +127 -0
  5. package/esm2020/lib/icon/icon.interface.mjs +2 -0
  6. package/esm2020/lib/icon/icon.module.mjs +34 -0
  7. package/{esm2015/lib/icon-set/icon-set.module.js → esm2020/lib/icon-set/icon-set.module.mjs} +4 -4
  8. package/esm2020/lib/icon-set/icon-set.service.mjs +37 -0
  9. package/esm2020/lib/icon-set/index.mjs +2 -0
  10. package/esm2020/lib/icon-set/public_api.mjs +3 -0
  11. package/{esm2015/lib/shared/html-attr.directive.js → esm2020/lib/shared/html-attr.directive.mjs} +3 -3
  12. package/esm2020/public-api.mjs +9 -0
  13. package/fesm2015/coreui-icons-angular.mjs +402 -0
  14. package/fesm2015/coreui-icons-angular.mjs.map +1 -0
  15. package/fesm2020/coreui-icons-angular.mjs +393 -0
  16. package/fesm2020/coreui-icons-angular.mjs.map +1 -0
  17. package/lib/icon/icon.component.d.ts +19 -14
  18. package/lib/icon/icon.directive.d.ts +41 -0
  19. package/lib/icon/icon.interface.d.ts +15 -0
  20. package/lib/icon/icon.module.d.ts +3 -2
  21. package/lib/icon-set/icon-set.service.d.ts +5 -1
  22. package/lib/icon-set/index.d.ts +1 -0
  23. package/lib/icon-set/public_api.d.ts +2 -0
  24. package/package.json +21 -8
  25. package/public-api.d.ts +1 -0
  26. package/bundles/coreui-icons-angular.umd.js +0 -328
  27. package/bundles/coreui-icons-angular.umd.js.map +0 -1
  28. package/esm2015/lib/icon/icon.component.js +0 -100
  29. package/esm2015/lib/icon/icon.module.js +0 -29
  30. package/esm2015/lib/icon-set/icon-set.service.js +0 -30
  31. package/esm2015/public-api.js +0 -8
  32. package/fesm2015/coreui-icons-angular.js +0 -249
  33. package/fesm2015/coreui-icons-angular.js.map +0 -1
package/public-api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { IconDirective } from './lib/icon/icon.directive';
1
2
  export { IconComponent } from './lib/icon/icon.component';
2
3
  export { IconModule } from './lib/icon/icon.module';
3
4
  export { IconSetService, IIconSet } from './lib/icon-set/icon-set.service';
@@ -1,328 +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 () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
30
-
31
- var IconSetService = /** @class */ (function () {
32
- function IconSetService() {
33
- // tslint:disable-next-line:variable-name
34
- this._icons = {};
35
- }
36
- Object.defineProperty(IconSetService.prototype, "icons", {
37
- get: function () {
38
- return this._icons;
39
- },
40
- set: function (iconSet) {
41
- this._icons = iconSet;
42
- },
43
- enumerable: false,
44
- configurable: true
45
- });
46
- IconSetService.prototype.getIcon = function (name) {
47
- var icon = this.icons[name];
48
- if (!icon) {
49
- console.warn("CoreUI WARN: Icon " + name + " is not registered in IconService");
50
- }
51
- return this.icons[name];
52
- };
53
- return IconSetService;
54
- }());
55
- IconSetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconSetService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
56
- IconSetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconSetService, providedIn: 'root' });
57
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconSetService, decorators: [{
58
- type: i0.Injectable,
59
- args: [{
60
- providedIn: 'root'
61
- }]
62
- }], ctorParameters: function () { return []; } });
63
-
64
- var HtmlAttributesDirective = /** @class */ (function () {
65
- function HtmlAttributesDirective(renderer, el) {
66
- this.renderer = renderer;
67
- this.el = el;
68
- }
69
- HtmlAttributesDirective.prototype.ngOnInit = function () {
70
- var attribs = this.cHtmlAttr;
71
- for (var attr in attribs) {
72
- if (attr === 'style' && typeof (attribs[attr]) === 'object') {
73
- this.setStyle(attribs[attr]);
74
- }
75
- else if (attr === 'class') {
76
- this.addClass(attribs[attr]);
77
- }
78
- else {
79
- this.setAttrib(attr, attribs[attr]);
80
- }
81
- }
82
- };
83
- HtmlAttributesDirective.prototype.setStyle = function (styles) {
84
- // tslint:disable-next-line:forin
85
- for (var style in styles) {
86
- this.renderer.setStyle(this.el.nativeElement, style, styles[style]);
87
- }
88
- };
89
- HtmlAttributesDirective.prototype.addClass = function (classes) {
90
- var _this = this;
91
- var classArray = (Array.isArray(classes) ? classes : classes.split(' '));
92
- classArray.filter(function (element) { return element.length > 0; }).forEach(function (element) {
93
- _this.renderer.addClass(_this.el.nativeElement, element);
94
- });
95
- };
96
- HtmlAttributesDirective.prototype.setAttrib = function (key, value) {
97
- value !== null ?
98
- this.renderer.setAttribute(this.el.nativeElement, key, value) :
99
- this.renderer.removeAttribute(this.el.nativeElement, key);
100
- };
101
- return HtmlAttributesDirective;
102
- }());
103
- HtmlAttributesDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: HtmlAttributesDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
104
- HtmlAttributesDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: HtmlAttributesDirective, selector: "[cHtmlAttr]", inputs: { cHtmlAttr: "cHtmlAttr" }, exportAs: ["cHtmlAttr"], ngImport: i0__namespace });
105
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: HtmlAttributesDirective, decorators: [{
106
- type: i0.Directive,
107
- args: [{
108
- selector: '[cHtmlAttr]',
109
- exportAs: 'cHtmlAttr'
110
- }]
111
- }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }]; }, propDecorators: { cHtmlAttr: [{
112
- type: i0.Input
113
- }] } });
114
-
115
- var IconComponent = /** @class */ (function () {
116
- function IconComponent(sanitizer, iconSet) {
117
- this.sanitizer = sanitizer;
118
- this.iconSet = iconSet;
119
- this.attributes = { role: 'img' };
120
- this.size = '';
121
- this.use = '';
122
- this.customClasses = '';
123
- }
124
- Object.defineProperty(IconComponent.prototype, "name", {
125
- get: function () {
126
- var _a;
127
- var nameIsKebabCase = (_a = this._name) === null || _a === void 0 ? void 0 : _a.includes('-');
128
- return nameIsKebabCase ? this.toCamelCase(this._name) : this._name;
129
- },
130
- set: function (name) {
131
- this._name = name;
132
- },
133
- enumerable: false,
134
- configurable: true
135
- });
136
- Object.defineProperty(IconComponent.prototype, "viewBox", {
137
- get: function () {
138
- return this._viewBox || "0 0 " + this.scale;
139
- },
140
- set: function (viewBox) {
141
- this._viewBox = viewBox;
142
- },
143
- enumerable: false,
144
- configurable: true
145
- });
146
- Object.defineProperty(IconComponent.prototype, "titleCode", {
147
- get: function () {
148
- return this.title ? "<title>" + this.title + "</title>" : '';
149
- },
150
- enumerable: false,
151
- configurable: true
152
- });
153
- Object.defineProperty(IconComponent.prototype, "code", {
154
- get: function () {
155
- if (this.content) {
156
- return this.content;
157
- }
158
- else if (this.iconSet) {
159
- return this.iconSet.getIcon(this.name);
160
- }
161
- console.warn("c-icon component: icon name '" + this.name + "' does not exist for IconSet service. " +
162
- "To use icon by 'name' prop you need to add it to IconSet service. \n", this.name);
163
- return undefined;
164
- },
165
- enumerable: false,
166
- configurable: true
167
- });
168
- Object.defineProperty(IconComponent.prototype, "iconCode", {
169
- get: function () {
170
- var code = Array.isArray(this.code) ? this.code[1] || this.code[0] : this.code;
171
- return this.sanitizer.bypassSecurityTrustHtml(this.titleCode + code);
172
- },
173
- enumerable: false,
174
- configurable: true
175
- });
176
- Object.defineProperty(IconComponent.prototype, "scale", {
177
- get: function () {
178
- return Array.isArray(this.code) && this.code.length > 1 ? this.code[0] : '64 64';
179
- },
180
- enumerable: false,
181
- configurable: true
182
- });
183
- Object.defineProperty(IconComponent.prototype, "computedSize", {
184
- get: function () {
185
- var addCustom = !this.size && (this.width || this.height);
186
- return this.size === 'custom' || addCustom ? 'custom-size' : this.size;
187
- },
188
- enumerable: false,
189
- configurable: true
190
- });
191
- Object.defineProperty(IconComponent.prototype, "computedClasses", {
192
- get: function () {
193
- var _b;
194
- var classes = (_b = {
195
- icon: true
196
- },
197
- _b["icon-" + this.computedSize] = !!this.computedSize,
198
- _b);
199
- return !!this.customClasses ? this.customClasses : classes;
200
- },
201
- enumerable: false,
202
- configurable: true
203
- });
204
- IconComponent.prototype.toCamelCase = function (str) {
205
- return str.replace(/([-_][a-z0-9])/ig, function ($1) {
206
- return $1.toUpperCase().replace('-', '');
207
- });
208
- };
209
- return IconComponent;
210
- }());
211
- IconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconComponent, deps: [{ token: i1__namespace.DomSanitizer }, { token: IconSetService }], target: i0__namespace.ɵɵFactoryTarget.Component });
212
- IconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: IconComponent, selector: "c-icon", inputs: { attributes: "attributes", content: "content", size: "size", src: "src", title: "title", use: "use", customClasses: "customClasses", width: "width", height: "height", name: "name", viewBox: "viewBox" }, ngImport: i0__namespace, template: "<img *ngIf=\"src\"\r\n [cHtmlAttr]=\"attributes\"\r\n [attr.alt]=\"title\"\r\n [ngClass]=\"customClasses\"\r\n [src]=\"src\"\r\n/>\r\n<svg *ngIf=\"(!src) && (!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]=\"iconCode\"\r\n [ngClass]=\"computedClasses\"\r\n [cHtmlAttr]=\"attributes\"\r\n role=\"img\"\r\n pointer-events=\"none\"\r\n>\r\n {{titleCode}}\r\n</svg>\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: HtmlAttributesDirective, selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
213
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconComponent, decorators: [{
214
- type: i0.Component,
215
- args: [{
216
- selector: 'c-icon',
217
- templateUrl: './icon.component.svg',
218
- styleUrls: ['./icon.component.scss']
219
- }]
220
- }], ctorParameters: function () { return [{ type: i1__namespace.DomSanitizer }, { type: IconSetService }]; }, propDecorators: { attributes: [{
221
- type: i0.Input
222
- }], content: [{
223
- type: i0.Input
224
- }], size: [{
225
- type: i0.Input
226
- }], src: [{
227
- type: i0.Input
228
- }], title: [{
229
- type: i0.Input
230
- }], use: [{
231
- type: i0.Input
232
- }], customClasses: [{
233
- type: i0.Input
234
- }], width: [{
235
- type: i0.Input
236
- }], height: [{
237
- type: i0.Input
238
- }], name: [{
239
- type: i0.Input
240
- }], viewBox: [{
241
- type: i0.Input
242
- }] } });
243
-
244
- var IconModule = /** @class */ (function () {
245
- function IconModule() {
246
- }
247
- return IconModule;
248
- }());
249
- IconModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
250
- IconModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconModule, declarations: [IconComponent,
251
- HtmlAttributesDirective], imports: [i3.CommonModule], exports: [IconComponent] });
252
- IconModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconModule, imports: [[
253
- i3.CommonModule,
254
- ]] });
255
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconModule, decorators: [{
256
- type: i0.NgModule,
257
- args: [{
258
- declarations: [
259
- IconComponent,
260
- HtmlAttributesDirective
261
- ],
262
- imports: [
263
- i3.CommonModule,
264
- ],
265
- exports: [
266
- IconComponent,
267
- ],
268
- }]
269
- }] });
270
-
271
- var IconSetModule = /** @class */ (function () {
272
- function IconSetModule(parentModule) {
273
- if (parentModule) {
274
- throw new Error('CoreUI IconSetModule is already loaded. Import it in the AppModule only');
275
- }
276
- }
277
- IconSetModule.forRoot = function () {
278
- return {
279
- ngModule: IconSetModule,
280
- providers: [
281
- { provide: IconSetService }
282
- ]
283
- };
284
- };
285
- return IconSetModule;
286
- }());
287
- IconSetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconSetModule, deps: [{ token: IconSetModule, optional: true, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
288
- IconSetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconSetModule, imports: [i3.CommonModule] });
289
- IconSetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconSetModule, providers: [
290
- IconSetService
291
- ], imports: [[
292
- i3.CommonModule
293
- ]] });
294
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: IconSetModule, decorators: [{
295
- type: i0.NgModule,
296
- args: [{
297
- imports: [
298
- i3.CommonModule
299
- ],
300
- providers: [
301
- IconSetService
302
- ]
303
- }]
304
- }], ctorParameters: function () {
305
- return [{ type: IconSetModule, decorators: [{
306
- type: i0.Optional
307
- }, {
308
- type: i0.SkipSelf
309
- }] }];
310
- } });
311
-
312
- /*
313
- * Public API Surface of @coreui/icons-angular
314
- */
315
-
316
- /**
317
- * Generated bundle index. Do not edit.
318
- */
319
-
320
- exports.IconComponent = IconComponent;
321
- exports.IconModule = IconModule;
322
- exports.IconSetModule = IconSetModule;
323
- exports.IconSetService = IconSetService;
324
-
325
- Object.defineProperty(exports, '__esModule', { value: true });
326
-
327
- })));
328
- //# 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/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/lib/icon-set/icon-set.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 { 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 { Component, Input } from '@angular/core';\r\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\r\nimport { IconSetService } from '../icon-set/icon-set.service';\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 {\r\n\r\n @Input() attributes: any = { role: 'img' };\r\n @Input() content?: string | string[];\r\n @Input() size: 'custom' | 'custom-size' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl' | '' = '';\r\n @Input() src?: string;\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 constructor(\r\n private sanitizer: DomSanitizer,\r\n private iconSet: IconSetService\r\n ) { }\r\n\r\n // tslint:disable-next-line:variable-name\r\n private _name!: string;\r\n\r\n get name(): string {\r\n const nameIsKebabCase = this._name?.includes('-');\r\n return nameIsKebabCase ? this.toCamelCase(this._name) : this._name;\r\n }\r\n\r\n @Input()\r\n set name(name: string) {\r\n this._name = name;\r\n }\r\n\r\n // tslint:disable-next-line:variable-name\r\n private _viewBox!: string;\r\n\r\n get viewBox(): string {\r\n return this._viewBox || `0 0 ${this.scale}`;\r\n }\r\n\r\n @Input()\r\n set viewBox(viewBox: string) {\r\n this._viewBox = viewBox;\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[] | undefined | string {\r\n if (this.content) {\r\n return this.content;\r\n } else if (this.iconSet) {\r\n return this.iconSet.getIcon(this.name);\r\n }\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 iconCode(): SafeHtml {\r\n const code = Array.isArray(this.code) ? this.code[1] || this.code[0] : this.code;\r\n return this.sanitizer.bypassSecurityTrustHtml(this.titleCode + code);\r\n }\r\n\r\n get scale(): string {\r\n return Array.isArray(this.code) && this.code.length > 1 ? this.code[0] : '64 64';\r\n }\r\n\r\n get computedSize(): 'custom-size' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl' | '' {\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","<img *ngIf=\"src\"\r\n [cHtmlAttr]=\"attributes\"\r\n [attr.alt]=\"title\"\r\n [ngClass]=\"customClasses\"\r\n [src]=\"src\"\r\n/>\r\n<svg *ngIf=\"(!src) && (!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]=\"iconCode\"\r\n [ngClass]=\"computedClasses\"\r\n [cHtmlAttr]=\"attributes\"\r\n role=\"img\"\r\n pointer-events=\"none\"\r\n>\r\n {{titleCode}}\r\n</svg>\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 { HtmlAttributesDirective } from '../shared/html-attr.directive';\r\n\r\n@NgModule({\r\n declarations: [\r\n IconComponent,\r\n HtmlAttributesDirective\r\n ],\r\n imports: [\r\n CommonModule,\r\n ],\r\n exports: [\r\n IconComponent,\r\n ],\r\n})\r\nexport class IconModule {}\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","/*\r\n * Public API Surface of @coreui/icons-angular\r\n */\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","Directive","Input","Component","CommonModule","NgModule","Optional","SkipSelf"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAWE;;YAGQ,WAAM,GAAa,EAAE,CAAC;SAHd;QAKhB,sBAAI,iCAAK;iBAAT;gBACE,OAAO,IAAI,CAAC,MAAM,CAAC;aACpB;iBAED,UAAU,OAAO;gBACf,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;aACvB;;;WAJA;QAMM,gCAAO,GAAP,UAAQ,IAAY;YACzB,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,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QAAK;oBAaF,OAAO;0BADVA,QAAK;;;;QE5BR;;;;iIAAa,UAAU;kIAAV,UAAU,iBAVnB,aAAa;YACb,uBAAuB,aAGvBE,eAAY,aAGZ,aAAa;kIAGJ,UAAU,YAPZ;gBACPA,eAAY;aACb;qHAKU,UAAU;sBAZtBC,WAAQ;uBAAC;wBACR,YAAY,EAAE;4BACZ,aAAa;4BACb,uBAAuB;yBACxB;wBACD,OAAO,EAAE;4BACPD,eAAY;yBACb;wBACD,OAAO,EAAE;4BACP,aAAa;yBACd;qBACF;;;;QCHC,uBAAoC,YAA4B;YAC9D,IAAI,YAAY,EAAE;gBAChB,MAAM,IAAI,KAAK,CACb,yEAAyE,CAAC,CAAC;aAC9E;SACF;QAEM,qBAAO,GAAd;YACE,OAAO;gBACL,QAAQ,EAAE,aAAa;gBACvB,SAAS,EAAE;oBACT,EAAE,OAAO,EAAE,cAAc,EAAE;iBAC5B;aACF,CAAC;SACH;;;oIAfU,aAAa,kBAC2B,aAAa;qIADrD,aAAa,YANtBA,eAAY;qIAMH,aAAa,aAJb;YACT,cAAc;SACf,YALQ;gBACPA,eAAY;aACb;qHAKU,aAAa;sBARzBC,WAAQ;uBAAC;wBACR,OAAO,EAAE;4BACPD,eAAY;yBACb;wBACD,SAAS,EAAE;4BACT,cAAc;yBACf;qBACF;;4BAEoD,aAAa;kCAAnDE,WAAQ;;kCAAIC,WAAQ;;;;ICdnC;;;;ICAA;;;;;;;;;;;;;;;"}
@@ -1,100 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/platform-browser";
4
- import * as i2 from "../icon-set/icon-set.service";
5
- import * as i3 from "@angular/common";
6
- import * as i4 from "../shared/html-attr.directive";
7
- export class IconComponent {
8
- constructor(sanitizer, iconSet) {
9
- this.sanitizer = sanitizer;
10
- this.iconSet = iconSet;
11
- this.attributes = { role: 'img' };
12
- this.size = '';
13
- this.use = '';
14
- this.customClasses = '';
15
- }
16
- get name() {
17
- var _a;
18
- const nameIsKebabCase = (_a = this._name) === null || _a === void 0 ? void 0 : _a.includes('-');
19
- return nameIsKebabCase ? this.toCamelCase(this._name) : this._name;
20
- }
21
- set name(name) {
22
- this._name = name;
23
- }
24
- get viewBox() {
25
- return this._viewBox || `0 0 ${this.scale}`;
26
- }
27
- set viewBox(viewBox) {
28
- this._viewBox = viewBox;
29
- }
30
- get titleCode() {
31
- return this.title ? `<title>${this.title}</title>` : '';
32
- }
33
- get code() {
34
- if (this.content) {
35
- return this.content;
36
- }
37
- else if (this.iconSet) {
38
- return this.iconSet.getIcon(this.name);
39
- }
40
- console.warn(`c-icon component: icon name '${this.name}' does not exist for IconSet service. ` +
41
- `To use icon by 'name' prop you need to add it to IconSet service. \n`, this.name);
42
- return undefined;
43
- }
44
- get iconCode() {
45
- const code = Array.isArray(this.code) ? this.code[1] || this.code[0] : this.code;
46
- return this.sanitizer.bypassSecurityTrustHtml(this.titleCode + code);
47
- }
48
- get scale() {
49
- return Array.isArray(this.code) && this.code.length > 1 ? this.code[0] : '64 64';
50
- }
51
- get computedSize() {
52
- const addCustom = !this.size && (this.width || this.height);
53
- return this.size === 'custom' || addCustom ? 'custom-size' : this.size;
54
- }
55
- get computedClasses() {
56
- const classes = {
57
- icon: true,
58
- [`icon-${this.computedSize}`]: !!this.computedSize
59
- };
60
- return !!this.customClasses ? this.customClasses : classes;
61
- }
62
- toCamelCase(str) {
63
- return str.replace(/([-_][a-z0-9])/ig, ($1) => {
64
- return $1.toUpperCase().replace('-', '');
65
- });
66
- }
67
- }
68
- IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconComponent, deps: [{ token: i1.DomSanitizer }, { token: i2.IconSetService }], target: i0.ɵɵFactoryTarget.Component });
69
- IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: IconComponent, selector: "c-icon", inputs: { attributes: "attributes", content: "content", size: "size", src: "src", title: "title", use: "use", customClasses: "customClasses", width: "width", height: "height", name: "name", viewBox: "viewBox" }, ngImport: i0, template: "<img *ngIf=\"src\"\r\n [cHtmlAttr]=\"attributes\"\r\n [attr.alt]=\"title\"\r\n [ngClass]=\"customClasses\"\r\n [src]=\"src\"\r\n/>\r\n<svg *ngIf=\"(!src) && (!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]=\"iconCode\"\r\n [ngClass]=\"computedClasses\"\r\n [cHtmlAttr]=\"attributes\"\r\n role=\"img\"\r\n pointer-events=\"none\"\r\n>\r\n {{titleCode}}\r\n</svg>\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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.HtmlAttributesDirective, selector: "[cHtmlAttr]", inputs: ["cHtmlAttr"], exportAs: ["cHtmlAttr"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconComponent, decorators: [{
71
- type: Component,
72
- args: [{
73
- selector: 'c-icon',
74
- templateUrl: './icon.component.svg',
75
- styleUrls: ['./icon.component.scss']
76
- }]
77
- }], ctorParameters: function () { return [{ type: i1.DomSanitizer }, { type: i2.IconSetService }]; }, propDecorators: { attributes: [{
78
- type: Input
79
- }], content: [{
80
- type: Input
81
- }], size: [{
82
- type: Input
83
- }], src: [{
84
- type: Input
85
- }], title: [{
86
- type: Input
87
- }], use: [{
88
- type: Input
89
- }], customClasses: [{
90
- type: Input
91
- }], width: [{
92
- type: Input
93
- }], height: [{
94
- type: Input
95
- }], name: [{
96
- type: Input
97
- }], viewBox: [{
98
- type: Input
99
- }] } });
100
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JldWktaWNvbnMtYW5ndWxhci9zcmMvbGliL2ljb24vaWNvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wc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j1cInVzZVwiXHJcbiAgICAgeG1sbnM9XCJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Z1wiXHJcbiAgICAgW2F0dHIud2lkdGhdPVwid2lkdGhcIlxyXG4gICAgIFthdHRyLmhlaWdodF09XCJoZWlnaHQgfHwgd2lkdGhcIlxyXG4gICAgIFtuZ0NsYXNzXT1cImNvbXB1dGVkQ2xhc3Nlc1wiXHJcbiAgICAgW2NIdG1sQXR0cl09XCJhdHRyaWJ1dGVzXCJcclxuICAgICByb2xlPVwiaW1nXCJcclxuICAgICBwb2ludGVyLWV2ZW50cz1cIm5vbmVcIlxyXG4+XHJcbiAgPHVzZSBbYXR0ci5ocmVmXT1cInVzZVwiPjwvdXNlPlxyXG48L3N2Zz5cclxuIl19
@@ -1,29 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { IconComponent } from './icon.component';
4
- import { HtmlAttributesDirective } from '../shared/html-attr.directive';
5
- import * as i0 from "@angular/core";
6
- export class IconModule {
7
- }
8
- IconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
- IconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconModule, declarations: [IconComponent,
10
- HtmlAttributesDirective], imports: [CommonModule], exports: [IconComponent] });
11
- IconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconModule, imports: [[
12
- CommonModule,
13
- ]] });
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconModule, decorators: [{
15
- type: NgModule,
16
- args: [{
17
- declarations: [
18
- IconComponent,
19
- HtmlAttributesDirective
20
- ],
21
- imports: [
22
- CommonModule,
23
- ],
24
- exports: [
25
- IconComponent,
26
- ],
27
- }]
28
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ltcG9ydCB7IEh0bWxBdHRyaWJ1dGVzRGlyZWN0aXZlIH0gZnJvbSAnLi4vc2hhcmVkL2h0bWwtYXR0ci5kaXJlY3RpdmUnO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtcclxuICAgIEljb25Db21wb25lbnQsXHJcbiAgICBIdG1sQXR0cmlidXRlc0RpcmVjdGl2ZVxyXG4gIF0sXHJcbiAgaW1wb3J0czogW1xyXG4gICAgQ29tbW9uTW9kdWxlLFxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgSWNvbkNvbXBvbmVudCxcclxuICBdLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgSWNvbk1vZHVsZSB7fVxyXG4iXX0=
@@ -1,30 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class IconSetService {
4
- constructor() {
5
- // tslint:disable-next-line:variable-name
6
- this._icons = {};
7
- }
8
- get icons() {
9
- return this._icons;
10
- }
11
- set icons(iconSet) {
12
- this._icons = iconSet;
13
- }
14
- getIcon(name) {
15
- const icon = this.icons[name];
16
- if (!icon) {
17
- console.warn(`CoreUI WARN: Icon ${name} is not registered in IconService`);
18
- }
19
- return this.icons[name];
20
- }
21
- }
22
- IconSetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconSetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
- IconSetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconSetService, providedIn: 'root' });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: IconSetService, decorators: [{
25
- type: Injectable,
26
- args: [{
27
- providedIn: 'root'
28
- }]
29
- }], ctorParameters: function () { return []; } });
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi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NvblNldCB7XHJcbiAgW2ljb25OYW1lOiBzdHJpbmddOiBzdHJpbmdbXTtcclxufVxyXG5cclxuQEluamVjdGFibGUoe1xyXG4gIHByb3ZpZGVkSW46ICdyb290J1xyXG59KVxyXG5leHBvcnQgY2xhc3MgSWNvblNldFNlcnZpY2Uge1xyXG5cclxuICBjb25zdHJ1Y3RvcigpIHt9XHJcblxyXG4gIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTp2YXJpYWJsZS1uYW1lXHJcbiAgcHJpdmF0ZSBfaWNvbnM6IElJY29uU2V0ID0ge307XHJcblxyXG4gIGdldCBpY29ucygpOiBJSWNvblNldCB7XHJcbiAgICByZXR1cm4gdGhpcy5faWNvbnM7XHJcbiAgfVxyXG5cclxuICBzZXQgaWNvbnMoaWNvblNldCkge1xyXG4gICAgdGhpcy5faWNvbnMgPSBpY29uU2V0O1xyXG4gIH1cclxuXHJcbiAgcHVibGljIGdldEljb24obmFtZTogc3RyaW5nKTogc3RyaW5nW10ge1xyXG4gICAgY29uc3QgaWNvbiA9IHRoaXMuaWNvbnNbbmFtZV07XHJcbiAgICBpZiAoIWljb24pIHtcclxuICAgICAgY29uc29sZS53YXJuKGBDb3JlVUkgV0FSTjogSWNvbiAke25hbWV9IGlzIG5vdCByZWdpc3RlcmVkIGluIEljb25TZXJ2aWNlYCk7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gdGhpcy5pY29uc1tuYW1lXTtcclxuICB9XHJcbn1cclxuIl19
@@ -1,8 +0,0 @@
1
- /*
2
- * Public API Surface of @coreui/icons-angular
3
- */
4
- export { IconComponent } from './lib/icon/icon.component';
5
- export { IconModule } from './lib/icon/icon.module';
6
- export { IconSetService } from './lib/icon-set/icon-set.service';
7
- export { IconSetModule } from './lib/icon-set/icon-set.module';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2NvcmV1aS1pY29ucy1hbmd1bGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzFELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUNwRCxPQUFPLEVBQUUsY0FBYyxFQUFZLE1BQU0saUNBQWlDLENBQUM7QUFDM0UsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGdDQUFnQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBjb3JldWkvaWNvbnMtYW5ndWxhclxyXG4gKi9cclxuZXhwb3J0IHsgSWNvbkNvbXBvbmVudCB9IGZyb20gJy4vbGliL2ljb24vaWNvbi5jb21wb25lbnQnO1xyXG5leHBvcnQgeyBJY29uTW9kdWxlIH0gZnJvbSAnLi9saWIvaWNvbi9pY29uLm1vZHVsZSc7XHJcbmV4cG9ydCB7IEljb25TZXRTZXJ2aWNlLCBJSWNvblNldCB9IGZyb20gJy4vbGliL2ljb24tc2V0L2ljb24tc2V0LnNlcnZpY2UnO1xyXG5leHBvcnQgeyBJY29uU2V0TW9kdWxlIH0gZnJvbSAnLi9saWIvaWNvbi1zZXQvaWNvbi1zZXQubW9kdWxlJztcclxuIl19