oip-common 0.1.5 → 0.1.7
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 +265 -174
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +41 -32
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, WritableSignal, Type, Provider, InjectionToken, EventEmitter, Renderer2, OnChanges, SimpleChanges, PipeTransform } from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, WritableSignal, Type, Provider, InjectionToken, EventEmitter, Renderer2, OnChanges, SimpleChanges, EnvironmentProviders, PipeTransform } from '@angular/core';
|
|
3
3
|
import { MessageService, ToastMessageOptions, MenuItem, ConfirmationService, FilterMetadata } from 'primeng/api';
|
|
4
4
|
import { ActivatedRoute, QueryParamsHandling, IsActiveMatchOptions, Params, Router, UrlTree } from '@angular/router';
|
|
5
5
|
import { TranslateService, InterpolationParameters, Translation, TranslationObject } from '@ngx-translate/core';
|
|
@@ -7,6 +7,7 @@ import * as rxjs from 'rxjs';
|
|
|
7
7
|
import { Subscription, Subject, Observable, BehaviorSubject } from 'rxjs';
|
|
8
8
|
import { LoginResponse, AuthOptions, OidcSecurityService, LogoutAuthOptions, AbstractSecurityStorage, StsConfigHttpLoader } from 'angular-auth-oidc-client';
|
|
9
9
|
import { ContextMenu } from 'primeng/contextmenu';
|
|
10
|
+
import { PaletteDesignToken, Preset } from '@primeuix/themes/types';
|
|
10
11
|
import { PrimeNG } from 'primeng/config';
|
|
11
12
|
import { Table } from 'primeng/table';
|
|
12
13
|
import { HttpInterceptorFn, HttpClient as HttpClient$1 } from '@angular/common/http';
|
|
@@ -347,6 +348,7 @@ declare abstract class SecurityService {
|
|
|
347
348
|
abstract forceRefreshSession(): Observable<LoginResponse>;
|
|
348
349
|
abstract isAdmin(): boolean;
|
|
349
350
|
abstract authorize(configId?: string, authOptions?: AuthOptions): void;
|
|
351
|
+
abstract payload: BehaviorSubject<any>;
|
|
350
352
|
}
|
|
351
353
|
/**
|
|
352
354
|
* SecurityService extends OidcSecurityService to manage authentication,
|
|
@@ -1089,20 +1091,7 @@ declare class AppModulesComponent implements OnInit {
|
|
|
1089
1091
|
|
|
1090
1092
|
declare type SurfacesType = {
|
|
1091
1093
|
name?: string;
|
|
1092
|
-
palette?:
|
|
1093
|
-
0?: string;
|
|
1094
|
-
50?: string;
|
|
1095
|
-
100?: string;
|
|
1096
|
-
200?: string;
|
|
1097
|
-
300?: string;
|
|
1098
|
-
400?: string;
|
|
1099
|
-
500?: string;
|
|
1100
|
-
600?: string;
|
|
1101
|
-
700?: string;
|
|
1102
|
-
800?: string;
|
|
1103
|
-
900?: string;
|
|
1104
|
-
950?: string;
|
|
1105
|
-
};
|
|
1094
|
+
palette?: PaletteDesignToken;
|
|
1106
1095
|
};
|
|
1107
1096
|
declare class AppConfiguratorComponent implements OnInit {
|
|
1108
1097
|
router: Router;
|
|
@@ -1110,7 +1099,16 @@ declare class AppConfiguratorComponent implements OnInit {
|
|
|
1110
1099
|
layoutService: LayoutService;
|
|
1111
1100
|
platformId: Object;
|
|
1112
1101
|
primeng: PrimeNG;
|
|
1113
|
-
|
|
1102
|
+
private readonly injectedThemePresets;
|
|
1103
|
+
private readonly themePresetMergeMode;
|
|
1104
|
+
private readonly themePresets;
|
|
1105
|
+
private readonly themePresetsMap;
|
|
1106
|
+
private readonly defaultThemePreset;
|
|
1107
|
+
private readonly fallbackPrimaryColors;
|
|
1108
|
+
presets: {
|
|
1109
|
+
label: string;
|
|
1110
|
+
value: string;
|
|
1111
|
+
}[];
|
|
1114
1112
|
showMenuModeButton: i0.WritableSignal<boolean>;
|
|
1115
1113
|
menuModeOptions: {
|
|
1116
1114
|
label: string;
|
|
@@ -1123,22 +1121,10 @@ declare class AppConfiguratorComponent implements OnInit {
|
|
|
1123
1121
|
selectedPreset: i0.Signal<string>;
|
|
1124
1122
|
menuMode: i0.Signal<string>;
|
|
1125
1123
|
primaryColors: i0.Signal<SurfacesType[]>;
|
|
1124
|
+
surfaceColors: i0.Signal<SurfacesType[]>;
|
|
1126
1125
|
getPresetExt(): {
|
|
1127
1126
|
semantic: {
|
|
1128
|
-
primary:
|
|
1129
|
-
0?: string;
|
|
1130
|
-
50?: string;
|
|
1131
|
-
100?: string;
|
|
1132
|
-
200?: string;
|
|
1133
|
-
300?: string;
|
|
1134
|
-
400?: string;
|
|
1135
|
-
500?: string;
|
|
1136
|
-
600?: string;
|
|
1137
|
-
700?: string;
|
|
1138
|
-
800?: string;
|
|
1139
|
-
900?: string;
|
|
1140
|
-
950?: string;
|
|
1141
|
-
};
|
|
1127
|
+
primary: PaletteDesignToken;
|
|
1142
1128
|
colorScheme: {
|
|
1143
1129
|
light: {
|
|
1144
1130
|
primary: {
|
|
@@ -1171,6 +1157,11 @@ declare class AppConfiguratorComponent implements OnInit {
|
|
|
1171
1157
|
};
|
|
1172
1158
|
};
|
|
1173
1159
|
};
|
|
1160
|
+
private getThemePresets;
|
|
1161
|
+
private getThemeById;
|
|
1162
|
+
private getPrimaryColorOptions;
|
|
1163
|
+
private getSurfaceColorOptions;
|
|
1164
|
+
private ensureValidThemeId;
|
|
1174
1165
|
updateColors(event: MouseEvent, type: string, color: SurfacesType): void;
|
|
1175
1166
|
applyTheme(type: string, color: SurfacesType): void;
|
|
1176
1167
|
onPresetChange(event: string): void;
|
|
@@ -1521,6 +1512,24 @@ declare class TableFilterService {
|
|
|
1521
1512
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableFilterService>;
|
|
1522
1513
|
}
|
|
1523
1514
|
|
|
1515
|
+
interface AppThemePreset {
|
|
1516
|
+
id: string;
|
|
1517
|
+
label?: string;
|
|
1518
|
+
preset: Preset;
|
|
1519
|
+
primaryColors?: Record<string, PaletteDesignToken | undefined>;
|
|
1520
|
+
surfaceColors?: Record<string, PaletteDesignToken | undefined>;
|
|
1521
|
+
}
|
|
1522
|
+
type AppThemePresetMergeMode = 'mergeWithDefaults' | 'replaceDefaults';
|
|
1523
|
+
declare const APP_THEME_PRESETS: InjectionToken<readonly AppThemePreset[]>;
|
|
1524
|
+
declare const APP_THEME_PRESETS_MERGE_MODE: InjectionToken<AppThemePresetMergeMode>;
|
|
1525
|
+
|
|
1526
|
+
interface ProvideAppThemesOptions {
|
|
1527
|
+
mode?: AppThemePresetMergeMode;
|
|
1528
|
+
}
|
|
1529
|
+
declare function provideAppThemes(themes: AppThemePreset[], options?: ProvideAppThemesOptions): EnvironmentProviders;
|
|
1530
|
+
declare function mergeWithDefaults(themes: AppThemePreset[]): EnvironmentProviders;
|
|
1531
|
+
declare function replaceDefaults(themes: AppThemePreset[]): EnvironmentProviders;
|
|
1532
|
+
|
|
1524
1533
|
type OipFrontendAppMode = 'standalone' | 'distributed';
|
|
1525
1534
|
interface OipFrontendConfig {
|
|
1526
1535
|
appMode: OipFrontendAppMode;
|
|
@@ -1547,5 +1556,5 @@ declare class SecurePipe implements PipeTransform {
|
|
|
1547
1556
|
*/
|
|
1548
1557
|
declare const httpLoaderAuthFactory: (httpClient: HttpClient$1) => StsConfigHttpLoader;
|
|
1549
1558
|
|
|
1550
|
-
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 };
|
|
1551
|
-
export type { AppConfig, LanguageDto, MenuChangeEvent, NoSettingsDto, OipFrontendAppMode, OipFrontendConfig, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
|
|
1559
|
+
export { APP_THEME_PRESETS, APP_THEME_PRESETS_MERGE_MODE, 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, mergeWithDefaults, provideAppThemes, provideLogoComponent, replaceDefaults };
|
|
1560
|
+
export type { AppConfig, AppThemePreset, AppThemePresetMergeMode, LanguageDto, MenuChangeEvent, NoSettingsDto, OipFrontendAppMode, OipFrontendConfig, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
|