@molecule/app-ui-angular 1.2.1 → 1.3.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 (212) hide show
  1. package/README.md +2744 -912
  2. package/dist/components/accordion.component.d.ts +17 -2
  3. package/dist/components/accordion.component.d.ts.map +1 -1
  4. package/dist/components/accordion.component.js +31 -7
  5. package/dist/components/accordion.component.js.map +1 -1
  6. package/dist/components/alert.component.d.ts +15 -2
  7. package/dist/components/alert.component.d.ts.map +1 -1
  8. package/dist/components/alert.component.js +25 -4
  9. package/dist/components/alert.component.js.map +1 -1
  10. package/dist/components/auth-guard.component.d.ts +41 -9
  11. package/dist/components/auth-guard.component.d.ts.map +1 -1
  12. package/dist/components/auth-guard.component.js +58 -23
  13. package/dist/components/auth-guard.component.js.map +1 -1
  14. package/dist/components/avatar.component.d.ts +15 -2
  15. package/dist/components/avatar.component.d.ts.map +1 -1
  16. package/dist/components/avatar.component.js +35 -5
  17. package/dist/components/avatar.component.js.map +1 -1
  18. package/dist/components/badge.component.d.ts +15 -2
  19. package/dist/components/badge.component.d.ts.map +1 -1
  20. package/dist/components/badge.component.js +35 -6
  21. package/dist/components/badge.component.js.map +1 -1
  22. package/dist/components/button.component.d.ts +20 -2
  23. package/dist/components/button.component.d.ts.map +1 -1
  24. package/dist/components/button.component.js +30 -4
  25. package/dist/components/button.component.js.map +1 -1
  26. package/dist/components/card.component.d.ts +67 -9
  27. package/dist/components/card.component.d.ts.map +1 -1
  28. package/dist/components/card.component.js +99 -17
  29. package/dist/components/card.component.js.map +1 -1
  30. package/dist/components/checkbox.component.d.ts +35 -5
  31. package/dist/components/checkbox.component.d.ts.map +1 -1
  32. package/dist/components/checkbox.component.js +59 -9
  33. package/dist/components/checkbox.component.js.map +1 -1
  34. package/dist/components/confirm-button.component.d.ts +85 -17
  35. package/dist/components/confirm-button.component.d.ts.map +1 -1
  36. package/dist/components/confirm-button.component.js +112 -25
  37. package/dist/components/confirm-button.component.js.map +1 -1
  38. package/dist/components/confirm-dialog.component.d.ts +50 -13
  39. package/dist/components/confirm-dialog.component.d.ts.map +1 -1
  40. package/dist/components/confirm-dialog.component.js +118 -31
  41. package/dist/components/confirm-dialog.component.js.map +1 -1
  42. package/dist/components/dropdown.component.d.ts +30 -4
  43. package/dist/components/dropdown.component.d.ts.map +1 -1
  44. package/dist/components/dropdown.component.js +80 -13
  45. package/dist/components/dropdown.component.js.map +1 -1
  46. package/dist/components/empty-state.component.d.ts +5 -1
  47. package/dist/components/empty-state.component.d.ts.map +1 -1
  48. package/dist/components/empty-state.component.js +5 -1
  49. package/dist/components/empty-state.component.js.map +1 -1
  50. package/dist/components/floating-input.component.d.ts +18 -4
  51. package/dist/components/floating-input.component.d.ts.map +1 -1
  52. package/dist/components/floating-input.component.js +38 -8
  53. package/dist/components/floating-input.component.js.map +1 -1
  54. package/dist/components/form-field.component.d.ts +14 -2
  55. package/dist/components/form-field.component.d.ts.map +1 -1
  56. package/dist/components/form-field.component.js +34 -5
  57. package/dist/components/form-field.component.js.map +1 -1
  58. package/dist/components/form.component.d.ts +61 -15
  59. package/dist/components/form.component.d.ts.map +1 -1
  60. package/dist/components/form.component.js +65 -14
  61. package/dist/components/form.component.js.map +1 -1
  62. package/dist/components/icon.component.d.ts +22 -4
  63. package/dist/components/icon.component.d.ts.map +1 -1
  64. package/dist/components/icon.component.js +1 -1
  65. package/dist/components/icon.component.js.map +1 -1
  66. package/dist/components/input.component.d.ts +34 -4
  67. package/dist/components/input.component.d.ts.map +1 -1
  68. package/dist/components/input.component.js +66 -11
  69. package/dist/components/input.component.js.map +1 -1
  70. package/dist/components/label.component.d.ts +5 -1
  71. package/dist/components/label.component.d.ts.map +1 -1
  72. package/dist/components/label.component.js +6 -2
  73. package/dist/components/label.component.js.map +1 -1
  74. package/dist/components/language-picker.component.d.ts +44 -8
  75. package/dist/components/language-picker.component.d.ts.map +1 -1
  76. package/dist/components/language-picker.component.js +29 -17
  77. package/dist/components/language-picker.component.js.map +1 -1
  78. package/dist/components/layout.component.d.ts +57 -8
  79. package/dist/components/layout.component.d.ts.map +1 -1
  80. package/dist/components/layout.component.js +134 -21
  81. package/dist/components/layout.component.js.map +1 -1
  82. package/dist/components/load-error-banner.component.d.ts +39 -7
  83. package/dist/components/load-error-banner.component.d.ts.map +1 -1
  84. package/dist/components/load-error-banner.component.js +68 -21
  85. package/dist/components/load-error-banner.component.js.map +1 -1
  86. package/dist/components/modal.component.d.ts +20 -3
  87. package/dist/components/modal.component.d.ts.map +1 -1
  88. package/dist/components/modal.component.js +40 -6
  89. package/dist/components/modal.component.js.map +1 -1
  90. package/dist/components/optimistic-toggle-button.component.d.ts +80 -19
  91. package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
  92. package/dist/components/optimistic-toggle-button.component.js +86 -25
  93. package/dist/components/optimistic-toggle-button.component.js.map +1 -1
  94. package/dist/components/page-header.component.d.ts +5 -1
  95. package/dist/components/page-header.component.d.ts.map +1 -1
  96. package/dist/components/page-header.component.js +5 -1
  97. package/dist/components/page-header.component.js.map +1 -1
  98. package/dist/components/page-shell.component.d.ts +5 -1
  99. package/dist/components/page-shell.component.d.ts.map +1 -1
  100. package/dist/components/page-shell.component.js +5 -1
  101. package/dist/components/page-shell.component.js.map +1 -1
  102. package/dist/components/pagination.component.d.ts +15 -2
  103. package/dist/components/pagination.component.d.ts.map +1 -1
  104. package/dist/components/pagination.component.js +26 -5
  105. package/dist/components/pagination.component.js.map +1 -1
  106. package/dist/components/panel-close.component.d.ts +10 -1
  107. package/dist/components/panel-close.component.d.ts.map +1 -1
  108. package/dist/components/panel-close.component.js +1 -1
  109. package/dist/components/panel-close.component.js.map +1 -1
  110. package/dist/components/progress.component.d.ts +51 -8
  111. package/dist/components/progress.component.d.ts.map +1 -1
  112. package/dist/components/progress.component.js +26 -5
  113. package/dist/components/progress.component.js.map +1 -1
  114. package/dist/components/prompt-dialog.component.d.ts +59 -16
  115. package/dist/components/prompt-dialog.component.d.ts.map +1 -1
  116. package/dist/components/prompt-dialog.component.js +129 -41
  117. package/dist/components/prompt-dialog.component.js.map +1 -1
  118. package/dist/components/radio-group.component.d.ts +16 -2
  119. package/dist/components/radio-group.component.d.ts.map +1 -1
  120. package/dist/components/radio-group.component.js +28 -5
  121. package/dist/components/radio-group.component.js.map +1 -1
  122. package/dist/components/responsive-app-shell.component.d.ts +155 -31
  123. package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
  124. package/dist/components/responsive-app-shell.component.js +163 -54
  125. package/dist/components/responsive-app-shell.component.js.map +1 -1
  126. package/dist/components/select.component.d.ts +29 -4
  127. package/dist/components/select.component.d.ts.map +1 -1
  128. package/dist/components/select.component.js +55 -9
  129. package/dist/components/select.component.js.map +1 -1
  130. package/dist/components/separator.component.d.ts +37 -7
  131. package/dist/components/separator.component.d.ts.map +1 -1
  132. package/dist/components/separator.component.js +33 -6
  133. package/dist/components/separator.component.js.map +1 -1
  134. package/dist/components/sidebar-user-card.component.d.ts +28 -7
  135. package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
  136. package/dist/components/sidebar-user-card.component.js +1 -1
  137. package/dist/components/sidebar-user-card.component.js.map +1 -1
  138. package/dist/components/skeleton.component.d.ts +23 -4
  139. package/dist/components/skeleton.component.d.ts.map +1 -1
  140. package/dist/components/skeleton.component.js +34 -7
  141. package/dist/components/skeleton.component.js.map +1 -1
  142. package/dist/components/spinner.component.d.ts +15 -2
  143. package/dist/components/spinner.component.d.ts.map +1 -1
  144. package/dist/components/spinner.component.js +34 -6
  145. package/dist/components/spinner.component.js.map +1 -1
  146. package/dist/components/switch.component.d.ts +30 -7
  147. package/dist/components/switch.component.d.ts.map +1 -1
  148. package/dist/components/switch.component.js +56 -11
  149. package/dist/components/switch.component.js.map +1 -1
  150. package/dist/components/table.component.d.ts +29 -3
  151. package/dist/components/table.component.d.ts.map +1 -1
  152. package/dist/components/table.component.js +63 -8
  153. package/dist/components/table.component.js.map +1 -1
  154. package/dist/components/tabs.component.d.ts +18 -3
  155. package/dist/components/tabs.component.d.ts.map +1 -1
  156. package/dist/components/tabs.component.js +74 -39
  157. package/dist/components/tabs.component.js.map +1 -1
  158. package/dist/components/textarea.component.d.ts +29 -4
  159. package/dist/components/textarea.component.d.ts.map +1 -1
  160. package/dist/components/textarea.component.js +55 -9
  161. package/dist/components/textarea.component.js.map +1 -1
  162. package/dist/components/theme-toggle.component.d.ts +25 -6
  163. package/dist/components/theme-toggle.component.d.ts.map +1 -1
  164. package/dist/components/theme-toggle.component.js +1 -1
  165. package/dist/components/theme-toggle.component.js.map +1 -1
  166. package/dist/components/toast.component.d.ts +27 -6
  167. package/dist/components/toast.component.d.ts.map +1 -1
  168. package/dist/components/toast.component.js +48 -14
  169. package/dist/components/toast.component.js.map +1 -1
  170. package/dist/components/tooltip.component.d.ts +57 -5
  171. package/dist/components/tooltip.component.d.ts.map +1 -1
  172. package/dist/components/tooltip.component.js +103 -11
  173. package/dist/components/tooltip.component.js.map +1 -1
  174. package/dist/components/user-menu-popover.component.d.ts +68 -14
  175. package/dist/components/user-menu-popover.component.d.ts.map +1 -1
  176. package/dist/components/user-menu-popover.component.js +4 -4
  177. package/dist/components/user-menu-popover.component.js.map +1 -1
  178. package/dist/components/user-menu.component.d.ts +33 -9
  179. package/dist/components/user-menu.component.d.ts.map +1 -1
  180. package/dist/components/user-menu.component.js +1 -1
  181. package/dist/components/user-menu.component.js.map +1 -1
  182. package/dist/index.d.ts +4 -0
  183. package/dist/index.d.ts.map +1 -1
  184. package/dist/index.js +4 -0
  185. package/dist/index.js.map +1 -1
  186. package/dist/types.d.ts +1 -1
  187. package/dist/types.d.ts.map +1 -1
  188. package/dist/utilities/element-props.d.ts +78 -0
  189. package/dist/utilities/element-props.d.ts.map +1 -0
  190. package/dist/utilities/element-props.js +166 -0
  191. package/dist/utilities/element-props.js.map +1 -0
  192. package/dist/utilities/element.d.ts +34 -0
  193. package/dist/utilities/element.d.ts.map +1 -0
  194. package/dist/utilities/element.js +24 -0
  195. package/dist/utilities/element.js.map +1 -0
  196. package/dist/utilities/index.d.ts +2 -0
  197. package/dist/utilities/index.d.ts.map +1 -1
  198. package/dist/utilities/index.js +2 -0
  199. package/dist/utilities/index.js.map +1 -1
  200. package/dist/utilities/node-value.d.ts +1 -1
  201. package/dist/utilities/node-value.d.ts.map +1 -1
  202. package/dist/utilities/node-value.js +6 -2
  203. package/dist/utilities/node-value.js.map +1 -1
  204. package/dist/utilities/render-icon.d.ts +3 -2
  205. package/dist/utilities/render-icon.d.ts.map +1 -1
  206. package/dist/utilities/render-icon.js +6 -3
  207. package/dist/utilities/render-icon.js.map +1 -1
  208. package/dist/utilities/rest-attrs.d.ts +26 -2
  209. package/dist/utilities/rest-attrs.d.ts.map +1 -1
  210. package/dist/utilities/rest-attrs.js +37 -0
  211. package/dist/utilities/rest-attrs.js.map +1 -1
  212. package/package.json +4 -3
@@ -1 +1 @@
1
- {"version":3,"file":"confirm-button.component.js","sourceRoot":"","sources":["../../src/components/confirm-button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAET,MAAM,EACN,UAAU,EACV,MAAM,EAEN,SAAS,EACT,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;;IAuCvD,0BACF;;;IAEE,+BACF;;AAzCJ;;;;;;;;;;GAUG;AAoCH,MAAM,OAAO,aAAa;IACxB,6DAA6D;IAC7D,OAAO,CAAgB;IACvB,kEAAkE;IAClE,KAAK,CAAe;IACpB,mBAAmB;IACnB,IAAI,CAAO;IACX;;;;OAIG;IACH,SAAS,CAA6B;IACtC,8EAA8E;IAC9E,aAAa,GAAG,CAAC,CAAA;IACjB,kEAAkE;IAClE,QAAQ,GAAG,KAAK,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N,SAAS;oBACT,OAAO;oBACP,MAAM;oBACN,WAAW;oBACX,OAAO;oBACP,cAAc;oBACd,cAAc;oBACd,eAAe;oBACf,UAAU;oBACV,QAAQ;oBACR,WAAW;oBACX,OAAO;oBACP,cAAc;oBACd,wBAAwB;iBACzB;gBACD,IAAI,EAAE;oBACJ,aAAa,EAAE,UAAU;oBACzB,SAAS,EAAE,eAAe;oBAC1B,2BAA2B,EAAE,gBAAgB;oBAC7C,YAAY,EAAE,mCAAmC;oBACjD,kBAAkB,EAAE,UAAU;oBAC9B,mBAAmB,EAAE,SAAS;oBAC9B,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,SAAS;oBAC/B,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;iBACzB;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;sFAmB0E;aACrF;;kBA6CE,SAAS;mBAAC,WAAW;;kBAErB,SAAS;mBAAC,aAAa;;kBAEvB,SAAS;mBAAC,aAAa;;kFAhDb,aAAa"}
@@ -3,16 +3,46 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { type DoCheck, type ElementRef, EventEmitter } from '@angular/core';
6
+ import { type DoCheck, type ElementRef, EventEmitter, type TemplateRef } from '@angular/core';
7
7
  import type { UIClassMap } from '@molecule/app-ui';
8
+ import { asTemplate, isGiven, nodeText } from '../utilities/node-value.js';
8
9
  import * as i0 from "@angular/core";
10
+ /**
11
+ * Props for {@link ConfirmDialog} (React's `ConfirmDialogProps`, in Angular's
12
+ * form).
13
+ *
14
+ * Node-valued members are `string | number | TemplateRef<unknown>` inputs; a
15
+ * caller may project the same content as `[slot=title]` / `[slot=description]`
16
+ * instead. `onClose` and `onConfirm` keep React's names and signatures here;
17
+ * the component emits them through its `close` and `confirm` outputs.
18
+ */
19
+ export interface ConfirmDialogProps {
20
+ /** Whether the dialog is open. */
21
+ open: boolean;
22
+ /** Called when the dialog should close (carried by the `close` output). */
23
+ onClose: () => void;
24
+ /** Title. */
25
+ title?: string | number | TemplateRef<unknown>;
26
+ /** Body / warning text. */
27
+ description?: string | number | TemplateRef<unknown>;
28
+ /** Confirm-button label. */
29
+ confirmLabel?: string | number | TemplateRef<unknown>;
30
+ /** Cancel-button label. */
31
+ cancelLabel?: string | number | TemplateRef<unknown>;
32
+ /** Called when the user confirms (carried by the `confirm` output). */
33
+ onConfirm: () => void | Promise<void>;
34
+ /** Is the confirm action destructive? Defaults to true. */
35
+ destructive?: boolean;
36
+ /** Disables both buttons (the caller owns the pending state). */
37
+ loading?: boolean;
38
+ }
9
39
  /**
10
40
  * ConfirmDialog component.
11
41
  *
12
42
  * Composed from `Modal` and `Button` exactly as React composes them; the
13
43
  * dialog's own title/description/children are projected content (`[slot=title]`,
14
- * `[slot=description]`, default). The host is unwrapped (`data-parity-unwrap`,
15
- * React's `Modal` root is a fragment/portal).
44
+ * `[slot=description]`, default) or node-valued inputs. The host is unwrapped
45
+ * (`data-parity-unwrap`, React's `Modal` root is a fragment/portal).
16
46
  */
17
47
  export declare class ConfirmDialog implements DoCheck {
18
48
  /**
@@ -34,19 +64,25 @@ export declare class ConfirmDialog implements DoCheck {
34
64
  /** The rendered description paragraph (its projected nodes decide the wiring). */
35
65
  descriptionSlot?: ElementRef<HTMLParagraphElement>;
36
66
  /** Whether the dialog is open. */
37
- open: boolean;
67
+ open: ConfirmDialogProps['open'];
38
68
  /** Title (node-valued prop). */
39
- title?: unknown;
69
+ title?: ConfirmDialogProps['title'];
40
70
  /** Body / warning text (node-valued prop). */
41
- description?: unknown;
42
- /** Confirm-button label. */
43
- confirmLabel?: string;
44
- /** Cancel-button label. */
45
- cancelLabel?: string;
71
+ description?: ConfirmDialogProps['description'];
72
+ /** Confirm-button label (node-valued prop). */
73
+ confirmLabel?: ConfirmDialogProps['confirmLabel'];
74
+ /** Cancel-button label (node-valued prop). */
75
+ cancelLabel?: ConfirmDialogProps['cancelLabel'];
46
76
  /** Whether the confirm action is destructive (default true). */
47
- destructive: boolean;
77
+ destructive?: ConfirmDialogProps['destructive'];
48
78
  /** Disables both buttons (the caller owns the pending state). */
49
- loading?: boolean;
79
+ loading?: ConfirmDialogProps['loading'];
80
+ /** Template helpers (templates see only class members). */
81
+ readonly asTemplate: typeof asTemplate;
82
+ /** Renders a plain-string/number node value. */
83
+ readonly nodeText: typeof nodeText;
84
+ /** Whether a node-valued prop was given. */
85
+ readonly isGiven: typeof isGiven;
50
86
  /** Fires when the dialog should close (escape, backdrop, cancel). */
51
87
  readonly close: EventEmitter<unknown>;
52
88
  /** Fires when the user confirms. */
@@ -81,7 +117,8 @@ export declare class ConfirmDialog implements DoCheck {
81
117
  */
82
118
  cancelText(): string;
83
119
  /**
84
- * The confirm button's label (React shows an ellipsis while loading).
120
+ * The confirm button's label when no node label is given (React shows an
121
+ * ellipsis while loading).
85
122
  * @returns The label text.
86
123
  */
87
124
  confirmText(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"confirm-dialog.component.d.ts","sourceRoot":"","sources":["../../src/components/confirm-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,YAAY,EAGb,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAUlD;;;;;;;GAOG;AACH,qBAuCa,aAAc,YAAW,OAAO;IAC3C;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,SAAyD;IAEzE;;;;;;OAMG;IACH,QAAQ,CAAC,aAAa,SAAmB;IAEzC,kFAAkF;IAKlF,eAAe,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAElD,kCAAkC;IAClC,IAAI,UAAQ;IACZ,gCAAgC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8CAA8C;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4BAA4B;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2BAA2B;IA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,QAAQ,CAAC,KAAK,wBAA8B;IACtD,oCAAoC;IAC1B,QAAQ,CAAC,OAAO,qBAA2B;IAErD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;;;OAKG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAO;IAErC;;;;OAIG;IACH,SAAS,IAAI,IAAI;IAOjB;;;OAGG;IACH,UAAU,IAAI,MAAM;IAMpB;;;;OAIG;IACH,WAAW,IAAI,MAAM;yCAvGV,aAAa;2CAAb,aAAa;CA6GzB"}
@@ -7,13 +7,63 @@ import { Component, EventEmitter, Output, ViewChild, } from '@angular/core';
7
7
  import { useTranslation } from '@molecule/app-angular';
8
8
  import { getClassMap } from '@molecule/app-ui';
9
9
  import { nextInstanceId } from '../utilities/ids.js';
10
+ import { asTemplate, isGiven, nodeText } from '../utilities/node-value.js';
10
11
  import { Button, hasNodes } from './button.component.js';
11
12
  import { Modal } from './modal.component.js';
13
+ import { MolTemplateOutlet } from './template-outlet.directive.js';
12
14
  import * as i0 from "@angular/core";
13
15
  const _c0 = ["descriptionSlot"];
14
16
  const _c1 = [[["", "slot", "title"]], [["", "slot", "description"]], "*"];
15
17
  const _c2 = ["[slot=title]", "[slot=description]", "*"];
16
18
  const _c3 = () => ({ justify: "end", gap: "sm" });
19
+ function ConfirmDialog_Conditional_3_Template(rf, ctx) { if (rf & 1) {
20
+ i0.ɵɵelementContainer(0, 4);
21
+ i0.ɵɵtext(1);
22
+ } if (rf & 2) {
23
+ const ctx_r0 = i0.ɵɵnextContext();
24
+ i0.ɵɵproperty("molTemplateOutlet", ctx_r0.asTemplate(ctx_r0.title));
25
+ i0.ɵɵadvance();
26
+ i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.title), " ");
27
+ } }
28
+ function ConfirmDialog_Conditional_7_Template(rf, ctx) { if (rf & 1) {
29
+ i0.ɵɵelementContainer(0, 4);
30
+ i0.ɵɵtext(1);
31
+ } if (rf & 2) {
32
+ const ctx_r0 = i0.ɵɵnextContext();
33
+ i0.ɵɵproperty("molTemplateOutlet", ctx_r0.asTemplate(ctx_r0.description));
34
+ i0.ɵɵadvance();
35
+ i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.description), " ");
36
+ } }
37
+ function ConfirmDialog_Conditional_12_Template(rf, ctx) { if (rf & 1) {
38
+ i0.ɵɵelementContainer(0, 4);
39
+ i0.ɵɵtext(1);
40
+ } if (rf & 2) {
41
+ const ctx_r0 = i0.ɵɵnextContext();
42
+ i0.ɵɵproperty("molTemplateOutlet", ctx_r0.asTemplate(ctx_r0.cancelLabel));
43
+ i0.ɵɵadvance();
44
+ i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.cancelLabel), " ");
45
+ } }
46
+ function ConfirmDialog_Conditional_13_Template(rf, ctx) { if (rf & 1) {
47
+ i0.ɵɵtext(0);
48
+ } if (rf & 2) {
49
+ const ctx_r0 = i0.ɵɵnextContext();
50
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.cancelText(), " ");
51
+ } }
52
+ function ConfirmDialog_Conditional_15_Template(rf, ctx) { if (rf & 1) {
53
+ i0.ɵɵelementContainer(0, 4);
54
+ i0.ɵɵtext(1);
55
+ } if (rf & 2) {
56
+ const ctx_r0 = i0.ɵɵnextContext();
57
+ i0.ɵɵproperty("molTemplateOutlet", ctx_r0.asTemplate(ctx_r0.confirmLabel));
58
+ i0.ɵɵadvance();
59
+ i0.ɵɵtextInterpolate1("", ctx_r0.nodeText(ctx_r0.confirmLabel), " ");
60
+ } }
61
+ function ConfirmDialog_Conditional_16_Template(rf, ctx) { if (rf & 1) {
62
+ i0.ɵɵtext(0);
63
+ } if (rf & 2) {
64
+ const ctx_r0 = i0.ɵɵnextContext();
65
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.confirmText(), " ");
66
+ } }
17
67
  /** Instance counter behind {@link ConfirmDialog.titleId} (Modal's pattern). */
18
68
  let confirmDialogInstances = 0;
19
69
  /**
@@ -21,8 +71,8 @@ let confirmDialogInstances = 0;
21
71
  *
22
72
  * Composed from `Modal` and `Button` exactly as React composes them; the
23
73
  * dialog's own title/description/children are projected content (`[slot=title]`,
24
- * `[slot=description]`, default). The host is unwrapped (`data-parity-unwrap`,
25
- * React's `Modal` root is a fragment/portal).
74
+ * `[slot=description]`, default) or node-valued inputs. The host is unwrapped
75
+ * (`data-parity-unwrap`, React's `Modal` root is a fragment/portal).
26
76
  */
27
77
  export class ConfirmDialog {
28
78
  /**
@@ -52,14 +102,20 @@ export class ConfirmDialog {
52
102
  title;
53
103
  /** Body / warning text (node-valued prop). */
54
104
  description;
55
- /** Confirm-button label. */
105
+ /** Confirm-button label (node-valued prop). */
56
106
  confirmLabel;
57
- /** Cancel-button label. */
107
+ /** Cancel-button label (node-valued prop). */
58
108
  cancelLabel;
59
109
  /** Whether the confirm action is destructive (default true). */
60
110
  destructive = true;
61
111
  /** Disables both buttons (the caller owns the pending state). */
62
112
  loading;
113
+ /** Template helpers (templates see only class members). */
114
+ asTemplate = asTemplate;
115
+ /** Renders a plain-string/number node value. */
116
+ nodeText = nodeText;
117
+ /** Whether a node-valued prop was given. */
118
+ isGiven = isGiven;
63
119
  /** Fires when the dialog should close (escape, backdrop, cancel). */
64
120
  close = new EventEmitter();
65
121
  /** Fires when the user confirms. */
@@ -90,23 +146,31 @@ export class ConfirmDialog {
90
146
  * later change to what renders is picked up on the next pass.
91
147
  */
92
148
  ngDoCheck() {
93
- this.ariaDescribedBy = hasNodes(this.descriptionSlot?.nativeElement) ? this.descriptionId : null;
149
+ this.ariaDescribedBy =
150
+ isGiven(this.description) || hasNodes(this.descriptionSlot?.nativeElement)
151
+ ? this.descriptionId
152
+ : null;
94
153
  }
95
154
  /**
96
155
  * The cancel button's label.
97
156
  * @returns The label text.
98
157
  */
99
158
  cancelText() {
100
- return this.cancelLabel ?? this.i18n.t('confirm.cancel', {}, { defaultValue: 'Cancel' });
159
+ return typeof this.cancelLabel === 'string'
160
+ ? this.cancelLabel
161
+ : this.i18n.t('confirm.cancel', {}, { defaultValue: 'Cancel' });
101
162
  }
102
163
  /**
103
- * The confirm button's label (React shows an ellipsis while loading).
164
+ * The confirm button's label when no node label is given (React shows an
165
+ * ellipsis while loading).
104
166
  * @returns The label text.
105
167
  */
106
168
  confirmText() {
107
- return this.loading
108
- ? '…'
109
- : (this.confirmLabel ?? this.i18n.t('confirm.confirm', {}, { defaultValue: 'Confirm' }));
169
+ if (this.loading)
170
+ return '…';
171
+ return typeof this.confirmLabel === 'string'
172
+ ? this.confirmLabel
173
+ : this.i18n.t('confirm.confirm', {}, { defaultValue: 'Confirm' });
110
174
  }
111
175
  static ɵfac = function ConfirmDialog_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ConfirmDialog)(); };
112
176
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmDialog, selectors: [["mol-confirm-dialog"]], viewQuery: function ConfirmDialog_Query(rf, ctx) { if (rf & 1) {
@@ -114,24 +178,26 @@ export class ConfirmDialog {
114
178
  } if (rf & 2) {
115
179
  let _t;
116
180
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.descriptionSlot = _t.first);
117
- } }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { open: "open", title: "title", description: "description", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", destructive: "destructive", loading: "loading" }, outputs: { close: "close", confirm: "confirm" }, ngContentSelectors: _c2, decls: 13, vars: 21, consts: [["descriptionSlot", ""], [3, "close", "open"], ["mol-button", "", 3, "click", "variant", "disabled"], ["mol-button", "", 3, "click", "variant", "color", "disabled"]], template: function ConfirmDialog_Template(rf, ctx) { if (rf & 1) {
181
+ } }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { open: "open", title: "title", description: "description", confirmLabel: "confirmLabel", cancelLabel: "cancelLabel", destructive: "destructive", loading: "loading" }, outputs: { close: "close", confirm: "confirm" }, ngContentSelectors: _c2, decls: 17, vars: 23, consts: [["descriptionSlot", ""], [3, "close", "open"], ["mol-button", "", 3, "click", "variant", "disabled"], ["mol-button", "", 3, "click", "variant", "color", "disabled"], [3, "molTemplateOutlet"]], template: function ConfirmDialog_Template(rf, ctx) { if (rf & 1) {
118
182
  i0.ɵɵprojectionDef(_c1);
119
183
  i0.ɵɵelementStart(0, "mol-modal", 1);
120
184
  i0.ɵɵlistener("close", function ConfirmDialog_Template_mol_modal_close_0_listener($event) { return ctx.close.emit($event); });
121
185
  i0.ɵɵelementStart(1, "div")(2, "h2");
122
- i0.ɵɵprojection(3);
186
+ i0.ɵɵconditionalCreate(3, ConfirmDialog_Conditional_3_Template, 2, 2);
187
+ i0.ɵɵprojection(4);
123
188
  i0.ɵɵelementEnd();
124
- i0.ɵɵelementStart(4, "p", null, 0);
125
- i0.ɵɵprojection(6, 1);
189
+ i0.ɵɵelementStart(5, "p", null, 0);
190
+ i0.ɵɵconditionalCreate(7, ConfirmDialog_Conditional_7_Template, 2, 2);
191
+ i0.ɵɵprojection(8, 1);
126
192
  i0.ɵɵelementEnd();
127
- i0.ɵɵprojection(7, 2);
128
- i0.ɵɵelementStart(8, "div")(9, "button", 2);
129
- i0.ɵɵlistener("click", function ConfirmDialog_Template_button_click_9_listener($event) { return ctx.close.emit($event); });
130
- i0.ɵɵtext(10);
193
+ i0.ɵɵprojection(9, 2);
194
+ i0.ɵɵelementStart(10, "div")(11, "button", 2);
195
+ i0.ɵɵlistener("click", function ConfirmDialog_Template_button_click_11_listener($event) { return ctx.close.emit($event); });
196
+ i0.ɵɵconditionalCreate(12, ConfirmDialog_Conditional_12_Template, 2, 2)(13, ConfirmDialog_Conditional_13_Template, 1, 1);
131
197
  i0.ɵɵelementEnd();
132
- i0.ɵɵelementStart(11, "button", 3);
133
- i0.ɵɵlistener("click", function ConfirmDialog_Template_button_click_11_listener() { return ctx.confirm.emit(); });
134
- i0.ɵɵtext(12);
198
+ i0.ɵɵelementStart(14, "button", 3);
199
+ i0.ɵɵlistener("click", function ConfirmDialog_Template_button_click_14_listener() { return ctx.confirm.emit(); });
200
+ i0.ɵɵconditionalCreate(15, ConfirmDialog_Conditional_15_Template, 2, 2)(16, ConfirmDialog_Conditional_16_Template, 1, 1);
135
201
  i0.ɵɵelementEnd()()()();
136
202
  } if (rf & 2) {
137
203
  i0.ɵɵproperty("open", ctx.open);
@@ -141,27 +207,31 @@ export class ConfirmDialog {
141
207
  i0.ɵɵadvance();
142
208
  i0.ɵɵclassMap(ctx.cm().cn(ctx.cm().textSize("lg"), ctx.cm().fontWeight("bold")));
143
209
  i0.ɵɵattribute("id", ctx.titleId);
210
+ i0.ɵɵadvance();
211
+ i0.ɵɵconditional(ctx.isGiven(ctx.title) ? 3 : -1);
144
212
  i0.ɵɵadvance(2);
145
213
  i0.ɵɵclassMap(ctx.cm().textSize("sm"));
146
214
  i0.ɵɵattribute("id", ctx.descriptionId);
147
- i0.ɵɵadvance(4);
148
- i0.ɵɵclassMap(ctx.cm().flex(i0.ɵɵpureFunction0(20, _c3)));
215
+ i0.ɵɵadvance(2);
216
+ i0.ɵɵconditional(ctx.isGiven(ctx.description) ? 7 : -1);
217
+ i0.ɵɵadvance(3);
218
+ i0.ɵɵclassMap(ctx.cm().flex(i0.ɵɵpureFunction0(22, _c3)));
149
219
  i0.ɵɵadvance();
150
220
  i0.ɵɵproperty("variant", "ghost")("disabled", !!ctx.loading);
151
221
  i0.ɵɵadvance();
152
- i0.ɵɵtextInterpolate1(" ", ctx.cancelText());
153
- i0.ɵɵadvance();
222
+ i0.ɵɵconditional(ctx.isGiven(ctx.cancelLabel) ? 12 : 13);
223
+ i0.ɵɵadvance(2);
154
224
  i0.ɵɵproperty("variant", "solid")("color", ctx.destructive === false ? "primary" : "error")("disabled", !!ctx.loading);
155
225
  i0.ɵɵadvance();
156
- i0.ɵɵtextInterpolate1(" ", ctx.confirmText(), " ");
157
- } }, dependencies: [Button, Modal], encapsulation: 2 });
226
+ i0.ɵɵconditional(ctx.isGiven(ctx.confirmLabel) && !ctx.loading ? 15 : 16);
227
+ } }, dependencies: [Button, Modal, MolTemplateOutlet], encapsulation: 2 });
158
228
  }
159
229
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmDialog, [{
160
230
  type: Component,
161
231
  args: [{
162
232
  selector: 'mol-confirm-dialog',
163
233
  standalone: true,
164
- imports: [Button, Modal],
234
+ imports: [Button, Modal, MolTemplateOutlet],
165
235
  inputs: ['open', 'title', 'description', 'confirmLabel', 'cancelLabel', 'destructive', 'loading'],
166
236
  outputs: ['close', 'confirm'],
167
237
  host: {
@@ -175,15 +245,27 @@ export class ConfirmDialog {
175
245
  [attr.aria-describedby]="ariaDescribedBy"
176
246
  ><div [class]="cm().stack(3)">
177
247
  <h2 [attr.id]="titleId" [class]="cm().cn(cm().textSize('lg'), cm().fontWeight('bold'))">
248
+ @if (isGiven(title)) {
249
+ <ng-container [molTemplateOutlet]="asTemplate(title)"></ng-container>{{ nodeText(title) }}
250
+ }
178
251
  <ng-content select="[slot=title]"></ng-content>
179
252
  </h2>
180
253
  <p #descriptionSlot [attr.id]="descriptionId" [class]="cm().textSize('sm')">
254
+ @if (isGiven(description)) {
255
+ <ng-container [molTemplateOutlet]="asTemplate(description)"></ng-container
256
+ >{{ nodeText(description) }}
257
+ }
181
258
  <ng-content select="[slot=description]"></ng-content>
182
259
  </p>
183
260
  <ng-content></ng-content>
184
261
  <div [class]="cm().flex({ justify: 'end', gap: 'sm' })">
185
262
  <button mol-button [variant]="'ghost'" [disabled]="!!loading" (click)="close.emit($event)">
186
- {{ cancelText() }}</button
263
+ @if (isGiven(cancelLabel)) {
264
+ <ng-container [molTemplateOutlet]="asTemplate(cancelLabel)"></ng-container
265
+ >{{ nodeText(cancelLabel) }}
266
+ } @else {
267
+ {{ cancelText() }}
268
+ }</button
187
269
  ><button
188
270
  mol-button
189
271
  [variant]="'solid'"
@@ -191,7 +273,12 @@ export class ConfirmDialog {
191
273
  [disabled]="!!loading"
192
274
  (click)="confirm.emit()"
193
275
  >
194
- {{ confirmText() }}
276
+ @if (isGiven(confirmLabel) && !loading) {
277
+ <ng-container [molTemplateOutlet]="asTemplate(confirmLabel)"></ng-container
278
+ >{{ nodeText(confirmLabel) }}
279
+ } @else {
280
+ {{ confirmText() }}
281
+ }
195
282
  </button>
196
283
  </div>
197
284
  </div></mol-modal
@@ -205,5 +292,5 @@ export class ConfirmDialog {
205
292
  }], confirm: [{
206
293
  type: Output
207
294
  }] }); })();
208
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmDialog, { className: "ConfirmDialog", filePath: "components/confirm-dialog.component.ts", lineNumber: 74 }); })();
295
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmDialog, { className: "ConfirmDialog", filePath: "components/confirm-dialog.component.ts", lineNumber: 124 }); })();
209
296
  //# sourceMappingURL=confirm-dialog.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"confirm-dialog.component.js","sourceRoot":"","sources":["../../src/components/confirm-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,SAAS,EAGT,YAAY,EACZ,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;;;;;;AAE5C,+EAA+E;AAC/E,IAAI,sBAAsB,GAAG,CAAC,CAAA;AAE9B;;;;;;;GAOG;AAwCH,MAAM,OAAO,aAAa;IACxB;;;;;;OAMG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AS;mBAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;kBAmB7C,MAAM;;kBAEN,MAAM;;kFA5CI,aAAa"}
1
+ {"version":3,"file":"confirm-dialog.component.js","sourceRoot":"","sources":["../../src/components/confirm-dialog.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,SAAS,EAGT,YAAY,EACZ,MAAM,EAEN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;;;;;;;IA6DxD,2BAAqE;IAAA,YACvE;;;IADgB,mEAAuC;IAAgB,cACvE;IADuE,6DACvE;;;IAKE,2BACC;IAAA,YACH;;;IAFgB,yEAA6C;IAC1D,cACH;IADG,mEACH;;;IAOI,2BACC;IAAA,YACH;;;IAFgB,yEAA6C;IAC1D,cACH;IADG,mEACH;;;IACE,YACF;;;IADE,oDACF;;;IASE,2BACC;IAAA,YACH;;;IAFgB,0EAA8C;IAC3D,cACH;IADG,oEACH;;;IACE,YACF;;;IADE,qDACF;;AA3FV,+EAA+E;AAC/E,IAAI,sBAAsB,GAAG,CAAC,CAAA;AAgC9B;;;;;;;GAOG;AAyDH,MAAM,OAAO,aAAa;IACxB;;;;;;OAMG;IACM,OAAO,GAAG,4BAA4B,EAAE,sBAAsB,EAAE,CAAA;IAEzE;;;;;;OAMG;IACM,aAAa,GAAG,cAAc,EA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MAAM,EAAE,KAAK,EAAE,iBAAiB,CAAC;gBAC3C,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,CAAC;gBACjG,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC;gBAC7B,IAAI,EAAE;oBACJ,oBAAoB,EAAE,EAAE;oBACxB,KAAK,EAAE,mBAAmB;iBAC3B;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CR;aACH;;kBAwBE,SAAS;mBAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;kBA0B7C,MAAM;;kBAEN,MAAM;;kFAnDI,aAAa"}
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { type AfterViewChecked, type AfterViewInit, type DoCheck, ElementRef, EventEmitter, type OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
8
8
  import type { DropdownItem, UIClassMap } from '@molecule/app-ui';
9
+ import { type HasElement } from '../utilities/element.js';
9
10
  import * as i0 from "@angular/core";
10
11
  /** The dropdown placement values (React's union). */
11
12
  type DropdownPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'right';
@@ -26,7 +27,7 @@ type DropdownAlign = 'start' | 'center' | 'end';
26
27
  * unwrapped (`data-parity-unwrap`) and `display: contents` keeps it
27
28
  * fragment-like.
28
29
  */
29
- export declare class Dropdown implements AfterViewInit, AfterViewChecked, DoCheck, OnDestroy {
30
+ export declare class Dropdown implements AfterViewInit, AfterViewChecked, DoCheck, OnDestroy, HasElement<HTMLDivElement> {
30
31
  /** Dropdown trigger (node-valued prop). */
31
32
  trigger?: unknown;
32
33
  /** Dropdown items. */
@@ -45,6 +46,10 @@ export declare class Dropdown implements AfterViewInit, AfterViewChecked, DoChec
45
46
  style?: Record<string, unknown>;
46
47
  /** `data-testid` (the menu's becomes `${testId}-menu`). */
47
48
  testId?: string;
49
+ /** `data-mol-id` (the menu's becomes `${automationId}-menu`). */
50
+ automationId?: string;
51
+ /** A disabled dropdown never opens and its trigger is disabled (React's `disabled`). */
52
+ disabled?: boolean;
48
53
  /** Fires with the selected item's value (React's `onSelect`). */
49
54
  readonly select: EventEmitter<string>;
50
55
  /** Fires whenever the open state changes (React's `onOpenChange`). */
@@ -66,11 +71,21 @@ export declare class Dropdown implements AfterViewInit, AfterViewChecked, DoChec
66
71
  /** Router state; a route change closes the menu (React's effect). */
67
72
  readonly router: import("@molecule/app-angular").UseRouterResult;
68
73
  private readonly el;
74
+ private readonly inner;
75
+ /** The element a caller's ref receives: the menu, or `null` while closed. */
76
+ readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
69
77
  private readonly renderer;
70
78
  private readonly cdr;
71
79
  private readonly host;
72
80
  /** The adopted trigger element (cloned element or fallback wrapper). */
73
81
  private triggerEl;
82
+ /** The trigger's own `data-testid`/`data-mol-id`, kept when the caller sets none (React's cloneElement). */
83
+ private triggerOwnTestId;
84
+ private triggerOwnMolId;
85
+ /** Whether the cloned trigger was disabled itself: a dropdown that is enabled again leaves it so. */
86
+ private triggerOwnDisabled;
87
+ /** Whether the adopted trigger is the fallback `role="button"` wrapper (not a cloned element). */
88
+ private triggerIsFallback;
74
89
  /** The menu's embedded view, while open. */
75
90
  private menuView?;
76
91
  /** The portal menu element, while open. */
@@ -143,6 +158,11 @@ export declare class Dropdown implements AfterViewInit, AfterViewChecked, DoChec
143
158
  * @returns `${testId}-menu`, or null.
144
159
  */
145
160
  menuTestId(): string | null;
161
+ /**
162
+ * The menu `data-mol-id`.
163
+ * @returns `${automationId}-menu`, or null.
164
+ */
165
+ menuAutomationId(): string | null;
146
166
  /**
147
167
  * The menu's inline style, React's object serialized.
148
168
  * @returns The style attribute text, or null.
@@ -270,12 +290,15 @@ export declare class Dropdown implements AfterViewInit, AfterViewChecked, DoChec
270
290
  /** Applies React's cloned-trigger attributes to the adopted trigger. */
271
291
  private syncTrigger;
272
292
  static ɵfac: i0.ɵɵFactoryDeclaration<Dropdown, never>;
273
- static ɵcmp: i0.ɵɵComponentDeclaration<Dropdown, "mol-dropdown", never, { "trigger": { "alias": "trigger"; "required": false; }; "items": { "alias": "items"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "open": { "alias": "open"; "required": false; }; "align": { "alias": "align"; "required": false; }; "width": { "alias": "width"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "select": "select"; "openChange": "openChange"; }, never, ["[slot=trigger]"], true, never>;
293
+ static ɵcmp: i0.ɵɵComponentDeclaration<Dropdown, "mol-dropdown", never, { "trigger": { "alias": "trigger"; "required": false; }; "items": { "alias": "items"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "open": { "alias": "open"; "required": false; }; "align": { "alias": "align"; "required": false; }; "width": { "alias": "width"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "select": "select"; "openChange": "openChange"; }, never, ["[slot=trigger]"], true, never>;
274
294
  }
275
295
  /**
276
296
  * DropdownLabel component: a group label inside a menu.
277
297
  */
278
- export declare class DropdownLabel {
298
+ export declare class DropdownLabel implements HasElement<HTMLDivElement> {
299
+ private readonly host;
300
+ /** The element a caller's ref receives: the host `<div>`. */
301
+ readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
279
302
  /** Extra classes. */
280
303
  className?: string;
281
304
  /**
@@ -294,7 +317,10 @@ export declare class DropdownLabel {
294
317
  /**
295
318
  * DropdownSeparator component: a dividing rule inside a menu.
296
319
  */
297
- export declare class DropdownSeparator {
320
+ export declare class DropdownSeparator implements HasElement<HTMLDivElement> {
321
+ private readonly host;
322
+ /** The element a caller's ref receives: the host `<div>`. */
323
+ readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
298
324
  /** Extra classes. */
299
325
  className?: string;
300
326
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.component.d.ts","sourceRoot":"","sources":["../../src/components/dropdown.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGlB,KAAK,OAAO,EAEZ,UAAU,EAEV,YAAY,EAEZ,KAAK,SAAS,EAId,WAAW,EAEX,gBAAgB,EACjB,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAwEhE,qDAAqD;AACrD,KAAK,iBAAiB,GACpB,KAAK,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAA;AAE/F,qDAAqD;AACrD,KAAK,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAE/C;;;;;;;;;;;;;;GAcG;AACH,qBAiEa,QAAS,YAAW,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS;IAClF,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,sBAAsB;IACtB,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAK;IAClC,sBAAsB;IACtB,SAAS,EAAE,iBAAiB,CAAiB;IAC7C,iDAAiD;IACjD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,sBAAsB;IACtB,KAAK,EAAE,aAAa,CAAU;IAC9B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;IAC5C,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,2DAA2D;IAC3D,MAAM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