@molecule/app-ui-angular 1.5.1 → 1.10.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 (128) hide show
  1. package/README.md +780 -362
  2. package/dist/components/checkbox.component.d.ts +5 -1
  3. package/dist/components/checkbox.component.d.ts.map +1 -1
  4. package/dist/components/checkbox.component.js +14 -3
  5. package/dist/components/checkbox.component.js.map +1 -1
  6. package/dist/components/confirm-button.component.d.ts +1 -5
  7. package/dist/components/confirm-button.component.d.ts.map +1 -1
  8. package/dist/components/confirm-button.component.js +15 -11
  9. package/dist/components/confirm-button.component.js.map +1 -1
  10. package/dist/components/confirm-dialog.component.d.ts +1 -5
  11. package/dist/components/confirm-dialog.component.d.ts.map +1 -1
  12. package/dist/components/confirm-dialog.component.js +5 -3
  13. package/dist/components/confirm-dialog.component.js.map +1 -1
  14. package/dist/components/dropdown.component.d.ts +3 -11
  15. package/dist/components/dropdown.component.d.ts.map +1 -1
  16. package/dist/components/dropdown.component.js +54 -97
  17. package/dist/components/dropdown.component.js.map +1 -1
  18. package/dist/components/file-field.component.d.ts +42 -0
  19. package/dist/components/file-field.component.d.ts.map +1 -0
  20. package/dist/components/file-field.component.js +121 -0
  21. package/dist/components/file-field.component.js.map +1 -0
  22. package/dist/components/floating-input.component.d.ts +21 -3
  23. package/dist/components/floating-input.component.d.ts.map +1 -1
  24. package/dist/components/floating-input.component.js +34 -4
  25. package/dist/components/floating-input.component.js.map +1 -1
  26. package/dist/components/form.component.d.ts.map +1 -1
  27. package/dist/components/form.component.js +11 -6
  28. package/dist/components/form.component.js.map +1 -1
  29. package/dist/components/index.d.ts +1 -0
  30. package/dist/components/index.d.ts.map +1 -1
  31. package/dist/components/index.js +1 -0
  32. package/dist/components/index.js.map +1 -1
  33. package/dist/components/input.component.d.ts +18 -2
  34. package/dist/components/input.component.d.ts.map +1 -1
  35. package/dist/components/input.component.js +37 -11
  36. package/dist/components/input.component.js.map +1 -1
  37. package/dist/components/language-picker.component.d.ts +9 -1
  38. package/dist/components/language-picker.component.d.ts.map +1 -1
  39. package/dist/components/language-picker.component.js +15 -8
  40. package/dist/components/language-picker.component.js.map +1 -1
  41. package/dist/components/load-error-banner.component.d.ts +21 -3
  42. package/dist/components/load-error-banner.component.d.ts.map +1 -1
  43. package/dist/components/load-error-banner.component.js +33 -5
  44. package/dist/components/load-error-banner.component.js.map +1 -1
  45. package/dist/components/modal.component.d.ts +27 -48
  46. package/dist/components/modal.component.d.ts.map +1 -1
  47. package/dist/components/modal.component.js +85 -184
  48. package/dist/components/modal.component.js.map +1 -1
  49. package/dist/components/molecule/input.component.d.ts +7 -0
  50. package/dist/components/molecule/input.component.d.ts.map +1 -1
  51. package/dist/components/molecule/input.component.js +13 -5
  52. package/dist/components/molecule/input.component.js.map +1 -1
  53. package/dist/components/molecule/select.component.d.ts +7 -0
  54. package/dist/components/molecule/select.component.d.ts.map +1 -1
  55. package/dist/components/molecule/select.component.js +13 -5
  56. package/dist/components/molecule/select.component.js.map +1 -1
  57. package/dist/components/page-header.component.d.ts.map +1 -1
  58. package/dist/components/page-header.component.js +22 -21
  59. package/dist/components/page-header.component.js.map +1 -1
  60. package/dist/components/prompt-dialog.component.d.ts +6 -30
  61. package/dist/components/prompt-dialog.component.d.ts.map +1 -1
  62. package/dist/components/prompt-dialog.component.js +25 -56
  63. package/dist/components/prompt-dialog.component.js.map +1 -1
  64. package/dist/components/responsive-app-shell.component.d.ts +16 -34
  65. package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
  66. package/dist/components/responsive-app-shell.component.js +58 -141
  67. package/dist/components/responsive-app-shell.component.js.map +1 -1
  68. package/dist/components/select.component.d.ts +9 -1
  69. package/dist/components/select.component.d.ts.map +1 -1
  70. package/dist/components/select.component.js +16 -7
  71. package/dist/components/select.component.js.map +1 -1
  72. package/dist/components/sidebar-user-card.component.d.ts +5 -1
  73. package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
  74. package/dist/components/sidebar-user-card.component.js +11 -7
  75. package/dist/components/sidebar-user-card.component.js.map +1 -1
  76. package/dist/components/switch.component.d.ts +3 -1
  77. package/dist/components/switch.component.d.ts.map +1 -1
  78. package/dist/components/switch.component.js +9 -2
  79. package/dist/components/switch.component.js.map +1 -1
  80. package/dist/components/textarea.component.d.ts +15 -9
  81. package/dist/components/textarea.component.d.ts.map +1 -1
  82. package/dist/components/textarea.component.js +33 -19
  83. package/dist/components/textarea.component.js.map +1 -1
  84. package/dist/components/theme-toggle.component.d.ts +14 -1
  85. package/dist/components/theme-toggle.component.d.ts.map +1 -1
  86. package/dist/components/theme-toggle.component.js +27 -6
  87. package/dist/components/theme-toggle.component.js.map +1 -1
  88. package/dist/components/toast.component.d.ts +13 -18
  89. package/dist/components/toast.component.d.ts.map +1 -1
  90. package/dist/components/toast.component.js +47 -63
  91. package/dist/components/toast.component.js.map +1 -1
  92. package/dist/components/tooltip.component.d.ts +17 -2
  93. package/dist/components/tooltip.component.d.ts.map +1 -1
  94. package/dist/components/tooltip.component.js +52 -92
  95. package/dist/components/tooltip.component.js.map +1 -1
  96. package/dist/components/user-menu-popover.component.d.ts +16 -8
  97. package/dist/components/user-menu-popover.component.d.ts.map +1 -1
  98. package/dist/components/user-menu-popover.component.js +40 -48
  99. package/dist/components/user-menu-popover.component.js.map +1 -1
  100. package/dist/index.d.ts +8 -0
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +8 -0
  103. package/dist/index.js.map +1 -1
  104. package/dist/utilities/element-props.d.ts +1 -1
  105. package/dist/utilities/element-props.d.ts.map +1 -1
  106. package/dist/utilities/element-props.js +3 -13
  107. package/dist/utilities/element-props.js.map +1 -1
  108. package/dist/utilities/element.d.ts +10 -0
  109. package/dist/utilities/element.d.ts.map +1 -1
  110. package/dist/utilities/element.js +13 -0
  111. package/dist/utilities/element.js.map +1 -1
  112. package/dist/utilities/style.d.ts +6 -16
  113. package/dist/utilities/style.d.ts.map +1 -1
  114. package/dist/utilities/style.js +38 -117
  115. package/dist/utilities/style.js.map +1 -1
  116. package/dist/web-drag.directive.d.ts +25 -0
  117. package/dist/web-drag.directive.d.ts.map +1 -0
  118. package/dist/web-drag.directive.js +43 -0
  119. package/dist/web-drag.directive.js.map +1 -0
  120. package/dist/web-hover.directive.d.ts +24 -0
  121. package/dist/web-hover.directive.d.ts.map +1 -0
  122. package/dist/web-hover.directive.js +42 -0
  123. package/dist/web-hover.directive.js.map +1 -0
  124. package/dist/web-wheel-zoom.directive.d.ts +18 -0
  125. package/dist/web-wheel-zoom.directive.d.ts.map +1 -0
  126. package/dist/web-wheel-zoom.directive.js +28 -0
  127. package/dist/web-wheel-zoom.directive.js.map +1 -0
  128. package/package.json +13 -5
@@ -3,10 +3,11 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { afterNextRender, Component, ElementRef, EnvironmentInjector, EventEmitter, inject, Injector, Output, signal, ViewChild, } from '@angular/core';
7
- import { MolPlacement, placeElement, setElementPresent, setHostRoot, usePlacement, useTranslation, } from '@molecule/app-angular';
6
+ import { isPlatformBrowser } from '@angular/common';
7
+ import { afterNextRender, Component, ElementRef, EnvironmentInjector, EventEmitter, inject, Output, PLATFORM_ID, signal, ViewChild, } from '@angular/core';
8
+ import { MolPlacement, placeElement, placeElementBefore, setElementPresent, setHostRoot, usePlacement, useTranslation, } from '@molecule/app-angular';
9
+ import { OverlayLayer } from '@molecule/app-overlay-dom';
8
10
  import { getClassMap } from '@molecule/app-ui';
9
- import { createScrollLock, getFocusableElements } from '../utilities/focus.js';
10
11
  import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
11
12
  import { adoptHostDataMolId } from '../utilities/rest-attrs.js';
12
13
  import { styleText } from '../utilities/style.js';
@@ -69,21 +70,6 @@ function Modal_Conditional_7_Template(rf, ctx) { if (rf & 1) {
69
70
  const ctx_r1 = i0.ɵɵnextContext();
70
71
  i0.ɵɵconditional(ctx_r1.showCloseButton ? 0 : -1);
71
72
  } }
72
- /** Module-level open-modal stack (Escape/Tab act only for the topmost). */
73
- const openModalStack = [];
74
- /** Pushes a modal onto the stack (it becomes the topmost). */
75
- const pushModalStack = (id) => {
76
- if (!openModalStack.includes(id))
77
- openModalStack.push(id);
78
- };
79
- /** Removes a modal from the stack. */
80
- const popModalStack = (id) => {
81
- const index = openModalStack.indexOf(id);
82
- if (index !== -1)
83
- openModalStack.splice(index, 1);
84
- };
85
- /** Whether the given modal is currently the topmost of the stack. */
86
- const isTopOfModalStack = (id) => openModalStack.length > 0 && openModalStack[openModalStack.length - 1] === id;
87
73
  let modalInstance = 0;
88
74
  /**
89
75
  * Modal component.
@@ -95,6 +81,19 @@ let modalInstance = 0;
95
81
  * WAI-ARIA APG modal dialog pattern (focus
96
82
  * into the dialog on open, trapped Tab, focus restored on close, Escape for
97
83
  * the topmost dialog only, reference-counted body scroll lock).
84
+ *
85
+ * Projected content is created with the consumer's view, so a closed modal's body and footer exist
86
+ * while hidden: their components, effects and fetches run. React mounts them only while shown, and
87
+ * again each time they show. Write content with state as `*molLazy` (`MolLazy` from
88
+ * `@molecule/app-angular`): it is created when it shows and destroyed when it hides, as React's is.
89
+ *
90
+ * @example
91
+ * ```html
92
+ * <mol-modal [open]="open" title="Edit profile" (close)="open = false">
93
+ * <form *molLazy>…</form>
94
+ * <div slot="footer" *molLazy><button mol-button (click)="save()">Save</button></div>
95
+ * </mol-modal>
96
+ * ```
98
97
  */
99
98
  export class Modal {
100
99
  /** Whether the dialog is open. */
@@ -117,6 +116,8 @@ export class Modal {
117
116
  closeLabel;
118
117
  /** Whether body scroll is locked while open. */
119
118
  preventScroll = true;
119
+ /** The control that takes focus when the dialog opens; the first focusable control without it. */
120
+ initialFocus;
120
121
  /** Extra classes for the dialog. */
121
122
  className;
122
123
  /** Inline style object for the dialog (React camelCase). */
@@ -145,13 +146,16 @@ export class Modal {
145
146
  footerSlot;
146
147
  /** The per-instance title id (the normalizer renumbers it). */
147
148
  titleId = `mol-modal-title-${++modalInstance}`;
148
- /** The instance's stack id. */
149
- stackId = modalInstance;
150
149
  host = inject(ElementRef);
151
- /** Schedules the deferred focus moves from the change-detection hooks. */
152
- injector = inject(Injector);
153
- /** Schedules the focus restore of a destroyed open dialog (the component's own injector is gone). */
150
+ browser = isPlatformBrowser(inject(PLATFORM_ID));
154
151
  environmentInjector = inject(EnvironmentInjector);
152
+ layer = new OverlayLayer((focus) => {
153
+ // DoCheck and view destruction can be in the middle of another component's check.
154
+ // The read phase is a render's last: content a slot stamps once its place is in the page
155
+ // (`*molLazy`, in `mixedReadWrite`) exists by then, so the initial focus can be in it.
156
+ if (!this.environmentInjector.destroyed)
157
+ afterNextRender({ read: focus }, { injector: this.environmentInjector });
158
+ });
155
159
  inner = signal(null, /* @ts-ignore */
156
160
  ...(ngDevMode ? [{ debugName: "inner" }] : /* istanbul ignore next */ []));
157
161
  /** The element a caller's ref receives: the dialog, or `null` while closed. */
@@ -166,12 +170,8 @@ export class Modal {
166
170
  * does not).
167
171
  */
168
172
  i18n = useTranslation();
169
- sync = createScrollLock();
170
- lastOpen = false;
173
+ lastOpen;
171
174
  lastFooter = false;
172
- previouslyFocused = null;
173
- listeners = [];
174
- locked = false;
175
175
  /** The `data-mol-id` a caller bound on the host (React spreads it onto the dialog). */
176
176
  externalMolId;
177
177
  /**
@@ -236,8 +236,7 @@ export class Modal {
236
236
  event.stopPropagation();
237
237
  return;
238
238
  }
239
- if (this.closeOnOverlayClick)
240
- this.requestClose();
239
+ this.layer.dismissBackdrop();
241
240
  }
242
241
  /** Emits the close request (React's `onClose`). */
243
242
  requestClose() {
@@ -257,40 +256,17 @@ export class Modal {
257
256
  * content into `document.body` and applies the initial open state.
258
257
  */
259
258
  ngAfterViewInit() {
260
- const overlay = this.overlay?.nativeElement;
261
- const wrapper = this.wrapper?.nativeElement;
262
259
  const dialog = this.dialog?.nativeElement;
263
260
  if (dialog) {
264
261
  adoptHostDataMolId(this.host.nativeElement, dialog, (id) => {
265
262
  this.externalMolId = id;
266
263
  }, () => this.molId());
267
264
  }
268
- const open = !!this.open;
269
- if (open) {
270
- this.previouslyFocused = document.activeElement ?? null;
271
- pushModalStack(this.stackId);
272
- if (overlay && wrapper)
273
- this.attachPortal();
274
- this.focusFirstInDialog();
275
- this.addListeners();
276
- }
277
- else if (overlay && wrapper) {
278
- // React renders nothing while closed.
279
- this.detachPortal();
280
- }
281
- this.syncScrollLock();
282
- this.lastOpen = open;
265
+ this.syncOpen();
283
266
  }
284
- /**
285
- * Reconciles the open state on later passes.
286
- */
267
+ /** Reconciles open transitions and option changes after the view exists. */
287
268
  ngDoCheck() {
288
- const open = !!this.open;
289
- if (open !== this.lastOpen) {
290
- this.lastOpen = open;
291
- this.transition(open);
292
- }
293
- this.syncScrollLock();
269
+ this.syncOpen();
294
270
  }
295
271
  /**
296
272
  * Follows a `data-mol-id` the caller binds on the tag on every pass: React
@@ -303,24 +279,9 @@ export class Modal {
303
279
  this.externalMolId = id;
304
280
  }, () => this.molId());
305
281
  }
306
- /** Removes listeners, unlocks scroll and restores the portal nodes (unmount). */
282
+ /** Releases the layer when its parent destroys the view. */
307
283
  ngOnDestroy() {
308
- this.removeListeners();
309
- popModalStack(this.stackId);
310
- // Removed while open: focus goes back to whatever opened the dialog, as React's effect
311
- // cleanup does on unmount. After the render, since a view removed by its parent's template
312
- // is destroyed while Angular checks that parent. Not while the whole application is torn
313
- // down: its environment injector is already marked destroyed and takes no new hook.
314
- const toRestore = this.lastOpen ? this.previouslyFocused : null;
315
- if (toRestore && !this.environmentInjector.destroyed)
316
- afterNextRender(() => {
317
- if (document.contains(toRestore))
318
- toRestore.focus();
319
- }, { injector: this.environmentInjector });
320
- if (this.locked) {
321
- this.sync.unlock();
322
- this.locked = false;
323
- }
284
+ this.layer.release();
324
285
  }
325
286
  /**
326
287
  * Applies React's `{!!footer && <div className={dialogFooter}>…</div>}`, and
@@ -334,63 +295,63 @@ export class Modal {
334
295
  this.lastFooter = hasContent(this.footerSlot?.nativeElement);
335
296
  setElementPresent(this.footerSlot?.nativeElement, this.lastFooter);
336
297
  setElementPresent(this.host.nativeElement, false);
337
- setHostRoot(this.host.nativeElement, this.dialog?.nativeElement, { except: ['data-mol-id'] });
298
+ setHostRoot(this.host.nativeElement, this.wrapper ? this.dialog?.nativeElement : null, {
299
+ except: ['data-mol-id'],
300
+ });
338
301
  }
339
- /**
340
- * Applies an open/closed transition (React mounts/unmounts the portal and
341
- * its effects).
342
- *
343
- * @param open - The new open state.
344
- */
345
- transition(open) {
346
- if (open) {
347
- this.previouslyFocused = document.activeElement ?? null;
348
- pushModalStack(this.stackId);
349
- this.attachPortal();
350
- this.focusFirstInDialog();
351
- this.addListeners();
352
- }
353
- else {
354
- popModalStack(this.stackId);
355
- this.removeListeners();
356
- this.detachPortal();
357
- const toRestore = this.previouslyFocused;
358
- // After the render: the focus events fire listeners whose state changes
359
- // must be rendered (they are not while the view is still being checked).
360
- if (toRestore)
361
- afterNextRender(() => {
362
- if (document.contains(toRestore))
363
- toRestore.focus();
364
- }, { injector: this.injector });
302
+ /** Applies a portal transition and updates the open layer’s options. */
303
+ syncOpen() {
304
+ const dialog = this.dialog?.nativeElement;
305
+ if (!dialog)
306
+ return;
307
+ const open = !!this.open;
308
+ // The unconditional dialog query resolves before embedded views are checked.
309
+ // Register in that order, and place the nodes once the view is initialized.
310
+ if (open && this.browser)
311
+ this.syncLayer(dialog);
312
+ if (!this.wrapper)
313
+ return;
314
+ if (open !== this.lastOpen) {
315
+ this.lastOpen = open;
316
+ if (open)
317
+ this.attachPortal();
318
+ else {
319
+ this.layer.release();
320
+ this.detachPortal();
321
+ }
365
322
  }
366
- this.syncScrollLock();
367
323
  }
368
- /**
369
- * Moves focus into the dialog after the render — the WAI-ARIA open focus.
370
- * Deferred out of the change-detection hooks: focusing during one fires the
371
- * dialog's `focusin` listeners while Angular is still checking, and a state
372
- * change they make is never rendered.
373
- */
374
- focusFirstInDialog() {
375
- afterNextRender(() => {
376
- const dialog = this.dialog?.nativeElement;
377
- if (!dialog)
378
- return;
379
- const focusables = getFocusableElements(dialog);
380
- (focusables[0] ?? dialog).focus();
381
- }, { injector: this.injector });
324
+ /** Registers the open layer before later overlays can enter the stack. */
325
+ syncLayer(dialog) {
326
+ this.layer.sync({
327
+ open: true,
328
+ kind: 'modal',
329
+ surface: { current: dialog },
330
+ dismissKey: this.closeOnEscape,
331
+ dismissBackdrop: this.closeOnOverlayClick,
332
+ focus: { trap: true, initial: this.initialFocus, restore: 'opener' },
333
+ lockScroll: this.preventScroll,
334
+ onDismiss: () => this.requestClose(),
335
+ });
382
336
  }
383
- /** Re-inserts the portal nodes into `document.body` (in React's order). */
337
+ /** Moves the browser dialog to its own body and keeps the server dialog inline. */
384
338
  attachPortal() {
385
339
  const overlay = this.overlay?.nativeElement;
386
340
  const wrapper = this.wrapper?.nativeElement;
387
341
  if (!overlay || !wrapper)
388
342
  return;
389
- placeElement(overlay, document.body);
390
- placeElement(wrapper, document.body);
343
+ if (this.browser) {
344
+ const { body } = wrapper.ownerDocument;
345
+ placeElement(overlay, body);
346
+ placeElement(wrapper, body);
347
+ }
348
+ else {
349
+ placeElementBefore(overlay, this.host.nativeElement);
350
+ placeElementBefore(wrapper, this.host.nativeElement);
351
+ }
391
352
  this.inner.set(this.dialog?.nativeElement ?? null);
392
353
  }
393
- /** Removes the portal nodes from the document (React renders null). */
354
+ /** Removes the portal nodes while closed. */
394
355
  detachPortal() {
395
356
  placeElement(this.overlay?.nativeElement, null);
396
357
  setElementPresent(this.overlay?.nativeElement, false);
@@ -398,77 +359,16 @@ export class Modal {
398
359
  setElementPresent(this.wrapper?.nativeElement, false);
399
360
  this.inner.set(null);
400
361
  }
401
- /** Locks or unlocks body scroll for React's `open && preventScroll`. */
402
- syncScrollLock() {
403
- const shouldLock = !!this.open && this.preventScroll;
404
- if (shouldLock && !this.locked) {
405
- this.sync.lock();
406
- this.locked = true;
407
- }
408
- else if (!shouldLock && this.locked) {
409
- this.sync.unlock();
410
- this.locked = false;
411
- }
412
- }
413
- /** Adds Escape and the Tab focus trap while open (React's effect). */
414
- addListeners() {
415
- this.removeListeners();
416
- const onKeyDown = (event) => this.handleKeyDown(event);
417
- document.addEventListener('keydown', onKeyDown);
418
- this.listeners.push(() => document.removeEventListener('keydown', onKeyDown));
419
- }
420
- /** Removes the document listeners. */
421
- removeListeners() {
422
- for (const off of this.listeners)
423
- off();
424
- this.listeners = [];
425
- }
426
- /**
427
- * Escape closes the topmost dialog; Tab wraps inside it.
428
- *
429
- * @param event - The key event.
430
- */
431
- handleKeyDown(event) {
432
- if (event.key === 'Escape') {
433
- if (this.closeOnEscape && isTopOfModalStack(this.stackId))
434
- this.requestClose();
435
- return;
436
- }
437
- if (event.key !== 'Tab' || !isTopOfModalStack(this.stackId))
438
- return;
439
- const el = this.dialog?.nativeElement;
440
- if (!el)
441
- return;
442
- const focusables = getFocusableElements(el);
443
- if (focusables.length === 0) {
444
- event.preventDefault();
445
- el.focus();
446
- return;
447
- }
448
- const first = focusables[0];
449
- const last = focusables[focusables.length - 1];
450
- const active = document.activeElement;
451
- if (event.shiftKey) {
452
- if (active === first || !el.contains(active)) {
453
- event.preventDefault();
454
- last.focus();
455
- }
456
- }
457
- else if (active === last || !el.contains(active)) {
458
- event.preventDefault();
459
- first.focus();
460
- }
461
- }
462
362
  static ɵfac = function Modal_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Modal)(); };
463
363
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Modal, selectors: [["mol-modal"]], viewQuery: function Modal_Query(rf, ctx) { if (rf & 1) {
464
- i0.ɵɵviewQuery(_c0, 5)(_c1, 5)(_c2, 5)(_c3, 5);
364
+ i0.ɵɵviewQuery(_c0, 5)(_c1, 5)(_c2, 7)(_c3, 5);
465
365
  } if (rf & 2) {
466
366
  let _t;
467
367
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlay = _t.first);
468
368
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.wrapper = _t.first);
469
369
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialog = _t.first);
470
370
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerSlot = _t.first);
471
- } }, inputs: { open: "open", title: "title", size: "size", showCloseButton: "showCloseButton", closeOnOverlayClick: "closeOnOverlayClick", closeOnEscape: "closeOnEscape", footer: "footer", centered: "centered", closeLabel: "closeLabel", preventScroll: "preventScroll", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], onDoubleClick: "onDoubleClick" }, outputs: { close: "close" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c5, decls: 13, vars: 18, consts: [["overlay", ""], ["wrapper", ""], ["dialog", ""], ["footerSlot", ""], ["aria-hidden", "true"], ["role", "presentation", 3, "click"], ["role", "dialog", "aria-modal", "true", "tabindex", "-1", 3, "dblclick"], [3, "class"], [3, "id"], ["type", "button", "data-mol-id", "modal-close", 3, "class"], ["type", "button", "data-mol-id", "modal-close", 3, "click"], ["mol-icon", "", 3, "data"]], template: function Modal_Template(rf, ctx) { if (rf & 1) {
371
+ } }, inputs: { open: "open", title: "title", size: "size", showCloseButton: "showCloseButton", closeOnOverlayClick: "closeOnOverlayClick", closeOnEscape: "closeOnEscape", footer: "footer", centered: "centered", closeLabel: "closeLabel", preventScroll: "preventScroll", initialFocus: "initialFocus", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"], onDoubleClick: "onDoubleClick" }, outputs: { close: "close" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c5, decls: 13, vars: 18, consts: [["overlay", ""], ["wrapper", ""], ["dialog", ""], ["footerSlot", ""], ["aria-hidden", "true"], ["role", "presentation", 3, "click"], ["role", "dialog", "aria-modal", "true", "tabindex", "-1", 3, "dblclick"], [3, "class"], [3, "id"], ["type", "button", "data-mol-id", "modal-close", 3, "class"], ["type", "button", "data-mol-id", "modal-close", 3, "click"], ["mol-icon", "", 3, "data"]], template: function Modal_Template(rf, ctx) { if (rf & 1) {
472
372
  i0.ɵɵprojectionDef(_c4);
473
373
  i0.ɵɵelement(0, "div", 4, 0);
474
374
  i0.ɵɵelementStart(2, "div", 5, 1);
@@ -517,6 +417,7 @@ export class Modal {
517
417
  'centered',
518
418
  'closeLabel',
519
419
  'preventScroll',
420
+ 'initialFocus',
520
421
  'className',
521
422
  'style',
522
423
  'testId',
@@ -590,10 +491,10 @@ export class Modal {
590
491
  args: ['wrapper']
591
492
  }], dialog: [{
592
493
  type: ViewChild,
593
- args: ['dialog']
494
+ args: ['dialog', { static: true }]
594
495
  }], footerSlot: [{
595
496
  type: ViewChild,
596
497
  args: ['footerSlot']
597
498
  }] }); })();
598
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Modal, { className: "Modal", filePath: "components/modal.component.ts", lineNumber: 153 }); })();
499
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Modal, { className: "Modal", filePath: "components/modal.component.ts", lineNumber: 151 }); })();
599
500
  //# sourceMappingURL=modal.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.component.js","sourceRoot":"","sources":["../../src/components/modal.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,eAAe,EAGf,SAAS,EAET,UAAU,EACV,mBAAmB,EACnB,YAAY,EACZ,MAAM,EACN,QAAQ,EAER,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,WAAW,EAEX,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAE9E,OAAO,EAAE,UA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AQ,EAAE,WAAW;gBACrB,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,OAAO,EAAE,CAAC,UAAU,CAAC;gBACrB,MAAM,EAAE;oBACN,MAAM;oBACN,OAAO;oBACP,MAAM;oBACN,iBAAiB;oBACjB,qBAAqB;oBACrB,eAAe;oBACf,QAAQ;oBACR,UAAU;oBACV,YAAY;oBACZ,eAAe;oBACf,cAAc;oBACd,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,cAAc;oBACd,wBAAwB;oBACxB,eAAe;iBAChB;gBACD,OAAO,EAAE,CAAC,OAAO,CAAC;gBAClB,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAqDD;aACV;;kBA4CE,MAAM;;kBAGN,SAAS;mBAAC,SAAS;;kBAEnB,SAAS;mBAAC,SAAS;;kBAEnB,SAAS;mBAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;kBAEpC,SAAS;mBAAC,YAAY;;kFApDZ,KAAK"}
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { EventEmitter } from '@angular/core';
7
7
  import type { InputType, Size, UIClassMap } from '@molecule/app-ui';
8
+ import { fieldLayout } from '@molecule/app-ui';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
10
11
  * Angular Input UI component with UIClassMap-driven styling.
@@ -47,6 +48,12 @@ export declare class MoleculeInput {
47
48
  * @returns The UIClassMap instance for styling.
48
49
  */
49
50
  get cm(): UIClassMap;
51
+ /**
52
+ * The classes of the field's two wrappers, from the shared field layout: `root` for the
53
+ * outer wrapper, `inner` for the row that holds the control.
54
+ * @returns The outer wrapper's classes and the control row's classes.
55
+ */
56
+ get field(): ReturnType<typeof fieldLayout>;
50
57
  /**
51
58
  * Computes the accessible clear button label.
52
59
  * @returns The localized aria-label for the clear button.
@@ -1 +1 @@
1
- {"version":3,"file":"input.component.d.ts","sourceRoot":"","sources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c,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAInC;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAMzB;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;yCAhHU,aAAa;2CAAb,aAAa;CAiHzB"}
1
+ {"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../../src/components/molecule/input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAA;AAG/F,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACnE,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAA;;AAI3D;;GAEG;AACH,qBAiEa,aAAa;IACf,IAAI,EAAE,SAAS,CAAS;IACxB,IAAI,EAAE,IAAI,CAAO;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,UAAQ;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,UAAQ;IAChB,QAAQ,UAAQ;IAChB,QAAQ,UAAQ;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IAEpB,WAAW,sBAA4B;IACvC,YAAY,sBAA4B;IACxC,WAAW,2BAAiC;IAC5C,UAAU,2BAAiC;IAC3C,WAAW,qBAA2B;IAEhD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC;;;OAGG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,UAAU,CAAC,OAAO,WAAW,CAAC,CAE1C;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAInC;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAMzB;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;yCAzHU,aAAa;2CAAb,aAAa;CA0HzB"}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
7
7
  import { useTranslation } from '@molecule/app-angular';
8
- import { getClassMap } from '@molecule/app-ui';
8
+ import { fieldLayout, getClassMap } from '@molecule/app-ui';
9
9
  import { getIconSvg } from '../../utilities/icon-markup.js';
10
10
  import * as i0 from "@angular/core";
11
11
  function MoleculeInput_Conditional_1_Template(rf, ctx) { if (rf & 1) {
@@ -103,6 +103,14 @@ export class MoleculeInput {
103
103
  get cm() {
104
104
  return getClassMap();
105
105
  }
106
+ /**
107
+ * The classes of the field's two wrappers, from the shared field layout: `root` for the
108
+ * outer wrapper, `inner` for the row that holds the control.
109
+ * @returns The outer wrapper's classes and the control row's classes.
110
+ */
111
+ get field() {
112
+ return fieldLayout(this.cm);
113
+ }
106
114
  /**
107
115
  * Computes the accessible clear button label.
108
116
  * @returns The localized aria-label for the clear button.
@@ -176,11 +184,11 @@ export class MoleculeInput {
176
184
  i0.ɵɵconditionalCreate(6, MoleculeInput_Conditional_6_Template, 2, 4, "p", 2);
177
185
  i0.ɵɵdomElementEnd();
178
186
  } if (rf & 2) {
179
- i0.ɵɵclassMap(ctx.cm.inputWrapper);
187
+ i0.ɵɵclassMap(ctx.field.root);
180
188
  i0.ɵɵadvance();
181
189
  i0.ɵɵconditional(ctx.label ? 1 : -1);
182
190
  i0.ɵɵadvance();
183
- i0.ɵɵclassMap(ctx.cm.inputInner);
191
+ i0.ɵɵclassMap(ctx.field.inner);
184
192
  i0.ɵɵadvance();
185
193
  i0.ɵɵstyleMap(ctx.style);
186
194
  i0.ɵɵclassMap(ctx.inputClasses);
@@ -201,13 +209,13 @@ export class MoleculeInput {
201
209
  standalone: true,
202
210
  changeDetection: ChangeDetectionStrategy.OnPush,
203
211
  template: `
204
- <div [class]="cm.inputWrapper">
212
+ <div [class]="field.root">
205
213
  @if (label) {
206
214
  <label [attr.for]="inputId" [class]="labelClasses">
207
215
  {{ label }}
208
216
  </label>
209
217
  }
210
- <div [class]="cm.inputInner">
218
+ <div [class]="field.inner">
211
219
  <input
212
220
  [type]="type"
213
221
  [id]="inputId"
@@ -1 +1 @@
1
- {"version":3,"file":"input.component.js","sourceRoot":"","sources":["../../../src/components/molecule/input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE/F,OAAO,EAAE,cAAc,EAAE,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AK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kFA3BI,aAAa"}
1
+ {"version":3,"file":"input.component.js","sourceRoot":"","sources":["../../../src/components/molecule/input.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE/F,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;;;IAYnD,gCAAmD;IACjD,YACF;IAAA,oBAAQ;;;IAFoB,kCAAsB;;IAChD,cACF;IADE,6CACF;;;;IA4BI,AADF,8BAAmC,gBAMhC;IAHC,oLAAS,yBAAkB,KAAC;IAI5B,6BAAwC;IAE5C,AADE,oBAAS,EACL;;;IATD,yCAA6B;IAI9B,cAA6B;IAA7B,yCAA6B;;IAGvB,cAA0B;IAA1B,qEAA0B;;;IAMtC,+BAAsD;IACpD,YACF;IAAA,oBAAI;;;IAFyB,oCAAwB;IAAlD,iDAAyB;IAC1B,cACF;IADE,6CACF;;;IAGA,+BAAoD;IAClD,YACF;IAAA,oBAAI;;;IAFwB,mCAAuB;IAAhD,gDAAwB;IACzB,cACF;IADE,4CACF;;AA3DR;;GAEG;AA8DH;;;GAGG;AACH,MAAM,OAAO,aAAa;IACf,IAAI,GAAc,MAAM,CAAA;IACxB,IAAI,GAAS,IAAI,CAAA;IACjB,KAAK,CAAS;IACd,KAAK,CAAS;IACd,IAAI,CAAS;IACb,SAAS,GAAG,KA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B;YAatB,cAAe;YAAf,wBAAe;YADf,+BAAsB;YAHtB,AADA,AADA,AADA,AADA,AADA,AADA,AADA,kCAAa,mBACC,kBACD,oBACE,gCACY,0BACN,0BACA,0BACA;;YAevB,cAWC;YAXD,qDAWC;YAEH,cAIC;YAJD,oCAIC;YACD,cAIC;YAJD,iDAIC;;;iFAQM,aAAa;cAjEzB,SAAS;eAAC;gBACT,QAAQ,EAAE,WAAW;gBACrB,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDT;aACF;;kBAME,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kFA3BI,aAAa"}
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { EventEmitter } from '@angular/core';
7
7
  import type { SelectOption, Size, UIClassMap } from '@molecule/app-ui';
8
+ import { fieldLayout } from '@molecule/app-ui';
8
9
  import * as i0 from "@angular/core";
9
10
  /**
10
11
  * Angular Select UI component with UIClassMap-driven styling.
@@ -31,6 +32,12 @@ export declare class MoleculeSelect {
31
32
  * @returns The UIClassMap instance for styling.
32
33
  */
33
34
  get cm(): UIClassMap;
35
+ /**
36
+ * The classes of the field's two wrappers, from the shared field layout: `root` for the
37
+ * outer wrapper, `inner` for the row that holds the control.
38
+ * @returns The outer wrapper's classes and the control row's classes.
39
+ */
40
+ get field(): ReturnType<typeof fieldLayout>;
34
41
  /**
35
42
  * Retrieves the CSS class for form error messages.
36
43
  * @returns The form error class name string.
@@ -1 +1 @@
1
- {"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../src/components/molecule/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAA;AAE/F,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAGtE;;GAEG;AACH,qBAsDa,cAAc;IAChB,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAK;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,IAAI,CAAO;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,UAAQ;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,UAAQ;IAChB,QAAQ,UAAQ;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IAEV,WAAW,uBAA6B;IACxC,YAAY,sBAA4B;IAElD;;;OAGG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAInC;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAM1B;IAED;;;OAGG;IACH,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCArFvB,cAAc;2CAAd,cAAc;CA0F1B"}
1
+ {"version":3,"file":"select.component.d.ts","sourceRoot":"","sources":["../../../src/components/molecule/select.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAA;AAE/F,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACtE,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAA;;AAE3D;;GAEG;AACH,qBAsDa,cAAc;IAChB,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAK;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,IAAI,CAAO;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,UAAQ;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,UAAQ;IAChB,QAAQ,UAAQ;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IAEV,WAAW,uBAA6B;IACxC,YAAY,sBAA4B;IAElD;;;OAGG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,UAAU,CAAC,OAAO,WAAW,CAAC,CAE1C;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAInC;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAM1B;IAED;;;OAGG;IACH,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCA9FvB,cAAc;2CAAd,cAAc;CAmG1B"}
@@ -4,7 +4,7 @@
4
4
  * @module
5
5
  */
6
6
  import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
7
- import { getClassMap } from '@molecule/app-ui';
7
+ import { fieldLayout, getClassMap } from '@molecule/app-ui';
8
8
  import * as i0 from "@angular/core";
9
9
  const _forTrack0 = ($index, $item) => $item.value;
10
10
  function MoleculeSelect_Conditional_1_Template(rf, ctx) { if (rf & 1) {
@@ -95,6 +95,14 @@ export class MoleculeSelect {
95
95
  get cm() {
96
96
  return getClassMap();
97
97
  }
98
+ /**
99
+ * The classes of the field's two wrappers, from the shared field layout: `root` for the
100
+ * outer wrapper, `inner` for the row that holds the control.
101
+ * @returns The outer wrapper's classes and the control row's classes.
102
+ */
103
+ get field() {
104
+ return fieldLayout(this.cm);
105
+ }
98
106
  /**
99
107
  * Retrieves the CSS class for form error messages.
100
108
  * @returns The form error class name string.
@@ -164,11 +172,11 @@ export class MoleculeSelect {
164
172
  i0.ɵɵconditionalCreate(9, MoleculeSelect_Conditional_9_Template, 2, 4, "p", 5);
165
173
  i0.ɵɵdomElementEnd();
166
174
  } if (rf & 2) {
167
- i0.ɵɵclassMap(ctx.cm.inputWrapper);
175
+ i0.ɵɵclassMap(ctx.field.root);
168
176
  i0.ɵɵadvance();
169
177
  i0.ɵɵconditional(ctx.label ? 1 : -1);
170
178
  i0.ɵɵadvance();
171
- i0.ɵɵclassMap(ctx.cm.inputInner);
179
+ i0.ɵɵclassMap(ctx.field.inner);
172
180
  i0.ɵɵadvance();
173
181
  i0.ɵɵclassMap(ctx.selectClasses);
174
182
  i0.ɵɵdomProperty("id", ctx.selectId)("name", ctx.name)("value", ctx.value)("disabled", ctx.disabled)("required", ctx.required);
@@ -192,13 +200,13 @@ export class MoleculeSelect {
192
200
  standalone: true,
193
201
  changeDetection: ChangeDetectionStrategy.OnPush,
194
202
  template: `
195
- <div [class]="cm.inputWrapper">
203
+ <div [class]="field.root">
196
204
  @if (label) {
197
205
  <label [attr.for]="selectId" [class]="labelClasses">
198
206
  {{ label }}
199
207
  </label>
200
208
  }
201
- <div [class]="cm.inputInner">
209
+ <div [class]="field.inner">
202
210
  <select
203
211
  [id]="selectId"
204
212
  [name]="name"