@firestitch/chip 13.1.6 → 15.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.
- package/app/components/chip/chip.component.d.ts +42 -42
- package/app/components/chip/index.d.ts +1 -1
- package/app/components/chips/chips.component.d.ts +40 -40
- package/app/fs-chip.module.d.ts +13 -13
- package/esm2020/app/components/chip/chip.component.mjs +181 -181
- package/esm2020/app/components/chip/index.mjs +1 -1
- package/esm2020/app/components/chips/chips.component.mjs +154 -154
- package/esm2020/app/fs-chip.module.mjs +42 -44
- package/esm2020/firestitch-chip.mjs +4 -4
- package/esm2020/public_api.mjs +6 -6
- package/fesm2015/firestitch-chip.mjs +359 -361
- package/fesm2015/firestitch-chip.mjs.map +1 -1
- package/fesm2020/firestitch-chip.mjs +359 -361
- package/fesm2020/firestitch-chip.mjs.map +1 -1
- package/{firestitch-chip.d.ts → index.d.ts} +5 -5
- package/package.json +3 -3
- package/public_api.d.ts +3 -3
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsChipComponent implements OnInit, OnDestroy {
|
|
5
|
-
private _cdRef;
|
|
6
|
-
fsChip: boolean;
|
|
7
|
-
_outlined: boolean;
|
|
8
|
-
selectable: boolean;
|
|
9
|
-
removable: boolean;
|
|
10
|
-
styleBackgroundColor: string;
|
|
11
|
-
styleColor: string;
|
|
12
|
-
styleBorderColor: string;
|
|
13
|
-
classSmall: boolean;
|
|
14
|
-
classTiny: boolean;
|
|
15
|
-
classMicro: boolean;
|
|
16
|
-
value: any;
|
|
17
|
-
icon: any;
|
|
18
|
-
image: any;
|
|
19
|
-
selected: boolean;
|
|
20
|
-
selectedToggled: EventEmitter<any>;
|
|
21
|
-
removed: EventEmitter<any>;
|
|
22
|
-
private _destroy$;
|
|
23
|
-
private _backgroundColor;
|
|
24
|
-
private _color;
|
|
25
|
-
constructor(_cdRef: ChangeDetectorRef);
|
|
26
|
-
set setSize(value: any);
|
|
27
|
-
click(): void;
|
|
28
|
-
set backgroundColor(value: any);
|
|
29
|
-
set borderColor(value: any);
|
|
30
|
-
set color(value: any);
|
|
31
|
-
get destroy$(): Observable<any>;
|
|
32
|
-
set outlined(value: any);
|
|
33
|
-
select(): void;
|
|
34
|
-
unselect(): void;
|
|
35
|
-
ngOnInit(): void;
|
|
36
|
-
ngOnDestroy(): void;
|
|
37
|
-
remove(event: MouseEvent): void;
|
|
38
|
-
private _isContrastYIQBlack;
|
|
39
|
-
private _updateStyles;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsChipComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsChipComponent, "fs-chip", never, { "selectable": "selectable"; "removable": "removable"; "value": "value"; "icon": "icon"; "image": "image"; "selected": "selected"; "setSize": "size"; "backgroundColor": "backgroundColor"; "borderColor": "borderColor"; "color": "color"; "outlined": "outlined"; }, { "selectedToggled": "selectedToggled"; "removed": "removed"; }, never, ["*"]>;
|
|
42
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FsChipComponent implements OnInit, OnDestroy {
|
|
5
|
+
private _cdRef;
|
|
6
|
+
fsChip: boolean;
|
|
7
|
+
_outlined: boolean;
|
|
8
|
+
selectable: boolean;
|
|
9
|
+
removable: boolean;
|
|
10
|
+
styleBackgroundColor: string;
|
|
11
|
+
styleColor: string;
|
|
12
|
+
styleBorderColor: string;
|
|
13
|
+
classSmall: boolean;
|
|
14
|
+
classTiny: boolean;
|
|
15
|
+
classMicro: boolean;
|
|
16
|
+
value: any;
|
|
17
|
+
icon: any;
|
|
18
|
+
image: any;
|
|
19
|
+
selected: boolean;
|
|
20
|
+
selectedToggled: EventEmitter<any>;
|
|
21
|
+
removed: EventEmitter<any>;
|
|
22
|
+
private _destroy$;
|
|
23
|
+
private _backgroundColor;
|
|
24
|
+
private _color;
|
|
25
|
+
constructor(_cdRef: ChangeDetectorRef);
|
|
26
|
+
set setSize(value: any);
|
|
27
|
+
click(): void;
|
|
28
|
+
set backgroundColor(value: any);
|
|
29
|
+
set borderColor(value: any);
|
|
30
|
+
set color(value: any);
|
|
31
|
+
get destroy$(): Observable<any>;
|
|
32
|
+
set outlined(value: any);
|
|
33
|
+
select(): void;
|
|
34
|
+
unselect(): void;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
remove(event: MouseEvent): void;
|
|
38
|
+
private _isContrastYIQBlack;
|
|
39
|
+
private _updateStyles;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsChipComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsChipComponent, "fs-chip", never, { "selectable": "selectable"; "removable": "removable"; "value": "value"; "icon": "icon"; "image": "image"; "selected": "selected"; "setSize": "size"; "backgroundColor": "backgroundColor"; "borderColor": "borderColor"; "color": "color"; "outlined": "outlined"; }, { "selectedToggled": "selectedToggled"; "removed": "removed"; }, never, ["*"], false, never>;
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './chip.component';
|
|
1
|
+
export * from './chip.component';
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { AfterContentInit, ChangeDetectorRef, IterableDiffers, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { FsChipComponent } from '../chip';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FsChipsComponent implements OnDestroy, ControlValueAccessor, AfterContentInit {
|
|
6
|
-
private _cdRef;
|
|
7
|
-
private _iterable;
|
|
8
|
-
classFsChips: boolean;
|
|
9
|
-
classHasChips: boolean;
|
|
10
|
-
chips: QueryList<FsChipComponent>;
|
|
11
|
-
compare: any;
|
|
12
|
-
multiple: boolean;
|
|
13
|
-
onChange: (value: any) => void;
|
|
14
|
-
onTouch: (value: any) => void;
|
|
15
|
-
private _value;
|
|
16
|
-
private _destroy$;
|
|
17
|
-
private _chipDiffer;
|
|
18
|
-
constructor(_cdRef: ChangeDetectorRef, _iterable: IterableDiffers);
|
|
19
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
20
|
-
ngAfterContentInit(): void;
|
|
21
|
-
set value(value: any[]);
|
|
22
|
-
get value(): any[];
|
|
23
|
-
ngOnDestroy(): void;
|
|
24
|
-
writeValue(value: any): void;
|
|
25
|
-
registerOnChange(fn: any): void;
|
|
26
|
-
registerOnTouched(fn: any): void;
|
|
27
|
-
private _subscribeToSelectionChange;
|
|
28
|
-
/**
|
|
29
|
-
* Update ngModel value when selection changed
|
|
30
|
-
*/
|
|
31
|
-
private _subscribeToSelectionChanges;
|
|
32
|
-
/**
|
|
33
|
-
* Update selection if item was added or removed
|
|
34
|
-
*/
|
|
35
|
-
private _subscribeToItemsChange;
|
|
36
|
-
private _compareFn;
|
|
37
|
-
private _updateChips;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsChipsComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsChipsComponent, "fs-chips", never, { "compare": "compare"; "multiple": "multiple"; }, {}, ["chips"], ["*"]>;
|
|
40
|
-
}
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, IterableDiffers, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { FsChipComponent } from '../chip';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FsChipsComponent implements OnDestroy, ControlValueAccessor, AfterContentInit {
|
|
6
|
+
private _cdRef;
|
|
7
|
+
private _iterable;
|
|
8
|
+
classFsChips: boolean;
|
|
9
|
+
classHasChips: boolean;
|
|
10
|
+
chips: QueryList<FsChipComponent>;
|
|
11
|
+
compare: any;
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
onChange: (value: any) => void;
|
|
14
|
+
onTouch: (value: any) => void;
|
|
15
|
+
private _value;
|
|
16
|
+
private _destroy$;
|
|
17
|
+
private _chipDiffer;
|
|
18
|
+
constructor(_cdRef: ChangeDetectorRef, _iterable: IterableDiffers);
|
|
19
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
20
|
+
ngAfterContentInit(): void;
|
|
21
|
+
set value(value: any[]);
|
|
22
|
+
get value(): any[];
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
writeValue(value: any): void;
|
|
25
|
+
registerOnChange(fn: any): void;
|
|
26
|
+
registerOnTouched(fn: any): void;
|
|
27
|
+
private _subscribeToSelectionChange;
|
|
28
|
+
/**
|
|
29
|
+
* Update ngModel value when selection changed
|
|
30
|
+
*/
|
|
31
|
+
private _subscribeToSelectionChanges;
|
|
32
|
+
/**
|
|
33
|
+
* Update selection if item was added or removed
|
|
34
|
+
*/
|
|
35
|
+
private _subscribeToItemsChange;
|
|
36
|
+
private _compareFn;
|
|
37
|
+
private _updateChips;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsChipsComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsChipsComponent, "fs-chips", never, { "compare": "compare"; "multiple": "multiple"; }, {}, ["chips"], ["*"], false, never>;
|
|
40
|
+
}
|
package/app/fs-chip.module.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
|
+
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
|
+
}
|