@firestitch/chip 8.1.7 → 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,41 +1,51 @@
1
- import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { FsChipsService } from '../../services/chips.service';
4
- export declare class FsChipComponent implements OnInit, OnDestroy {
5
- private _cdRef;
6
- private _chips;
7
- fsChip: boolean;
8
- _outlined: boolean;
9
- _selectable: boolean;
10
- _image: boolean;
11
- _selected: boolean;
12
- _removable: boolean;
13
- styleBackgroundColor: string;
14
- styleColor: string;
15
- styleBorderColor: string;
16
- classSmall: boolean;
17
- classTiny: boolean;
18
- setSize: any;
19
- click(): void;
20
- value: any;
21
- backgroundColor: any;
22
- borderColor: any;
23
- color: any;
24
- outlined: any;
25
- removable: any;
26
- selectable: any;
27
- selected: any;
28
- image: any;
29
- selectedToggled: EventEmitter<any>;
30
- removed: EventEmitter<any>;
31
- $destroy: Subject<unknown>;
32
- private _backgroundColor;
33
- private _color;
34
- private _size;
35
- constructor(_cdRef: ChangeDetectorRef, _chips: FsChipsService);
36
- ngOnInit(): void;
37
- ngOnDestroy(): void;
38
- remove(event: any): void;
39
- private isContrastYIQBlack;
40
- private updateStyles;
41
- }
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import { FsChipsService } from '../../services/chips.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FsChipComponent implements OnInit, OnDestroy {
6
+ private _cdRef;
7
+ private _chips;
8
+ fsChip: boolean;
9
+ _outlined: boolean;
10
+ _selectable: boolean;
11
+ _image: boolean;
12
+ _selected: boolean;
13
+ _removable: boolean;
14
+ styleBackgroundColor: string;
15
+ styleColor: string;
16
+ styleBorderColor: string;
17
+ classSmall: boolean;
18
+ classTiny: boolean;
19
+ classMicro: boolean;
20
+ set setSize(value: any);
21
+ click(): void;
22
+ value: any;
23
+ set backgroundColor(value: any);
24
+ set borderColor(value: any);
25
+ set color(value: string);
26
+ get color(): string;
27
+ set outlined(value: boolean);
28
+ get outlined(): boolean;
29
+ set removable(value: boolean);
30
+ get removable(): boolean;
31
+ set selectable(value: boolean);
32
+ get selectable(): boolean;
33
+ set selected(value: boolean);
34
+ get selected(): boolean;
35
+ set image(value: boolean);
36
+ get image(): boolean;
37
+ selectedToggled: EventEmitter<any>;
38
+ removed: EventEmitter<any>;
39
+ $destroy: Subject<unknown>;
40
+ private _backgroundColor;
41
+ private _color;
42
+ private _size;
43
+ constructor(_cdRef: ChangeDetectorRef, _chips: FsChipsService);
44
+ ngOnInit(): void;
45
+ ngOnDestroy(): void;
46
+ remove(event: any): void;
47
+ private isContrastYIQBlack;
48
+ private updateStyles;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsChipComponent, [null, { optional: true; }]>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsChipComponent, "fs-chip", never, { "setSize": "size"; "value": "value"; "backgroundColor": "backgroundColor"; "borderColor": "borderColor"; "color": "color"; "outlined": "outlined"; "removable": "removable"; "selectable": "selectable"; "selected": "selected"; "image": "image"; }, { "selectedToggled": "selectedToggled"; "removed": "removed"; }, never, ["*"]>;
51
+ }
@@ -1,32 +1,36 @@
1
- import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { FsChipsService } from '../../services/chips.service';
4
- export declare class FsChipsComponent implements OnDestroy, ControlValueAccessor {
5
- private _cdRef;
6
- private _chipsService;
7
- classFsChips: boolean;
8
- classHasChips: boolean;
9
- compare: any;
10
- multiple: boolean;
11
- onChange: any;
12
- onTouch: any;
13
- private _value;
14
- private _destroy$;
15
- constructor(_cdRef: ChangeDetectorRef, _chipsService: FsChipsService);
16
- readonly chips: any[];
17
- value: any;
18
- ngOnDestroy(): void;
19
- writeValue(value: any): void;
20
- registerOnChange(fn: any): void;
21
- registerOnTouched(fn: any): void;
22
- /**
23
- * Update ngModel value when selection changed
24
- */
25
- private subscribeToSelectionChange;
26
- /**
27
- * Update selection if item was added or removed
28
- */
29
- private subscribeToItemsChange;
30
- private compareFn;
31
- private updateChips;
32
- }
1
+ import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { FsChipsService } from '../../services/chips.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FsChipsComponent implements OnDestroy, ControlValueAccessor {
6
+ private _cdRef;
7
+ private _chipsService;
8
+ classFsChips: boolean;
9
+ classHasChips: boolean;
10
+ compare: any;
11
+ multiple: boolean;
12
+ onChange: any;
13
+ onTouch: any;
14
+ private _value;
15
+ private _destroy$;
16
+ constructor(_cdRef: ChangeDetectorRef, _chipsService: FsChipsService);
17
+ get chips(): any[];
18
+ set value(value: any[]);
19
+ get value(): any[];
20
+ ngOnDestroy(): void;
21
+ writeValue(value: any): void;
22
+ registerOnChange(fn: any): void;
23
+ registerOnTouched(fn: any): void;
24
+ /**
25
+ * Update ngModel value when selection changed
26
+ */
27
+ private subscribeToSelectionChange;
28
+ /**
29
+ * Update selection if item was added or removed
30
+ */
31
+ private subscribeToItemsChange;
32
+ private compareFn;
33
+ private updateChips;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsChipsComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsChipsComponent, "fs-chips", never, { "compare": "compare"; "multiple": "multiple"; }, {}, never, ["*"]>;
36
+ }
@@ -1,4 +1,13 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- export declare class FsChipModule {
3
- static forRoot(): ModuleWithProviders;
4
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./components/chips/chips.component";
4
+ import * as i2 from "./components/chip/chip.component";
5
+ import * as i3 from "@angular/common";
6
+ import * as i4 from "@angular/material/icon";
7
+ import * as i5 from "@firestitch/label";
8
+ export declare class FsChipModule {
9
+ static forRoot(): ModuleWithProviders<FsChipModule>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsChipModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FsChipModule, [typeof i1.FsChipsComponent, typeof i2.FsChipComponent], [typeof i3.CommonModule, typeof i4.MatIconModule, typeof i5.FsLabelModule], [typeof i1.FsChipsComponent, typeof i2.FsChipComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<FsChipModule>;
13
+ }
@@ -1,14 +1,17 @@
1
- import { OnDestroy } from '@angular/core';
2
- export declare class FsChipsService implements OnDestroy {
3
- chips: any[];
4
- private _chipItemsChanged$;
5
- private _selectionChanged$;
6
- private _destroy$;
7
- constructor();
8
- readonly selectionChanged$: import("rxjs").Observable<unknown>;
9
- readonly chipItemsChanged$: import("rxjs").Observable<unknown>;
10
- ngOnDestroy(): void;
11
- selectionChanged(selected: boolean, value: any): void;
12
- register(chip: any): void;
13
- destroy(chip: any): void;
14
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FsChipsService implements OnDestroy {
4
+ chips: any[];
5
+ private _chipItemsChanged$;
6
+ private _selectionChanged$;
7
+ private _destroy$;
8
+ constructor();
9
+ get selectionChanged$(): import("rxjs").Observable<unknown>;
10
+ get chipItemsChanged$(): import("rxjs").Observable<unknown>;
11
+ ngOnDestroy(): void;
12
+ selectionChanged(selected: boolean, value: any): void;
13
+ register(chip: any): void;
14
+ destroy(chip: any): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsChipsService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<FsChipsService>;
17
+ }