oip-common 0.0.9 → 0.0.11

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/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import * as rxjs from 'rxjs';
7
7
  import { Subject, BehaviorSubject, Observable, Subscription } from 'rxjs';
8
8
  import { OidcSecurityService, LoginResponse, LogoutAuthOptions, AbstractSecurityStorage, StsConfigHttpLoader } from 'angular-auth-oidc-client';
9
9
  import { ContextMenu } from 'primeng/contextmenu';
10
+ import { PrimeNG } from 'primeng/config';
10
11
  import { HttpInterceptorFn, HttpClient as HttpClient$1 } from '@angular/common/http';
11
12
  import { SafeUrl } from '@angular/platform-browser';
12
13
 
@@ -869,9 +870,6 @@ interface MigrationDto {
869
870
  pending: boolean;
870
871
  exist: boolean;
871
872
  }
872
- interface ApplyMigrationRequest {
873
- name: string;
874
- }
875
873
  declare class DbMigrationComponent extends BaseModuleComponent<NoSettingsDto, NoSettingsDto> implements OnInit, OnDestroy {
876
874
  data: MigrationDto[];
877
875
  ngOnInit(): Promise<void>;
@@ -950,6 +948,106 @@ declare class AppModulesComponent implements OnInit {
950
948
  static ɵcmp: i0.ɵɵComponentDeclaration<AppModulesComponent, "app-modules", never, {}, {}, never, never, true, never>;
951
949
  }
952
950
 
951
+ declare type SurfacesType = {
952
+ name?: string;
953
+ palette?: {
954
+ 0?: string;
955
+ 50?: string;
956
+ 100?: string;
957
+ 200?: string;
958
+ 300?: string;
959
+ 400?: string;
960
+ 500?: string;
961
+ 600?: string;
962
+ 700?: string;
963
+ 800?: string;
964
+ 900?: string;
965
+ 950?: string;
966
+ };
967
+ };
968
+ declare class AppConfiguratorComponent implements OnInit {
969
+ router: Router;
970
+ config: PrimeNG;
971
+ layoutService: LayoutService;
972
+ platformId: Object;
973
+ primeng: PrimeNG;
974
+ presets: string[];
975
+ showMenuModeButton: i0.WritableSignal<boolean>;
976
+ menuModeOptions: {
977
+ label: string;
978
+ value: string;
979
+ }[];
980
+ ngOnInit(): void;
981
+ surfaces: SurfacesType[];
982
+ selectedPrimaryColor: i0.Signal<string>;
983
+ selectedSurfaceColor: i0.Signal<string>;
984
+ selectedPreset: i0.Signal<string>;
985
+ menuMode: i0.Signal<string>;
986
+ primaryColors: i0.Signal<SurfacesType[]>;
987
+ getPresetExt(): {
988
+ semantic: {
989
+ primary: {
990
+ 0?: string;
991
+ 50?: string;
992
+ 100?: string;
993
+ 200?: string;
994
+ 300?: string;
995
+ 400?: string;
996
+ 500?: string;
997
+ 600?: string;
998
+ 700?: string;
999
+ 800?: string;
1000
+ 900?: string;
1001
+ 950?: string;
1002
+ };
1003
+ colorScheme: {
1004
+ light: {
1005
+ primary: {
1006
+ color: string;
1007
+ contrastColor: string;
1008
+ hoverColor: string;
1009
+ activeColor: string;
1010
+ };
1011
+ highlight: {
1012
+ background: string;
1013
+ focusBackground: string;
1014
+ color: string;
1015
+ focusColor: string;
1016
+ };
1017
+ };
1018
+ dark: {
1019
+ primary: {
1020
+ color: string;
1021
+ contrastColor: string;
1022
+ hoverColor: string;
1023
+ activeColor: string;
1024
+ };
1025
+ highlight: {
1026
+ background: string;
1027
+ focusBackground: string;
1028
+ color: string;
1029
+ focusColor: string;
1030
+ };
1031
+ };
1032
+ };
1033
+ };
1034
+ };
1035
+ updateColors(event: MouseEvent, type: string, color: SurfacesType): void;
1036
+ applyTheme(type: string, color: SurfacesType): void;
1037
+ onPresetChange(event: string): void;
1038
+ onMenuModeChange(event: string): void;
1039
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppConfiguratorComponent, never>;
1040
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppConfiguratorComponent, "app-configurator", never, {}, {}, never, never, true, never>;
1041
+ }
1042
+
1043
+ declare class AppFloatingConfiguratorComponent {
1044
+ LayoutService: LayoutService;
1045
+ isDarkTheme: i0.Signal<boolean>;
1046
+ toggleDarkMode(): void;
1047
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppFloatingConfiguratorComponent, never>;
1048
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppFloatingConfiguratorComponent, "app-floating-configurator", never, {}, {}, never, never, true, never>;
1049
+ }
1050
+
953
1051
  interface SecurityDto {
954
1052
  code: string;
955
1053
  name: string;
@@ -1024,5 +1122,5 @@ declare class SecurePipe implements PipeTransform {
1024
1122
  */
1025
1123
  declare const httpLoaderAuthFactory: (httpClient: HttpClient$1) => StsConfigHttpLoader;
1026
1124
 
1027
- export { AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, DbMigrationComponent, ErrorComponent, FooterComponent, LayoutService, LogoComponent, MenuComponent, MenuService, MsgService, NotfoundComponent, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept };
1028
- export type { AppConfig, ApplyMigrationRequest, MenuChangeEvent, MigrationDto, NoSettingsDto, PutSecurityDto, SecurityDto, TopBarDto };
1125
+ export { AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AuthGuardService, BaseDataService, BaseModuleComponent, ConfigComponent, DbMigrationComponent, ErrorComponent, FooterComponent, LayoutService, LogoComponent, MenuComponent, MenuService, MsgService, NotfoundComponent, ProfileComponent, SecurePipe, SecurityComponent, SecurityDataService, SecurityService, SecurityStorageService, SidebarComponent, TopBarService, UnauthorizedComponent, UserService, httpLoaderAuthFactory, langIntercept };
1126
+ export type { AppConfig, MenuChangeEvent, NoSettingsDto, PutSecurityDto, SecurityDto, TopBarDto };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1,7 +0,0 @@
1
- .primary-logo-color {
2
- fill: var(--primary-color);
3
- }
4
-
5
- .secondary-logo-color {
6
- fill: var(--p-primary-600);
7
- }