@firestitch/chip 8.1.9 → 12.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.
@@ -1,837 +1,531 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/icon'), require('@firestitch/label'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('lodash-es')) :
3
3
  typeof define === 'function' && define.amd ? define('@firestitch/chip', ['exports', '@angular/core', '@angular/common', '@angular/material/icon', '@firestitch/label', '@angular/forms', 'rxjs', 'rxjs/operators', 'lodash-es'], factory) :
4
- (global = global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.chip = {}), global.ng.core, global.ng.common, global.ng.material.icon, global.label, global.ng.forms, global.rxjs, global.rxjs.operators, global.lodashEs));
5
- }(this, (function (exports, core, common, icon, label, forms, rxjs, operators, lodashEs) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch.chip = {}), global.ng.core, global.ng.common, global.ng.material.icon, global.label, global.ng.forms, global.rxjs, global.rxjs.operators, global.lodashEs));
5
+ })(this, (function (exports, i0, i3, i2, label, forms, rxjs, operators, lodashEs) { 'use strict';
6
6
 
7
- /**
8
- * @fileoverview added by tsickle
9
- * Generated from: app/services/chips.service.ts
10
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11
- */
12
- var FsChipsService = /** @class */ (function () {
13
- function FsChipsService() {
14
- this.chips = [];
15
- this._chipItemsChanged$ = new rxjs.Subject();
16
- this._selectionChanged$ = new rxjs.Subject();
17
- this._destroy$ = new rxjs.Subject();
18
- }
19
- Object.defineProperty(FsChipsService.prototype, "selectionChanged$", {
20
- get: /**
21
- * @return {?}
22
- */
23
- function () {
24
- return this._selectionChanged$.
25
- pipe(operators.takeUntil(this._destroy$));
26
- },
27
- enumerable: true,
28
- configurable: true
29
- });
30
- Object.defineProperty(FsChipsService.prototype, "chipItemsChanged$", {
31
- get: /**
32
- * @return {?}
33
- */
34
- function () {
35
- return this._chipItemsChanged$
36
- .pipe(operators.takeUntil(this._destroy$), operators.debounceTime(50));
37
- },
38
- enumerable: true,
39
- configurable: true
40
- });
41
- /**
42
- * @return {?}
43
- */
44
- FsChipsService.prototype.ngOnDestroy = /**
45
- * @return {?}
46
- */
47
- function () {
48
- this._destroy$.next();
49
- this._destroy$.complete();
50
- };
51
- /**
52
- * @param {?} selected
53
- * @param {?} value
54
- * @return {?}
55
- */
56
- FsChipsService.prototype.selectionChanged = /**
57
- * @param {?} selected
58
- * @param {?} value
59
- * @return {?}
60
- */
61
- function (selected, value) {
62
- this._selectionChanged$.next({
63
- selected: selected,
64
- value: value,
65
- });
66
- };
67
- /**
68
- * @param {?} chip
69
- * @return {?}
70
- */
71
- FsChipsService.prototype.register = /**
72
- * @param {?} chip
73
- * @return {?}
74
- */
75
- function (chip) {
76
- this.chips.push(chip);
77
- this._chipItemsChanged$.next();
78
- };
79
- /**
80
- * @param {?} chip
81
- * @return {?}
82
- */
83
- FsChipsService.prototype.destroy = /**
84
- * @param {?} chip
85
- * @return {?}
86
- */
87
- function (chip) {
88
- /** @type {?} */
89
- var index = this.chips.indexOf(chip);
90
- if (index > -1) {
91
- this.chips.splice(index, 1);
92
- this._chipItemsChanged$.next();
93
- }
94
- };
95
- FsChipsService.decorators = [
96
- { type: core.Injectable }
97
- ];
98
- /** @nocollapse */
99
- FsChipsService.ctorParameters = function () { return []; };
100
- return FsChipsService;
101
- }());
102
- if (false) {
103
- /** @type {?} */
104
- FsChipsService.prototype.chips;
105
- /**
106
- * @type {?}
107
- * @private
108
- */
109
- FsChipsService.prototype._chipItemsChanged$;
110
- /**
111
- * @type {?}
112
- * @private
113
- */
114
- FsChipsService.prototype._selectionChanged$;
115
- /**
116
- * @type {?}
117
- * @private
118
- */
119
- FsChipsService.prototype._destroy$;
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);
120
23
  }
121
24
 
122
- /**
123
- * @fileoverview added by tsickle
124
- * Generated from: app/components/chips/chips.component.ts
125
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
126
- */
127
- var FsChipsComponent = /** @class */ (function () {
128
- function FsChipsComponent(_cdRef, _chipsService) {
129
- this._cdRef = _cdRef;
130
- this._chipsService = _chipsService;
131
- this.classFsChips = true;
132
- this.classHasChips = false;
133
- this.multiple = true;
134
- this.onChange = (/**
135
- * @return {?}
136
- */
137
- function () { });
138
- this.onTouch = (/**
139
- * @return {?}
140
- */
141
- function () { });
142
- this._value = [];
143
- this._destroy$ = new rxjs.Subject();
144
- this.subscribeToItemsChange();
145
- this.subscribeToSelectionChange();
146
- }
147
- Object.defineProperty(FsChipsComponent.prototype, "chips", {
148
- get: /**
149
- * @return {?}
150
- */
151
- function () {
152
- return this._chipsService.chips;
153
- },
154
- enumerable: true,
155
- configurable: true
156
- });
157
- Object.defineProperty(FsChipsComponent.prototype, "value", {
158
- get: /**
159
- * @return {?}
160
- */
161
- function () {
162
- return this._value;
163
- },
164
- set: /**
165
- * @param {?} value
166
- * @return {?}
167
- */
168
- function (value) {
169
- if (this._value !== value) {
170
- this._value = value;
171
- this.onChange(this._value);
172
- this.onTouch(this._value);
173
- }
174
- },
175
- enumerable: true,
176
- configurable: true
177
- });
178
- /**
179
- * @return {?}
180
- */
181
- FsChipsComponent.prototype.ngOnDestroy = /**
182
- * @return {?}
183
- */
184
- function () {
185
- this._destroy$.next();
186
- this._destroy$.complete();
187
- };
188
- /**
189
- * @param {?} value
190
- * @return {?}
191
- */
192
- FsChipsComponent.prototype.writeValue = /**
193
- * @param {?} value
194
- * @return {?}
195
- */
196
- function (value) {
197
- if (value !== this.value) {
198
- this._value = value;
199
- }
200
- this.updateChips();
201
- };
202
- /**
203
- * @param {?} fn
204
- * @return {?}
205
- */
206
- FsChipsComponent.prototype.registerOnChange = /**
207
- * @param {?} fn
208
- * @return {?}
209
- */
210
- function (fn) { this.onChange = fn; };
211
- /**
212
- * @param {?} fn
213
- * @return {?}
214
- */
215
- FsChipsComponent.prototype.registerOnTouched = /**
216
- * @param {?} fn
217
- * @return {?}
218
- */
219
- function (fn) { this.onTouch = fn; };
220
- /**
221
- * Update ngModel value when selection changed
222
- */
223
- /**
224
- * Update ngModel value when selection changed
225
- * @private
226
- * @return {?}
227
- */
228
- FsChipsComponent.prototype.subscribeToSelectionChange = /**
229
- * Update ngModel value when selection changed
230
- * @private
231
- * @return {?}
232
- */
233
- function () {
234
- var _this = this;
235
- this._chipsService.selectionChanged$
236
- .pipe(operators.takeUntil(this._destroy$))
237
- .subscribe((/**
238
- * @param {?} __0
239
- * @return {?}
240
- */
241
- function (_a) {
242
- var selected = _a.selected, value = _a.value;
243
- if (!selected) {
244
- /** @type {?} */
245
- var valueIndex = _this.value.findIndex((/**
246
- * @param {?} item
247
- * @return {?}
248
- */
249
- function (item) {
250
- return _this.compareFn(item, value);
251
- }));
252
- if (valueIndex > -1) {
253
- _this.value.splice(valueIndex, 1);
254
- _this.onChange(_this._value);
255
- _this.onTouch(_this._value);
256
- }
257
- }
258
- else {
259
- _this.value.push(value);
260
- _this.onChange(_this._value);
261
- _this.onTouch(_this._value);
262
- }
263
- }));
264
- };
265
- /**
266
- * Update selection if item was added or removed
267
- */
268
- /**
269
- * Update selection if item was added or removed
270
- * @private
271
- * @return {?}
272
- */
273
- FsChipsComponent.prototype.subscribeToItemsChange = /**
274
- * Update selection if item was added or removed
275
- * @private
276
- * @return {?}
277
- */
278
- function () {
279
- var _this = this;
280
- this._chipsService.chipItemsChanged$
281
- .pipe(operators.takeUntil(this._destroy$))
282
- .subscribe((/**
283
- * @return {?}
284
- */
285
- function () {
286
- _this.classHasChips = !!_this._chipsService.chips.length;
287
- _this.updateChips();
288
- }));
289
- };
290
- /**
291
- * @private
292
- * @param {?} o1
293
- * @param {?} o2
294
- * @return {?}
295
- */
296
- FsChipsComponent.prototype.compareFn = /**
297
- * @private
298
- * @param {?} o1
299
- * @param {?} o2
300
- * @return {?}
301
- */
302
- function (o1, o2) {
303
- if (this.compare) {
304
- return this.compare(o1, o2);
305
- }
306
- return o1 === o2;
307
- };
308
- /**
309
- * @private
310
- * @return {?}
311
- */
312
- FsChipsComponent.prototype.updateChips = /**
313
- * @private
314
- * @return {?}
315
- */
316
- function () {
317
- var _this = this;
318
- if (this.multiple && Array.isArray(this.value) && this.chips) {
319
- this.chips.forEach((/**
320
- * @param {?} chip
321
- * @return {?}
322
- */
323
- function (chip) {
324
- chip.selected = lodashEs.find(_this.value, (/**
325
- * @param {?} o
326
- * @return {?}
327
- */
328
- function (o) {
329
- return _this.compareFn(o, chip.value);
330
- })) !== undefined;
331
- }));
332
- }
333
- this._cdRef.markForCheck();
334
- };
335
- FsChipsComponent.decorators = [
336
- { type: core.Component, args: [{
337
- selector: 'fs-chips',
338
- template: "<ng-content></ng-content>\n",
339
- providers: [
340
- {
341
- provide: forms.NG_VALUE_ACCESSOR,
342
- useExisting: core.forwardRef((/**
343
- * @return {?}
344
- */
345
- function () { return FsChipsComponent; })),
346
- multi: true,
347
- },
348
- FsChipsService,
349
- ],
350
- changeDetection: core.ChangeDetectionStrategy.OnPush,
351
- styles: [""]
352
- }] }
353
- ];
354
- /** @nocollapse */
355
- FsChipsComponent.ctorParameters = function () { return [
356
- { type: core.ChangeDetectorRef },
357
- { type: FsChipsService }
358
- ]; };
359
- FsChipsComponent.propDecorators = {
360
- classFsChips: [{ type: core.HostBinding, args: ['class.fs-chips',] }],
361
- classHasChips: [{ type: core.HostBinding, args: ['class.has-chips',] }],
362
- compare: [{ type: core.Input }],
363
- multiple: [{ type: core.Input }]
364
- };
365
- return FsChipsComponent;
366
- }());
367
- if (false) {
368
- /** @type {?} */
369
- FsChipsComponent.prototype.classFsChips;
370
- /** @type {?} */
371
- FsChipsComponent.prototype.classHasChips;
372
- /** @type {?} */
373
- FsChipsComponent.prototype.compare;
374
- /** @type {?} */
375
- FsChipsComponent.prototype.multiple;
376
- /** @type {?} */
377
- FsChipsComponent.prototype.onChange;
378
- /** @type {?} */
379
- FsChipsComponent.prototype.onTouch;
380
- /**
381
- * @type {?}
382
- * @private
383
- */
384
- FsChipsComponent.prototype._value;
385
- /**
386
- * @type {?}
387
- * @private
388
- */
389
- FsChipsComponent.prototype._destroy$;
390
- /**
391
- * @type {?}
392
- * @private
393
- */
394
- FsChipsComponent.prototype._cdRef;
395
- /**
396
- * @type {?}
397
- * @private
398
- */
399
- FsChipsComponent.prototype._chipsService;
400
- }
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
401
28
 
402
- /**
403
- * @fileoverview added by tsickle
404
- * Generated from: app/components/chip/chip.component.ts
405
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
406
- */
407
- var FsChipComponent = /** @class */ (function () {
408
- function FsChipComponent(_cdRef, _chips) {
409
- this._cdRef = _cdRef;
410
- this._chips = _chips;
411
- this.fsChip = true;
412
- this._outlined = false;
413
- this._selectable = false;
414
- this._image = false;
415
- this._selected = false;
416
- this._removable = false;
417
- this.styleBackgroundColor = '';
418
- this.styleColor = '';
419
- this.styleBorderColor = '';
420
- this.classSmall = false;
421
- this.classTiny = false;
422
- this.classMicro = false;
423
- this.value = null;
424
- this.selectedToggled = new core.EventEmitter();
425
- this.removed = new core.EventEmitter();
426
- this.$destroy = new rxjs.Subject();
427
- this._backgroundColor = '';
428
- this._color = '';
429
- }
430
- Object.defineProperty(FsChipComponent.prototype, "setSize", {
431
- set: /**
432
- * @param {?} value
433
- * @return {?}
434
- */
435
- function (value) {
436
- this._size = value;
437
- this.classSmall = value === 'small';
438
- this.classTiny = value === 'tiny';
439
- this.classMicro = value === 'micro';
440
- },
441
- enumerable: true,
442
- configurable: true
443
- });
444
- ;
445
- /**
446
- * @return {?}
447
- */
448
- FsChipComponent.prototype.click = /**
449
- * @return {?}
450
- */
451
- function () {
452
- if (this.selectable) {
453
- this.selected = !this.selected;
454
- this.selectedToggled.emit({ value: this.value, selected: this.selected });
455
- if (this._chips) {
456
- this._chips.selectionChanged(this.selected, this.value);
457
- }
458
- }
459
- };
460
- Object.defineProperty(FsChipComponent.prototype, "backgroundColor", {
461
- set: /**
462
- * @param {?} value
463
- * @return {?}
464
- */
465
- function (value) {
466
- this._backgroundColor = value;
467
- this.updateStyles();
468
- },
469
- enumerable: true,
470
- configurable: true
471
- });
472
- ;
473
- Object.defineProperty(FsChipComponent.prototype, "borderColor", {
474
- set: /**
475
- * @param {?} value
476
- * @return {?}
477
- */
478
- function (value) {
479
- this.styleBorderColor = value;
480
- this.updateStyles();
481
- },
482
- enumerable: true,
483
- configurable: true
484
- });
485
- Object.defineProperty(FsChipComponent.prototype, "color", {
486
- get: /**
487
- * @return {?}
488
- */
489
- function () {
490
- return this._color;
491
- },
492
- set: /**
493
- * @param {?} value
494
- * @return {?}
495
- */
496
- function (value) {
497
- this._color = value;
498
- this.updateStyles();
499
- },
500
- enumerable: true,
501
- configurable: true
502
- });
503
- Object.defineProperty(FsChipComponent.prototype, "outlined", {
504
- get: /**
505
- * @return {?}
506
- */
507
- function () {
508
- return this._outlined;
509
- },
510
- set: /**
511
- * @param {?} value
512
- * @return {?}
513
- */
514
- function (value) {
515
- this._outlined = value;
516
- this.updateStyles();
517
- },
518
- enumerable: true,
519
- configurable: true
520
- });
521
- ;
522
- Object.defineProperty(FsChipComponent.prototype, "removable", {
523
- get: /**
524
- * @return {?}
525
- */
526
- function () {
527
- return this._removable;
528
- },
529
- set: /**
530
- * @param {?} value
531
- * @return {?}
532
- */
533
- function (value) {
534
- this._removable = value;
535
- this._cdRef.markForCheck();
536
- },
537
- enumerable: true,
538
- configurable: true
539
- });
540
- ;
541
- Object.defineProperty(FsChipComponent.prototype, "selectable", {
542
- get: /**
543
- * @return {?}
544
- */
545
- function () {
546
- return this._selectable;
547
- },
548
- set: /**
549
- * @param {?} value
550
- * @return {?}
551
- */
552
- function (value) {
553
- this._selectable = value;
554
- },
555
- enumerable: true,
556
- configurable: true
557
- });
558
- ;
559
- Object.defineProperty(FsChipComponent.prototype, "selected", {
560
- get: /**
561
- * @return {?}
562
- */
563
- function () {
564
- return this._selected;
565
- },
566
- set: /**
567
- * @param {?} value
568
- * @return {?}
569
- */
570
- function (value) {
571
- this._selected = value;
572
- this._cdRef.markForCheck();
573
- },
574
- enumerable: true,
575
- configurable: true
576
- });
577
- ;
578
- Object.defineProperty(FsChipComponent.prototype, "image", {
579
- get: /**
580
- * @return {?}
581
- */
582
- function () {
583
- return this._image;
584
- },
585
- set: /**
586
- * @param {?} value
587
- * @return {?}
588
- */
589
- function (value) {
590
- this._image = value;
591
- this._cdRef.markForCheck();
592
- },
593
- enumerable: true,
594
- configurable: true
595
- });
596
- ;
597
- /**
598
- * @return {?}
599
- */
600
- FsChipComponent.prototype.ngOnInit = /**
601
- * @return {?}
602
- */
603
- function () {
604
- if (this._chips) {
605
- this._chips.register(this);
606
- }
607
- };
608
- /**
609
- * @return {?}
610
- */
611
- FsChipComponent.prototype.ngOnDestroy = /**
612
- * @return {?}
613
- */
614
- function () {
615
- if (this._chips) {
616
- this._chips.destroy(this);
617
- }
618
- this.$destroy.next();
619
- this.$destroy.complete();
620
- };
621
- /**
622
- * @param {?} event
623
- * @return {?}
624
- */
625
- FsChipComponent.prototype.remove = /**
626
- * @param {?} event
627
- * @return {?}
628
- */
629
- function (event) {
630
- this.removed.next(event);
631
- };
632
- /**
633
- * @private
634
- * @param {?} hexcolor
635
- * @return {?}
636
- */
637
- FsChipComponent.prototype.isContrastYIQBlack = /**
638
- * @private
639
- * @param {?} hexcolor
640
- * @return {?}
641
- */
642
- function (hexcolor) {
643
- if (!hexcolor) {
644
- return true;
645
- }
646
- hexcolor = hexcolor.replace('#', '');
647
- /** @type {?} */
648
- var r = parseInt(hexcolor.substr(0, 2), 16);
649
- /** @type {?} */
650
- var g = parseInt(hexcolor.substr(2, 2), 16);
651
- /** @type {?} */
652
- var b = parseInt(hexcolor.substr(4, 2), 16);
653
- /** @type {?} */
654
- var yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000;
655
- return yiq >= 200;
656
- };
657
- /**
658
- * @private
659
- * @return {?}
660
- */
661
- FsChipComponent.prototype.updateStyles = /**
662
- * @private
663
- * @return {?}
664
- */
665
- function () {
666
- this.styleBackgroundColor = this._backgroundColor;
667
- if (this._color) {
668
- this.styleColor = this._color;
669
- }
670
- else if (!this._outlined) {
671
- this.styleColor = this.isContrastYIQBlack(this.styleBackgroundColor) ? '#474747' : '#fff';
672
- }
673
- if (this._outlined) {
674
- this.styleBackgroundColor = '';
675
- if (this._color) {
676
- this.styleBorderColor = this._color;
677
- }
678
- }
679
- this._cdRef.markForCheck();
680
- };
681
- FsChipComponent.decorators = [
682
- { type: core.Component, args: [{
683
- selector: 'fs-chip',
684
- template: "<img *ngIf=\"image\" [src]=\"image\" class=\"image\" alt=\"\">\n<div class=\"fs-chip-content\">\n <ng-content></ng-content>\n</div>\n<div class=\"selected-check\" *ngIf=\"selected\">\n <mat-icon [style.color]=\"styleColor\">check</mat-icon>\n</div>\n<a *ngIf=\"removable\" class=\"remove\" (click)=\"remove($event)\">\n <mat-icon [style.color]=\"styleColor\">cancel</mat-icon>\n</a>\n",
685
- changeDetection: core.ChangeDetectionStrategy.OnPush,
686
- styles: [""]
687
- }] }
688
- ];
689
- /** @nocollapse */
690
- FsChipComponent.ctorParameters = function () { return [
691
- { type: core.ChangeDetectorRef },
692
- { type: FsChipsService, decorators: [{ type: core.Optional }] }
693
- ]; };
694
- FsChipComponent.propDecorators = {
695
- fsChip: [{ type: core.HostBinding, args: ['class.fs-chip',] }],
696
- _outlined: [{ type: core.HostBinding, args: ['class.outlined',] }],
697
- _selectable: [{ type: core.HostBinding, args: ['class.selectable',] }],
698
- _image: [{ type: core.HostBinding, args: ['class.imaged',] }],
699
- _selected: [{ type: core.HostBinding, args: ['class.selected',] }],
700
- _removable: [{ type: core.HostBinding, args: ['class.removable',] }],
701
- styleBackgroundColor: [{ type: core.HostBinding, args: ['style.backgroundColor',] }],
702
- styleColor: [{ type: core.HostBinding, args: ['style.color',] }],
703
- styleBorderColor: [{ type: core.HostBinding, args: ['style.borderColor',] }],
704
- classSmall: [{ type: core.HostBinding, args: ['class.small',] }],
705
- classTiny: [{ type: core.HostBinding, args: ['class.tiny',] }],
706
- classMicro: [{ type: core.HostBinding, args: ['class.micro',] }],
707
- setSize: [{ type: core.Input, args: ['size',] }],
708
- click: [{ type: core.HostListener, args: ['click',] }],
709
- value: [{ type: core.Input }],
710
- backgroundColor: [{ type: core.Input }],
711
- borderColor: [{ type: core.Input }],
712
- color: [{ type: core.Input }],
713
- outlined: [{ type: core.Input }],
714
- removable: [{ type: core.Input }],
715
- selectable: [{ type: core.Input }],
716
- selected: [{ type: core.Input }],
717
- image: [{ type: core.Input }],
718
- selectedToggled: [{ type: core.Output }],
719
- removed: [{ type: core.Output }]
720
- };
721
- return FsChipComponent;
722
- }());
723
- if (false) {
724
- /** @type {?} */
725
- FsChipComponent.prototype.fsChip;
726
- /** @type {?} */
727
- FsChipComponent.prototype._outlined;
728
- /** @type {?} */
729
- FsChipComponent.prototype._selectable;
730
- /** @type {?} */
731
- FsChipComponent.prototype._image;
732
- /** @type {?} */
733
- FsChipComponent.prototype._selected;
734
- /** @type {?} */
735
- FsChipComponent.prototype._removable;
736
- /** @type {?} */
737
- FsChipComponent.prototype.styleBackgroundColor;
738
- /** @type {?} */
739
- FsChipComponent.prototype.styleColor;
740
- /** @type {?} */
741
- FsChipComponent.prototype.styleBorderColor;
742
- /** @type {?} */
743
- FsChipComponent.prototype.classSmall;
744
- /** @type {?} */
745
- FsChipComponent.prototype.classTiny;
746
- /** @type {?} */
747
- FsChipComponent.prototype.classMicro;
748
- /** @type {?} */
749
- FsChipComponent.prototype.value;
750
- /** @type {?} */
751
- FsChipComponent.prototype.selectedToggled;
752
- /** @type {?} */
753
- FsChipComponent.prototype.removed;
754
- /** @type {?} */
755
- FsChipComponent.prototype.$destroy;
756
- /**
757
- * @type {?}
758
- * @private
759
- */
760
- FsChipComponent.prototype._backgroundColor;
761
- /**
762
- * @type {?}
763
- * @private
764
- */
765
- FsChipComponent.prototype._color;
766
- /**
767
- * @type {?}
768
- * @private
769
- */
770
- FsChipComponent.prototype._size;
771
- /**
772
- * @type {?}
773
- * @private
774
- */
775
- FsChipComponent.prototype._cdRef;
776
- /**
777
- * @type {?}
778
- * @private
779
- */
780
- FsChipComponent.prototype._chips;
781
- /* Skipping unhandled member: ;*/
782
- /* Skipping unhandled member: ;*/
783
- /* Skipping unhandled member: ;*/
784
- /* Skipping unhandled member: ;*/
785
- /* Skipping unhandled member: ;*/
786
- /* Skipping unhandled member: ;*/
787
- /* Skipping unhandled member: ;*/
788
- }
29
+ var FsChipsService = /** @class */ (function () {
30
+ function FsChipsService() {
31
+ this.chips = [];
32
+ this._chipItemsChanged$ = new rxjs.Subject();
33
+ this._selectionChanged$ = new rxjs.Subject();
34
+ this._destroy$ = new rxjs.Subject();
35
+ }
36
+ Object.defineProperty(FsChipsService.prototype, "selectionChanged$", {
37
+ get: function () {
38
+ return this._selectionChanged$.
39
+ pipe(operators.takeUntil(this._destroy$));
40
+ },
41
+ enumerable: false,
42
+ configurable: true
43
+ });
44
+ Object.defineProperty(FsChipsService.prototype, "chipItemsChanged$", {
45
+ get: function () {
46
+ return this._chipItemsChanged$
47
+ .pipe(operators.takeUntil(this._destroy$), operators.debounceTime(50));
48
+ },
49
+ enumerable: false,
50
+ configurable: true
51
+ });
52
+ FsChipsService.prototype.ngOnDestroy = function () {
53
+ this._destroy$.next();
54
+ this._destroy$.complete();
55
+ };
56
+ FsChipsService.prototype.selectionChanged = function (selected, value) {
57
+ this._selectionChanged$.next({
58
+ selected: selected,
59
+ value: value,
60
+ });
61
+ };
62
+ FsChipsService.prototype.register = function (chip) {
63
+ this.chips.push(chip);
64
+ this._chipItemsChanged$.next();
65
+ };
66
+ FsChipsService.prototype.destroy = function (chip) {
67
+ var index = this.chips.indexOf(chip);
68
+ if (index > -1) {
69
+ this.chips.splice(index, 1);
70
+ this._chipItemsChanged$.next();
71
+ }
72
+ };
73
+ return FsChipsService;
74
+ }());
75
+ FsChipsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipsService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
76
+ FsChipsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipsService });
77
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipsService, decorators: [{
78
+ type: i0.Injectable
79
+ }], ctorParameters: function () { return []; } });
80
+
81
+ var FsChipsComponent = /** @class */ (function () {
82
+ function FsChipsComponent(_cdRef, _chipsService) {
83
+ this._cdRef = _cdRef;
84
+ this._chipsService = _chipsService;
85
+ this.classFsChips = true;
86
+ this.classHasChips = false;
87
+ this.multiple = true;
88
+ this.onChange = function () { };
89
+ this.onTouch = function () { };
90
+ this._value = [];
91
+ this._destroy$ = new rxjs.Subject();
92
+ this.subscribeToItemsChange();
93
+ this.subscribeToSelectionChange();
94
+ }
95
+ Object.defineProperty(FsChipsComponent.prototype, "chips", {
96
+ get: function () {
97
+ return this._chipsService.chips;
98
+ },
99
+ enumerable: false,
100
+ configurable: true
101
+ });
102
+ Object.defineProperty(FsChipsComponent.prototype, "value", {
103
+ get: function () {
104
+ return this._value;
105
+ },
106
+ set: function (value) {
107
+ if (this._value !== value) {
108
+ this._value = value;
109
+ this.onChange(this._value);
110
+ this.onTouch(this._value);
111
+ }
112
+ },
113
+ enumerable: false,
114
+ configurable: true
115
+ });
116
+ FsChipsComponent.prototype.ngOnDestroy = function () {
117
+ this._destroy$.next();
118
+ this._destroy$.complete();
119
+ };
120
+ FsChipsComponent.prototype.writeValue = function (value) {
121
+ if (value !== this.value) {
122
+ this._value = value;
123
+ }
124
+ this.updateChips();
125
+ };
126
+ FsChipsComponent.prototype.registerOnChange = function (fn) { this.onChange = fn; };
127
+ FsChipsComponent.prototype.registerOnTouched = function (fn) { this.onTouch = fn; };
128
+ /**
129
+ * Update ngModel value when selection changed
130
+ */
131
+ FsChipsComponent.prototype.subscribeToSelectionChange = function () {
132
+ var _this = this;
133
+ this._chipsService.selectionChanged$
134
+ .pipe(operators.takeUntil(this._destroy$))
135
+ .subscribe(function (_a) {
136
+ var selected = _a.selected, value = _a.value;
137
+ if (!selected) {
138
+ var valueIndex = _this.value.findIndex(function (item) {
139
+ return _this.compareFn(item, value);
140
+ });
141
+ if (valueIndex > -1) {
142
+ _this.value.splice(valueIndex, 1);
143
+ _this.onChange(_this._value);
144
+ _this.onTouch(_this._value);
145
+ }
146
+ }
147
+ else {
148
+ _this.value.push(value);
149
+ _this.onChange(_this._value);
150
+ _this.onTouch(_this._value);
151
+ }
152
+ });
153
+ };
154
+ /**
155
+ * Update selection if item was added or removed
156
+ */
157
+ FsChipsComponent.prototype.subscribeToItemsChange = function () {
158
+ var _this = this;
159
+ this._chipsService.chipItemsChanged$
160
+ .pipe(operators.takeUntil(this._destroy$))
161
+ .subscribe(function () {
162
+ _this.classHasChips = !!_this._chipsService.chips.length;
163
+ _this.updateChips();
164
+ });
165
+ };
166
+ FsChipsComponent.prototype.compareFn = function (o1, o2) {
167
+ if (this.compare) {
168
+ return this.compare(o1, o2);
169
+ }
170
+ return o1 === o2;
171
+ };
172
+ FsChipsComponent.prototype.updateChips = function () {
173
+ var _this = this;
174
+ if (this.multiple && Array.isArray(this.value) && this.chips) {
175
+ this.chips.forEach(function (chip) {
176
+ chip.selected = lodashEs.find(_this.value, function (o) {
177
+ return _this.compareFn(o, chip.value);
178
+ }) !== undefined;
179
+ });
180
+ }
181
+ this._cdRef.markForCheck();
182
+ };
183
+ return FsChipsComponent;
184
+ }());
185
+ FsChipsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipsComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: FsChipsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
186
+ FsChipsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsChipsComponent, selector: "fs-chips", inputs: { compare: "compare", multiple: "multiple" }, host: { properties: { "class.fs-chips": "this.classFsChips", "class.has-chips": "this.classHasChips" } }, providers: [
187
+ {
188
+ provide: forms.NG_VALUE_ACCESSOR,
189
+ useExisting: i0.forwardRef(function () { return FsChipsComponent; }),
190
+ multi: true,
191
+ },
192
+ FsChipsService,
193
+ ], ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
194
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipsComponent, decorators: [{
195
+ type: i0.Component,
196
+ args: [{
197
+ selector: 'fs-chips',
198
+ templateUrl: 'chips.component.html',
199
+ styleUrls: ['chips.component.scss'],
200
+ providers: [
201
+ {
202
+ provide: forms.NG_VALUE_ACCESSOR,
203
+ useExisting: i0.forwardRef(function () { return FsChipsComponent; }),
204
+ multi: true,
205
+ },
206
+ FsChipsService,
207
+ ],
208
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
209
+ }]
210
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: FsChipsService }]; }, propDecorators: { classFsChips: [{
211
+ type: i0.HostBinding,
212
+ args: ['class.fs-chips']
213
+ }], classHasChips: [{
214
+ type: i0.HostBinding,
215
+ args: ['class.has-chips']
216
+ }], compare: [{
217
+ type: i0.Input
218
+ }], multiple: [{
219
+ type: i0.Input
220
+ }] } });
789
221
 
790
- /**
791
- * @fileoverview added by tsickle
792
- * Generated from: app/fs-chip.module.ts
793
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
794
- */
795
- var FsChipModule = /** @class */ (function () {
796
- function FsChipModule() {
797
- }
798
- /**
799
- * @return {?}
800
- */
801
- FsChipModule.forRoot = /**
802
- * @return {?}
803
- */
804
- function () {
805
- return {
806
- ngModule: FsChipModule
807
- };
808
- };
809
- FsChipModule.decorators = [
810
- { type: core.NgModule, args: [{
811
- imports: [
812
- common.CommonModule,
813
- icon.MatIconModule,
814
- label.FsLabelModule
815
- ],
816
- exports: [
817
- FsChipsComponent,
818
- FsChipComponent,
819
- ],
820
- declarations: [
821
- FsChipsComponent,
822
- FsChipComponent,
823
- ]
824
- },] }
825
- ];
826
- return FsChipModule;
222
+ var FsChipComponent = /** @class */ (function () {
223
+ function FsChipComponent(_cdRef, _chips) {
224
+ this._cdRef = _cdRef;
225
+ this._chips = _chips;
226
+ this.fsChip = true;
227
+ this._outlined = false;
228
+ this._selectable = false;
229
+ this._image = false;
230
+ this._selected = false;
231
+ this._removable = false;
232
+ this.styleBackgroundColor = '';
233
+ this.styleColor = '';
234
+ this.styleBorderColor = '';
235
+ this.classSmall = false;
236
+ this.classTiny = false;
237
+ this.classMicro = false;
238
+ this.value = null;
239
+ this.selectedToggled = new i0.EventEmitter();
240
+ this.removed = new i0.EventEmitter();
241
+ this.$destroy = new rxjs.Subject();
242
+ this._backgroundColor = '';
243
+ this._color = '';
244
+ }
245
+ Object.defineProperty(FsChipComponent.prototype, "setSize", {
246
+ set: function (value) {
247
+ this._size = value;
248
+ this.classSmall = value === 'small';
249
+ this.classTiny = value === 'tiny';
250
+ this.classMicro = value === 'micro';
251
+ },
252
+ enumerable: false,
253
+ configurable: true
254
+ });
255
+ ;
256
+ FsChipComponent.prototype.click = function () {
257
+ if (this.selectable) {
258
+ this.selected = !this.selected;
259
+ this.selectedToggled.emit({ value: this.value, selected: this.selected });
260
+ if (this._chips) {
261
+ this._chips.selectionChanged(this.selected, this.value);
262
+ }
263
+ }
264
+ };
265
+ Object.defineProperty(FsChipComponent.prototype, "backgroundColor", {
266
+ set: function (value) {
267
+ this._backgroundColor = value;
268
+ this.updateStyles();
269
+ },
270
+ enumerable: false,
271
+ configurable: true
272
+ });
273
+ ;
274
+ Object.defineProperty(FsChipComponent.prototype, "borderColor", {
275
+ set: function (value) {
276
+ this.styleBorderColor = value;
277
+ this.updateStyles();
278
+ },
279
+ enumerable: false,
280
+ configurable: true
281
+ });
282
+ Object.defineProperty(FsChipComponent.prototype, "color", {
283
+ get: function () {
284
+ return this._color;
285
+ },
286
+ set: function (value) {
287
+ this._color = value;
288
+ this.updateStyles();
289
+ },
290
+ enumerable: false,
291
+ configurable: true
292
+ });
293
+ Object.defineProperty(FsChipComponent.prototype, "outlined", {
294
+ get: function () {
295
+ return this._outlined;
296
+ },
297
+ set: function (value) {
298
+ this._outlined = value;
299
+ this.updateStyles();
300
+ },
301
+ enumerable: false,
302
+ configurable: true
303
+ });
304
+ ;
305
+ Object.defineProperty(FsChipComponent.prototype, "removable", {
306
+ get: function () {
307
+ return this._removable;
308
+ },
309
+ set: function (value) {
310
+ this._removable = value;
311
+ this._cdRef.markForCheck();
312
+ },
313
+ enumerable: false,
314
+ configurable: true
315
+ });
316
+ ;
317
+ Object.defineProperty(FsChipComponent.prototype, "selectable", {
318
+ get: function () {
319
+ return this._selectable;
320
+ },
321
+ set: function (value) {
322
+ this._selectable = value;
323
+ },
324
+ enumerable: false,
325
+ configurable: true
326
+ });
327
+ ;
328
+ Object.defineProperty(FsChipComponent.prototype, "selected", {
329
+ get: function () {
330
+ return this._selected;
331
+ },
332
+ set: function (value) {
333
+ this._selected = value;
334
+ this._cdRef.markForCheck();
335
+ },
336
+ enumerable: false,
337
+ configurable: true
338
+ });
339
+ ;
340
+ Object.defineProperty(FsChipComponent.prototype, "image", {
341
+ get: function () {
342
+ return this._image;
343
+ },
344
+ set: function (value) {
345
+ this._image = value;
346
+ this._cdRef.markForCheck();
347
+ },
348
+ enumerable: false,
349
+ configurable: true
350
+ });
351
+ ;
352
+ FsChipComponent.prototype.ngOnInit = function () {
353
+ if (this._chips) {
354
+ this._chips.register(this);
355
+ }
356
+ };
357
+ FsChipComponent.prototype.ngOnDestroy = function () {
358
+ if (this._chips) {
359
+ this._chips.destroy(this);
360
+ }
361
+ this.$destroy.next();
362
+ this.$destroy.complete();
363
+ };
364
+ FsChipComponent.prototype.remove = function (event) {
365
+ this.removed.next(event);
366
+ };
367
+ FsChipComponent.prototype.isContrastYIQBlack = function (hexcolor) {
368
+ if (!hexcolor) {
369
+ return true;
370
+ }
371
+ hexcolor = hexcolor.replace('#', '');
372
+ var r = parseInt(hexcolor.substr(0, 2), 16);
373
+ var g = parseInt(hexcolor.substr(2, 2), 16);
374
+ var b = parseInt(hexcolor.substr(4, 2), 16);
375
+ var yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000;
376
+ return yiq >= 200;
377
+ };
378
+ FsChipComponent.prototype.updateStyles = function () {
379
+ this.styleBackgroundColor = this._backgroundColor;
380
+ if (this._color) {
381
+ this.styleColor = this._color;
382
+ }
383
+ else if (!this._outlined) {
384
+ this.styleColor = this.isContrastYIQBlack(this.styleBackgroundColor) ? '#474747' : '#fff';
385
+ }
386
+ if (this._outlined) {
387
+ this.styleBackgroundColor = '';
388
+ if (this._color) {
389
+ this.styleBorderColor = this._color;
390
+ }
391
+ }
392
+ this._cdRef.markForCheck();
393
+ };
394
+ return FsChipComponent;
827
395
  }());
396
+ FsChipComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: FsChipsService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
397
+ FsChipComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsChipComponent, selector: "fs-chip", inputs: { setSize: ["size", "setSize"], value: "value", backgroundColor: "backgroundColor", borderColor: "borderColor", color: "color", outlined: "outlined", removable: "removable", selectable: "selectable", selected: "selected", image: "image" }, outputs: { selectedToggled: "selectedToggled", removed: "removed" }, host: { listeners: { "click": "click()" }, properties: { "class.fs-chip": "this.fsChip", "class.outlined": "this._outlined", "class.selectable": "this._selectable", "class.imaged": "this._image", "class.selected": "this._selected", "class.removable": "this._removable", "style.backgroundColor": "this.styleBackgroundColor", "style.color": "this.styleColor", "style.borderColor": "this.styleBorderColor", "class.small": "this.classSmall", "class.tiny": "this.classTiny", "class.micro": "this.classMicro" } }, ngImport: i0__namespace, template: "<img *ngIf=\"image\" [src]=\"image\" class=\"image\" alt=\"\">\n<div class=\"fs-chip-content\">\n <ng-content></ng-content>\n</div>\n<div class=\"selected-check\" *ngIf=\"selected\">\n <mat-icon [style.color]=\"styleColor\">check</mat-icon>\n</div>\n<a *ngIf=\"removable\" class=\"remove\" (click)=\"remove($event)\">\n <mat-icon [style.color]=\"styleColor\">cancel</mat-icon>\n</a>\n", styles: [""], components: [{ type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
398
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipComponent, decorators: [{
399
+ type: i0.Component,
400
+ args: [{
401
+ selector: 'fs-chip',
402
+ templateUrl: 'chip.component.html',
403
+ styleUrls: ['chip.component.scss'],
404
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
405
+ }]
406
+ }], ctorParameters: function () {
407
+ return [{ type: i0__namespace.ChangeDetectorRef }, { type: FsChipsService, decorators: [{
408
+ type: i0.Optional
409
+ }] }];
410
+ }, propDecorators: { fsChip: [{
411
+ type: i0.HostBinding,
412
+ args: ['class.fs-chip']
413
+ }], _outlined: [{
414
+ type: i0.HostBinding,
415
+ args: ['class.outlined']
416
+ }], _selectable: [{
417
+ type: i0.HostBinding,
418
+ args: ['class.selectable']
419
+ }], _image: [{
420
+ type: i0.HostBinding,
421
+ args: ['class.imaged']
422
+ }], _selected: [{
423
+ type: i0.HostBinding,
424
+ args: ['class.selected']
425
+ }], _removable: [{
426
+ type: i0.HostBinding,
427
+ args: ['class.removable']
428
+ }], styleBackgroundColor: [{
429
+ type: i0.HostBinding,
430
+ args: ['style.backgroundColor']
431
+ }], styleColor: [{
432
+ type: i0.HostBinding,
433
+ args: ['style.color']
434
+ }], styleBorderColor: [{
435
+ type: i0.HostBinding,
436
+ args: ['style.borderColor']
437
+ }], classSmall: [{
438
+ type: i0.HostBinding,
439
+ args: ['class.small']
440
+ }], classTiny: [{
441
+ type: i0.HostBinding,
442
+ args: ['class.tiny']
443
+ }], classMicro: [{
444
+ type: i0.HostBinding,
445
+ args: ['class.micro']
446
+ }], setSize: [{
447
+ type: i0.Input,
448
+ args: ['size']
449
+ }], click: [{
450
+ type: i0.HostListener,
451
+ args: ['click']
452
+ }], value: [{
453
+ type: i0.Input
454
+ }], backgroundColor: [{
455
+ type: i0.Input
456
+ }], borderColor: [{
457
+ type: i0.Input
458
+ }], color: [{
459
+ type: i0.Input
460
+ }], outlined: [{
461
+ type: i0.Input
462
+ }], removable: [{
463
+ type: i0.Input
464
+ }], selectable: [{
465
+ type: i0.Input
466
+ }], selected: [{
467
+ type: i0.Input
468
+ }], image: [{
469
+ type: i0.Input
470
+ }], selectedToggled: [{
471
+ type: i0.Output
472
+ }], removed: [{
473
+ type: i0.Output
474
+ }] } });
475
+
476
+ var FsChipModule = /** @class */ (function () {
477
+ function FsChipModule() {
478
+ }
479
+ FsChipModule.forRoot = function () {
480
+ return {
481
+ ngModule: FsChipModule
482
+ };
483
+ };
484
+ return FsChipModule;
485
+ }());
486
+ FsChipModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
487
+ FsChipModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipModule, declarations: [FsChipsComponent,
488
+ FsChipComponent], imports: [i3.CommonModule,
489
+ i2.MatIconModule,
490
+ label.FsLabelModule], exports: [FsChipsComponent,
491
+ FsChipComponent] });
492
+ FsChipModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipModule, imports: [[
493
+ i3.CommonModule,
494
+ i2.MatIconModule,
495
+ label.FsLabelModule
496
+ ]] });
497
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsChipModule, decorators: [{
498
+ type: i0.NgModule,
499
+ args: [{
500
+ imports: [
501
+ i3.CommonModule,
502
+ i2.MatIconModule,
503
+ label.FsLabelModule
504
+ ],
505
+ exports: [
506
+ FsChipsComponent,
507
+ FsChipComponent,
508
+ ],
509
+ declarations: [
510
+ FsChipsComponent,
511
+ FsChipComponent,
512
+ ]
513
+ }]
514
+ }] });
515
+
516
+ /*
517
+ * Public API Surface of fs-menu
518
+ */
519
+
520
+ /**
521
+ * Generated bundle index. Do not edit.
522
+ */
828
523
 
524
+ exports.FsChipComponent = FsChipComponent;
829
525
  exports.FsChipModule = FsChipModule;
830
- exports.ɵa = FsChipsComponent;
831
- exports.ɵb = FsChipsService;
832
- exports.ɵc = FsChipComponent;
526
+ exports.FsChipsComponent = FsChipsComponent;
833
527
 
834
528
  Object.defineProperty(exports, '__esModule', { value: true });
835
529
 
836
- })));
530
+ }));
837
531
  //# sourceMappingURL=firestitch-chip.umd.js.map