osl-base-extended 12.7.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,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';
|
|
@@ -107,10 +107,14 @@ declare abstract class Httpbase {
|
|
|
107
107
|
search(body: any): Promise<HttpResponse<unknown>>;
|
|
108
108
|
/** GET /controller/getConfig */
|
|
109
109
|
getConfig(): Promise<HttpResponse<unknown>>;
|
|
110
|
+
private plainHttp;
|
|
111
|
+
private attachCallerIp;
|
|
110
112
|
getPublicIP(): rxjs.Observable<{
|
|
111
113
|
ip: string;
|
|
112
114
|
}>;
|
|
113
115
|
private getHeaders;
|
|
116
|
+
private cachedIp;
|
|
117
|
+
private getCachedPublicIP;
|
|
114
118
|
private getUploadHeaders;
|
|
115
119
|
private handleSuccess;
|
|
116
120
|
private handleError;
|
|
@@ -128,6 +132,15 @@ declare abstract class Httpbase {
|
|
|
128
132
|
protected upload<T>(methodName: string, formData: FormData, params: myParams[]): Promise<HttpResponse<T>>;
|
|
129
133
|
}
|
|
130
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
|
+
|
|
131
144
|
declare class DialogWrapper {
|
|
132
145
|
dialogRef: MatDialogRef<DialogWrapper>;
|
|
133
146
|
data: Dialog;
|
|
@@ -2458,5 +2471,5 @@ declare class ErrorDialog {
|
|
|
2458
2471
|
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorDialog, "error-dialog", never, {}, {}, never, never, true, never>;
|
|
2459
2472
|
}
|
|
2460
2473
|
|
|
2461
|
-
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 };
|
|
2462
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 };
|