oip-common 0.0.37 → 0.1.1
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/fesm2022/oip-common.mjs +61 -7
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +27 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -58,10 +58,15 @@ declare class MsgService {
|
|
|
58
58
|
*/
|
|
59
59
|
declare class BaseDataService {
|
|
60
60
|
private readonly http;
|
|
61
|
+
private readonly frontendConfig;
|
|
61
62
|
/**
|
|
62
63
|
* Gets the base URL of the application from the HTML <base> tag.
|
|
63
64
|
*/
|
|
64
65
|
get baseUrl(): string;
|
|
66
|
+
/**
|
|
67
|
+
* Builds a fully-qualified application URL based on frontend mode.
|
|
68
|
+
*/
|
|
69
|
+
buildUrl(path: string): string;
|
|
65
70
|
/**
|
|
66
71
|
* Sends an HTTP request with the specified method and data.
|
|
67
72
|
*
|
|
@@ -79,6 +84,7 @@ declare class BaseDataService {
|
|
|
79
84
|
* @returns A promise that resolves to a Object response.
|
|
80
85
|
*/
|
|
81
86
|
getBlob(url: string): Promise<object>;
|
|
87
|
+
private normalizeBaseUrl;
|
|
82
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDataService, never>;
|
|
83
89
|
static ɵprov: i0.ɵɵInjectableDeclaration<BaseDataService>;
|
|
84
90
|
}
|
|
@@ -171,6 +177,8 @@ declare class LayoutService {
|
|
|
171
177
|
}
|
|
172
178
|
|
|
173
179
|
declare abstract class BaseModuleComponent<TBackendStoreSettings, TLocalStoreSettings> implements OnInit, OnDestroy {
|
|
180
|
+
private isInitialized;
|
|
181
|
+
private moduleInstanceReloadPromise;
|
|
174
182
|
/**
|
|
175
183
|
* Provide access to app settings
|
|
176
184
|
*/
|
|
@@ -302,6 +310,12 @@ declare abstract class BaseModuleComponent<TBackendStoreSettings, TLocalStoreSet
|
|
|
302
310
|
* @return {Promise<void>} A promise that resolves when the settings are saved. Reject if an error occurs.
|
|
303
311
|
*/
|
|
304
312
|
saveSettings(settings: TBackendStoreSettings): Promise<void>;
|
|
313
|
+
/**
|
|
314
|
+
* Called whenever the module instance changes, including the first load.
|
|
315
|
+
* Derived components can override this to refresh module-specific data.
|
|
316
|
+
*/
|
|
317
|
+
protected onModuleInstanceChange(): Promise<void>;
|
|
318
|
+
private reloadModuleInstance;
|
|
305
319
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseModuleComponent<any, any>, never>;
|
|
306
320
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseModuleComponent<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
307
321
|
}
|
|
@@ -1461,8 +1475,10 @@ declare class NotificationService {
|
|
|
1461
1475
|
private connection;
|
|
1462
1476
|
private securityService;
|
|
1463
1477
|
private msgService;
|
|
1478
|
+
private frontendConfig;
|
|
1464
1479
|
private securityData;
|
|
1465
1480
|
constructor();
|
|
1481
|
+
private resolveHubUrl;
|
|
1466
1482
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
1467
1483
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
1468
1484
|
}
|
|
@@ -1497,6 +1513,15 @@ declare class TableFilterService {
|
|
|
1497
1513
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableFilterService>;
|
|
1498
1514
|
}
|
|
1499
1515
|
|
|
1516
|
+
type OipFrontendAppMode = 'standalone' | 'distributed';
|
|
1517
|
+
interface OipFrontendConfig {
|
|
1518
|
+
appMode: OipFrontendAppMode;
|
|
1519
|
+
apiBaseUrl?: string;
|
|
1520
|
+
notificationHubUrl?: string;
|
|
1521
|
+
}
|
|
1522
|
+
declare const DEFAULT_OIP_FRONTEND_CONFIG: OipFrontendConfig;
|
|
1523
|
+
declare const OIP_FRONTEND_CONFIG: InjectionToken<OipFrontendConfig>;
|
|
1524
|
+
|
|
1500
1525
|
declare const langIntercept: HttpInterceptorFn;
|
|
1501
1526
|
|
|
1502
1527
|
declare class SecurePipe implements PipeTransform {
|
|
@@ -1514,5 +1539,5 @@ declare class SecurePipe implements PipeTransform {
|
|
|
1514
1539
|
*/
|
|
1515
1540
|
declare const httpLoaderAuthFactory: (httpClient: HttpClient$1) => StsConfigHttpLoader;
|
|
1516
1541
|
|
|
1517
|
-
export { AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, ContentType, DbMigrationComponent, DiscussionComponent, ErrorComponent, FooterComponent, HttpClient, KeycloakSecurityService, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, MsgService, NotfoundComponent, NotificationService, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept, provideLogoComponent };
|
|
1518
|
-
export type { AppConfig, LanguageDto, MenuChangeEvent, NoSettingsDto, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
|
|
1542
|
+
export { AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, ContentType, DEFAULT_OIP_FRONTEND_CONFIG, DbMigrationComponent, DiscussionComponent, ErrorComponent, FooterComponent, HttpClient, KeycloakSecurityService, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, MsgService, NotfoundComponent, NotificationService, OIP_FRONTEND_CONFIG, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept, provideLogoComponent };
|
|
1543
|
+
export type { AppConfig, LanguageDto, MenuChangeEvent, NoSettingsDto, OipFrontendAppMode, OipFrontendConfig, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
|