@frontile/buttons 0.17.0-alpha.7 → 0.17.0-beta.1
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/declarations/components/close-button.d.ts +6 -1
- package/declarations/components/close-button.d.ts.map +1 -1
- package/dist/components/button-group.js +9 -7
- package/dist/components/button-group.js.map +1 -1
- package/dist/components/button.js +9 -7
- package/dist/components/button.js.map +1 -1
- package/dist/components/chip.js +17 -15
- package/dist/components/chip.js.map +1 -1
- package/dist/components/close-button.js +13 -12
- package/dist/components/close-button.js.map +1 -1
- package/dist/components/toggle-button.js +9 -7
- package/dist/components/toggle-button.js.map +1 -1
- package/package.json +19 -19
- package/declarations/components/divider.d.ts +0 -12
- package/declarations/components/divider.d.ts.map +0 -1
- package/declarations/components/dropdown.d.ts +0 -0
- package/declarations/components/dropdown.d.ts.map +0 -1
- package/declarations/components/listbox/index.d.ts +0 -0
- package/declarations/components/listbox/item.d.ts +0 -59
- package/declarations/components/listbox/item.d.ts.map +0 -1
- package/declarations/components/listbox/listManager.d.ts +0 -47
- package/declarations/components/listbox/listManager.d.ts.map +0 -1
- package/declarations/components/listbox/listbox.d.ts +0 -53
- package/declarations/components/listbox/listbox.d.ts.map +0 -1
- package/declarations/components/listbox/setupListItemModfier.d.ts +0 -22
- package/declarations/components/listbox/setupListItemModfier.d.ts.map +0 -1
- package/declarations/components/listbox.d.ts +0 -2
- package/declarations/components/listbox.d.ts.map +0 -1
- package/declarations/components/progress-bar.d.ts +0 -91
- package/declarations/components/progress-bar.d.ts.map +0 -1
- package/declarations/index-no8en1_n.d.ts +0 -67
- package/declarations/listbox-1cp2bD-x.d.ts +0 -67
- package/declarations/listbox-38xau2IA.d.ts +0 -67
- package/declarations/listbox-A_qc5w8r.d.ts +0 -67
- package/declarations/listbox-S1lgfwKX.d.ts +0 -67
- package/declarations/listbox-ZEReOm3F.d.ts +0 -67
- package/declarations/listbox-cAOcxqN8.d.ts +0 -67
- package/declarations/listbox-hhoUlBQR.d.ts +0 -67
- package/declarations/listbox-i1gEINAH.d.ts +0 -67
- package/declarations/listbox-lYENr0uH.d.ts +0 -67
- package/declarations/listbox-no8en1_n.d.ts +0 -67
- package/declarations/listbox-sAR1PFcv.d.ts +0 -67
- package/declarations/listbox-tZZ0yA07.d.ts +0 -67
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
|
-
import { ArgsFor } from "ember-modifier";
|
|
3
|
-
type SelectionMode = "none" | "single" | "multiple";
|
|
4
|
-
declare class Node {
|
|
5
|
-
el: HTMLLIElement;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
constructor(el: HTMLLIElement, args: Required<NodeArgs>);
|
|
12
|
-
}
|
|
13
|
-
interface NodeArgs {
|
|
14
|
-
key: string;
|
|
15
|
-
textValue?: string;
|
|
16
|
-
isSelected?: boolean;
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ListManagerOptions {
|
|
21
|
-
selectionMode?: SelectionMode;
|
|
22
|
-
selectedKeys?: string[];
|
|
23
|
-
disabledKeys?: string[];
|
|
24
|
-
allowEmpty?: boolean;
|
|
25
|
-
onAction?: (key: string) => void;
|
|
26
|
-
onSelectionChange?: (key: string[]) => void;
|
|
27
|
-
}
|
|
28
|
-
declare class ListManager {
|
|
29
|
-
#private;
|
|
30
|
-
searchKeys: string;
|
|
31
|
-
constructor(options?: ListManagerOptions);
|
|
32
|
-
register(el: HTMLLIElement, args: Required<NodeArgs>): void;
|
|
33
|
-
unregister(el: HTMLLIElement): void;
|
|
34
|
-
at(el?: HTMLLIElement): Node | undefined;
|
|
35
|
-
update(options: ListManagerOptions): void;
|
|
36
|
-
selectActiveNode(): void;
|
|
37
|
-
selectNode(node?: Node): void;
|
|
38
|
-
activateNode(node?: Node): void;
|
|
39
|
-
setNextOptionActive(): void;
|
|
40
|
-
setPreviousOptionActive(): void;
|
|
41
|
-
setFirstOptionActive(): void;
|
|
42
|
-
setLastOptionActive(): void;
|
|
43
|
-
search(key: string): void;
|
|
44
|
-
isKeyDisabled(key: string): boolean;
|
|
45
|
-
isKeySelected(key: string): boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SetupListItemModifierSignature {
|
|
48
|
-
Args: {
|
|
49
|
-
Positional: [manager: ListManager];
|
|
50
|
-
Named: Pick<NodeArgs, 'key' | 'textValue'>;
|
|
51
|
-
};
|
|
52
|
-
Element: HTMLLIElement;
|
|
53
|
-
}
|
|
54
|
-
declare class SetupListItem extends Modifier<SetupListItemModifierSignature> {
|
|
55
|
-
element?: HTMLLIElement;
|
|
56
|
-
manager?: ListManager;
|
|
57
|
-
/* eslint-disable-next-line */
|
|
58
|
-
constructor(owner: any, args: ArgsFor<SetupListItemModifierSignature>);
|
|
59
|
-
modify(element: HTMLLIElement, [manager]: [ListManager], args: ArgsFor<SetupListItemModifierSignature>['named']): void;
|
|
60
|
-
update: (args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
61
|
-
register: (el: HTMLLIElement, manager: ListManager, args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
62
|
-
unregister: (instance: SetupListItem) => void;
|
|
63
|
-
mouseEnter: () => void;
|
|
64
|
-
mouseLeave: () => void;
|
|
65
|
-
}
|
|
66
|
-
export type { Node, NodeArgs, SelectionMode };
|
|
67
|
-
export { ListManager, SetupListItem };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
|
-
import { ArgsFor } from "ember-modifier";
|
|
3
|
-
type SelectionMode = "none" | "single" | "multiple";
|
|
4
|
-
declare class Node {
|
|
5
|
-
el: HTMLLIElement;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
constructor(el: HTMLLIElement, args: Required<NodeArgs>);
|
|
12
|
-
}
|
|
13
|
-
interface NodeArgs {
|
|
14
|
-
key: string;
|
|
15
|
-
textValue?: string;
|
|
16
|
-
isSelected?: boolean;
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ListManagerOptions {
|
|
21
|
-
selectionMode?: SelectionMode;
|
|
22
|
-
selectedKeys?: string[];
|
|
23
|
-
disabledKeys?: string[];
|
|
24
|
-
allowEmpty?: boolean;
|
|
25
|
-
onAction?: (key: string) => void;
|
|
26
|
-
onSelectionChange?: (key: string[]) => void;
|
|
27
|
-
}
|
|
28
|
-
declare class ListManager {
|
|
29
|
-
#private;
|
|
30
|
-
searchKeys: string;
|
|
31
|
-
constructor(options?: ListManagerOptions);
|
|
32
|
-
register(el: HTMLLIElement, args: Required<NodeArgs>): void;
|
|
33
|
-
unregister(el: HTMLLIElement): void;
|
|
34
|
-
at(el?: HTMLLIElement): Node | undefined;
|
|
35
|
-
update(options: ListManagerOptions): void;
|
|
36
|
-
selectActiveNode(): void;
|
|
37
|
-
selectNode(node?: Node): void;
|
|
38
|
-
activateNode(node?: Node): void;
|
|
39
|
-
setNextOptionActive(): void;
|
|
40
|
-
setPreviousOptionActive(): void;
|
|
41
|
-
setFirstOptionActive(): void;
|
|
42
|
-
setLastOptionActive(): void;
|
|
43
|
-
search(key: string): void;
|
|
44
|
-
isKeyDisabled(key: string): boolean;
|
|
45
|
-
isKeySelected(key: string): boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SetupListItemModifierSignature {
|
|
48
|
-
Args: {
|
|
49
|
-
Positional: [manager: ListManager];
|
|
50
|
-
Named: Pick<NodeArgs, 'key' | 'textValue'>;
|
|
51
|
-
};
|
|
52
|
-
Element: HTMLLIElement;
|
|
53
|
-
}
|
|
54
|
-
declare class SetupListItem extends Modifier<SetupListItemModifierSignature> {
|
|
55
|
-
element?: HTMLLIElement;
|
|
56
|
-
manager?: ListManager;
|
|
57
|
-
/* eslint-disable-next-line */
|
|
58
|
-
constructor(owner: any, args: ArgsFor<SetupListItemModifierSignature>);
|
|
59
|
-
modify(element: HTMLLIElement, [manager]: [ListManager], args: ArgsFor<SetupListItemModifierSignature>['named']): void;
|
|
60
|
-
update: (args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
61
|
-
register: (el: HTMLLIElement, manager: ListManager, args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
62
|
-
unregister: (instance: SetupListItem) => void;
|
|
63
|
-
mouseEnter: () => void;
|
|
64
|
-
mouseLeave: () => void;
|
|
65
|
-
}
|
|
66
|
-
export type { Node, NodeArgs, SelectionMode };
|
|
67
|
-
export { ListManager, SetupListItem };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
|
-
import { ArgsFor } from "ember-modifier";
|
|
3
|
-
type SelectionMode = "none" | "single" | "multiple";
|
|
4
|
-
declare class Node {
|
|
5
|
-
el: HTMLLIElement;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
constructor(el: HTMLLIElement, args: Required<NodeArgs>);
|
|
12
|
-
}
|
|
13
|
-
interface NodeArgs {
|
|
14
|
-
key: string;
|
|
15
|
-
textValue?: string;
|
|
16
|
-
isSelected?: boolean;
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ListManagerOptions {
|
|
21
|
-
selectionMode?: SelectionMode;
|
|
22
|
-
selectedKeys?: string[];
|
|
23
|
-
disabledKeys?: string[];
|
|
24
|
-
allowEmpty?: boolean;
|
|
25
|
-
onAction?: (key: string) => void;
|
|
26
|
-
onSelectionChange?: (key: string[]) => void;
|
|
27
|
-
}
|
|
28
|
-
declare class ListManager {
|
|
29
|
-
#private;
|
|
30
|
-
searchKeys: string;
|
|
31
|
-
constructor(options?: ListManagerOptions);
|
|
32
|
-
register(el: HTMLLIElement, args: Required<NodeArgs>): void;
|
|
33
|
-
unregister(el: HTMLLIElement): void;
|
|
34
|
-
at(el?: HTMLLIElement): Node | undefined;
|
|
35
|
-
update(options: ListManagerOptions): void;
|
|
36
|
-
selectActiveNode(): void;
|
|
37
|
-
selectNode(node?: Node): void;
|
|
38
|
-
activateNode(node?: Node): void;
|
|
39
|
-
setNextOptionActive(): void;
|
|
40
|
-
setPreviousOptionActive(): void;
|
|
41
|
-
setFirstOptionActive(): void;
|
|
42
|
-
setLastOptionActive(): void;
|
|
43
|
-
search(key: string): void;
|
|
44
|
-
isKeyDisabled(key: string): boolean;
|
|
45
|
-
isKeySelected(key: string): boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SetupListItemModifierSignature {
|
|
48
|
-
Args: {
|
|
49
|
-
Positional: [manager: ListManager];
|
|
50
|
-
Named: Pick<NodeArgs, 'key' | 'textValue'>;
|
|
51
|
-
};
|
|
52
|
-
Element: HTMLLIElement;
|
|
53
|
-
}
|
|
54
|
-
declare class SetupListItem extends Modifier<SetupListItemModifierSignature> {
|
|
55
|
-
element?: HTMLLIElement;
|
|
56
|
-
manager?: ListManager;
|
|
57
|
-
/* eslint-disable-next-line */
|
|
58
|
-
constructor(owner: any, args: ArgsFor<SetupListItemModifierSignature>);
|
|
59
|
-
modify(element: HTMLLIElement, [manager]: [ListManager], args: ArgsFor<SetupListItemModifierSignature>['named']): void;
|
|
60
|
-
update: (args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
61
|
-
register: (el: HTMLLIElement, manager: ListManager, args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
62
|
-
unregister: (instance: SetupListItem) => void;
|
|
63
|
-
mouseEnter: () => void;
|
|
64
|
-
mouseLeave: () => void;
|
|
65
|
-
}
|
|
66
|
-
export type { Node, NodeArgs, SelectionMode };
|
|
67
|
-
export { ListManager, SetupListItem };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
|
-
import { ArgsFor } from "ember-modifier";
|
|
3
|
-
type SelectionMode = "none" | "single" | "multiple";
|
|
4
|
-
declare class Node {
|
|
5
|
-
el: HTMLLIElement;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
constructor(el: HTMLLIElement, args: Required<NodeArgs>);
|
|
12
|
-
}
|
|
13
|
-
interface NodeArgs {
|
|
14
|
-
key: string;
|
|
15
|
-
textValue?: string;
|
|
16
|
-
isSelected?: boolean;
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ListManagerOptions {
|
|
21
|
-
selectionMode?: SelectionMode;
|
|
22
|
-
selectedKeys?: string[];
|
|
23
|
-
disabledKeys?: string[];
|
|
24
|
-
allowEmpty?: boolean;
|
|
25
|
-
onAction?: (key: string) => void;
|
|
26
|
-
onSelectionChange?: (key: string[]) => void;
|
|
27
|
-
}
|
|
28
|
-
declare class ListManager {
|
|
29
|
-
#private;
|
|
30
|
-
searchKeys: string;
|
|
31
|
-
constructor(options?: ListManagerOptions);
|
|
32
|
-
register(el: HTMLLIElement, args: Required<NodeArgs>): void;
|
|
33
|
-
unregister(el: HTMLLIElement): void;
|
|
34
|
-
at(el?: HTMLLIElement): Node | undefined;
|
|
35
|
-
update(options: ListManagerOptions): void;
|
|
36
|
-
selectActiveNode(): void;
|
|
37
|
-
selectNode(node?: Node): void;
|
|
38
|
-
activateNode(node?: Node): void;
|
|
39
|
-
setNextOptionActive(): void;
|
|
40
|
-
setPreviousOptionActive(): void;
|
|
41
|
-
setFirstOptionActive(): void;
|
|
42
|
-
setLastOptionActive(): void;
|
|
43
|
-
search(key: string): void;
|
|
44
|
-
isKeyDisabled(key: string): boolean;
|
|
45
|
-
isKeySelected(key: string): boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SetupListItemModifierSignature {
|
|
48
|
-
Args: {
|
|
49
|
-
Positional: [manager: ListManager];
|
|
50
|
-
Named: Pick<NodeArgs, 'key' | 'textValue'>;
|
|
51
|
-
};
|
|
52
|
-
Element: HTMLLIElement;
|
|
53
|
-
}
|
|
54
|
-
declare class SetupListItem extends Modifier<SetupListItemModifierSignature> {
|
|
55
|
-
element?: HTMLLIElement;
|
|
56
|
-
manager?: ListManager;
|
|
57
|
-
/* eslint-disable-next-line */
|
|
58
|
-
constructor(owner: any, args: ArgsFor<SetupListItemModifierSignature>);
|
|
59
|
-
modify(element: HTMLLIElement, [manager]: [ListManager], args: ArgsFor<SetupListItemModifierSignature>['named']): void;
|
|
60
|
-
update: (args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
61
|
-
register: (el: HTMLLIElement, manager: ListManager, args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
62
|
-
unregister: (instance: SetupListItem) => void;
|
|
63
|
-
mouseEnter: () => void;
|
|
64
|
-
mouseLeave: () => void;
|
|
65
|
-
}
|
|
66
|
-
export type { Node, NodeArgs, SelectionMode };
|
|
67
|
-
export { ListManager, SetupListItem };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
|
-
import { ArgsFor } from "ember-modifier";
|
|
3
|
-
type SelectionMode = "none" | "single" | "multiple";
|
|
4
|
-
declare class Node {
|
|
5
|
-
el: HTMLLIElement;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
constructor(el: HTMLLIElement, args: Required<NodeArgs>);
|
|
12
|
-
}
|
|
13
|
-
interface NodeArgs {
|
|
14
|
-
key: string;
|
|
15
|
-
textValue?: string;
|
|
16
|
-
isSelected?: boolean;
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ListManagerOptions {
|
|
21
|
-
selectionMode?: SelectionMode;
|
|
22
|
-
selectedKeys?: string[];
|
|
23
|
-
disabledKeys?: string[];
|
|
24
|
-
allowEmpty?: boolean;
|
|
25
|
-
onAction?: (key: string) => void;
|
|
26
|
-
onSelectionChange?: (key: string[]) => void;
|
|
27
|
-
}
|
|
28
|
-
declare class ListManager {
|
|
29
|
-
#private;
|
|
30
|
-
searchKeys: string;
|
|
31
|
-
constructor(options?: ListManagerOptions);
|
|
32
|
-
register(el: HTMLLIElement, args: Required<NodeArgs>): void;
|
|
33
|
-
unregister(el: HTMLLIElement): void;
|
|
34
|
-
at(el?: HTMLLIElement): Node | undefined;
|
|
35
|
-
update(options: ListManagerOptions): void;
|
|
36
|
-
selectActiveNode(): void;
|
|
37
|
-
selectNode(node?: Node): void;
|
|
38
|
-
activateNode(node?: Node): void;
|
|
39
|
-
setNextOptionActive(): void;
|
|
40
|
-
setPreviousOptionActive(): void;
|
|
41
|
-
setFirstOptionActive(): void;
|
|
42
|
-
setLastOptionActive(): void;
|
|
43
|
-
search(key: string): void;
|
|
44
|
-
isKeyDisabled(key: string): boolean;
|
|
45
|
-
isKeySelected(key: string): boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SetupListItemModifierSignature {
|
|
48
|
-
Args: {
|
|
49
|
-
Positional: [manager: ListManager];
|
|
50
|
-
Named: Pick<NodeArgs, 'key' | 'textValue'>;
|
|
51
|
-
};
|
|
52
|
-
Element: HTMLLIElement;
|
|
53
|
-
}
|
|
54
|
-
declare class SetupListItem extends Modifier<SetupListItemModifierSignature> {
|
|
55
|
-
element?: HTMLLIElement;
|
|
56
|
-
manager?: ListManager;
|
|
57
|
-
/* eslint-disable-next-line */
|
|
58
|
-
constructor(owner: any, args: ArgsFor<SetupListItemModifierSignature>);
|
|
59
|
-
modify(element: HTMLLIElement, [manager]: [ListManager], args: ArgsFor<SetupListItemModifierSignature>['named']): void;
|
|
60
|
-
update: (args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
61
|
-
register: (el: HTMLLIElement, manager: ListManager, args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
62
|
-
unregister: (instance: SetupListItem) => void;
|
|
63
|
-
mouseEnter: () => void;
|
|
64
|
-
mouseLeave: () => void;
|
|
65
|
-
}
|
|
66
|
-
export type { Node, NodeArgs, SelectionMode };
|
|
67
|
-
export { ListManager, SetupListItem };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
|
-
import { ArgsFor } from "ember-modifier";
|
|
3
|
-
type SelectionMode = "none" | "single" | "multiple";
|
|
4
|
-
declare class Node {
|
|
5
|
-
el: HTMLLIElement;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
constructor(el: HTMLLIElement, args: Required<NodeArgs>);
|
|
12
|
-
}
|
|
13
|
-
interface NodeArgs {
|
|
14
|
-
key: string;
|
|
15
|
-
textValue?: string;
|
|
16
|
-
isSelected?: boolean;
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ListManagerOptions {
|
|
21
|
-
selectionMode?: SelectionMode;
|
|
22
|
-
selectedKeys?: string[];
|
|
23
|
-
disabledKeys?: string[];
|
|
24
|
-
allowEmpty?: boolean;
|
|
25
|
-
onAction?: (key: string) => void;
|
|
26
|
-
onSelectionChange?: (key: string[]) => void;
|
|
27
|
-
}
|
|
28
|
-
declare class ListManager {
|
|
29
|
-
#private;
|
|
30
|
-
searchKeys: string;
|
|
31
|
-
constructor(options?: ListManagerOptions);
|
|
32
|
-
register(el: HTMLLIElement, args: Required<NodeArgs>): void;
|
|
33
|
-
unregister(el: HTMLLIElement): void;
|
|
34
|
-
at(el?: HTMLLIElement): Node | undefined;
|
|
35
|
-
update(options: ListManagerOptions): void;
|
|
36
|
-
selectActiveNode(): void;
|
|
37
|
-
selectNode(node?: Node): void;
|
|
38
|
-
activateNode(node?: Node): void;
|
|
39
|
-
setNextOptionActive(): void;
|
|
40
|
-
setPreviousOptionActive(): void;
|
|
41
|
-
setFirstOptionActive(): void;
|
|
42
|
-
setLastOptionActive(): void;
|
|
43
|
-
search(key: string): void;
|
|
44
|
-
isKeyDisabled(key: string): boolean;
|
|
45
|
-
isKeySelected(key: string): boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SetupListItemModifierSignature {
|
|
48
|
-
Args: {
|
|
49
|
-
Positional: [manager: ListManager];
|
|
50
|
-
Named: Pick<NodeArgs, 'key' | 'textValue'>;
|
|
51
|
-
};
|
|
52
|
-
Element: HTMLLIElement;
|
|
53
|
-
}
|
|
54
|
-
declare class SetupListItem extends Modifier<SetupListItemModifierSignature> {
|
|
55
|
-
element?: HTMLLIElement;
|
|
56
|
-
manager?: ListManager;
|
|
57
|
-
/* eslint-disable-next-line */
|
|
58
|
-
constructor(owner: any, args: ArgsFor<SetupListItemModifierSignature>);
|
|
59
|
-
modify(element: HTMLLIElement, [manager]: [ListManager], args: ArgsFor<SetupListItemModifierSignature>['named']): void;
|
|
60
|
-
update: (args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
61
|
-
register: (el: HTMLLIElement, manager: ListManager, args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
62
|
-
unregister: (instance: SetupListItem) => void;
|
|
63
|
-
mouseEnter: () => void;
|
|
64
|
-
mouseLeave: () => void;
|
|
65
|
-
}
|
|
66
|
-
export type { Node, NodeArgs, SelectionMode };
|
|
67
|
-
export { ListManager, SetupListItem };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import Modifier from 'ember-modifier';
|
|
2
|
-
import { ArgsFor } from "ember-modifier";
|
|
3
|
-
type SelectionMode = "none" | "single" | "multiple";
|
|
4
|
-
declare class Node {
|
|
5
|
-
el: HTMLLIElement;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue: string;
|
|
8
|
-
isSelected: boolean;
|
|
9
|
-
isDisabled: boolean;
|
|
10
|
-
isActive: boolean;
|
|
11
|
-
constructor(el: HTMLLIElement, args: Required<NodeArgs>);
|
|
12
|
-
}
|
|
13
|
-
interface NodeArgs {
|
|
14
|
-
key: string;
|
|
15
|
-
textValue?: string;
|
|
16
|
-
isSelected?: boolean;
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
isActive?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface ListManagerOptions {
|
|
21
|
-
selectionMode?: SelectionMode;
|
|
22
|
-
selectedKeys?: string[];
|
|
23
|
-
disabledKeys?: string[];
|
|
24
|
-
allowEmpty?: boolean;
|
|
25
|
-
onAction?: (key: string) => void;
|
|
26
|
-
onSelectionChange?: (key: string[]) => void;
|
|
27
|
-
}
|
|
28
|
-
declare class ListManager {
|
|
29
|
-
#private;
|
|
30
|
-
searchKeys: string;
|
|
31
|
-
constructor(options?: ListManagerOptions);
|
|
32
|
-
register(el: HTMLLIElement, args: Required<NodeArgs>): void;
|
|
33
|
-
unregister(el: HTMLLIElement): void;
|
|
34
|
-
at(el?: HTMLLIElement): Node | undefined;
|
|
35
|
-
update(options: ListManagerOptions): void;
|
|
36
|
-
selectActiveNode(): void;
|
|
37
|
-
selectNode(node?: Node): void;
|
|
38
|
-
activateNode(node?: Node): void;
|
|
39
|
-
setNextOptionActive(): void;
|
|
40
|
-
setPreviousOptionActive(): void;
|
|
41
|
-
setFirstOptionActive(): void;
|
|
42
|
-
setLastOptionActive(): void;
|
|
43
|
-
search(key: string): void;
|
|
44
|
-
isKeyDisabled(key: string): boolean;
|
|
45
|
-
isKeySelected(key: string): boolean;
|
|
46
|
-
}
|
|
47
|
-
interface SetupListItemModifierSignature {
|
|
48
|
-
Args: {
|
|
49
|
-
Positional: [manager: ListManager];
|
|
50
|
-
Named: Pick<NodeArgs, 'key' | 'textValue'>;
|
|
51
|
-
};
|
|
52
|
-
Element: HTMLLIElement;
|
|
53
|
-
}
|
|
54
|
-
declare class SetupListItem extends Modifier<SetupListItemModifierSignature> {
|
|
55
|
-
element?: HTMLLIElement;
|
|
56
|
-
manager?: ListManager;
|
|
57
|
-
/* eslint-disable-next-line */
|
|
58
|
-
constructor(owner: any, args: ArgsFor<SetupListItemModifierSignature>);
|
|
59
|
-
modify(element: HTMLLIElement, [manager]: [ListManager], args: ArgsFor<SetupListItemModifierSignature>['named']): void;
|
|
60
|
-
update: (args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
61
|
-
register: (el: HTMLLIElement, manager: ListManager, args: ArgsFor<SetupListItemModifierSignature>['named']) => void;
|
|
62
|
-
unregister: (instance: SetupListItem) => void;
|
|
63
|
-
mouseEnter: () => void;
|
|
64
|
-
mouseLeave: () => void;
|
|
65
|
-
}
|
|
66
|
-
export type { Node, NodeArgs, SelectionMode };
|
|
67
|
-
export { ListManager, SetupListItem };
|