@frontile/collections 0.18.0-alpha.9 → 0.18.0-beta.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/package.json +13 -13
- package/declarations/components/dropdown.d.ts +0 -99
- package/declarations/components/listbox/item.d.ts +0 -51
- package/declarations/components/listbox/listbox.d.ts +0 -75
- package/declarations/components/listbox.d.ts +0 -2
- package/declarations/components/simple-table/body.d.ts +0 -428
- package/declarations/components/simple-table/cell.d.ts +0 -427
- package/declarations/components/simple-table/column.d.ts +0 -419
- package/declarations/components/simple-table/footer.d.ts +0 -430
- package/declarations/components/simple-table/header.d.ts +0 -430
- package/declarations/components/simple-table/index.d.ts +0 -446
- package/declarations/components/simple-table/row.d.ts +0 -430
- package/declarations/components/table/cell-default.d.ts +0 -43
- package/declarations/components/table/cell-for.d.ts +0 -38
- package/declarations/components/table/cell-rendering-context.d.ts +0 -24
- package/declarations/components/table/checkbox.d.ts +0 -50
- package/declarations/components/table/column-visibility.d.ts +0 -416
- package/declarations/components/table/icons.d.ts +0 -11
- package/declarations/components/table/index.d.ts +0 -4
- package/declarations/components/table/sort-button.d.ts +0 -413
- package/declarations/components/table/table.d.ts +0 -555
- package/declarations/components/table/types.d.ts +0 -46
- package/declarations/components/table/utils.d.ts +0 -6
- package/declarations/components/table.d.ts +0 -2
- package/declarations/utils/listManager.d.ts +0 -74
- package/dist/listManager-CKsOd2zS.js +0 -438
- package/dist/listManager-CKsOd2zS.js.map +0 -1
- package/dist/listbox-CkGwpiDp.js +0 -203
- package/dist/listbox-CkGwpiDp.js.map +0 -1
- package/dist/listbox-Czwb-jUT.js +0 -203
- package/dist/listbox-Czwb-jUT.js.map +0 -1
- package/dist/table-3uScDwoD.js +0 -877
- package/dist/table-3uScDwoD.js.map +0 -1
- package/dist/table-DvivyvLm.js +0 -877
- package/dist/table-DvivyvLm.js.map +0 -1
- package/dist/table-SVR6fEqh.js +0 -877
- package/dist/table-SVR6fEqh.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/collections",
|
|
3
|
-
"version": "0.18.0-
|
|
3
|
+
"version": "0.18.0-beta.0",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Collections",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -52,28 +52,28 @@
|
|
|
52
52
|
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@embroider/addon-shim": "^1.
|
|
56
|
-
"frontile": "^0.18.0-
|
|
55
|
+
"@embroider/addon-shim": "^1.10.3",
|
|
56
|
+
"frontile": "^0.18.0-beta.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/core": "7.26.7",
|
|
60
60
|
"@babel/plugin-transform-private-methods": "^7.23.3",
|
|
61
61
|
"@babel/plugin-transform-typescript": "^7.26.7",
|
|
62
|
-
"@embroider/addon-dev": "
|
|
63
|
-
"@glimmer/component": "^2.
|
|
62
|
+
"@embroider/addon-dev": "8.3.1",
|
|
63
|
+
"@glimmer/component": "^2.1.1",
|
|
64
64
|
"@glimmer/tracking": "^1.1.2",
|
|
65
65
|
"@glint/core": "1.5.2",
|
|
66
66
|
"@glint/environment-ember-loose": "1.5.2",
|
|
67
67
|
"@glint/environment-ember-template-imports": "1.5.2",
|
|
68
|
-
"@glint/template": "^1.
|
|
69
|
-
"@rollup/plugin-babel": "^
|
|
70
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
71
|
-
"@tsconfig/ember": "^3.0.
|
|
68
|
+
"@glint/template": "^1.8.0",
|
|
69
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
70
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
71
|
+
"@tsconfig/ember": "^3.0.12",
|
|
72
72
|
"babel-plugin-ember-template-compilation": "^2.2.1",
|
|
73
|
-
"concurrently": "^
|
|
74
|
-
"decorator-transforms": "^2.
|
|
73
|
+
"concurrently": "^10.0.4",
|
|
74
|
+
"decorator-transforms": "^2.4.0",
|
|
75
75
|
"ember-source": "^6.1.0",
|
|
76
|
-
"rollup": "^4.
|
|
76
|
+
"rollup": "^4.62.4",
|
|
77
77
|
"rollup-plugin-copy": "^3.5.0",
|
|
78
78
|
"tailwindcss": "^3.4.17",
|
|
79
79
|
"typescript": "^5.7.3"
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"main": "addon-main.js",
|
|
98
98
|
"app-js": {}
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "e6b763eeb12c20938f90a46bda2a1a6e3a91f063"
|
|
101
101
|
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { type ButtonSignature } from '@frontile/buttons';
|
|
3
|
-
import { type ListboxSignature } from './listbox';
|
|
4
|
-
import { type PopoverSignature, type ContentSignature } from '@frontile/overlays';
|
|
5
|
-
import type { ModifierLike } from '@glint/template';
|
|
6
|
-
import type { ListboxItem } from './listbox/item';
|
|
7
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
interface DropdownArgs extends Pick<PopoverSignature['Args'], 'placement' | 'flipOptions' | 'middleware' | 'shiftOptions' | 'offsetOptions' | 'strategy' | 'didClose'> {
|
|
9
|
-
/**
|
|
10
|
-
* Whether the dropdown should close upon selecting an item.
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue true
|
|
13
|
-
*/
|
|
14
|
-
closeOnItemSelect?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface DropdownSignature {
|
|
17
|
-
Args: DropdownArgs;
|
|
18
|
-
Element: HTMLUListElement;
|
|
19
|
-
Blocks: {
|
|
20
|
-
default: [
|
|
21
|
-
{
|
|
22
|
-
Trigger: WithBoundArgs<typeof Trigger, 'anchor' | 'toggle' | 'trigger'>;
|
|
23
|
-
Menu: WithBoundArgs<typeof Menu, 'toggle' | 'Content' | 'closeOnItemSelect'>;
|
|
24
|
-
}
|
|
25
|
-
];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
declare class Dropdown extends Component<DropdownSignature> {
|
|
29
|
-
}
|
|
30
|
-
interface TriggerArgs extends Pick<ButtonSignature['Args'], 'appearance' | 'intent' | 'size' | 'isInGroup' | 'class'> {
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
anchor: ModifierLike<{
|
|
35
|
-
Element: HTMLElement;
|
|
36
|
-
}>;
|
|
37
|
-
trigger: ModifierLike<{
|
|
38
|
-
Element: HTMLElement;
|
|
39
|
-
}>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
toggle: () => void;
|
|
44
|
-
}
|
|
45
|
-
export interface TriggerSignature {
|
|
46
|
-
Args: TriggerArgs;
|
|
47
|
-
Element: HTMLButtonElement;
|
|
48
|
-
Blocks: {
|
|
49
|
-
default: [];
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
declare class Trigger extends Component<TriggerSignature> {
|
|
53
|
-
get anchor(): ModifierLike<{
|
|
54
|
-
Element: HTMLElement;
|
|
55
|
-
}>;
|
|
56
|
-
get trigger(): ModifierLike<{
|
|
57
|
-
Element: HTMLElement;
|
|
58
|
-
}>;
|
|
59
|
-
handleKeyDown: (event: KeyboardEvent) => void;
|
|
60
|
-
handleKeyUp: (event: KeyboardEvent) => void;
|
|
61
|
-
}
|
|
62
|
-
interface MenuArgs extends Pick<ListboxSignature<unknown>['Args'], 'appearance' | 'intent' | 'class' | 'selectionMode' | 'selectedKeys' | 'disabledKeys' | 'allowEmpty' | 'onSelectionChange'>, Pick<ContentSignature['Args'], 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'transition'> {
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
closeOnItemSelect?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
Content: PopoverSignature['Blocks']['default'][0]['Content'];
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
toggle: () => void;
|
|
75
|
-
onAction?: (key: string) => void;
|
|
76
|
-
/**
|
|
77
|
-
* @defaultValue true
|
|
78
|
-
*/
|
|
79
|
-
blockScroll?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* @defaultValue false
|
|
82
|
-
*/
|
|
83
|
-
disableFocusTrap?: boolean;
|
|
84
|
-
}
|
|
85
|
-
export interface MenuSignature {
|
|
86
|
-
Args: MenuArgs;
|
|
87
|
-
Element: HTMLUListElement;
|
|
88
|
-
Blocks: {
|
|
89
|
-
default: [item: WithBoundArgs<typeof ListboxItem, 'manager'>];
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
declare class Menu extends Component<MenuSignature> {
|
|
93
|
-
get classNames(): string;
|
|
94
|
-
onAction: (key: string) => void;
|
|
95
|
-
get blockScroll(): boolean;
|
|
96
|
-
get disableFocusTrap(): boolean;
|
|
97
|
-
}
|
|
98
|
-
export { Dropdown, type DropdownSignature };
|
|
99
|
-
export default Dropdown;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import type { ListManager, ListItem } from '../../utils/listManager';
|
|
3
|
-
export interface ListboxItemSignature {
|
|
4
|
-
Args: {
|
|
5
|
-
manager: ListManager;
|
|
6
|
-
key: string;
|
|
7
|
-
textValue?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
shortcut?: string;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
class?: string;
|
|
12
|
-
withDivider?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The appearance of each item
|
|
15
|
-
*
|
|
16
|
-
* @defaultValue 'default'
|
|
17
|
-
*/
|
|
18
|
-
appearance?: 'default' | 'outlined' | 'faded';
|
|
19
|
-
/**
|
|
20
|
-
* The intent of each item
|
|
21
|
-
*/
|
|
22
|
-
intent?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
23
|
-
type?: 'menu' | 'listbox';
|
|
24
|
-
};
|
|
25
|
-
Element: HTMLLIElement;
|
|
26
|
-
Blocks: {
|
|
27
|
-
default: [];
|
|
28
|
-
selectedIcon: [];
|
|
29
|
-
start: [];
|
|
30
|
-
end: [];
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
declare class ListboxItem extends Component<ListboxItemSignature> {
|
|
34
|
-
labelId: string;
|
|
35
|
-
listItem?: ListItem;
|
|
36
|
-
get manager(): ListManager;
|
|
37
|
-
get key(): string;
|
|
38
|
-
onRegister(item: ListItem): void;
|
|
39
|
-
onClick(): void;
|
|
40
|
-
get tabindex(): 0 | -1;
|
|
41
|
-
get classNames(): {
|
|
42
|
-
base: string;
|
|
43
|
-
descriptionWrapper: string;
|
|
44
|
-
label: string;
|
|
45
|
-
description: string;
|
|
46
|
-
selectedIcon: string;
|
|
47
|
-
shortcut: string;
|
|
48
|
-
};
|
|
49
|
-
get role(): "menuitem" | "option";
|
|
50
|
-
}
|
|
51
|
-
export { ListboxItem };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { ListManager, type SelectionMode, type ListItem } from '../../utils/listManager';
|
|
3
|
-
import { ListboxItem, type ListboxItemSignature } from './item';
|
|
4
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
5
|
-
type ItemCompBounded = WithBoundArgs<typeof ListboxItem, 'manager'>;
|
|
6
|
-
interface ListboxSignature<T> {
|
|
7
|
-
Args: {
|
|
8
|
-
/**
|
|
9
|
-
* @default 'listbox'
|
|
10
|
-
*/
|
|
11
|
-
type?: 'menu' | 'listbox';
|
|
12
|
-
selectionMode?: SelectionMode;
|
|
13
|
-
selectedKeys?: string[];
|
|
14
|
-
disabledKeys?: string[];
|
|
15
|
-
allowEmpty?: boolean;
|
|
16
|
-
items?: T[];
|
|
17
|
-
class?: string;
|
|
18
|
-
isKeyboardEventsEnabled?: boolean;
|
|
19
|
-
/** The element to add keyboard events to.
|
|
20
|
-
*
|
|
21
|
-
* This does not respect the option `iskeyboardEventsEnabled`.
|
|
22
|
-
* @defaultValue null
|
|
23
|
-
*/
|
|
24
|
-
elementToAddKeyboardEvents?: HTMLElement;
|
|
25
|
-
/**
|
|
26
|
-
* @edefaultValue 'frist'
|
|
27
|
-
*/
|
|
28
|
-
autoActivateMode?: 'none' | 'first' | 'selected';
|
|
29
|
-
onAction?: (key: string) => void;
|
|
30
|
-
onSelectionChange?: (key: string[]) => void;
|
|
31
|
-
onActiveItemChange?: (key?: string) => void;
|
|
32
|
-
/**
|
|
33
|
-
* The appearance of each item
|
|
34
|
-
*
|
|
35
|
-
* @defaultValue 'default'
|
|
36
|
-
*/
|
|
37
|
-
appearance?: 'default' | 'outlined' | 'faded';
|
|
38
|
-
/**
|
|
39
|
-
* The intent of each item
|
|
40
|
-
*/
|
|
41
|
-
intent?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
42
|
-
};
|
|
43
|
-
Element: HTMLUListElement;
|
|
44
|
-
Blocks: {
|
|
45
|
-
item: [{
|
|
46
|
-
item: T;
|
|
47
|
-
key: string;
|
|
48
|
-
label: string;
|
|
49
|
-
Item: ItemCompBounded;
|
|
50
|
-
}];
|
|
51
|
-
default: [{
|
|
52
|
-
Item: ItemCompBounded;
|
|
53
|
-
}];
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
declare class Listbox<T = unknown> extends Component<ListboxSignature<T>> {
|
|
57
|
-
listManager: ListManager;
|
|
58
|
-
handleKeyPress: (event: KeyboardEvent) => void;
|
|
59
|
-
handleKeyDown: (event: KeyboardEvent) => void;
|
|
60
|
-
onKeyPress: (event: KeyboardEvent) => void;
|
|
61
|
-
onKeyDown: (event: KeyboardEvent) => void;
|
|
62
|
-
setupEvents: import("ember-modifier").FunctionBasedModifier<{
|
|
63
|
-
Args: {
|
|
64
|
-
Positional: unknown[];
|
|
65
|
-
Named: {
|
|
66
|
-
elementToAddKeyboardEvents?: HTMLElement;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
Element: HTMLElement;
|
|
70
|
-
}>;
|
|
71
|
-
get classNames(): string;
|
|
72
|
-
get role(): "menu" | "listbox";
|
|
73
|
-
}
|
|
74
|
-
export { Listbox, ListboxItem, type ListboxSignature, type ListboxItemSignature, type ListItem };
|
|
75
|
-
export default Listbox;
|