oip-common 0.6.0 → 0.6.2

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
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, OnInit, DestroyRef, WritableSignal, OnChanges, SimpleChanges, Type, InjectionToken, Provider, EventEmitter, Renderer2, EnvironmentProviders } from '@angular/core';
2
+ import { OnDestroy, OnInit, DestroyRef, WritableSignal, OnChanges, SimpleChanges, Type, Provider, InjectionToken, EventEmitter, Renderer2, EnvironmentProviders } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Observable, BehaviorSubject, Subscription, Subject } from 'rxjs';
5
5
  import { MessageService, ToastMessageOptions, ConfirmationService, MenuItem, FilterMetadata } from 'primeng/api';
@@ -550,6 +550,7 @@ declare class SecurityComponent implements OnChanges, OnInit, OnDestroy {
550
550
  id?: number;
551
551
  controller?: string;
552
552
  roles: string[];
553
+ constructor(l10nService: L10nService);
553
554
  ngOnDestroy(): void;
554
555
  ngOnChanges(changes: SimpleChanges): void;
555
556
  ngOnInit(): void;
@@ -945,20 +946,25 @@ declare class UserProfileApi<SecurityDataType = unknown> extends HttpClient<Secu
945
946
  getUserPhoto: (params?: RequestParams) => Promise<Blob>;
946
947
  getUserPhotoById: ({ userId, ...query }: GetUserPhotoByIdParams, params?: RequestParams) => Promise<Blob>;
947
948
  postUserPhoto: (data: PostUserPhotoPayload, params?: RequestParams) => Promise<void>;
949
+ deleteUserPhoto: (params?: RequestParams) => Promise<void>;
948
950
  getSettings: (params?: RequestParams) => Promise<UserSettingsDto>;
949
951
  setSettings: (data: UserSettingsDto, params?: RequestParams) => Promise<void>;
950
952
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileApi<any>, never>;
951
953
  static ɵprov: i0.ɵɵInjectableDeclaration<UserProfileApi<any>>;
952
954
  }
953
955
 
954
- declare class ProfileComponent {
956
+ declare class UserProfileComponent {
955
957
  readonly userService: UserService;
956
958
  readonly msgService: MsgService;
957
959
  readonly translateService: TranslateService;
958
960
  readonly userProfileApi: UserProfileApi<any>;
961
+ private readonly confirmationService;
962
+ constructor(l10nService: L10nService);
959
963
  uploadPhoto(event: any): Promise<void>;
960
- static ɵfac: i0.ɵɵFactoryDeclaration<ProfileComponent, never>;
961
- static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComponent, "user-profile", never, {}, {}, never, never, true, never>;
964
+ confirmDeletePhoto(event: Event): void;
965
+ private deletePhoto;
966
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
967
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "user-profile", never, {}, {}, never, never, true, never>;
962
968
  }
963
969
 
964
970
  declare class ConfigComponent {
@@ -1173,6 +1179,7 @@ declare class AppConfiguratorComponent implements OnInit {
1173
1179
  label: string;
1174
1180
  value: string;
1175
1181
  }[];
1182
+ constructor(l10nService: L10nService);
1176
1183
  ngOnInit(): void;
1177
1184
  surfaces: SurfacesType[];
1178
1185
  selectedPrimaryColor: i0.Signal<string>;
@@ -1334,6 +1341,7 @@ declare class DiscussionComponent implements OnChanges, OnDestroy, OnInit {
1334
1341
  historyByComment: Record<number, HistoryState>;
1335
1342
  emojiPalette: string[];
1336
1343
  private mentionSearchTimer;
1344
+ constructor(l10nService: L10nService);
1337
1345
  ngOnChanges(changes: SimpleChanges): void;
1338
1346
  ngOnInit(): Promise<void>;
1339
1347
  ngOnDestroy(): void;
@@ -1499,6 +1507,7 @@ declare class UserNotificationsComponent {
1499
1507
  private readonly translateService;
1500
1508
  protected readonly unreadNotificationCount: i0.Signal<number>;
1501
1509
  protected readonly unreadNotificationBadge: i0.Signal<string>;
1510
+ constructor(l10nService: L10nService);
1502
1511
  protected toggle(event: Event): Promise<void>;
1503
1512
  loadNotifications(): Promise<void>;
1504
1513
  onPageChange(event: PaginatorState): Promise<void>;
@@ -1824,5 +1833,5 @@ declare class CustomElementExtensionModuleHostComponent extends BaseModuleCompon
1824
1833
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomElementExtensionModuleHostComponent, "ng-component", never, {}, {}, never, never, true, never>;
1825
1834
  }
1826
1835
 
1827
- export { APP_THEME_PRESETS, APP_THEME_PRESETS_MERGE_MODE, AccessComponent, AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AppTopbarApplicationSwitcherComponent, ApplicationRegistryService, ApplicationsApi, ApplicationsComponent, AuthGuardService, BaseModuleComponent, BffSecurityService, ConfigComponent, ContentType, CustomElementExtensionModuleHostComponent, DbMigrationComponent, DiscussionComponent, ErrorComponent, ExtensionLoaderService, ExtensionModuleHostComponent, FolderModuleApi, FooterComponent, HttpClient, IframeModuleApi, IframeModuleComponent, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, ModuleInstanceRightsService, MsgService, NotfoundComponent, NotificationApi, NotificationService, OIP_EXTENSION_EVENTS, ProfileComponent, SecurityApi, SecurityComponent, SecurityService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserNotificationsComponent, UserProfileApi, UserService, convertToPrimeNgDateFormat, defaultTheme, emitOipContextChange, emitOipError, emitOipNavigate, emitOipNotify, emitOipSettingsChange, emitOipTitleChange, langIntercept, mergeWithDefaults, moduleAccessGuard, provideAppThemes, provideLogoComponent, provideOip, replaceDefaults };
1836
+ export { APP_THEME_PRESETS, APP_THEME_PRESETS_MERGE_MODE, AccessComponent, AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppLayoutComponent, AppModulesComponent, AppTopbar, AppTopbarApplicationSwitcherComponent, ApplicationRegistryService, ApplicationsApi, ApplicationsComponent, AuthGuardService, BaseModuleComponent, BffSecurityService, ConfigComponent, ContentType, CustomElementExtensionModuleHostComponent, DbMigrationComponent, DiscussionComponent, ErrorComponent, ExtensionLoaderService, ExtensionModuleHostComponent, FolderModuleApi, FooterComponent, HttpClient, IframeModuleApi, IframeModuleComponent, L10nService, LOGO_COMPONENT_TOKEN, LayoutService, LogoComponent, LogoService, MenuComponent, MenuService, ModuleInstanceRightsService, MsgService, NotfoundComponent, NotificationApi, NotificationService, OIP_EXTENSION_EVENTS, SecurityApi, SecurityComponent, SecurityService, SidebarComponent, TableFilterService, TopBarService, UnauthorizedComponent, UserNotificationsComponent, UserProfileApi, UserProfileComponent, UserService, convertToPrimeNgDateFormat, defaultTheme, emitOipContextChange, emitOipError, emitOipNavigate, emitOipNotify, emitOipSettingsChange, emitOipTitleChange, langIntercept, mergeWithDefaults, moduleAccessGuard, provideAppThemes, provideLogoComponent, provideOip, replaceDefaults };
1828
1837
  export type { AppConfig, AppThemePreset, AppThemePresetMergeMode, AuthCsrfToken, LanguageDto, MenuChangeEvent, ModuleAccessRouteData, NoSettingsDto, OipExtensionHostContext, OipExtensionLoadType, OipExtensionManifest, OipExtensionModuleMetadata, OipExtensionNavigateEvent, OipExtensionNotifyEvent, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
6
  "keywords": [