1 | (function (global, factory) {
|
2 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/http'), require('@angular2-material/core'), require('rxjs/Observable'), require('rxjs/add/observable/forkJoin'), require('rxjs/add/observable/of'), require('rxjs/add/operator/map'), require('rxjs/add/operator/filter'), require('rxjs/add/operator/do'), require('rxjs/add/operator/share'), require('rxjs/add/operator/finally'), require('rxjs/add/operator/catch')) :
|
3 | typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/http', '@angular2-material/core', 'rxjs/Observable', 'rxjs/add/observable/forkJoin', 'rxjs/add/observable/of', 'rxjs/add/operator/map', 'rxjs/add/operator/filter', 'rxjs/add/operator/do', 'rxjs/add/operator/share', 'rxjs/add/operator/finally', 'rxjs/add/operator/catch'], factory) :
|
4 | (factory((global.md = global.md || {}, global.md.icon = global.md.icon || {}),global.ng.core,global.ng.http,global.md.core,global.Rx,global.Rx.Observable,global.Rx.Observable,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype));
|
5 | }(this, (function (exports,_angular_core,_angular_http,_angular2Material_core,rxjs_Observable,rxjs_add_observable_forkJoin,rxjs_add_observable_of,rxjs_add_operator_map,rxjs_add_operator_filter,rxjs_add_operator_do,rxjs_add_operator_share,rxjs_add_operator_finally,rxjs_add_operator_catch) { 'use strict';
|
6 |
|
7 | var __extends$1 = (window && window.__extends) || function (d, b) {
|
8 | for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
9 | function __() { this.constructor = d; }
|
10 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
11 | };
|
12 | var __decorate$1 = (window && window.__decorate) || function (decorators, target, key, desc) {
|
13 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
14 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
15 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
16 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
17 | };
|
18 | var __metadata$1 = (window && window.__metadata) || function (k, v) {
|
19 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
20 | };
|
21 |
|
22 | var MdIconNameNotFoundError = (function (_super) {
|
23 | __extends$1(MdIconNameNotFoundError, _super);
|
24 | function MdIconNameNotFoundError(iconName) {
|
25 | _super.call(this, "Unable to find icon with the name \"" + iconName + "\"");
|
26 | }
|
27 | return MdIconNameNotFoundError;
|
28 | }(_angular2Material_core.MdError));
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | var MdIconSvgTagNotFoundError = (function (_super) {
|
34 | __extends$1(MdIconSvgTagNotFoundError, _super);
|
35 | function MdIconSvgTagNotFoundError() {
|
36 | _super.call(this, '<svg> tag not found');
|
37 | }
|
38 | return MdIconSvgTagNotFoundError;
|
39 | }(_angular2Material_core.MdError));
|
40 |
|
41 | var SvgIconConfig = (function () {
|
42 | function SvgIconConfig(url) {
|
43 | this.url = url;
|
44 | this.svgElement = null;
|
45 | }
|
46 | return SvgIconConfig;
|
47 | }());
|
48 |
|
49 | var iconKey = function (namespace, name) { return namespace + ':' + name; };
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | var MdIconRegistry = (function () {
|
58 | function MdIconRegistry(_http) {
|
59 | this._http = _http;
|
60 | |
61 |
|
62 |
|
63 | this._svgIconConfigs = new Map();
|
64 | |
65 |
|
66 |
|
67 |
|
68 | this._iconSetConfigs = new Map();
|
69 |
|
70 | this._cachedIconsByUrl = new Map();
|
71 |
|
72 | this._inProgressUrlFetches = new Map();
|
73 |
|
74 | this._fontCssClassesByAlias = new Map();
|
75 | |
76 |
|
77 |
|
78 |
|
79 |
|
80 | this._defaultFontSetClass = 'material-icons';
|
81 | }
|
82 |
|
83 | MdIconRegistry.prototype.addSvgIcon = function (iconName, url) {
|
84 | return this.addSvgIconInNamespace('', iconName, url);
|
85 | };
|
86 |
|
87 | MdIconRegistry.prototype.addSvgIconInNamespace = function (namespace, iconName, url) {
|
88 | var key = iconKey(namespace, iconName);
|
89 | this._svgIconConfigs.set(key, new SvgIconConfig(url));
|
90 | return this;
|
91 | };
|
92 |
|
93 | MdIconRegistry.prototype.addSvgIconSet = function (url) {
|
94 | return this.addSvgIconSetInNamespace('', url);
|
95 | };
|
96 |
|
97 | MdIconRegistry.prototype.addSvgIconSetInNamespace = function (namespace, url) {
|
98 | var config = new SvgIconConfig(url);
|
99 | if (this._iconSetConfigs.has(namespace)) {
|
100 | this._iconSetConfigs.get(namespace).push(config);
|
101 | }
|
102 | else {
|
103 | this._iconSetConfigs.set(namespace, [config]);
|
104 | }
|
105 | return this;
|
106 | };
|
107 | |
108 |
|
109 |
|
110 |
|
111 |
|
112 | MdIconRegistry.prototype.registerFontClassAlias = function (alias, className) {
|
113 | if (className === void 0) { className = alias; }
|
114 | this._fontCssClassesByAlias.set(alias, className);
|
115 | return this;
|
116 | };
|
117 | |
118 |
|
119 |
|
120 |
|
121 | MdIconRegistry.prototype.classNameForFontAlias = function (alias) {
|
122 | return this._fontCssClassesByAlias.get(alias) || alias;
|
123 | };
|
124 | |
125 |
|
126 |
|
127 |
|
128 | MdIconRegistry.prototype.setDefaultFontSetClass = function (className) {
|
129 | this._defaultFontSetClass = className;
|
130 | return this;
|
131 | };
|
132 | |
133 |
|
134 |
|
135 |
|
136 | MdIconRegistry.prototype.getDefaultFontSetClass = function () {
|
137 | return this._defaultFontSetClass;
|
138 | };
|
139 | |
140 |
|
141 |
|
142 |
|
143 |
|
144 |
|
145 | MdIconRegistry.prototype.getSvgIconFromUrl = function (url) {
|
146 | var _this = this;
|
147 | if (this._cachedIconsByUrl.has(url)) {
|
148 | return rxjs_Observable.Observable.of(cloneSvg(this._cachedIconsByUrl.get(url)));
|
149 | }
|
150 | return this._loadSvgIconFromConfig(new SvgIconConfig(url))
|
151 | .do(function (svg) { return _this._cachedIconsByUrl.set(url, svg); })
|
152 | .map(function (svg) { return cloneSvg(svg); });
|
153 | };
|
154 | |
155 |
|
156 |
|
157 |
|
158 |
|
159 | MdIconRegistry.prototype.getNamedSvgIcon = function (name, namespace) {
|
160 | if (namespace === void 0) { namespace = ''; }
|
161 |
|
162 | var key = iconKey(namespace, name);
|
163 | if (this._svgIconConfigs.has(key)) {
|
164 | return this._getSvgFromConfig(this._svgIconConfigs.get(key));
|
165 | }
|
166 |
|
167 | var iconSetConfigs = this._iconSetConfigs.get(namespace);
|
168 | if (iconSetConfigs) {
|
169 | return this._getSvgFromIconSetConfigs(name, iconSetConfigs);
|
170 | }
|
171 | return rxjs_Observable.Observable.throw(new MdIconNameNotFoundError(key));
|
172 | };
|
173 | |
174 |
|
175 |
|
176 | MdIconRegistry.prototype._getSvgFromConfig = function (config) {
|
177 | if (config.svgElement) {
|
178 |
|
179 | return rxjs_Observable.Observable.of(cloneSvg(config.svgElement));
|
180 | }
|
181 | else {
|
182 |
|
183 | return this._loadSvgIconFromConfig(config)
|
184 | .do(function (svg) { return config.svgElement = svg; })
|
185 | .map(function (svg) { return cloneSvg(svg); });
|
186 | }
|
187 | };
|
188 | |
189 |
|
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 |
|
196 | MdIconRegistry.prototype._getSvgFromIconSetConfigs = function (name, iconSetConfigs) {
|
197 | var _this = this;
|
198 |
|
199 |
|
200 | var namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);
|
201 | if (namedIcon) {
|
202 |
|
203 |
|
204 |
|
205 | return rxjs_Observable.Observable.of(namedIcon);
|
206 | }
|
207 |
|
208 |
|
209 | var iconSetFetchRequests = iconSetConfigs
|
210 | .filter(function (iconSetConfig) { return !iconSetConfig.svgElement; })
|
211 | .map(function (iconSetConfig) {
|
212 | return _this._loadSvgIconSetFromConfig(iconSetConfig)
|
213 | .catch(function (err, caught) {
|
214 |
|
215 |
|
216 | console.log("Loading icon set URL: " + iconSetConfig.url + " failed: " + err);
|
217 | return rxjs_Observable.Observable.of(null);
|
218 | })
|
219 | .do(function (svg) {
|
220 |
|
221 | if (svg) {
|
222 | iconSetConfig.svgElement = svg;
|
223 | }
|
224 | });
|
225 | });
|
226 |
|
227 |
|
228 | return rxjs_Observable.Observable.forkJoin(iconSetFetchRequests)
|
229 | .map(function (ignoredResults) {
|
230 | var foundIcon = _this._extractIconWithNameFromAnySet(name, iconSetConfigs);
|
231 | if (!foundIcon) {
|
232 | throw new MdIconNameNotFoundError(name);
|
233 | }
|
234 | return foundIcon;
|
235 | });
|
236 | };
|
237 | |
238 |
|
239 |
|
240 |
|
241 |
|
242 | MdIconRegistry.prototype._extractIconWithNameFromAnySet = function (iconName, iconSetConfigs) {
|
243 |
|
244 | for (var i = iconSetConfigs.length - 1; i >= 0; i--) {
|
245 | var config = iconSetConfigs[i];
|
246 | if (config.svgElement) {
|
247 | var foundIcon = this._extractSvgIconFromSet(config.svgElement, iconName, config);
|
248 | if (foundIcon) {
|
249 | return foundIcon;
|
250 | }
|
251 | }
|
252 | }
|
253 | return null;
|
254 | };
|
255 | |
256 |
|
257 |
|
258 |
|
259 | MdIconRegistry.prototype._loadSvgIconFromConfig = function (config) {
|
260 | var _this = this;
|
261 | return this._fetchUrl(config.url)
|
262 | .map(function (svgText) { return _this._createSvgElementForSingleIcon(svgText, config); });
|
263 | };
|
264 | |
265 |
|
266 |
|
267 |
|
268 | MdIconRegistry.prototype._loadSvgIconSetFromConfig = function (config) {
|
269 | var _this = this;
|
270 |
|
271 | return this._fetchUrl(config.url)
|
272 | .map(function (svgText) { return _this._svgElementFromString(svgText); });
|
273 | };
|
274 | |
275 |
|
276 |
|
277 | MdIconRegistry.prototype._createSvgElementForSingleIcon = function (responseText, config) {
|
278 | var svg = this._svgElementFromString(responseText);
|
279 | this._setSvgAttributes(svg, config);
|
280 | return svg;
|
281 | };
|
282 | |
283 |
|
284 |
|
285 |
|
286 |
|
287 | MdIconRegistry.prototype._extractSvgIconFromSet = function (iconSet, iconName, config) {
|
288 | var iconNode = iconSet.querySelector('#' + iconName);
|
289 | if (!iconNode) {
|
290 | return null;
|
291 | }
|
292 |
|
293 |
|
294 | if (iconNode.tagName.toLowerCase() == 'svg') {
|
295 | return this._setSvgAttributes(iconNode.cloneNode(true), config);
|
296 | }
|
297 |
|
298 |
|
299 |
|
300 |
|
301 |
|
302 | var svg = this._svgElementFromString('<svg></svg>');
|
303 |
|
304 | svg.appendChild(iconNode.cloneNode(true));
|
305 | return this._setSvgAttributes(svg, config);
|
306 | };
|
307 | |
308 |
|
309 |
|
310 | MdIconRegistry.prototype._svgElementFromString = function (str) {
|
311 |
|
312 |
|
313 | var div = document.createElement('DIV');
|
314 | div.innerHTML = str;
|
315 | var svg = div.querySelector('svg');
|
316 | if (!svg) {
|
317 | throw new MdIconSvgTagNotFoundError();
|
318 | }
|
319 | return svg;
|
320 | };
|
321 | |
322 |
|
323 |
|
324 | MdIconRegistry.prototype._setSvgAttributes = function (svg, config) {
|
325 | if (!svg.getAttribute('xmlns')) {
|
326 | svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
|
327 | }
|
328 | svg.setAttribute('fit', '');
|
329 | svg.setAttribute('height', '100%');
|
330 | svg.setAttribute('width', '100%');
|
331 | svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');
|
332 | svg.setAttribute('focusable', 'false');
|
333 | return svg;
|
334 | };
|
335 | |
336 |
|
337 |
|
338 |
|
339 | MdIconRegistry.prototype._fetchUrl = function (url) {
|
340 | var _this = this;
|
341 |
|
342 |
|
343 |
|
344 | if (this._inProgressUrlFetches.has(url)) {
|
345 | return this._inProgressUrlFetches.get(url);
|
346 | }
|
347 |
|
348 |
|
349 | var req = this._http.get(url)
|
350 | .map(function (response) { return response.text(); })
|
351 | .finally(function () {
|
352 | _this._inProgressUrlFetches.delete(url);
|
353 | })
|
354 | .share();
|
355 | this._inProgressUrlFetches.set(url, req);
|
356 | return req;
|
357 | };
|
358 | MdIconRegistry = __decorate$1([
|
359 | _angular_core.Injectable(),
|
360 | __metadata$1('design:paramtypes', [_angular_http.Http])
|
361 | ], MdIconRegistry);
|
362 | return MdIconRegistry;
|
363 | }());
|
364 |
|
365 | function cloneSvg(svg) {
|
366 | return svg.cloneNode(true);
|
367 | }
|
368 |
|
369 | var __extends = (window && window.__extends) || function (d, b) {
|
370 | for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
371 | function __() { this.constructor = d; }
|
372 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
373 | };
|
374 | var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
|
375 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
376 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
377 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
378 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
379 | };
|
380 | var __metadata = (window && window.__metadata) || function (k, v) {
|
381 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
382 | };
|
383 |
|
384 | var MdIconInvalidNameError = (function (_super) {
|
385 | __extends(MdIconInvalidNameError, _super);
|
386 | function MdIconInvalidNameError(iconName) {
|
387 | _super.call(this, "Invalid icon name: \"" + iconName + "\"");
|
388 | }
|
389 | return MdIconInvalidNameError;
|
390 | }(_angular2Material_core.MdError));
|
391 |
|
392 |
|
393 |
|
394 |
|
395 |
|
396 |
|
397 |
|
398 |
|
399 |
|
400 |
|
401 |
|
402 |
|
403 |
|
404 |
|
405 |
|
406 |
|
407 |
|
408 |
|
409 |
|
410 |
|
411 |
|
412 |
|
413 |
|
414 |
|
415 |
|
416 |
|
417 |
|
418 |
|
419 |
|
420 |
|
421 |
|
422 |
|
423 |
|
424 | var MdIcon = (function () {
|
425 | function MdIcon(_element, _renderer, _mdIconRegistry) {
|
426 | this._element = _element;
|
427 | this._renderer = _renderer;
|
428 | this._mdIconRegistry = _mdIconRegistry;
|
429 | this.hostAriaLabel = '';
|
430 | }
|
431 | |
432 |
|
433 |
|
434 |
|
435 |
|
436 |
|
437 |
|
438 |
|
439 |
|
440 |
|
441 |
|
442 |
|
443 |
|
444 | MdIcon.prototype._splitIconName = function (iconName) {
|
445 | if (!iconName) {
|
446 | return ['', ''];
|
447 | }
|
448 | var parts = iconName.split(':');
|
449 | switch (parts.length) {
|
450 | case 1:
|
451 |
|
452 | return ['', parts[0]];
|
453 | case 2:
|
454 | return parts;
|
455 | default:
|
456 | throw new MdIconInvalidNameError(iconName);
|
457 | }
|
458 | };
|
459 |
|
460 | MdIcon.prototype.ngOnChanges = function (changes) {
|
461 | var _this = this;
|
462 | var changedInputs = Object.keys(changes);
|
463 |
|
464 | if (changedInputs.indexOf('svgIcon') != -1 || changedInputs.indexOf('svgSrc') != -1) {
|
465 | if (this.svgIcon) {
|
466 | var _a = this._splitIconName(this.svgIcon), namespace = _a[0], iconName = _a[1];
|
467 | this._mdIconRegistry.getNamedSvgIcon(iconName, namespace).subscribe(function (svg) { return _this._setSvgElement(svg); }, function (err) { return console.log("Error retrieving icon: " + err); });
|
468 | }
|
469 | else if (this.svgSrc) {
|
470 | this._mdIconRegistry.getSvgIconFromUrl(this.svgSrc).subscribe(function (svg) { return _this._setSvgElement(svg); }, function (err) { return console.log("Error retrieving icon: " + err); });
|
471 | }
|
472 | }
|
473 | if (this._usingFontIcon()) {
|
474 | this._updateFontIconClasses();
|
475 | }
|
476 | this._updateAriaLabel();
|
477 | };
|
478 |
|
479 | MdIcon.prototype.ngOnInit = function () {
|
480 |
|
481 |
|
482 | if (this._usingFontIcon()) {
|
483 | this._updateFontIconClasses();
|
484 | }
|
485 | };
|
486 |
|
487 | MdIcon.prototype.ngAfterViewChecked = function () {
|
488 |
|
489 |
|
490 | this._updateAriaLabel();
|
491 | };
|
492 | MdIcon.prototype._updateAriaLabel = function () {
|
493 | var ariaLabel = this._getAriaLabel();
|
494 | if (ariaLabel) {
|
495 | this._renderer.setElementAttribute(this._element.nativeElement, 'aria-label', ariaLabel);
|
496 | }
|
497 | };
|
498 | MdIcon.prototype._getAriaLabel = function () {
|
499 |
|
500 |
|
501 |
|
502 | var label = this.hostAriaLabel ||
|
503 | this.alt ||
|
504 | this.fontIcon ||
|
505 | this._splitIconName(this.svgIcon)[1];
|
506 | if (label) {
|
507 | return label;
|
508 | }
|
509 |
|
510 | if (this._usingFontIcon()) {
|
511 | var text = this._element.nativeElement.textContent;
|
512 | if (text) {
|
513 | return text;
|
514 | }
|
515 | }
|
516 |
|
517 | return null;
|
518 | };
|
519 | MdIcon.prototype._usingFontIcon = function () {
|
520 | return !(this.svgIcon || this.svgSrc);
|
521 | };
|
522 | MdIcon.prototype._setSvgElement = function (svg) {
|
523 | var layoutElement = this._element.nativeElement;
|
524 |
|
525 |
|
526 |
|
527 | layoutElement.innerHTML = '';
|
528 | this._renderer.projectNodes(layoutElement, [svg]);
|
529 | };
|
530 | MdIcon.prototype._updateFontIconClasses = function () {
|
531 | if (!this._usingFontIcon()) {
|
532 | return;
|
533 | }
|
534 | var elem = this._element.nativeElement;
|
535 | var fontSetClass = this.fontSet ?
|
536 | this._mdIconRegistry.classNameForFontAlias(this.fontSet) :
|
537 | this._mdIconRegistry.getDefaultFontSetClass();
|
538 | if (fontSetClass != this._previousFontSetClass) {
|
539 | if (this._previousFontSetClass) {
|
540 | this._renderer.setElementClass(elem, this._previousFontSetClass, false);
|
541 | }
|
542 | if (fontSetClass) {
|
543 | this._renderer.setElementClass(elem, fontSetClass, true);
|
544 | }
|
545 | this._previousFontSetClass = fontSetClass;
|
546 | }
|
547 | if (this.fontIcon != this._previousFontIconClass) {
|
548 | if (this._previousFontIconClass) {
|
549 | this._renderer.setElementClass(elem, this._previousFontIconClass, false);
|
550 | }
|
551 | if (this.fontIcon) {
|
552 | this._renderer.setElementClass(elem, this.fontIcon, true);
|
553 | }
|
554 | this._previousFontIconClass = this.fontIcon;
|
555 | }
|
556 | };
|
557 | __decorate([
|
558 | _angular_core.Input(),
|
559 | __metadata('design:type', String)
|
560 | ], MdIcon.prototype, "svgSrc", void 0);
|
561 | __decorate([
|
562 | _angular_core.Input(),
|
563 | __metadata('design:type', String)
|
564 | ], MdIcon.prototype, "svgIcon", void 0);
|
565 | __decorate([
|
566 | _angular_core.Input(),
|
567 | __metadata('design:type', String)
|
568 | ], MdIcon.prototype, "fontSet", void 0);
|
569 | __decorate([
|
570 | _angular_core.Input(),
|
571 | __metadata('design:type', String)
|
572 | ], MdIcon.prototype, "fontIcon", void 0);
|
573 | __decorate([
|
574 | _angular_core.Input(),
|
575 | __metadata('design:type', String)
|
576 | ], MdIcon.prototype, "alt", void 0);
|
577 | __decorate([
|
578 | _angular_core.Input('aria-label'),
|
579 | __metadata('design:type', String)
|
580 | ], MdIcon.prototype, "hostAriaLabel", void 0);
|
581 | MdIcon = __decorate([
|
582 | _angular_core.Component({template: '<ng-content></ng-content>',
|
583 | selector: 'md-icon',
|
584 | styles: ["/** The width/height of the icon element. */ /** This works because we're using ViewEncapsulation.None. If we used the default encapsulation, the selector would need to be \":host\". */ md-icon { background-repeat: no-repeat; display: inline-block; fill: currentColor; height: 24px; width: 24px; } /*# sourceMappingURL=icon.css.map */ "],
|
585 | host: {
|
586 | 'role': 'img',
|
587 | },
|
588 | encapsulation: _angular_core.ViewEncapsulation.None,
|
589 | changeDetection: _angular_core.ChangeDetectionStrategy.OnPush,
|
590 | }),
|
591 | __metadata('design:paramtypes', [_angular_core.ElementRef, _angular_core.Renderer, MdIconRegistry])
|
592 | ], MdIcon);
|
593 | return MdIcon;
|
594 | }());
|
595 | var MdIconModule = (function () {
|
596 | function MdIconModule() {
|
597 | }
|
598 | MdIconModule.forRoot = function () {
|
599 | return {
|
600 | ngModule: MdIconModule,
|
601 | providers: [MdIconRegistry],
|
602 | };
|
603 | };
|
604 | MdIconModule = __decorate([
|
605 | _angular_core.NgModule({
|
606 | imports: [_angular_http.HttpModule],
|
607 | exports: [MdIcon],
|
608 | declarations: [MdIcon],
|
609 | }),
|
610 | __metadata('design:paramtypes', [])
|
611 | ], MdIconModule);
|
612 | return MdIconModule;
|
613 | }());
|
614 |
|
615 | exports.MdIconInvalidNameError = MdIconInvalidNameError;
|
616 | exports.MdIcon = MdIcon;
|
617 | exports.MdIconModule = MdIconModule;
|
618 | exports.MdIconRegistry = MdIconRegistry;
|
619 |
|
620 | Object.defineProperty(exports, '__esModule', { value: true });
|
621 |
|
622 | }))); |
\ | No newline at end of file |