frontile 0.18.5 → 0.18.7
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/-private/icons.d.ts +4 -0
- package/declarations/-private/icons.d.ts.map +1 -1
- package/declarations/-private/reveal-within.d.ts +19 -0
- package/declarations/-private/reveal-within.d.ts.map +1 -0
- package/declarations/components/collections/calendar/year-grid.d.ts.map +1 -1
- package/declarations/components/collections/dropdown/dropdown.d.ts +50 -53
- package/declarations/components/collections/dropdown/dropdown.d.ts.map +1 -1
- package/declarations/components/collections/listbox/item.d.ts +52 -1
- package/declarations/components/collections/listbox/item.d.ts.map +1 -1
- package/declarations/components/forms/date-input/segment-group.d.ts +2 -1
- package/declarations/components/forms/date-input/segment-group.d.ts.map +1 -1
- package/declarations/components/forms/date-input/segments.d.ts +3 -1
- package/declarations/components/forms/date-input/segments.d.ts.map +1 -1
- package/declarations/components/forms/date-picker/date-picker.d.ts +119 -1
- package/declarations/components/forms/date-picker/date-picker.d.ts.map +1 -1
- package/declarations/components/forms/date-picker/time-columns.d.ts +87 -0
- package/declarations/components/forms/date-picker/time-columns.d.ts.map +1 -0
- package/declarations/components/forms/date-picker/types.d.ts +28 -0
- package/declarations/components/forms/date-picker/types.d.ts.map +1 -1
- package/declarations/components/forms/select/native-mirror.d.ts +3 -2
- package/declarations/components/forms/select/native-mirror.d.ts.map +1 -1
- package/declarations/components/forms/select/select.d.ts +31 -2
- package/declarations/components/forms/select/select.d.ts.map +1 -1
- package/declarations/components/forms/select/types.d.ts +3 -2
- package/declarations/components/forms/select/types.d.ts.map +1 -1
- package/declarations/components/layout/app-layout-state.d.ts +32 -0
- package/declarations/components/layout/app-layout-state.d.ts.map +1 -0
- package/declarations/components/layout/app-layout.d.ts +954 -0
- package/declarations/components/layout/app-layout.d.ts.map +1 -0
- package/declarations/components/layout/aside-toggle.d.ts +55 -0
- package/declarations/components/layout/aside-toggle.d.ts.map +1 -0
- package/declarations/components/layout/aside.d.ts +761 -0
- package/declarations/components/layout/aside.d.ts.map +1 -0
- package/declarations/components/layout/bottom-nav-more.d.ts +123 -0
- package/declarations/components/layout/bottom-nav-more.d.ts.map +1 -0
- package/declarations/components/layout/bottom-nav.d.ts +60 -0
- package/declarations/components/layout/bottom-nav.d.ts.map +1 -0
- package/declarations/components/layout/context.d.ts +134 -0
- package/declarations/components/layout/context.d.ts.map +1 -0
- package/declarations/components/layout/index.d.ts +14 -0
- package/declarations/components/layout/index.d.ts.map +1 -0
- package/declarations/components/layout/main.d.ts +28 -0
- package/declarations/components/layout/main.d.ts.map +1 -0
- package/declarations/components/layout/menu-toggle.d.ts +58 -0
- package/declarations/components/layout/menu-toggle.d.ts.map +1 -0
- package/declarations/components/layout/nav-context.d.ts +45 -0
- package/declarations/components/layout/nav-context.d.ts.map +1 -0
- package/declarations/components/layout/nav-folder.d.ts +216 -0
- package/declarations/components/layout/nav-folder.d.ts.map +1 -0
- package/declarations/components/layout/nav-item.d.ts +220 -0
- package/declarations/components/layout/nav-item.d.ts.map +1 -0
- package/declarations/components/layout/nav-link.d.ts +67 -0
- package/declarations/components/layout/nav-link.d.ts.map +1 -0
- package/declarations/components/layout/navbar.d.ts +27 -0
- package/declarations/components/layout/navbar.d.ts.map +1 -0
- package/declarations/components/layout/page-header.d.ts +40 -0
- package/declarations/components/layout/page-header.d.ts.map +1 -0
- package/declarations/components/layout/sidebar-group.d.ts +41 -0
- package/declarations/components/layout/sidebar-group.d.ts.map +1 -0
- package/declarations/components/layout/sidebar-toggle.d.ts +71 -0
- package/declarations/components/layout/sidebar-toggle.d.ts.map +1 -0
- package/declarations/components/layout/sidebar.d.ts +904 -0
- package/declarations/components/layout/sidebar.d.ts.map +1 -0
- package/declarations/components/navigation/index.d.ts +1 -0
- package/declarations/components/navigation/index.d.ts.map +1 -1
- package/declarations/components/navigation/stepper/collapse-menu.d.ts +42 -0
- package/declarations/components/navigation/stepper/collapse-menu.d.ts.map +1 -0
- package/declarations/components/navigation/stepper/list.d.ts +24 -0
- package/declarations/components/navigation/stepper/list.d.ts.map +1 -0
- package/declarations/components/navigation/stepper/panel.d.ts +42 -0
- package/declarations/components/navigation/stepper/panel.d.ts.map +1 -0
- package/declarations/components/navigation/stepper/step.d.ts +123 -0
- package/declarations/components/navigation/stepper/step.d.ts.map +1 -0
- package/declarations/components/navigation/stepper/stepper.d.ts +947 -0
- package/declarations/components/navigation/stepper/stepper.d.ts.map +1 -0
- package/declarations/components/navigation/stepper.d.ts +6 -0
- package/declarations/components/navigation/stepper.d.ts.map +1 -0
- package/declarations/components/navigation/tab-nav/item.d.ts +2 -2
- package/declarations/components/navigation/tab-nav/item.d.ts.map +1 -1
- package/declarations/components/overlays/overlay.d.ts +17 -2
- package/declarations/components/overlays/overlay.d.ts.map +1 -1
- package/declarations/components/overlays/portal.d.ts.map +1 -1
- package/declarations/components/utilities/collapsible.d.ts +19 -2
- package/declarations/components/utilities/collapsible.d.ts.map +1 -1
- package/declarations/index.d.ts +1 -0
- package/declarations/index.d.ts.map +1 -1
- package/declarations/layout.d.ts +2 -0
- package/declarations/layout.d.ts.map +1 -0
- package/declarations/test-support.d.ts.map +1 -1
- package/declarations/utils/breakpoint.d.ts +16 -0
- package/declarations/utils/breakpoint.d.ts.map +1 -0
- package/declarations/utils/document-listener.d.ts +6 -0
- package/declarations/utils/document-listener.d.ts.map +1 -0
- package/declarations/utils/listManager.d.ts +7 -1
- package/declarations/utils/listManager.d.ts.map +1 -1
- package/declarations/utils/route-active.d.ts +34 -0
- package/declarations/utils/route-active.d.ts.map +1 -0
- package/declarations/utils/selection-indicator.d.ts +7 -4
- package/declarations/utils/selection-indicator.d.ts.map +1 -1
- package/dist/components/collections/calendar/header.js +1 -1
- package/dist/components/collections/calendar/year-grid.js +1 -30
- package/dist/components/collections/calendar/year-grid.js.map +1 -1
- package/dist/components/collections/dropdown/dropdown.js +172 -48
- package/dist/components/collections/dropdown/dropdown.js.map +1 -1
- package/dist/components/collections/listbox/item.js +36 -2
- package/dist/components/collections/listbox/item.js.map +1 -1
- package/dist/components/collections/table/column-visibility.js +1 -1
- package/dist/components/collections/table/sort-button.js +1 -1
- package/dist/components/disclosure/accordion/item.js +1 -1
- package/dist/components/forms/autocomplete.js +1 -1
- package/dist/components/forms/date-input/segment-group.js +1 -1
- package/dist/components/forms/date-input/segment-group.js.map +1 -1
- package/dist/components/forms/date-input/segments.js +1 -1
- package/dist/components/forms/date-input/segments.js.map +1 -1
- package/dist/components/forms/date-input.js +1 -1
- package/dist/components/forms/date-picker/date-picker.js +57 -6
- package/dist/components/forms/date-picker/date-picker.js.map +1 -1
- package/dist/components/forms/date-picker/end-content.js +1 -1
- package/dist/components/forms/date-picker/time-columns.js +238 -0
- package/dist/components/forms/date-picker/time-columns.js.map +1 -0
- package/dist/components/forms/index.js +1 -1
- package/dist/components/forms/native-select.js +1 -1
- package/dist/components/forms/select/end-content.js +1 -1
- package/dist/components/forms/select/native-mirror.js.map +1 -1
- package/dist/components/forms/select/select.js +24 -5
- package/dist/components/forms/select/select.js.map +1 -1
- package/dist/components/layout/app-layout-state.js +64 -0
- package/dist/components/layout/app-layout-state.js.map +1 -0
- package/dist/components/layout/app-layout.js +416 -0
- package/dist/components/layout/app-layout.js.map +1 -0
- package/dist/components/layout/aside-toggle.js +55 -0
- package/dist/components/layout/aside-toggle.js.map +1 -0
- package/dist/components/layout/aside.js +100 -0
- package/dist/components/layout/aside.js.map +1 -0
- package/dist/components/layout/bottom-nav-more.js +150 -0
- package/dist/components/layout/bottom-nav-more.js.map +1 -0
- package/dist/components/layout/bottom-nav.js +65 -0
- package/dist/components/layout/bottom-nav.js.map +1 -0
- package/dist/components/layout/context.js +89 -0
- package/dist/components/layout/context.js.map +1 -0
- package/dist/components/layout/index.js +14 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/layout/main.js +34 -0
- package/dist/components/layout/main.js.map +1 -0
- package/dist/components/layout/menu-toggle.js +61 -0
- package/dist/components/layout/menu-toggle.js.map +1 -0
- package/dist/components/layout/nav-context.js +85 -0
- package/dist/components/layout/nav-context.js.map +1 -0
- package/dist/components/layout/nav-folder.js +271 -0
- package/dist/components/layout/nav-folder.js.map +1 -0
- package/dist/components/layout/nav-item.js +192 -0
- package/dist/components/layout/nav-item.js.map +1 -0
- package/dist/components/layout/nav-link.js +58 -0
- package/dist/components/layout/nav-link.js.map +1 -0
- package/dist/components/layout/navbar.js +30 -0
- package/dist/components/layout/navbar.js.map +1 -0
- package/dist/components/layout/page-header.js +45 -0
- package/dist/components/layout/page-header.js.map +1 -0
- package/dist/components/layout/sidebar-group.js +41 -0
- package/dist/components/layout/sidebar-group.js.map +1 -0
- package/dist/components/layout/sidebar-toggle.js +82 -0
- package/dist/components/layout/sidebar-toggle.js.map +1 -0
- package/dist/components/layout/sidebar.js +249 -0
- package/dist/components/layout/sidebar.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/separator.js +1 -1
- package/dist/components/navigation/index.js +4 -0
- package/dist/components/navigation/index.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +1 -1
- package/dist/components/navigation/stepper/collapse-menu.js +128 -0
- package/dist/components/navigation/stepper/collapse-menu.js.map +1 -0
- package/dist/components/navigation/stepper/list.js +17 -0
- package/dist/components/navigation/stepper/list.js.map +1 -0
- package/dist/components/navigation/stepper/panel.js +26 -0
- package/dist/components/navigation/stepper/panel.js.map +1 -0
- package/dist/components/navigation/stepper/step.js +130 -0
- package/dist/components/navigation/stepper/step.js.map +1 -0
- package/dist/components/navigation/stepper/stepper.js +475 -0
- package/dist/components/navigation/stepper/stepper.js.map +1 -0
- package/dist/components/navigation/stepper.js +5 -0
- package/dist/components/navigation/stepper.js.map +1 -0
- package/dist/components/navigation/tab-nav/item.js +6 -40
- package/dist/components/navigation/tab-nav/item.js.map +1 -1
- package/dist/components/notifications/index.js +1 -1
- package/dist/components/notifications/notification-card.js +2 -2
- package/dist/components/notifications/notifications-container.js +1 -1
- package/dist/components/overlays/overlay.js +55 -7
- package/dist/components/overlays/overlay.js.map +1 -1
- package/dist/components/overlays/portal.js +11 -2
- package/dist/components/overlays/portal.js.map +1 -1
- package/dist/components/status/alert.js +1 -1
- package/dist/components/utilities/collapsible.js +33 -5
- package/dist/components/utilities/collapsible.js.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/{icons-DZ61nCzv.js → icons-55dthVFk.js} +14 -2
- package/dist/{icons-DZ61nCzv.js.map → icons-55dthVFk.js.map} +1 -1
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/dist/layout.js +14 -0
- package/dist/layout.js.map +1 -0
- package/dist/navigation.js +4 -0
- package/dist/navigation.js.map +1 -1
- package/dist/{notification-card-dz-eE6z9.js → notification-card-BPfDo-Gf.js} +2 -2
- package/dist/{notification-card-dz-eE6z9.js.map → notification-card-BPfDo-Gf.js.map} +1 -1
- package/dist/notifications.js +1 -1
- package/dist/reveal-within-BcqpOmSI.js +33 -0
- package/dist/reveal-within-BcqpOmSI.js.map +1 -0
- package/dist/test-support.js +3 -1
- package/dist/test-support.js.map +1 -1
- package/dist/utils/breakpoint.js +56 -0
- package/dist/utils/breakpoint.js.map +1 -0
- package/dist/utils/document-listener.js +10 -0
- package/dist/utils/document-listener.js.map +1 -0
- package/dist/utils/listManager.js +12 -2
- package/dist/utils/listManager.js.map +1 -1
- package/dist/utils/route-active.js +70 -0
- package/dist/utils/route-active.js.map +1 -0
- package/dist/utils/selection-indicator.js +25 -5
- package/dist/utils/selection-indicator.js.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aside.d.ts","sourceRoot":"","sources":["../../../src/components/layout/aside.gts"],"names":[],"mappings":"AAqKA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUT;IAED,IACI,UAAU,IAAI,MAAM,CAEvB;IAED,IACI,gBAAgB,IAAI,MAAM,CAI7B;CAiEF;AAED,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,CAAC;AACtD,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import NavItem from './nav-item';
|
|
3
|
+
import NavFolder from './nav-folder';
|
|
4
|
+
import { NavItemRegistry } from './nav-context';
|
|
5
|
+
import type { NavFolderContext } from './nav-context';
|
|
6
|
+
import type { ComponentLike, WithBoundArgs } from '@glint/template';
|
|
7
|
+
interface BottomNavMoreArgs {
|
|
8
|
+
/**
|
|
9
|
+
* The tab's label: its accessible name and tooltip.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue 'More'
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The tab's icon component. Defaults to a horizontal ellipsis.
|
|
16
|
+
*/
|
|
17
|
+
icon?: ComponentLike;
|
|
18
|
+
/**
|
|
19
|
+
* The sheet's accessible name, for both the dialog and the `nav` inside it.
|
|
20
|
+
* Defaults to the label.
|
|
21
|
+
*/
|
|
22
|
+
sheetLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Renders no tab. The tab is also not rendered when every item inside is
|
|
25
|
+
* hidden.
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue false
|
|
28
|
+
*/
|
|
29
|
+
isHidden?: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface BottomNavMoreSignature {
|
|
32
|
+
Args: BottomNavMoreArgs;
|
|
33
|
+
Blocks: {
|
|
34
|
+
/**
|
|
35
|
+
* The sheet's content. Yields `Item`, an inline `NavItem`, and `Folder`,
|
|
36
|
+
* an inline `NavFolder`. Following an item closes the sheet.
|
|
37
|
+
*
|
|
38
|
+
* The block is rendered twice: once hidden, always, to track which item
|
|
39
|
+
* is active or badged, and once in the open sheet. Avoid `id`s and side
|
|
40
|
+
* effects (modifiers, analytics, data loading) inside it.
|
|
41
|
+
*/
|
|
42
|
+
default: [
|
|
43
|
+
{
|
|
44
|
+
Item: WithBoundArgs<typeof NavItem, 'rail' | 'tooltipPlacement' | 'onActivate' | 'folder'>;
|
|
45
|
+
Folder: WithBoundArgs<typeof NavFolder, 'rail' | 'onActivate' | 'parent'>;
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The last tab of a `BottomNav`: it opens a bottom sheet holding more
|
|
52
|
+
* navigation, as inline items and folders. The tab is a button with
|
|
53
|
+
* `aria-haspopup="dialog"`; the sheet is a bottom `Drawer` with a `nav`
|
|
54
|
+
* inside. The tab shows active when an item inside is active and a dot
|
|
55
|
+
* when an item inside has a badge, even while the sheet is closed. It is
|
|
56
|
+
* never `aria-current`: the current page is the item, not the tab.
|
|
57
|
+
*
|
|
58
|
+
* The sheet takes exactly the content given; nothing overflows into it.
|
|
59
|
+
*/
|
|
60
|
+
declare class BottomNavMore extends Component<BottomNavMoreSignature> {
|
|
61
|
+
isOpen: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The registered items and folders, from the hidden copy of the block;
|
|
64
|
+
* see `NavItemRegistry`.
|
|
65
|
+
*/
|
|
66
|
+
registry: NavItemRegistry;
|
|
67
|
+
/**
|
|
68
|
+
* The open sheet's copy does not register: the hidden copy is always
|
|
69
|
+
* rendered and already reports the same items.
|
|
70
|
+
*/
|
|
71
|
+
sheetRegistry: NavFolderContext;
|
|
72
|
+
get hasActive(): boolean;
|
|
73
|
+
get hasBadge(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Hidden by `@isHidden`, or once something has registered and none of it
|
|
76
|
+
* is visible.
|
|
77
|
+
*/
|
|
78
|
+
get isTabHidden(): boolean;
|
|
79
|
+
/** A hidden tab has no sheet to show. */
|
|
80
|
+
get sheetOpen(): boolean;
|
|
81
|
+
get label(): string;
|
|
82
|
+
get sheetLabel(): string;
|
|
83
|
+
get icon(): ComponentLike;
|
|
84
|
+
get tabId(): string;
|
|
85
|
+
get sheetId(): string;
|
|
86
|
+
/** Only while the sheet exists, so it never points at nothing. */
|
|
87
|
+
get controlsId(): string | undefined;
|
|
88
|
+
toggle: () => void;
|
|
89
|
+
/** Handed to the sheet's items, so following one closes the sheet. */
|
|
90
|
+
closeSheet: () => void;
|
|
91
|
+
/**
|
|
92
|
+
* Closes the sheet when the tab goes away (every item hidden), so it does
|
|
93
|
+
* not reopen on its own when an item reappears. Deferred to after render,
|
|
94
|
+
* where changing state is safe.
|
|
95
|
+
*/
|
|
96
|
+
closeWhenHidden: import("ember-modifier").FunctionBasedModifier<{
|
|
97
|
+
Args: {
|
|
98
|
+
Positional: [boolean];
|
|
99
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
100
|
+
};
|
|
101
|
+
Element: HTMLElement;
|
|
102
|
+
}>;
|
|
103
|
+
/** Handed to the hidden copy's items, which are never clicked. */
|
|
104
|
+
ignore: () => void;
|
|
105
|
+
/**
|
|
106
|
+
* Focus goes back to the More tab when the sheet closes, however it
|
|
107
|
+
* closes. If the tab is gone, wherever focus was before.
|
|
108
|
+
*/
|
|
109
|
+
get focusTrapOptions(): {
|
|
110
|
+
setReturnFocus: (previous: HTMLElement | SVGElement) => HTMLElement | SVGElement;
|
|
111
|
+
};
|
|
112
|
+
get classes(): {
|
|
113
|
+
bottomNavMoreRegistry: string;
|
|
114
|
+
bottomNavMoreNav: string;
|
|
115
|
+
sheet: {
|
|
116
|
+
base: string;
|
|
117
|
+
body: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export { BottomNavMore, type BottomNavMoreSignature, type BottomNavMoreArgs };
|
|
122
|
+
export default BottomNavMore;
|
|
123
|
+
//# sourceMappingURL=bottom-nav-more.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-nav-more.d.ts","sourceRoot":"","sources":["../../../src/components/layout/bottom-nav-more.gts"],"names":[],"mappings":"AAuTA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAU3C,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEpE,UAAU,iBAAiB;IACzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,sBAAsB;IAC9B,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE;QACN;;;;;;;WAOG;QACH,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,aAAa,CACjB,OAAO,OAAO,EACd,MAAM,GAAG,kBAAkB,GAAG,YAAY,GAAG,QAAQ,CACtD,CAAC;gBACF,MAAM,EAAE,aAAa,CACnB,OAAO,SAAS,EAChB,MAAM,GAAG,YAAY,GAAG,QAAQ,CACjC,CAAC;aACH;SACF,CAAC;KACH,CAAC;CACH;AAOD;;;;;;;;;GASG;AACH,cAAM,aAAc,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IAClD,MAAM,UAAS;IAExB;;;OAGG;IACH,QAAQ,kBAA6B;IAErC;;;OAGG;IACH,aAAa,mBAAuB;IAEpC,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;;OAGG;IACH,IAAI,WAAW,IAAI,OAAO,CAMzB;IAED,yCAAyC;IACzC,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,IAAI,IAAI,IAAI,aAAa,CAExB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,kEAAkE;IAClE,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,MAAM,QAAO,IAAI,CAEf;IAEF,sEAAsE;IACtE,UAAU,QAAO,IAAI,CAEnB;IAEF;;;;OAIG;IACH,eAAe;;;;;;OAQZ;IAEH,kEAAkE;IAClE,MAAM,QAAO,IAAI,CAAO;IAExB;;;OAGG;IACH,IAAI,gBAAgB;mCAGW,WAAW,GAAG,UAAU;MAKtD;IAED,IACI,OAAO;;;;;;;MAWV;CAkHF;AAED,OAAO,EAAE,aAAa,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,CAAC;AAC9E,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import NavItem from './nav-item';
|
|
3
|
+
import BottomNavMore from './bottom-nav-more';
|
|
4
|
+
import type { AppLayoutContext } from './context';
|
|
5
|
+
import type Owner from '@ember/owner';
|
|
6
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
7
|
+
interface BottomNavArgs {
|
|
8
|
+
/**
|
|
9
|
+
* The navigation landmark's accessible name.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue 'Main'
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Supplied by `AppLayout`. Not part of the public API.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
layout?: AppLayoutContext;
|
|
20
|
+
}
|
|
21
|
+
interface BottomNavSignature {
|
|
22
|
+
Args: BottomNavArgs;
|
|
23
|
+
Blocks: {
|
|
24
|
+
default: [
|
|
25
|
+
{
|
|
26
|
+
/** A tab: `NavItem` as an icon with its label as a tooltip. */
|
|
27
|
+
Item: WithBoundArgs<typeof NavItem, 'layout' | 'tooltipPlacement'>;
|
|
28
|
+
/**
|
|
29
|
+
* The last tab: opens a bottom sheet with more items and folders.
|
|
30
|
+
* It shows active, or a dot, when an item inside is active or badged.
|
|
31
|
+
*/
|
|
32
|
+
More: typeof BottomNavMore;
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
};
|
|
36
|
+
Element: HTMLElement;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A bar of icon tabs along the bottom of the screen, for the primary
|
|
40
|
+
* navigation on small viewports. Rendered as a `nav` landmark. Each tab is a
|
|
41
|
+
* `NavItem` in its `icon` layout, so the label is its accessible name and
|
|
42
|
+
* shows as a tooltip. `More` adds a last tab that opens a bottom sheet of
|
|
43
|
+
* further navigation.
|
|
44
|
+
*
|
|
45
|
+
* On its own the bar is fixed to the bottom of the viewport and always
|
|
46
|
+
* rendered. Yielded by `AppLayout`, it renders only with
|
|
47
|
+
* `@mobileNav="bottom"` below the layout's breakpoint, as the grid's bottom
|
|
48
|
+
* row (sticky in `scrollMode="page"`); otherwise it renders nothing, and an
|
|
49
|
+
* open More sheet goes with it.
|
|
50
|
+
*/
|
|
51
|
+
declare class BottomNav extends Component<BottomNavSignature> {
|
|
52
|
+
constructor(owner: Owner, args: BottomNavArgs);
|
|
53
|
+
get label(): string;
|
|
54
|
+
/** Standalone: always. In a layout: only where it replaces the sidebar. */
|
|
55
|
+
get isShown(): boolean;
|
|
56
|
+
get classNames(): string;
|
|
57
|
+
}
|
|
58
|
+
export { BottomNav, type BottomNavSignature, type BottomNavArgs };
|
|
59
|
+
export default BottomNav;
|
|
60
|
+
//# sourceMappingURL=bottom-nav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-nav.d.ts","sourceRoot":"","sources":["../../../src/components/layout/bottom-nav.gts"],"names":[],"mappings":"AA6GA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,UAAU,aAAa;IACrB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,+DAA+D;gBAC/D,IAAI,EAAE,aAAa,CAAC,OAAO,OAAO,EAAE,QAAQ,GAAG,kBAAkB,CAAC,CAAC;gBACnE;;;mBAGG;gBACH,IAAI,EAAE,OAAO,aAAa,CAAC;aAC5B;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,cAAM,SAAU,SAAQ,SAAS,CAAC,kBAAkB,CAAC;gBACvC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa;IAQ7C,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,2EAA2E;IAC3E,IAAI,OAAO,IAAI,OAAO,CAGrB;IAED,IACI,UAAU,IAAI,MAAM,CAOvB;CA6BF;AAED,OAAO,EAAE,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,CAAC;AAClE,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { useStyles, type SlotsToClasses } from '@frontile/theme';
|
|
2
|
+
import type { AppLayoutSlots } from '@frontile/theme';
|
|
3
|
+
import type { AppLayoutState } from './app-layout-state';
|
|
4
|
+
export type AppLayoutStyles = ReturnType<ReturnType<typeof useStyles>['appLayout']>;
|
|
5
|
+
/**
|
|
6
|
+
* What `AppLayout` hands each part it yields. Internal: parts receive it as
|
|
7
|
+
* a bound `@layout` argument and fall back to standalone styles without it.
|
|
8
|
+
*/
|
|
9
|
+
export interface AppLayoutContext {
|
|
10
|
+
state: AppLayoutState;
|
|
11
|
+
mainId: string;
|
|
12
|
+
sidebarId: string;
|
|
13
|
+
/** The `MenuToggle`'s id, so the drawer can return focus to it. */
|
|
14
|
+
menuToggleId: string;
|
|
15
|
+
/** The mobile drawer's id. */
|
|
16
|
+
drawerId: string;
|
|
17
|
+
styles: AppLayoutStyles;
|
|
18
|
+
/** The variant props the layout's `styles` were built from. */
|
|
19
|
+
config: AppLayoutConfig;
|
|
20
|
+
classes?: SlotsToClasses<AppLayoutSlots>;
|
|
21
|
+
/** Whether the viewport is below `config.breakpoint` (tracked). */
|
|
22
|
+
readonly belowBreakpoint: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the sidebar is collapsed as drawn: `state.sidebarCollapsed`,
|
|
25
|
+
* except that a sidebar with `@collapsible="none"` never is (tracked).
|
|
26
|
+
*/
|
|
27
|
+
readonly sidebarCollapsed: boolean;
|
|
28
|
+
/** The aside's id, for `AsideToggle`'s `aria-controls`. */
|
|
29
|
+
asideId: string;
|
|
30
|
+
/** The aside drawer's id. */
|
|
31
|
+
asideDrawerId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the viewport is below `lg`, where the aside is a drawer. Fixed at
|
|
34
|
+
* `lg`, independent of `config.breakpoint` (tracked).
|
|
35
|
+
*/
|
|
36
|
+
readonly belowAsideBreakpoint: boolean;
|
|
37
|
+
/** Whether the layout's root is laid out right to left. */
|
|
38
|
+
isRtl(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Called by `Sidebar` so the layout can report its effective collapse.
|
|
41
|
+
* Returns the matching unregister function.
|
|
42
|
+
*/
|
|
43
|
+
registerSidebar(sidebar: RegisteredSidebar): () => void;
|
|
44
|
+
/** Whether a `Sidebar` is registered (tracked). */
|
|
45
|
+
readonly hasSidebar: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether `SidebarToggle` and `MenuToggle` render: there is a `Sidebar`,
|
|
48
|
+
* and the bottom bar is not standing in for it (tracked).
|
|
49
|
+
*/
|
|
50
|
+
readonly canToggleSidebar: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* How navigation is shown below the breakpoint: the sidebar in a `drawer`,
|
|
53
|
+
* or a `bottom` bar (`BottomNav`) with no sidebar (tracked).
|
|
54
|
+
*/
|
|
55
|
+
readonly mobileNav: 'drawer' | 'bottom';
|
|
56
|
+
/**
|
|
57
|
+
* Whether the bottom bar replaces the sidebar right now: `mobileNav` is
|
|
58
|
+
* `bottom` and the viewport is below the breakpoint. `Sidebar`,
|
|
59
|
+
* `MenuToggle` and `SidebarToggle` render nothing then, and `BottomNav`
|
|
60
|
+
* renders (tracked).
|
|
61
|
+
*/
|
|
62
|
+
readonly bottomNavMode: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Whether a registered `BottomNav` is shown: `bottomNavMode` with a
|
|
65
|
+
* `BottomNav` in the layout. Settles after the first render, like the
|
|
66
|
+
* registered sidebar (tracked).
|
|
67
|
+
*/
|
|
68
|
+
readonly bottomNavShown: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Called by `BottomNav` so the layout can give it a row and publish
|
|
71
|
+
* `--app-bottomnav-height`. Returns the matching unregister function.
|
|
72
|
+
*/
|
|
73
|
+
registerBottomNav(nav: object): () => void;
|
|
74
|
+
/**
|
|
75
|
+
* Whether an `Aside` is rendered in the layout. `AsideToggle` renders
|
|
76
|
+
* nothing without one. Settles after the first render, like the registered
|
|
77
|
+
* sidebar (tracked).
|
|
78
|
+
*/
|
|
79
|
+
readonly hasAside: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Called by `Aside` so the layout knows it has one. Returns the matching
|
|
82
|
+
* unregister function.
|
|
83
|
+
*/
|
|
84
|
+
registerAside(aside: object): () => void;
|
|
85
|
+
}
|
|
86
|
+
export interface RegisteredSidebar {
|
|
87
|
+
readonly collapsed: boolean;
|
|
88
|
+
readonly collapsible: 'icon' | 'offcanvas' | 'none';
|
|
89
|
+
readonly size: 'default' | 'rail';
|
|
90
|
+
}
|
|
91
|
+
export interface AppLayoutConfig {
|
|
92
|
+
variant: 'inset' | 'attached';
|
|
93
|
+
navbarPlacement: 'frame' | 'content';
|
|
94
|
+
breakpoint: 'sm' | 'md' | 'lg';
|
|
95
|
+
scrollMode: 'content' | 'page';
|
|
96
|
+
sidebarSide: 'start' | 'end';
|
|
97
|
+
}
|
|
98
|
+
/** Styles for a part rendered outside an `AppLayout`: no card chrome. */
|
|
99
|
+
export declare function standaloneStyles(): AppLayoutStyles;
|
|
100
|
+
export interface ControlledStateArgs {
|
|
101
|
+
sidebarCollapsed?: boolean;
|
|
102
|
+
onSidebarCollapsedChange?: (value: boolean) => void;
|
|
103
|
+
mobileSidebarOpen?: boolean;
|
|
104
|
+
onMobileSidebarOpenChange?: (value: boolean) => void;
|
|
105
|
+
asideOpen?: boolean;
|
|
106
|
+
onAsideOpenChange?: (value: boolean) => void;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* An `AppLayoutState` whose fields can each be controlled by an argument.
|
|
110
|
+
*
|
|
111
|
+
* A field is controlled when its argument is *passed* (checked with `in`, as
|
|
112
|
+
* `Tabs` does for `@value`); it then reads from the argument and a write only
|
|
113
|
+
* calls the matching `on…Change` callback. An uncontrolled field reads and
|
|
114
|
+
* writes the wrapped state, seeded from the `@default…` arguments, and calls
|
|
115
|
+
* the callback too.
|
|
116
|
+
*/
|
|
117
|
+
export declare class ControlledAppLayoutState implements AppLayoutState {
|
|
118
|
+
#private;
|
|
119
|
+
constructor(own: AppLayoutState, args: () => ControlledStateArgs);
|
|
120
|
+
get sidebarCollapsed(): boolean;
|
|
121
|
+
set sidebarCollapsed(value: boolean);
|
|
122
|
+
get mobileSidebarOpen(): boolean;
|
|
123
|
+
set mobileSidebarOpen(value: boolean);
|
|
124
|
+
get asideOpen(): boolean;
|
|
125
|
+
set asideOpen(value: boolean);
|
|
126
|
+
toggleSidebar: () => void;
|
|
127
|
+
collapseSidebar: () => void;
|
|
128
|
+
expandSidebar: () => void;
|
|
129
|
+
openMobileSidebar: () => void;
|
|
130
|
+
closeMobileSidebar: () => void;
|
|
131
|
+
toggleAside: () => void;
|
|
132
|
+
closeAside: () => void;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/layout/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,UAAU,CACtC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,WAAW,CAAC,CAC1C,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/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,aAAa,QAAO,IAAI,CAEtB;IAEF,eAAe,QAAO,IAAI,CAExB;IAEF,aAAa,QAAO,IAAI,CAEtB;IAEF,iBAAiB,QAAO,IAAI,CAE1B;IAEF,kBAAkB,QAAO,IAAI,CAE3B;IAEF,WAAW,QAAO,IAAI,CAEpB;IAEF,UAAU,QAAO,IAAI,CAEnB;CACH"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { AppLayoutState, type AppLayoutStateInitial } from './app-layout-state';
|
|
2
|
+
export { AppLayout, type AppLayoutSignature, type AppLayoutArgs } from './app-layout';
|
|
3
|
+
export { Aside, type AsideSignature, type AsideArgs } from './aside';
|
|
4
|
+
export { AsideToggle, type AsideToggleSignature, type AsideToggleArgs } from './aside-toggle';
|
|
5
|
+
export { BottomNav, type BottomNavSignature, type BottomNavArgs } from './bottom-nav';
|
|
6
|
+
export { BottomNavMore, type BottomNavMoreSignature, type BottomNavMoreArgs } from './bottom-nav-more';
|
|
7
|
+
export { Main, type MainSignature, type MainArgs } from './main';
|
|
8
|
+
export { MenuToggle, type MenuToggleSignature, type MenuToggleArgs } from './menu-toggle';
|
|
9
|
+
export { Navbar, type NavbarSignature, type NavbarArgs } from './navbar';
|
|
10
|
+
export { PageHeader, type PageHeaderSignature, type PageHeaderArgs } from './page-header';
|
|
11
|
+
export { Sidebar, type SidebarSignature, type SidebarArgs } from './sidebar';
|
|
12
|
+
export { SidebarGroup, type SidebarGroupSignature, type SidebarGroupArgs } from './sidebar-group';
|
|
13
|
+
export { SidebarToggle, type SidebarToggleSignature, type SidebarToggleArgs } from './sidebar-toggle';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,aAAa,EACb,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjE,OAAO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,aAAa,EACb,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { type AppLayoutContext } from './context';
|
|
3
|
+
interface MainArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Supplied by `AppLayout`. Not part of the public API.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
layout?: AppLayoutContext;
|
|
10
|
+
}
|
|
11
|
+
interface MainSignature {
|
|
12
|
+
Args: MainArgs;
|
|
13
|
+
Blocks: {
|
|
14
|
+
default: [];
|
|
15
|
+
};
|
|
16
|
+
Element: HTMLElement;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The page's `main` landmark. Inside `AppLayout` it fills the content area
|
|
20
|
+
* and, by default, scrolls on its own; the skip link moves focus here.
|
|
21
|
+
*/
|
|
22
|
+
declare class Main extends Component<MainSignature> {
|
|
23
|
+
get id(): string;
|
|
24
|
+
get classNames(): string;
|
|
25
|
+
}
|
|
26
|
+
export { Main, type MainSignature, type MainArgs };
|
|
27
|
+
export default Main;
|
|
28
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/layout/main.gts"],"names":[],"mappings":"AAkDA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEpE,UAAU,QAAQ;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;GAGG;AACH,cAAM,IAAK,SAAQ,SAAS,CAAC,aAAa,CAAC;IACzC,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IACI,UAAU,IAAI,MAAM,CAGvB;CAwBF;AAED,OAAO,EAAE,IAAI,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,CAAC;AACnD,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { AppLayoutState } from './app-layout-state';
|
|
3
|
+
import { type AppLayoutContext } from './context';
|
|
4
|
+
interface MenuToggleArgs {
|
|
5
|
+
/**
|
|
6
|
+
* The accessible name of the button.
|
|
7
|
+
*
|
|
8
|
+
* @defaultValue 'Open menu'
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The id of the sidebar this button opens, for `aria-controls`. Inside an
|
|
13
|
+
* `AppLayout` it defaults to the layout's sidebar.
|
|
14
|
+
*/
|
|
15
|
+
controls?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The state whose `mobileSidebarOpen` the button sets. Only used outside an
|
|
18
|
+
* `AppLayout`; inside one the layout's state is used.
|
|
19
|
+
*/
|
|
20
|
+
state?: AppLayoutState;
|
|
21
|
+
/**
|
|
22
|
+
* Supplied by `AppLayout`. Not part of the public API.
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
layout?: AppLayoutContext;
|
|
27
|
+
}
|
|
28
|
+
interface MenuToggleSignature {
|
|
29
|
+
Args: MenuToggleArgs;
|
|
30
|
+
Blocks: {
|
|
31
|
+
/** Replaces the default icon with your own content. */
|
|
32
|
+
default: [];
|
|
33
|
+
};
|
|
34
|
+
Element: HTMLButtonElement;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The mobile menu button: opens the sidebar drawer. It is shown only below
|
|
38
|
+
* the layout's `@breakpoint`, typically at the top-left of the navbar. A
|
|
39
|
+
* `SidebarToggle` also opens the drawer below the breakpoint, so a layout can
|
|
40
|
+
* use either one there; with both in the navbar, both show on narrow
|
|
41
|
+
* screens. Closing the drawer returns focus to the button that opened it.
|
|
42
|
+
* With `@mobileNav="bottom"` there is no drawer, so below the breakpoint it
|
|
43
|
+
* renders nothing; nor does it in a layout with no `Sidebar`.
|
|
44
|
+
*/
|
|
45
|
+
declare class MenuToggle extends Component<MenuToggleSignature> {
|
|
46
|
+
fallbackState: AppLayoutState;
|
|
47
|
+
get state(): AppLayoutState;
|
|
48
|
+
get label(): string;
|
|
49
|
+
get expanded(): 'true' | 'false';
|
|
50
|
+
/** The drawer, which only exists while it is open. */
|
|
51
|
+
get controls(): string | undefined;
|
|
52
|
+
get shown(): boolean;
|
|
53
|
+
get classNames(): string;
|
|
54
|
+
open: () => void;
|
|
55
|
+
}
|
|
56
|
+
export { MenuToggle, type MenuToggleSignature, type MenuToggleArgs };
|
|
57
|
+
export default MenuToggle;
|
|
58
|
+
//# sourceMappingURL=menu-toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-toggle.d.ts","sourceRoot":"","sources":["../../../src/components/layout/menu-toggle.gts"],"names":[],"mappings":"AAoHA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEpE,UAAU,cAAc;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE;QACN,uDAAuD;QACvD,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,cAAM,UAAW,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACrD,aAAa,iBAAwB;IAErC,IAAI,KAAK,IAAI,cAAc,CAE1B;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,QAAQ,IAAI,MAAM,GAAG,OAAO,CAE/B;IAED,sDAAsD;IACtD,IAAI,QAAQ,IAAI,MAAM,GAAG,SAAS,CAMjC;IAED,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IAAI,UAAU,IAAI,MAAM,CAKvB;IAED,IAAI,QAAO,IAAI,CAEb;CA0CH;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,CAAC;AACrE,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a `NavFolder` (or a `BottomNav.More`) reads from each of its items.
|
|
3
|
+
* All are getters, so the container always sees an item's current state,
|
|
4
|
+
* router-derived active included. A folder registered with a parent reports
|
|
5
|
+
* the same three for its children.
|
|
6
|
+
*/
|
|
7
|
+
export interface NavItemHandle {
|
|
8
|
+
readonly isActive: boolean;
|
|
9
|
+
readonly isHidden: boolean;
|
|
10
|
+
/** Whether a badge is shown: never for a hidden item. */
|
|
11
|
+
readonly hasBadge: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The part of a `NavFolder` its items talk to. An item registers itself when
|
|
15
|
+
* it is created and calls the returned function when it is destroyed.
|
|
16
|
+
* `BottomNav.More` implements it too, for the items and folders in its sheet.
|
|
17
|
+
*/
|
|
18
|
+
export interface NavFolderContext {
|
|
19
|
+
registerItem(item: NavItemHandle): () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The items registered with a `NavFolder` or a `BottomNav.More`, and what
|
|
23
|
+
* the container derives from them.
|
|
24
|
+
*
|
|
25
|
+
* Items register while they render, so the set is not tracked: reading it
|
|
26
|
+
* during render and then changing it in the same render would trip
|
|
27
|
+
* Glimmer's backtracking assertion. `version` is bumped after render
|
|
28
|
+
* instead, once per batch, which re-runs everything that reads it.
|
|
29
|
+
*/
|
|
30
|
+
export declare class NavItemRegistry {
|
|
31
|
+
#private;
|
|
32
|
+
version: number;
|
|
33
|
+
/** `owner` is the container; nothing is bumped once it is destroyed. */
|
|
34
|
+
constructor(owner: object);
|
|
35
|
+
registerItem: (item: NavItemHandle) => (() => void);
|
|
36
|
+
/** What the container's items register with. */
|
|
37
|
+
readonly context: NavFolderContext;
|
|
38
|
+
get items(): NavItemHandle[];
|
|
39
|
+
get visibleItems(): NavItemHandle[];
|
|
40
|
+
/** A hidden item never makes the container active. */
|
|
41
|
+
get hasActive(): boolean;
|
|
42
|
+
/** A hidden item never badges the container. */
|
|
43
|
+
get hasBadge(): boolean;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=nav-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav-context.d.ts","sourceRoot":"","sources":["../../../src/components/layout/nav-context.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,IAAI,CAAC;CAC/C;AAED;;;;;;;;GAQG;AACH,qBAAa,eAAe;;IAIjB,OAAO,SAAK;IAErB,wEAAwE;gBAC5D,KAAK,EAAE,MAAM;IAiBzB,YAAY,GAAI,MAAM,aAAa,KAAG,CAAC,MAAM,IAAI,CAAC,CAOhD;IAEF,gDAAgD;IAChD,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAuC;IAEzE,IAAI,KAAK,IAAI,aAAa,EAAE,CAK3B;IAED,IACI,YAAY,IAAI,aAAa,EAAE,CAElC;IAED,sDAAsD;IACtD,IACI,SAAS,IAAI,OAAO,CAEvB;IAED,gDAAgD;IAChD,IACI,QAAQ,IAAI,OAAO,CAEtB;CACF"}
|