oip-common 0.1.6 → 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 +40 -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';
|
|
@@ -1090,20 +1091,7 @@ declare class AppModulesComponent implements OnInit {
|
|
|
1090
1091
|
|
|
1091
1092
|
declare type SurfacesType = {
|
|
1092
1093
|
name?: string;
|
|
1093
|
-
palette?:
|
|
1094
|
-
0?: string;
|
|
1095
|
-
50?: string;
|
|
1096
|
-
100?: string;
|
|
1097
|
-
200?: string;
|
|
1098
|
-
300?: string;
|
|
1099
|
-
400?: string;
|
|
1100
|
-
500?: string;
|
|
1101
|
-
600?: string;
|
|
1102
|
-
700?: string;
|
|
1103
|
-
800?: string;
|
|
1104
|
-
900?: string;
|
|
1105
|
-
950?: string;
|
|
1106
|
-
};
|
|
1094
|
+
palette?: PaletteDesignToken;
|
|
1107
1095
|
};
|
|
1108
1096
|
declare class AppConfiguratorComponent implements OnInit {
|
|
1109
1097
|
router: Router;
|
|
@@ -1111,7 +1099,16 @@ declare class AppConfiguratorComponent implements OnInit {
|
|
|
1111
1099
|
layoutService: LayoutService;
|
|
1112
1100
|
platformId: Object;
|
|
1113
1101
|
primeng: PrimeNG;
|
|
1114
|
-
|
|
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
|
+
}[];
|
|
1115
1112
|
showMenuModeButton: i0.WritableSignal<boolean>;
|
|
1116
1113
|
menuModeOptions: {
|
|
1117
1114
|
label: string;
|
|
@@ -1124,22 +1121,10 @@ declare class AppConfiguratorComponent implements OnInit {
|
|
|
1124
1121
|
selectedPreset: i0.Signal<string>;
|
|
1125
1122
|
menuMode: i0.Signal<string>;
|
|
1126
1123
|
primaryColors: i0.Signal<SurfacesType[]>;
|
|
1124
|
+
surfaceColors: i0.Signal<SurfacesType[]>;
|
|
1127
1125
|
getPresetExt(): {
|
|
1128
1126
|
semantic: {
|
|
1129
|
-
primary:
|
|
1130
|
-
0?: string;
|
|
1131
|
-
50?: string;
|
|
1132
|
-
100?: string;
|
|
1133
|
-
200?: string;
|
|
1134
|
-
300?: string;
|
|
1135
|
-
400?: string;
|
|
1136
|
-
500?: string;
|
|
1137
|
-
600?: string;
|
|
1138
|
-
700?: string;
|
|
1139
|
-
800?: string;
|
|
1140
|
-
900?: string;
|
|
1141
|
-
950?: string;
|
|
1142
|
-
};
|
|
1127
|
+
primary: PaletteDesignToken;
|
|
1143
1128
|
colorScheme: {
|
|
1144
1129
|
light: {
|
|
1145
1130
|
primary: {
|
|
@@ -1172,6 +1157,11 @@ declare class AppConfiguratorComponent implements OnInit {
|
|
|
1172
1157
|
};
|
|
1173
1158
|
};
|
|
1174
1159
|
};
|
|
1160
|
+
private getThemePresets;
|
|
1161
|
+
private getThemeById;
|
|
1162
|
+
private getPrimaryColorOptions;
|
|
1163
|
+
private getSurfaceColorOptions;
|
|
1164
|
+
private ensureValidThemeId;
|
|
1175
1165
|
updateColors(event: MouseEvent, type: string, color: SurfacesType): void;
|
|
1176
1166
|
applyTheme(type: string, color: SurfacesType): void;
|
|
1177
1167
|
onPresetChange(event: string): void;
|
|
@@ -1522,6 +1512,24 @@ declare class TableFilterService {
|
|
|
1522
1512
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableFilterService>;
|
|
1523
1513
|
}
|
|
1524
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
|
+
|
|
1525
1533
|
type OipFrontendAppMode = 'standalone' | 'distributed';
|
|
1526
1534
|
interface OipFrontendConfig {
|
|
1527
1535
|
appMode: OipFrontendAppMode;
|
|
@@ -1548,5 +1556,5 @@ declare class SecurePipe implements PipeTransform {
|
|
|
1548
1556
|
*/
|
|
1549
1557
|
declare const httpLoaderAuthFactory: (httpClient: HttpClient$1) => StsConfigHttpLoader;
|
|
1550
1558
|
|
|
1551
|
-
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 };
|
|
1552
|
-
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 };
|