oip-common 0.6.3 → 0.6.4
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/README.md +68 -68
- package/assets/demo/code.scss +17 -17
- package/assets/demo/demo.scss +2 -2
- package/assets/demo/flags/flags.scss +984 -984
- package/assets/i18n/extensions.en.json +1 -1
- package/assets/layout/_core.scss +30 -30
- package/assets/layout/_footer.scss +8 -8
- package/assets/layout/_main.scss +12 -12
- package/assets/layout/_menu.scss +148 -148
- package/assets/layout/_mixins.scss +15 -15
- package/assets/layout/_preloading.scss +49 -49
- package/assets/layout/_responsive.scss +108 -108
- package/assets/layout/_topbar.scss +168 -168
- package/assets/layout/_typography.scss +68 -68
- package/assets/layout/_utils.scss +25 -25
- package/assets/layout/layout.scss +13 -13
- package/assets/layout/variables/_common.scss +20 -20
- package/assets/layout/variables/_dark.scss +5 -5
- package/assets/layout/variables/_light.scss +5 -5
- package/assets/oip-common.scss +6 -6
- package/assets/tailwind.css +3 -3
- package/fesm2022/oip-common.mjs +370 -325
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +51 -3
- package/package.json +1 -1
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,
|
|
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';
|
|
@@ -606,6 +606,52 @@ declare class LogoService {
|
|
|
606
606
|
static ɵprov: i0.ɵɵInjectableDeclaration<LogoService>;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Application information value. A function or a signal is read on every change detection,
|
|
611
|
+
* so it can return a localized value.
|
|
612
|
+
*/
|
|
613
|
+
type AppInfoValue = string | (() => string);
|
|
614
|
+
/**
|
|
615
|
+
* Application information displayed by the shell components.
|
|
616
|
+
*/
|
|
617
|
+
interface AppInfo {
|
|
618
|
+
/**
|
|
619
|
+
* Application version, for example generated at build time from package.json.
|
|
620
|
+
*/
|
|
621
|
+
version?: AppInfoValue;
|
|
622
|
+
/**
|
|
623
|
+
* Application name displayed in the footer.
|
|
624
|
+
*/
|
|
625
|
+
footer?: AppInfoValue;
|
|
626
|
+
/**
|
|
627
|
+
* Application name displayed in the top bar.
|
|
628
|
+
*/
|
|
629
|
+
title?: AppInfoValue;
|
|
630
|
+
}
|
|
631
|
+
declare const APP_INFO_TOKEN: InjectionToken<AppInfo>;
|
|
632
|
+
/**
|
|
633
|
+
* Provides application information instead of the `app-info.*` translation keys.
|
|
634
|
+
*/
|
|
635
|
+
declare function provideAppInfo(appInfo: AppInfo): Provider;
|
|
636
|
+
declare class AppInfoService {
|
|
637
|
+
private appInfo;
|
|
638
|
+
/**
|
|
639
|
+
* Returns the provided version or null when it should be taken from translations.
|
|
640
|
+
*/
|
|
641
|
+
getVersion(): string | null;
|
|
642
|
+
/**
|
|
643
|
+
* Returns the provided application name or null when it should be taken from translations.
|
|
644
|
+
*/
|
|
645
|
+
getFooter(): string | null;
|
|
646
|
+
/**
|
|
647
|
+
* Returns the provided application name or null when it should be taken from translations.
|
|
648
|
+
*/
|
|
649
|
+
getTitle(): string | null;
|
|
650
|
+
private resolve;
|
|
651
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppInfoService, never>;
|
|
652
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppInfoService>;
|
|
653
|
+
}
|
|
654
|
+
|
|
609
655
|
declare class AppTopbar {
|
|
610
656
|
private readonly translations;
|
|
611
657
|
securityService: SecurityService;
|
|
@@ -613,6 +659,7 @@ declare class AppTopbar {
|
|
|
613
659
|
userService: UserService;
|
|
614
660
|
layoutService: LayoutService;
|
|
615
661
|
logoService: LogoService;
|
|
662
|
+
appInfoService: AppInfoService;
|
|
616
663
|
private readonly confirmationService;
|
|
617
664
|
private readonly translateService;
|
|
618
665
|
onActiveTabChange(value: string | number | undefined): void;
|
|
@@ -625,6 +672,7 @@ declare class AppTopbar {
|
|
|
625
672
|
|
|
626
673
|
declare class FooterComponent {
|
|
627
674
|
protected logoService: LogoService;
|
|
675
|
+
protected appInfoService: AppInfoService;
|
|
628
676
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
629
677
|
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "app-footer", never, {}, {}, never, never, true, never>;
|
|
630
678
|
}
|
|
@@ -1791,5 +1839,5 @@ declare class CustomElementExtensionModuleHostComponent extends BaseModuleCompon
|
|
|
1791
1839
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomElementExtensionModuleHostComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1792
1840
|
}
|
|
1793
1841
|
|
|
1794
|
-
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, provideTranslations, replaceDefaults };
|
|
1795
|
-
export type { AppConfig, AppThemePreset, AppThemePresetMergeMode, AuthCsrfToken, LanguageDto, MenuChangeEvent, ModuleAccessRouteData, NoSettingsDto, OipExtensionHostContext, OipExtensionLoadType, OipExtensionManifest, OipExtensionModuleMetadata, OipExtensionNavigateEvent, OipExtensionNotifyEvent, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
|
|
1842
|
+
export { APP_INFO_TOKEN, APP_THEME_PRESETS, APP_THEME_PRESETS_MERGE_MODE, AccessComponent, AppConfiguratorComponent, AppFloatingConfiguratorComponent, AppInfoService, 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, provideAppInfo, provideAppThemes, provideLogoComponent, provideOip, provideTranslations, replaceDefaults };
|
|
1843
|
+
export type { AppConfig, AppInfo, AppInfoValue, AppThemePreset, AppThemePresetMergeMode, AuthCsrfToken, LanguageDto, MenuChangeEvent, ModuleAccessRouteData, NoSettingsDto, OipExtensionHostContext, OipExtensionLoadType, OipExtensionManifest, OipExtensionModuleMetadata, OipExtensionNavigateEvent, OipExtensionNotifyEvent, PutSecurityDto, RequestParams, SecurityDto, TopBarDto };
|