osl-base-extended 12.8.0 → 12.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osl-base-extended",
3
- "version": "12.8.0",
3
+ "version": "12.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0"
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { TemplateRef, OnInit, OnChanges, EventEmitter, SimpleChanges, ChangeDetectorRef, OnDestroy, ElementRef, AfterViewInit, ViewContainerRef, Renderer2, NgZone } from '@angular/core';
2
+ import { TemplateRef, InjectionToken, Provider, OnInit, OnChanges, EventEmitter, SimpleChanges, ChangeDetectorRef, OnDestroy, ElementRef, AfterViewInit, ViewContainerRef, Renderer2, NgZone } from '@angular/core';
3
3
  import * as i28 from '@angular/material/dialog';
4
4
  import { MatDialogRef } from '@angular/material/dialog';
5
5
  import * as rxjs from 'rxjs';
@@ -108,6 +108,7 @@ declare abstract class Httpbase {
108
108
  /** GET /controller/getConfig */
109
109
  getConfig(): Promise<HttpResponse<unknown>>;
110
110
  private plainHttp;
111
+ private attachCallerIp;
111
112
  getPublicIP(): rxjs.Observable<{
112
113
  ip: string;
113
114
  }>;
@@ -131,6 +132,15 @@ declare abstract class Httpbase {
131
132
  protected upload<T>(methodName: string, formData: FormData, params: myParams[]): Promise<HttpResponse<T>>;
132
133
  }
133
134
 
135
+ /**
136
+ * Controls whether Httpbase attaches the caller's public IP (via ipify.org)
137
+ * as the `ip-address` header on every outgoing request. Defaults to false
138
+ * when not provided, so existing projects are unaffected until they opt in.
139
+ */
140
+ declare const OSL_ATTACH_CALLER_IP: InjectionToken<boolean>;
141
+ /** Opt in from app.config.ts: providers: [provideCallerIpHeader()] */
142
+ declare function provideCallerIpHeader(enabled?: boolean): Provider;
143
+
134
144
  declare class DialogWrapper {
135
145
  dialogRef: MatDialogRef<DialogWrapper>;
136
146
  data: Dialog;
@@ -2461,5 +2471,5 @@ declare class ErrorDialog {
2461
2471
  static ɵcmp: i0.ɵɵComponentDeclaration<ErrorDialog, "error-dialog", never, {}, {}, never, never, true, never>;
2462
2472
  }
2463
2473
 
2464
- export { array_util_d as ArrayUtil, date_util_d as DateUtil, DeleteConfirmation, DeleteConfirmationData, Dialog, DialogWrapper, DirtyStateService, DynamicForm, ErrorDialog, FormStructureModule, Httpbase, number_util_d as NumberUtil, object_util_d as ObjectUtil, OslAutocomplete, OslAutocompleteLister, OslBaseExtended, OslButton, OslCheckbox, OslDatepicker, OslDatetimepicker, OslDocumentUploader, OslFileUpload, OslFormGrid, OslGrid, OslMenu, OslMenuTriggerFor, OslRadio, OslReportForm, OslReportGrid, OslSearchbar, OslSelect, OslSetup, OslSkeletonDirective, OslSkeletonModule, OslSkeletonThemeService, OslSlideToggle, OslTooltipDirective, OslUserLog, Oslinput, Osltextarea, storage_util_d as StorageUtil, string_util_d as StringUtil, UnsavedChangesDialog, validation_util_d as ValidationUtil, baseComponent, unsavedChangesGuard };
2474
+ export { array_util_d as ArrayUtil, date_util_d as DateUtil, DeleteConfirmation, DeleteConfirmationData, Dialog, DialogWrapper, DirtyStateService, DynamicForm, ErrorDialog, FormStructureModule, Httpbase, number_util_d as NumberUtil, OSL_ATTACH_CALLER_IP, object_util_d as ObjectUtil, OslAutocomplete, OslAutocompleteLister, OslBaseExtended, OslButton, OslCheckbox, OslDatepicker, OslDatetimepicker, OslDocumentUploader, OslFileUpload, OslFormGrid, OslGrid, OslMenu, OslMenuTriggerFor, OslRadio, OslReportForm, OslReportGrid, OslSearchbar, OslSelect, OslSetup, OslSkeletonDirective, OslSkeletonModule, OslSkeletonThemeService, OslSlideToggle, OslTooltipDirective, OslUserLog, Oslinput, Osltextarea, storage_util_d as StorageUtil, string_util_d as StringUtil, UnsavedChangesDialog, validation_util_d as ValidationUtil, baseComponent, provideCallerIpHeader, unsavedChangesGuard };
2465
2475
  export type { ButtonSize, ButtonVariant, DateInputType, DragColumn, DragDropPayload, DragItem, ErrorDialogData, FlatRow, HttpResponse, InputType, InternalColumn, OslDisplayType, OslFileValue, OslFormGridColumn, OslFormGridFooterColumn, OslFormGridRowEvent, OslGridColumn, OslMenuAction, OslMenuPosition, OslPageEvent, OslPdfConfig, OslReportColumn, OslReportPageEvent, OslReportSortEvent, OslSavedDocument, OslSetupSaveEvent, OslSortEvent, PanelPageEvent, PanelSearchEvent, PasswordOptions, ReportGenerateType, SkeletonAnimation, SkeletonTheme, SkeletonType, TextareaResize, UnsavedChangesDialogData, UserLogMeta, elements, myParams, oslListerData };