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":"stepper.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/stepper/stepper.gts"],"names":[],"mappings":"AA+sBA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAO3C,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,iB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BF;;;;OAIG;IACH,YAAY;;;;;;OAkBT;IAEH,QAAQ,GAAI,QAAQ,UAAU,CAAC,CAAC,CAAC,KAAG,IAAI,CAGtC;IAEF,UAAU,GAAI,QAAQ,UAAU,CAAC,CAAC,CAAC,KAAG,IAAI,CAGxC;IAgBF,eAAe,GAAI,SAAS,WAAW,KAAG,IAAI,CAM5C;IAEF,SAAS,GAAI,OAAO,CAAC,KAAG,MAAM,GAAG,SAAS,CACY;IAEtD,UAAU,GAAI,OAAO,CAAC,KAAG,MAAM,CAO7B;IAOF,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CAuKrC;AAED,OAAO,EACL,OAAO,EACP,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,CAAC;AACF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/stepper.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import type RouterService from '@ember/routing/router-service';
|
|
3
3
|
import type { ModifierLike } from '@glint/template';
|
|
4
|
+
import { normalizeRouteArgs } from '../../../utils/route-active';
|
|
4
5
|
interface TabNavItemArgs {
|
|
5
6
|
/**
|
|
6
7
|
* Renders a `LinkTo` for this route and derives the active state from the
|
|
@@ -57,8 +58,7 @@ interface TabNavItemSignature {
|
|
|
57
58
|
}
|
|
58
59
|
declare class TabNavItem extends Component<TabNavItemSignature> {
|
|
59
60
|
router: RouterService;
|
|
60
|
-
get
|
|
61
|
-
get query(): Record<string, unknown>;
|
|
61
|
+
get routeArgs(): ReturnType<typeof normalizeRouteArgs>;
|
|
62
62
|
get isActive(): boolean;
|
|
63
63
|
get isDisabled(): boolean;
|
|
64
64
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/tab-nav/item.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/tab-nav/item.gts"],"names":[],"mappings":"AA2IA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAgB,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAE/E,UAAU,cAAc;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,qCAAqC;IACrC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IAEnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhC,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,EAAE,YAAY,CAAC;QACtB,OAAO,EAAE,WAAW,CAAC;QACrB,IAAI,EAAE;YAAE,UAAU,EAAE,CAAC,OAAO,CAAC,CAAA;SAAE,CAAC;KACjC,CAAC,CAAC;CACJ;AAED,UAAU,mBAAmB;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;IACxB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,cAAM,UAAW,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IAKpC,MAAM,EAAE,aAAa,CAAC;IAEvC,IACI,SAAS,IAAI,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAErD;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;;;;;;;;;;OAWG;IACH,IAAI,WAAW,IAAI,OAAO,CAEzB;CAuDF;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,CAAC;AACrE,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { type FocusTrapModifierSignature } from 'ember-focus-trap';
|
|
3
|
-
import { createFocusTrap } from 'focus-trap';
|
|
3
|
+
import { createFocusTrap, type FocusTrap } from 'focus-trap';
|
|
4
4
|
import { type BackdropSignature } from './backdrop';
|
|
5
5
|
import { type PortalSignature } from './portal';
|
|
6
6
|
import type Owner from '@ember/owner';
|
|
@@ -149,6 +149,7 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
149
149
|
focusedElement: Element | null | undefined;
|
|
150
150
|
mouseDownContentElement: EventTarget | null;
|
|
151
151
|
didLockBodyScroll: boolean;
|
|
152
|
+
nestedPortalObserver: MutationObserver | undefined;
|
|
152
153
|
cancelPaintWait: (() => void) | undefined;
|
|
153
154
|
constructor(owner: Owner, args: Args);
|
|
154
155
|
willDestroy(): void;
|
|
@@ -188,7 +189,21 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
188
189
|
* say so by passing those two as `false`.
|
|
189
190
|
*/
|
|
190
191
|
get focusTrapOptions(): FocusTrapOptions;
|
|
191
|
-
|
|
192
|
+
/**
|
|
193
|
+
* The trap covers the content and the portals nested in this overlay's
|
|
194
|
+
* portal, the same ones `handleOutsideClick` doesn't count as outside.
|
|
195
|
+
*
|
|
196
|
+
* With the content alone as its container, the trap took a press in a
|
|
197
|
+
* nested portal for an outside click and deactivated: from then on Tab
|
|
198
|
+
* walked out of the Drawer. A touch on a Select's list also sent the focus
|
|
199
|
+
* back to where it was when the trap activated, out of the Select's
|
|
200
|
+
* filter. As containers, nested overlays are also part of the Tab cycle,
|
|
201
|
+
* after the content.
|
|
202
|
+
*
|
|
203
|
+
* Nested overlays open and close while this one stays open, so a
|
|
204
|
+
* MutationObserver on the portal keeps the containers current.
|
|
205
|
+
*/
|
|
206
|
+
createFocusTrap: (...[element, options]: Parameters<typeof createFocusTrap>) => FocusTrap;
|
|
192
207
|
get classes(): string;
|
|
193
208
|
get customContentModifier(): ModifierLike<{
|
|
194
209
|
Element: HTMLElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/overlay.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/overlay.gts"],"names":[],"mappings":"AAoqBA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAO3C,OAAO,EAAa,KAAK,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAY,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAQ9D,OAAO,EAA4B,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDA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AgB,IAAI,OAAO,CAE9B;IAED,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED,IAAI,SAAS,IAAI,OAAO,CAMvB;IAED,IAAI,QAAQ,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAKhD;IAED,IAAI,kBAAkB,IAAI,OAAO,CAKhC;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,IAAI,gBAAgB,CAMvC;IAED;;;;;;;;;;;;;OAaG;IACH,eAAe,GACb,GAAG,oBAAoB,UAAU,CAAC,OAAO,eAAe,CAAC,KACxD,SAAS,CAsBV;IAEF,IAAI,OAAO,WAQV;IAED,IAAI,qBAAqB;iBA/SuB,WAAW;;;;;;;OAqT1D;IAID,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC;IAIlD,IAAI,kBAAkB;;;;;;;;;;;;MAIrB;IAED,IAAI,UAAU;;;;;;;;;;;;MAWb;CAkDF;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/portal.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/portal.gts"],"names":[],"mappings":"AAiNA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAqC3C,UAAU,eAAe;IACvB,IAAI,EAAE;QACJ;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;;;;;;WAOG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAE1B;;WAEG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAehE;AAsCD,cAAM,MAAO,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC7C,EAAE,SAAiB;IACnB,GAAG,kBAAgB;IAEnB,IAAI,kBAAkB,IAAI,OAAO,GAAG,IAAI,CA8CvC;IAED,IAAI,YAAY,IAAI,OAAO,GAAG,IAAI,CAOjC;IAED,WAAW,GAAI,QAAQ,OAAO,GAAG,IAAI,KAAG,OAAO,CAU7C;CA+DH;AAED,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAE,CAAC;AAC1D,eAAe,MAAM,CAAC"}
|
|
@@ -15,6 +15,17 @@ interface CollapsibleArgs {
|
|
|
15
15
|
* @defaultValue 0
|
|
16
16
|
*/
|
|
17
17
|
initialHeight?: string;
|
|
18
|
+
/**
|
|
19
|
+
* When true, an `@isOpen` change that lands before the first animation
|
|
20
|
+
* frame after the element is inserted is applied without a transition, as
|
|
21
|
+
* if it had been the initial state. For callers that only learn their open
|
|
22
|
+
* state right after the first render (e.g. once their children have
|
|
23
|
+
* registered), so the content does not visibly slide open on load. Later
|
|
24
|
+
* changes animate as usual. Read once, when the element is inserted.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue false
|
|
27
|
+
*/
|
|
28
|
+
instantUntilPainted?: boolean;
|
|
18
29
|
}
|
|
19
30
|
interface CollapsibleSignature {
|
|
20
31
|
Args: CollapsibleArgs;
|
|
@@ -35,6 +46,12 @@ declare class Collapsible extends Component<CollapsibleSignature> {
|
|
|
35
46
|
*/
|
|
36
47
|
get initialHeight(): string | undefined;
|
|
37
48
|
get styles(): ReturnType<typeof safeStyles>;
|
|
49
|
+
/**
|
|
50
|
+
* False from insert until the first animation frame, while
|
|
51
|
+
* `@instantUntilPainted` is set; changes in that window skip the transition.
|
|
52
|
+
*/
|
|
53
|
+
isPainted: boolean;
|
|
54
|
+
paintFrame?: number;
|
|
38
55
|
hasSetupUpdate: boolean;
|
|
39
56
|
update: import("ember-modifier").FunctionBasedModifier<{
|
|
40
57
|
Args: {
|
|
@@ -64,7 +81,7 @@ declare class Collapsible extends Component<CollapsibleSignature> {
|
|
|
64
81
|
onTransitionEnd: (event: TransitionEvent) => void;
|
|
65
82
|
heightTransition(duration: number): string;
|
|
66
83
|
opacityTransition(duration: number): string;
|
|
67
|
-
expand(element: HTMLElement): void;
|
|
84
|
+
expand(element: HTMLElement, instant?: boolean): void;
|
|
68
85
|
/**
|
|
69
86
|
* The geometry a collapsed panel ends at.
|
|
70
87
|
*
|
|
@@ -74,7 +91,7 @@ declare class Collapsible extends Component<CollapsibleSignature> {
|
|
|
74
91
|
* drift apart.
|
|
75
92
|
*/
|
|
76
93
|
applyClosedState(element: HTMLElement): void;
|
|
77
|
-
contract(element: HTMLElement): void;
|
|
94
|
+
contract(element: HTMLElement, instant?: boolean): void;
|
|
78
95
|
}
|
|
79
96
|
export { Collapsible, type CollapsibleSignature };
|
|
80
97
|
export default Collapsible;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/utilities/collapsible.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/utilities/collapsible.gts"],"names":[],"mappings":"AAyYA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAqCtC,UAAU,eAAe;IACvB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EA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4 +7,5 @@ export * from './utilities';
|
|
|
7
7
|
export * from './navigation';
|
|
8
8
|
export * from './disclosure';
|
|
9
9
|
export { NotificationsContainer, NotificationCard, type NotificationsContainerSignature, type NotificationCardSignature, type NotificationsService, type NotificationOptions, type NotificationContent, type NotificationStatus, type NotificationAppearance, type NotificationUpdate, type CustomAction, type PromiseMessage, type PromiseNotificationOptions, type DefaultConfig } from './notifications';
|
|
10
|
+
export * from './layout';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-support.d.ts","sourceRoot":"","sources":["../src/test-support.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,CAC/B,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAgB,iBAAiB,CAC/B,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAEf;
|
|
1
|
+
{"version":3,"file":"test-support.d.ts","sourceRoot":"","sources":["../src/test-support.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,CAC/B,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAgB,iBAAiB,CAC/B,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CAEf;AAqDD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,CAS/D;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,IAAI,GAAG,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,IAAI,GAAG,MAAM,EACpB,GAAG,EAAE,IAAI,GAAG,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAGf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The layout breakpoints, matching Tailwind's `sm`, `md` and `lg` screens.
|
|
3
|
+
*/
|
|
4
|
+
export type Breakpoint = 'sm' | 'md' | 'lg';
|
|
5
|
+
/**
|
|
6
|
+
* Whether the viewport is narrower than `breakpoint`. `false` where
|
|
7
|
+
* `matchMedia` is unavailable, so callers fall back to the desktop layout.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isBelowBreakpoint(breakpoint: Breakpoint): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Calls `callback` with the new answer whenever the viewport crosses
|
|
12
|
+
* `breakpoint`. Returns a function that stops watching. A no-op where
|
|
13
|
+
* `matchMedia` is unavailable.
|
|
14
|
+
*/
|
|
15
|
+
export declare function watchBreakpoint(breakpoint: Breakpoint, callback: (below: boolean) => void): () => void;
|
|
16
|
+
//# sourceMappingURL=breakpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../src/utils/breakpoint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AA2B5C;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GACjC,MAAM,IAAI,CAiBZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-listener.d.ts","sourceRoot":"","sources":["../../src/utils/document-listener.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,cAAc,IAAI,QAAQ,GAAG,SAAS,CAErD"}
|
|
@@ -46,6 +46,12 @@ declare class ListItem {
|
|
|
46
46
|
get isActiveUntracked(): boolean;
|
|
47
47
|
get isSelectedUntracked(): boolean;
|
|
48
48
|
get isDisabledUntracked(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Disabled by the item itself (`setupItem`'s `isDisabled`), on top of the
|
|
51
|
+
* manager's `disabledKeys`. Fixed at registration like `item`: a change
|
|
52
|
+
* re-runs `setupItem`, which registers a fresh item.
|
|
53
|
+
*/
|
|
54
|
+
isDisabledByItem: boolean;
|
|
49
55
|
constructor(el: HTMLLIElement | HTMLOptionElement, args: ListItemRegistration);
|
|
50
56
|
}
|
|
51
57
|
interface ListManagerArgs {
|
|
@@ -151,7 +157,7 @@ declare class ListManager {
|
|
|
151
157
|
setupItem: import("ember-modifier").FunctionBasedModifier<{
|
|
152
158
|
Args: {
|
|
153
159
|
Positional: unknown[];
|
|
154
|
-
Named: Pick<ListItemArgs, "item" | "key" | "textValue"> & {
|
|
160
|
+
Named: Pick<ListItemArgs, "isDisabled" | "item" | "key" | "textValue"> & {
|
|
155
161
|
onRegister?: (item: ListItem) => void;
|
|
156
162
|
disableEvents?: boolean;
|
|
157
163
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listManager.d.ts","sourceRoot":"","sources":["../../src/utils/listManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAExD,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AACpD,KAAK,gBAAgB,GAAG,MA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AED,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EACjB,CAAC;AAIF,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC;AAC1E,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type RouterService from '@ember/routing/router-service';
|
|
2
|
+
export interface RouteActiveArgs {
|
|
3
|
+
/** The route name. Without it nothing is derived from the router. */
|
|
4
|
+
route?: string;
|
|
5
|
+
/** A single dynamic segment for `route`. */
|
|
6
|
+
model?: unknown;
|
|
7
|
+
/** Dynamic segments for `route`. Wins over `model`. */
|
|
8
|
+
models?: unknown[];
|
|
9
|
+
/** Query params for `route`. */
|
|
10
|
+
query?: Record<string, unknown>;
|
|
11
|
+
/** Explicit override. Always wins over anything derived from the router. */
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Normalizes the dynamic segments and query params given to a route link.
|
|
16
|
+
*/
|
|
17
|
+
export declare function normalizeRouteArgs(args: Pick<RouteActiveArgs, 'model' | 'models' | 'query'>): {
|
|
18
|
+
models: unknown[];
|
|
19
|
+
query: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Whether a route link is active. An explicit `isActive` wins; without a
|
|
23
|
+
* `route` the answer is `false`; otherwise the router decides.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isRouteActive(router: RouterService, args: RouteActiveArgs): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* `isRouteActive` for a router that is resolved lazily. `getRouter` runs only
|
|
28
|
+
* when the router is actually needed -- `route` given and `isActive` not -- so
|
|
29
|
+
* a link that never routes never touches `service:router`. Shared by
|
|
30
|
+
* `NavLink` and the handle `NavItem` registers with a folder, so both always
|
|
31
|
+
* agree on what is active.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isLinkActive(args: RouteActiveArgs, getRouter: () => RouterService): boolean;
|
|
34
|
+
//# sourceMappingURL=route-active.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-active.d.ts","sourceRoot":"","sources":["../../src/utils/route-active.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uDAAuD;IACvD,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,GACxD;IAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CASvD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,eAAe,GACpB,OAAO,CA8BT;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,aAAa,GAC7B,OAAO,CAST"}
|
|
@@ -38,10 +38,13 @@ declare class SelectionIndicator {
|
|
|
38
38
|
*/
|
|
39
39
|
claim(element: HTMLElement): void;
|
|
40
40
|
/**
|
|
41
|
-
* Releases `element` if it is still the target
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* target.
|
|
41
|
+
* Releases one claim on `element` if it is still the target, and gives the
|
|
42
|
+
* target up once no claim on it is left. When selection moves backwards,
|
|
43
|
+
* the incoming item's setup runs before the outgoing item's teardown, and
|
|
44
|
+
* without the target guard that teardown would wipe the new target. When a
|
|
45
|
+
* modifier is reinstalled on the same element, its new claim lands before
|
|
46
|
+
* the old one's release, and without the count that release would wipe the
|
|
47
|
+
* live claim.
|
|
45
48
|
*/
|
|
46
49
|
release(element: HTMLElement): void;
|
|
47
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-indicator.d.ts","sourceRoot":"","sources":["../../src/utils/selection-indicator.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,eAAe,qBAAqB,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,cAAM,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"selection-indicator.d.ts","sourceRoot":"","sources":["../../src/utils/selection-indicator.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,eAAe,qBAAqB,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,cAAM,kBAAkB;;IAuBtB;;;;OAIG;IACH,cAAc;;;;;;OAmCX;IAEH;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAajC;;;;;;;;OAQG;IACH,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAuBnC;;;;OAIG;IACH,WAAW;;;;;;OAQR;CAkFJ;AAED;;;;;;GAMG;AACH,iBAAS,kBAAkB,IAAI,kBAAkB,CAEhD;AAED,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,CAAC;AAC/C,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { on } from '@ember/modifier';
|
|
3
|
-
import { c as ChevronRightIcon, a as ChevronDownIcon, d as ChevronLeftIcon } from '../../../icons-
|
|
3
|
+
import { c as ChevronRightIcon, a as ChevronDownIcon, d as ChevronLeftIcon } from '../../../icons-55dthVFk.js';
|
|
4
4
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
5
5
|
import { setComponentTemplate } from '@ember/component';
|
|
6
6
|
|
|
@@ -2,40 +2,11 @@ import Component from '@glimmer/component';
|
|
|
2
2
|
import { on } from '@ember/modifier';
|
|
3
3
|
import { fn } from '@ember/helper';
|
|
4
4
|
import { modifier } from 'ember-modifier';
|
|
5
|
+
import { r as revealWithin } from '../../../reveal-within-BcqpOmSI.js';
|
|
5
6
|
import { precompileTemplate } from '@ember/template-compilation';
|
|
6
7
|
import { setComponentTemplate } from '@ember/component';
|
|
7
8
|
|
|
8
9
|
/** The grid is three columns wide, so vertical movement is by three. */const COLUMNS = 3;
|
|
9
|
-
/**
|
|
10
|
-
* Scroll `target` into view inside `panel` and nowhere else.
|
|
11
|
-
*
|
|
12
|
-
* `scrollIntoView` and a plain `focus()` both scroll *every* scrollable
|
|
13
|
-
* ancestor up to the document, so either one makes the host page jump when the
|
|
14
|
-
* panel opens or when arrow keys walk past its edge. Adjusting `scrollTop`
|
|
15
|
-
* directly keeps the movement inside the panel.
|
|
16
|
-
*
|
|
17
|
-
* The measurements come from `offsetTop`, not `getBoundingClientRect()`:
|
|
18
|
-
* client rects are in transformed pixels, so under any ancestor `scale()` they
|
|
19
|
-
* would not agree with `scrollTop`. This relies on the panel being the
|
|
20
|
-
* `offsetParent` -- the `yearGrid` slot is positioned for exactly that reason.
|
|
21
|
-
*
|
|
22
|
-
* `center` places the target mid-panel, for the opening jump to a year that is
|
|
23
|
-
* usually a long way down the list; otherwise the target is brought just far
|
|
24
|
-
* enough into view, which is what stepping key by key wants.
|
|
25
|
-
*/
|
|
26
|
-
function revealWithin(panel, target, center) {
|
|
27
|
-
const top = target.offsetTop;
|
|
28
|
-
const bottom = top + target.offsetHeight;
|
|
29
|
-
if (center) {
|
|
30
|
-
panel.scrollTop = top - (panel.clientHeight - target.offsetHeight) / 2;
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (top < panel.scrollTop) {
|
|
34
|
-
panel.scrollTop = top;
|
|
35
|
-
} else if (bottom > panel.scrollTop + panel.clientHeight) {
|
|
36
|
-
panel.scrollTop = bottom - panel.clientHeight;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
10
|
class YearGrid extends Component {
|
|
40
11
|
#element;
|
|
41
12
|
isCurrent = year => year === this.args.currentYear;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"year-grid.js","sources":["../../../../src/components/collections/calendar/year-grid.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { on } from '@ember/modifier';\nimport { fn } from '@ember/helper';\nimport { modifier } from 'ember-modifier';\n\nexport interface YearGridSignature {\n Args: {\n years: number[];\n currentYear: number;\n onSelect: (year: number) => void;\n onDismiss: () => void;\n /** The grid's accessible name. */\n label: string;\n classes: { yearGrid: string; yearCell: string };\n };\n Element: HTMLDivElement;\n}\n\n/** The grid is three columns wide, so vertical movement is by three. */\nconst COLUMNS = 3;\n\n/**\n * Scroll `target` into view inside `panel` and nowhere else.\n *\n * `scrollIntoView` and a plain `focus()` both scroll *every* scrollable\n * ancestor up to the document, so either one makes the host page jump when the\n * panel opens or when arrow keys walk past its edge. Adjusting `scrollTop`\n * directly keeps the movement inside the panel.\n *\n * The measurements come from `offsetTop`, not `getBoundingClientRect()`:\n * client rects are in transformed pixels, so under any ancestor `scale()` they\n * would not agree with `scrollTop`. This relies on the panel being the\n * `offsetParent` -- the `yearGrid` slot is positioned for exactly that reason.\n *\n * `center` places the target mid-panel, for the opening jump to a year that is\n * usually a long way down the list; otherwise the target is brought just far\n * enough into view, which is what stepping key by key wants.\n */\nfunction revealWithin(\n panel: HTMLElement,\n target: HTMLElement,\n center: boolean\n): void {\n const top = target.offsetTop;\n const bottom = top + target.offsetHeight;\n\n if (center) {\n panel.scrollTop = top - (panel.clientHeight - target.offsetHeight) / 2;\n return;\n }\n\n if (top < panel.scrollTop) {\n panel.scrollTop = top;\n } else if (bottom > panel.scrollTop + panel.clientHeight) {\n panel.scrollTop = bottom - panel.clientHeight;\n }\n}\n\nexport default class YearGrid extends Component<YearGridSignature> {\n #element: HTMLElement | undefined;\n\n isCurrent = (year: number): boolean => year === this.args.currentYear;\n\n /**\n * A year grid is opened by a deliberate action, so unlike the day grid it\n * *should* take focus -- otherwise a keyboard user opens a panel they cannot\n * reach.\n */\n setup = modifier((element: HTMLElement) => {\n this.#element = element;\n\n // `element` here is the year-grid panel's own container, which carries\n // no `data-component` of its own -- only the enclosing Calendar's root\n // does. So the \"same component\" boundary is that ancestor, not\n // `element` itself; resolve it once and filter against it, rather than\n // comparing against `element` (which would never match and would leave\n // `selected` unfindable for every real render).\n const root = element.closest('[data-component]') ?? element;\n const selected = [\n ...element.querySelectorAll<HTMLElement>(\n '[data-part=\"year-cell\"][data-selected=\"true\"]'\n )\n ].find((el) => el.closest('[data-component]') === root);\n\n // The list spans a century, so the selected year is usually far down a\n // scrolling panel. Bring it into view before focusing, or the panel opens\n // showing whichever decade happens to be at the top.\n if (selected) {\n revealWithin(element, selected, true);\n selected.focus({ preventScroll: true });\n }\n });\n\n /**\n * The panel is a single tab stop: only the year focus currently rests on is\n * tabbable, and arrow keys move both focus and that tabbability together.\n * Without this, tabbing through the calendar walks all hundred-odd years.\n *\n * Written imperatively from the keydown handler rather than derived from\n * tracked state, so focus and `tabindex` change in the same turn and neither\n * waits on a render.\n */\n #setActive(buttons: HTMLElement[], next: HTMLElement): void {\n for (const button of buttons) {\n button.tabIndex = -1;\n }\n next.tabIndex = 0;\n next.focus({ preventScroll: true });\n\n if (this.#element) {\n revealWithin(this.#element, next, false);\n }\n }\n\n handleKeydown = (event: KeyboardEvent): void => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.args.onDismiss();\n return;\n }\n\n const step =\n event.key === 'ArrowRight'\n ? 1\n : event.key === 'ArrowLeft'\n ? -1\n : event.key === 'ArrowDown'\n ? COLUMNS\n : event.key === 'ArrowUp'\n ? -COLUMNS\n : 0;\n\n if (step === 0) {\n return;\n }\n\n event.preventDefault();\n\n // Same reasoning as `setup` above: `this.#element` is the year-grid\n // panel's own container, not the node carrying `data-component`, so the\n // \"same component\" boundary is resolved via `closest` rather than\n // compared directly against `this.#element`.\n const root = this.#element?.closest('[data-component]') ?? this.#element;\n const buttons = root\n ? [\n ...root.querySelectorAll<HTMLElement>('[data-part=\"year-cell\"]')\n ].filter((el) => el.closest('[data-component]') === root)\n : [];\n const index = buttons.indexOf(document.activeElement as HTMLElement);\n\n // `indexOf` returns -1 when focus is not on a year button. Stepping from\n // -1 would land on `buttons[0]` or `buttons[2]` rather than doing nothing,\n // so bail before the arithmetic.\n if (index < 0) {\n return;\n }\n\n const next = buttons[index + step];\n\n if (next) {\n this.#setActive(buttons, next);\n }\n };\n\n <template>\n {{! template-lint-disable no-invalid-interactive }}\n {{! The keydown listener implements the year grid's own roving keyboard\n behavior (arrow keys, Enter, Escape); the container itself stays a\n plain, non-focusable listbox role. }}\n <div\n role=\"listbox\"\n aria-label={{@label}}\n data-part=\"year-grid\"\n class={{@classes.yearGrid}}\n {{this.setup}}\n {{on \"keydown\" this.handleKeydown}}\n ...attributes\n >\n {{#each @years key=\"@identity\" as |year|}}\n <button\n type=\"button\"\n role=\"option\"\n data-part=\"year-cell\"\n data-year={{year}}\n data-selected={{if (this.isCurrent year) \"true\" \"false\"}}\n aria-selected={{if (this.isCurrent year) \"true\" \"false\"}}\n tabindex={{if (this.isCurrent year) \"0\" \"-1\"}}\n class={{@classes.yearCell}}\n {{on \"click\" (fn @onSelect year)}}\n >{{year}}</button>\n {{/each}}\n </div>\n </template>\n}\n\nexport { YearGrid };\n"],"names":["COLUMNS","revealWithin","panel","target","center","top","offsetTop","bottom","offsetHeight","scrollTop","clientHeight","YearGrid","Component","isCurrent","year","args","currentYear","setup","modifier","element","root","closest","selected","querySelectorAll","find","el","focus","preventScroll","#setActive","buttons","next","button","tabIndex","handleKeydown","event","key","preventDefault","onDismiss","step","filter","index","indexOf","document","activeElement","setComponentTemplate","precompileTemplate","strictMode","scope","on","f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AA,CAAA,IAAuB,IAAI,CAAC,QAAQ;AACxE,IAAA,MAAMQ,UAAUT,IAAA,GACZ,IACKA,IAAA,CAAKG,gBAAgB,CAAc,yBAAA,CAAA,CACvC,CAACgB,MAAM,CAAEd,EAAA,IAAOA,GAAGJ,OAAO,CAAC,kBAAA,CAAA,KAAwBD,IAAA,CAAA,GACpD,EAAE;IACN,MAAMoB,QAAQX,OAAA,CAAQY,OAAO,CAACC,QAAA,CAASC,aAAiB,CAAA;AAExD;AACA;AACA;IACA,IAAIH,QAAQ,CAAA,EAAG;AACb,MAAA;AACF,IAAA;AAEA,IAAA,MAAMV,IAAA,GAAOD,OAAO,CAACW,KAAA,GAAQF,IAAA,CAAK;AAElC,IAAA,IAAIR,IAAA,EAAM;AACR,MAAA,IAAI,CAAC,UAAU,CAACD,OAAA,EAASC,IAAA,CAAA;AAC3B,IAAA;EACF,CAAA;AAEA,EAAA;IAAAc,oBAAA,CAAAC,kBAAA,CAAA,+zBAAA,EA4BA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
|
|
1
|
+
{"version":3,"file":"year-grid.js","sources":["../../../../src/components/collections/calendar/year-grid.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { on } from '@ember/modifier';\nimport { fn } from '@ember/helper';\nimport { modifier } from 'ember-modifier';\nimport { revealWithin } from '../../../-private/reveal-within';\n\nexport interface YearGridSignature {\n Args: {\n years: number[];\n currentYear: number;\n onSelect: (year: number) => void;\n onDismiss: () => void;\n /** The grid's accessible name. */\n label: string;\n classes: { yearGrid: string; yearCell: string };\n };\n Element: HTMLDivElement;\n}\n\n/** The grid is three columns wide, so vertical movement is by three. */\nconst COLUMNS = 3;\n\nexport default class YearGrid extends Component<YearGridSignature> {\n #element: HTMLElement | undefined;\n\n isCurrent = (year: number): boolean => year === this.args.currentYear;\n\n /**\n * A year grid is opened by a deliberate action, so unlike the day grid it\n * *should* take focus -- otherwise a keyboard user opens a panel they cannot\n * reach.\n */\n setup = modifier((element: HTMLElement) => {\n this.#element = element;\n\n // `element` here is the year-grid panel's own container, which carries\n // no `data-component` of its own -- only the enclosing Calendar's root\n // does. So the \"same component\" boundary is that ancestor, not\n // `element` itself; resolve it once and filter against it, rather than\n // comparing against `element` (which would never match and would leave\n // `selected` unfindable for every real render).\n const root = element.closest('[data-component]') ?? element;\n const selected = [\n ...element.querySelectorAll<HTMLElement>(\n '[data-part=\"year-cell\"][data-selected=\"true\"]'\n )\n ].find((el) => el.closest('[data-component]') === root);\n\n // The list spans a century, so the selected year is usually far down a\n // scrolling panel. Bring it into view before focusing, or the panel opens\n // showing whichever decade happens to be at the top.\n if (selected) {\n revealWithin(element, selected, true);\n selected.focus({ preventScroll: true });\n }\n });\n\n /**\n * The panel is a single tab stop: only the year focus currently rests on is\n * tabbable, and arrow keys move both focus and that tabbability together.\n * Without this, tabbing through the calendar walks all hundred-odd years.\n *\n * Written imperatively from the keydown handler rather than derived from\n * tracked state, so focus and `tabindex` change in the same turn and neither\n * waits on a render.\n */\n #setActive(buttons: HTMLElement[], next: HTMLElement): void {\n for (const button of buttons) {\n button.tabIndex = -1;\n }\n next.tabIndex = 0;\n next.focus({ preventScroll: true });\n\n if (this.#element) {\n revealWithin(this.#element, next, false);\n }\n }\n\n handleKeydown = (event: KeyboardEvent): void => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.args.onDismiss();\n return;\n }\n\n const step =\n event.key === 'ArrowRight'\n ? 1\n : event.key === 'ArrowLeft'\n ? -1\n : event.key === 'ArrowDown'\n ? COLUMNS\n : event.key === 'ArrowUp'\n ? -COLUMNS\n : 0;\n\n if (step === 0) {\n return;\n }\n\n event.preventDefault();\n\n // Same reasoning as `setup` above: `this.#element` is the year-grid\n // panel's own container, not the node carrying `data-component`, so the\n // \"same component\" boundary is resolved via `closest` rather than\n // compared directly against `this.#element`.\n const root = this.#element?.closest('[data-component]') ?? this.#element;\n const buttons = root\n ? [\n ...root.querySelectorAll<HTMLElement>('[data-part=\"year-cell\"]')\n ].filter((el) => el.closest('[data-component]') === root)\n : [];\n const index = buttons.indexOf(document.activeElement as HTMLElement);\n\n // `indexOf` returns -1 when focus is not on a year button. Stepping from\n // -1 would land on `buttons[0]` or `buttons[2]` rather than doing nothing,\n // so bail before the arithmetic.\n if (index < 0) {\n return;\n }\n\n const next = buttons[index + step];\n\n if (next) {\n this.#setActive(buttons, next);\n }\n };\n\n <template>\n {{! template-lint-disable no-invalid-interactive }}\n {{! The keydown listener implements the year grid's own roving keyboard\n behavior (arrow keys, Enter, Escape); the container itself stays a\n plain, non-focusable listbox role. }}\n <div\n role=\"listbox\"\n aria-label={{@label}}\n data-part=\"year-grid\"\n class={{@classes.yearGrid}}\n {{this.setup}}\n {{on \"keydown\" this.handleKeydown}}\n ...attributes\n >\n {{#each @years key=\"@identity\" as |year|}}\n <button\n type=\"button\"\n role=\"option\"\n data-part=\"year-cell\"\n data-year={{year}}\n data-selected={{if (this.isCurrent year) \"true\" \"false\"}}\n aria-selected={{if (this.isCurrent year) \"true\" \"false\"}}\n tabindex={{if (this.isCurrent year) \"0\" \"-1\"}}\n class={{@classes.yearCell}}\n {{on \"click\" (fn @onSelect year)}}\n >{{year}}</button>\n {{/each}}\n </div>\n </template>\n}\n\nexport { YearGrid };\n"],"names":["COLUMNS","YearGrid","Component","isCurrent","year","args","currentYear","setup","modifier","element","root","closest","selected","querySelectorAll","find","el","revealWithin","focus","preventScroll","#setActive","buttons","next","button","tabIndex","handleKeydown","event","key","preventDefault","onDismiss","step","filter","index","indexOf","document","activeElement","setComponentTemplate","precompileTemplate","strictMode","scope","on","fn"],"mappings":";;;;;;;;AAmBA,wEACA,MAAMA,OAAA,GAAU,CAAA;AAED,MAAMC,iBAAiBC,SAAA,CAAU;AAC9C,EAAA,QAAQ;EAERC,SAAA,GAAaC,IAAY,IAAcA,IAAA,KA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