frontile 0.18.9 → 0.18.11

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 (191) hide show
  1. package/declarations/components/buttons/segmented-control/segmented-control.d.ts +21 -23
  2. package/declarations/components/buttons/segmented-control/segmented-control.d.ts.map +1 -1
  3. package/declarations/components/collections/calendar/calendar.d.ts +168 -103
  4. package/declarations/components/collections/calendar/calendar.d.ts.map +1 -1
  5. package/declarations/components/collections/command/input.d.ts +70 -46
  6. package/declarations/components/collections/command/input.d.ts.map +1 -1
  7. package/declarations/components/collections/command/list.d.ts +70 -33
  8. package/declarations/components/collections/command/list.d.ts.map +1 -1
  9. package/declarations/components/collections/simple-table/body.d.ts +137 -72
  10. package/declarations/components/collections/simple-table/body.d.ts.map +1 -1
  11. package/declarations/components/collections/simple-table/cell.d.ts +137 -72
  12. package/declarations/components/collections/simple-table/cell.d.ts.map +1 -1
  13. package/declarations/components/collections/simple-table/column.d.ts +137 -72
  14. package/declarations/components/collections/simple-table/column.d.ts.map +1 -1
  15. package/declarations/components/collections/simple-table/footer.d.ts +137 -72
  16. package/declarations/components/collections/simple-table/footer.d.ts.map +1 -1
  17. package/declarations/components/collections/simple-table/header.d.ts +137 -72
  18. package/declarations/components/collections/simple-table/header.d.ts.map +1 -1
  19. package/declarations/components/collections/simple-table/index.d.ts +137 -72
  20. package/declarations/components/collections/simple-table/index.d.ts.map +1 -1
  21. package/declarations/components/collections/simple-table/row.d.ts +137 -72
  22. package/declarations/components/collections/simple-table/row.d.ts.map +1 -1
  23. package/declarations/components/collections/table/checkbox.d.ts +30 -14
  24. package/declarations/components/collections/table/checkbox.d.ts.map +1 -1
  25. package/declarations/components/collections/table/column-visibility.d.ts +137 -72
  26. package/declarations/components/collections/table/column-visibility.d.ts.map +1 -1
  27. package/declarations/components/collections/table/sort-button.d.ts +137 -72
  28. package/declarations/components/collections/table/sort-button.d.ts.map +1 -1
  29. package/declarations/components/collections/table/table.d.ts +137 -72
  30. package/declarations/components/collections/table/table.d.ts.map +1 -1
  31. package/declarations/components/disclosure/accordion/accordion.d.ts +77 -51
  32. package/declarations/components/disclosure/accordion/accordion.d.ts.map +1 -1
  33. package/declarations/components/forms/autocomplete.d.ts +112 -28
  34. package/declarations/components/forms/autocomplete.d.ts.map +1 -1
  35. package/declarations/components/forms/checkbox-group.d.ts +21 -15
  36. package/declarations/components/forms/checkbox-group.d.ts.map +1 -1
  37. package/declarations/components/forms/checkbox.d.ts +30 -14
  38. package/declarations/components/forms/checkbox.d.ts.map +1 -1
  39. package/declarations/components/forms/date-picker/date-picker.d.ts +307 -56
  40. package/declarations/components/forms/date-picker/date-picker.d.ts.map +1 -1
  41. package/declarations/components/forms/input-otp.d.ts +56 -40
  42. package/declarations/components/forms/input-otp.d.ts.map +1 -1
  43. package/declarations/components/forms/input.d.ts +35 -30
  44. package/declarations/components/forms/input.d.ts.map +1 -1
  45. package/declarations/components/forms/label.d.ts +14 -13
  46. package/declarations/components/forms/label.d.ts.map +1 -1
  47. package/declarations/components/forms/native-select.d.ts +66 -18
  48. package/declarations/components/forms/native-select.d.ts.map +1 -1
  49. package/declarations/components/forms/radio-group.d.ts +21 -15
  50. package/declarations/components/forms/radio-group.d.ts.map +1 -1
  51. package/declarations/components/forms/radio.d.ts +30 -14
  52. package/declarations/components/forms/radio.d.ts.map +1 -1
  53. package/declarations/components/forms/select/select.d.ts +186 -36
  54. package/declarations/components/forms/select/select.d.ts.map +1 -1
  55. package/declarations/components/forms/switch.d.ts +56 -39
  56. package/declarations/components/forms/switch.d.ts.map +1 -1
  57. package/declarations/components/forms/textarea.d.ts +53 -16
  58. package/declarations/components/forms/textarea.d.ts.map +1 -1
  59. package/declarations/components/layout/app-layout.d.ts +168 -118
  60. package/declarations/components/layout/app-layout.d.ts.map +1 -1
  61. package/declarations/components/layout/aside.d.ts +168 -118
  62. package/declarations/components/layout/aside.d.ts.map +1 -1
  63. package/declarations/components/layout/navbar.d.ts +168 -118
  64. package/declarations/components/layout/navbar.d.ts.map +1 -1
  65. package/declarations/components/layout/sidebar.d.ts +168 -118
  66. package/declarations/components/layout/sidebar.d.ts.map +1 -1
  67. package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts +42 -31
  68. package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  69. package/declarations/components/navigation/pagination/pagination.d.ts +56 -39
  70. package/declarations/components/navigation/pagination/pagination.d.ts.map +1 -1
  71. package/declarations/components/navigation/stepper/stepper.d.ts +294 -188
  72. package/declarations/components/navigation/stepper/stepper.d.ts.map +1 -1
  73. package/declarations/components/navigation/tab-nav/tab-nav.d.ts +35 -30
  74. package/declarations/components/navigation/tab-nav/tab-nav.d.ts.map +1 -1
  75. package/declarations/components/navigation/tabs/tabs.d.ts +35 -30
  76. package/declarations/components/navigation/tabs/tabs.d.ts.map +1 -1
  77. package/declarations/components/overlays/drawer.d.ts +91 -60
  78. package/declarations/components/overlays/drawer.d.ts.map +1 -1
  79. package/declarations/components/overlays/modal.d.ts +35 -26
  80. package/declarations/components/overlays/modal.d.ts.map +1 -1
  81. package/declarations/components/overlays/popover.d.ts +2 -0
  82. package/declarations/components/overlays/popover.d.ts.map +1 -1
  83. package/declarations/components/status/badge.d.ts +4 -0
  84. package/declarations/components/status/badge.d.ts.map +1 -1
  85. package/declarations/components/utilities/avatar.d.ts +21 -20
  86. package/declarations/components/utilities/avatar.d.ts.map +1 -1
  87. package/dist/components/buttons/button-group.js +1 -1
  88. package/dist/components/buttons/button.js +2 -2
  89. package/dist/components/buttons/chip.js +1 -1
  90. package/dist/components/buttons/close-button.js +1 -1
  91. package/dist/components/buttons/segmented-control/segmented-control.js +1 -1
  92. package/dist/components/buttons/toggle-button.js +1 -1
  93. package/dist/components/collections/calendar/calendar.js +1 -1
  94. package/dist/components/collections/calendar/header.js +1 -1
  95. package/dist/components/collections/calendar/year-grid.js +1 -1
  96. package/dist/components/collections/command/command.js +1 -1
  97. package/dist/components/collections/command/list.js +1 -1
  98. package/dist/components/collections/dropdown/dropdown.js +2 -2
  99. package/dist/components/collections/dropdown/sub.js +1 -1
  100. package/dist/components/collections/listbox/item.js +2 -2
  101. package/dist/components/collections/listbox/listbox.js +2 -2
  102. package/dist/components/collections/table/column-visibility.js +1 -1
  103. package/dist/components/collections/table/sort-button.js +1 -1
  104. package/dist/components/collections/table/table.js +1 -1
  105. package/dist/components/disclosure/accordion/accordion.js +1 -1
  106. package/dist/components/disclosure/accordion/item.js +1 -1
  107. package/dist/components/forms/autocomplete.js +4 -4
  108. package/dist/components/forms/date-input/date-input.js +1 -1
  109. package/dist/components/forms/date-input/segment-group.js +1 -1
  110. package/dist/components/forms/date-picker/date-picker.js +2 -2
  111. package/dist/components/forms/date-picker/end-content.js +1 -1
  112. package/dist/components/forms/date-picker/time-columns.js +2 -2
  113. package/dist/components/forms/form-feedback.js +2 -2
  114. package/dist/components/forms/form.js +1 -1
  115. package/dist/components/forms/input-otp.js +1 -1
  116. package/dist/components/forms/input.js +1 -1
  117. package/dist/components/forms/native-select.js +2 -2
  118. package/dist/components/forms/select/end-content.js +1 -1
  119. package/dist/components/forms/select/select.js +3 -3
  120. package/dist/components/forms/switch.js +2 -2
  121. package/dist/components/layout/app-layout-state.js +1 -1
  122. package/dist/components/layout/app-layout.js +1 -1
  123. package/dist/components/layout/aside-toggle.js +1 -1
  124. package/dist/components/layout/aside.js +1 -1
  125. package/dist/components/layout/bottom-nav-more.js +2 -2
  126. package/dist/components/layout/bottom-nav.js +1 -1
  127. package/dist/components/layout/main.js +1 -1
  128. package/dist/components/layout/menu-toggle.js +1 -1
  129. package/dist/components/layout/nav-context.js +1 -1
  130. package/dist/components/layout/nav-folder.js +2 -2
  131. package/dist/components/layout/nav-item.js +1 -1
  132. package/dist/components/layout/nav-link.js +1 -1
  133. package/dist/components/layout/navbar.js +1 -1
  134. package/dist/components/layout/page-header.js +1 -1
  135. package/dist/components/layout/sidebar-group.js +1 -1
  136. package/dist/components/layout/sidebar-toggle.js +1 -1
  137. package/dist/components/layout/sidebar.js +1 -1
  138. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -1
  139. package/dist/components/navigation/breadcrumbs/item.js +1 -1
  140. package/dist/components/navigation/breadcrumbs/separator.js +1 -1
  141. package/dist/components/navigation/external-link.js +1 -1
  142. package/dist/components/navigation/pagination/pagination.js +2 -2
  143. package/dist/components/navigation/stepper/collapse-menu.js +1 -1
  144. package/dist/components/navigation/stepper/stepper.js +1 -1
  145. package/dist/components/navigation/tab-nav/item.js +1 -1
  146. package/dist/components/navigation/tab-nav/tab-nav.js +1 -1
  147. package/dist/components/navigation/tabs/tabs.js +1 -1
  148. package/dist/components/notifications/index.js +2 -2
  149. package/dist/components/notifications/notification-card.js +3 -3
  150. package/dist/components/notifications/notifications-container.js +2 -2
  151. package/dist/components/overlays/drawer.js +2 -2
  152. package/dist/components/overlays/modal.js +2 -2
  153. package/dist/components/overlays/overlay.js +1 -1
  154. package/dist/components/overlays/popover.js +44 -5
  155. package/dist/components/overlays/popover.js.map +1 -1
  156. package/dist/components/overlays/portal.js +1 -1
  157. package/dist/components/status/alert.js +1 -1
  158. package/dist/components/status/badge.js +4 -0
  159. package/dist/components/status/badge.js.map +1 -1
  160. package/dist/components/status/progress-bar.js +1 -1
  161. package/dist/components/utilities/avatar.js +1 -1
  162. package/dist/components/utilities/kbd.js +1 -1
  163. package/dist/components/utilities/spinner.js +1 -1
  164. package/dist/{control-blur-C8OnSQR5.js → control-blur-ByDW39Z2.js} +1 -1
  165. package/dist/{control-blur-C8OnSQR5.js.map → control-blur-ByDW39Z2.js.map} +1 -1
  166. package/dist/{deprecated-args-BIUjLA8y.js → deprecated-args-D6KS2fwp.js} +1 -1
  167. package/dist/{deprecated-args-BIUjLA8y.js.map → deprecated-args-D6KS2fwp.js.map} +1 -1
  168. package/dist/{dialog-CreV7aPQ.js → dialog-C5sLU1yl.js} +1 -1
  169. package/dist/{dialog-CreV7aPQ.js.map → dialog-C5sLU1yl.js.map} +1 -1
  170. package/dist/{dom-cKWVvtkd.js → dom-CbIZhRH4.js} +1 -1
  171. package/dist/{dom-cKWVvtkd.js.map → dom-CbIZhRH4.js.map} +1 -1
  172. package/dist/{icons-55dthVFk.js → icons-DqlDWFrr.js} +1 -1
  173. package/dist/{icons-55dthVFk.js.map → icons-DqlDWFrr.js.map} +1 -1
  174. package/dist/index.js +2 -2
  175. package/dist/{manager-Dge4r8Vn.js → manager-DFO_x6Jr.js} +2 -2
  176. package/dist/{manager-Dge4r8Vn.js.map → manager-DFO_x6Jr.js.map} +1 -1
  177. package/dist/{notification-card-BPfDo-Gf.js → notification-card-C4mlc9Ac.js} +3 -3
  178. package/dist/{notification-card-BPfDo-Gf.js.map → notification-card-C4mlc9Ac.js.map} +1 -1
  179. package/dist/notifications.js +2 -2
  180. package/dist/{reveal-within-BcqpOmSI.js → reveal-within-BbeisIjK.js} +1 -1
  181. package/dist/{reveal-within-BcqpOmSI.js.map → reveal-within-BbeisIjK.js.map} +1 -1
  182. package/dist/{runtime--fcdnjmJ-BOdRhmsS.js → runtime--fcdnjmJ-DOFHQ2m8.js} +1 -1
  183. package/dist/{runtime--fcdnjmJ-BOdRhmsS.js.map → runtime--fcdnjmJ-DOFHQ2m8.js.map} +1 -1
  184. package/dist/services/notifications.js +1 -1
  185. package/dist/test-support.js +3 -51
  186. package/dist/test-support.js.map +1 -1
  187. package/dist/utils/keys.js +1 -1
  188. package/dist/utils/listManager.js +2 -2
  189. package/dist/utils/ref.js +1 -1
  190. package/dist/utils/toggle.js +1 -1
  191. package/package.json +16 -16
@@ -1 +1 @@
1
- {"version":3,"file":"icons-55dthVFk.js","sources":["../src/-private/icons.gts"],"sourcesContent":["/**\n * Icon components shared across Frontile components (buttons, forms,\n * disclosure, navigation, collections, status/notifications). Kept in one\n * place to avoid duplicating the same SVG in multiple component folders.\n */\nimport type { TOC } from '@ember/component/template-only';\n\nexport interface IconSignature {\n Element: SVGElement;\n}\n\nexport const ChevronDownIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronUpIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m4.5 15.75 7.5-7.5 7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M15.75 19.5 8.25 12l7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m8.25 4.5 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const IconChevronUpDown: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9\"\n />\n </svg>\n</template>;\n\nexport const IconCalendar: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0V11.25A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"\n />\n </svg>\n</template>;\n\nexport const ColumnVisibilityIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z\"\n />\n </svg>\n</template>;\n\nexport const IconInfo: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"info\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M11.25 11.25h.75v4.5h.75M12 8.25h.008v.008H12V8.25ZM21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconSuccess: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"success\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconWarning: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"warning\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z\"\n />\n </svg>\n</template>;\n\nexport const IconDanger: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"danger\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const EllipsisHorizontalIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"\n />\n </svg>\n</template>;\n\nexport const SidebarLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M9 4v16\" />\n </svg>\n</template>;\n\nexport const SidebarRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M15 4v16\" />\n </svg>\n</template>;\n\nexport const MenuIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path d=\"M4 6h16M4 12h16M4 18h16\" />\n </svg>\n</template>;\n"],"names":["ChevronDownIcon","setComponentTemplate","precompileTemplate","strictMode","templateOnly","ChevronUpIcon","ChevronLeftIcon","ChevronRightIcon","ChevronDoubleLeftIcon","ChevronDoubleRightIcon","IconChevronUpDown","IconCalendar","ColumnVisibilityIcon","IconInfo","IconSuccess","IconWarning","IconDanger","EllipsisHorizontalIcon","SidebarLeftIcon","SidebarRightIcon","MenuIcon"],"mappings":";;;;AAAA;;;;;MAWaA,eAAqB,GAAAC,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGC,aAAmB,GAAAJ,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBjD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGE,eAAqB,GAAAL,oBAAA,CAAiBC,kBAAA,CAAA,yQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGG,gBAAsB,GAAAN,oBAAA,CAAiBC,kBAAA,CAAA,uQAAA,E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EAkB1D;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGc,eAAqB,GAAAjB,oBAAA,CAAiBC,kBAAA,CAAA,8UAAA,EAiBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGe,gBAAsB,GAAAlB,oBAAA,CAAiBC,kBAAA,CAAA,+UAAA,EAiBpD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGgB,QAAc,GAAAnB,oBAAA,CAAiBC,kBAAA,CAAA,8RAAA,EAgB5C;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"icons-DqlDWFrr.js","sources":["../src/-private/icons.gts"],"sourcesContent":["/**\n * Icon components shared across Frontile components (buttons, forms,\n * disclosure, navigation, collections, status/notifications). Kept in one\n * place to avoid duplicating the same SVG in multiple component folders.\n */\nimport type { TOC } from '@ember/component/template-only';\n\nexport interface IconSignature {\n Element: SVGElement;\n}\n\nexport const ChevronDownIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronUpIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m4.5 15.75 7.5-7.5 7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M15.75 19.5 8.25 12l7.5-7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m8.25 4.5 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const ChevronDoubleRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5\"\n />\n </svg>\n</template>;\n\nexport const IconChevronUpDown: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9\"\n />\n </svg>\n</template>;\n\nexport const IconCalendar: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0V11.25A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"\n />\n </svg>\n</template>;\n\nexport const ColumnVisibilityIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z\"\n />\n </svg>\n</template>;\n\nexport const IconInfo: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"info\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M11.25 11.25h.75v4.5h.75M12 8.25h.008v.008H12V8.25ZM21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconSuccess: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"success\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const IconWarning: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"warning\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z\"\n />\n </svg>\n</template>;\n\nexport const IconDanger: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n data-test-icon=\"danger\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\n />\n </svg>\n</template>;\n\nexport const EllipsisHorizontalIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n d=\"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"\n />\n </svg>\n</template>;\n\nexport const SidebarLeftIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M9 4v16\" />\n </svg>\n</template>;\n\nexport const SidebarRightIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M15 4v16\" />\n </svg>\n</template>;\n\nexport const MenuIcon: TOC<IconSignature> = <template>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n width=\"20\"\n height=\"20\"\n stroke-width=\"2\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n ...attributes\n >\n <path d=\"M4 6h16M4 12h16M4 18h16\" />\n </svg>\n</template>;\n"],"names":["ChevronDownIcon","setComponentTemplate","precompileTemplate","strictMode","templateOnly","ChevronUpIcon","ChevronLeftIcon","ChevronRightIcon","ChevronDoubleLeftIcon","ChevronDoubleRightIcon","IconChevronUpDown","IconCalendar","ColumnVisibilityIcon","IconInfo","IconSuccess","IconWarning","IconDanger","EllipsisHorizontalIcon","SidebarLeftIcon","SidebarRightIcon","MenuIcon"],"mappings":";;;;AAAA;;;;;MAWaA,eAAqB,GAAAC,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGC,aAAmB,GAAAJ,oBAAA,CAAiBC,kBAAA,CAAA,wQAAA,EAgBjD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGE,eAAqB,GAAAL,oBAAA,CAAiBC,kBAAA,CAAA,yQAAA,EAgBnD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGG,gBAAsB,GAAAN,oBAAA,CAAiBC,kBAAA,CAAA,uQAAA,EAgBpD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGI,qBAA2B,GAAAP,oBAAA,CAAiBC,kBAAA,CAAA,8RAAA,EAgBzD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGK,sBAA4B,GAAAR,oBAAA,CAAiBC,kBAAA,CAAA,4RAAA,EAgB1D;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGM,iBAAuB,GAAAT,oBAAA,CAAiBC,kBAAA,CAAA,+RAAA,EAgBrD;EAAAC,UAAA,EAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;MAEGO,YAAkB,GAAAV,oBAAA,CAAiBC,kBAAA,CAAA,gdAAA,EAgBhD;EAAAC,UAAA,EAAA;AAAU,CAAA,C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umbsEllipsis } from './components/navigation/breadcrumbs/ellipsis.js';
89
89
  export { Accordion } from './components/disclosure/accordion/accordion.js';
90
90
  export { AccordionItem } from './components/disclosure/accordion/item.js';
91
- import './manager-Dge4r8Vn.js';
91
+ import './manager-DFO_x6Jr.js';
92
92
  import '@ember/service';
93
- export { N as NotificationCard } from './notification-card-BPfDo-Gf.js';
93
+ export { N as NotificationCard } from './notification-card-C4mlc9Ac.js';
94
94
  export { NotificationsContainer } from './components/notifications/notifications-container.js';
95
95
  export { AppLayoutState } from './components/layout/app-layout-state.js';
96
96
  export { AppLayout } from './components/layout/app-layout.js';
@@ -1,7 +1,7 @@
1
1
  import { tracked } from '@glimmer/tracking';
2
2
  import { deprecate, assert } from '@ember/debug';
3
3
  import { cancel, later } from '@ember/runloop';
4
- import { d as decorateFieldV2, i as initializeDeferredDecorator } from './runtime--fcdnjmJ-BOdRhmsS.js';
4
+ import { d as decorateFieldV2, i as initializeDeferredDecorator } from './runtime--fcdnjmJ-DOFHQ2m8.js';
5
5
  import { getOwner } from '@ember/owner';
6
6
  import { isDestroyed } from '@ember/destroyable';
7
7
 
@@ -379,4 +379,4 @@ class NotificationsManager {
379
379
  }
380
380
 
381
381
  export { Notification as N, Timer as T, NotificationsManager as a };
382
- //# sourceMappingURL=manager-Dge4r8Vn.js.map
382
+ //# sourceMappingURL=manager-DFO_x6Jr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"manager-Dge4r8Vn.js","sources":["../src/-private/timer.ts","../src/-private/get-config.ts","../src/-private/notification.ts","../src/-private/manager.ts"],"sourcesContent":["import { tracked } from '@glimmer/tracking';\nimport { later, cancel } from '@ember/runloop';\nimport type { Timer as EmberTimer } from '@ember/runloop';\n\nexport default class Timer {\n @tracked remaining: number;\n @tracked isRunning = true;\n\n readonly onFinish: () => void;\n private timer?: EmberTimer;\n private start!: number;\n\n constructor(duration: number, onFinish: () => void) {\n this.remaining = duration;\n this.onFinish = onFinish;\n this.setup();\n }\n\n clear = (): void => {\n this.isRunning = false;\n\n if (this.timer) {\n cancel(this.timer);\n }\n };\n\n pause = (): void => {\n // Pausing an already paused timer would subtract the elapsed time twice,\n // eventually driving `remaining` to zero or below.\n if (!this.isRunning) {\n return;\n }\n\n this.clear();\n this.remaining = Math.max(0, this.remaining - (Date.now() - this.start));\n };\n\n resume = (): void => {\n // Already counting down; resuming again would restart the remaining time.\n if (this.isRunning) {\n return;\n }\n\n this.clear();\n this.setup();\n };\n\n private setup(): void {\n this.start = Date.now();\n this.isRunning = true;\n\n this.timer = later(\n this,\n () => {\n this.onFinish();\n this.isRunning = false;\n },\n this.remaining\n );\n }\n}\n","import type { DefaultConfig } from './types';\n\nexport function getConfigOption<T extends keyof DefaultConfig>(\n config: DefaultConfig,\n key: T,\n defaultValue: NonNullable<DefaultConfig[T]>\n): NonNullable<DefaultConfig[T]> {\n const value = config[key];\n\n if (value === undefined) {\n return defaultValue;\n }\n\n return value;\n}\n","import { tracked } from '@glimmer/tracking';\nimport { deprecate } from '@ember/debug';\nimport Timer from './timer';\nimport { getConfigOption } from './get-config';\nimport type {\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n NotificationAppearance,\n NotificationUpdate,\n CustomAction,\n DefaultConfig\n} from './types';\n\n/**\n * Normalise the two content forms into `{ title, description }`.\n */\nfunction toContent(content: string | NotificationContent): NotificationContent {\n return typeof content === 'string' ? { title: content } : content;\n}\n\n/**\n * Emit the shared deprecation notice and remap `error` onto `danger`. Used\n * for both the option-level and config-level `appearance` fallbacks in\n * `resolveStatus`, which must apply the same remap.\n */\nfunction mapAppearance(appearance: NotificationAppearance): NotificationStatus {\n deprecate(\n 'The `appearance` option for notifications is deprecated. Use `status` instead, and `danger` in place of `error`.',\n false,\n {\n id: 'frontile.notification-appearance',\n until: '0.19.0',\n for: 'frontile',\n since: { available: '0.18.0', enabled: '0.18.0' }\n }\n );\n\n if (appearance === 'error') return 'danger';\n // `info` folded into `primary` when the axis became `status`.\n if (appearance === 'info') return 'primary';\n\n return appearance;\n}\n\n/**\n * Resolve the notification status from the current option, the deprecated\n * `appearance` option, and the app config, in that order.\n */\nfunction resolveStatus(\n config: DefaultConfig,\n options: NotificationOptions\n): NotificationStatus {\n if (options.status) {\n return options.status;\n }\n\n if (options.appearance) {\n return mapAppearance(options.appearance);\n }\n\n if (config.status) {\n return config.status;\n }\n\n if (config.appearance) {\n return mapAppearance(config.appearance);\n }\n\n // `config.status`/`config.appearance` were already read directly above, so\n // there is no distinct config lookup left to fall back to.\n return 'neutral';\n}\n\nexport default class Notification<\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n> {\n /**\n * The title of the notification. Named `message` for backwards\n * compatibility with the original single-string API.\n */\n @tracked message: string;\n @tracked description?: string;\n @tracked status: NotificationStatus;\n @tracked allowClosing: boolean;\n @tracked isLoading: boolean;\n @tracked customActions?: CustomAction[];\n @tracked timer?: Timer;\n @tracked isRemoving = false;\n\n readonly transitionDuration: number;\n readonly duration: number;\n readonly hideIcon: boolean;\n readonly metadata?: TMetadata;\n\n constructor(\n config: DefaultConfig,\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ) {\n const { title, description } = toContent(content);\n\n this.message = title;\n // An object content form owns the description outright; the option is only\n // a convenience for the string form.\n this.description =\n typeof content === 'string' ? options.description : description;\n this.status = resolveStatus(config, options);\n this.isLoading = options.isLoading === true;\n this.hideIcon = options.hideIcon === true;\n this.customActions = options.customActions;\n this.duration =\n options.duration || getConfigOption(config, 'duration', 5000);\n this.transitionDuration =\n typeof options.transitionDuration !== 'undefined'\n ? options.transitionDuration\n : getConfigOption(config, 'transitionDuration', 200);\n this.metadata = options.metadata;\n this.allowClosing = options.allowClosing !== false;\n }\n\n /** Read-only alias of `message` — do not add a setter. */\n get title(): string {\n return this.message;\n }\n\n /**\n * @deprecated Read `status` instead.\n *\n * The return type is widened to include `'default'` because `default` is\n * new vocabulary introduced alongside this getter's deprecation — it has\n * no equivalent in the old `NotificationAppearance` names, so mapping it\n * onto `'info'` here would silently lie about the notification's status.\n * Everything else keeps the old four-value shape.\n */\n get appearance(): 'default' | 'info' | 'success' | 'warning' | 'error' {\n if (this.status === 'danger') return 'error';\n if (this.status === 'neutral') return 'default';\n if (this.status === 'primary') return 'info';\n\n return this.status;\n }\n\n /**\n * Mutate the notification in place. Used by `promise()` so a settling\n * promise swaps the content of the toast already on screen rather than\n * replacing it with a new one.\n */\n update(changes: NotificationUpdate): void {\n if (typeof changes.title !== 'undefined') {\n this.message = changes.title;\n }\n\n if (typeof changes.description !== 'undefined') {\n this.description = changes.description;\n }\n\n if (typeof changes.status !== 'undefined') {\n this.status = changes.status;\n }\n\n if (typeof changes.allowClosing !== 'undefined') {\n this.allowClosing = changes.allowClosing;\n }\n\n if (typeof changes.isLoading !== 'undefined') {\n this.isLoading = changes.isLoading;\n }\n }\n\n remove(): void {\n this.isRemoving = true;\n\n if (this.timer) {\n this.timer.clear();\n }\n }\n}\n","import Notification from './notification';\nimport Timer from './timer';\nimport { tracked } from '@glimmer/tracking';\nimport { assert } from '@ember/debug';\nimport { getConfigOption } from './get-config';\nimport { getOwner } from '@ember/owner';\nimport { isDestroyed } from '@ember/destroyable';\nimport { later } from '@ember/runloop';\nimport type Owner from '@ember/owner';\nimport type {\n DefaultConfig,\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n PromiseMessage,\n PromiseNotificationOptions\n} from './types';\n\nfunction resolveMessage<T>(\n message: PromiseMessage<T>,\n value: T\n): NotificationContent {\n const resolved = typeof message === 'function' ? message(value) : message;\n return typeof resolved === 'string' ? { title: resolved } : resolved;\n}\n\n/**\n * Whether a notification should get an auto-removal timer, given its own\n * `preserve` option and the manager's config. An explicit `preserve` wins;\n * otherwise the config's `preserve` default applies. Either way, a\n * config-level `skipTimer: true` forces preservation — there's no timer to\n * skip if the notification is never auto-removed in the first place.\n *\n * Shared by `add()` and `promise()`'s settle path, which must apply this\n * decision identically.\n */\nfunction shouldAutoRemove(\n config: DefaultConfig,\n preserveOption: boolean | undefined\n): boolean {\n const preserve =\n typeof preserveOption === 'undefined'\n ? getConfigOption(config, 'preserve', false)\n : preserveOption;\n\n if (getConfigOption(config, 'skipTimer', false) === true) {\n return false;\n }\n\n return preserve === false;\n}\n\nexport default class NotificationsManager {\n @tracked notifications: Notification<Record<string, unknown>>[] = [];\n\n config: DefaultConfig = {};\n onRemove?: (notification: Notification<Record<string, unknown>>) => void;\n\n constructor(\n context: object,\n onRemove?: (notification: Notification<Record<string, unknown>>) => void\n ) {\n if (isDestroyed(context)) {\n return;\n }\n const owner = getOwner(context) as Owner;\n assert('NotificationsManager context must have an owner', owner);\n const configFactory = owner.factoryFor('config:environment');\n\n if (configFactory && configFactory.class) {\n this.config =\n (configFactory.class as never)['@frontile/notifications'] || {};\n }\n\n this.onRemove = onRemove;\n }\n\n add<TMetadata extends Record<string, unknown> = Record<string, unknown>>(\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ): Notification<TMetadata> {\n const notification = new Notification<TMetadata>(\n this.config,\n content,\n options\n );\n this.notifications = [...this.notifications, notification];\n\n if (shouldAutoRemove(this.config, options.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n return notification;\n }\n\n /**\n * Show a notification driven by a promise: a spinner while pending, then\n * the same notification mutated in place once it settles.\n *\n * Returns the original promise, so callers can still await it — and are\n * still responsible for handling its rejection.\n */\n promise<\n T,\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n >(\n promise: Promise<T>,\n options: PromiseNotificationOptions<T, TMetadata>\n ): Promise<T> {\n const { loading, success, error, ...rest } = options;\n\n const notification = this.add<TMetadata>(loading, {\n ...(rest as NotificationOptions<TMetadata>),\n preserve: true,\n allowClosing: false,\n isLoading: true\n });\n\n const settle = (\n content: NotificationContent,\n status: NotificationStatus\n ) => {\n // The user may have dismissed the toast before the promise settled; in\n // that case there is nothing left to update.\n if (notification.isRemoving) {\n return;\n }\n\n notification.update({\n ...content,\n // `update()` treats an absent key as \"leave this field alone\" (that\n // distinction is load-bearing elsewhere), so a settle message with\n // no description must still pass an explicit empty string here —\n // otherwise `resolveMessage`'s string-form `{ title }` (no\n // `description` key at all) would leave the loading phase's stale\n // description on screen instead of clearing it.\n description: content.description ?? '',\n status,\n allowClosing: true,\n isLoading: false\n });\n\n // `preserve: true` forces the loading phase to skip auto-dismissal\n // (there's nothing useful to time out on a spinner), but the docs\n // promise every option except `isLoading` carries through to the\n // settled notification — so a caller's own `preserve` must still be\n // honored here, not silently overridden by the loading phase's.\n if (shouldAutoRemove(this.config, rest.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n };\n\n promise.then(\n (value) => settle(resolveMessage(success, value), 'success'),\n (reason) => settle(resolveMessage(error, reason), 'danger')\n );\n\n return promise;\n }\n\n remove(notification?: Notification<Record<string, unknown>>): void {\n // Removal is single-shot: a notification already on its way out must not\n // schedule a second removal, otherwise `onRemove` is called twice for it.\n if (!notification || notification.isRemoving) {\n return;\n }\n\n notification.remove();\n\n // The unmount is timed to `transitionDuration` (default 200ms), which\n // governs the card's exit *opacity* fade. The exit *slide/scale*\n // transform, however, runs at a fixed 400ms (see notificationCard's\n // theme slots) independent of `transitionDuration`. At the defaults this\n // is invisible only because the opacity reaches 0 at the same moment the\n // card unmounts, hiding the fact that the slide is truncated mid-flight.\n // If the opacity duration is ever decoupled from this unmount timer (or\n // `transitionDuration` is changed without also revisiting the transform\n // duration), cards will visibly disappear mid-slide instead of fading\n // out cleanly. Keep the two in sync, or make the unmount wait for the\n // longer of the two durations.\n later(\n this,\n () => {\n this.notifications = this.notifications.filter((n) => {\n return n !== notification;\n });\n\n // Call the onRemove callback after the notification is actually removed\n if (this.onRemove) {\n this.onRemove(notification);\n }\n },\n notification.transitionDuration\n );\n }\n\n removeAll(): void {\n this.notifications.forEach((notification) => {\n this.remove(notification);\n });\n }\n\n private setupAutoRemoval(\n notification: Notification<Record<string, unknown>>,\n duration: number\n ): void {\n notification.timer = new Timer(duration, () => {\n this.remove(notification);\n });\n }\n}\n"],"names":["Timer","g","prototype","tracked","i","onFinish","timer","start","constructor","duration","remaining","setup","clear","isRunning","cancel","pause","Math","max","Date","now","resume","later","getConfigOption","config","key","defaultValue","value","undefined","toContent","content","title","mapAppearance","appearance","deprecate","id","until","for","since","available","enabled","resolveStatus","options","status","Notification","transitionDuration","hideIcon","metadata","description","message","isLoading","customActions","allowClosing","update","changes","remove","isRemoving","resolveMessage","resolved","shouldAutoRemove","preserveOption","preserve","NotificationsManager","onRemove","context","isDestroyed","owner","getOwner","assert","configFactory","factoryFor","class","add","notification","notifications","setupAutoRemoval","promise","loading","success","error","rest","settle","then","reason","filter","n","removeAll","forEach"],"mappings":";;;;;;;AAIe,MAAMA,KAAK,CAAC;AAAA,EAAA;IAAAC,eAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CACxBC,OAAO,CAAA,CAAA;AAAA;EAAA,UAAA,IAAAC,2BAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAA,MAAA;AAAA,EAAA;IAAAH,eAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CACPC,OAAO,CAAA,EAAA,YAAA;AAAA,MAAA,OAAa,IAAI;AAAA,IAAA,CAAA,CAAA;AAAA;EAAA,UAAA,IAAAC,2BAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAA,MAAA;EAEhBC,QAAQ;EACTC,KAAK;EACLC,KAAK;AAEbC,EAAAA,WAAWA,CAACC,QAAgB,EAAEJ,QAAoB,EAAE;IAClD,IAAI,CAACK,SAAS,GAAGD,QAAQ;IACzB,IAAI,CAACJ,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACM,KAAK,EAAE;AACd,EAAA;EAEAC,KAAK,GAAGA,MAAY;IAClB,IAAI,CAACC,SAAS,GAAG,KAAK;IAEtB,IAAI,IAAI,CAACP,KAAK,EAAE;AACdQ,MAAAA,MAAM,CAAC,IAAI,CAACR,KAAK,CAAC;AACpB,IAAA;EACF,CAAC;EAEDS,KAAK,GAAGA,MAAY;AAClB;A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EAAA;AAEQE,EAAAA,gBAAgBA,CACtBF,YAAmD,EACnD/D,QAAgB,EACV;IACN+D,YAAY,CAAClE,KAAK,GAAG,IAAIN,KAAK,CAACS,QAAQ,EAAE,MAAM;AAC7C,MAAA,IAAI,CAAC6C,MAAM,CAACkB,YAAY,CAAC;AAC3B,IAAA,CAAC,CAAC;AACJ,EAAA;AACF;;"}
1
+ {"version":3,"file":"manager-DFO_x6Jr.js","sources":["../src/-private/timer.ts","../src/-private/get-config.ts","../src/-private/notification.ts","../src/-private/manager.ts"],"sourcesContent":["import { tracked } from '@glimmer/tracking';\nimport { later, cancel } from '@ember/runloop';\nimport type { Timer as EmberTimer } from '@ember/runloop';\n\nexport default class Timer {\n @tracked remaining: number;\n @tracked isRunning = true;\n\n readonly onFinish: () => void;\n private timer?: EmberTimer;\n private start!: number;\n\n constructor(duration: number, onFinish: () => void) {\n this.remaining = duration;\n this.onFinish = onFinish;\n this.setup();\n }\n\n clear = (): void => {\n this.isRunning = false;\n\n if (this.timer) {\n cancel(this.timer);\n }\n };\n\n pause = (): void => {\n // Pausing an already paused timer would subtract the elapsed time twice,\n // eventually driving `remaining` to zero or below.\n if (!this.isRunning) {\n return;\n }\n\n this.clear();\n this.remaining = Math.max(0, this.remaining - (Date.now() - this.start));\n };\n\n resume = (): void => {\n // Already counting down; resuming again would restart the remaining time.\n if (this.isRunning) {\n return;\n }\n\n this.clear();\n this.setup();\n };\n\n private setup(): void {\n this.start = Date.now();\n this.isRunning = true;\n\n this.timer = later(\n this,\n () => {\n this.onFinish();\n this.isRunning = false;\n },\n this.remaining\n );\n }\n}\n","import type { DefaultConfig } from './types';\n\nexport function getConfigOption<T extends keyof DefaultConfig>(\n config: DefaultConfig,\n key: T,\n defaultValue: NonNullable<DefaultConfig[T]>\n): NonNullable<DefaultConfig[T]> {\n const value = config[key];\n\n if (value === undefined) {\n return defaultValue;\n }\n\n return value;\n}\n","import { tracked } from '@glimmer/tracking';\nimport { deprecate } from '@ember/debug';\nimport Timer from './timer';\nimport { getConfigOption } from './get-config';\nimport type {\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n NotificationAppearance,\n NotificationUpdate,\n CustomAction,\n DefaultConfig\n} from './types';\n\n/**\n * Normalise the two content forms into `{ title, description }`.\n */\nfunction toContent(content: string | NotificationContent): NotificationContent {\n return typeof content === 'string' ? { title: content } : content;\n}\n\n/**\n * Emit the shared deprecation notice and remap `error` onto `danger`. Used\n * for both the option-level and config-level `appearance` fallbacks in\n * `resolveStatus`, which must apply the same remap.\n */\nfunction mapAppearance(appearance: NotificationAppearance): NotificationStatus {\n deprecate(\n 'The `appearance` option for notifications is deprecated. Use `status` instead, and `danger` in place of `error`.',\n false,\n {\n id: 'frontile.notification-appearance',\n until: '0.19.0',\n for: 'frontile',\n since: { available: '0.18.0', enabled: '0.18.0' }\n }\n );\n\n if (appearance === 'error') return 'danger';\n // `info` folded into `primary` when the axis became `status`.\n if (appearance === 'info') return 'primary';\n\n return appearance;\n}\n\n/**\n * Resolve the notification status from the current option, the deprecated\n * `appearance` option, and the app config, in that order.\n */\nfunction resolveStatus(\n config: DefaultConfig,\n options: NotificationOptions\n): NotificationStatus {\n if (options.status) {\n return options.status;\n }\n\n if (options.appearance) {\n return mapAppearance(options.appearance);\n }\n\n if (config.status) {\n return config.status;\n }\n\n if (config.appearance) {\n return mapAppearance(config.appearance);\n }\n\n // `config.status`/`config.appearance` were already read directly above, so\n // there is no distinct config lookup left to fall back to.\n return 'neutral';\n}\n\nexport default class Notification<\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n> {\n /**\n * The title of the notification. Named `message` for backwards\n * compatibility with the original single-string API.\n */\n @tracked message: string;\n @tracked description?: string;\n @tracked status: NotificationStatus;\n @tracked allowClosing: boolean;\n @tracked isLoading: boolean;\n @tracked customActions?: CustomAction[];\n @tracked timer?: Timer;\n @tracked isRemoving = false;\n\n readonly transitionDuration: number;\n readonly duration: number;\n readonly hideIcon: boolean;\n readonly metadata?: TMetadata;\n\n constructor(\n config: DefaultConfig,\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ) {\n const { title, description } = toContent(content);\n\n this.message = title;\n // An object content form owns the description outright; the option is only\n // a convenience for the string form.\n this.description =\n typeof content === 'string' ? options.description : description;\n this.status = resolveStatus(config, options);\n this.isLoading = options.isLoading === true;\n this.hideIcon = options.hideIcon === true;\n this.customActions = options.customActions;\n this.duration =\n options.duration || getConfigOption(config, 'duration', 5000);\n this.transitionDuration =\n typeof options.transitionDuration !== 'undefined'\n ? options.transitionDuration\n : getConfigOption(config, 'transitionDuration', 200);\n this.metadata = options.metadata;\n this.allowClosing = options.allowClosing !== false;\n }\n\n /** Read-only alias of `message` — do not add a setter. */\n get title(): string {\n return this.message;\n }\n\n /**\n * @deprecated Read `status` instead.\n *\n * The return type is widened to include `'default'` because `default` is\n * new vocabulary introduced alongside this getter's deprecation — it has\n * no equivalent in the old `NotificationAppearance` names, so mapping it\n * onto `'info'` here would silently lie about the notification's status.\n * Everything else keeps the old four-value shape.\n */\n get appearance(): 'default' | 'info' | 'success' | 'warning' | 'error' {\n if (this.status === 'danger') return 'error';\n if (this.status === 'neutral') return 'default';\n if (this.status === 'primary') return 'info';\n\n return this.status;\n }\n\n /**\n * Mutate the notification in place. Used by `promise()` so a settling\n * promise swaps the content of the toast already on screen rather than\n * replacing it with a new one.\n */\n update(changes: NotificationUpdate): void {\n if (typeof changes.title !== 'undefined') {\n this.message = changes.title;\n }\n\n if (typeof changes.description !== 'undefined') {\n this.description = changes.description;\n }\n\n if (typeof changes.status !== 'undefined') {\n this.status = changes.status;\n }\n\n if (typeof changes.allowClosing !== 'undefined') {\n this.allowClosing = changes.allowClosing;\n }\n\n if (typeof changes.isLoading !== 'undefined') {\n this.isLoading = changes.isLoading;\n }\n }\n\n remove(): void {\n this.isRemoving = true;\n\n if (this.timer) {\n this.timer.clear();\n }\n }\n}\n","import Notification from './notification';\nimport Timer from './timer';\nimport { tracked } from '@glimmer/tracking';\nimport { assert } from '@ember/debug';\nimport { getConfigOption } from './get-config';\nimport { getOwner } from '@ember/owner';\nimport { isDestroyed } from '@ember/destroyable';\nimport { later } from '@ember/runloop';\nimport type Owner from '@ember/owner';\nimport type {\n DefaultConfig,\n NotificationOptions,\n NotificationContent,\n NotificationStatus,\n PromiseMessage,\n PromiseNotificationOptions\n} from './types';\n\nfunction resolveMessage<T>(\n message: PromiseMessage<T>,\n value: T\n): NotificationContent {\n const resolved = typeof message === 'function' ? message(value) : message;\n return typeof resolved === 'string' ? { title: resolved } : resolved;\n}\n\n/**\n * Whether a notification should get an auto-removal timer, given its own\n * `preserve` option and the manager's config. An explicit `preserve` wins;\n * otherwise the config's `preserve` default applies. Either way, a\n * config-level `skipTimer: true` forces preservation — there's no timer to\n * skip if the notification is never auto-removed in the first place.\n *\n * Shared by `add()` and `promise()`'s settle path, which must apply this\n * decision identically.\n */\nfunction shouldAutoRemove(\n config: DefaultConfig,\n preserveOption: boolean | undefined\n): boolean {\n const preserve =\n typeof preserveOption === 'undefined'\n ? getConfigOption(config, 'preserve', false)\n : preserveOption;\n\n if (getConfigOption(config, 'skipTimer', false) === true) {\n return false;\n }\n\n return preserve === false;\n}\n\nexport default class NotificationsManager {\n @tracked notifications: Notification<Record<string, unknown>>[] = [];\n\n config: DefaultConfig = {};\n onRemove?: (notification: Notification<Record<string, unknown>>) => void;\n\n constructor(\n context: object,\n onRemove?: (notification: Notification<Record<string, unknown>>) => void\n ) {\n if (isDestroyed(context)) {\n return;\n }\n const owner = getOwner(context) as Owner;\n assert('NotificationsManager context must have an owner', owner);\n const configFactory = owner.factoryFor('config:environment');\n\n if (configFactory && configFactory.class) {\n this.config =\n (configFactory.class as never)['@frontile/notifications'] || {};\n }\n\n this.onRemove = onRemove;\n }\n\n add<TMetadata extends Record<string, unknown> = Record<string, unknown>>(\n content: string | NotificationContent,\n options: NotificationOptions<TMetadata> = {}\n ): Notification<TMetadata> {\n const notification = new Notification<TMetadata>(\n this.config,\n content,\n options\n );\n this.notifications = [...this.notifications, notification];\n\n if (shouldAutoRemove(this.config, options.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n return notification;\n }\n\n /**\n * Show a notification driven by a promise: a spinner while pending, then\n * the same notification mutated in place once it settles.\n *\n * Returns the original promise, so callers can still await it — and are\n * still responsible for handling its rejection.\n */\n promise<\n T,\n TMetadata extends Record<string, unknown> = Record<string, unknown>\n >(\n promise: Promise<T>,\n options: PromiseNotificationOptions<T, TMetadata>\n ): Promise<T> {\n const { loading, success, error, ...rest } = options;\n\n const notification = this.add<TMetadata>(loading, {\n ...(rest as NotificationOptions<TMetadata>),\n preserve: true,\n allowClosing: false,\n isLoading: true\n });\n\n const settle = (\n content: NotificationContent,\n status: NotificationStatus\n ) => {\n // The user may have dismissed the toast before the promise settled; in\n // that case there is nothing left to update.\n if (notification.isRemoving) {\n return;\n }\n\n notification.update({\n ...content,\n // `update()` treats an absent key as \"leave this field alone\" (that\n // distinction is load-bearing elsewhere), so a settle message with\n // no description must still pass an explicit empty string here —\n // otherwise `resolveMessage`'s string-form `{ title }` (no\n // `description` key at all) would leave the loading phase's stale\n // description on screen instead of clearing it.\n description: content.description ?? '',\n status,\n allowClosing: true,\n isLoading: false\n });\n\n // `preserve: true` forces the loading phase to skip auto-dismissal\n // (there's nothing useful to time out on a spinner), but the docs\n // promise every option except `isLoading` carries through to the\n // settled notification — so a caller's own `preserve` must still be\n // honored here, not silently overridden by the loading phase's.\n if (shouldAutoRemove(this.config, rest.preserve)) {\n this.setupAutoRemoval(notification, notification.duration);\n }\n };\n\n promise.then(\n (value) => settle(resolveMessage(success, value), 'success'),\n (reason) => settle(resolveMessage(error, reason), 'danger')\n );\n\n return promise;\n }\n\n remove(notification?: Notification<Record<string, unknown>>): void {\n // Removal is single-shot: a notification already on its way out must not\n // schedule a second removal, otherwise `onRemove` is called twice for it.\n if (!notification || notification.isRemoving) {\n return;\n }\n\n notification.remove();\n\n // The unmount is timed to `transitionDuration` (default 200ms), which\n // governs the card's exit *opacity* fade. The exit *slide/scale*\n // transform, however, runs at a fixed 400ms (see notificationCard's\n // theme slots) independent of `transitionDuration`. At the defaults this\n // is invisible only because the opacity reaches 0 at the same moment the\n // card unmounts, hiding the fact that the slide is truncated mid-flight.\n // If the opacity duration is ever decoupled from this unmount timer (or\n // `transitionDuration` is changed without also revisiting the transform\n // duration), cards will visibly disappear mid-slide instead of fading\n // out cleanly. Keep the two in sync, or make the unmount wait for the\n // longer of the two durations.\n later(\n this,\n () => {\n this.notifications = this.notifications.filter((n) => {\n return n !== notification;\n });\n\n // Call the onRemove callback after the notification is actually removed\n if (this.onRemove) {\n this.onRemove(notification);\n }\n },\n notification.transitionDuration\n );\n }\n\n removeAll(): void {\n this.notifications.forEach((notification) => {\n this.remove(notification);\n });\n }\n\n private setupAutoRemoval(\n notification: Notification<Record<string, unknown>>,\n duration: number\n ): void {\n notification.timer = new Timer(duration, () => {\n this.remove(notification);\n });\n }\n}\n"],"names":["Timer","g","prototype","tracked","i","onFinish","timer","start","constructor","duration","remaining","setup","clear","isRunning","cancel","pause","Math","max","Date","now","resume","later","getConfigOption","config","key","defaultValue","value","undefined","toContent","content","title","mapAppearance","appearance","deprecate","id","until","for","since","available","enabled","resolveStatus","options","status","Notification","transitionDuration","hideIcon","metadata","description","message","isLoading","customActions","allowClosing","update","changes","remove","isRemoving","resolveMessage","resolved","shouldAutoRemove","preserveOption","preserve","NotificationsManager","onRemove","context","isDestroyed","owner","getOwner","assert","configFactory","factoryFor","class","add","notification","notifications","setupAutoRemoval","promise","loading","success","error","rest","settle","then","reason","filter","n","removeAll","forEach"],"mappings":";;;;;;;AAIe,MAAMA,KAAK,CAAC;AAAA,EAAA;IAAAC,eAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CACxBC,OAAO,CAAA,CAAA;AAAA;EAAA,UAAA,IAAAC,2BAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAA,MAAA;AAAA,EAAA;IAAAH,eAAA,CAAA,IAAA,CAAA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AEAiB,YAAY,CAAClB,MAAM,EAAE;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACAjC,KAAK,CACH,IAAI,EACJ,MAAM;MACJ,IAAI,CAACoD,aAAa,GAAG,IAAI,CAACA,aAAa,CAACU,MAAM,CAAEC,CAAC,IAAK;QACpD,OAAOA,CAAC,KAAKZ,YAAY;AAC3B,MAAA,CAAC,CAAC;;AAEF;MACA,IAAI,IAAI,CAACV,QAAQ,EAAE;AACjB,QAAA,IAAI,CAACA,QAAQ,CAACU,YAAY,CAAC;AAC7B,MAAA;AACF,IAAA,CAAC,EACDA,YAAY,CAAC5B,kBACf,CAAC;AACH,EAAA;AAEAyC,EAAAA,SAASA,GAAS;AAChB,IAAA,IAAI,CAACZ,aAAa,CAACa,OAAO,CAAEd,YAAY,IAAK;AAC3C,MAAA,IAAI,CAAClB,MAAM,CAACkB,YAAY,CAAC;AAC3B,IAAA,CAAC,CAAC;AACJ,EAAA;AAEQE,EAAAA,gBAAgBA,CACtBF,YAAmD,EACnD/D,QAAgB,EACV;IACN+D,YAAY,CAAClE,KAAK,GAAG,IAAIN,KAAK,CAACS,QAAQ,EAAE,MAAM;AAC7C,MAAA,IAAI,CAAC6C,MAAM,CAACkB,YAAY,CAAC;AAC3B,IAAA,CAAC,CAAC;AACJ,EAAA;AACF;;"}
@@ -7,11 +7,11 @@ import { fn } from '@ember/helper';
7
7
  import { CloseButton } from './components/buttons/close-button.js';
8
8
  import { Button } from './components/buttons/button.js';
9
9
  import { Spinner } from './components/utilities/spinner.js';
10
- import { i as IconDanger, j as IconWarning, k as IconSuccess, l as IconInfo } from './icons-55dthVFk.js';
10
+ import { i as IconDanger, j as IconWarning, k as IconSuccess, l as IconInfo } from './icons-DqlDWFrr.js';
11
11
  import { useStyles } from '@frontile/theme';
12
12
  import { precompileTemplate } from '@ember/template-compilation';
13
13
  import { setComponentTemplate } from '@ember/component';
14
- import { d as decorateFieldV2, i as initializeDeferredDecorator } from './runtime--fcdnjmJ-BOdRhmsS.js';
14
+ import { d as decorateFieldV2, i as initializeDeferredDecorator } from './runtime--fcdnjmJ-DOFHQ2m8.js';
15
15
 
16
16
  /**
17
17
  * How much each card behind the front of the stack shrinks, as a fraction.
@@ -330,4 +330,4 @@ class NotificationCard extends Component {
330
330
  }
331
331
 
332
332
  export { NotificationCard as N, NotificationStack as a };
333
- //# sourceMappingURL=notification-card-BPfDo-Gf.js.map
333
+ //# sourceMappingURL=notification-card-C4mlc9Ac.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification-card-BPfDo-Gf.js","sources":["../src/-private/notification-stack.ts","../src/components/notifications/notification-card.gts"],"sourcesContent":["import type { containerPlacement } from './types';\n\n/**\n * How much each card behind the front of the stack shrinks, as a fraction.\n */\nconst SCALE_STEP = 0.05;\n\n/**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards. Exported so\n * notification-card.gts's own enter/exit slide direction can share this\n * instead of re-deriving it from the placement string.\n */\nfunction isTopPlacement(placement: containerPlacement): boolean {\n return placement.startsWith('top');\n}\n\ninterface NotificationStackInput {\n /**\n * Measured card heights in px, ordered front-first (index 0 is the newest\n * notification). A card that has not been measured yet contributes 0.\n */\n heights: number[];\n\n isExpanded: boolean;\n\n /**\n * Peek offset between collapsed cards, and the gap between expanded cards.\n */\n gap: number;\n\n /**\n * How many cards stay visible while collapsed.\n */\n visibleToasts: number;\n\n placement: containerPlacement;\n}\n\ninterface CardGeometry {\n transform: string;\n zIndex: number;\n opacity: number;\n\n /**\n * Fixed height in px while collapsed, so a taller card behind the front one\n * cannot stick out past it. `null` means the card sizes to its content.\n */\n height: number | null;\n\n transformOrigin: 'top center' | 'bottom center';\n\n /**\n * `'none'` when the card is fully transparent (collapsed beyond\n * `visibleToasts`), so it cannot swallow clicks meant for the page beneath\n * it; `'auto'` otherwise.\n */\n pointerEvents: 'auto' | 'none';\n}\n\n/**\n * Pure geometry for the notification stack: given measured card heights and\n * the current expansion state, it produces the transform for each card and\n * the height the container should animate to.\n *\n * Deliberately free of Ember and DOM dependencies so the layout maths can be\n * tested on its own.\n */\nclass NotificationStack {\n readonly heights: number[];\n readonly isExpanded: boolean;\n readonly gap: number;\n readonly visibleToasts: number;\n readonly placement: containerPlacement;\n\n constructor(input: NotificationStackInput) {\n this.heights = input.heights;\n this.isExpanded = input.isExpanded;\n this.gap = input.gap;\n this.visibleToasts = input.visibleToasts;\n this.placement = input.placement;\n }\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.placement);\n }\n\n /**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards.\n */\n get directionSign(): number {\n return this.isTopPlacement ? 1 : -1;\n }\n\n get transformOrigin(): CardGeometry['transformOrigin'] {\n return this.isTopPlacement ? 'top center' : 'bottom center';\n }\n\n get count(): number {\n return this.heights.length;\n }\n\n get frontHeight(): number {\n return this.heights[0] ?? 0;\n }\n\n geometryFor(index: number): CardGeometry {\n const zIndex = this.count - index;\n\n if (this.isExpanded) {\n return {\n transform: `translateY(${this.directionSign * this.offsetBefore(index)}px) scale(1)`,\n zIndex,\n opacity: 1,\n height: null,\n transformOrigin: this.transformOrigin,\n pointerEvents: 'auto'\n };\n }\n\n const offset = index * this.gap;\n const scale = Math.max(0, 1 - index * SCALE_STEP);\n const isVisible = index < this.visibleToasts;\n\n return {\n transform: `translateY(${this.directionSign * offset}px) scale(${scale})`,\n zIndex,\n opacity: isVisible ? 1 : 0,\n // The front card must size to its own content (`null`). Clamping it to\n // `frontHeight` would be self-referential — `frontHeight` *is* the\n // front card's own measurement — and would permanently lock in\n // whatever height was measured first, before content (e.g. a long\n // description) finished laying out. Only cards behind the front one\n // need clamping, so a taller card further back can't poke out past it.\n height: index === 0 ? null : this.frontHeight,\n transformOrigin: this.transformOrigin,\n // A card past `visibleToasts` is fully transparent while collapsed;\n // without this it would still sit in the fixed-position stack and\n // swallow clicks meant for the page beneath it.\n pointerEvents: isVisible ? 'auto' : 'none'\n };\n }\n\n get containerHeight(): number {\n if (this.count === 0) {\n return 0;\n }\n\n if (this.isExpanded) {\n return this.offsetBefore(this.count) - this.gap;\n }\n\n const visible = Math.min(this.count, this.visibleToasts);\n return this.frontHeight + (visible - 1) * this.gap;\n }\n\n /**\n * Distance from the placement edge to the leading edge of `index`, i.e. the\n * summed heights and gaps of every card in front of it.\n */\n private offsetBefore(index: number): number {\n let offset = 0;\n\n for (let i = 0; i < index; i++) {\n offset += (this.heights[i] ?? 0) + this.gap;\n }\n\n return offset;\n }\n}\n\nexport { NotificationStack, isTopPlacement };\nexport type { NotificationStackInput, CardGeometry };\n","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { modifier } from 'ember-modifier';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { fn } from '@ember/helper';\nimport { CloseButton } from '../buttons/close-button';\nimport { Button } from '../buttons/button';\nimport { Spinner } from '../utilities/spinner';\nimport {\n IconInfo,\n IconSuccess,\n IconWarning,\n IconDanger\n} from '../../-private/icons';\nimport { useStyles } from '@frontile/theme';\n\nimport type NotificationsService from '../../services/notifications';\nimport type Notification from '../../-private/notification';\nimport { isTopPlacement } from '../../-private/notification-stack';\nimport type { CardGeometry } from '../../-private/notification-stack';\nimport type {\n CustomAction,\n containerPlacement,\n NotificationStatus\n} from '../../-private/types';\nimport type { SafeString } from '@ember/template';\n\n/**\n * Everything that varies by `NotificationStatus`, keyed in one place so\n * adding a status means adding one row here instead of remembering to\n * touch an icon map, an action-colour map, and the `role` getter's cascade\n * separately.\n */\nconst STATUS_CONFIG = {\n neutral: {\n icon: IconInfo,\n // Button colour for the primary custom action. Also reused as the\n // loading <Spinner>'s `@color` (its colour union has the same\n // neutral/primary/success/warning/danger shape), so the spinner's arc\n // matches the same accent the card's custom action button would use.\n actionColor: 'neutral',\n // `alert` interrupts a screen reader, so it is reserved for the\n // statuses that warrant interrupting. This coupling is why the prop is\n // `@status` and not `@color`.\n role: 'status'\n },\n // Formerly `info`, which already painted `primary`'s classes. The info\n // glyph stays attached to `primary`.\n primary: {\n icon: IconInfo,\n actionColor: 'primary',\n role: 'status'\n },\n success: {\n icon: IconSuccess,\n actionColor: 'success',\n role: 'status'\n },\n warning: {\n icon: IconWarning,\n actionColor: 'warning',\n role: 'alert'\n },\n danger: {\n icon: IconDanger,\n actionColor: 'danger',\n role: 'alert'\n }\n} as const satisfies Record<\n NotificationStatus,\n {\n icon: unknown;\n actionColor: 'neutral' | 'primary' | 'success' | 'warning' | 'danger';\n role: 'status' | 'alert';\n }\n>;\n\ninterface NotificationCardSignature {\n Args: {\n notification: Notification<Record<string, unknown>>;\n placement: containerPlacement;\n\n /**\n * The visual style of the card.\n *\n * @defaultValue 'surface'\n */\n variant?: 'surface' | 'soft' | 'solid';\n\n /**\n * Position, scale, and stacking supplied by the container. When omitted\n * the card renders in place with no stack transform.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n geometry?: CardGeometry;\n\n /**\n * Called with the card's measured height whenever it changes.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n onMeasure?: (height: number) => void;\n };\n Element: HTMLDivElement;\n}\n\nclass NotificationCard extends Component<NotificationCardSignature> {\n @service notifications!: NotificationsService;\n\n /**\n * False for the first frame so the card can transition in from the\n * placement edge rather than appearing at its resting position.\n */\n @tracked hasEntered = false;\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.args.placement || 'bottom-right');\n }\n\n get status(): NotificationStatus {\n return this.args.notification.status;\n }\n\n get icon() {\n return STATUS_CONFIG[this.status].icon;\n }\n\n get actionColor() {\n return STATUS_CONFIG[this.status].actionColor;\n }\n\n get role(): 'status' | 'alert' {\n return STATUS_CONFIG[this.status].role;\n }\n\n get style(): SafeString {\n const { geometry, notification } = this.args;\n // The theme owns the whole `transition-duration` shorthand (and its\n // `motion-reduce:` override) so the per-property duration order can\n // never drift out of sync with `transition-[transform,opacity,height]`\n // across the component boundary — see notification-card.ts. This card\n // only supplies the one value `@transitionDuration` actually governs\n // (the enter/exit fade), as a custom property the theme's `var()` reads.\n const declarations = [\n `--frontile-toast-fade: ${notification.transitionDuration}ms`\n ];\n\n // The static edge-pinning (`position: absolute` + `left/right/top` or\n // `bottom`) lives in the `stackPlacement` theme variant (see\n // `this.classes`) rather than here, since it never varies frame to\n // frame — only the geometry-driven parts below (transform, opacity,\n // height, z-index, transform-origin) need to be inline, because a\n // `style` attribute passed through `...attributes` replaces the\n // element's own `style` outright and would drop them.\n\n if (!this.hasEntered || notification.isRemoving) {\n // Enter from, and exit to, the placement edge.\n const offset = this.isTopPlacement ? '-100%' : '100%';\n declarations.push(\n `opacity: 0`,\n `transform: translateY(${offset}) scale(0.95)`,\n // A card can be transparent-and-collapsed the instant it starts\n // exiting; keep it out of the click path either way.\n `pointer-events: none`\n );\n\n if (geometry) {\n declarations.push(\n `z-index: ${geometry.zIndex}`,\n `transform-origin: ${geometry.transformOrigin}`,\n // Preserve the collapsed height clamp through the exit\n // transition — otherwise a non-front collapsed card snaps from\n // its clamped height to `auto` for the slide-out.\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n if (geometry) {\n declarations.push(\n `transform: ${geometry.transform}`,\n `transform-origin: ${geometry.transformOrigin}`,\n `z-index: ${geometry.zIndex}`,\n `opacity: ${geometry.opacity}`,\n `pointer-events: ${geometry.pointerEvents}`,\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n /**\n * Flip to the resting position on the frame after insertion, so the browser\n * has a start value to transition from.\n */\n enter = modifier(() => {\n const frame = requestAnimationFrame(() => {\n this.hasEntered = true;\n });\n\n return () => cancelAnimationFrame(frame);\n });\n\n /**\n * Report the card's height to the container so the stack can lay itself\n * out. Also fires when promise content swaps change the height.\n *\n * `element` is the inner element (never height-constrained, so its\n * `offsetHeight` is always the content's true natural height). The border\n * lives on the outer element (`element.parentElement`), so it isn't part\n * of that number — we add it back via `outer.offsetHeight -\n * outer.clientHeight`, the outer element's vertical border width. That\n * difference is constant whether or not the outer element's height is\n * currently clamped by the collapsed-stack height, so it's safe to read\n * off the outer element even while it's clamped, and it stays correct if\n * the theme's border width ever changes.\n */\n measure = modifier((element: HTMLElement) => {\n const { onMeasure } = this.args;\n\n if (!onMeasure) {\n return;\n }\n\n const outer = element.parentElement as HTMLElement;\n\n const report = () => {\n const outerBorder = outer.offsetHeight - outer.clientHeight;\n onMeasure(element.offsetHeight + outerBorder);\n };\n\n const observer = new ResizeObserver(report);\n\n report();\n observer.observe(element);\n\n return () => observer.disconnect();\n });\n\n remove = () => {\n this.notifications.remove(this.args.notification);\n };\n\n handleClickCustomAction = (customAction: CustomAction) => {\n customAction.onClick();\n this.notifications.remove(this.args.notification);\n };\n\n get classes() {\n const { notificationCard } = useStyles();\n\n const {\n base,\n inner,\n icon,\n spinner,\n content,\n title,\n description,\n customActions,\n customActionButton,\n closeButton\n } = notificationCard({\n status: this.status,\n variant: this.args.variant || 'surface',\n hasDescription: !!this.args.notification.description,\n // Only pin the card to the placement edge once the container has\n // supplied stack geometry — see the `stackPlacement` variant's\n // comment in the theme.\n stackPlacement: this.args.geometry\n ? this.isTopPlacement\n ? 'top'\n : 'bottom'\n : 'none'\n });\n\n return {\n base: base(),\n inner: inner(),\n icon: icon(),\n spinner: spinner(),\n content: content(),\n title: title(),\n description: description(),\n customActions: customActions(),\n customActionButton: customActionButton(),\n closeButton: closeButton()\n };\n }\n\n <template>\n {{! template-lint-disable no-inline-styles style-concatenation }}\n <div\n data-component=\"notification-card\"\n data-part=\"base\"\n class={{this.classes.base}}\n style={{this.style}}\n role={{this.role}}\n data-test-notification-card\n data-test-status={{this.status}}\n {{this.enter}}\n ...attributes\n >\n {{! measure reads offsetHeight off this inner element, not the outer one above, since the outer carries the collapsed-stack height clamp. See notification-stack.ts. }}\n <div data-part=\"inner\" class={{this.classes.inner}} {{this.measure}}>\n {{#unless @notification.hideIcon}}\n {{#if @notification.isLoading}}\n <Spinner\n data-part=\"spinner\"\n @class={{this.classes.spinner}}\n @color={{this.actionColor}}\n @size=\"sm\"\n data-test-icon=\"loading\"\n />\n {{else}}\n {{#let this.icon as |Icon|}}\n <Icon data-part=\"icon\" class={{this.classes.icon}} />\n {{/let}}\n {{/if}}\n {{/unless}}\n\n <div data-part=\"content\" class={{this.classes.content}}>\n <div\n data-part=\"title\"\n class={{this.classes.title}}\n >{{@notification.title}}</div>\n\n {{#if @notification.description}}\n <div data-part=\"description\" class={{this.classes.description}}>\n {{@notification.description}}\n </div>\n {{/if}}\n </div>\n\n {{#if @notification.customActions}}\n <div data-part=\"custom-actions\" class={{this.classes.customActions}}>\n {{#each @notification.customActions as |customAction index|}}\n <Button\n data-part=\"custom-action-button\"\n @size=\"xs\"\n @color={{if index \"neutral\" this.actionColor}}\n @variant={{if index \"plain\" \"solid\"}}\n @class={{this.classes.customActionButton}}\n @onPress={{fn this.handleClickCustomAction customAction}}\n >\n {{customAction.label}}\n </Button>\n {{/each}}\n </div>\n {{/if}}\n\n {{#if @notification.allowClosing}}\n <CloseButton\n data-part=\"close-button\"\n @onPress={{this.remove}}\n @size=\"sm\"\n @class={{this.classes.closeButton}}\n />\n {{/if}}\n </div>\n </div>\n </template>\n}\n\nexport { NotificationCard, type NotificationCardSignature };\nexport default NotificationCard;\n"],"names":["SCALE_STEP","isTopPlacement","placement","startsWith","NotificationStack","heights","isExpanded","gap","visibleToasts","constructor","input","directionSign","transformOrigin","count","length","frontHeight","geometryFor","index","zIndex","transform","offsetBefore","opacity","height","pointerEvents","offset","scale","Math","max","isVisible","containerHeight","visible","min","i","STATUS_CONFIG","neutral","icon","IconInfo","actionColor","role","primary","success","IconSuccess","warning","IconWarning","danger","IconDanger","NotificationCard","Component","g","prototype","service","tracked","args","status","notification","style","geometry","declarations","transitionDuration","hasEntered","isRemoving","push","htmlSafe","join","enter","modifier","frame","requestAnimationFrame","cancelAnimationFrame","measure","element","onMeasure","outer","parentElement","report","outerBorder","offsetHeight","clientHeight","observer","ResizeObserver","observe","disconnect","remove","notifications","handleClickCustomAction","customAction","onClick","classes","notificationCard","useStyles","base","inner","spinner","content","title","description","customActions","customActionButton","closeButton","variant","hasDescription","stackPlacement","setComponentTemplate","precompileTemplate","strictMode","scope","Spinner","Button","fn","CloseButton"],"mappings":";;;;;;;;;;;;;;;AAEA;AACA;AACA;AACA,MAAMA,UAAU,GAAG,IAAI;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,cAAcA,CAACC,SAA6B,EAAW;AAC9D,EAAA,OAAOA,SAAS,CAACC,UAAU,CAAC,KAAK,CAAC;AACpC;AA6CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,CAAC;EACbC,OAAO;EACPC,UAAU;EACVC,GAAG;EACHC,aAAa;EACbN,SAAS;EAElBO,WAAWA,CAACC,KAA6B,EAAE;AACzC,IAAA,IAAI,CAACL,OAAO,GAAGK,KAAK,CAACL,OAAO;AAC5B,IAAA,IAAI,CAACC,UAAU,GAAGI,KAAK,CAACJ,UAAU;AAClC,IAAA,IAAI,CAACC,GAAG,GAAGG,KAAK,CAACH,GAAG;AACpB,IAAA,IAAI,CAACC,aAAa,GAAGE,KAAK,CAACF,aAAa;AACxC,IAAA,IAAI,CAACN,SAAS,GAAGQ,KAAK,CAACR,SAAS;AAClC,EAAA;EAEA,IAAID,cAAcA,GAAY;AAC5B,IAAA,OAAOA,cAAc,CAAC,IAAI,CAACC,SAAS,CAAC;AACvC,EAAA;;AAEA;AACF;AACA;AACA;EACE,IAAIS,aAAaA,GAAW;AAC1B,IAAA,OAAO,IAAI,CAACV,cAAc,GAAG,CAAC,GAAG,EAAE;AACrC,EAAA;EAEA,IAAIW,eAAeA,GAAoC;AACrD,IAAA,OAAO,IAAI,CAACX,cAAc,GAAG,YAAY,GAAG,eAAe;AAC7D,EAAA;EAEA,IAAIY,KAAKA,GAAW;AAClB,IA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,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
1
+ {"version":3,"file":"notification-card-C4mlc9Ac.js","sources":["../src/-private/notification-stack.ts","../src/components/notifications/notification-card.gts"],"sourcesContent":["import type { containerPlacement } from './types';\n\n/**\n * How much each card behind the front of the stack shrinks, as a fraction.\n */\nconst SCALE_STEP = 0.05;\n\n/**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards. Exported so\n * notification-card.gts's own enter/exit slide direction can share this\n * instead of re-deriving it from the placement string.\n */\nfunction isTopPlacement(placement: containerPlacement): boolean {\n return placement.startsWith('top');\n}\n\ninterface NotificationStackInput {\n /**\n * Measured card heights in px, ordered front-first (index 0 is the newest\n * notification). A card that has not been measured yet contributes 0.\n */\n heights: number[];\n\n isExpanded: boolean;\n\n /**\n * Peek offset between collapsed cards, and the gap between expanded cards.\n */\n gap: number;\n\n /**\n * How many cards stay visible while collapsed.\n */\n visibleToasts: number;\n\n placement: containerPlacement;\n}\n\ninterface CardGeometry {\n transform: string;\n zIndex: number;\n opacity: number;\n\n /**\n * Fixed height in px while collapsed, so a taller card behind the front one\n * cannot stick out past it. `null` means the card sizes to its content.\n */\n height: number | null;\n\n transformOrigin: 'top center' | 'bottom center';\n\n /**\n * `'none'` when the card is fully transparent (collapsed beyond\n * `visibleToasts`), so it cannot swallow clicks meant for the page beneath\n * it; `'auto'` otherwise.\n */\n pointerEvents: 'auto' | 'none';\n}\n\n/**\n * Pure geometry for the notification stack: given measured card heights and\n * the current expansion state, it produces the transform for each card and\n * the height the container should animate to.\n *\n * Deliberately free of Ember and DOM dependencies so the layout maths can be\n * tested on its own.\n */\nclass NotificationStack {\n readonly heights: number[];\n readonly isExpanded: boolean;\n readonly gap: number;\n readonly visibleToasts: number;\n readonly placement: containerPlacement;\n\n constructor(input: NotificationStackInput) {\n this.heights = input.heights;\n this.isExpanded = input.isExpanded;\n this.gap = input.gap;\n this.visibleToasts = input.visibleToasts;\n this.placement = input.placement;\n }\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.placement);\n }\n\n /**\n * Cards are pinned to the placement edge, so a top placement stacks\n * downwards and a bottom placement stacks upwards.\n */\n get directionSign(): number {\n return this.isTopPlacement ? 1 : -1;\n }\n\n get transformOrigin(): CardGeometry['transformOrigin'] {\n return this.isTopPlacement ? 'top center' : 'bottom center';\n }\n\n get count(): number {\n return this.heights.length;\n }\n\n get frontHeight(): number {\n return this.heights[0] ?? 0;\n }\n\n geometryFor(index: number): CardGeometry {\n const zIndex = this.count - index;\n\n if (this.isExpanded) {\n return {\n transform: `translateY(${this.directionSign * this.offsetBefore(index)}px) scale(1)`,\n zIndex,\n opacity: 1,\n height: null,\n transformOrigin: this.transformOrigin,\n pointerEvents: 'auto'\n };\n }\n\n const offset = index * this.gap;\n const scale = Math.max(0, 1 - index * SCALE_STEP);\n const isVisible = index < this.visibleToasts;\n\n return {\n transform: `translateY(${this.directionSign * offset}px) scale(${scale})`,\n zIndex,\n opacity: isVisible ? 1 : 0,\n // The front card must size to its own content (`null`). Clamping it to\n // `frontHeight` would be self-referential — `frontHeight` *is* the\n // front card's own measurement — and would permanently lock in\n // whatever height was measured first, before content (e.g. a long\n // description) finished laying out. Only cards behind the front one\n // need clamping, so a taller card further back can't poke out past it.\n height: index === 0 ? null : this.frontHeight,\n transformOrigin: this.transformOrigin,\n // A card past `visibleToasts` is fully transparent while collapsed;\n // without this it would still sit in the fixed-position stack and\n // swallow clicks meant for the page beneath it.\n pointerEvents: isVisible ? 'auto' : 'none'\n };\n }\n\n get containerHeight(): number {\n if (this.count === 0) {\n return 0;\n }\n\n if (this.isExpanded) {\n return this.offsetBefore(this.count) - this.gap;\n }\n\n const visible = Math.min(this.count, this.visibleToasts);\n return this.frontHeight + (visible - 1) * this.gap;\n }\n\n /**\n * Distance from the placement edge to the leading edge of `index`, i.e. the\n * summed heights and gaps of every card in front of it.\n */\n private offsetBefore(index: number): number {\n let offset = 0;\n\n for (let i = 0; i < index; i++) {\n offset += (this.heights[i] ?? 0) + this.gap;\n }\n\n return offset;\n }\n}\n\nexport { NotificationStack, isTopPlacement };\nexport type { NotificationStackInput, CardGeometry };\n","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { modifier } from 'ember-modifier';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { fn } from '@ember/helper';\nimport { CloseButton } from '../buttons/close-button';\nimport { Button } from '../buttons/button';\nimport { Spinner } from '../utilities/spinner';\nimport {\n IconInfo,\n IconSuccess,\n IconWarning,\n IconDanger\n} from '../../-private/icons';\nimport { useStyles } from '@frontile/theme';\n\nimport type NotificationsService from '../../services/notifications';\nimport type Notification from '../../-private/notification';\nimport { isTopPlacement } from '../../-private/notification-stack';\nimport type { CardGeometry } from '../../-private/notification-stack';\nimport type {\n CustomAction,\n containerPlacement,\n NotificationStatus\n} from '../../-private/types';\nimport type { SafeString } from '@ember/template';\n\n/**\n * Everything that varies by `NotificationStatus`, keyed in one place so\n * adding a status means adding one row here instead of remembering to\n * touch an icon map, an action-colour map, and the `role` getter's cascade\n * separately.\n */\nconst STATUS_CONFIG = {\n neutral: {\n icon: IconInfo,\n // Button colour for the primary custom action. Also reused as the\n // loading <Spinner>'s `@color` (its colour union has the same\n // neutral/primary/success/warning/danger shape), so the spinner's arc\n // matches the same accent the card's custom action button would use.\n actionColor: 'neutral',\n // `alert` interrupts a screen reader, so it is reserved for the\n // statuses that warrant interrupting. This coupling is why the prop is\n // `@status` and not `@color`.\n role: 'status'\n },\n // Formerly `info`, which already painted `primary`'s classes. The info\n // glyph stays attached to `primary`.\n primary: {\n icon: IconInfo,\n actionColor: 'primary',\n role: 'status'\n },\n success: {\n icon: IconSuccess,\n actionColor: 'success',\n role: 'status'\n },\n warning: {\n icon: IconWarning,\n actionColor: 'warning',\n role: 'alert'\n },\n danger: {\n icon: IconDanger,\n actionColor: 'danger',\n role: 'alert'\n }\n} as const satisfies Record<\n NotificationStatus,\n {\n icon: unknown;\n actionColor: 'neutral' | 'primary' | 'success' | 'warning' | 'danger';\n role: 'status' | 'alert';\n }\n>;\n\ninterface NotificationCardSignature {\n Args: {\n notification: Notification<Record<string, unknown>>;\n placement: containerPlacement;\n\n /**\n * The visual style of the card.\n *\n * @defaultValue 'surface'\n */\n variant?: 'surface' | 'soft' | 'solid';\n\n /**\n * Position, scale, and stacking supplied by the container. When omitted\n * the card renders in place with no stack transform.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n geometry?: CardGeometry;\n\n /**\n * Called with the card's measured height whenever it changes.\n *\n * Part of the container/card plumbing, not a consumer-facing argument.\n *\n * @internal\n */\n onMeasure?: (height: number) => void;\n };\n Element: HTMLDivElement;\n}\n\nclass NotificationCard extends Component<NotificationCardSignature> {\n @service notifications!: NotificationsService;\n\n /**\n * False for the first frame so the card can transition in from the\n * placement edge rather than appearing at its resting position.\n */\n @tracked hasEntered = false;\n\n get isTopPlacement(): boolean {\n return isTopPlacement(this.args.placement || 'bottom-right');\n }\n\n get status(): NotificationStatus {\n return this.args.notification.status;\n }\n\n get icon() {\n return STATUS_CONFIG[this.status].icon;\n }\n\n get actionColor() {\n return STATUS_CONFIG[this.status].actionColor;\n }\n\n get role(): 'status' | 'alert' {\n return STATUS_CONFIG[this.status].role;\n }\n\n get style(): SafeString {\n const { geometry, notification } = this.args;\n // The theme owns the whole `transition-duration` shorthand (and its\n // `motion-reduce:` override) so the per-property duration order can\n // never drift out of sync with `transition-[transform,opacity,height]`\n // across the component boundary — see notification-card.ts. This card\n // only supplies the one value `@transitionDuration` actually governs\n // (the enter/exit fade), as a custom property the theme's `var()` reads.\n const declarations = [\n `--frontile-toast-fade: ${notification.transitionDuration}ms`\n ];\n\n // The static edge-pinning (`position: absolute` + `left/right/top` or\n // `bottom`) lives in the `stackPlacement` theme variant (see\n // `this.classes`) rather than here, since it never varies frame to\n // frame — only the geometry-driven parts below (transform, opacity,\n // height, z-index, transform-origin) need to be inline, because a\n // `style` attribute passed through `...attributes` replaces the\n // element's own `style` outright and would drop them.\n\n if (!this.hasEntered || notification.isRemoving) {\n // Enter from, and exit to, the placement edge.\n const offset = this.isTopPlacement ? '-100%' : '100%';\n declarations.push(\n `opacity: 0`,\n `transform: translateY(${offset}) scale(0.95)`,\n // A card can be transparent-and-collapsed the instant it starts\n // exiting; keep it out of the click path either way.\n `pointer-events: none`\n );\n\n if (geometry) {\n declarations.push(\n `z-index: ${geometry.zIndex}`,\n `transform-origin: ${geometry.transformOrigin}`,\n // Preserve the collapsed height clamp through the exit\n // transition — otherwise a non-front collapsed card snaps from\n // its clamped height to `auto` for the slide-out.\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n if (geometry) {\n declarations.push(\n `transform: ${geometry.transform}`,\n `transform-origin: ${geometry.transformOrigin}`,\n `z-index: ${geometry.zIndex}`,\n `opacity: ${geometry.opacity}`,\n `pointer-events: ${geometry.pointerEvents}`,\n geometry.height === null\n ? `height: auto`\n : `height: ${geometry.height}px`\n );\n }\n\n return htmlSafe(declarations.join('; '));\n }\n\n /**\n * Flip to the resting position on the frame after insertion, so the browser\n * has a start value to transition from.\n */\n enter = modifier(() => {\n const frame = requestAnimationFrame(() => {\n this.hasEntered = true;\n });\n\n return () => cancelAnimationFrame(frame);\n });\n\n /**\n * Report the card's height to the container so the stack can lay itself\n * out. Also fires when promise content swaps change the height.\n *\n * `element` is the inner element (never height-constrained, so its\n * `offsetHeight` is always the content's true natural height). The border\n * lives on the outer element (`element.parentElement`), so it isn't part\n * of that number — we add it back via `outer.offsetHeight -\n * outer.clientHeight`, the outer element's vertical border width. That\n * difference is constant whether or not the outer element's height is\n * currently clamped by the collapsed-stack height, so it's safe to read\n * off the outer element even while it's clamped, and it stays correct if\n * the theme's border width ever changes.\n */\n measure = modifier((element: HTMLElement) => {\n const { onMeasure } = this.args;\n\n if (!onMeasure) {\n return;\n }\n\n const outer = element.parentElement as HTMLElement;\n\n const report = () => {\n const outerBorder = outer.offsetHeight - outer.clientHeight;\n onMeasure(element.offsetHeight + outerBorder);\n };\n\n const observer = new ResizeObserver(report);\n\n report();\n observer.observe(element);\n\n return () => observer.disconnect();\n });\n\n remove = () => {\n this.notifications.remove(this.args.notification);\n };\n\n handleClickCustomAction = (customAction: CustomAction) => {\n customAction.onClick();\n this.notifications.remove(this.args.notification);\n };\n\n get classes() {\n const { notificationCard } = useStyles();\n\n const {\n base,\n inner,\n icon,\n spinner,\n content,\n title,\n description,\n customActions,\n customActionButton,\n closeButton\n } = notificationCard({\n status: this.status,\n variant: this.args.variant || 'surface',\n hasDescription: !!this.args.notification.description,\n // Only pin the card to the placement edge once the container has\n // supplied stack geometry — see the `stackPlacement` variant's\n // comment in the theme.\n stackPlacement: this.args.geometry\n ? this.isTopPlacement\n ? 'top'\n : 'bottom'\n : 'none'\n });\n\n return {\n base: base(),\n inner: inner(),\n icon: icon(),\n spinner: spinner(),\n content: content(),\n title: title(),\n description: description(),\n customActions: customActions(),\n customActionButton: customActionButton(),\n closeButton: closeButton()\n };\n }\n\n <template>\n {{! template-lint-disable no-inline-styles style-concatenation }}\n <div\n data-component=\"notification-card\"\n data-part=\"base\"\n class={{this.classes.base}}\n style={{this.style}}\n role={{this.role}}\n data-test-notification-card\n data-test-status={{this.status}}\n {{this.enter}}\n ...attributes\n >\n {{! measure reads offsetHeight off this inner element, not the outer one above, since the outer carries the collapsed-stack height clamp. See notification-stack.ts. }}\n <div data-part=\"inner\" class={{this.classes.inner}} {{this.measure}}>\n {{#unless @notification.hideIcon}}\n {{#if @notification.isLoading}}\n <Spinner\n data-part=\"spinner\"\n @class={{this.classes.spinner}}\n @color={{this.actionColor}}\n @size=\"sm\"\n data-test-icon=\"loading\"\n />\n {{else}}\n {{#let this.icon as |Icon|}}\n <Icon data-part=\"icon\" class={{this.classes.icon}} />\n {{/let}}\n {{/if}}\n {{/unless}}\n\n <div data-part=\"content\" class={{this.classes.content}}>\n <div\n data-part=\"title\"\n class={{this.classes.title}}\n >{{@notification.title}}</div>\n\n {{#if @notification.description}}\n <div data-part=\"description\" class={{this.classes.description}}>\n {{@notification.description}}\n </div>\n {{/if}}\n </div>\n\n {{#if @notification.customActions}}\n <div data-part=\"custom-actions\" class={{this.classes.customActions}}>\n {{#each @notification.customActions as |customAction index|}}\n <Button\n data-part=\"custom-action-button\"\n @size=\"xs\"\n @color={{if index \"neutral\" this.actionColor}}\n @variant={{if index \"plain\" \"solid\"}}\n @class={{this.classes.customActionButton}}\n @onPress={{fn this.handleClickCustomAction customAction}}\n >\n {{customAction.label}}\n </Button>\n {{/each}}\n </div>\n {{/if}}\n\n {{#if @notification.allowClosing}}\n <CloseButton\n data-part=\"close-button\"\n @onPress={{this.remove}}\n @size=\"sm\"\n @class={{this.classes.closeButton}}\n />\n {{/if}}\n </div>\n </div>\n </template>\n}\n\nexport { NotificationCard, type NotificationCardSignature };\nexport default NotificationCard;\n"],"names":["SCALE_STEP","isTopPlacement","placement","startsWith","NotificationStack","heights","isExpanded","gap","visibleToasts","constructor","input","directionSign","transformOrigin","count","length","frontHeight","geometryFor","index","zIndex","transform","offsetBefore","opacity","height","pointerEvents","offset","scale","Math","max","isVisible","containerHeight","visible","min","i","STATUS_CONFIG","neutral","icon","IconInfo","actionColor","role","primary","success","IconSuccess","warning","IconWarning","danger","IconDanger","NotificationCard","Component","g","prototype","service","tracked","args","status","notification","style","geometry","declarations","transitionDuration","hasEntered","isRemoving","push","htmlSafe","join","enter","modifier","frame","requestAnimationFrame","cancelAnimationFrame","measure","element","onMeasure","outer","parentElement","report","outerBorder","offsetHeight","clientHeight","observer","ResizeObserver","observe","disconnect","remove","notifications","handleClickCustomAction","customAction","onClick","classes","notificationCard","useStyles","base","inner","spinner","content","title","description","customActions","customActionButton","closeButton","variant","hasDescription","stackPlacement","setComponentTemplate","precompileTemplate","strictMode","scope","Spinner","Button","fn","CloseButton"],"mappings":";;;;;;;;;;;;;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JC,IAAI;MACJC,KAAK;MACLxD,IAAI;MACJyD,OAAO;MACPC,OAAO;MACPC,KAAK;MACLC,WAAW;MACXC,aAAa;MACbC,kBAAkB;AAClBC,MAAAA;KACD,GAAGV,gBAAA,CAAiB;MACnBnC,MAAA,EAAQ,IAAI,CAACA,MAAM;AACnB8C,MAAAA,OAAA,EAAS,IAAI,CAAC/C,IAAI,CAAC+C,OAAO,IAAI,SAAA;MAC9BC,cAAA,EAAgB,CAAC,CAAC,IAAI,CAAChD,IAAI,CAACE,YAAY,CAACyC,WAAW;AACpD;AACA;AACA;AACAM,MAAAA,cAAA,EAAgB,IAAI,CAACjD,IAAI,CAACI,QAAQ,GAC9B,IAAI,CAACvD,cAAc,GACjB,KAAA,GACA,QAAA,GACF;AACN,KAAA,CAAA;IAEA,OAAO;MACLyF,IAAA,EAAMA,IAAA,EAAA;MACNC,KAAA,EAAOA,KAAA,EAAA;MACPxD,IAAA,EAAMA,IAAA,EAAA;MACNyD,OAAA,EAASA,OAAA,EAAA;MACTC,OAAA,EAASA,OAAA,EAAA;MACTC,KAAA,EAAOA,KAAA,EAAA;MACPC,WAAA,EAAaA,WAAA,EAAA;MACbC,aAAA,EAAeA,aAAA,EAAA;MACfC,kBAAA,EAAoBA,kBAAA,EAAA;MACpBC,WAAA,EAAaA,WAAA;KACf;AACF,EAAA;AAEA,EAAA;IAAAI,oBAAA,CAAAC,kBAAA,CAAA,ggEAAA,EAuEA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,OAAA;QAAAC,MAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
@@ -1,5 +1,5 @@
1
- export { N as Notification, T as Timer } from './manager-Dge4r8Vn.js';
1
+ export { N as Notification, T as Timer } from './manager-DFO_x6Jr.js';
2
2
  import '@ember/service';
3
- export { N as NotificationCard, a as NotificationStack } from './notification-card-BPfDo-Gf.js';
3
+ export { N as NotificationCard, a as NotificationStack } from './notification-card-C4mlc9Ac.js';
4
4
  export { NotificationsContainer } from './components/notifications/notifications-container.js';
5
5
  //# sourceMappingURL=notifications.js.map
@@ -30,4 +30,4 @@ function revealWithin(panel, target, center) {
30
30
  }
31
31
 
32
32
  export { revealWithin as r };
33
- //# sourceMappingURL=reveal-within-BcqpOmSI.js.map
33
+ //# sourceMappingURL=reveal-within-BbeisIjK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reveal-within-BcqpOmSI.js","sources":["../src/-private/reveal-within.ts"],"sourcesContent":["/**\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 a\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 * target's `offsetParent`, so the panel has to be positioned.\n *\n * `center` places the target mid-panel, for the opening jump to a value that\n * is usually a long way down the list; otherwise the target is brought just\n * far enough into view, which is what stepping key by key wants.\n */\nexport function 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"],"names":["revealWithin","panel","target","center","top","offsetTop","bottom","offsetHeight","scrollTop","clientHeight"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,YAAYA,CAC1BC,KAAkB,EAClBC,MAAmB,EACnBC,MAAe,EACT;AACN,EAAA,MAAMC,GAAG,GAAGF,MAAM,CAACG,SAAS;AAC5B,EAAA,MAAMC,MAAM,GAAGF,GAAG,GAAGF,MAAM,CAACK,YAAY;AAExC,EAAA,IAAIJ,MAAM,EAAE;AACVF,IAAAA,KAAK,CAACO,SAAS,GAAGJ,GAAG,GAAG,CAACH,KAAK,CAACQ,YAAY,GAAGP,MAAM,CAACK,YAAY,IAAI,CAAC;AACtE,IAAA;AACF,EAAA;AAEA,EAAA,IAAIH,GAAG,GAAGH,KAAK,CAACO,SAAS,EAAE;IACzBP,KAAK,CAACO,SAAS,GAAGJ,GAAG;EACvB,CAAC,MAAM,IAAIE,MAAM,GAAGL,KAAK,CAACO,SAAS,GAAGP,KAAK,CAACQ,YAAY,EAAE;AACxDR,IAAAA,KAAK,CAACO,SAAS,GAAGF,MAAM,GAAGL,KAAK,CAACQ,YAAY;AAC/C,EAAA;AACF;;"}
1
+ {"version":3,"file":"reveal-within-BbeisIjK.js","sources":["../src/-private/reveal-within.ts"],"sourcesContent":["/**\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 a\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 * target's `offsetParent`, so the panel has to be positioned.\n *\n * `center` places the target mid-panel, for the opening jump to a value that\n * is usually a long way down the list; otherwise the target is brought just\n * far enough into view, which is what stepping key by key wants.\n */\nexport function 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"],"names":["revealWithin","panel","target","center","top","offsetTop","bottom","offsetHeight","scrollTop","clientHeight"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,YAAYA,CAC1BC,KAAkB,EAClBC,MAAmB,EACnBC,MAAe,EACT;AACN,EAAA,MAAMC,GAAG,GAAGF,MAAM,CAACG,SAAS;AAC5B,EAAA,MAAMC,MAAM,GAAGF,GAAG,GAAGF,MAAM,CAACK,YAAY;AAExC,EAAA,IAAIJ,MAAM,EAAE;AACVF,IAAAA,KAAK,CAACO,SAAS,GAAGJ,GAAG,GAAG,CAACH,KAAK,CAACQ,YAAY,GAAGP,MAAM,CAACK,YAAY,IAAI,CAAC;AACtE,IAAA;AACF,EAAA;AAEA,EAAA,IAAIH,GAAG,GAAGH,KAAK,CAACO,SAAS,EAAE;IACzBP,KAAK,CAACO,SAAS,GAAGJ,GAAG;EACvB,CAAC,MAAM,IAAIE,MAAM,GAAGL,KAAK,CAACO,SAAS,GAAGP,KAAK,CAACQ,YAAY,EAAE;AACxDR,IAAAA,KAAK,CAACO,SAAS,GAAGF,MAAM,GAAGL,KAAK,CAACQ,YAAY;AAC/C,EAAA;AACF;;"}
@@ -64,4 +64,4 @@ function initializeDeferredDecorator(target, prop) {
64
64
  }
65
65
 
66
66
  export { decorateMethodV2 as a, decorateFieldV2 as d, initializeDeferredDecorator as i };
67
- //# sourceMappingURL=runtime--fcdnjmJ-BOdRhmsS.js.map
67
+ //# sourceMappingURL=runtime--fcdnjmJ-DOFHQ2m8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime--fcdnjmJ-BOdRhmsS.js","sources":["../../../node_modules/.pnpm/decorator-transforms@2.4.0_@babel+core@7.29.7/node_modules/decorator-transforms/dist/runtime--fcdnjmJ.js"],"sourcesContent":["const deferred = /* @__PURE__ */ new WeakMap();\nfunction deferDecorator(proto, prop, desc) {\n let map = deferred.get(proto);\n if (!map) {\n map = /* @__PURE__ */ new Map();\n deferred.set(proto, map);\n }\n map.set(prop, desc);\n}\nfunction findDeferredDecorator(target, prop) {\n var _a;\n let cursor = target.prototype;\n while (cursor) {\n let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);\n if (desc) {\n return desc;\n }\n cursor = Object.getPrototypeOf(cursor);\n }\n}\nfunction decorateFieldV1(target, prop, decorators, initializer) {\n return decorateFieldV2(target.prototype, prop, decorators, initializer);\n}\nfunction decorateFieldV2(prototype, prop, decorators, initializer) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n };\n if (initializer) {\n desc.initializer = initializer;\n }\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer === void 0) {\n Object.defineProperty(prototype, prop, desc);\n } else {\n deferDecorator(prototype, prop, desc);\n }\n}\nfunction decorateMethodV1({ prototype }, prop, decorators) {\n return decorateMethodV2(prototype, prop, decorators);\n}\nfunction decorateMethodV2(prototype, prop, decorators) {\n const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);\n let desc = { ...origDesc };\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;\n desc.initializer = void 0;\n }\n Object.defineProperty(prototype, prop, desc);\n}\nfunction initializeDeferredDecorator(target, prop) {\n let desc = findDeferredDecorator(target.constructor, prop);\n if (desc) {\n Object.defineProperty(target, prop, {\n enumerable: desc.enumerable,\n configurable: desc.configurable,\n writable: desc.writable,\n value: desc.initializer ? desc.initializer.call(target) : void 0\n });\n }\n}\nfunction decorateClass(target, decorators) {\n return decorators.reduce(\n (accum, decorator) => decorator(accum) || accum,\n target\n );\n}\nfunction decoratePOJO(pojo, decorated) {\n for (let [type, prop, decorators] of decorated) {\n if (type === \"field\") {\n decoratePojoField(pojo, prop, decorators);\n } else {\n decorateMethodV2(pojo, prop, decorators);\n }\n }\n return pojo;\n}\nfunction decoratePojoField(pojo, prop, decorators) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: () => {\n var _a;\n return (_a = Object.getOwnPropertyDescriptor(pojo, prop)) == null ? void 0 : _a.value;\n }\n };\n for (let decorator of decorators) {\n desc = decorator(pojo, prop, desc) || desc;\n }\n if (desc.initializer) {\n desc.value = desc.initializer.call(pojo);\n delete desc.initializer;\n }\n Object.defineProperty(pojo, prop, desc);\n}\nconst runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n c: decorateClass,\n f: decorateFieldV1,\n g: decorateFieldV2,\n i: initializeDeferredDecorator,\n m: decorateMethodV1,\n n: decorateMethodV2,\n p: decoratePOJO\n}, Symbol.toStringTag, { value: \"Module\" }));\nexport {\n decorateFieldV1 as a,\n decorateFieldV2 as b,\n decorateMethodV1 as c,\n decorateClass as d,\n decorateMethodV2 as e,\n decoratePOJO as f,\n initializeDeferredDecorator as i,\n runtime as r\n};\n//# sourceMappingURL=runtime--fcdnjmJ.js.map\n"],"names":["deferred","WeakMap","deferDecorator","proto","prop","desc","map","get","Map","set","findDeferredDecorator","target","_a","cursor","prototype","Object","getPrototypeOf","decorateFieldV2","decorators","initializer","configurable","enumerable","writable","decorator","defineProperty","decorateMethodV2","origDesc","getOwnPropertyDescriptor","value","call","initializeDeferredDecorator","constructor"],"mappings":"AAuBA,MAAMA,QAAA,sBAGEC,OAAA,EAAA;AAER,SAASC,eACPC,KAAA,EACAC,IAAA,EACAC,IAAA,EACM;AACN,EAAA,IAAIC,GAAA,GAAMN,QAAA,CAASO,GAAA,CAAIJ,KAAK,CAAA;EAC5B,IAAI,CAACG,GAAA,EAAK;AACRA,IAAAA,GAAA,sBAAUE,GAAA,EAAA;AACVR,IAAAA,QAAA,CAASS,GAAA,CAAIN,KAAA,EAAOG,GAAG,CAAA;AACzB,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2m8.js","sources":["../../../node_modules/.pnpm/decorator-transforms@2.4.0_@babel+core@7.29.7/node_modules/decorator-transforms/dist/runtime--fcdnjmJ.js"],"sourcesContent":["const deferred = /* @__PURE__ */ new WeakMap();\nfunction deferDecorator(proto, prop, desc) {\n let map = deferred.get(proto);\n if (!map) {\n map = /* @__PURE__ */ new Map();\n deferred.set(proto, map);\n }\n map.set(prop, desc);\n}\nfunction findDeferredDecorator(target, prop) {\n var _a;\n let cursor = target.prototype;\n while (cursor) {\n let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);\n if (desc) {\n return desc;\n }\n cursor = Object.getPrototypeOf(cursor);\n }\n}\nfunction decorateFieldV1(target, prop, decorators, initializer) {\n return decorateFieldV2(target.prototype, prop, decorators, initializer);\n}\nfunction decorateFieldV2(prototype, prop, decorators, initializer) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n };\n if (initializer) {\n desc.initializer = initializer;\n }\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer === void 0) {\n Object.defineProperty(prototype, prop, desc);\n } else {\n deferDecorator(prototype, prop, desc);\n }\n}\nfunction decorateMethodV1({ prototype }, prop, decorators) {\n return decorateMethodV2(prototype, prop, decorators);\n}\nfunction decorateMethodV2(prototype, prop, decorators) {\n const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);\n let desc = { ...origDesc };\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;\n desc.initializer = void 0;\n }\n Object.defineProperty(prototype, prop, desc);\n}\nfunction initializeDeferredDecorator(target, prop) {\n let desc = findDeferredDecorator(target.constructor, prop);\n if (desc) {\n Object.defineProperty(target, prop, {\n enumerable: desc.enumerable,\n configurable: desc.configurable,\n writable: desc.writable,\n value: desc.initializer ? desc.initializer.call(target) : void 0\n });\n }\n}\nfunction decorateClass(target, decorators) {\n return decorators.reduce(\n (accum, decorator) => decorator(accum) || accum,\n target\n );\n}\nfunction decoratePOJO(pojo, decorated) {\n for (let [type, prop, decorators] of decorated) {\n if (type === \"field\") {\n decoratePojoField(pojo, prop, decorators);\n } else {\n decorateMethodV2(pojo, prop, decorators);\n }\n }\n return pojo;\n}\nfunction decoratePojoField(pojo, prop, decorators) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: () => {\n var _a;\n return (_a = Object.getOwnPropertyDescriptor(pojo, prop)) == null ? void 0 : _a.value;\n }\n };\n for (let decorator of decorators) {\n desc = decorator(pojo, prop, desc) || desc;\n }\n if (desc.initializer) {\n desc.value = desc.initializer.call(pojo);\n delete desc.initializer;\n }\n Object.defineProperty(pojo, prop, desc);\n}\nconst runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n c: decorateClass,\n f: decorateFieldV1,\n g: decorateFieldV2,\n i: initializeDeferredDecorator,\n m: decorateMethodV1,\n n: decorateMethodV2,\n p: decoratePOJO\n}, Symbol.toStringTag, { value: \"Module\" }));\nexport {\n decorateFieldV1 as a,\n decorateFieldV2 as b,\n decorateMethodV1 as c,\n decorateClass as d,\n decorateMethodV2 as e,\n decoratePOJO as f,\n initializeDeferredDecorator as i,\n runtime as r\n};\n//# sourceMappingURL=runtime--fcdnjmJ.js.map\n"],"names":["deferred","WeakMap","deferDecorator","proto","prop","desc","map","get","Map","set","findDeferredDecorator","target","_a","cursor","prototype","Object","getPrototypeOf","decorateFieldV2","decorators","initializer","configurable","enumerable","writable","decorator","defineProperty","decorateMethodV2","origDesc","getOwnPropertyDescriptor","value","call","initializeDeferredDecorator","constructor"],"mappings":"AAuBA,MAAMA,QAAA,sBAGEC,OAAA,EAAA;AAER,SAASC,eACPC,KAAA,EACAC,IAAA,EACAC,IAAA,EACM;AACN,EAAA,IAAIC,GAAA,GAAMN,QAAA,CAASO,GAAA,CAAIJ,KAAK,CAAA;EAC5B,IAAI,CAAC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U,IAAA,CAAKlB,MAAM,CAAA,GAAI;KAC3D,CAAA;AACH,EAAA;AACF;;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import Service from '@ember/service';
2
- import { a as NotificationsManager } from '../manager-Dge4r8Vn.js';
2
+ import { a as NotificationsManager } from '../manager-DFO_x6Jr.js';
3
3
 
4
4
  class NotificationsService extends Service {
5
5
  onRemoveCallback;
@@ -1,16 +1,12 @@
1
1
  import { _backburner } from '@ember/runloop';
2
- import EmberObject from '@ember/object';
2
+ import '@ember/object';
3
3
  import '@ember/application';
4
- import '@ember/application/instance';
5
- import '@ember/-internals/container';
6
- import { RegistryProxyMixin, ContainerProxyMixin } from '@ember/-internals/runtime';
4
+ import '@ember/destroyable';
7
5
  import { Test } from 'ember-testing';
8
6
  import '@ember/-internals/error-handling';
9
7
  import { registerDeprecationHandler, registerWarnHandler } from '@ember/debug';
10
8
  import { VERSION } from '@ember/version';
11
9
  import { getPendingWaiterState, hasPendingWaiters } from '@ember/test-waiters';
12
- import '@ember/destroyable';
13
- import '@ember/-internals/views';
14
10
  import '@glimmer/manager';
15
11
  import { macroCondition, appEmberSatisfies, importSync, dependencySatisfies } from '@embroider/macros';
16
12
  import { precompileTemplate } from '@ember/template-compilation';
@@ -292,42 +288,6 @@ function isNotNullable(value) {
292
288
  return value != null;
293
289
  }
294
290
 
295
- // NOTE: this is the same as what `EngineInstance`/`ApplicationInstance`
296
- // implement, and is thus a superset of the `InternalOwner` contract from Ember
297
- // itself.
298
- // This is the same merging pattern Ember itself uses for `Engine` etc.: the
299
- // interface reflects the mixins actually applied in the `extends` clause.
300
- // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
301
-
302
- // eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
303
- class Owner extends EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin) {
304
- _emberTestHelpersMockOwner = true;
305
-
306
- /* eslint-disable valid-jsdoc */
307
- /**
308
- * Unregister a factory and its instance.
309
- *
310
- * Overrides `RegistryProxy#unregister` in order to clear any cached instances
311
- * of the unregistered factory.
312
- *
313
- * @param {string} fullName Name of the factory to unregister.
314
- *
315
- * @see {@link https://github.com/emberjs/ember.js/pull/12680}
316
- * @see {@link https://github.com/emberjs/ember.js/blob/v4.5.0-alpha.5/packages/%40ember/engine/instance.ts#L152-L167}
317
- */
318
- /* eslint-enable valid-jsdoc */
319
- unregister(fullName) {
320
- // SAFETY: this is always present, but only the stable type definitions from
321
- // Ember actually preserve it, since it is private API.
322
- this['__container__'].reset(fullName);
323
-
324
- // We overwrote this method from RegistryProxyMixin.
325
- // SAFETY: this is always present, but only the stable type definitions from
326
- // Ember actually preserve it, since it is private API.
327
- this['__registry__'].unregister(fullName);
328
- }
329
- }
330
-
331
291
  // eslint-disable-next-line require-jsdoc
332
292
  function isElement(target) {
333
293
  return target !== null && typeof target === 'object' && Reflect.get(target, 'nodeType') === Node.ELEMENT_NODE;
@@ -865,15 +825,7 @@ function getRootElement() {
865
825
  if (!context || !isTestContext(context) || !context.owner) {
866
826
  throw new Error('Must setup rendering context before attempting to interact with elements.');
867
827
  }
868
- const owner = context.owner;
869
- let rootElement;
870
- // When the host app uses `setApplication` (instead of `setResolver`) the owner has
871
- // a `rootElement` set on it with the element or id to be used
872
- if (owner && owner._emberTestHelpersMockOwner === undefined) {
873
- rootElement = owner.rootElement;
874
- } else {
875
- rootElement = '#ember-testing';
876
- }
828
+ let rootElement = context.owner.rootElement;
877
829
  if (rootElement instanceof Window) {
878
830
  rootElement = rootElement.document;
879
831
  }