@firestitch/chip 8.1.9 → 13.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.
Files changed (39) hide show
  1. package/app/components/chip/chip.component.d.ts +19 -9
  2. package/app/components/chips/chips.component.d.ts +12 -8
  3. package/app/fs-chip.module.d.ts +10 -1
  4. package/app/services/chips.service.d.ts +5 -2
  5. package/esm2020/app/components/chip/chip.component.mjs +221 -0
  6. package/esm2020/app/components/chips/chips.component.mjs +132 -0
  7. package/esm2020/app/fs-chip.module.mjs +44 -0
  8. package/esm2020/app/services/chips.service.mjs +47 -0
  9. package/esm2020/firestitch-chip.mjs +5 -0
  10. package/esm2020/public_api.mjs +7 -0
  11. package/fesm2015/firestitch-chip.mjs +442 -0
  12. package/fesm2015/firestitch-chip.mjs.map +1 -0
  13. package/fesm2020/firestitch-chip.mjs +440 -0
  14. package/fesm2020/firestitch-chip.mjs.map +1 -0
  15. package/firestitch-chip.d.ts +1 -3
  16. package/package.json +21 -12
  17. package/public_api.d.ts +2 -0
  18. package/styles.scss +0 -190
  19. package/bundles/firestitch-chip.umd.js +0 -837
  20. package/bundles/firestitch-chip.umd.js.map +0 -1
  21. package/bundles/firestitch-chip.umd.min.js +0 -2
  22. package/bundles/firestitch-chip.umd.min.js.map +0 -1
  23. package/esm2015/app/components/chip/chip.component.js +0 -336
  24. package/esm2015/app/components/chips/chips.component.js +0 -236
  25. package/esm2015/app/fs-chip.module.js +0 -39
  26. package/esm2015/app/services/chips.service.js +0 -93
  27. package/esm2015/firestitch-chip.js +0 -13
  28. package/esm2015/public_api.js +0 -10
  29. package/esm5/app/components/chip/chip.component.js +0 -392
  30. package/esm5/app/components/chips/chips.component.js +0 -287
  31. package/esm5/app/fs-chip.module.js +0 -46
  32. package/esm5/app/services/chips.service.js +0 -119
  33. package/esm5/firestitch-chip.js +0 -13
  34. package/esm5/public_api.js +0 -10
  35. package/fesm2015/firestitch-chip.js +0 -709
  36. package/fesm2015/firestitch-chip.js.map +0 -1
  37. package/fesm5/firestitch-chip.js +0 -845
  38. package/fesm5/firestitch-chip.js.map +0 -1
  39. package/firestitch-chip.metadata.json +0 -1
@@ -1,837 +0,0 @@
1
- (function (global, factory) {
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
- 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';
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$;
120
- }
121
-
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
- }
401
-
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
- }
789
-
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;
827
- }());
828
-
829
- exports.FsChipModule = FsChipModule;
830
- exports.ɵa = FsChipsComponent;
831
- exports.ɵb = FsChipsService;
832
- exports.ɵc = FsChipComponent;
833
-
834
- Object.defineProperty(exports, '__esModule', { value: true });
835
-
836
- })));
837
- //# sourceMappingURL=firestitch-chip.umd.js.map