@forgeroute/ui 0.4.91 → 0.4.93

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, ElementRef, Injectable, InjectionToken, computed, effect, inject, input, makeEnvironmentProviders, output, provideAppInitializer, signal, untracked, viewChild } from "@angular/core";
2
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, ElementRef, Injectable, InjectionToken, Injector, computed, effect, inject, input, makeEnvironmentProviders, output, provideAppInitializer, signal, untracked, viewChild } from "@angular/core";
3
3
  import { DOCUMENT } from "@angular/common";
4
4
  import { Subject, defer, firstValueFrom, from, of, throwError, timer } from "rxjs";
5
5
  import { ConfirmService, SidePanelComponent, ToastService, UI_NOTES_QUEUE, UiLabelsService, uiText } from "@forgeroute/ui";
@@ -2347,7 +2347,7 @@ function handleWrite(req, next, cfg) {
2347
2347
  url,
2348
2348
  body: body.value,
2349
2349
  headers: safeHeaders(req, cfg, isFormBody(req.body)),
2350
- label: rule?.label?.(method, url, req.body) ?? defaultLabel(labels, method, url),
2350
+ label: rule?.label?.(method, url, req.body, { injector: inject(Injector) }) ?? defaultLabel(labels, method, url),
2351
2351
  entityType: rule?.entityType?.(url) ?? derived.entityType,
2352
2352
  entityId: derived.entityId,
2353
2353
  createdAt: Date.now(),