frontile 0.18.6 → 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.
Files changed (179) hide show
  1. package/declarations/-private/icons.d.ts +4 -0
  2. package/declarations/-private/icons.d.ts.map +1 -1
  3. package/declarations/components/collections/dropdown/dropdown.d.ts +50 -53
  4. package/declarations/components/collections/dropdown/dropdown.d.ts.map +1 -1
  5. package/declarations/components/collections/listbox/item.d.ts +52 -1
  6. package/declarations/components/collections/listbox/item.d.ts.map +1 -1
  7. package/declarations/components/forms/select/select.d.ts +17 -0
  8. package/declarations/components/forms/select/select.d.ts.map +1 -1
  9. package/declarations/components/layout/app-layout-state.d.ts +32 -0
  10. package/declarations/components/layout/app-layout-state.d.ts.map +1 -0
  11. package/declarations/components/layout/app-layout.d.ts +954 -0
  12. package/declarations/components/layout/app-layout.d.ts.map +1 -0
  13. package/declarations/components/layout/aside-toggle.d.ts +55 -0
  14. package/declarations/components/layout/aside-toggle.d.ts.map +1 -0
  15. package/declarations/components/layout/aside.d.ts +761 -0
  16. package/declarations/components/layout/aside.d.ts.map +1 -0
  17. package/declarations/components/layout/bottom-nav-more.d.ts +123 -0
  18. package/declarations/components/layout/bottom-nav-more.d.ts.map +1 -0
  19. package/declarations/components/layout/bottom-nav.d.ts +60 -0
  20. package/declarations/components/layout/bottom-nav.d.ts.map +1 -0
  21. package/declarations/components/layout/context.d.ts +134 -0
  22. package/declarations/components/layout/context.d.ts.map +1 -0
  23. package/declarations/components/layout/index.d.ts +14 -0
  24. package/declarations/components/layout/index.d.ts.map +1 -0
  25. package/declarations/components/layout/main.d.ts +28 -0
  26. package/declarations/components/layout/main.d.ts.map +1 -0
  27. package/declarations/components/layout/menu-toggle.d.ts +58 -0
  28. package/declarations/components/layout/menu-toggle.d.ts.map +1 -0
  29. package/declarations/components/layout/nav-context.d.ts +45 -0
  30. package/declarations/components/layout/nav-context.d.ts.map +1 -0
  31. package/declarations/components/layout/nav-folder.d.ts +216 -0
  32. package/declarations/components/layout/nav-folder.d.ts.map +1 -0
  33. package/declarations/components/layout/nav-item.d.ts +220 -0
  34. package/declarations/components/layout/nav-item.d.ts.map +1 -0
  35. package/declarations/components/layout/nav-link.d.ts +67 -0
  36. package/declarations/components/layout/nav-link.d.ts.map +1 -0
  37. package/declarations/components/layout/navbar.d.ts +27 -0
  38. package/declarations/components/layout/navbar.d.ts.map +1 -0
  39. package/declarations/components/layout/page-header.d.ts +40 -0
  40. package/declarations/components/layout/page-header.d.ts.map +1 -0
  41. package/declarations/components/layout/sidebar-group.d.ts +41 -0
  42. package/declarations/components/layout/sidebar-group.d.ts.map +1 -0
  43. package/declarations/components/layout/sidebar-toggle.d.ts +71 -0
  44. package/declarations/components/layout/sidebar-toggle.d.ts.map +1 -0
  45. package/declarations/components/layout/sidebar.d.ts +904 -0
  46. package/declarations/components/layout/sidebar.d.ts.map +1 -0
  47. package/declarations/components/navigation/index.d.ts +1 -0
  48. package/declarations/components/navigation/index.d.ts.map +1 -1
  49. package/declarations/components/navigation/stepper/collapse-menu.d.ts +42 -0
  50. package/declarations/components/navigation/stepper/collapse-menu.d.ts.map +1 -0
  51. package/declarations/components/navigation/stepper/list.d.ts +24 -0
  52. package/declarations/components/navigation/stepper/list.d.ts.map +1 -0
  53. package/declarations/components/navigation/stepper/panel.d.ts +42 -0
  54. package/declarations/components/navigation/stepper/panel.d.ts.map +1 -0
  55. package/declarations/components/navigation/stepper/step.d.ts +123 -0
  56. package/declarations/components/navigation/stepper/step.d.ts.map +1 -0
  57. package/declarations/components/navigation/stepper/stepper.d.ts +947 -0
  58. package/declarations/components/navigation/stepper/stepper.d.ts.map +1 -0
  59. package/declarations/components/navigation/stepper.d.ts +6 -0
  60. package/declarations/components/navigation/stepper.d.ts.map +1 -0
  61. package/declarations/components/navigation/tab-nav/item.d.ts +2 -2
  62. package/declarations/components/navigation/tab-nav/item.d.ts.map +1 -1
  63. package/declarations/components/overlays/portal.d.ts.map +1 -1
  64. package/declarations/components/utilities/collapsible.d.ts +19 -2
  65. package/declarations/components/utilities/collapsible.d.ts.map +1 -1
  66. package/declarations/index.d.ts +1 -0
  67. package/declarations/index.d.ts.map +1 -1
  68. package/declarations/layout.d.ts +2 -0
  69. package/declarations/layout.d.ts.map +1 -0
  70. package/declarations/utils/breakpoint.d.ts +16 -0
  71. package/declarations/utils/breakpoint.d.ts.map +1 -0
  72. package/declarations/utils/document-listener.d.ts +6 -0
  73. package/declarations/utils/document-listener.d.ts.map +1 -0
  74. package/declarations/utils/listManager.d.ts +7 -1
  75. package/declarations/utils/listManager.d.ts.map +1 -1
  76. package/declarations/utils/route-active.d.ts +34 -0
  77. package/declarations/utils/route-active.d.ts.map +1 -0
  78. package/declarations/utils/selection-indicator.d.ts +7 -4
  79. package/declarations/utils/selection-indicator.d.ts.map +1 -1
  80. package/dist/components/collections/calendar/header.js +1 -1
  81. package/dist/components/collections/dropdown/dropdown.js +172 -48
  82. package/dist/components/collections/dropdown/dropdown.js.map +1 -1
  83. package/dist/components/collections/listbox/item.js +36 -2
  84. package/dist/components/collections/listbox/item.js.map +1 -1
  85. package/dist/components/collections/table/column-visibility.js +1 -1
  86. package/dist/components/collections/table/sort-button.js +1 -1
  87. package/dist/components/disclosure/accordion/item.js +1 -1
  88. package/dist/components/forms/autocomplete.js +1 -1
  89. package/dist/components/forms/date-picker/end-content.js +1 -1
  90. package/dist/components/forms/native-select.js +1 -1
  91. package/dist/components/forms/select/end-content.js +1 -1
  92. package/dist/components/forms/select/select.js +2 -1
  93. package/dist/components/forms/select/select.js.map +1 -1
  94. package/dist/components/layout/app-layout-state.js +64 -0
  95. package/dist/components/layout/app-layout-state.js.map +1 -0
  96. package/dist/components/layout/app-layout.js +416 -0
  97. package/dist/components/layout/app-layout.js.map +1 -0
  98. package/dist/components/layout/aside-toggle.js +55 -0
  99. package/dist/components/layout/aside-toggle.js.map +1 -0
  100. package/dist/components/layout/aside.js +100 -0
  101. package/dist/components/layout/aside.js.map +1 -0
  102. package/dist/components/layout/bottom-nav-more.js +150 -0
  103. package/dist/components/layout/bottom-nav-more.js.map +1 -0
  104. package/dist/components/layout/bottom-nav.js +65 -0
  105. package/dist/components/layout/bottom-nav.js.map +1 -0
  106. package/dist/components/layout/context.js +89 -0
  107. package/dist/components/layout/context.js.map +1 -0
  108. package/dist/components/layout/index.js +14 -0
  109. package/dist/components/layout/index.js.map +1 -0
  110. package/dist/components/layout/main.js +34 -0
  111. package/dist/components/layout/main.js.map +1 -0
  112. package/dist/components/layout/menu-toggle.js +61 -0
  113. package/dist/components/layout/menu-toggle.js.map +1 -0
  114. package/dist/components/layout/nav-context.js +85 -0
  115. package/dist/components/layout/nav-context.js.map +1 -0
  116. package/dist/components/layout/nav-folder.js +271 -0
  117. package/dist/components/layout/nav-folder.js.map +1 -0
  118. package/dist/components/layout/nav-item.js +192 -0
  119. package/dist/components/layout/nav-item.js.map +1 -0
  120. package/dist/components/layout/nav-link.js +58 -0
  121. package/dist/components/layout/nav-link.js.map +1 -0
  122. package/dist/components/layout/navbar.js +30 -0
  123. package/dist/components/layout/navbar.js.map +1 -0
  124. package/dist/components/layout/page-header.js +45 -0
  125. package/dist/components/layout/page-header.js.map +1 -0
  126. package/dist/components/layout/sidebar-group.js +41 -0
  127. package/dist/components/layout/sidebar-group.js.map +1 -0
  128. package/dist/components/layout/sidebar-toggle.js +82 -0
  129. package/dist/components/layout/sidebar-toggle.js.map +1 -0
  130. package/dist/components/layout/sidebar.js +249 -0
  131. package/dist/components/layout/sidebar.js.map +1 -0
  132. package/dist/components/navigation/breadcrumbs/separator.js +1 -1
  133. package/dist/components/navigation/index.js +4 -0
  134. package/dist/components/navigation/index.js.map +1 -1
  135. package/dist/components/navigation/pagination/pagination.js +1 -1
  136. package/dist/components/navigation/stepper/collapse-menu.js +128 -0
  137. package/dist/components/navigation/stepper/collapse-menu.js.map +1 -0
  138. package/dist/components/navigation/stepper/list.js +17 -0
  139. package/dist/components/navigation/stepper/list.js.map +1 -0
  140. package/dist/components/navigation/stepper/panel.js +26 -0
  141. package/dist/components/navigation/stepper/panel.js.map +1 -0
  142. package/dist/components/navigation/stepper/step.js +130 -0
  143. package/dist/components/navigation/stepper/step.js.map +1 -0
  144. package/dist/components/navigation/stepper/stepper.js +475 -0
  145. package/dist/components/navigation/stepper/stepper.js.map +1 -0
  146. package/dist/components/navigation/stepper.js +5 -0
  147. package/dist/components/navigation/stepper.js.map +1 -0
  148. package/dist/components/navigation/tab-nav/item.js +6 -40
  149. package/dist/components/navigation/tab-nav/item.js.map +1 -1
  150. package/dist/components/notifications/index.js +1 -1
  151. package/dist/components/notifications/notification-card.js +2 -2
  152. package/dist/components/notifications/notifications-container.js +1 -1
  153. package/dist/components/overlays/portal.js +11 -2
  154. package/dist/components/overlays/portal.js.map +1 -1
  155. package/dist/components/status/alert.js +1 -1
  156. package/dist/components/utilities/collapsible.js +33 -5
  157. package/dist/components/utilities/collapsible.js.map +1 -1
  158. package/dist/{icons-DZ61nCzv.js → icons-55dthVFk.js} +14 -2
  159. package/dist/{icons-DZ61nCzv.js.map → icons-55dthVFk.js.map} +1 -1
  160. package/dist/index.js +18 -1
  161. package/dist/index.js.map +1 -1
  162. package/dist/layout.js +14 -0
  163. package/dist/layout.js.map +1 -0
  164. package/dist/navigation.js +4 -0
  165. package/dist/navigation.js.map +1 -1
  166. package/dist/{notification-card-dz-eE6z9.js → notification-card-BPfDo-Gf.js} +2 -2
  167. package/dist/{notification-card-dz-eE6z9.js.map → notification-card-BPfDo-Gf.js.map} +1 -1
  168. package/dist/notifications.js +1 -1
  169. package/dist/utils/breakpoint.js +56 -0
  170. package/dist/utils/breakpoint.js.map +1 -0
  171. package/dist/utils/document-listener.js +10 -0
  172. package/dist/utils/document-listener.js.map +1 -0
  173. package/dist/utils/listManager.js +12 -2
  174. package/dist/utils/listManager.js.map +1 -1
  175. package/dist/utils/route-active.js +70 -0
  176. package/dist/utils/route-active.js.map +1 -0
  177. package/dist/utils/selection-indicator.js +25 -5
  178. package/dist/utils/selection-indicator.js.map +1 -1
  179. 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,iBAAiB,CAAC;AAC/C,OAAO,WAAW,MAAM,QAAQ,CAAC;AACjC,OAAO,YAAY,MAAM,SAAS,CAAC;AACnC,OAAO,WAAW,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,UAAU,WAAW,CAAC,CAAC;IACrB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC;IAEV;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAE9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC;IAE7C;;;;OAIG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAE/B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAEjC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IAEjD;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC;IAEtC;;;;;OAKG;IACH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;IAED,UAAU,GAAI,OAAO,CAAC,KAAG,OAAO,CAAiC;IAEjE,OAAO,GAAI,OAAO,CAAC,KAAG,SAAS,CAW7B;IAyBF,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,QAAO,IAAI,CAKb;IAEF,IAAI,QAAO,IAAI,CAKb;IAEF,MAAM,GAAI,OAAO,CAAC,KAAG,IAAI,CAIvB;IAIF,IAAI,GAAI,OAAO,CAAC,KAAG,IAAI,CAGrB;IAiBF;;;;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,6 @@
1
+ export * from './stepper/stepper';
2
+ export { default } from './stepper/stepper';
3
+ export * from './stepper/list';
4
+ export * from './stepper/step';
5
+ export * from './stepper/panel';
6
+ //# sourceMappingURL=stepper.d.ts.map
@@ -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 models(): unknown[];
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":"AAgLA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,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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ehE;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":"AA+VA,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;CACxB;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,cAAM,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACvD,eAAe,UAAS;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,UAAS;gBAEZ,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe;IAS/C;;;;OAIG;IACH,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED,IAAI,MAAM,IAAI,UAAU,CAAC,OAAO,UAAU,CAAC,CAoB1C;IAED,cAAc,UAAS;IACvB,MAAM;;;;;;OAmBH;IAEH,SAAS,IAAI,IAAI;IASjB,WAAW,IAAI,IAAI;IAOnB;;;;OAIG;IACH,aAAa,cAAqB;IAElC,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAQxC,YAAY,IAAI,IAAI;IAKpB;;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a,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED,IAAI,MAAM,IAAI,UAAU,CAAC,OAAO,UAAU,CAAC,CAoB1C;IAED;;;OAGG;IACH,SAAS,UAAQ;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,cAAc,UAAS;IACvB,MAAM;;;;;;OA4BH;IAEH,SAAS,IAAI,IAAI;IASjB,WAAW,IAAI,IAAI;IAUnB;;;;OAIG;IACH,aAAa,cAAqB;IAElC,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAQxC,YAAY,IAAI,IAAI;IAKpB;;;;;;OAMG;IACH,4BAA4B,CAC1B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,MAAM,EAAE,GACnB,IAAI;IAoBP,eAAe,GAAI,OAAO,eAAe,UA0CvC;IAEF,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAI1C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAI3C,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,UAAQ,GAAG,IAAI;IAgDnD;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAS5C,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,UAAQ,GAAG,IAAI;CA6CtD;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,oBAAoB,EAAE,CAAC;AAClD,eAAe,WAAW,CAAC"}
@@ -7,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,2 @@
1
+ export * from './components/layout';
2
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -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,6 @@
1
+ /**
2
+ * The global `document`, or `undefined` where there is none (FastBoot, SSR,
3
+ * prerender).
4
+ */
5
+ export declare function globalDocument(): Document | undefined;
6
+ //# sourceMappingURL=document-listener.d.ts.map
@@ -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,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;AAEtD,UAAU,YAAY;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;GAGG;AACH,KAAK,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,MA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,SAAS;IAIxC,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAmDvC,gBAAgB,IAAI,IAAI;IAOxB,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI;IAkBjC,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI;IA+BnC,mBAAmB,IAAI,IAAI;IAW3B,uBAAuB,IAAI,IAAI;IAW/B,oBAAoB,IAAI,IAAI;IAW5B,uBAAuB,IAAI,IAAI;IAkB/B,mBAAmB,IAAI,IAAI;IAW3B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAmBzB;;;;;OAKG;IACH,WAAW,IAAI,IAAI;IAInB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAInC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IA4FnC,KAAK;;;;;;OAiBH;IAEF,SAAS;;;;6BAKU,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI;gCACrB,OAAO;;;;OAkG3B;CACH;AAED;;;;;;;;;GASG;AACH,iBAAS,cAAc,CACrB,YAAY,EAAE,MAAM,EAAE,EACtB,GAAG,EAAE,MAAM,EACX,UAAU,GAAE,OAAe,GAC1B,OAAO,CAKT;AAED,iBAAS,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA8BzE;AAED,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. When selection moves
42
- * backwards, the incoming item's setup runs before the outgoing item's
43
- * teardown, and without this guard that teardown would wipe the new
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;;IAetB;;;;OAIG;IACH,cAAc;;;;;;OAmCX;IAEH;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAQjC;;;;;OAKG;IACH,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAmBnC;;;;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
+ {"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-DZ61nCzv.js';
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
 
@@ -6,6 +6,8 @@ import { Popover } from '../../overlays/popover.js';
6
6
  import { assert } from '@ember/debug';
7
7
  import { hash } from '@ember/helper';
8
8
  import { on } from '@ember/modifier';
9
+ import { registerDestructor } from '@ember/destroyable';
10
+ import Modifier from 'ember-modifier';
9
11
  import { Sub } from './sub.js';
10
12
  import { createOverriddenMenuContext, createRootMenuContext } from './menu-context.js';
11
13
  import { r as renamedArgValue } from '../../../deprecated-args-BIUjLA8y.js';
@@ -39,10 +41,11 @@ class Dropdown extends Component {
39
41
  }
40
42
  };
41
43
  static {
42
- setComponentTemplate(precompileTemplate("<Popover @placement={{@placement}} @flipOptions={{@flipOptions}} @middleware={{@middleware}} @shiftOptions={{@shiftOptions}} @offsetOptions={{@offsetOptions}} @strategy={{@strategy}} @didClose={{@didClose}} as |p|>\n {{yield (hash Trigger=(component Trigger anchor=p.anchor trigger=p.trigger toggle=p.toggle setOpenSource=this.setOpenSource) Menu=(component Menu Content=p.Content toggle=p.toggle close=p.close closeOnItemSelect=@closeOnItemSelect openSource=this.openSource))}}\n</Popover>", {
44
+ setComponentTemplate(precompileTemplate("<Popover @placement={{@placement}} @flipOptions={{@flipOptions}} @middleware={{@middleware}} @shiftOptions={{@shiftOptions}} @offsetOptions={{@offsetOptions}} @strategy={{@strategy}} @didClose={{@didClose}} @isOpen={{@isOpen}} @onOpenChange={{@onOpenChange}} as |p|>\n {{#let (modifier TriggerBehavior anchor=p.anchor trigger=p.trigger open=p.open toggle=p.toggle setOpenSource=this.setOpenSource) as |triggerModifier|}}\n {{yield (hash Trigger=(component Trigger triggerModifier=triggerModifier) triggerModifier=triggerModifier Menu=(component Menu Content=p.Content toggle=p.toggle close=p.close closeOnItemSelect=@closeOnItemSelect openSource=this.openSource))}}\n {{/let}}\n</Popover>", {
43
45
  strictMode: true,
44
46
  scope: () => ({
45
47
  Popover,
48
+ TriggerBehavior,
46
49
  hash,
47
50
  Trigger,
48
51
  Menu
@@ -50,57 +53,142 @@ class Dropdown extends Component {
50
53
  }), this);
51
54
  }
52
55
  }
53
- class Trigger extends Component {
54
- get anchor() {
55
- assert(`Dropdown Trigger does not have anchor modifier; Missing argument @anchor`, this.args.anchor);
56
- return this.args.anchor;
57
- }
58
- get trigger() {
59
- assert(`Dropdown Trigger does not have trigger modifier; Missing argument @trigger`, this.args.trigger);
60
- return this.args.trigger;
61
- }
62
- handleKeyDown = event => {
63
- if (['ArrowUp', 'ArrowDown'].includes(event.key)) {
64
- event.preventDefault();
56
+ /**
57
+ * The public shape of the modifier `Dropdown` yields as `triggerModifier`.
58
+ */
59
+
60
+ /**
61
+ * Everything that makes an element a dropdown trigger, in one place, so a
62
+ * `Trigger` button and a consumer's own element behave identically.
63
+ *
64
+ * It installs Popover's `anchor` and `trigger` modifiers by calling them. Both
65
+ * are function-based `ember-modifier`s, and `modifier(fn)` hands back `fn`
66
+ * itself (with a manager attached), so they are callable as
67
+ * `(element, positional, named) => cleanup`. Glimmer has no way to apply two
68
+ * modifiers from one, and the alternative -- yielding both and making every
69
+ * consumer apply them together with the key handlers -- is the very thing this
70
+ * exists to avoid. If either stops being a plain function the assert below
71
+ * fails loudly instead of the trigger silently doing nothing.
72
+ *
73
+ * The class form is deliberate. Popover's `trigger` reads `isOpen`, so this
74
+ * modifier re-runs on every open and close; a class instance keeps the key and
75
+ * pointer listeners and the `anchor` call (which writes tracked state, and
76
+ * would re-position the menu if repeated) once per element, and only re-runs
77
+ * `trigger`, whose cleanup it owns.
78
+ */
79
+ class TriggerBehavior extends Modifier {
80
+ #element;
81
+ #cleanupTrigger;
82
+ #removeListeners;
83
+ #destructorRegistered = false;
84
+ modify(element, _positional, {
85
+ anchor,
86
+ trigger,
87
+ open,
88
+ toggle,
89
+ setOpenSource
90
+ }) {
91
+ if (!this.#destructorRegistered) {
92
+ this.#destructorRegistered = true;
93
+ registerDestructor(this, () => {
94
+ this.#cleanupTrigger?.();
95
+ this.#removeListeners?.();
96
+ });
65
97
  }
66
- };
67
- /**
68
- * A pointer press opens onto nothing: moving the highlight somewhere the
69
- * user never pointed is exactly what the menu button pattern avoids.
70
- *
71
- * On `pointerup` rather than `pointerdown`: the two are equivalent here
72
- * because `pointerup` still precedes the `click` that Popover's `trigger`
73
- * opens on, and binding the down event trips `no-pointer-down-event-binding`
74
- * -- a rule worth keeping, since a press the user drags away from and
75
- * cancels should leave nothing behind.
76
- */
77
- handlePointerUp = () => {
78
- this.args.setOpenSource('pointer');
79
- };
80
- /**
81
- * Enter and Space have to be handled here rather than left to the button's
82
- * native activation. The trigger renders Frontile's Button, whose `press`
83
- * modifier calls preventDefault on Enter/Space keydown — that is deliberate,
84
- * since press synthesises its own press event for `@onPress` consumers — but
85
- * it also cancels the native click, and Popover's `trigger` modifier opens on
86
- * click. Without this the menu could only be opened with the arrow keys.
87
- *
88
- * Select is unaffected because its trigger is a plain `<button>` with no press
89
- * modifier, so its native click still fires. Handling this in Popover instead
90
- * would double-toggle there.
91
- */
92
- handleKeyUp = event => {
93
- if (event.key === 'ArrowDown' || event.key === 'ArrowUp' || event.key === 'Enter' || event.key === ' ') {
94
- this.args.setOpenSource('keyboard');
95
- this.args.toggle();
98
+ if (this.#element !== element) {
99
+ this.#removeListeners?.();
100
+ this.#element = element;
101
+ this.#removeListeners = this.#listen(element, open, toggle, setOpenSource);
102
+ this.#call(anchor, element);
96
103
  }
97
- };
104
+ this.#cleanupTrigger?.();
105
+ const cleanup = this.#call(trigger, element);
106
+ this.#cleanupTrigger = typeof cleanup === 'function' ? cleanup : undefined;
107
+ }
108
+ #call(modifier, element) {
109
+ assert('Dropdown could not install its trigger: Popover no longer yields function-based `anchor`/`trigger` modifiers', typeof modifier === 'function');
110
+ return modifier(element, [], {});
111
+ }
112
+ #listen(element, open, toggle, setOpenSource) {
113
+ /**
114
+ * Enter and Space are cancelled here, on both key events, on top of the
115
+ * arrows. Frontile's `Button` already does it for Enter/Space (its `press`
116
+ * modifier), but any other element would not: a `<button>` fires its own
117
+ * click on Enter (keydown) and Space (keyup), which Popover's `trigger`
118
+ * toggles on -- on top of the `keyup` toggle below, so the menu would open
119
+ * and straight away close -- and an `<a href>` would navigate on Enter. The
120
+ * arrows are cancelled so they do not scroll the page.
121
+ */
122
+ const onKeyDown = event => {
123
+ if (['ArrowUp', 'ArrowDown', 'Enter', ' '].includes(event.key)) {
124
+ event.preventDefault();
125
+ }
126
+ // Popover's own keydown handler, which runs after this one, opens the
127
+ // menu on an arrow; say it was the keyboard before it renders, so it
128
+ // opens onto the first item.
129
+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
130
+ setOpenSource('keyboard');
131
+ }
132
+ };
133
+ /**
134
+ * Enter and Space have to be handled here rather than left to native
135
+ * activation: `Button`'s `press` modifier cancels the native click on
136
+ * Enter/Space (deliberately -- press synthesises its own press event for
137
+ * `@onPress` consumers), and Popover's `trigger` opens on click. Without
138
+ * this the menu could only be opened with the arrow keys.
139
+ *
140
+ * Select is unaffected because its trigger is a plain `<button>` with no
141
+ * press modifier, so its native click still fires. Handling this in
142
+ * Popover instead would double-toggle there.
143
+ *
144
+ * Space is cancelled again on keyup because Firefox activates a button on
145
+ * Space keyup regardless of what keydown did.
146
+ */
147
+ const onKeyUp = event => {
148
+ if (event.key === 'Enter' || event.key === ' ') {
149
+ event.preventDefault();
150
+ setOpenSource('keyboard');
151
+ toggle();
152
+ } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
153
+ // Only ever opens. The arrow's keydown has usually opened the menu
154
+ // already, and when focus has not moved into it by the keyup (a fast
155
+ // key, a slow render), toggling here would close it again.
156
+ setOpenSource('keyboard');
157
+ open();
158
+ }
159
+ };
160
+ /**
161
+ * A pointer press opens onto nothing: moving the highlight somewhere the
162
+ * user never pointed is exactly what the menu button pattern avoids.
163
+ *
164
+ * On `pointerup` rather than `pointerdown`: the two are equivalent here
165
+ * because `pointerup` still precedes the `click` that Popover's `trigger`
166
+ * opens on, and a press the user drags away from and cancels should leave
167
+ * nothing behind.
168
+ */
169
+ const onPointerUp = () => {
170
+ setOpenSource('pointer');
171
+ };
172
+ element.addEventListener('keydown', onKeyDown);
173
+ element.addEventListener('keyup', onKeyUp);
174
+ element.addEventListener('pointerup', onPointerUp);
175
+ return () => {
176
+ element.removeEventListener('keydown', onKeyDown);
177
+ element.removeEventListener('keyup', onKeyUp);
178
+ element.removeEventListener('pointerup', onPointerUp);
179
+ };
180
+ }
181
+ }
182
+ /**
183
+ * The button form of the trigger: Frontile's `Button` with `triggerModifier`
184
+ * on it, so all of the open/close behaviour lives in one place.
185
+ */
186
+ class Trigger extends Component {
98
187
  static {
99
- setComponentTemplate(precompileTemplate("<Button {{this.trigger}} {{this.anchor}} {{on \"keydown\" this.handleKeyDown}} {{on \"keyup\" this.handleKeyUp}} {{on \"pointerup\" this.handlePointerUp}} @type=\"button\" @variant={{@variant}} @appearance={{@appearance}} @color={{@color}} @intent={{@intent}} @size={{@size}} @class={{@class}} @isInGroup={{@isInGroup}} data-test-id=\"dropdown-trigger\" ...attributes>\n {{yield}}\n</Button>", {
188
+ setComponentTemplate(precompileTemplate("<Button {{@triggerModifier}} @type=\"button\" @variant={{@variant}} @appearance={{@appearance}} @color={{@color}} @intent={{@intent}} @size={{@size}} @class={{@class}} @isInGroup={{@isInGroup}} data-test-id=\"dropdown-trigger\" ...attributes>\n {{yield}}\n</Button>", {
100
189
  strictMode: true,
101
190
  scope: () => ({
102
- Button,
103
- on
191
+ Button
104
192
  })
105
193
  }), this);
106
194
  }
@@ -216,6 +304,20 @@ class Menu extends Component {
216
304
  }
217
305
  };
218
306
  /**
307
+ * A link item is followed by the browser (or `LinkTo`), not selected, so it
308
+ * must skip `onAction` -- but it still dismisses the menu like any other
309
+ * choice, and under the same `closeOnItemSelect` rule.
310
+ */
311
+ onLinkActivate = () => {
312
+ const {
313
+ closeOnItemSelect,
314
+ closeRoot
315
+ } = this.context;
316
+ if (closeOnItemSelect !== false) {
317
+ closeRoot();
318
+ }
319
+ };
320
+ /**
219
321
  * Only the root locks the page scroll. A submenu is a second overlay over
220
322
  * the same interaction; locking again would just churn the reference count.
221
323
  */
@@ -225,6 +327,28 @@ class Menu extends Component {
225
327
  }
226
328
  return this.depth === 0;
227
329
  }
330
+ /**
331
+ * Focus goes into the menu as soon as it renders, not a timer later (focus
332
+ * trap's default `delayInitialFocus`). Until it does, keys still land on
333
+ * the trigger: a quick ArrowDown after Enter would reach the trigger
334
+ * instead of moving through the menu. Nothing needs the delay here: the
335
+ * menu opens on a click, an Enter/Space keyup, or an arrow keydown whose
336
+ * keyup the menu ignores (it acts on keydown).
337
+ *
338
+ * `preventScroll`, because at that moment the menu has not been positioned
339
+ * yet (Velcro places it a promise later): focusing it would scroll the page
340
+ * to where it sits before then, carrying the trigger out of view, which
341
+ * hides the menu (Velcro's `hide`) and drops focus to the body.
342
+ *
343
+ * A consumer's options still win.
344
+ */
345
+ get focusTrapOptions() {
346
+ return {
347
+ delayInitialFocus: false,
348
+ preventScroll: true,
349
+ ...this.args.focusTrapOptions
350
+ };
351
+ }
228
352
  get disableFocusTrap() {
229
353
  if (this.args.disableFocusTrap === true) {
230
354
  return true;
@@ -293,7 +417,7 @@ class Menu extends Component {
293
417
  }
294
418
  };
295
419
  static {
296
- setComponentTemplate(precompileTemplate("<@Content @target={{@target}} @renderInPlace={{@renderInPlace}} @disableFocusTrap={{this.disableFocusTrap}} @blockScroll={{this.blockScroll}} @transitionDuration={{this.context.transitionDuration}} @backdrop={{@backdrop}} @disableTransitions={{this.context.disableTransitions}} @focusTrapOptions={{@focusTrapOptions}} @closeOnOutsideClick={{@closeOnOutsideClick}} @closeOnEscapeKey={{@closeOnEscapeKey}} @backdropTransition={{@backdropTransition}} @transition={{@transition}}>\n <Listbox {{on \"keydown\" this.handleArrowKeys}} @allowEmpty={{this.context.allowEmpty}} @variant={{this.context.variant}} @disabledKeys={{this.context.disabledKeys}} @color={{this.context.color}} @shortcutVariant={{this.context.shortcutVariant}} @isKeyboardEventsEnabled={{true}} @onAction={{this.onAction}} @onActiveItemChange={{this.onActiveItemChange}} @onSelectionChange={{this.context.onSelectionChange}} @selectedKeys={{this.context.selectedKeys}} @selectionMode={{if this.context.selectionMode this.context.selectionMode \"none\"}} @type=\"menu\" @autoActivateMode={{this.autoActivateMode}} id={{@menuId}} ...attributes as |l|>\n {{yield (component l.Item) (component Sub item=(component l.Item) menu=Menu parentContext=this.context)}}\n </Listbox>\n</@Content>", {
420
+ setComponentTemplate(precompileTemplate("<@Content @target={{@target}} @renderInPlace={{@renderInPlace}} @disableFocusTrap={{this.disableFocusTrap}} @blockScroll={{this.blockScroll}} @transitionDuration={{this.context.transitionDuration}} @backdrop={{@backdrop}} @disableTransitions={{this.context.disableTransitions}} @focusTrapOptions={{this.focusTrapOptions}} @closeOnOutsideClick={{@closeOnOutsideClick}} @closeOnEscapeKey={{@closeOnEscapeKey}} @backdropTransition={{@backdropTransition}} @transition={{@transition}}>\n <Listbox {{on \"keydown\" this.handleArrowKeys}} @allowEmpty={{this.context.allowEmpty}} @variant={{this.context.variant}} @disabledKeys={{this.context.disabledKeys}} @color={{this.context.color}} @shortcutVariant={{this.context.shortcutVariant}} @isKeyboardEventsEnabled={{true}} @onAction={{this.onAction}} @onActiveItemChange={{this.onActiveItemChange}} @onSelectionChange={{this.context.onSelectionChange}} @selectedKeys={{this.context.selectedKeys}} @selectionMode={{if this.context.selectionMode this.context.selectionMode \"none\"}} @type=\"menu\" @autoActivateMode={{this.autoActivateMode}} id={{@menuId}} ...attributes as |l|>\n {{yield (component l.Item onLinkActivate=this.onLinkActivate) (component Sub item=(component l.Item) menu=Menu parentContext=this.context)}}\n </Listbox>\n</@Content>", {
297
421
  strictMode: true,
298
422
  scope: () => ({
299
423
  Listbox,