@melodicdev/components 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/README.md +4 -4
  2. package/assets/fonts/phosphor/phosphor.css +5 -25
  3. package/assets/melodic-components.css +50 -25
  4. package/assets/melodic-components.js +5370 -4233
  5. package/assets/melodic-components.js.map +1 -1
  6. package/assets/melodic-components.min.css +1 -21
  7. package/assets/melodic-components.min.js +1808 -26662
  8. package/lib/components/data-display/calendar-view/calendar-view.styles.d.ts.map +1 -1
  9. package/lib/components/data-display/calendar-view/calendar-view.styles.js +14 -0
  10. package/lib/components/data-display/data-grid/data-grid.component.d.ts +43 -2
  11. package/lib/components/data-display/data-grid/data-grid.component.d.ts.map +1 -1
  12. package/lib/components/data-display/data-grid/data-grid.component.js +94 -8
  13. package/lib/components/data-display/data-grid/data-grid.styles.d.ts.map +1 -1
  14. package/lib/components/data-display/data-grid/data-grid.styles.js +17 -0
  15. package/lib/components/data-display/data-grid/data-grid.template.d.ts.map +1 -1
  16. package/lib/components/data-display/data-grid/data-grid.template.js +19 -10
  17. package/lib/components/data-display/data-grid/index.d.ts +1 -0
  18. package/lib/components/data-display/data-grid/index.d.ts.map +1 -1
  19. package/lib/components/data-display/list/list-item.styles.js +1 -1
  20. package/lib/components/data-display/table/index.d.ts +1 -0
  21. package/lib/components/data-display/table/index.d.ts.map +1 -1
  22. package/lib/components/data-display/table/table.component.d.ts +16 -0
  23. package/lib/components/data-display/table/table.component.d.ts.map +1 -1
  24. package/lib/components/data-display/table/table.component.js +28 -3
  25. package/lib/components/data-display/table/table.styles.d.ts.map +1 -1
  26. package/lib/components/data-display/table/table.styles.js +7 -1
  27. package/lib/components/data-display/table/table.template.d.ts.map +1 -1
  28. package/lib/components/data-display/table/table.template.js +8 -6
  29. package/lib/components/data-display/table-core/index.d.ts +2 -2
  30. package/lib/components/data-display/table-core/index.d.ts.map +1 -1
  31. package/lib/components/data-display/table-core/index.js +1 -1
  32. package/lib/components/data-display/table-core/table-core.d.ts +16 -2
  33. package/lib/components/data-display/table-core/table-core.d.ts.map +1 -1
  34. package/lib/components/data-display/table-core/table-core.js +32 -5
  35. package/lib/components/data-display/tag/tag.styles.d.ts.map +1 -1
  36. package/lib/components/data-display/tag/tag.styles.js +11 -4
  37. package/lib/components/feedback/alert/alert.styles.d.ts.map +1 -1
  38. package/lib/components/feedback/alert/alert.styles.js +11 -0
  39. package/lib/components/feedback/toast/index.d.ts +1 -0
  40. package/lib/components/feedback/toast/index.d.ts.map +1 -1
  41. package/lib/components/feedback/toast/toast-container.styles.d.ts.map +1 -1
  42. package/lib/components/feedback/toast/toast-container.styles.js +20 -0
  43. package/lib/components/feedback/toast/toast.component.d.ts +16 -0
  44. package/lib/components/feedback/toast/toast.component.d.ts.map +1 -1
  45. package/lib/components/feedback/toast/toast.component.js +63 -5
  46. package/lib/components/feedback/toast/toast.service.d.ts +14 -0
  47. package/lib/components/feedback/toast/toast.service.d.ts.map +1 -1
  48. package/lib/components/feedback/toast/toast.service.js +41 -0
  49. package/lib/components/feedback/toast/toast.styles.d.ts.map +1 -1
  50. package/lib/components/feedback/toast/toast.styles.js +6 -0
  51. package/lib/components/feedback/toast/toast.template.js +1 -1
  52. package/lib/components/forms/autocomplete/autocomplete.component.d.ts +14 -4
  53. package/lib/components/forms/autocomplete/autocomplete.component.d.ts.map +1 -1
  54. package/lib/components/forms/autocomplete/autocomplete.component.js +40 -96
  55. package/lib/components/forms/autocomplete/autocomplete.styles.d.ts.map +1 -1
  56. package/lib/components/forms/autocomplete/autocomplete.styles.js +22 -6
  57. package/lib/components/forms/autocomplete/autocomplete.template.js +7 -1
  58. package/lib/components/forms/button/button.styles.d.ts.map +1 -1
  59. package/lib/components/forms/button/button.styles.js +11 -0
  60. package/lib/components/forms/button-group/button-group-item.styles.d.ts.map +1 -1
  61. package/lib/components/forms/button-group/button-group-item.styles.js +11 -0
  62. package/lib/components/forms/button-group/button-group.styles.js +2 -2
  63. package/lib/components/forms/checkbox/checkbox.styles.d.ts.map +1 -1
  64. package/lib/components/forms/checkbox/checkbox.styles.js +13 -2
  65. package/lib/components/forms/date-picker/calendar.component.d.ts +20 -7
  66. package/lib/components/forms/date-picker/calendar.component.d.ts.map +1 -1
  67. package/lib/components/forms/date-picker/calendar.component.js +88 -13
  68. package/lib/components/forms/date-picker/calendar.styles.d.ts.map +1 -1
  69. package/lib/components/forms/date-picker/calendar.styles.js +19 -0
  70. package/lib/components/forms/date-picker/date-picker.component.d.ts +2 -3
  71. package/lib/components/forms/date-picker/date-picker.component.d.ts.map +1 -1
  72. package/lib/components/forms/date-picker/date-picker.component.js +70 -18
  73. package/lib/components/forms/date-picker/date-picker.styles.d.ts.map +1 -1
  74. package/lib/components/forms/date-picker/date-picker.styles.js +12 -1
  75. package/lib/components/forms/date-time-picker/date-time-picker.styles.d.ts.map +1 -1
  76. package/lib/components/forms/date-time-picker/date-time-picker.styles.js +12 -1
  77. package/lib/components/forms/date-time-picker/tz-utils.d.ts.map +1 -1
  78. package/lib/components/forms/date-time-picker/tz-utils.js +24 -3
  79. package/lib/components/forms/file-upload/file-upload-item.styles.d.ts.map +1 -1
  80. package/lib/components/forms/file-upload/file-upload-item.styles.js +13 -1
  81. package/lib/components/forms/file-upload/file-upload.styles.d.ts.map +1 -1
  82. package/lib/components/forms/file-upload/file-upload.styles.js +11 -0
  83. package/lib/components/forms/form-field/form-field.component.d.ts +18 -1
  84. package/lib/components/forms/form-field/form-field.component.d.ts.map +1 -1
  85. package/lib/components/forms/form-field/form-field.component.js +55 -16
  86. package/lib/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  87. package/lib/components/forms/form-field/form-field.styles.js +15 -2
  88. package/lib/components/forms/input/input.styles.d.ts.map +1 -1
  89. package/lib/components/forms/input/input.styles.js +12 -1
  90. package/lib/components/forms/listbox-core/index.d.ts +3 -0
  91. package/lib/components/forms/listbox-core/index.d.ts.map +1 -0
  92. package/lib/components/forms/listbox-core/index.js +2 -0
  93. package/lib/components/forms/listbox-core/listbox-core.d.ts +57 -0
  94. package/lib/components/forms/listbox-core/listbox-core.d.ts.map +1 -0
  95. package/lib/components/forms/listbox-core/listbox-core.js +168 -0
  96. package/lib/components/forms/radio/radio-group.styles.js +1 -1
  97. package/lib/components/forms/radio/radio.styles.d.ts.map +1 -1
  98. package/lib/components/forms/radio/radio.styles.js +12 -1
  99. package/lib/components/forms/radio-card-group/radio-card-group.styles.js +1 -1
  100. package/lib/components/forms/radio-card-group/radio-card.styles.d.ts.map +1 -1
  101. package/lib/components/forms/radio-card-group/radio-card.styles.js +11 -0
  102. package/lib/components/forms/select/select.component.d.ts +12 -4
  103. package/lib/components/forms/select/select.component.d.ts.map +1 -1
  104. package/lib/components/forms/select/select.component.js +41 -110
  105. package/lib/components/forms/select/select.styles.d.ts.map +1 -1
  106. package/lib/components/forms/select/select.styles.js +23 -6
  107. package/lib/components/forms/select/select.template.d.ts.map +1 -1
  108. package/lib/components/forms/select/select.template.js +25 -9
  109. package/lib/components/forms/slider/slider.component.js +1 -1
  110. package/lib/components/forms/slider/slider.styles.d.ts.map +1 -1
  111. package/lib/components/forms/slider/slider.styles.js +11 -0
  112. package/lib/components/forms/slider/slider.template.d.ts.map +1 -1
  113. package/lib/components/forms/slider/slider.template.js +5 -1
  114. package/lib/components/forms/textarea/textarea.styles.d.ts.map +1 -1
  115. package/lib/components/forms/textarea/textarea.styles.js +13 -2
  116. package/lib/components/forms/time-picker/time-picker.component.d.ts +1 -2
  117. package/lib/components/forms/time-picker/time-picker.component.d.ts.map +1 -1
  118. package/lib/components/forms/time-picker/time-picker.component.js +8 -17
  119. package/lib/components/forms/time-picker/time-picker.styles.d.ts.map +1 -1
  120. package/lib/components/forms/time-picker/time-picker.styles.js +23 -3
  121. package/lib/components/forms/toggle/toggle.styles.d.ts.map +1 -1
  122. package/lib/components/forms/toggle/toggle.styles.js +13 -2
  123. package/lib/components/foundation/card/card.styles.d.ts.map +1 -1
  124. package/lib/components/foundation/card/card.styles.js +11 -0
  125. package/lib/components/foundation/container/container.styles.js +4 -4
  126. package/lib/components/navigation/breadcrumb/breadcrumb-item.template.d.ts.map +1 -1
  127. package/lib/components/navigation/breadcrumb/breadcrumb-item.template.js +5 -3
  128. package/lib/components/navigation/sidebar/sidebar-item.styles.js +4 -4
  129. package/lib/components/navigation/sidebar/sidebar-item.template.js +2 -2
  130. package/lib/components/navigation/sidebar/sidebar.styles.js +5 -5
  131. package/lib/components/navigation/sidebar/sidebar.template.js +2 -2
  132. package/lib/components/navigation/steps/step.styles.js +3 -3
  133. package/lib/components/navigation/steps/steps.styles.js +3 -3
  134. package/lib/components/navigation/tabs/tabs.component.d.ts.map +1 -1
  135. package/lib/components/navigation/tabs/tabs.component.js +4 -1
  136. package/lib/components/navigation/tabs/tabs.styles.js +8 -8
  137. package/lib/components/overlays/dialog/dialog.component.d.ts +15 -2
  138. package/lib/components/overlays/dialog/dialog.component.d.ts.map +1 -1
  139. package/lib/components/overlays/dialog/dialog.component.js +33 -1
  140. package/lib/components/overlays/dialog/dialog.service.d.ts +8 -2
  141. package/lib/components/overlays/dialog/dialog.service.d.ts.map +1 -1
  142. package/lib/components/overlays/dialog/dialog.service.js +1 -0
  143. package/lib/components/overlays/dialog/index.d.ts +1 -0
  144. package/lib/components/overlays/dialog/index.d.ts.map +1 -1
  145. package/lib/components/overlays/drawer/drawer.component.d.ts +18 -3
  146. package/lib/components/overlays/drawer/drawer.component.d.ts.map +1 -1
  147. package/lib/components/overlays/drawer/drawer.component.js +59 -16
  148. package/lib/components/overlays/dropdown/dropdown-item.styles.d.ts.map +1 -1
  149. package/lib/components/overlays/dropdown/dropdown-item.styles.js +12 -0
  150. package/lib/components/overlays/popover/popover.component.d.ts +12 -0
  151. package/lib/components/overlays/popover/popover.component.d.ts.map +1 -1
  152. package/lib/components/overlays/popover/popover.component.js +28 -1
  153. package/lib/components/overlays/popover/popover.template.d.ts.map +1 -1
  154. package/lib/components/overlays/popover/popover.template.js +2 -0
  155. package/lib/components/overlays/tooltip/tooltip.component.d.ts +8 -5
  156. package/lib/components/overlays/tooltip/tooltip.component.d.ts.map +1 -1
  157. package/lib/components/overlays/tooltip/tooltip.component.js +10 -3
  158. package/lib/components/sections/app-shell/app-shell.styles.js +1 -1
  159. package/lib/directives/tooltip.directive.d.ts.map +1 -1
  160. package/lib/directives/tooltip.directive.js +22 -3
  161. package/lib/theme/presets/base.preset.d.ts.map +1 -1
  162. package/lib/theme/presets/base.preset.js +17 -0
  163. package/lib/theme/presets/dark.preset.d.ts +8 -0
  164. package/lib/theme/presets/dark.preset.d.ts.map +1 -1
  165. package/lib/theme/presets/dark.preset.js +9 -0
  166. package/lib/theme/presets/light.preset.d.ts +6 -0
  167. package/lib/theme/presets/light.preset.d.ts.map +1 -1
  168. package/lib/theme/presets/light.preset.js +7 -0
  169. package/lib/theme/tokens/all-tokens.d.ts +10 -0
  170. package/lib/theme/tokens/all-tokens.d.ts.map +1 -1
  171. package/lib/theme/tokens/colors.tokens.d.ts +8 -0
  172. package/lib/theme/tokens/colors.tokens.d.ts.map +1 -1
  173. package/lib/theme/tokens/colors.tokens.js +11 -0
  174. package/lib/theme/tokens/transitions.tokens.d.ts +1 -0
  175. package/lib/theme/tokens/transitions.tokens.d.ts.map +1 -1
  176. package/lib/theme/tokens/transitions.tokens.js +3 -0
  177. package/lib/theme/tokens/typography.tokens.d.ts +1 -0
  178. package/lib/theme/tokens/typography.tokens.d.ts.map +1 -1
  179. package/lib/theme/tokens/typography.tokens.js +1 -0
  180. package/lib/utils/accessibility/cross-root-aria.d.ts +16 -8
  181. package/lib/utils/accessibility/cross-root-aria.d.ts.map +1 -1
  182. package/lib/utils/accessibility/cross-root-aria.js +58 -22
  183. package/lib/utils/accessibility/focus-trap.d.ts.map +1 -1
  184. package/lib/utils/accessibility/focus-trap.js +9 -19
  185. package/lib/utils/accessibility/focus-utils.d.ts +10 -1
  186. package/lib/utils/accessibility/focus-utils.d.ts.map +1 -1
  187. package/lib/utils/accessibility/focus-utils.js +48 -14
  188. package/lib/utils/accessibility/index.d.ts +2 -1
  189. package/lib/utils/accessibility/index.d.ts.map +1 -1
  190. package/lib/utils/accessibility/index.js +1 -1
  191. package/lib/utils/positioning/compute-position.d.ts +6 -1
  192. package/lib/utils/positioning/compute-position.d.ts.map +1 -1
  193. package/lib/utils/positioning/compute-position.js +3 -2
  194. package/lib/utils/positioning/middlewares/flip.middleware.js +2 -51
  195. package/package.json +8 -5
  196. package/assets/fonts/phosphor/Phosphor-Bold.svg +0 -3057
  197. package/assets/fonts/phosphor/Phosphor-Bold.ttf +0 -0
  198. package/assets/fonts/phosphor/Phosphor-Bold.woff +0 -0
  199. package/assets/fonts/phosphor/Phosphor-Fill.svg +0 -3057
  200. package/assets/fonts/phosphor/Phosphor-Fill.ttf +0 -0
  201. package/assets/fonts/phosphor/Phosphor-Fill.woff +0 -0
  202. package/assets/fonts/phosphor/Phosphor-Light.svg +0 -3057
  203. package/assets/fonts/phosphor/Phosphor-Light.ttf +0 -0
  204. package/assets/fonts/phosphor/Phosphor-Light.woff +0 -0
  205. package/assets/fonts/phosphor/Phosphor-Thin.svg +0 -3057
  206. package/assets/fonts/phosphor/Phosphor-Thin.ttf +0 -0
  207. package/assets/fonts/phosphor/Phosphor-Thin.woff +0 -0
  208. package/assets/fonts/phosphor/Phosphor.svg +0 -3056
  209. package/assets/fonts/phosphor/Phosphor.ttf +0 -0
  210. package/assets/fonts/phosphor/Phosphor.woff +0 -0
@@ -22,7 +22,7 @@ export function tableTemplate(c) {
22
22
  `)}
23
23
 
24
24
  <div class="ml-table__wrapper">
25
- <table role="grid">
25
+ <table>
26
26
  <thead>
27
27
  <tr>
28
28
  ${when(c.selectable, () => html `
@@ -48,10 +48,10 @@ export function tableTemplate(c) {
48
48
  })}
49
49
  style=${col.width ? `width: ${col.width}` : ''}
50
50
  tabindex=${col.sortable ? '0' : ''}
51
- role=${col.sortable ? 'columnheader button' : ''}
51
+ role=${col.sortable ? 'columnheader' : undefined}
52
52
  @click=${() => c.handleSort(col)}
53
53
  @keydown=${(e) => c.handleHeaderKeyDown(col, e)}
54
- aria-sort=${c.sortKey === col.key ? (c.sortDirection === 'asc' ? 'ascending' : 'descending') : 'none'}
54
+ aria-sort=${col.sortable ? (c.sortKey === col.key ? (c.sortDirection === 'asc' ? 'ascending' : 'descending') : 'none') : undefined}
55
55
  >
56
56
  <span class="ml-table__th-content">
57
57
  ${col.label}
@@ -71,11 +71,11 @@ export function tableTemplate(c) {
71
71
  </thead>
72
72
  <tbody>
73
73
  ${when(c.virtual && c.topSpacerHeight > 0, () => html `
74
- <tr class="ml-table__spacer">
74
+ <tr class="ml-table__spacer" aria-hidden="true">
75
75
  <td colspan="${c.colCount}" style="height: ${c.topSpacerHeight}px"></td>
76
76
  </tr>
77
77
  `)}
78
- ${repeat(c.visibleRows, (_, i) => c.startIndex + i, (row, i) => {
78
+ ${repeat(c.visibleRows, (row, i) => c.getRowKey(row, c.startIndex + i), (row, i) => {
79
79
  const absoluteIndex = c.startIndex + i;
80
80
  return html `
81
81
  <tr
@@ -84,7 +84,9 @@ export function tableTemplate(c) {
84
84
  'ml-table__row': true,
85
85
  'ml-table__row--selected': c.isRowSelected(absoluteIndex)
86
86
  })}
87
+ tabindex=${c.clickableRows ? '0' : undefined}
87
88
  @click=${() => c.handleRowClick(row, absoluteIndex)}
89
+ @keydown=${(e) => c.handleRowKeyDown(row, absoluteIndex, e)}
88
90
  >
89
91
  ${when(c.selectable, () => html `
90
92
  <td class="ml-table__check-cell">
@@ -113,7 +115,7 @@ export function tableTemplate(c) {
113
115
  `;
114
116
  })}
115
117
  ${when(c.virtual && c.bottomSpacerHeight > 0, () => html `
116
- <tr class="ml-table__spacer">
118
+ <tr class="ml-table__spacer" aria-hidden="true">
117
119
  <td colspan="${c.colCount}" style="height: ${c.bottomSpacerHeight}px"></td>
118
120
  </tr>
119
121
  `)}
@@ -1,4 +1,4 @@
1
- export { TableCore, renderCell } from './table-core.js';
2
- export type { TableCoreHost, TableCoreOptions, TableCoreColumn, SortDirection } from './table-core.js';
1
+ export { TableCore, renderCell, resolveRowKey } from './table-core.js';
2
+ export type { TableCoreHost, TableCoreOptions, TableCoreColumn, SortDirection, TableRowKey } from './table-core.js';
3
3
  export { memoOn } from './memo.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table-core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table-core/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACvE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACpH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
@@ -1,3 +1,3 @@
1
1
  // INTERNAL shared core for ml-table / ml-data-grid — not exported from the package root.
2
- export { TableCore, renderCell } from './table-core.js';
2
+ export { TableCore, renderCell, resolveRowKey } from './table-core.js';
3
3
  export { memoOn } from './memo.js';
@@ -49,6 +49,20 @@ export interface TableCoreHost {
49
49
  /** One past the last rendered row index (virtual window) */
50
50
  endIndex: number;
51
51
  }
52
+ /**
53
+ * Row identity for rendering: a property name to read from each row, or a
54
+ * function returning a unique key.
55
+ */
56
+ export type TableRowKey = string | ((row: Record<string, unknown>, index: number) => unknown);
57
+ /**
58
+ * Key used by `repeat` for a rendered row.
59
+ *
60
+ * Without a `rowKey` rows are keyed by POSITION, so after a sort, filter or
61
+ * page change the DOM of row N is reused for whatever record is now at N —
62
+ * any state a custom cell holds (an input's text, focus, an open menu) leaks
63
+ * onto a different record. With a `rowKey`, DOM follows the record.
64
+ */
65
+ export declare function resolveRowKey(rowKey: TableRowKey | null | undefined, row: Record<string, unknown>, index: number): unknown;
52
66
  export interface TableCoreOptions {
53
67
  /** Shadow-root selector for the scrollable viewport element */
54
68
  viewportSelector: string;
@@ -72,8 +86,8 @@ export declare class TableCore {
72
86
  /**
73
87
  * Sort rows by the host's current sortKey/sortDirection. Returns the input
74
88
  * untouched when no sort key is active. null/undefined values sort last
75
- * regardless of direction; numbers sort numerically, everything else by
76
- * locale-aware string comparison.
89
+ * regardless of direction; numbers sort numerically, Dates chronologically,
90
+ * everything else by locale-aware natural-order string comparison.
77
91
  */
78
92
  sortRows(rows: Record<string, unknown>[]): Record<string, unknown>[];
79
93
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"table-core.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/table-core/table-core.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3C,mFAAmF;AACnF,MAAM,WAAW,eAAe;IAC/B,yCAAyC;IACzC,GAAG,EAAE,MAAM,CAAC;IAEZ,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CAClF;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC7B,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IAEjC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CA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AAW,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAIlD;IAED,IAAW,eAAe,IAAI,MAAM,CAEnC;IAED,IAAW,kBAAkB,IAAI,MAAM,CAGtC;CACD"}
@@ -1,4 +1,33 @@
1
1
  import { VirtualScroller } from '../../../utils/virtual-scroll/index.js';
2
+ /**
3
+ * Key used by `repeat` for a rendered row.
4
+ *
5
+ * Without a `rowKey` rows are keyed by POSITION, so after a sort, filter or
6
+ * page change the DOM of row N is reused for whatever record is now at N —
7
+ * any state a custom cell holds (an input's text, focus, an open menu) leaks
8
+ * onto a different record. With a `rowKey`, DOM follows the record.
9
+ */
10
+ export function resolveRowKey(rowKey, row, index) {
11
+ if (typeof rowKey === 'function') {
12
+ return rowKey(row, index) ?? index;
13
+ }
14
+ if (typeof rowKey === 'string' && rowKey) {
15
+ return row[rowKey] ?? index;
16
+ }
17
+ return index;
18
+ }
19
+ /** Natural-order string comparison: "item 2" sorts before "item 10". */
20
+ const naturalCollator = new Intl.Collator(undefined, { numeric: true });
21
+ function compareValues(aVal, bVal) {
22
+ if (typeof aVal === 'number' && typeof bVal === 'number')
23
+ return aVal - bVal;
24
+ // Dates compare chronologically — as strings they sorted by weekday name.
25
+ if (aVal instanceof Date && bVal instanceof Date)
26
+ return aVal.getTime() - bVal.getTime();
27
+ if (typeof aVal === 'bigint' && typeof bVal === 'bigint')
28
+ return aVal < bVal ? -1 : aVal > bVal ? 1 : 0;
29
+ return naturalCollator.compare(String(aVal), String(bVal));
30
+ }
2
31
  /**
3
32
  * Default cell renderer: the column's render callback when present, otherwise
4
33
  * the raw value (blank for null/undefined).
@@ -20,8 +49,8 @@ export class TableCore {
20
49
  /**
21
50
  * Sort rows by the host's current sortKey/sortDirection. Returns the input
22
51
  * untouched when no sort key is active. null/undefined values sort last
23
- * regardless of direction; numbers sort numerically, everything else by
24
- * locale-aware string comparison.
52
+ * regardless of direction; numbers sort numerically, Dates chronologically,
53
+ * everything else by locale-aware natural-order string comparison.
25
54
  */
26
55
  sortRows(rows) {
27
56
  const key = this._host.sortKey;
@@ -35,9 +64,7 @@ export class TableCore {
35
64
  return bVal == null ? 0 : 1;
36
65
  if (bVal == null)
37
66
  return -1;
38
- if (typeof aVal === 'number' && typeof bVal === 'number')
39
- return (aVal - bVal) * dir;
40
- return String(aVal).localeCompare(String(bVal)) * dir;
67
+ return compareValues(aVal, bVal) * dir;
41
68
  });
42
69
  }
43
70
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iDA0OrB,CAAC"}
1
+ {"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/data-display/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,iDAiPrB,CAAC"}
@@ -120,7 +120,7 @@ export const tagStyles = () => css `
120
120
  border-radius: var(--ml-radius-full);
121
121
  object-fit: cover;
122
122
  flex-shrink: 0;
123
- margin-left: calc(var(--ml-space-0-5) * -1);
123
+ margin-inline-start: calc(var(--ml-space-0-5) * -1);
124
124
  }
125
125
 
126
126
  .ml-tag--sm .ml-tag__avatar {
@@ -136,7 +136,7 @@ export const tagStyles = () => css `
136
136
  /* Icon */
137
137
  .ml-tag__icon {
138
138
  flex-shrink: 0;
139
- margin-left: calc(var(--ml-space-0-5) * -1);
139
+ margin-inline-start: calc(var(--ml-space-0-5) * -1);
140
140
  }
141
141
 
142
142
  /* Content */
@@ -162,7 +162,7 @@ export const tagStyles = () => css `
162
162
  justify-content: center;
163
163
  padding: 0;
164
164
  margin: 0;
165
- margin-right: calc(var(--ml-space-1) * -1);
165
+ margin-inline-end: calc(var(--ml-space-1) * -1);
166
166
  border: none;
167
167
  background: none;
168
168
  color: var(--ml-tag-close-color, var(--ml-color-text-muted));
@@ -189,7 +189,7 @@ export const tagStyles = () => css `
189
189
  height: 1rem;
190
190
  padding: 0;
191
191
  margin: 0;
192
- margin-left: calc(var(--ml-space-0-5) * -1);
192
+ margin-inline-start: calc(var(--ml-space-0-5) * -1);
193
193
  border: var(--ml-tag-border-width, var(--ml-border)) solid var(--ml-tag-checkbox-border, var(--ml-color-border-strong));
194
194
  border-radius: var(--ml-radius-sm);
195
195
  background: var(--ml-tag-checkbox-bg, var(--ml-color-surface));
@@ -233,4 +233,11 @@ export const tagStyles = () => css `
233
233
  opacity: var(--ml-tag-disabled-opacity, 0.5);
234
234
  pointer-events: none;
235
235
  }
236
+
237
+ @media (prefers-reduced-motion: reduce) {
238
+ .ml-tag__close,
239
+ .ml-tag__checkbox {
240
+ transition: none;
241
+ }
242
+ }
236
243
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alert/alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDAqKvB,CAAC"}
1
+ {"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/alert/alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDAgLvB,CAAC"}
@@ -164,4 +164,15 @@ export const alertStyles = () => css `
164
164
  outline: none;
165
165
  opacity: var(--ml-alert-dismiss-hover-opacity, 1);
166
166
  }
167
+
168
+ /*
169
+ * Forced colors (Windows High Contrast): box-shadow rings and background
170
+ * highlights are not painted there, so focus falls back to a real outline.
171
+ */
172
+ @media (forced-colors: active) {
173
+ .ml-alert__dismiss:focus-visible {
174
+ outline: 2px solid Highlight;
175
+ outline-offset: 2px;
176
+ }
177
+ }
167
178
  `;
@@ -1,4 +1,5 @@
1
1
  export { ToastService } from './toast.service.js';
2
+ export type { IToastRef } from './toast.service.js';
2
3
  export type { IToastConfig, ToastVariant, ToastPosition } from './toast-config.interface.js';
3
4
  export { ToastComponent } from './toast.component.js';
4
5
  export { toastTemplate } from './toast.template.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"toast-container.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/toast-container.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,iDA6DhC,CAAC"}
1
+ {"version":3,"file":"toast-container.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/toast-container.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,iDAiFhC,CAAC"}
@@ -4,6 +4,26 @@ export const toastContainerStyles = () => css `
4
4
  display: block;
5
5
  }
6
6
 
7
+ /*
8
+ * ToastService shows the container as a manual popover so it renders in
9
+ * the top layer (above modal dialogs). Undo the UA popover box so the
10
+ * host stays what it always was: an unstyled, click-through wrapper
11
+ * around the fixed-position stack.
12
+ */
13
+ :host([popover]) {
14
+ position: fixed;
15
+ inset: 0;
16
+ width: auto;
17
+ height: auto;
18
+ margin: 0;
19
+ padding: 0;
20
+ border: 0;
21
+ background: transparent;
22
+ color: inherit;
23
+ overflow: visible;
24
+ pointer-events: none;
25
+ }
26
+
7
27
  .ml-toast-container {
8
28
  position: fixed;
9
29
  z-index: 9999;
@@ -26,8 +26,24 @@ export declare class ToastComponent implements IElementRef, OnCreate, OnDestroy
26
26
  /** @deprecated Use `toastTitle` (attribute `toast-title`); `title` collides with the global HTML attribute. */
27
27
  get title(): string;
28
28
  set title(value: string);
29
+ /** Time left on the auto-dismiss timer, in ms (0 = no timer pending). */
30
+ private _remaining;
31
+ private _startedAt;
29
32
  onCreate(): void;
30
33
  onDestroy(): void;
34
+ /**
35
+ * Role for the inner wrapper. ToastService puts the live-region role on the
36
+ * host element; repeating it on the wrapper nested one live region inside
37
+ * another and some screen readers announced the toast twice. A standalone
38
+ * `<ml-toast>` with no host role keeps the role here.
39
+ */
40
+ get innerRole(): string | undefined;
41
+ private startTimer;
42
+ private clearTimer;
43
+ private _hovered;
44
+ private _focused;
45
+ private readonly handleHoldStart;
46
+ private readonly handleHoldEnd;
31
47
  dismiss: () => void;
32
48
  renderIcon: () => import("@melodicdev/core").TemplateResult;
33
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/toast.component.ts"],"names":[],"mappings":"AACA,OAA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AAW,KAAK,IAAI,MAAM,CAEzB;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAG7B;IAED,yEAAyE;IACzE,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,UAAU,CAAK;IAEhB,QAAQ,IAAI,IAAI;IAchB,SAAS,IAAI,IAAI;IAaxB;;;;;OAKG;IACH,IAAW,SAAS,IAAI,MAAM,GAAG,SAAS,CAKzC;IAED,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,QAAQ,CAAC,eAAe,CAS9B;IAEF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAS5B;IAEK,OAAO,QAAO,IAAI,CAYvB;IAEK,UAAU,kDASf;CACF"}
@@ -31,11 +31,36 @@ let ToastComponent = class ToastComponent {
31
31
  /** Show dismiss button */
32
32
  this.dismissible = true;
33
33
  this._timer = null;
34
- this.dismiss = () => {
35
- if (this._timer) {
36
- clearTimeout(this._timer);
37
- this._timer = null;
34
+ /** Time left on the auto-dismiss timer, in ms (0 = no timer pending). */
35
+ this._remaining = 0;
36
+ this._startedAt = 0;
37
+ this._hovered = false;
38
+ this._focused = false;
39
+ this.handleHoldStart = (event) => {
40
+ if (event.type === 'mouseenter')
41
+ this._hovered = true;
42
+ else
43
+ this._focused = true;
44
+ if (!this._timer) {
45
+ return;
46
+ }
47
+ this.clearTimer();
48
+ this._remaining = Math.max(0, this._remaining - (Date.now() - this._startedAt));
49
+ };
50
+ this.handleHoldEnd = (event) => {
51
+ if (event.type === 'mouseleave')
52
+ this._hovered = false;
53
+ else
54
+ this._focused = false;
55
+ // Still held by the other input modality, or nothing left to resume.
56
+ if (this._hovered || this._focused || this._timer || this._remaining <= 0) {
57
+ return;
38
58
  }
59
+ this.startTimer(this._remaining);
60
+ };
61
+ this.dismiss = () => {
62
+ this.clearTimer();
63
+ this._remaining = 0;
39
64
  this.elementRef.dispatchEvent(new CustomEvent('ml:dismiss', {
40
65
  bubbles: true,
41
66
  composed: true
@@ -61,8 +86,15 @@ let ToastComponent = class ToastComponent {
61
86
  this.toastTitle = value;
62
87
  }
63
88
  onCreate() {
89
+ // WCAG 2.2.1: a message that disappears on a timer must be pausable.
90
+ // Hovering or focusing the toast holds it open; leaving resumes the
91
+ // countdown with whatever time was left.
92
+ this.elementRef.addEventListener('mouseenter', this.handleHoldStart);
93
+ this.elementRef.addEventListener('mouseleave', this.handleHoldEnd);
94
+ this.elementRef.addEventListener('focusin', this.handleHoldStart);
95
+ this.elementRef.addEventListener('focusout', this.handleHoldEnd);
64
96
  if (this.duration > 0) {
65
- this._timer = setTimeout(() => this.dismiss(), this.duration);
97
+ this.startTimer(this.duration);
66
98
  }
67
99
  }
68
100
  onDestroy() {
@@ -70,6 +102,32 @@ let ToastComponent = class ToastComponent {
70
102
  // the container being torn down) left the timer armed; it then ran
71
103
  // dismiss() on a detached element and kept the component alive until
72
104
  // it fired.
105
+ this.clearTimer();
106
+ this._remaining = 0;
107
+ this.elementRef.removeEventListener('mouseenter', this.handleHoldStart);
108
+ this.elementRef.removeEventListener('mouseleave', this.handleHoldEnd);
109
+ this.elementRef.removeEventListener('focusin', this.handleHoldStart);
110
+ this.elementRef.removeEventListener('focusout', this.handleHoldEnd);
111
+ }
112
+ /**
113
+ * Role for the inner wrapper. ToastService puts the live-region role on the
114
+ * host element; repeating it on the wrapper nested one live region inside
115
+ * another and some screen readers announced the toast twice. A standalone
116
+ * `<ml-toast>` with no host role keeps the role here.
117
+ */
118
+ get innerRole() {
119
+ if (this.elementRef?.hasAttribute('role')) {
120
+ return undefined;
121
+ }
122
+ return this.variant === 'error' ? 'alert' : 'status';
123
+ }
124
+ startTimer(ms) {
125
+ this.clearTimer();
126
+ this._remaining = ms;
127
+ this._startedAt = Date.now();
128
+ this._timer = setTimeout(() => this.dismiss(), ms);
129
+ }
130
+ clearTimer() {
73
131
  if (this._timer) {
74
132
  clearTimeout(this._timer);
75
133
  this._timer = null;
@@ -48,5 +48,19 @@ export declare class ToastService {
48
48
  private forget;
49
49
  private enforceMaxVisible;
50
50
  private ensureContainer;
51
+ /**
52
+ * Put the container in the top layer, above everything already there.
53
+ *
54
+ * As an ordinary fixed-position child of <body> the container sat UNDER
55
+ * any modal `<dialog>` (ml-dialog, ml-drawer), whatever its z-index — a
56
+ * toast raised while a dialog was open was hidden behind the backdrop.
57
+ * A manual popover is rendered in the top layer; re-showing it for each
58
+ * new toast moves it above a dialog opened since the last one.
59
+ *
60
+ * Note: the platform still makes everything outside an open modal dialog
61
+ * inert, so such a toast is visible but its dismiss button is not
62
+ * clickable until the dialog closes.
63
+ */
64
+ private raiseContainer;
51
65
  }
52
66
  //# sourceMappingURL=toast.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toast.service.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/toast.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE/E;;;;;;;;;;;;GAYG;AACH,mEAAmE;AACnE,MAAM,WAAW,SAAS;IACzB,yDAAyD;IACzD,OAAO,IAAI,IAAI,CAAC;IAChB,mEAAmE;IACnE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B;AAED,qBACa,YAAY;IACxB,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,SAAS,CAA8B;IAC/C,gDAAgD;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,WAAW,CAAK;IAExB;;;;OAIG;IACI,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKvC,8CAA8C;IACvC,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAQjD,gFAAgF;IACzE,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS;IA8B5C,yBAAyB;IAClB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAIvD,2BAA2B;IACpB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAI1D,2BAA2B;IACpB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAI1D,0BAA0B;IACnB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAIxD,8CAA8C;IACvC,UAAU,IAAI,IAAI;IAOzB,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,eAAe;CAWvB"}
1
+ {"version":3,"file":"toast.service.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/toast.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE/E;;;;;;;;;;;;GAYG;AACH,mEAAmE;AACnE,MAAM,WAAW,SAAS;IACzB,yDAAyD;IACzD,OAAO,IAAI,IAAI,CAAC;IAChB,mEAAmE;IACnE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC9B;AAED,qBACa,YAAY;IACxB,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,SAAS,CAA8B;IAC/C,gDAAgD;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,WAAW,CAAK;IAExB;;;;OAIG;IACI,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKvC,8CAA8C;IACvC,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAQjD,gFAAgF;IACzE,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS;IA+B5C,yBAAyB;IAClB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAIvD,2BAA2B;IACpB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAI1D,2BAA2B;IACpB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAI1D,0BAA0B;IACnB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS;IAIxD,8CAA8C;IACvC,UAAU,IAAI,IAAI;IAOzB,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,eAAe;IAYvB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,cAAc;CA4BtB"}
@@ -49,6 +49,7 @@ let ToastService = class ToastService {
49
49
  // to be role="alert", which interrupts.
50
50
  toast.setAttribute('role', config.variant === 'error' ? 'alert' : 'status');
51
51
  container.appendChild(toast);
52
+ this.raiseContainer(container);
52
53
  this._active.push(toast);
53
54
  toast.addEventListener('ml:dismiss', () => this.forget(toast), { once: true });
54
55
  this.enforceMaxVisible();
@@ -107,6 +108,46 @@ let ToastService = class ToastService {
107
108
  document.body.appendChild(this._containerEl);
108
109
  return this._containerEl;
109
110
  }
111
+ /**
112
+ * Put the container in the top layer, above everything already there.
113
+ *
114
+ * As an ordinary fixed-position child of <body> the container sat UNDER
115
+ * any modal `<dialog>` (ml-dialog, ml-drawer), whatever its z-index — a
116
+ * toast raised while a dialog was open was hidden behind the backdrop.
117
+ * A manual popover is rendered in the top layer; re-showing it for each
118
+ * new toast moves it above a dialog opened since the last one.
119
+ *
120
+ * Note: the platform still makes everything outside an open modal dialog
121
+ * inert, so such a toast is visible but its dismiss button is not
122
+ * clickable until the dialog closes.
123
+ */
124
+ raiseContainer(container) {
125
+ if (typeof container.showPopover !== 'function') {
126
+ return;
127
+ }
128
+ if (container.getAttribute('popover') !== 'manual') {
129
+ container.setAttribute('popover', 'manual');
130
+ }
131
+ // Hiding first re-inserts it at the top of the top layer. Skip that
132
+ // while the user has focus inside a toast — hiding a popover moves
133
+ // focus out of it.
134
+ if (!container.contains(document.activeElement)) {
135
+ try {
136
+ container.hidePopover();
137
+ }
138
+ catch {
139
+ // Not showing yet.
140
+ }
141
+ }
142
+ try {
143
+ container.showPopover();
144
+ }
145
+ catch {
146
+ // Popover API refused: fall back to plain fixed positioning
147
+ // rather than leaving a hidden [popover] element behind.
148
+ container.removeAttribute('popover');
149
+ }
150
+ }
110
151
  };
111
152
  ToastService = __decorate([
112
153
  Injectable()
@@ -1 +1 @@
1
- {"version":3,"file":"toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/toast.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDA4IvB,CAAC"}
1
+ {"version":3,"file":"toast.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/feedback/toast/toast.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iDAkJvB,CAAC"}
@@ -66,6 +66,12 @@ export const toastStyles = () => css `
66
66
  animation: ml-toast-in var(--ml-toast-animation-duration, var(--ml-duration-300)) var(--ml-toast-animation-easing, var(--ml-ease-out));
67
67
  }
68
68
 
69
+ @media (prefers-reduced-motion: reduce) {
70
+ .ml-toast {
71
+ animation: none;
72
+ }
73
+ }
74
+
69
75
  @keyframes ml-toast-in {
70
76
  from {
71
77
  opacity: 0;
@@ -6,7 +6,7 @@ export function toastTemplate(c) {
6
6
  'ml-toast': true,
7
7
  [`ml-toast--${c.variant}`]: true
8
8
  })}
9
- role=${c.variant === 'error' ? 'alert' : 'status'}
9
+ role=${c.innerRole}
10
10
  >
11
11
  <div class="ml-toast__icon">
12
12
  ${c.renderIcon()}
@@ -81,10 +81,11 @@ export declare class AutocompleteComponent implements IElementRef, OnCreate, OnD
81
81
  private readonly _positioner;
82
82
  private _debounceTimer;
83
83
  private _searchGeneration;
84
- private _syncingValues;
84
+ /** Keeps value / values / multiple consistent (shared with ml-select). */
85
+ private readonly _valueSync;
85
86
  onCreate(): void;
86
87
  onDestroy(): void;
87
- onPropertyChange(name: string): void;
88
+ onPropertyChange(name: string, _: unknown, newValue: unknown): void;
88
89
  /** Get the selected option (single mode) */
89
90
  get selectedOption(): AutocompleteOption | undefined;
90
91
  /** Get selected options (multi mode) */
@@ -94,6 +95,12 @@ export declare class AutocompleteComponent implements IElementRef, OnCreate, OnD
94
95
  /** Filtered options for display */
95
96
  get filteredOptions(): AutocompleteOption[];
96
97
  get hasValue(): boolean;
98
+ /** Unique id of the error element (for aria-describedby) */
99
+ get errorId(): string;
100
+ /** Unique id of the hint element (for aria-describedby) */
101
+ get hintId(): string;
102
+ /** Id of the message that describes the input, or undefined when there is none. */
103
+ get describedBy(): string | undefined;
97
104
  /** Unique id of the listbox element (for aria-controls) */
98
105
  get listboxId(): string;
99
106
  /** Unique id for the option at the given display index */
@@ -139,10 +146,13 @@ export declare class AutocompleteComponent implements IElementRef, OnCreate, OnD
139
146
  private stopPositioning;
140
147
  private getDropdownEl;
141
148
  private onKeyDown;
149
+ /**
150
+ * Keep the keyboard-focused option visible. Arrowing past the visible
151
+ * part of a long list used to move the highlight out of view.
152
+ */
153
+ private scrollFocusedOptionIntoView;
142
154
  private focusNextOption;
143
155
  private focusPreviousOption;
144
156
  private findFirstEnabledIndex;
145
- private updateValues;
146
- private areValuesEqual;
147
157
  }
148
158
  //# sourceMappingURL=autocomplete.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.component.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/autocomplete/autocomplete.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;A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C/B,eAAe,GAAI,OAAO,KAAK,EAAE,OAAO,MAAM,KAAG,IAAI,CAY1D;IAEF,4CAA4C;IACrC,WAAW,GAAI,OAAO,KAAK,KAAG,IAAI,CAiBvC;IAEF,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,eAAe;YAST,aAAa;IAoC3B,qDAAqD;IACrD,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,2BAA2B;IAInC,8EAA8E;IAC9E,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,SAAS;IAiEjB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,cAAc;CAOtB"}
1
+ {"version":3,"file":"autocomplete.component.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/autocomplete/autocomplete.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAgBxF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAMa,qBAAsB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS;IACtE,UAAU,EAAG,WAAW,CAAC;IAEhC,iBAAiB;IACV,KAAK,SAAM;IAElB,uBAAuB;IAChB,WAAW,SAAY;IAE9B,kCAAkC;IAC3B,IAAI,SAAM;IAEjB,iDAAiD;IAC1C,KAAK,SAAM;IAElB,qBAAqB;IACd,IAAI,EAAE,IAAI,CAAQ;IAEzB,4BAA4B;IACrB,QAAQ,UAAS;IAExB,uBAAuB;IAChB,QAAQ,UA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