@theseam/ui-common 2.0.1-beta.109 → 2.0.1-beta.111
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/data-filters/index.d.ts +4 -0
- package/fesm2022/theseam-ui-common-data-filters.mjs +21 -8
- package/fesm2022/theseam-ui-common-data-filters.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-google-maps.mjs +1632 -161
- package/fesm2022/theseam-ui-common-google-maps.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-story-helpers.mjs +55 -2
- package/fesm2022/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-toggle-group.mjs +45 -104
- package/fesm2022/theseam-ui-common-toggle-group.mjs.map +1 -1
- package/google-maps/index.d.ts +426 -13
- package/package.json +1 -1
- package/story-helpers/index.d.ts +4 -2
- package/toggle-group/index.d.ts +24 -18
package/toggle-group/index.d.ts
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { InjectionToken, EventEmitter, QueryList } from '@angular/core';
|
|
3
3
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
5
|
|
|
7
6
|
declare class ToggleGroupOptionDirective {
|
|
8
|
-
private readonly
|
|
7
|
+
private readonly _group;
|
|
9
8
|
seamToggleGroupOption: string | undefined | null;
|
|
10
|
-
get selected(): boolean;
|
|
11
|
-
set selected(value: boolean);
|
|
12
|
-
private _selected;
|
|
13
|
-
/** Internal use only for now. */
|
|
14
|
-
_canUnselect: boolean;
|
|
15
|
-
selectionChange: EventEmitter<boolean>;
|
|
16
9
|
get _checkioSelectedClass(): boolean;
|
|
17
10
|
get value(): string | undefined | null;
|
|
18
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleGroupOptionDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ToggleGroupOptionDirective, "[seamToggleGroupOption]", ["seamToggleGroupOption"], { "seamToggleGroupOption": { "alias": "seamToggleGroupOption"; "required": false; };
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToggleGroupOptionDirective, "[seamToggleGroupOption]", ["seamToggleGroupOption"], { "seamToggleGroupOption": { "alias": "seamToggleGroupOption"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
13
|
}
|
|
21
14
|
|
|
15
|
+
/**
|
|
16
|
+
* The part of the toggle group that an option needs in order to resolve its own
|
|
17
|
+
* selected state.
|
|
18
|
+
*
|
|
19
|
+
* This exists as a separate token so `ToggleGroupOptionDirective` can reach its
|
|
20
|
+
* parent group without importing `ToggleGroupDirective`, which would create a
|
|
21
|
+
* circular import between the two directives.
|
|
22
|
+
*/
|
|
23
|
+
interface TheSeamToggleGroupParent {
|
|
24
|
+
isSelected(value: string | undefined | null): boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const THESEAM_TOGGLE_GROUP_PARENT: InjectionToken<TheSeamToggleGroupParent>;
|
|
27
|
+
|
|
22
28
|
declare const TOGGLE_GROUP_VALUE_ACCESSOR: any;
|
|
23
|
-
declare class ToggleGroupDirective implements
|
|
29
|
+
declare class ToggleGroupDirective implements ControlValueAccessor {
|
|
24
30
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
25
31
|
static ngAcceptInputType_multiple: BooleanInput;
|
|
26
32
|
static ngAcceptInputType_selectionToggleable: BooleanInput;
|
|
27
|
-
private readonly _ngUnsubscribe;
|
|
28
33
|
val: string | string[] | undefined | null;
|
|
29
34
|
disabled: boolean;
|
|
30
35
|
multiple: boolean;
|
|
31
36
|
selectionToggleable: boolean;
|
|
32
37
|
readonly change: EventEmitter<string | string[] | null | undefined>;
|
|
33
38
|
optionDirectives?: QueryList<ToggleGroupOptionDirective>;
|
|
34
|
-
options?: Observable<ToggleGroupOptionDirective[]>;
|
|
35
39
|
onChange: any;
|
|
36
40
|
onTouched: any;
|
|
37
|
-
ngOnDestroy(): void;
|
|
38
|
-
ngAfterViewInit(): void;
|
|
39
41
|
get value(): string | string[] | undefined | null;
|
|
40
42
|
set value(value: string | string[] | undefined | null);
|
|
41
43
|
writeValue(value: any): void;
|
|
@@ -43,11 +45,14 @@ declare class ToggleGroupDirective implements OnDestroy, AfterViewInit, ControlV
|
|
|
43
45
|
registerOnTouched(fn: any): void;
|
|
44
46
|
setDisabledState(isDisabled: boolean): void;
|
|
45
47
|
isSelected(value: string | undefined | null): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Toggles an option's selected state by value.
|
|
50
|
+
*/
|
|
51
|
+
toggleOptionSelect(value: string | undefined | null): void;
|
|
52
|
+
private _selectedCount;
|
|
46
53
|
unselectValue(value: string | undefined | null): void;
|
|
47
54
|
selectValue(value: string | undefined | null): void;
|
|
48
55
|
getOptionDirectiveByValue(value: string): ToggleGroupOptionDirective | null | undefined;
|
|
49
|
-
private _updateDirectiveStates;
|
|
50
|
-
private _updateDirectiveState;
|
|
51
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleGroupDirective, never>;
|
|
52
57
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ToggleGroupDirective, "[seamToggleGroup]", ["seamToggleGroup"], { "val": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectionToggleable": { "alias": "selectionToggleable"; "required": false; }; }, { "change": "change"; }, ["optionDirectives"], never, true, never>;
|
|
53
58
|
}
|
|
@@ -58,4 +63,5 @@ declare class TheSeamToggleGroupModule {
|
|
|
58
63
|
static ɵinj: i0.ɵɵInjectorDeclaration<TheSeamToggleGroupModule>;
|
|
59
64
|
}
|
|
60
65
|
|
|
61
|
-
export { TOGGLE_GROUP_VALUE_ACCESSOR, TheSeamToggleGroupModule, ToggleGroupDirective, ToggleGroupOptionDirective };
|
|
66
|
+
export { THESEAM_TOGGLE_GROUP_PARENT, TOGGLE_GROUP_VALUE_ACCESSOR, TheSeamToggleGroupModule, ToggleGroupDirective, ToggleGroupOptionDirective };
|
|
67
|
+
export type { TheSeamToggleGroupParent };
|