@yuuvis/client-shell 0.6.5
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 +94 -0
- package/esm2022/index.mjs +6 -0
- package/esm2022/lib/actions/manage-flavors/manage-flavors.action.mjs +39 -0
- package/esm2022/lib/actions/manage-flavors/manage-flavors.component.mjs +69 -0
- package/esm2022/lib/client-shell.component.mjs +191 -0
- package/esm2022/lib/components/app-logo/app-logo.component.mjs +18 -0
- package/esm2022/lib/directives/inert.directive.mjs +26 -0
- package/esm2022/lib/lib.routes.mjs +15 -0
- package/esm2022/lib/pages/dashboard/dashboard.component.mjs +11 -0
- package/esm2022/lib/pages/notifications/notifications.component.mjs +82 -0
- package/esm2022/lib/pages/settings/settings.component.mjs +71 -0
- package/esm2022/lib/pages/web-share-target/web-share-target.component.mjs +18 -0
- package/esm2022/widget-dashboard/index.mjs +3 -0
- package/esm2022/widget-dashboard/lib/widget-dashboard.component.mjs +46 -0
- package/esm2022/widget-dashboard/lib/widget-dashboard.config.mjs +3 -0
- package/esm2022/widget-dashboard/lib/widget-dashboard.module.mjs +49 -0
- package/esm2022/widget-dashboard/yuuvis-client-shell-widget-dashboard.mjs +5 -0
- package/esm2022/yuuvis-client-shell.mjs +5 -0
- package/fesm2022/yuuvis-client-shell-widget-dashboard.mjs +98 -0
- package/fesm2022/yuuvis-client-shell-widget-dashboard.mjs.map +1 -0
- package/fesm2022/yuuvis-client-shell.mjs +496 -0
- package/fesm2022/yuuvis-client-shell.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/actions/manage-flavors/manage-flavors.action.d.ts +17 -0
- package/lib/actions/manage-flavors/manage-flavors.component.d.ts +17 -0
- package/lib/assets/i18n/de.json +30 -0
- package/lib/assets/i18n/en.json +30 -0
- package/lib/client-shell.component.d.ts +42 -0
- package/lib/components/app-logo/app-logo.component.d.ts +7 -0
- package/lib/directives/inert.directive.d.ts +8 -0
- package/lib/lib.routes.d.ts +2 -0
- package/lib/pages/dashboard/dashboard.component.d.ts +5 -0
- package/lib/pages/notifications/notifications.component.d.ts +29 -0
- package/lib/pages/settings/settings.component.d.ts +28 -0
- package/lib/pages/web-share-target/web-share-target.component.d.ts +6 -0
- package/package.json +40 -0
- package/widget-dashboard/README.md +19 -0
- package/widget-dashboard/index.d.ts +2 -0
- package/widget-dashboard/lib/widget-dashboard.component.d.ts +16 -0
- package/widget-dashboard/lib/widget-dashboard.config.d.ts +7 -0
- package/widget-dashboard/lib/widget-dashboard.module.d.ts +13 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yuuvis-client-shell.mjs","sources":["../../../../../libs/yuuvis/client-shell/src/lib/directives/inert.directive.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/dashboard/dashboard.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/dashboard/dashboard.component.html","../../../../../libs/yuuvis/client-shell/src/lib/pages/settings/settings.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/settings/settings.component.html","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.html","../../../../../libs/yuuvis/client-shell/src/lib/pages/web-share-target/web-share-target.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/web-share-target/web-share-target.component.html","../../../../../libs/yuuvis/client-shell/src/lib/lib.routes.ts","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.component.html","../../../../../libs/yuuvis/client-shell/src/lib/components/app-logo/app-logo.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/app-logo/app-logo.component.html","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.component.html","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.action.ts","../../../../../libs/yuuvis/client-shell/src/yuuvis-client-shell.ts"],"sourcesContent":["import { Directive, ElementRef, effect, inject, input } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[inert]',\n standalone: true\n})\nexport class InertDirective {\n private elRef = inject(ElementRef);\n\n inert = input<boolean>(false);\n\n constructor() {\n effect(() => {\n const el: HTMLElement = this.elRef.nativeElement as HTMLElement;\n if (this.inert()) el.setAttribute('inert', 'true');\n else el.removeAttribute('inert');\n });\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'yuv-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.scss']\n})\nexport class DashboardPageComponent {}\n","yuuvis Momentum\n","import { Component, inject, OnInit, Signal, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { ConfigService, TranslateModule, TranslateService, UserService, YuvConfigLanguages, YuvUser } from '@yuuvis/client-core';\n\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { ShellAppSettingProperty, ShellAppSettings, ShellService } from '@yuuvis/client-shell-core';\nimport { map, Observable } from 'rxjs';\n\n@Component({\n selector: 'yuv-settings',\n standalone: true,\n imports: [CommonModule, TranslateModule, ReactiveFormsModule],\n templateUrl: './settings.component.html',\n styleUrls: ['./settings.component.scss']\n})\nexport class SettingsPageComponent implements OnInit {\n private userService = inject(UserService);\n private config = inject(ConfigService);\n public translate = inject(TranslateService);\n private shell = inject(ShellService);\n readonly document = inject(DOCUMENT);\n\n #fb = inject(FormBuilder);\n\n clientLocales = signal<YuvConfigLanguages[]>([]);\n clientVersion = signal<string | undefined>(undefined);\n user: Signal<YuvUser | undefined> = toSignal(this.userService.user$);\n appSettingForms$: Observable<\n {\n appID: string;\n label: string;\n formControls: ShellAppSettingProperty[];\n form: FormGroup;\n }[]\n > = this.shell.appSettings$.pipe(\n map((settings: ShellAppSettings[]) =>\n settings.map((e) => {\n const x: any = {};\n const fcn: ShellAppSettingProperty[] = e.properties.map((p) => ({\n label: this.translate.instant(p.label) || p.label,\n name: p.name,\n type: p.type\n }));\n e.properties.forEach((p) => {\n x[p.name] = [p.value];\n });\n return {\n appID: e.appID,\n label: e.label,\n formControls: fcn,\n form: this.#fb.group(x)\n };\n })\n )\n );\n\n saveAppSettings(appID: string, form: FormGroup) {\n this.userService\n .saveUserSettings({\n clientAppSettings: {\n [appID]: form.value\n }\n })\n .subscribe({\n next: () => {\n form.markAsPristine();\n },\n error: (err) => {\n console.error('Error saving app settings', err);\n }\n });\n }\n\n changeClientLocale(iso: string) {\n this.userService.changeClientLocale(iso);\n }\n\n ngOnInit(): void {\n this.clientVersion.set(this.document.body.getAttribute('data-version') ?? 'dev');\n this.clientLocales.set(this.config.getClientLocales());\n }\n}\n","<header>\n <h1>{{ 'yuv.shell.settings.title' | translate }}</h1>\n <h4>{{ 'yuc.shell.settings.client.version' | translate }}: {{ clientVersion() }}</h4>\n</header>\n\n\n<main>@if (user()) {\n <section class=\"user\">\n <!-- <yuv-user-avatar class=\"background\" [user]=\"user()\"></yuv-user-avatar> -->\n <div class=\"user\">\n <div class=\"meta uname\">{{ user()!.username }}</div>\n <h2>{{ user()!.title }}</h2>\n <div class=\"meta uemail\">{{ user()!.email }}</div>\n <div class=\"meta utenant\">{{ 'yuv.shell.settings.tenant' | translate }}: {{ user()!.tenant }}</div>\n </div>\n </section>\n}\n <!-- language -->\n <section yuvOfflineDisabled>\n <div class=\"label\" translate>yuv.shell.settings.language</div>\n <div class=\"value buttons\">\n @for (locale of clientLocales(); track locale.iso) {\n <button class=\"toggle secondary\" (click)=\"changeClientLocale(locale.iso)\" [ngClass]=\"{ active: translate.currentLang === locale.iso }\">\n {{ locale.label }}\n </button>\n }\n </div>\n </section>\n\n <!-- app settings -->\n <!-- TODO: activate one feature is refined -->\n <!-- @for (c of appSettingForms$ | async; track $index) {\n <section>\n {{ c.label }}\n <form [formGroup]=\"c.form\" (ngSubmit)=\"saveAppSettings(c.appID, c.form)\">\n @for (n of c.formControls; track $index) {\n <label\n >{{ n.label }}\n\n @switch (n.type) {\n @case ('string') {\n <input type=\"text\" [formControlName]=\"n.name\" />\n }\n @case ('number') {\n <input type=\"number\" [formControlName]=\"n.name\" />\n }\n }\n </label>\n }\n <button [ngClass]=\"{ hideen: c.form.untouched }\" [disabled]=\"c.form.invalid\">Save</button>\n </form>\n </section>\n } -->\n</main>\n","import { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { Component, ElementRef, HostListener, OnInit, effect, inject } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { Router } from '@angular/router';\nimport { LocaleDatePipe, TranslateModule, Utils } from '@yuuvis/client-core';\nimport { LightDismissDirective } from '@yuuvis/client-framework/common';\nimport { YUV_ICONS } from '@yuuvis/client-framework/icons';\nimport { ListComponent, ListItemDirective } from '@yuuvis/client-framework/list';\nimport { ShellNotificationsService } from '@yuuvis/client-shell-core';\nimport { ICONS, YvcIconModule } from '@yuuvis/components/icon';\n\n@Component({\n selector: 'yuv-notifications',\n standalone: true,\n imports: [CommonModule, LightDismissDirective, LocaleDatePipe, YvcIconModule, CdkTrapFocus, ListComponent, ListItemDirective, TranslateModule],\n templateUrl: './notifications.component.html',\n styleUrl: './notifications.component.scss'\n})\nexport class NotificationsPageComponent implements OnInit {\n private router = inject(Router);\n private shellNotifications = inject(ShellNotificationsService);\n private elRef = inject(ElementRef);\n\n private _focusedIndex = -1;\n private _notificationIDs: string[] = [];\n notifications = toSignal(this.shellNotifications.shellNotifications$);\n notificationsIdEffect = effect(() => (this._notificationIDs = (this.notifications() || []).map((n) => n.id)));\n\n icons = {\n close: ICONS.clear,\n trash: YUV_ICONS.trash,\n note: YUV_ICONS.notification\n };\n\n @HostListener('keydown', ['$event']) onKeydown(event: KeyboardEvent) {\n switch (event.code) {\n case 'Delete': {\n if (this._focusedIndex >= 0) this.remove(this._notificationIDs[this._focusedIndex]);\n break;\n }\n }\n }\n\n async itemSelected(idx: number[]) {\n const n = this.shellNotifications.getNotificationById(this._notificationIDs[idx[0]]);\n if (n?.targetRoute) {\n await this.close();\n this.router.navigateByUrl(n.targetRoute, { replaceUrl: true });\n if (n.removeOnTargetRouteNavigated) this.remove(n.id);\n }\n }\n\n itemFocused(index: number) {\n this._focusedIndex = index;\n }\n\n remove(id: string) {\n if (id) this.shellNotifications.remove(id);\n }\n\n removeAll() {\n this.shellNotifications.removeAll();\n }\n\n close() {\n return this.router.navigate([{ outlets: { aside: null } }], {\n replaceUrl: true\n });\n }\n\n ngOnInit(): void {\n this.shellNotifications.markAllAsSeen();\n setTimeout(() => {\n const fc: HTMLElement[] = Utils.getFocusableChildren(this.elRef.nativeElement) as HTMLElement[];\n if (fc.length) fc[0].focus();\n });\n }\n}\n","<div class=\"notifications\" (yuvLightDismiss)=\"close()\" cdkTrapFocus>\n <h2>{{ 'yuv.shell.notifications.title' | translate }}</h2>\n\n @if (notifications()?.length) {\n <yuv-list (itemSelect)=\"itemSelected($event)\" (itemFocus)=\"itemFocused($event)\">\n @for (n of notifications(); track n.id) {\n <div class=\"note {{ n.level }}\" [ngClass]=\"{ withRoute: n.targetRoute }\" yuvListItem>\n <div class=\"icon\"><yvc-icon [svg]=\"n.icon || icons.note\"></yvc-icon></div>\n <div class=\"received\">{{ n.timestamp | localeDate }}</div>\n <div class=\"title\">{{ n.title }}</div>\n <div class=\"description\">{{ n.description }}</div>\n <div class=\"meta\"></div>\n\n <div class=\"actions\">\n <button (click)=\"remove(n.id)\">\n <yvc-icon [svg]=\"icons.trash\"></yvc-icon>\n </button>\n </div>\n </div>\n }\n </yuv-list>\n\n <div class=\"actions\">\n <button [hidden]=\"!notifications()?.length\" class=\"icon secondary\" (click)=\"removeAll()\">\n {{ 'yuv.shell.notifications.button.remove.all' | translate }}<yvc-icon [svg]=\"icons.trash\"></yvc-icon>\n </button>\n </div>\n } @else {\n <div class=\"empty\">\n <p>{{ 'yuv.shell.notifications.empty' | translate }}</p>\n </div>\n }\n\n <button class=\"icon close\" (click)=\"close()\">\n <yvc-icon [svg]=\"icons.close\"></yvc-icon>\n </button>\n</div>\n","import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'yuv-web-share-target',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './web-share-target.component.html',\n styleUrl: './web-share-target.component.scss'\n})\nexport class WebShareTargetPageComponent {\n\n constructor() {\n navigator.serviceWorker.onmessage = (e) => {\n const file = e.data.file;\n\n console.log(file);\n \n }\n }\n}\n","<p>web-share-target works!</p>\n","import { Route } from '@angular/router';\nimport { DashboardPageComponent } from './pages/dashboard/dashboard.component';\nimport { SettingsPageComponent } from './pages/settings/settings.component';\nimport { NotificationsPageComponent } from './pages/notifications/notifications.component';\nimport { WebShareTargetPageComponent } from './pages/web-share-target/web-share-target.component';\n\nexport const clientShellRoutes: Route[] = [\n { path: 'dashboard', component: DashboardPageComponent },\n { path: 'notifications', component: NotificationsPageComponent, outlet: 'aside' },\n { path: 'settings', component: SettingsPageComponent },\n { path: 'web-share-target', component: WebShareTargetPageComponent },\n // default route\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n // redirecting route\n { path: '**', redirectTo: '/' }\n];\n","import { AsyncPipe, NgIf } from '@angular/common';\nimport { Component, HostListener, OnInit, Signal, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Route, Router, RouterModule } from '@angular/router';\nimport { SwPush } from '@angular/service-worker';\nimport { AuthService, DeviceService, TranslateModule, TranslateService, UserRoles, UserService, Utils, YuvUser } from '@yuuvis/client-core';\nimport { MetadataDefaultTemplatesComponent } from '@yuuvis/client-framework/metadata-form';\nimport {\n App,\n ClientShellConfig,\n CommandPaletteCommand,\n CommandPaletteService,\n ShellNotificationLevel,\n ShellNotificationsService,\n ShellService\n} from '@yuuvis/client-shell-core';\nimport { YvcIconModule } from '@yuuvis/components/icon';\nimport { of } from 'rxjs';\nimport { catchError, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { clientShellRoutes } from './lib.routes';\n\n@Component({\n selector: 'yuv-client-shell',\n standalone: true,\n imports: [NgIf, AsyncPipe, TranslateModule, RouterModule, YvcIconModule, MetadataDefaultTemplatesComponent],\n templateUrl: './client-shell.component.html',\n styleUrls: ['./client-shell.component.scss']\n})\nexport class ClientShellComponent implements OnInit {\n private router = inject(Router);\n private auth = inject(AuthService);\n private userService = inject(UserService);\n #shell = inject(ShellService);\n private shellNotifications = inject(ShellNotificationsService);\n private translate = inject(TranslateService);\n private commandPalette = inject(CommandPaletteService);\n readonly #device = inject(DeviceService);\n readonly #swPush = inject(SwPush);\n\n private APP_LOGOUT_EVENT_KEY = 'yuv.app.event.logout';\n\n private _levels: Record<ShellNotificationLevel, number> = {\n info: 0,\n success: 1,\n warning: 2,\n alert: 3\n };\n\n showUploadOverlay = false;\n busy$ = this.#shell.isBusy$;\n context?: string;\n\n showNotifications = signal<boolean>(false);\n newNotifications: Signal<\n | {\n count: number;\n maxLevel: ShellNotificationLevel;\n }\n | undefined\n > = toSignal(\n this.shellNotifications.shellNotifications$.pipe(\n tap((n) => this.showNotifications.set(n.length > 0)),\n map((notifications) => {\n let maxLevel: ShellNotificationLevel = 'info';\n const count = notifications.filter((n) => !n.seen).length;\n notifications.forEach((n) => (maxLevel = n.level && this._levels[n.level] > this._levels[maxLevel] ? n.level : maxLevel));\n return count > 0 ? { maxLevel, count } : undefined;\n })\n )\n );\n\n @HostListener('document:focusin', ['$event'])\n onFocusChange(event: FocusEvent) {\n // console.log('focused: ', document.activeElement);\n }\n\n @HostListener('dragover', ['$event'])\n onDragOver(event: DragEvent) {\n event.stopPropagation();\n event.preventDefault();\n\n this.showUploadOverlay = !!this._dragContainsFiles(event);\n }\n\n apps = input.required<App[]>();\n #appsEffect = effect(() => this.#shell.setAppBaseRoutes(this.apps()));\n user?: YuvUser;\n checkedForInitialRoute = false;\n enableTenantSwitch = false;\n\n config = input<ClientShellConfig>();\n #shellConfigEffect = effect(\n () => {\n const cfg = this.config();\n if (cfg) {\n this.#shell.setShellConfig(cfg);\n }\n },\n {\n allowSignalWrites: true\n }\n );\n shellConfig = this.#shell.shellConfig;\n\n constructor() {\n this.translate.onLangChange.subscribe(() => this._setCommands(true));\n // this.router.events.pipe(\n // // filter(e => e instanceof NavigationStart)\n // ).subscribe((e) => {\n // console.log(e);\n // });\n\n this.router.events\n .pipe(\n filter((e) => e instanceof NavigationEnd),\n map((e) => e as NavigationEnd)\n )\n .subscribe((e: NavigationEnd) => this._processRouterNavigationEnd(e));\n\n this.#device.init();\n\n this.userService.user$.subscribe((user: YuvUser | undefined) => {\n if (user) {\n this.checkedForInitialRoute = !(!this.user || this.user.id !== user.id);\n this.enableTenantSwitch = user.authorities.includes(UserRoles.MULTI_TENANT);\n }\n this.user = user;\n });\n\n window.addEventListener('storage', (evt) => {\n if (evt.key === this.APP_LOGOUT_EVENT_KEY) {\n this.appLogout(true);\n }\n });\n }\n\n openNotifications() {\n this.router.navigate([{}]);\n }\n\n // getNotifications(id: string) {\n // return this.shellNotifications.getNotifications(id);\n // }\n\n private _dragContainsFiles(event: DragEvent): number {\n // do not allow to drop files/images from iframes\n if ((event.relatedTarget as Element)?.tagName.toLowerCase() === 'iframe') return 0;\n return event.dataTransfer ? Array.from(event.dataTransfer.items || []).filter((i) => i.kind === 'file' && i.type).length : 0;\n }\n\n private _setCommands(update?: boolean) {\n const commands: CommandPaletteCommand[] = this.apps().map((a: App, i: number) => ({\n id: `nav.app.${i}`,\n label: this.translate.instant('yuv.shell.cmd.app.open', { title: a.title as string }),\n callback: () => this.router.navigate([a.path])\n }));\n commands.push({\n id: `nav.shell.settings`,\n label: this.translate.instant('yuv.shell.cmd.open.settings'),\n callback: () => this.router.navigate(['settings'])\n });\n commands.push({\n id: `nav.shell.logout`,\n label: this.translate.instant('yuv.shell.cmd.logout'),\n callback: () => this.appLogout()\n });\n\n if (update) this.commandPalette.updateCommands(commands);\n else this.commandPalette.registerCommands(commands);\n }\n\n requestSubscription() {\n if (!this.#swPush.isEnabled) {\n console.log('Notification is not enabled.');\n return;\n }\n\n this.#swPush.messages\n .pipe(\n tap((msg) => console.log({ msg })),\n catchError((error) => {\n console.log({ error });\n return of(null);\n })\n )\n .subscribe();\n }\n\n appLogout(triggeredFromOtherTab?: boolean) {\n if (!triggeredFromOtherTab) {\n // send storage event to logout all other open tabs\n window.localStorage.setItem(this.APP_LOGOUT_EVENT_KEY, `${Date.now()}`);\n }\n this.userService.logout('');\n }\n\n private _processRouterNavigationEnd(e: NavigationEnd) {\n if (!this.checkedForInitialRoute) {\n this.checkedForInitialRoute = true;\n // redirect to the page the user logged out from the last time\n // but only if current route is not a deep link\n const ignoreRoutes = ['', 'dashboard', 'index.html'].map((s) => `${Utils.getBaseHref()}${s}`.replace('//', '/'));\n const currentRoute = this.routeWithBaseHref(this.router.routerState.snapshot.url);\n\n if (this.userService.getCurrentUser() && !ignoreRoutes.includes(currentRoute)) {\n // get persisted routes to decide where to redirect the logged in user to\n this.auth\n .getInitialRequestUri()\n .pipe(switchMap((res) => this.auth.resetInitialRequestUri().pipe(map((_) => res))))\n .subscribe((res: { uri: string; timestamp: number }) => {\n const loginRes = res && !ignoreRoutes.includes(res.uri) ? res : null;\n if (loginRes) this.router.navigateByUrl(loginRes.uri);\n });\n }\n }\n }\n\n private routeWithBaseHref(r: string): string {\n return `${Utils.getBaseHref()}${r}`.replace('//', '/');\n }\n\n ngOnInit(): void {\n this.#shell._init();\n clientShellRoutes.forEach((route: Route) => {\n this.router.config.push(route);\n });\n this.router.resetConfig(this.router.config);\n this._setCommands();\n this.requestSubscription();\n }\n}\n","<yuv-metadata-default-templates></yuv-metadata-default-templates>\n<!-- <yuv-focus-indicator /> -->\n\n<!-- gloabl busy indicator -->\n@if (busy$ | async) {\n <div class=\"yuv-loader-linear\"></div>\n}\n<nav class=\"apps\" [inert]=\"asideOutlet.isActivated\" [attr.aria-label]=\"'yuv.shell.naviagtion.aria.label' | translate\">\n <div class=\"app-icon\">\n <button routerLink=\"/\" routerLinkActive=\"active\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n <yvc-icon [svg]=\"shellConfig().icons!.appIcon!\"></yvc-icon>\n </button>\n </div>\n <ul class=\"apps\">\n @for (a of apps(); track a.path) {\n <li>\n <button routerLinkActive=\"active\" [routerLink]=\"a.path\" title=\"{{ a.title }}\">\n <yvc-icon [svg]=\"a.icon\" title=\"{{ a.title }}\" *ngIf=\"a.icon\"></yvc-icon>\n <!-- @if (getNotifications(a.id)) {\n <div [ngClass]=\"'badge ' + getNotifications(a.id).maxLevel\">{{ getNotifications(a.id).count }}</div>\n } -->\n </button>\n </li>\n }\n </ul>\n\n <section class=\"actions\">\n @if (showNotifications()) {\n <button [routerLink]=\"[{ outlets: { aside: 'notifications' } }]\" routerLinkActive=\"active\" title=\"{{ 'yuv.shell.notifications.title' | translate }}\">\n <yvc-icon [svg]=\"shellConfig().icons!.notifications!\"></yvc-icon>\n @if (newNotifications(); as note) {\n <div class=\"badge {{ note.maxLevel }}\">{{ note.count }}</div>\n }\n </button>\n }\n <button [routerLink]=\"['/settings']\" routerLinkActive=\"active\" title=\"{{ 'yuv.shell.settings.title' | translate }}\">\n <yvc-icon [svg]=\"shellConfig().icons!.settings!\"></yvc-icon>\n </button>\n <button (click)=\"appLogout()\" title=\"{{ 'yuv.shell.cmd.logout' | translate }}\"><yvc-icon [svg]=\"shellConfig().icons!.logout!\"></yvc-icon></button>\n </section>\n</nav>\n<main id=\"main-shell_content\" aria-label=\"main shell content\" [inert]=\"asideOutlet.isActivated\">\n <router-outlet></router-outlet>\n</main>\n\n<!-- outlet for aside modals like notifications -->\n<div class=\"asideOutlet\" [hidden]=\"!asideOutlet.isActivated\">\n <router-outlet name=\"aside\" #asideOutlet=\"outlet\"></router-outlet>\n</div>\n\n<div id=\"fi\" inert></div>\n","import { Component, input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { YvcIconModule } from '@yuuvis/components/icon';\n\n@Component({\n selector: 'yuv-app-logo',\n standalone: true,\n imports: [CommonModule, YvcIconModule],\n templateUrl: './app-logo.component.html',\n styleUrl: './app-logo.component.scss'\n})\nexport class AppLogoComponent {\n icon = input<string>();\n label = input.required<string>();\n}\n","@let ico = icon();\n@if(ico){\n<yvc-icon [svg]=\"ico\"></yvc-icon>\n}<span class=\"label\">{{label()}}</span>","import { Component, inject, OnInit, signal } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { YvcOverlayRef } from '@yuuvis/components/overlay';\nimport { DmsObject, DmsService, TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { ObjectFlavor, ShellService } from '@yuuvis/client-shell-core';\nimport { FlavorChipComponent } from '@yuuvis/client-framework/object-flavor';\nimport { ListComponent, ListItemDirective } from '@yuuvis/client-framework/list';\nimport { BusyOverlayDirective } from '@yuuvis/client-framework/common';\nimport { Observable, tap } from 'rxjs';\n\n@Component({\n selector: 'yuv-manage-flavors',\n standalone: true,\n imports: [CommonModule, ListComponent, BusyOverlayDirective, TranslateModule, ListItemDirective, FlavorChipComponent],\n templateUrl: './manage-flavors.component.html',\n styleUrl: './manage-flavors.component.scss'\n})\nexport class ManageFlavorsComponent implements OnInit {\n #overlayRef = inject(YvcOverlayRef);\n #shell = inject(ShellService);\n #dmsService = inject(DmsService);\n item: DmsObject = this.#overlayRef.data;\n\n busy = signal<boolean>(false);\n\n appliedFlavors: ObjectFlavor[] = [];\n applicableFlavors: ObjectFlavor[] = [];\n\n applyFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#shell.triggerApplyObjectFlavor(this.item, flavor).subscribe(() => {\n this.#overlayRef.close();\n this.busy.set(false);\n });\n }\n\n removeFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#shell.removeObjectFlavor(this.item, flavor).subscribe(() => {\n this.#overlayRef.close();\n this.busy.set(false);\n });\n }\n\n #refreshDmsObject() {\n this.busy.set(true);\n this.#dmsService\n .getDmsObject(this.item.id)\n .pipe(\n tap((dmsObject) => {\n this.item = dmsObject;\n this.#getAppliedFlavors(this.item);\n })\n )\n .subscribe()\n .add(() => this.busy.set(false));\n }\n\n #getAppliedFlavors(dmsObject: DmsObject) {\n const res = this.#shell.getAppliedObjectFlavors(dmsObject);\n this.appliedFlavors = res.applied;\n this.applicableFlavors = res.applicable;\n }\n\n cancel() {\n if (this.#overlayRef) this.#overlayRef.close();\n }\n\n ngOnInit() {\n this.#refreshDmsObject();\n }\n}\n","<header>\n <h2>{{ 'yuv.shell.action.manage-flavors.title' | translate }}</h2>\n <p>{{ 'yuv.shell.action.manage-flavors.text' | translate }}</p>\n</header>\n<main [yuvBusyOverlay]=\"busy()\">\n @if (appliedFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applied.headline' | translate }}</h3>\n <ul>\n @for (f of appliedFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button class=\"secondary\" (click)=\"removeFlavor(f)\">{{ 'yuv.shell.action.manage-flavors.applicable.button.remove' | translate }}</button>\n </li>\n }\n </ul>\n }\n @if (applicableFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applicable.headline' | translate }}</h3>\n <ul>\n @for (f of applicableFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button class=\"secondary\" (click)=\"applyFlavor(f)\">{{ 'yuv.shell.action.manage-flavors.applied.button.apply' | translate }}</button>\n </li>\n }\n </ul>\n }\n</main>\n<footer>\n <button class=\"secondary\" (click)=\"cancel()\">{{ 'yuv.shell.action.manage-flavors.button.cancel' | translate }}</button>\n</footer>\n","import { inject } from '@angular/core';\nimport { DmsObject, TranslateService } from '@yuuvis/client-core';\nimport { AbstractContextAction, Action, ACTION_ICON, ActionSupport, BASE_ACTION, SelectionRange } from '@yuuvis/client-framework/actions';\nimport { ShellService } from '@yuuvis/client-shell-core';\nimport { YvcOverlayService } from '@yuuvis/components/overlay';\nimport { Observable, of } from 'rxjs';\nimport { ManageFlavorsComponent } from './manage-flavors.component';\n\nexport class ManageFlavorsAction extends AbstractContextAction implements Action {\n #shell = inject(ShellService);\n #overlay = inject(YvcOverlayService);\n private translate = inject(TranslateService);\n\n id = 'yuv.base.manage-flavor';\n label = this.translate.instant('yuv.shell.action.manage-flavor.label');\n description = this.translate.instant('yuv.shell.action.manage-flavor.description');\n priority = 8;\n icon = ACTION_ICON.manageFlavor;\n group = 'common';\n range = SelectionRange.SINGLE_SELECT;\n supports: ActionSupport = {\n pattern: '*'\n };\n\n isExecutable(items: DmsObject[]) {\n const item = items[0];\n return of(item && !!item.permissions?.writeIndexData && !!item.content && this.#shell.getApplicableObjectFlavors(item.content.mimeType).length > 0);\n }\n\n run(items: DmsObject[]): Observable<boolean> {\n this.#overlay.open(ManageFlavorsComponent, items[0], {\n width: '400px',\n maxWidth: '90vw',\n });\n return of(true);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","map","i1","i2","tap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAOa,cAAc,CAAA;AAKzB,IAAA,WAAA,GAAA;AAJQ,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAEnC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,KAAK,CAAC,CAAC;QAG5B,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,EAAE,GAAgB,IAAI,CAAC,KAAK,CAAC,aAA4B,CAAC;YAChE,IAAI,IAAI,CAAC,KAAK,EAAE;AAAE,gBAAA,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;;AAC9C,gBAAA,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AACnC,SAAC,CAAC,CAAC;KACJ;+GAXU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA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AAA,GAAG,CAAC,CAAC;AACb,QAAA,IAAA,CAAA,IAAI,GAAG,WAAW,CAAC,YAAY,CAAC;QAChC,IAAK,CAAA,KAAA,GAAG,QAAQ,CAAC;AACjB,QAAA,IAAA,CAAA,KAAK,GAAG,cAAc,CAAC,aAAa,CAAC;AACrC,QAAA,IAAA,CAAA,QAAQ,GAAkB;AACxB,YAAA,OAAO,EAAE,GAAG;SACb,CAAC;KAcH;AA3BC,IAAA,MAAM,CAAwB;AAC9B,IAAA,QAAQ,CAA6B;AAcrC,IAAA,YAAY,CAAC,KAAkB,EAAA;AAC7B,QAAA,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AACtB,QAAA,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;KACrJ;AAED,IAAA,GAAG,CAAC,KAAkB,EAAA;QACpB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;AACnD,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,QAAQ,EAAE,MAAM;AACjB,SAAA,CAAC,CAAC;AACH,QAAA,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;KACjB;AACF;;ACpCD;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DmsObject } from '@yuuvis/client-core';
|
|
2
|
+
import { AbstractContextAction, Action, ActionSupport, SelectionRange } from '@yuuvis/client-framework/actions';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare class ManageFlavorsAction extends AbstractContextAction implements Action {
|
|
5
|
+
#private;
|
|
6
|
+
private translate;
|
|
7
|
+
id: string;
|
|
8
|
+
label: any;
|
|
9
|
+
description: any;
|
|
10
|
+
priority: number;
|
|
11
|
+
icon: string;
|
|
12
|
+
group: string;
|
|
13
|
+
range: SelectionRange;
|
|
14
|
+
supports: ActionSupport;
|
|
15
|
+
isExecutable(items: DmsObject[]): Observable<boolean>;
|
|
16
|
+
run(items: DmsObject[]): Observable<boolean>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DmsObject } from '@yuuvis/client-core';
|
|
3
|
+
import { ObjectFlavor } from '@yuuvis/client-shell-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ManageFlavorsComponent implements OnInit {
|
|
6
|
+
#private;
|
|
7
|
+
item: DmsObject;
|
|
8
|
+
busy: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
appliedFlavors: ObjectFlavor[];
|
|
10
|
+
applicableFlavors: ObjectFlavor[];
|
|
11
|
+
applyFlavor(flavor: ObjectFlavor): void;
|
|
12
|
+
removeFlavor(flavor: ObjectFlavor): void;
|
|
13
|
+
cancel(): void;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManageFlavorsComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManageFlavorsComponent, "yuv-manage-flavors", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"yuc.shell.settings.client.version": "Client Version",
|
|
3
|
+
"yuv.shell.action.manage-flavor.description": "",
|
|
4
|
+
"yuv.shell.action.manage-flavor.label": "Typen verwalten",
|
|
5
|
+
"yuv.shell.action.manage-flavors.applicable.button.remove": "Entfernen",
|
|
6
|
+
"yuv.shell.action.manage-flavors.applicable.headline": "Anwendbare Typen",
|
|
7
|
+
"yuv.shell.action.manage-flavors.applied.button.apply": "Anwenden",
|
|
8
|
+
"yuv.shell.action.manage-flavors.applied.headline": "Angewendete Typen",
|
|
9
|
+
"yuv.shell.action.manage-flavors.button.cancel": "Abbrechen",
|
|
10
|
+
"yuv.shell.action.manage-flavors.text": "Dies sind die Typen, die für das aktuelle Objekt angewendet oder verfügbar sind",
|
|
11
|
+
"yuv.shell.action.manage-flavors.title": "Typen verwalten",
|
|
12
|
+
"yuv.shell.cmd.app.open": "'{{title}}' öffnen",
|
|
13
|
+
"yuv.shell.cmd.logout": "Abmelden",
|
|
14
|
+
"yuv.shell.cmd.open.notifications": "Benachrichtigungen öffnen",
|
|
15
|
+
"yuv.shell.cmd.open.settings": "Einstellungen öffnen",
|
|
16
|
+
"yuv.shell.cmd.theme.toggle": "Dunkles/Helles Theme",
|
|
17
|
+
"yuv.shell.logo.aria.label": "Yuuvis",
|
|
18
|
+
"yuv.shell.naviagtion.aria.label": "",
|
|
19
|
+
"yuv.shell.notifications.button.remove.all": "Alle entfernen",
|
|
20
|
+
"yuv.shell.notifications.empty": "Keine Benachrichtigungen",
|
|
21
|
+
"yuv.shell.notifications.title": "Benachrichtigungen",
|
|
22
|
+
"yuv.shell.settings.accentcolor": "Akzentfarbe",
|
|
23
|
+
"yuv.shell.settings.language": "Sprache",
|
|
24
|
+
"yuv.shell.settings.reset": "Zurücksetzen",
|
|
25
|
+
"yuv.shell.settings.tenant": "Mandant",
|
|
26
|
+
"yuv.shell.settings.theme": "Theme",
|
|
27
|
+
"yuv.shell.settings.theme.dark": "Dunkel",
|
|
28
|
+
"yuv.shell.settings.theme.light": "Hell",
|
|
29
|
+
"yuv.shell.settings.title": "Einstellungen"
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"yuc.shell.settings.client.version": "Client version",
|
|
3
|
+
"yuv.shell.action.manage-flavor.description": "",
|
|
4
|
+
"yuv.shell.action.manage-flavor.label": "Manage types",
|
|
5
|
+
"yuv.shell.action.manage-flavors.applicable.button.remove": "Remove",
|
|
6
|
+
"yuv.shell.action.manage-flavors.applicable.headline": "Applicable types",
|
|
7
|
+
"yuv.shell.action.manage-flavors.applied.button.apply": "Apply",
|
|
8
|
+
"yuv.shell.action.manage-flavors.applied.headline": "Applied types",
|
|
9
|
+
"yuv.shell.action.manage-flavors.button.cancel": "Cancel",
|
|
10
|
+
"yuv.shell.action.manage-flavors.text": "These are the types that are applied or available for the current object.",
|
|
11
|
+
"yuv.shell.action.manage-flavors.title": "Manage types",
|
|
12
|
+
"yuv.shell.cmd.app.open": "Open '{{title}}'",
|
|
13
|
+
"yuv.shell.cmd.logout": "Log out",
|
|
14
|
+
"yuv.shell.cmd.open.notifications": "Open notifications",
|
|
15
|
+
"yuv.shell.cmd.open.settings": "Open settings",
|
|
16
|
+
"yuv.shell.cmd.theme.toggle": "Dark/light theme",
|
|
17
|
+
"yuv.shell.logo.aria.label": "yuuvis",
|
|
18
|
+
"yuv.shell.naviagtion.aria.label": "",
|
|
19
|
+
"yuv.shell.notifications.button.remove.all": "Remove all",
|
|
20
|
+
"yuv.shell.notifications.empty": "No notifications",
|
|
21
|
+
"yuv.shell.notifications.title": "Notifications",
|
|
22
|
+
"yuv.shell.settings.accentcolor": "Accent color",
|
|
23
|
+
"yuv.shell.settings.language": "Language",
|
|
24
|
+
"yuv.shell.settings.reset": "Reset",
|
|
25
|
+
"yuv.shell.settings.tenant": "Tenant",
|
|
26
|
+
"yuv.shell.settings.theme": "Theme",
|
|
27
|
+
"yuv.shell.settings.theme.dark": "Dark",
|
|
28
|
+
"yuv.shell.settings.theme.light": "Light",
|
|
29
|
+
"yuv.shell.settings.title": "Settings"
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { OnInit, Signal } from '@angular/core';
|
|
2
|
+
import { YuvUser } from '@yuuvis/client-core';
|
|
3
|
+
import { App, ClientShellConfig, ShellNotificationLevel } from '@yuuvis/client-shell-core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ClientShellComponent implements OnInit {
|
|
6
|
+
#private;
|
|
7
|
+
private router;
|
|
8
|
+
private auth;
|
|
9
|
+
private userService;
|
|
10
|
+
private shellNotifications;
|
|
11
|
+
private translate;
|
|
12
|
+
private commandPalette;
|
|
13
|
+
private APP_LOGOUT_EVENT_KEY;
|
|
14
|
+
private _levels;
|
|
15
|
+
showUploadOverlay: boolean;
|
|
16
|
+
busy$: import("rxjs").Observable<boolean>;
|
|
17
|
+
context?: string;
|
|
18
|
+
showNotifications: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
+
newNotifications: Signal<{
|
|
20
|
+
count: number;
|
|
21
|
+
maxLevel: ShellNotificationLevel;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
onFocusChange(event: FocusEvent): void;
|
|
24
|
+
onDragOver(event: DragEvent): void;
|
|
25
|
+
apps: import("@angular/core").InputSignal<App[]>;
|
|
26
|
+
user?: YuvUser;
|
|
27
|
+
checkedForInitialRoute: boolean;
|
|
28
|
+
enableTenantSwitch: boolean;
|
|
29
|
+
config: import("@angular/core").InputSignal<ClientShellConfig | undefined>;
|
|
30
|
+
shellConfig: import("@angular/core").WritableSignal<ClientShellConfig>;
|
|
31
|
+
constructor();
|
|
32
|
+
openNotifications(): void;
|
|
33
|
+
private _dragContainsFiles;
|
|
34
|
+
private _setCommands;
|
|
35
|
+
requestSubscription(): void;
|
|
36
|
+
appLogout(triggeredFromOtherTab?: boolean): void;
|
|
37
|
+
private _processRouterNavigationEnd;
|
|
38
|
+
private routeWithBaseHref;
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClientShellComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClientShellComponent, "yuv-client-shell", never, { "apps": { "alias": "apps"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AppLogoComponent {
|
|
3
|
+
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
4
|
+
label: import("@angular/core").InputSignal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppLogoComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppLogoComponent, "yuv-app-logo", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InertDirective {
|
|
3
|
+
private elRef;
|
|
4
|
+
inert: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InertDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InertDirective, "[inert]", never, { "inert": { "alias": "inert"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DashboardPageComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPageComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardPageComponent, "yuv-dashboard", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NotificationsPageComponent implements OnInit {
|
|
4
|
+
private router;
|
|
5
|
+
private shellNotifications;
|
|
6
|
+
private elRef;
|
|
7
|
+
private _focusedIndex;
|
|
8
|
+
private _notificationIDs;
|
|
9
|
+
notifications: import("@angular/core").Signal<(import("@yuuvis/client-shell-core").ShellNotification & {
|
|
10
|
+
id: string;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
seen: boolean;
|
|
13
|
+
})[] | undefined>;
|
|
14
|
+
notificationsIdEffect: import("@angular/core").EffectRef;
|
|
15
|
+
icons: {
|
|
16
|
+
close: string;
|
|
17
|
+
trash: any;
|
|
18
|
+
note: any;
|
|
19
|
+
};
|
|
20
|
+
onKeydown(event: KeyboardEvent): void;
|
|
21
|
+
itemSelected(idx: number[]): Promise<void>;
|
|
22
|
+
itemFocused(index: number): void;
|
|
23
|
+
remove(id: string): void;
|
|
24
|
+
removeAll(): void;
|
|
25
|
+
close(): Promise<boolean>;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsPageComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsPageComponent, "yuv-notifications", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit, Signal } from '@angular/core';
|
|
2
|
+
import { TranslateService, YuvConfigLanguages, YuvUser } from '@yuuvis/client-core';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { ShellAppSettingProperty } from '@yuuvis/client-shell-core';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SettingsPageComponent implements OnInit {
|
|
8
|
+
#private;
|
|
9
|
+
private userService;
|
|
10
|
+
private config;
|
|
11
|
+
translate: TranslateService;
|
|
12
|
+
private shell;
|
|
13
|
+
readonly document: Document;
|
|
14
|
+
clientLocales: import("@angular/core").WritableSignal<YuvConfigLanguages[]>;
|
|
15
|
+
clientVersion: import("@angular/core").WritableSignal<string | undefined>;
|
|
16
|
+
user: Signal<YuvUser | undefined>;
|
|
17
|
+
appSettingForms$: Observable<{
|
|
18
|
+
appID: string;
|
|
19
|
+
label: string;
|
|
20
|
+
formControls: ShellAppSettingProperty[];
|
|
21
|
+
form: FormGroup;
|
|
22
|
+
}[]>;
|
|
23
|
+
saveAppSettings(appID: string, form: FormGroup): void;
|
|
24
|
+
changeClientLocale(iso: string): void;
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPageComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsPageComponent, "yuv-settings", never, {}, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WebShareTargetPageComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebShareTargetPageComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WebShareTargetPageComponent, "yuv-web-share-target", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yuuvis/client-shell",
|
|
3
|
+
"author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"version": "0.6.5",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@angular/common": "^18.2.0",
|
|
8
|
+
"@angular/core": "^18.2.0",
|
|
9
|
+
"@angular/service-worker": "^18.2.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@yuuvis/client-core": "0.6.5",
|
|
13
|
+
"@yuuvis/client-framework": "0.6.5",
|
|
14
|
+
"@yuuvis/client-shell-core": "0.6.5",
|
|
15
|
+
"@yuuvis/styles": "latest",
|
|
16
|
+
"@yuuvis/components": "18.1.12",
|
|
17
|
+
"@yuuvis/widget-grid": "^18.1.0",
|
|
18
|
+
"tslib": "^2.6.2"
|
|
19
|
+
},
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"module": "fesm2022/yuuvis-client-shell.mjs",
|
|
22
|
+
"typings": "index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
"./package.json": {
|
|
25
|
+
"default": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./index.d.ts",
|
|
29
|
+
"esm2022": "./esm2022/yuuvis-client-shell.mjs",
|
|
30
|
+
"esm": "./esm2022/yuuvis-client-shell.mjs",
|
|
31
|
+
"default": "./fesm2022/yuuvis-client-shell.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./widget-dashboard": {
|
|
34
|
+
"types": "./widget-dashboard/index.d.ts",
|
|
35
|
+
"esm2022": "./esm2022/widget-dashboard/yuuvis-client-shell-widget-dashboard.mjs",
|
|
36
|
+
"esm": "./esm2022/widget-dashboard/yuuvis-client-shell-widget-dashboard.mjs",
|
|
37
|
+
"default": "./fesm2022/yuuvis-client-shell-widget-dashboard.mjs"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @yuuvis/client-shell/widget-dashboard
|
|
2
|
+
|
|
3
|
+
Lazy loadable module providing a configurable dashboard for your yuuvis client-shell application. In your `app-routing.module.ts` you can overwrite the existing `dashboard` route of the shell and provide the widget dashboard instead:
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
export const apps: App[] = [...];
|
|
7
|
+
export const additionalRoutes: Route[] = [
|
|
8
|
+
{
|
|
9
|
+
path: 'dashboard',
|
|
10
|
+
loadChildren: () => import('@yuuvis/client-shell/widget-dashboard').then(m => m.YuvWidgetDashboardModule)
|
|
11
|
+
},
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
@NgModule({
|
|
15
|
+
imports: [RouterModule.forRoot([...apps, ...additionalRoutes])],
|
|
16
|
+
exports: [RouterModule]
|
|
17
|
+
})
|
|
18
|
+
export class AppRoutingModule { }
|
|
19
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WidgetDashboardConfig } from './widget-dashboard.config';
|
|
2
|
+
import { GridItemEvent, WidgetGridItemConfig, WidgetGridWorkspaceConfig } from '@yuuvis/widget-grid';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WidgetDashboardPageComponent {
|
|
5
|
+
config: WidgetDashboardConfig | undefined;
|
|
6
|
+
workspaceConfig?: WidgetGridWorkspaceConfig;
|
|
7
|
+
gridItemConfig: WidgetGridItemConfig[];
|
|
8
|
+
editMode: boolean;
|
|
9
|
+
constructor(config: WidgetDashboardConfig | undefined);
|
|
10
|
+
onGridEvent(e: GridItemEvent): void;
|
|
11
|
+
onGridChange(e: WidgetGridItemConfig[]): void;
|
|
12
|
+
onWorkspacesConfigChange(e: WidgetGridWorkspaceConfig): void;
|
|
13
|
+
private _saveConfig;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetDashboardPageComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetDashboardPageComponent, "yuv-widget-dashboard", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WidgetDashboardConfig } from './widget-dashboard.config';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./widget-dashboard.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@yuuvis/widget-grid";
|
|
6
|
+
import * as i4 from "@angular/router";
|
|
7
|
+
export declare function ConfigFactory(): WidgetDashboardConfig | undefined;
|
|
8
|
+
export declare class YuvWidgetDashboardModule {
|
|
9
|
+
static config?: WidgetDashboardConfig;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YuvWidgetDashboardModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YuvWidgetDashboardModule, [typeof i1.WidgetDashboardPageComponent], [typeof i2.CommonModule, typeof i3.YuvWidgetGridModule, typeof i4.RouterModule], [typeof i1.WidgetDashboardPageComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<YuvWidgetDashboardModule>;
|
|
13
|
+
}
|