diff --git a/src/app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component.html b/src/app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component.html new file mode 100644 index 00000000..25c14cca --- /dev/null +++ b/src/app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component.html @@ -0,0 +1,107 @@ +
+ + +
+
+ +
+
+ Documentation +
+ +
+ + Components +
+
+ +
+

+ Fullscreen +

+
+
+ +
+ +
+ +

+ fuse-fullscreen is a small component that toggles the fullscreen on and off. +

+

+ Exported as: fuseFullscreen +

+ +

Module

+ + +

Usage

+

+ Here's the basic usage of the fuse-fullscreen: +

+ + + + +

Properties

+
+ + + + + + + + + + + + + + + + + + + + +
NameDescriptionDefault
+
@Input()
+
iconTpl: TemplateRef<any>
+
+ Template reference for the icon. + + - +
+
@Input()
+
tooltip: string
+
+ Tooltip of the toggle button. + + 'Toggle Fullscreen' +
+
+ +
+ +
diff --git a/src/app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component.ts b/src/app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component.ts new file mode 100644 index 00000000..8acc21e3 --- /dev/null +++ b/src/app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component.ts @@ -0,0 +1,30 @@ +import { Component } from '@angular/core'; +import { CoreFeaturesComponent } from 'app/modules/admin/docs/core-features/core-features.component'; + +@Component({ + selector : 'fullscreen', + templateUrl: './fullscreen.component.html', + styles : [''] +}) +export class FullscreenComponent +{ + /** + * Constructor + */ + constructor(private _coreFeaturesComponent: CoreFeaturesComponent) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle the drawer + */ + toggleDrawer(): void + { + // Toggle the drawer + this._coreFeaturesComponent.matDrawer.toggle(); + } +} diff --git a/src/app/modules/admin/docs/core-features/components/highlight/highlight.component.html b/src/app/modules/admin/docs/core-features/components/highlight/highlight.component.html index 957a7bb9..0a724cc4 100644 --- a/src/app/modules/admin/docs/core-features/components/highlight/highlight.component.html +++ b/src/app/modules/admin/docs/core-features/components/highlight/highlight.component.html @@ -49,7 +49,7 @@

Usage

diff --git a/src/app/modules/admin/docs/core-features/core-features.component.ts b/src/app/modules/admin/docs/core-features/core-features.component.ts index 44445d0d..2591ab32 100644 --- a/src/app/modules/admin/docs/core-features/core-features.component.ts +++ b/src/app/modules/admin/docs/core-features/core-features.component.ts @@ -71,6 +71,12 @@ export class CoreFeaturesComponent implements OnInit, OnDestroy type : 'basic', link : '/docs/core-features/components/drawer' }, + { + id : 'core-features.components.fullscreen', + title: 'Fullscreen', + type : 'basic', + link : '/docs/core-features/components/fullscreen' + }, { id : 'core-features.components.highlight', title: 'Highlight', diff --git a/src/app/modules/admin/docs/core-features/core-features.module.ts b/src/app/modules/admin/docs/core-features/core-features.module.ts index 1330895c..69aee9af 100644 --- a/src/app/modules/admin/docs/core-features/core-features.module.ts +++ b/src/app/modules/admin/docs/core-features/core-features.module.ts @@ -20,6 +20,7 @@ import { AlertComponent } from 'app/modules/admin/docs/core-features/components/ import { CardComponent } from 'app/modules/admin/docs/core-features/components/card/card.component'; import { DateRangeComponent } from 'app/modules/admin/docs/core-features/components/date-range/date-range.component'; import { DrawerComponent } from 'app/modules/admin/docs/core-features/components/drawer/drawer.component'; +import { FullscreenComponent } from 'app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component'; import { HighlightComponent } from 'app/modules/admin/docs/core-features/components/highlight/highlight.component'; import { NavigationComponent } from 'app/modules/admin/docs/core-features/components/navigation/navigation.component'; import { MasonryComponent } from 'app/modules/admin/docs/core-features/components/masonry/masonry.component'; @@ -40,6 +41,7 @@ import { coreFeaturesRoutes } from 'app/modules/admin/docs/core-features/core-fe CardComponent, DateRangeComponent, DrawerComponent, + FullscreenComponent, HighlightComponent, MasonryComponent, NavigationComponent, diff --git a/src/app/modules/admin/docs/core-features/core-features.routing.ts b/src/app/modules/admin/docs/core-features/core-features.routing.ts index 350932b7..900edb00 100644 --- a/src/app/modules/admin/docs/core-features/core-features.routing.ts +++ b/src/app/modules/admin/docs/core-features/core-features.routing.ts @@ -5,6 +5,7 @@ import { AlertComponent } from 'app/modules/admin/docs/core-features/components/ import { CardComponent } from 'app/modules/admin/docs/core-features/components/card/card.component'; import { DateRangeComponent } from 'app/modules/admin/docs/core-features/components/date-range/date-range.component'; import { DrawerComponent } from 'app/modules/admin/docs/core-features/components/drawer/drawer.component'; +import { FullscreenComponent } from 'app/modules/admin/docs/core-features/components/fullscreen/fullscreen.component'; import { HighlightComponent } from 'app/modules/admin/docs/core-features/components/highlight/highlight.component'; import { MasonryComponent } from 'app/modules/admin/docs/core-features/components/masonry/masonry.component'; import { NavigationComponent } from 'app/modules/admin/docs/core-features/components/navigation/navigation.component'; @@ -59,6 +60,10 @@ export const coreFeaturesRoutes: Route[] = [ path : 'drawer', component: DrawerComponent }, + { + path : 'fullscreen', + component: FullscreenComponent + }, { path : 'highlight', component: HighlightComponent diff --git a/src/app/modules/admin/docs/other-components/common/languages/languages.component.html b/src/app/modules/admin/docs/other-components/common/languages/languages.component.html new file mode 100644 index 00000000..38adc435 --- /dev/null +++ b/src/app/modules/admin/docs/other-components/common/languages/languages.component.html @@ -0,0 +1,57 @@ +
+ + +
+
+ +
+
+ Documentation +
+ +
+ + Common +
+
+ +
+

+ Languages +

+
+
+ +
+ +
+ +

+ This component can be used for changing the language and managing the side effects of changing the active language such as updating the navigation. +

+ +

Usage

+

+ Here's the basic usage of the component: +

+ + +
+ +
diff --git a/src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.ts b/src/app/modules/admin/docs/other-components/common/languages/languages.component.ts similarity index 84% rename from src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.ts rename to src/app/modules/admin/docs/other-components/common/languages/languages.component.ts index 5b1cd108..f6a5c97b 100644 --- a/src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.ts +++ b/src/app/modules/admin/docs/other-components/common/languages/languages.component.ts @@ -2,11 +2,10 @@ import { Component } from '@angular/core'; import { OtherComponentsComponent } from 'app/modules/admin/docs/other-components/other-components.component'; @Component({ - selector : 'user-menu', - templateUrl: './user-menu.component.html', - styles : [''] + selector : 'languages', + templateUrl: './languages.component.html' }) -export class UserMenuComponent +export class LanguagesComponent { /** * Constructor diff --git a/src/app/modules/admin/docs/other-components/common/messages/messages.component.html b/src/app/modules/admin/docs/other-components/common/messages/messages.component.html index 51cc7ba7..2e1d98ac 100644 --- a/src/app/modules/admin/docs/other-components/common/messages/messages.component.html +++ b/src/app/modules/admin/docs/other-components/common/messages/messages.component.html @@ -52,13 +52,10 @@

Usage

-

- The component only has one input to supply the messages: -

Message

@@ -184,16 +181,15 @@
- store(messages: Message[]) + getAll(): Observable<Message[]>
- Store messages on the service. This will replace the current messages and can be used as an alternative to messages input of the - component. + Get all messages from the server.
- create(message: Message): Observable<Messages> + create(message: Message): Observable<Message>
Create a new message on the server. diff --git a/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts b/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts index a013450d..e0397828 100644 --- a/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts +++ b/src/app/modules/admin/docs/other-components/common/messages/messages.component.ts @@ -4,7 +4,6 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component @Component({ selector : 'messages', templateUrl: './messages.component.html', - styles : [''] }) export class MessagesComponent { diff --git a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html index 6986ed7c..37f792c6 100644 --- a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html +++ b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.html @@ -52,13 +52,10 @@

Usage

-

- The component only has one input to supply the notifications: -

Notification

@@ -184,16 +181,15 @@
- store(notifications: Notification[]) + getAll(): Observable<Notification[]>
- Store notifications on the service. This will replace the current notifications and can be used as an alternative to notifications input of the - component. + Get all notifications from the server.
- create(notification: Notification): Observable<Notifications> + create(notification: Notification): Observable<Notification>
Create a new notification on the server. diff --git a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts index 7c7d32f1..7aff0fff 100644 --- a/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts +++ b/src/app/modules/admin/docs/other-components/common/notifications/notifications.component.ts @@ -4,7 +4,6 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component @Component({ selector : 'notifications', templateUrl: './notifications.component.html', - styles : [''] }) export class NotificationsComponent { diff --git a/src/app/modules/admin/docs/other-components/common/overview/overview.component.html b/src/app/modules/admin/docs/other-components/common/overview/overview.component.html index 8c6488e1..ca591b5e 100644 --- a/src/app/modules/admin/docs/other-components/common/overview/overview.component.html +++ b/src/app/modules/admin/docs/other-components/common/overview/overview.component.html @@ -76,7 +76,7 @@

A user customizable panel to show shortcuts to internal/external pages.

  • -

    User Menu

    +

    User

    A user avatar and menu component to show user related information and actions.

  • diff --git a/src/app/modules/admin/docs/other-components/common/search/search.component.ts b/src/app/modules/admin/docs/other-components/common/search/search.component.ts index 8fc1b0fe..eb9a0810 100644 --- a/src/app/modules/admin/docs/other-components/common/search/search.component.ts +++ b/src/app/modules/admin/docs/other-components/common/search/search.component.ts @@ -3,8 +3,7 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component @Component({ selector : 'search', - templateUrl: './search.component.html', - styles : [''] + templateUrl: './search.component.html' }) export class SearchComponent { diff --git a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html index b07ae59d..2f227e64 100644 --- a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html +++ b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.html @@ -44,13 +44,10 @@

    Usage

    -

    - The component only has one input to supply the shortcuts: -

    Message

    @@ -149,16 +146,15 @@
    - store(shortcuts: Shortcut[]) + getAll(): Observable<Shortcut[]>
    - Store shortcuts on the service. This will replace the current shortcuts and can be used as an alternative to shortcuts input of the - component. + Get all shortcuts from the server.
    - create(shortcut: Shortcut): Observable<Shortcuts> + create(shortcut: Shortcut): Observable<Shortcut>
    Create a new shortcut on the server. diff --git a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts index 7303f7d6..3da703ef 100644 --- a/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts +++ b/src/app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component.ts @@ -4,7 +4,6 @@ import { OtherComponentsComponent } from 'app/modules/admin/docs/other-component @Component({ selector : 'shortcuts', templateUrl: './shortcuts.component.html', - styles : [''] }) export class ShortcutsComponent { diff --git a/src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.html b/src/app/modules/admin/docs/other-components/common/user/user.component.html similarity index 85% rename from src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.html rename to src/app/modules/admin/docs/other-components/common/user/user.component.html index 751a6046..fc2470bf 100644 --- a/src/app/modules/admin/docs/other-components/common/user-menu/user-menu.component.html +++ b/src/app/modules/admin/docs/other-components/common/user/user.component.html @@ -24,7 +24,7 @@

    - User Menu + User

    @@ -49,7 +49,7 @@

    Properties

    @@ -75,18 +75,6 @@ true - - -
    @Input()
    -
    user: User
    - - - The user data. - - - - - -
    diff --git a/src/app/modules/admin/docs/other-components/common/user/user.component.ts b/src/app/modules/admin/docs/other-components/common/user/user.component.ts new file mode 100644 index 00000000..2b766fba --- /dev/null +++ b/src/app/modules/admin/docs/other-components/common/user/user.component.ts @@ -0,0 +1,29 @@ +import { Component } from '@angular/core'; +import { OtherComponentsComponent } from 'app/modules/admin/docs/other-components/other-components.component'; + +@Component({ + selector : 'user', + templateUrl: './user.component.html' +}) +export class UserComponent +{ + /** + * Constructor + */ + constructor(private _otherComponentsComponent: OtherComponentsComponent) + { + } + + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + + /** + * Toggle the drawer + */ + toggleDrawer(): void + { + // Toggle the drawer + this._otherComponentsComponent.matDrawer.toggle(); + } +} diff --git a/src/app/modules/admin/docs/other-components/other-components.component.ts b/src/app/modules/admin/docs/other-components/other-components.component.ts index 5347a3ee..b5cf254e 100644 --- a/src/app/modules/admin/docs/other-components/other-components.component.ts +++ b/src/app/modules/admin/docs/other-components/other-components.component.ts @@ -41,6 +41,12 @@ export class OtherComponentsComponent implements OnInit, OnDestroy type : 'basic', link : '/docs/other-components/common/overview' }, + { + id : 'common.languages', + title: 'Languages', + type : 'basic', + link : '/docs/other-components/common/languages' + }, { id : 'common.messages', title: 'Messages', diff --git a/src/app/modules/admin/docs/other-components/other-components.module.ts b/src/app/modules/admin/docs/other-components/other-components.module.ts index b6d4cca1..bb7d5bf7 100644 --- a/src/app/modules/admin/docs/other-components/other-components.module.ts +++ b/src/app/modules/admin/docs/other-components/other-components.module.ts @@ -10,11 +10,12 @@ import { FuseScrollResetModule } from '@fuse/directives/scroll-reset'; import { SharedModule } from 'app/shared/shared.module'; import { OtherComponentsComponent } from 'app/modules/admin/docs/other-components/other-components.component'; import { OverviewComponent } from 'app/modules/admin/docs/other-components/common/overview/overview.component'; +import { LanguagesComponent } from 'app/modules/admin/docs/other-components/common/languages/languages.component'; import { MessagesComponent } from 'app/modules/admin/docs/other-components/common/messages/messages.component'; import { NotificationsComponent } from 'app/modules/admin/docs/other-components/common/notifications/notifications.component'; import { SearchComponent } from 'app/modules/admin/docs/other-components/common/search/search.component'; import { ShortcutsComponent } from 'app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component'; -import { UserMenuComponent } from 'app/modules/admin/docs/other-components/common/user-menu/user-menu.component'; +import { UserComponent } from 'app/modules/admin/docs/other-components/common/user/user.component'; import { ApexChartsComponent } from 'app/modules/admin/docs/other-components/third-party/apex-charts/apex-charts.component'; import { FullCalendarComponent } from 'app/modules/admin/docs/other-components/third-party/full-calendar/full-calendar.component'; import { NgxMarkdownComponent } from 'app/modules/admin/docs/other-components/third-party/ngx-markdown/ngx-markdown.component'; @@ -25,11 +26,12 @@ import { otherComponentsRoutes } from 'app/modules/admin/docs/other-components/o declarations: [ OtherComponentsComponent, OverviewComponent, + LanguagesComponent, MessagesComponent, NotificationsComponent, SearchComponent, ShortcutsComponent, - UserMenuComponent, + UserComponent, ApexChartsComponent, FullCalendarComponent, NgxMarkdownComponent, diff --git a/src/app/modules/admin/docs/other-components/other-components.routing.ts b/src/app/modules/admin/docs/other-components/other-components.routing.ts index 2a64c2ad..693cbf69 100644 --- a/src/app/modules/admin/docs/other-components/other-components.routing.ts +++ b/src/app/modules/admin/docs/other-components/other-components.routing.ts @@ -1,11 +1,12 @@ import { Route } from '@angular/router'; import { OtherComponentsComponent } from 'app/modules/admin/docs/other-components/other-components.component'; import { OverviewComponent } from 'app/modules/admin/docs/other-components/common/overview/overview.component'; +import { LanguagesComponent } from 'app/modules/admin/docs/other-components/common/languages/languages.component'; import { MessagesComponent } from 'app/modules/admin/docs/other-components/common/messages/messages.component'; import { NotificationsComponent } from 'app/modules/admin/docs/other-components/common/notifications/notifications.component'; import { SearchComponent } from 'app/modules/admin/docs/other-components/common/search/search.component'; import { ShortcutsComponent } from 'app/modules/admin/docs/other-components/common/shortcuts/shortcuts.component'; -import { UserMenuComponent } from 'app/modules/admin/docs/other-components/common/user-menu/user-menu.component'; +import { UserComponent } from 'app/modules/admin/docs/other-components/common/user/user.component'; import { ApexChartsComponent } from 'app/modules/admin/docs/other-components/third-party/apex-charts/apex-charts.component'; import { FullCalendarComponent } from 'app/modules/admin/docs/other-components/third-party/full-calendar/full-calendar.component'; import { NgxMarkdownComponent } from 'app/modules/admin/docs/other-components/third-party/ngx-markdown/ngx-markdown.component'; @@ -33,6 +34,10 @@ export const otherComponentsRoutes: Route[] = [ path : 'overview', component: OverviewComponent }, + { + path : 'languages', + component: LanguagesComponent + }, { path : 'messages', component: MessagesComponent @@ -51,7 +56,7 @@ export const otherComponentsRoutes: Route[] = [ }, { path : 'user', - component: UserMenuComponent + component: UserComponent } ] },