@molecule/app-ui-angular 1.3.0 → 1.4.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 (44) hide show
  1. package/README.md +88 -69
  2. package/dist/components/alert.component.d.ts.map +1 -1
  3. package/dist/components/alert.component.js +6 -3
  4. package/dist/components/alert.component.js.map +1 -1
  5. package/dist/components/auth-guard.component.d.ts +14 -3
  6. package/dist/components/auth-guard.component.d.ts.map +1 -1
  7. package/dist/components/auth-guard.component.js +34 -10
  8. package/dist/components/auth-guard.component.js.map +1 -1
  9. package/dist/components/dropdown.component.d.ts +14 -9
  10. package/dist/components/dropdown.component.d.ts.map +1 -1
  11. package/dist/components/dropdown.component.js +23 -13
  12. package/dist/components/dropdown.component.js.map +1 -1
  13. package/dist/components/empty-state.component.d.ts.map +1 -1
  14. package/dist/components/empty-state.component.js +6 -3
  15. package/dist/components/empty-state.component.js.map +1 -1
  16. package/dist/components/layout.component.d.ts.map +1 -1
  17. package/dist/components/layout.component.js +16 -22
  18. package/dist/components/layout.component.js.map +1 -1
  19. package/dist/components/modal.component.d.ts +11 -0
  20. package/dist/components/modal.component.d.ts.map +1 -1
  21. package/dist/components/modal.component.js +40 -13
  22. package/dist/components/modal.component.js.map +1 -1
  23. package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
  24. package/dist/components/optimistic-toggle-button.component.js +6 -3
  25. package/dist/components/optimistic-toggle-button.component.js.map +1 -1
  26. package/dist/components/page-header.component.d.ts.map +1 -1
  27. package/dist/components/page-header.component.js +6 -3
  28. package/dist/components/page-header.component.js.map +1 -1
  29. package/dist/components/prompt-dialog.component.d.ts +14 -10
  30. package/dist/components/prompt-dialog.component.d.ts.map +1 -1
  31. package/dist/components/prompt-dialog.component.js +21 -17
  32. package/dist/components/prompt-dialog.component.js.map +1 -1
  33. package/dist/components/responsive-app-shell.component.d.ts +8 -1
  34. package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
  35. package/dist/components/responsive-app-shell.component.js +37 -12
  36. package/dist/components/responsive-app-shell.component.js.map +1 -1
  37. package/dist/components/table.component.d.ts +5 -2
  38. package/dist/components/table.component.d.ts.map +1 -1
  39. package/dist/components/table.component.js +18 -5
  40. package/dist/components/table.component.js.map +1 -1
  41. package/dist/components/toast.component.d.ts.map +1 -1
  42. package/dist/components/toast.component.js +8 -5
  43. package/dist/components/toast.component.js.map +1 -1
  44. package/package.json +14 -3
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-19T18:18:07.776Z
6
+ Generated: 2026-11-22T17:17:46.154Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-ui-angular
@@ -2865,6 +2865,9 @@ view init, when view queries resolve.
2865
2865
  ],
2866
2866
  outputs: ['dismiss'],
2867
2867
  host: {
2868
+ // `title` is this component's heading, which React renders as text; Angular would also keep a
2869
+ // static `title="…"` on the host, where the browser shows it as a tooltip.
2870
+ '[attr.title]': 'null',
2868
2871
  '[attr.role]': 'live ? "alert" : "status"',
2869
2872
  '[class]': 'classes()',
2870
2873
  '[style]': 'hostStyle()',
@@ -3074,7 +3077,9 @@ While the auth status is `'loading'` it renders the `loadingFallback` input
3074
3077
  `data-mol-id="auth-guard-loading"` tag); while
3075
3078
  `'unauthenticated'` off the login path it renders nothing and redirects to
3076
3079
  `loginPath` (state `from` carries the attempted location); otherwise it
3077
- renders the projected children. The host is unwrapped by the DOM normalizer
3080
+ renders the projected children, or `<mol-routed-view />` without them (the
3081
+ matched child route, through whichever routing bond the app wired; it throws
3082
+ when the bond has none: project the page then). The host is unwrapped by the DOM normalizer
3078
3083
  (`data-parity-unwrap`) and `display: contents` keeps it fragment-like —
3079
3084
  React's root is a fragment. On the login path itself the guard renders its
3080
3085
  children, so a guard wrapping the whole route tree does not redirect in a
@@ -3089,7 +3094,7 @@ nothing at all while redirecting.
3089
3094
  @Component({
3090
3095
  selector: 'mol-auth-guard',
3091
3096
  standalone: true,
3092
- imports: [MolTemplateOutlet],
3097
+ imports: [MolTemplateOutlet, RoutedView],
3093
3098
  inputs: ['loadingFallback', 'loadingKey', 'loadingDefault', 'loginPath', 'onAuthenticated'],
3094
3099
  host: {
3095
3100
  'data-parity-unwrap': '',
@@ -3101,7 +3106,10 @@ nothing at all while redirecting.
3101
3106
  >{{ nodeText(loadingFallback) }}</span
3102
3107
  >
3103
3108
  <span #fallbackWrap><ng-content select="[slot=loadingFallback]"></ng-content></span>
3104
- <span #childrenWrap><ng-content></ng-content></span>`,
3109
+ <span #childrenWrap><ng-content></ng-content></span>
3110
+ @if (routed()) {
3111
+ <mol-routed-view />
3112
+ }`,
3105
3113
  })
3106
3114
  export class AuthGuard implements AfterViewInit {
3107
3115
  /**
@@ -3150,6 +3158,15 @@ export class AuthGuard implements AfterViewInit {
3150
3158
  private readonly sync = new SlotWrapper(inject(ElementRef), inject(Renderer2))
3151
3159
  private readonly host = inject(ElementRef)
3152
3160
  private hasFallback = false
3161
+ /** Whether the guard was given children to project (known by view init). */
3162
+ private hasChildren = false
3163
+ /** Whether the view queries have resolved, so the children capture can be read. */
3164
+ private viewReady = false
3165
+ /**
3166
+ * Whether the routed view renders: the children branch with no projected children. A signal
3167
+ * the template reads, so the routed view is created only then (it throws without one).
3168
+ */
3169
+ readonly routed = signal(false)
3153
3170
  private lastAuthenticated = false
3154
3171
  /** The login path the guard navigated to for the current redirect state. */
3155
3172
  private redirectedTo: string | null = null
@@ -3169,11 +3186,13 @@ export class AuthGuard implements AfterViewInit {
3169
3186
  })
3170
3187
 
3171
3188
  /**
3172
- * Detects the `loadingFallback` slot presence (view queries resolve only by
3173
- * view init).
3189
+ * Detects the `loadingFallback` slot and the children (view queries resolve
3190
+ * only by view init).
3174
3191
  */
3175
3192
  ngAfterViewInit(): void {
3176
3193
  this.hasFallback = hasNodes(this.fallbackWrap?.nativeElement)
3194
+ this.hasChildren = hasNodes(this.childrenWrap?.nativeElement)
3195
+ this.viewReady = true
3177
3196
  this.reconcile()
3178
3197
  }
3179
3198
 
@@ -3231,6 +3250,7 @@ export class AuthGuard implements AfterViewInit {
3231
3250
  // The capture span itself never renders (React's children are bare).
3232
3251
  this.sync.sync(this.childrenWrap?.nativeElement, false)
3233
3252
  }
3253
+ this.routed.set(this.viewReady && branch === 'children' && !this.hasChildren)
3234
3254
  const loading = branch === 'loading'
3235
3255
  const hasNode = isGiven(this.loadingFallback)
3236
3256
  this.sync.sync(this.defaultLoading?.nativeElement, loading && !hasNode && !this.hasFallback)
@@ -4903,9 +4923,7 @@ fragment-like.
4903
4923
  </div></ng-template
4904
4924
  >`,
4905
4925
  })
4906
- export class Dropdown
4907
- implements AfterViewInit, AfterViewChecked, DoCheck, OnDestroy, HasElement<HTMLDivElement>
4908
- {
4926
+ export class Dropdown implements AfterViewInit, DoCheck, OnDestroy, HasElement<HTMLDivElement> {
4909
4927
  trigger?: unknown
4910
4928
  items: DropdownItem<string>[] = []
4911
4929
  placement: DropdownPlacement = 'bottom-start'
@@ -4937,6 +4955,7 @@ export class Dropdown
4937
4955
  readonly element = this.inner.asReadonly()
4938
4956
  private readonly renderer = inject(Renderer2)
4939
4957
  private readonly cdr = inject(ChangeDetectorRef)
4958
+ private readonly injector = inject(Injector)
4940
4959
  private readonly host: HTMLElement = this.el.nativeElement
4941
4960
  private triggerEl: HTMLElement | null = null
4942
4961
  private triggerOwnTestId: string | null = null
@@ -5074,7 +5093,7 @@ export class Dropdown
5074
5093
  if (!this.isOpen()) this.pendingOpenFocus = 'first'
5075
5094
  this.setOpen(!this.isOpen())
5076
5095
  }
5077
- // … truncated — 22 more members: handleTriggerKeyDown, handleClose, closeAndRefocusTrigger, ngAfterViewInit, ngDoCheck, ngOnDestroy, adoptTrigger, listen, focusableIndexes, itemElements, elementForIndex, focusActive, ngAfterViewChecked, syncMenu, openMenu, destroyMenu, updateMenuWidth, schedulePosition, updatePosition, addListeners, removeListeners, syncTrigger; the full declaration is in node_modules/@molecule/app-ui-angular/dist/components/dropdown.component.d.ts
5096
+ // … truncated — 23 more members: handleTriggerKeyDown, handleClose, closeAndRefocusTrigger, ngAfterViewInit, ngDoCheck, ngOnDestroy, adoptTrigger, listen, focusableIndexes, itemElements, elementForIndex, focusActive, constructor, restoreItemFocus, syncMenu, openMenu, destroyMenu, updateMenuWidth, schedulePosition, updatePosition, addListeners, removeListeners, syncTrigger; the full declaration is in node_modules/@molecule/app-ui-angular/dist/components/dropdown.component.d.ts
5078
5097
  ```
5079
5098
 
5080
5099
  _(Member comments are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/dropdown.component.d.ts`.)_
@@ -5185,6 +5204,9 @@ exist as projection capture points and are detached when empty
5185
5204
  'automationId',
5186
5205
  ],
5187
5206
  host: {
5207
+ // `title` is this component's heading, which React renders as text; Angular would also keep a
5208
+ // static `title="…"` on the host, where the browser shows it as a tooltip.
5209
+ '[attr.title]': 'null',
5188
5210
  '[class]': 'classes()',
5189
5211
  '[style]': 'hostStyle()',
5190
5212
  '[attr.data-testid]': 'testId',
@@ -6941,30 +6963,20 @@ export class Grid implements HasElement<HTMLDivElement> {
6941
6963
  * @returns The style attribute text.
6942
6964
  */
6943
6965
  hostStyle(): string | null {
6944
- const gridStyle: Record<string, unknown> = {
6945
- ...this.style,
6946
- gridTemplateColumns: typeof this.columns === 'string' ? this.columns : undefined,
6947
- gridTemplateRows: typeof this.rows === 'string' ? this.rows : undefined,
6948
- gap:
6949
- typeof this.gap === 'number'
6950
- ? this.gap
6951
- : typeof this.gap === 'string' && !GAP_NAMES.includes(this.gap)
6952
- ? this.gap
6953
- : undefined,
6954
- columnGap:
6955
- typeof this.columnGap === 'number'
6956
- ? this.columnGap
6957
- : typeof this.columnGap === 'string'
6958
- ? this.columnGap
6959
- : undefined,
6960
- rowGap:
6961
- typeof this.rowGap === 'number'
6962
- ? this.rowGap
6963
- : typeof this.rowGap === 'string'
6964
- ? this.rowGap
6965
- : undefined,
6966
- }
6967
- return styleText(gridStyle)
6966
+ // Only the values this Grid sets, as React's Grid does: an undefined key would erase the same
6967
+ // property from the caller's `style`.
6968
+ const own: Record<string, unknown> = {}
6969
+ if (typeof this.columns === 'string') own.gridTemplateColumns = this.columns
6970
+ if (typeof this.rows === 'string') own.gridTemplateRows = this.rows
6971
+ if (
6972
+ typeof this.gap === 'number' ||
6973
+ (typeof this.gap === 'string' && !GAP_NAMES.includes(this.gap))
6974
+ )
6975
+ own.gap = this.gap
6976
+ if (typeof this.columnGap === 'number' || typeof this.columnGap === 'string')
6977
+ own.columnGap = this.columnGap
6978
+ if (typeof this.rowGap === 'number' || typeof this.rowGap === 'string') own.rowGap = this.rowGap
6979
+ return styleText({ ...this.style, ...own })
6968
6980
  }
6969
6981
  }
6970
6982
  ```
@@ -7449,6 +7461,8 @@ export class Modal
7449
7461
  private readonly stackId = modalInstance
7450
7462
 
7451
7463
  private readonly host: ElementRef<HTMLElement> = inject(ElementRef)
7464
+ private readonly injector = inject(Injector)
7465
+ private readonly environmentInjector = inject(EnvironmentInjector)
7452
7466
  private readonly inner = signal<HTMLDivElement | null>(null)
7453
7467
  readonly element = this.inner.asReadonly()
7454
7468
 
@@ -7531,10 +7545,7 @@ export class Modal
7531
7545
  this.previouslyFocused = (document.activeElement as HTMLElement | null) ?? null
7532
7546
  pushModalStack(this.stackId)
7533
7547
  if (overlay && wrapper) this.attachPortal()
7534
- if (dialog) {
7535
- const focusables = getFocusableElements(dialog)
7536
- ;(focusables[0] ?? dialog).focus()
7537
- }
7548
+ this.focusFirstInDialog()
7538
7549
  this.addListeners()
7539
7550
  } else if (overlay && wrapper) {
7540
7551
  this.detachPortal()
@@ -7571,6 +7582,14 @@ export class Modal
7571
7582
  ngOnDestroy(): void {
7572
7583
  this.removeListeners()
7573
7584
  popModalStack(this.stackId)
7585
+ const toRestore = this.lastOpen ? this.previouslyFocused : null
7586
+ if (toRestore && !this.environmentInjector.destroyed)
7587
+ afterNextRender(
7588
+ () => {
7589
+ if (document.contains(toRestore)) toRestore.focus()
7590
+ },
7591
+ { injector: this.environmentInjector },
7592
+ )
7574
7593
  if (this.locked) {
7575
7594
  this.sync.unlock()
7576
7595
  this.locked = false
@@ -7605,7 +7624,7 @@ export class Modal
7605
7624
  slot.remove()
7606
7625
  }
7607
7626
  }
7608
- // … truncated — 7 more members: transition, attachPortal, detachPortal, syncScrollLock, addListeners, removeListeners, handleKeyDown; the full declaration is in node_modules/@molecule/app-ui-angular/dist/components/modal.component.d.ts
7627
+ // … truncated — 8 more members: transition, focusFirstInDialog, attachPortal, detachPortal, syncScrollLock, addListeners, removeListeners, handleKeyDown; the full declaration is in node_modules/@molecule/app-ui-angular/dist/components/modal.component.d.ts
7609
7628
  ```
7610
7629
 
7611
7630
  _(Member comments are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/modal.component.d.ts`.)_
@@ -9298,6 +9317,8 @@ one is shown, moved onto the button with no wrapper, matching React's
9298
9317
  'dataMolId: data-mol-id',
9299
9318
  ],
9300
9319
  host: {
9320
+ // a static `value="…"` on the host as the button's form value.
9321
+ '[attr.value]': 'null',
9301
9322
  '[class]': 'classes()',
9302
9323
  '[style]': 'hostStyle()',
9303
9324
  '[attr.type]': '"button"',
@@ -9359,7 +9380,6 @@ export class OptimisticToggleButton
9359
9380
  /** Disables the button (permissions, never a pending save). */
9360
9381
  disabled?: OptimisticToggleButtonProps['disabled'] = false
9361
9382
  automationId?: OptimisticToggleButtonProps['automationId']
9362
- /** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
9363
9383
  dataMolId?: string
9364
9384
 
9365
9385
  /** Template helpers (templates see only class members). */
@@ -9369,7 +9389,6 @@ export class OptimisticToggleButton
9369
9389
 
9370
9390
  /** The optimistic controller. */
9371
9391
  private readonly controller: OptimisticValue<boolean>
9372
- /** The controller state (a signal so the zoneless view re-checks on every publish). */
9373
9392
  readonly state = signal<OptimisticValueState<boolean>>({
9374
9393
  value: false,
9375
9394
  pending: false,
@@ -9507,7 +9526,7 @@ export class OptimisticToggleButton
9507
9526
  }
9508
9527
  ```
9509
9528
 
9510
- _(Member comments are shortened to their first sentence, and the 8 longest are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/optimistic-toggle-button.component.d.ts`.)_
9529
+ _(Member comments are shortened to their first sentence, and the 11 longest are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/optimistic-toggle-button.component.d.ts`.)_
9511
9530
 
9512
9531
  #### `PageHeader`
9513
9532
 
@@ -9525,6 +9544,9 @@ from the DOM — the projected nodes need an always-mounted capture point.
9525
9544
  standalone: true,
9526
9545
  inputs: ['title', 'description', 'breadcrumbs', 'className', 'style', 'testId', 'automationId'],
9527
9546
  host: {
9547
+ // `title` is this component's heading, which React renders as text; Angular would also keep a
9548
+ // static `title="…"` on the host, where the browser shows it as a tooltip.
9549
+ '[attr.title]': 'null',
9528
9550
  '[class]': 'classes()',
9529
9551
  '[style]': 'hostStyle()',
9530
9552
  '[attr.data-testid]': 'testId',
@@ -10515,6 +10537,7 @@ export class PromptDialog implements AfterViewInit, AfterViewChecked, DoCheck {
10515
10537
  private lastOpen = false
10516
10538
  private lastInitial = ''
10517
10539
  private pendingInputFocus = false
10540
+ private readonly injector = inject(Injector)
10518
10541
 
10519
10542
  /** The current class map. */
10520
10543
  cm(): UIClassMap {
@@ -10552,13 +10575,17 @@ export class PromptDialog implements AfterViewInit, AfterViewChecked, DoCheck {
10552
10575
  if (this.open) {
10553
10576
  this.value.set(this.initialValue ?? '')
10554
10577
  this.pending.set(false)
10555
- // The dialog exists to take one string, so opening it puts focus in the
10556
10578
  // input — after the Modal has focused the dialog's first control.
10557
10579
  this.pendingInputFocus = true
10558
10580
  }
10559
10581
  }
10560
10582
 
10561
- /** Re-seeds the value on a later open transition (React's effect). */
10583
+ ngAfterViewChecked(): void {
10584
+ if (!this.pendingInputFocus) return
10585
+ this.pendingInputFocus = false
10586
+ afterNextRender(() => this.focusInput(), { injector: this.injector })
10587
+ }
10588
+
10562
10589
  ngDoCheck(): void {
10563
10590
  const open = !!this.open
10564
10591
  this.applyInputLabel()
@@ -10573,12 +10600,6 @@ export class PromptDialog implements AfterViewInit, AfterViewChecked, DoCheck {
10573
10600
  }
10574
10601
  }
10575
10602
 
10576
- ngAfterViewChecked(): void {
10577
- if (!this.pendingInputFocus) return
10578
- this.pendingInputFocus = false
10579
- this.focusInput()
10580
- }
10581
-
10582
10603
  focusInput(): void {
10583
10604
  this.inputComponent?.inputEl?.nativeElement.focus()
10584
10605
  }
@@ -10619,7 +10640,7 @@ export class PromptDialog implements AfterViewInit, AfterViewChecked, DoCheck {
10619
10640
  }
10620
10641
  ```
10621
10642
 
10622
- _(Member comments are shortened to their first sentence, and the 13 longest are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/prompt-dialog.component.d.ts`.)_
10643
+ _(Member comments are shortened to their first sentence, and the 16 longest are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/prompt-dialog.component.d.ts`.)_
10623
10644
 
10624
10645
  #### `RadioGroup`
10625
10646
 
@@ -11454,6 +11475,8 @@ export class ResponsiveAppShellDrawer implements OnInit, AfterViewInit, DoCheck,
11454
11475
  private readonly i18n = useTranslation()
11455
11476
 
11456
11477
  private readonly renderer = inject(Renderer2)
11478
+ private readonly injector = inject(Injector)
11479
+ private readonly environmentInjector = inject(EnvironmentInjector)
11457
11480
  private readonly sync = new SlotWrapper(this.host, this.renderer)
11458
11481
  private readonly scrollLock = createScrollLock()
11459
11482
  private hasFooter = false
@@ -11556,6 +11579,14 @@ export class ResponsiveAppShellDrawer implements OnInit, AfterViewInit, DoCheck,
11556
11579
  ngOnDestroy(): void {
11557
11580
  this.shell().registerDrawer(false)
11558
11581
  this.removeListeners()
11582
+ const toRestore = this.lastOpen ? this.previouslyFocused : null
11583
+ if (toRestore && !this.environmentInjector.destroyed)
11584
+ afterNextRender(
11585
+ () => {
11586
+ if (document.contains(toRestore)) toRestore.focus()
11587
+ },
11588
+ { injector: this.environmentInjector },
11589
+ )
11559
11590
  if (this.locked) {
11560
11591
  this.scrollLock.unlock()
11561
11592
  this.locked = false
@@ -11569,22 +11600,7 @@ export class ResponsiveAppShellDrawer implements OnInit, AfterViewInit, DoCheck,
11569
11600
  this.attached = false
11570
11601
  }
11571
11602
  }
11572
-
11573
- private syncWrappers(): void {
11574
- if (!this.attached) return
11575
- this.sync.sync(
11576
- this.headerRow?.nativeElement,
11577
- this.headerPresent() || (this.showCloseButton ?? true),
11578
- this.headerRowParent ?? undefined,
11579
- )
11580
- this.sync.sync(
11581
- this.headerSlot?.nativeElement,
11582
- this.headerPresent(),
11583
- this.headerParent ?? undefined,
11584
- )
11585
- this.sync.sync(this.footerSlot?.nativeElement, this.hasFooter, this.footerParent ?? undefined)
11586
- }
11587
- // … truncated — 7 more members: syncOpen, openPanel, attachPortal, detachPortal, addListeners, removeListeners, handleKeyDown; the full declaration is in node_modules/@molecule/app-ui-angular/dist/components/responsive-app-shell.component.d.ts
11603
+ // … truncated — 8 more members: syncWrappers, syncOpen, openPanel, attachPortal, detachPortal, addListeners, removeListeners, handleKeyDown; the full declaration is in node_modules/@molecule/app-ui-angular/dist/components/responsive-app-shell.component.d.ts
11588
11604
  ```
11589
11605
 
11590
11606
  _(Member comments are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/responsive-app-shell.component.d.ts`.)_
@@ -12870,6 +12886,8 @@ or plain functions returning text.
12870
12886
  'title',
12871
12887
  ],
12872
12888
  host: {
12889
+ '[attr.id]': 'null',
12890
+ '[attr.title]': 'null',
12873
12891
  '[class]': 'cm().tableWrapper',
12874
12892
  },
12875
12893
  template: `<span #emptySlot><ng-content select="[slot=emptyContent]"></ng-content></span>
@@ -13760,6 +13778,7 @@ with the remaining time; the announced role follows `status`
13760
13778
  ],
13761
13779
  outputs: ['dismiss'],
13762
13780
  host: {
13781
+ '[attr.title]': 'null',
13763
13782
  '[class]': 'classes()',
13764
13783
  '[style]': 'hostStyle()',
13765
13784
  '[attr.data-testid]': 'testId',
@@ -14009,7 +14028,7 @@ export class Toast implements AfterViewInit, DoCheck, OnDestroy, HasElement<HTML
14009
14028
  }
14010
14029
  ```
14011
14030
 
14012
- _(Member comments are shortened to their first sentence, and the 28 longest are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/toast.component.d.ts`.)_
14031
+ _(Member comments are shortened to their first sentence, and the 30 longest are left out to fit; the full declaration is in `node_modules/@molecule/app-ui-angular/dist/components/toast.component.d.ts`.)_
14013
14032
 
14014
14033
  #### `ToastContainer`
14015
14034
 
@@ -15966,7 +15985,7 @@ Peer dependencies:
15966
15985
  - `@angular/common` ^22.0.0
15967
15986
  - `@angular/core` ^22.0.0
15968
15987
  - `@angular/platform-browser` ^22.0.0
15969
- - `@molecule/app-angular` ^3.4.0
15988
+ - `@molecule/app-angular` ^3.11.0
15970
15989
  - `@molecule/app-i18n` ^1.0.1
15971
15990
  - `@molecule/app-icons` ^1.0.1
15972
15991
  - `@molecule/app-ui` ^1.5.0
@@ -1 +1 @@
1
- {"version":3,"file":"alert.component.d.ts","sourceRoot":"","sources":["../../src/components/alert.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAItB,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGhE,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;;AAuB/D;;;;;;;;;;;;;GAaG;AACH,qBA8Ca,KAAM,YAAW,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,cAAc,CA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L,KAAK;2CAAL,KAAK;CA0KjB"}
@@ -215,8 +215,8 @@ export class Alert {
215
215
  let _t;
216
216
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconSlot = _t.first);
217
217
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.defaultGlyph = _t.first);
218
- } }, hostVars: 7, hostBindings: function Alert_HostBindings(rf, ctx) { if (rf & 2) {
219
- i0.ɵɵattribute("role", ctx.live ? "alert" : "status")("data-testid", ctx.testId)("data-mol-id", ctx.molId());
218
+ } }, hostVars: 8, hostBindings: function Alert_HostBindings(rf, ctx) { if (rf & 2) {
219
+ i0.ɵɵattribute("title", null)("role", ctx.live ? "alert" : "status")("data-testid", ctx.testId)("data-mol-id", ctx.molId());
220
220
  i0.ɵɵstyleMap(ctx.hostStyle());
221
221
  i0.ɵɵclassMap(ctx.classes());
222
222
  } }, inputs: { title: "title", status: "status", variant: "variant", live: "live", dismissible: "dismissible", dismissLabel: "dismissLabel", className: "className", style: "style", testId: "testId", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, outputs: { dismiss: "dismiss" }, ngContentSelectors: _c3, decls: 10, vars: 9, consts: [["iconSlot", ""], ["defaultGlyph", ""], ["mol-icon", "", 3, "data"], [3, "class"], ["type", "button", 3, "class"], ["type", "button", 3, "click"]], template: function Alert_Template(rf, ctx) { if (rf & 1) {
@@ -268,6 +268,9 @@ export class Alert {
268
268
  ],
269
269
  outputs: ['dismiss'],
270
270
  host: {
271
+ // `title` is this component's heading, which React renders as text; Angular would also keep a
272
+ // static `title="…"` on the host, where the browser shows it as a tooltip.
273
+ '[attr.title]': 'null',
271
274
  '[attr.role]': 'live ? "alert" : "status"',
272
275
  '[class]': 'classes()',
273
276
  '[style]': 'hostStyle()',
@@ -304,7 +307,7 @@ export class Alert {
304
307
  type: ViewChild,
305
308
  args: ['defaultGlyph', { read: ElementRef }]
306
309
  }] }); })();
307
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Alert, { className: "Alert", filePath: "components/alert.component.ts", lineNumber: 108 }); })();
310
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Alert, { className: "Alert", filePath: "components/alert.component.ts", lineNumber: 111 }); })();
308
311
  /**
309
312
  * Whether an element captured any element or text node other than one
310
313
  * excluded element (the always-mounted default glyph).
@@ -1 +1 @@
1
- {"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../src/components/alert.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEtE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;IAiE3C,0BAA8B;IAAA,YAAW;IAAA,iBAAK;;;IAA1C,qCAAyB;IAAC,cAAW;IAAX,kCAAW;;;;IAK3C,iCAKC;IADC,+KAAS,2BAAoB,KAAC;;IAE9B,yBAAqC;IACvC,iBAAS;;;IALP,uCAA2B;;IAIb,cAAoB;IAApB,yCAAoB;;AA1E1C,wCAAwC;AACxC,MAAM,cAAc,GAAyE;IAC3F,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACb,CAAA;AAED,iEAAiE;AACjE,MAAM,WAAW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,OAAO,KAAK,CAAA;AACd,CAAC"}
1
+ {"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../src/components/alert.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEtE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;IAoE3C,0BAA8B;IAAA,YAAW;IAAA,iBAAK;;;IAA1C,qCAAyB;IAAC,cAAW;IAAX,kCAAW;;;;IAK3C,iCAKC;IADC,+KAAS,2BAAoB,KAAC;;IAE9B,yBAAqC;IACvC,iBAAS;;;IALP,uCAA2B;;IAIb,cAAoB;IAApB,yCAAoB;;AA7E1C,wCAAwC;AACxC,MAAM,cAAc,GAAyE;IAC3F,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACb,CAAA;AAED,iEAAiE;AACjE,MAAM,WAAW,GAA6B;IAC5C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,sBAAsB;IAC/B,KAAK,EAAE,UAAU;CAClB,CAAA;AAED;;;;;;;;;;;;;GAaG;AAkDH,MAAM,OAAO,KAAK;IAChB,mBAAmB;IACnB,KAAK,CAAS;IACd,oBAAoB;IACpB,MAAM,GAAiB,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gBACrB,MAAM,EAAE;oBACN,OAAO;oBACP,QAAQ;oBACR,SAAS;oBACT,MAAM;oBACN,aAAa;oBACb,cAAc;oBACd,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,cAAc;oBACd,wBAAwB;iBACzB;gBACD,OAAO,EAAE,CAAC,SAAS,CAAC;gBACpB,IAAI,EAAE;oBACJ,8FAA8F;oBAC9F,2EAA2E;oBAC3E,cAAc,EAAE,MAAM;oBACtB,aAAa,EAAE,2BAA2B;oBAC1C,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,SAAS;iBAChC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;MAmBN;aACL;;kBA0BE,MAAM;;kBAGN,SAAS;mBAAC,UAAU;;kBAEpB,SAAS;mBAAC,cAAc,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;;kFA9BpC,KAAK;AA4KlB;;;;;;;GAOG;AACH,SAAS,cAAc,CACrB,EAA8B,EAC9B,MAAkC;IAElC,IAAI,CAAC,EAAE;QAAE,OAAO,KAAK,CAAA;IACrB,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7C,IAAI,IAAI,KAAK,MAAM;YAAE,SAAQ;QAC7B,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC;YAAE,OAAO,IAAI,CAAA;QACpC,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;YAAE,OAAO,IAAI,CAAA;IACzE,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
@@ -33,7 +33,9 @@ export interface AuthGuardProps {
33
33
  * `data-mol-id="auth-guard-loading"` tag); while
34
34
  * `'unauthenticated'` off the login path it renders nothing and redirects to
35
35
  * `loginPath` (state `from` carries the attempted location); otherwise it
36
- * renders the projected children. The host is unwrapped by the DOM normalizer
36
+ * renders the projected children, or `<mol-routed-view />` without them (the
37
+ * matched child route, through whichever routing bond the app wired; it throws
38
+ * when the bond has none: project the page then). The host is unwrapped by the DOM normalizer
37
39
  * (`data-parity-unwrap`) and `display: contents` keeps it fragment-like —
38
40
  * React's root is a fragment. On the login path itself the guard renders its
39
41
  * children, so a guard wrapping the whole route tree does not redirect in a
@@ -86,6 +88,15 @@ export declare class AuthGuard implements AfterViewInit {
86
88
  private readonly sync;
87
89
  private readonly host;
88
90
  private hasFallback;
91
+ /** Whether the guard was given children to project (known by view init). */
92
+ private hasChildren;
93
+ /** Whether the view queries have resolved, so the children capture can be read. */
94
+ private viewReady;
95
+ /**
96
+ * Whether the routed view renders: the children branch with no projected children. A signal
97
+ * the template reads, so the routed view is created only then (it throws without one).
98
+ */
99
+ readonly routed: import("@angular/core").WritableSignal<boolean>;
89
100
  private lastAuthenticated;
90
101
  /** The login path the guard navigated to for the current redirect state. */
91
102
  private redirectedTo;
@@ -99,8 +110,8 @@ export declare class AuthGuard implements AfterViewInit {
99
110
  */
100
111
  private readonly guardEffect;
101
112
  /**
102
- * Detects the `loadingFallback` slot presence (view queries resolve only by
103
- * view init).
113
+ * Detects the `loadingFallback` slot and the children (view queries resolve
114
+ * only by view init).
104
115
  */
105
116
  ngAfterViewInit(): void;
106
117
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"auth-guard.component.d.ts","sourceRoot":"","sources":["../../src/components/auth-guard.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAGlB,UAAU,EAGV,KAAK,WAAW,EAEjB,MAAM,eAAe,CAAA;AAItB,OAAO,EAAE,UAAU,EAAW,QAAQ,EAAE,MAAM,4BAA4B,CAAA;;AAI1E;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,W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CAI1B;IAEF;;;OAGG;IACH,eAAe,IAAI,IAAI;IAOvB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAyBjB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IA2BpB;;;OAGG;IACH,WAAW,IAAI,MAAM;yCAvJV,SAAS;2CAAT,SAAS;CAgKrB"}
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { Component, effect, ElementRef, inject, Renderer2, ViewChild, } from '@angular/core';
7
- import { useAuth, useRouter, useTranslation } from '@molecule/app-angular';
6
+ import { Component, effect, ElementRef, inject, Renderer2, signal, ViewChild, } from '@angular/core';
7
+ import { RoutedView, useAuth, useRouter, useTranslation } from '@molecule/app-angular';
8
8
  import { asTemplate, isGiven, nodeText } from '../utilities/node-value.js';
9
9
  import { hasNodes, SlotWrapper } from './button.component.js';
10
10
  import { MolTemplateOutlet } from './template-outlet.directive.js';
@@ -15,6 +15,9 @@ const _c2 = ["fallbackWrap"];
15
15
  const _c3 = ["childrenWrap"];
16
16
  const _c4 = [[["", "slot", "loadingfallback"]], "*"];
17
17
  const _c5 = ["[slot=loadingFallback]", "*"];
18
+ function AuthGuard_Conditional_13_Template(rf, ctx) { if (rf & 1) {
19
+ i0.ɵɵelement(0, "mol-routed-view");
20
+ } }
18
21
  /**
19
22
  * The pathname part of a login path (`/login?next=x` → `/login`).
20
23
  *
@@ -30,7 +33,9 @@ const loginPathname = (loginPath) => loginPath.split(/[?#]/)[0] || '/';
30
33
  * `data-mol-id="auth-guard-loading"` tag); while
31
34
  * `'unauthenticated'` off the login path it renders nothing and redirects to
32
35
  * `loginPath` (state `from` carries the attempted location); otherwise it
33
- * renders the projected children. The host is unwrapped by the DOM normalizer
36
+ * renders the projected children, or `<mol-routed-view />` without them (the
37
+ * matched child route, through whichever routing bond the app wired; it throws
38
+ * when the bond has none: project the page then). The host is unwrapped by the DOM normalizer
34
39
  * (`data-parity-unwrap`) and `display: contents` keeps it fragment-like —
35
40
  * React's root is a fragment. On the login path itself the guard renders its
36
41
  * children, so a guard wrapping the whole route tree does not redirect in a
@@ -83,6 +88,16 @@ export class AuthGuard {
83
88
  sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
84
89
  host = inject(ElementRef);
85
90
  hasFallback = false;
91
+ /** Whether the guard was given children to project (known by view init). */
92
+ hasChildren = false;
93
+ /** Whether the view queries have resolved, so the children capture can be read. */
94
+ viewReady = false;
95
+ /**
96
+ * Whether the routed view renders: the children branch with no projected children. A signal
97
+ * the template reads, so the routed view is created only then (it throws without one).
98
+ */
99
+ routed = signal(false, /* @ts-ignore */
100
+ ...(ngDevMode ? [{ debugName: "routed" }] : /* istanbul ignore next */ []));
86
101
  lastAuthenticated = false;
87
102
  /** The login path the guard navigated to for the current redirect state. */
88
103
  redirectedTo = null;
@@ -101,11 +116,13 @@ export class AuthGuard {
101
116
  }, /* @ts-ignore */
102
117
  ...(ngDevMode ? [{ debugName: "guardEffect" }] : /* istanbul ignore next */ []));
103
118
  /**
104
- * Detects the `loadingFallback` slot presence (view queries resolve only by
105
- * view init).
119
+ * Detects the `loadingFallback` slot and the children (view queries resolve
120
+ * only by view init).
106
121
  */
107
122
  ngAfterViewInit() {
108
123
  this.hasFallback = hasNodes(this.fallbackWrap?.nativeElement);
124
+ this.hasChildren = hasNodes(this.childrenWrap?.nativeElement);
125
+ this.viewReady = true;
109
126
  this.reconcile();
110
127
  }
111
128
  /**
@@ -163,6 +180,7 @@ export class AuthGuard {
163
180
  // The capture span itself never renders (React's children are bare).
164
181
  this.sync.sync(this.childrenWrap?.nativeElement, false);
165
182
  }
183
+ this.routed.set(this.viewReady && branch === 'children' && !this.hasChildren);
166
184
  const loading = branch === 'loading';
167
185
  const hasNode = isGiven(this.loadingFallback);
168
186
  this.sync.sync(this.defaultLoading?.nativeElement, loading && !hasNode && !this.hasFallback);
@@ -187,7 +205,7 @@ export class AuthGuard {
187
205
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dataFallback = _t.first);
188
206
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fallbackWrap = _t.first);
189
207
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childrenWrap = _t.first);
190
- } }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { loadingFallback: "loadingFallback", loadingKey: "loadingKey", loadingDefault: "loadingDefault", loginPath: "loginPath", onAuthenticated: "onAuthenticated" }, ngContentSelectors: _c5, decls: 13, vars: 3, consts: [["defaultLoading", ""], ["dataFallback", ""], ["fallbackWrap", ""], ["childrenWrap", ""], ["data-mol-id", "auth-guard-loading"], [3, "molTemplateOutlet"]], template: function AuthGuard_Template(rf, ctx) { if (rf & 1) {
208
+ } }, hostAttrs: ["data-parity-unwrap", "", 2, "display", "contents"], inputs: { loadingFallback: "loadingFallback", loadingKey: "loadingKey", loadingDefault: "loadingDefault", loginPath: "loginPath", onAuthenticated: "onAuthenticated" }, ngContentSelectors: _c5, decls: 14, vars: 4, consts: [["defaultLoading", ""], ["dataFallback", ""], ["fallbackWrap", ""], ["childrenWrap", ""], ["data-mol-id", "auth-guard-loading"], [3, "molTemplateOutlet"]], template: function AuthGuard_Template(rf, ctx) { if (rf & 1) {
191
209
  i0.ɵɵprojectionDef(_c4);
192
210
  i0.ɵɵelementStart(0, "div", 4, 0);
193
211
  i0.ɵɵtext(2);
@@ -202,6 +220,7 @@ export class AuthGuard {
202
220
  i0.ɵɵelementStart(10, "span", null, 3);
203
221
  i0.ɵɵprojection(12, 1);
204
222
  i0.ɵɵelementEnd();
223
+ i0.ɵɵconditionalCreate(13, AuthGuard_Conditional_13_Template, 1, 0, "mol-routed-view");
205
224
  } if (rf & 2) {
206
225
  i0.ɵɵadvance(2);
207
226
  i0.ɵɵtextInterpolate(ctx.loadingText());
@@ -209,14 +228,16 @@ export class AuthGuard {
209
228
  i0.ɵɵproperty("molTemplateOutlet", ctx.asTemplate(ctx.loadingFallback));
210
229
  i0.ɵɵadvance();
211
230
  i0.ɵɵtextInterpolate(ctx.nodeText(ctx.loadingFallback));
212
- } }, dependencies: [MolTemplateOutlet], encapsulation: 2 });
231
+ i0.ɵɵadvance(7);
232
+ i0.ɵɵconditional(ctx.routed() ? 13 : -1);
233
+ } }, dependencies: [MolTemplateOutlet, RoutedView], encapsulation: 2 });
213
234
  }
214
235
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthGuard, [{
215
236
  type: Component,
216
237
  args: [{
217
238
  selector: 'mol-auth-guard',
218
239
  standalone: true,
219
- imports: [MolTemplateOutlet],
240
+ imports: [MolTemplateOutlet, RoutedView],
220
241
  inputs: ['loadingFallback', 'loadingKey', 'loadingDefault', 'loginPath', 'onAuthenticated'],
221
242
  host: {
222
243
  'data-parity-unwrap': '',
@@ -228,7 +249,10 @@ export class AuthGuard {
228
249
  >{{ nodeText(loadingFallback) }}</span
229
250
  >
230
251
  <span #fallbackWrap><ng-content select="[slot=loadingFallback]"></ng-content></span>
231
- <span #childrenWrap><ng-content></ng-content></span>`,
252
+ <span #childrenWrap><ng-content></ng-content></span>
253
+ @if (routed()) {
254
+ <mol-routed-view />
255
+ }`,
232
256
  }]
233
257
  }], null, { defaultLoading: [{
234
258
  type: ViewChild,
@@ -243,5 +267,5 @@ export class AuthGuard {
243
267
  type: ViewChild,
244
268
  args: ['childrenWrap']
245
269
  }] }); })();
246
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AuthGuard, { className: "AuthGuard", filePath: "components/auth-guard.component.ts", lineNumber: 88 }); })();
270
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AuthGuard, { className: "AuthGuard", filePath: "components/auth-guard.component.ts", lineNumber: 94 }); })();
247
271
  //# sourceMappingURL=auth-guard.component.js.map