@yuuvis/client-shell-core 2.20.1 → 3.0.0-beta.20.1

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.
Files changed (72) hide show
  1. package/esm2022/index.js +15 -0
  2. package/esm2022/index.js.map +1 -0
  3. package/esm2022/lib/client-shell.assets.js +12 -0
  4. package/esm2022/lib/client-shell.assets.js.map +1 -0
  5. package/esm2022/lib/models/client-shell.interface.js +5 -0
  6. package/esm2022/lib/models/client-shell.interface.js.map +1 -0
  7. package/esm2022/lib/services/command-palette/command-palette/command-palette.component.js +94 -0
  8. package/esm2022/lib/services/command-palette/command-palette/command-palette.component.js.map +1 -0
  9. package/esm2022/lib/services/command-palette/command-palette.interface.js +2 -0
  10. package/esm2022/lib/services/command-palette/command-palette.interface.js.map +1 -0
  11. package/esm2022/lib/services/command-palette/command-palette.service.js +120 -0
  12. package/esm2022/lib/services/command-palette/command-palette.service.js.map +1 -0
  13. package/esm2022/lib/services/feature/feature.guard.js +9 -0
  14. package/esm2022/lib/services/feature/feature.guard.js.map +1 -0
  15. package/esm2022/lib/services/feature/feature.interface.js +2 -0
  16. package/esm2022/lib/services/feature/feature.interface.js.map +1 -0
  17. package/esm2022/lib/services/feature/feature.providers.js +14 -0
  18. package/esm2022/lib/services/feature/feature.providers.js.map +1 -0
  19. package/esm2022/lib/services/feature/feature.service.js +141 -0
  20. package/esm2022/lib/services/feature/feature.service.js.map +1 -0
  21. package/esm2022/lib/services/feature/index.js +5 -0
  22. package/esm2022/lib/services/feature/index.js.map +1 -0
  23. package/esm2022/lib/services/shell/noop.extension.js +13 -0
  24. package/esm2022/lib/services/shell/noop.extension.js.map +1 -0
  25. package/esm2022/lib/services/shell/requirements.parser.js +7 -0
  26. package/esm2022/lib/services/shell/requirements.parser.js.map +1 -0
  27. package/esm2022/lib/services/shell/shell.bootstrap.js +84 -0
  28. package/esm2022/lib/services/shell/shell.bootstrap.js.map +1 -0
  29. package/esm2022/lib/services/shell/shell.providers.js +20 -0
  30. package/esm2022/lib/services/shell/shell.providers.js.map +1 -0
  31. package/esm2022/lib/services/shell/shell.service.js +455 -0
  32. package/esm2022/lib/services/shell/shell.service.js.map +1 -0
  33. package/esm2022/lib/services/shell-config/shell-config.const.js +17 -0
  34. package/esm2022/lib/services/shell-config/shell-config.const.js.map +1 -0
  35. package/esm2022/lib/services/shell-config/shell-config.interface.js +2 -0
  36. package/esm2022/lib/services/shell-config/shell-config.interface.js.map +1 -0
  37. package/esm2022/lib/services/shell-config/shell-config.service.js +100 -0
  38. package/esm2022/lib/services/shell-config/shell-config.service.js.map +1 -0
  39. package/esm2022/lib/services/shell-notifications/shell-notifications.interface.js +2 -0
  40. package/esm2022/lib/services/shell-notifications/shell-notifications.interface.js.map +1 -0
  41. package/esm2022/lib/services/shell-notifications/shell-notifications.service.js +84 -0
  42. package/esm2022/lib/services/shell-notifications/shell-notifications.service.js.map +1 -0
  43. package/esm2022/lib/tile-extension.interface.js +2 -0
  44. package/esm2022/lib/tile-extension.interface.js.map +1 -0
  45. package/esm2022/yuuvis-client-shell-core.js +5 -0
  46. package/esm2022/yuuvis-client-shell-core.js.map +1 -0
  47. package/lib/services/command-palette/command-palette/command-palette.component.d.ts +2 -2
  48. package/package.json +10 -10
  49. package/yuuvis-client-shell-core.d.ts +5 -0
  50. package/esm2022/index.mjs +0 -15
  51. package/esm2022/lib/client-shell.assets.mjs +0 -12
  52. package/esm2022/lib/models/client-shell.interface.mjs +0 -5
  53. package/esm2022/lib/services/command-palette/command-palette/command-palette.component.mjs +0 -101
  54. package/esm2022/lib/services/command-palette/command-palette.interface.mjs +0 -2
  55. package/esm2022/lib/services/command-palette/command-palette.service.mjs +0 -120
  56. package/esm2022/lib/services/feature/feature.guard.mjs +0 -9
  57. package/esm2022/lib/services/feature/feature.interface.mjs +0 -2
  58. package/esm2022/lib/services/feature/feature.providers.mjs +0 -14
  59. package/esm2022/lib/services/feature/feature.service.mjs +0 -141
  60. package/esm2022/lib/services/feature/index.mjs +0 -5
  61. package/esm2022/lib/services/shell/noop.extension.mjs +0 -13
  62. package/esm2022/lib/services/shell/requirements.parser.mjs +0 -7
  63. package/esm2022/lib/services/shell/shell.bootstrap.mjs +0 -84
  64. package/esm2022/lib/services/shell/shell.providers.mjs +0 -20
  65. package/esm2022/lib/services/shell/shell.service.mjs +0 -456
  66. package/esm2022/lib/services/shell-config/shell-config.const.mjs +0 -17
  67. package/esm2022/lib/services/shell-config/shell-config.interface.mjs +0 -2
  68. package/esm2022/lib/services/shell-config/shell-config.service.mjs +0 -100
  69. package/esm2022/lib/services/shell-notifications/shell-notifications.interface.mjs +0 -2
  70. package/esm2022/lib/services/shell-notifications/shell-notifications.service.mjs +0 -84
  71. package/esm2022/lib/tile-extension.interface.mjs +0 -2
  72. package/esm2022/yuuvis-client-shell-core.mjs +0 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell.service.js","sourceRoot":"","sources":["../../../../../../../../libs/yuuvis/client-shell-core/src/lib/services/shell/shell.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAQ,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAgB,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAc,aAAa,EAAE,MAAM,EAA4B,MAAM,iBAAiB,CAAC;AAC9G,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,aAAa,EAEb,UAAU,EAEV,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,KAAK,EAEN,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,YAAY,EACZ,MAAM,EACN,KAAK,EACL,cAAc,EACd,SAAS,EACT,GAAG,EAEH,EAAE,EACF,GAAG,EACJ,MAAM,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iBAC1C,CAAC,CAAC,CAAC;gBACJ,IAAI,CAAC,mBAAmB,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;YACpD,CAAC;QACH,CAAC,CAAC,CACH,CACF,CAAC;IACJ,CAAC;IAED,wBAAwB,CAAC,GAAa;QACpC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE;YAChD,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE;gBACjB,kFAAkF;gBAClF,MAAM,QAAQ,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAC/B,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBAC1B,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAAE,CAAC;oBAC5G,IAAI,CAAC,aAAa,CAAC,qBAAqB,CACtC,QAAQ,CAAC,CAAC,CAAC,EACX,QAAQ,CAAC,CAAC,CAAC,EACX,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,GAAG,CAAC,CACpD,CAAC;gBACJ,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED,KAAK;QACH,wCAAwC;IAC1C,CAAC;+GAzeU,YAAY;mHAAZ,YAAY,cAFX,MAAM;;4FAEP,YAAY;kBAHxB,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["\nimport { inject, Injectable, signal, Type, DOCUMENT } from '@angular/core';\nimport { MatDialog, MatDialogRef } from '@angular/material/dialog';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { ActivatedRoute, Navigation, NavigationEnd, Router, UrlSegmentGroup, UrlTree } from '@angular/router';\nimport {\n ApiBase,\n BaseObjectTypeField,\n ConfigService,\n DmsObject,\n DmsService,\n ObjectCreateFlavor,\n SystemService,\n SystemType,\n TranslateService,\n UserService,\n Utils,\n YuvUser\n} from '@yuuvis/client-core';\nimport {\n BehaviorSubject,\n debounceTime,\n filter,\n first,\n firstValueFrom,\n fromEvent,\n map,\n Observable,\n of,\n tap\n} from 'rxjs';\nimport { CLIENT_SHELL_ASSETS } from '../../client-shell.assets';\nimport {\n App,\n AppFlavor,\n ClientShellConfig,\n GlobalShortcut,\n ObjectFlavor,\n ShellAppSettings\n} from '../../models/client-shell.interface';\nimport { TileExtension } from '../../tile-extension.interface';\nimport { SHELL_CONFIG_TYPES } from '../shell-config/shell-config.const';\nimport { ClientShellType, ShellConfig } from '../shell-config/shell-config.interface';\nimport { ShellConfigService } from '../shell-config/shell-config.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ShellService {\n #dmsService = inject(DmsService);\n\n #dialog = inject(MatDialog);\n #system = inject(SystemService);\n #userService = inject(UserService);\n // TODO: Need orignal MatIconRegistry to #registerObjectTypeIcons, otherwise icons could not be registered in the namespace\n // #iconRegistry = inject(YuvMatIconRegistry);\n #iconRegistry = inject(MatIconRegistry);\n #shellConfig = inject(ShellConfigService);\n #configService = inject(ConfigService);\n #sanitizer = inject(DomSanitizer);\n #router = inject(Router);\n #route = inject(ActivatedRoute);\n #DOCUMENT = inject(DOCUMENT);\n private translate = inject(TranslateService);\n\n private _busyCount = 0;\n private isBusySubject = new BehaviorSubject<boolean>(false);\n isBusy$ = this.isBusySubject.asObservable().pipe(debounceTime(500));\n\n // Apps can register their own setting components to be shown in shell settings\n #appSettings = signal<ShellAppSettings[]>([]);\n appSettings = this.#appSettings.asReadonly();\n\n appBaseRoutes: Record<string, string> = {};\n\n #defaultShellConfig: ClientShellConfig = {\n appIcon: CLIENT_SHELL_ASSETS.appIcon,\n shellIconNamespace: CLIENT_SHELL_ASSETS.shellIconNamespace\n };\n shellConfig = signal<ClientShellConfig>(this.#defaultShellConfig);\n apps = signal<App[]>([]);\n\n /** TODO: implement this feature ????\n * Global shortcuts are captured by the shell to provide a consistent experience\n * accross all apps. Search is one example. Apps should not define their own shourtcuts\n * for search. Instead they should subscribe to the global shortcuts and initialize their\n * search based on the global search shortcut.\n */\n globalShortcuts$: Observable<GlobalShortcut> = fromEvent<KeyboardEvent>(document, 'keydown').pipe(\n map((e: KeyboardEvent) => {\n // global shortcut for search\n // if (e.ctrlKey && e.code === 'KeyF') {\n // e.preventDefault();\n // return GlobalShortcut.search;\n // }\n return undefined;\n }),\n filter((s: GlobalShortcut | undefined) => s !== undefined),\n map((s) => s as GlobalShortcut)\n );\n\n private _extensions: Record<string, TileExtension> = {};\n private _objectFlavors: ObjectFlavor[] = [];\n private _objectCreateFlavors: ObjectCreateFlavor[] = [];\n\n constructor() {\n this.translate.onLangChange.subscribe(() => {\n this.apps.set(this.#getMappedApps(this.apps()));\n });\n\n // track open dialogs in an auxillary route to support closing them on back navigation\n // as this is the expected behaviour on mobile devices\n this.#dialog.afterOpened.subscribe((ref: MatDialogRef<any, any>) => {\n this.#router.navigate([{ outlets: { dt: ['dialogs', this.#dialog.openDialogs.map((d, i) => i).join('-')] } }], {\n // replaceUrl: true,\n queryParamsHandling: 'preserve'\n });\n ref.afterClosed().subscribe((res) => {\n if (res?.closedByRoute) return;\n const openDialogs = this.#dialog.openDialogs.filter((d) => d.id !== ref.id);\n // having no open dialogs, clear the auxillary route\n const param = openDialogs.length > 0 ? ['dialogs', openDialogs.map((d, i) => i).join('-')] : null;\n this.#router.navigate([{ outlets: { dt: param } }], { replaceUrl: true, queryParamsHandling: 'preserve' });\n });\n });\n this.#router.events.pipe(filter((e) => e instanceof NavigationEnd)).subscribe((e) => {\n // when navigating and having no open dialogs, clear the auxillary route from the url\n if (this.#dialog.openDialogs.length === 0 && e.urlAfterRedirects.match(/(dt:[.]*)/)) {\n this.#router.navigate([{ outlets: { dt: null } }], { replaceUrl: true, queryParamsHandling: 'preserve' });\n }\n\n // if there are open dialogs and the primary route changed, close all open dialogs\n if (this.#dialog.openDialogs.length > 0) {\n if (this.primaryRouteChanged(this.#router.currentNavigation())) {\n this.#dialog.openDialogs.forEach((d) => d.close());\n }\n }\n });\n }\n\n #getPrimaryRoute(nav: Navigation | null): string | undefined {\n if (!nav) return undefined;\n const url: UrlTree = nav.finalUrl || nav.extractedUrl;\n const urlTreeChildren: UrlSegmentGroup | undefined = url.root.children['primary'];\n return urlTreeChildren ? urlTreeChildren.segments.map((s) => s.path).join('/') : undefined;\n }\n\n primaryRouteChanged(nav: Navigation | null): boolean {\n const previousNav = nav?.previousNavigation || null;\n return this.#getPrimaryRoute(nav) !== this.#getPrimaryRoute(previousNav);\n }\n\n pickFile(): Observable<File | null> {\n const input = this.#DOCUMENT.createElement('input');\n input.type = 'file';\n input.click();\n return fromEvent(input, 'change').pipe(\n map((e: Event) => (e.target as HTMLInputElement).files?.[0] || null),\n tap(() => {\n input.remove();\n })\n );\n }\n\n setShellConfig(csc: ClientShellConfig) {\n this.shellConfig.update((sc) => ({\n appIcon: csc.appIcon ?? sc.appIcon,\n shellIconNamespace: csc.shellIconNamespace ?? sc.shellIconNamespace\n }));\n }\n\n setApps(apps: App[]) {\n this.apps.set(this.#getMappedApps(apps));\n const appBaseRoutes: Record<string, string> = {};\n apps.forEach((a) => (appBaseRoutes[a.id] = a.path || ''));\n this.appBaseRoutes = appBaseRoutes;\n }\n\n #getMappedApps(apps: App[]): App[] {\n return apps.map((a) => {\n const ma = {\n ...a,\n title: this.#getAppTitle(a)\n };\n if (a.options?.appClaimKey) {\n ma.options = { ...ma.options, appClaim: this.#getAppClaim(a.options.appClaimKey) || a.options.appClaim };\n }\n return ma;\n });\n }\n\n #getAppTitle(a: App): string {\n const translatedTitle = this.translate.instant(a.id);\n return translatedTitle && !translatedTitle.startsWith('!missing') ? translatedTitle : (a.title as string) || '';\n }\n\n #getAppClaim(claimKey: string): string | undefined {\n const translatedClaim = this.translate.instant(claimKey);\n return translatedClaim && !translatedClaim.startsWith('!missing') ? translatedClaim : undefined;\n }\n\n getApp(id: string): App | undefined {\n return this.apps().find((a) => id === a.id);\n }\n\n getApps(ids: string[] = []): App[] {\n return ids.length ? this.apps().filter((a) => ids.includes(a.id)) : this.apps();\n }\n\n /**\n * Register settings for apps to hook into shell settings page.\n * @param appID ID of the app that exposes the settings\n * @param cfg ShellAppSettings object containing the settings component\n */\n registerAppSettings(cfg: ShellAppSettings) {\n this.#appSettings.set([...this.#appSettings(), cfg]);\n }\n\n /**\n * Load persisted settings for a specific app\n * @param appID ID of the app to load the settings for\n */\n usersAppSettings$(appID: string): Observable<ShellAppSettings | undefined> {\n return this.#userService.user$.pipe(\n map((u: YuvUser | undefined) => {\n return u && u.userSettings.clientAppSettings ? u.userSettings.clientAppSettings[appID] : undefined;\n })\n );\n }\n\n saveUsersAppSettings(appID: string, settings: ShellAppSettings): Observable<any> {\n return this.#userService.saveUserSettings({ clientAppSettings: { [appID]: settings } });\n }\n\n addBusy() {\n if (this._busyCount === 0) {\n this.isBusySubject.next(true);\n }\n this._busyCount++;\n }\n removeBusy() {\n this._busyCount--;\n if (this._busyCount === 0) {\n this.isBusySubject.next(false);\n }\n }\n\n /**\n * Exposes object create flavors to the shell.\n * Thes flavors describe different ways of how objects can be created. So apps\n * can register custom ways of creating objects that can then be used by other apps.\n * @param flavors Create flavors to be exposed\n */\n exposeObjectCreateFlavors(flavors: ObjectCreateFlavor[]) {\n flavors.forEach((flavor: ObjectCreateFlavor) => {\n const idx = this._objectCreateFlavors.findIndex((f) => f.id === flavor.id);\n if (idx === -1) this._objectCreateFlavors.push(flavor);\n });\n }\n\n /**\n * Remove object create flavors from the shells registry\n * @param flavors Create flavors to be removed\n */\n concealObjectCreateFlavors(flavors: ObjectCreateFlavor[]) {\n const fid = flavors.map((f) => f.id);\n this._objectCreateFlavors = this._objectCreateFlavors.filter((f) => !fid.includes(f.id));\n }\n\n /**\n * Get all registerd object create flavors\n */\n getObjectCreateFlavors(): ObjectCreateFlavor[] {\n return this._objectCreateFlavors;\n }\n\n /**\n * Exposes a list of object flavors to the shell.\n * Flavors are able to be applied to objects and add new metadata properties to them.\n * @param flavors Array of flavors to be exposed\n * @param app Optional ID of the app that exposes the flavors (defaults to 'global' if not provided)\n * @param origin Optional origin of the flavors. Flavors could be added by apps or derived\n * from a configuration (defaults to 'app' if not provided)\n */\n exposeObjectFlavors(flavors: AppFlavor[], app = 'global', origin: 'app' | 'config' = 'app') {\n flavors.forEach((f) => this.exposeObjectFlavor(f, app, origin));\n }\n\n /**\n * Removes exposed object flavors from the shell.\n * @param flavors Array of flavors to be concealed\n */\n concealObjectFlavors(flavors: AppFlavor[], app = 'global') {\n flavors.forEach((f) => this.concealObjectFlavor(f, app));\n }\n\n /**\n * Exposes an object flavor to the shell. Flavors are able to be applied to objects\n * in order to add a new aspect to them. An object containing an image for example could\n * be added a flavor of 'EXIF Data' that will add the corresponding SOT to it. This way the\n * object gets new metadata properties. If supported, these metadata could even be extracted\n * from the file and filled out automatically.\n * @param flavor The flavor object to be exposed\n * @param app Optional ID of the app that exposes the flavor (defaults to 'global' if not provided)\n * @param origin Optional origin of the flavors. Flavors could be added by apps or derived\n * from a configuration (defaults to 'app' if not provided)\n */\n exposeObjectFlavor(flavor: AppFlavor, app = 'global', origin: 'app' | 'config' = 'app') {\n const idx = this._objectFlavors.findIndex((f) => f.id === flavor.id && f.app === app);\n if (idx === -1) this._objectFlavors.push({ ...flavor, app, origin });\n }\n\n /**\n * Removes an exposed object flavor from the shell.\n * @param flavor Flavor to be concealed\n * @param app Optional ID of the app that exposes the flavor (defaults to 'global' if not provided)\n */\n concealObjectFlavor(flavor: AppFlavor, app = 'global') {\n this._objectFlavors = this._objectFlavors.filter((f) => {\n const hasSameId = f.id === flavor.id;\n const isFromSameApp = f.app === app;\n return hasSameId && isFromSameApp ? false : true;\n });\n }\n\n /**\n * Get registered object flavors\n * @param app Optional app ID that restricts the returned flavors to the ones\n * provided by a particular app. If not provided all flavors are returned\n * @returns Array of matching object flavors\n */\n getObjectFlavors(app?: string): ObjectFlavor[] {\n return app ? this._objectFlavors.filter((of) => of.app === app) : this._objectFlavors;\n }\n\n /**\n * Triggers the application of an object flavor. If the flavor has an applyComponent\n * defined, the overlay will be opened with the component. Otherwise the flavor will\n * be applied directly to the object.\n * @param dmsObject The object to apply the flavor to\n * @param flavor The flavor to apply\n * @param data Optional data to be passed to the flavor component\n * @returns Observable that emits true if the flavor was applied successfully\n */\n triggerApplyObjectFlavor(\n dmsObject: DmsObject,\n flavor: ObjectFlavor,\n data?: any,\n applyComponent?: Type<any>\n ): Observable<boolean> {\n if (flavor.preventApply) return of(false);\n if (dmsObject) {\n const ac = applyComponent || flavor.applyComponent;\n if (ac) {\n this.#dialog.open(ac, {\n maxWidth: '90vw',\n maxHeight: '90vh',\n minWidth: '50vw',\n data: {\n dmsObject,\n flavor,\n data\n }\n });\n return of(true);\n } else {\n const sots: string[] = (dmsObject.data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS] as string[]) || [];\n const data: any = {};\n data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS] = [...sots, flavor.sot];\n return this.#dmsService.updateDmsObject(dmsObject?.id, data).pipe(map(() => true));\n }\n } else return of(false);\n }\n\n removeObjectFlavor(dmsObject: DmsObject, flavor: ObjectFlavor): Observable<any> {\n if (flavor.preventRemove) return of(false);\n const data: Record<string, unknown> = {\n [BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS]: (\n dmsObject.data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS] as string[]\n ).filter((sot: string) => sot !== flavor.sot)\n };\n return this.#dmsService.updateDmsObject(dmsObject.id, data).pipe(map(() => true));\n }\n\n /**\n * Get object flavors applicable for a certain mimetype\n * @param mimeType Mime type or mime type pattern like 'image/*'\n * @param app Optional app ID that restricts the returned flavors to the ones\n * provided by a particular app\n * @param customFlavors Optional array of custom flavors to also take into account.\n * This could be flavors managed by an app itself that are not supposed to be\n * exposed to other apps\n * @returns Array of matching object flavors\n */\n getApplicableDocumentFlavors(mimeType: string, app?: string, customFlavors?: ObjectFlavor[]): ObjectFlavor[] {\n return [...(customFlavors || []), ...this._objectFlavors].filter(\n (of: ObjectFlavor) =>\n // !of.preventApply &&\n (!of.applicableTo?.folders || (of.applicableTo?.folders && of.applicableTo?.documents)) &&\n (!of.applicableTo ||\n !of.applicableTo?.mimeTypes ||\n (of.applicableTo?.mimeTypes?.some((mtp) => Utils.patternToRegExp(mtp).test(mimeType)) &&\n (!app || of.app === app)))\n );\n }\n\n getApplicableFolderFlavors(app?: string, customFlavors?: ObjectFlavor[]): ObjectFlavor[] {\n return [...(customFlavors || []), ...this._objectFlavors].filter(\n (of: ObjectFlavor) => !of.preventApply && of.applicableTo?.folders && (!app || of.app === app)\n );\n }\n\n /**\n * Get applied and applicable object flavors for a certain object\n * @param dmsObject DmsObject to get flavors for\n * @returns Object containing two arrays: applied and applicable flavors\n */\n getAppliedObjectFlavors(dmsObject: DmsObject): {\n applied: ObjectFlavor[];\n applicable: ObjectFlavor[];\n } {\n const applied: ObjectFlavor[] = [];\n const applicable: ObjectFlavor[] = [];\n if (dmsObject) {\n const sots: string[] = (dmsObject.data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS] as string[]) || [];\n if (dmsObject.content) {\n this.getApplicableDocumentFlavors(dmsObject.content.mimeType).forEach((flavor: ObjectFlavor) => {\n flavor = {\n ...flavor,\n name: this.#system.getLocalizedLabel(flavor.id) || this.translate.instant(flavor.id),\n description:\n this.#system.getLocalizedDescription(flavor.id) ||\n (flavor.descriptionKey ? this.translate.instant(flavor.descriptionKey) : undefined)\n };\n if (sots.includes(flavor.sot)) {\n applied.push(flavor);\n } else if (!flavor.preventApply) {\n applicable.push(flavor);\n }\n });\n }\n\n if (dmsObject.isFolder) {\n this.getApplicableFolderFlavors().forEach((flavor: ObjectFlavor) => {\n flavor = {\n ...flavor,\n name: this.#system.getLocalizedLabel(flavor.id) || this.translate.instant(flavor.id),\n description:\n this.#system.getLocalizedDescription(flavor.id) ||\n (flavor.descriptionKey ? this.translate.instant(flavor.descriptionKey) : undefined)\n };\n if (sots.includes(flavor.sot)) {\n applied.push(flavor);\n } else {\n applicable.push(flavor);\n }\n });\n }\n }\n return { applied, applicable };\n }\n\n getFlavorLabel(id: string) {\n return this.#system.getLocalizedLabel(id) || this.translate.instant(id);\n }\n\n applyObjectFlavor(\n dmsObject: DmsObject,\n flavor: ObjectFlavor,\n data: Record<string, unknown> = {}\n ): Observable<DmsObject> {\n const sots: string[] = (dmsObject.data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS] as string[]) || [];\n data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS] = [...sots, flavor.sot];\n return this.#dmsService.updateDmsObject(dmsObject.id, data);\n }\n\n registerTileExtension(ext: TileExtension) {\n this._extensions[ext.typeId] = ext;\n }\n\n /**\n * Get tile extensions for a certain type\n * @param typeId ID of the type to fetch extesion for (objectTypeID or secondaryObjectTypeID)\n * @returns\n */\n getRegisteredTileExtensions(): Record<string, TileExtension> {\n return this._extensions;\n }\n\n _initObjectTypeConfig(): Promise<unknown> {\n // load flavors from config\n console.debug('Loading object type config...');\n return firstValueFrom(\n this.#shellConfig.get(SHELL_CONFIG_TYPES).pipe(\n tap((res: ShellConfig | undefined) => {\n if (res) {\n this.#registerObjectTypeIcons((res.data as ClientShellType[]).map((t) => t.id));\n\n const flv: AppFlavor[] = (res.data as ClientShellType[]).map((t) => ({\n id: t.id,\n sot: t.id,\n icon: t.id,\n svgIcon: true,\n objectTypeID: t.baseType,\n applicableTo: {\n folders: t.baseType === SystemType.FOLDER || t.baseType === SystemType.OBJECT,\n documents: t.baseType === SystemType.DOCUMENT || t.baseType === SystemType.OBJECT,\n mimeTypes: t.applicableToMimeTypes || undefined\n },\n useDefaultApplyComponent: !t.instantApply\n }));\n this.exposeObjectFlavors(flv, 'global', 'config');\n }\n })\n )\n );\n }\n\n #registerObjectTypeIcons(ids: string[]) {\n this.#system.system$.pipe(first()).subscribe(() => {\n ids.forEach((id) => {\n // split technical name e.g. 'system:document' and use the first part as namespace\n const idTokens = id.split(':');\n if (idTokens.length === 2) {\n const uri = `${this.#configService.getApiBase(ApiBase.none, true)}${this.#system.getObjectTypeIconUri(id)}`;\n this.#iconRegistry.addSvgIconInNamespace(\n idTokens[0],\n idTokens[1],\n this.#sanitizer.bypassSecurityTrustResourceUrl(uri)\n );\n }\n });\n });\n }\n\n _init() {\n // the place for initialization tasks if\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { BaseObjectTypeField } from "@yuuvis/client-core";
2
+ export function getShellConfigQueryString(name, user = [], context) {
3
+ const conditions = [
4
+ `${SHELL_CONFIG_BASE.nameProperty} = '${name}'`,
5
+ ...(context ? [`system:context = '${context}'`] : []),
6
+ ...(user.length ? [`system:user IN (${user.map((u) => `'${u}'`).join(',')})`] : [])
7
+ ];
8
+ return `SELECT * FROM ${SHELL_CONFIG_BASE.objectType} WHERE ${conditions.join(' AND ')} ORDER BY ${BaseObjectTypeField.MODIFICATION_DATE} DESC`;
9
+ }
10
+ export const SHELL_CONFIG_FEATURES = 'yuv:shell:features';
11
+ export const SHELL_CONFIG_TYPES = 'yuv:shell:types';
12
+ export const SHELL_CONFIG_BASE = {
13
+ objectType: 'system:item',
14
+ secondaryObjectType: 'system:configuration',
15
+ nameProperty: 'system:name'
16
+ };
17
+ //# sourceMappingURL=shell-config.const.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-config.const.js","sourceRoot":"","sources":["../../../../../../../../libs/yuuvis/client-shell-core/src/lib/services/shell-config/shell-config.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,UAAU,yBAAyB,CAAC,IAAY,EAAE,IAAI,GAAG,EAAE,EAAE,OAAgB;IACjF,MAAM,UAAU,GAAG;QACjB,GAAG,iBAAiB,CAAC,YAAY,OAAO,IAAI,GAAG;QAC/C,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,qBAAqB,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACrD,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACpF,CAAC;IACF,OAAO,iBAAiB,iBAAiB,CAAC,UAAU,UAAU,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,mBAAmB,CAAC,iBAAiB,OAAO,CAAC;AAClJ,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AAC1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU,EAAE,aAAa;IACzB,mBAAmB,EAAE,sBAAsB;IAC3C,YAAY,EAAE,aAAa;CAC5B,CAAC","sourcesContent":["import { BaseObjectTypeField } from \"@yuuvis/client-core\";\n\nexport function getShellConfigQueryString(name: string, user = [], context?: string): string {\n const conditions = [\n `${SHELL_CONFIG_BASE.nameProperty} = '${name}'`,\n ...(context ? [`system:context = '${context}'`] : []),\n ...(user.length ? [`system:user IN (${user.map((u) => `'${u}'`).join(',')})`] : [])\n ];\n return `SELECT * FROM ${SHELL_CONFIG_BASE.objectType} WHERE ${conditions.join(' AND ')} ORDER BY ${BaseObjectTypeField.MODIFICATION_DATE} DESC`;\n}\n\nexport const SHELL_CONFIG_FEATURES = 'yuv:shell:features';\nexport const SHELL_CONFIG_TYPES = 'yuv:shell:types';\n\nexport const SHELL_CONFIG_BASE = {\n objectType: 'system:item',\n secondaryObjectType: 'system:configuration',\n nameProperty: 'system:name'\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shell-config.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-config.interface.js","sourceRoot":"","sources":["../../../../../../../../libs/yuuvis/client-shell-core/src/lib/services/shell-config/shell-config.interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface ShellConfig {\n // the id of the configuration object\n id: string;\n // name of the configuration \n name: string;\n // context \n context?: string;\n // users this config applies to\n user?: string[];\n // the actuall configuration data\n data: unknown;\n}\n\nexport interface ClientShellType {\n // object type or SOT ID\n id: string;\n baseType: string;\n instantApply?: boolean\n applicableToMimeTypes?: string[];\n\n}"]}
@@ -0,0 +1,100 @@
1
+ import { inject, Injectable } from '@angular/core';
2
+ import { ApiBase, BackendService, BaseObjectTypeField, DmsService } from '@yuuvis/client-core';
3
+ import { map, of, switchMap } from 'rxjs';
4
+ import { getShellConfigQueryString, SHELL_CONFIG_BASE } from './shell-config.const';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Service to manage shell configuration objects. Base on the 'system:item' type.
8
+ */
9
+ export class ShellConfigService {
10
+ #dmsService = inject(DmsService);
11
+ #backend = inject(BackendService);
12
+ get(name) {
13
+ let object;
14
+ return this.#backend
15
+ .post('/dms/objects/search', {
16
+ query: {
17
+ statement: getShellConfigQueryString(name)
18
+ }
19
+ }, ApiBase.core)
20
+ .pipe(map((res) => {
21
+ if (res.objects.length) {
22
+ object = res.objects[0];
23
+ }
24
+ return object ? object.properties[BaseObjectTypeField.OBJECT_ID].value : undefined;
25
+ }), switchMap((id) => (id ? this.#backend.get(`/dms/objects/${id}/contents/file`, ApiBase.core) : of(undefined))), map((data) => {
26
+ return data
27
+ ? {
28
+ id: object.properties[BaseObjectTypeField.OBJECT_ID].value,
29
+ name: object.properties[SHELL_CONFIG_BASE.nameProperty].value,
30
+ context: object.properties['system:context']?.value,
31
+ user: object.properties['system:user']?.value,
32
+ data
33
+ }
34
+ : undefined;
35
+ }));
36
+ }
37
+ /**
38
+ * Create a new configuration object.
39
+ * @param cfg the configuration object to be created
40
+ */
41
+ create(name, data, context, user) {
42
+ const properties = {
43
+ [SHELL_CONFIG_BASE.nameProperty]: name
44
+ };
45
+ if (user)
46
+ properties['system:user'] = user;
47
+ if (context)
48
+ properties['system:context'] = context;
49
+ return this.#dmsService
50
+ .createDmsObject(SHELL_CONFIG_BASE.objectType, {
51
+ [BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS]: [SHELL_CONFIG_BASE.secondaryObjectType],
52
+ ...properties
53
+ }, [this.#dataToFile(data)], undefined, true)
54
+ .pipe(map((res) => ({
55
+ id: res[0],
56
+ name,
57
+ context,
58
+ user,
59
+ data
60
+ })));
61
+ }
62
+ /**
63
+ * Update data of an existing configuration object.
64
+ * @param id the id of the configuration object to update
65
+ * @param data the new configuration data to be set
66
+ */
67
+ update(id, data) {
68
+ return this.#dmsService.uploadContent(id, this.#dataToFile(data), undefined, true);
69
+ }
70
+ /**
71
+ * Delete a configuration object.
72
+ * @param id the id of the configuration object to delete
73
+ */
74
+ delete(id) {
75
+ return this.#dmsService.deleteDmsObject(id);
76
+ }
77
+ download(id, filename) {
78
+ this.#backend.download(this.#dmsService.getContentPath(id), filename);
79
+ }
80
+ upload(id, file) {
81
+ return this.#dmsService.uploadContent(id, file, undefined, true);
82
+ }
83
+ /**
84
+ * Transform the configuration to a file.
85
+ * @param data the configuration data to be transformed
86
+ * @returns a file object containing the configuration data
87
+ */
88
+ #dataToFile(data) {
89
+ return new File([JSON.stringify(data)], 'config.json', { type: 'application/json' });
90
+ }
91
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ShellConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
92
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ShellConfigService, providedIn: 'root' }); }
93
+ }
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ShellConfigService, decorators: [{
95
+ type: Injectable,
96
+ args: [{
97
+ providedIn: 'root'
98
+ }]
99
+ }] });
100
+ //# sourceMappingURL=shell-config.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-config.service.js","sourceRoot":"","sources":["../../../../../../../../libs/yuuvis/client-shell-core/src/lib/services/shell-config/shell-config.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EAAE,GAAG,EAAc,EAAE,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;;AAGpF;;GAEG;AAIH,MAAM,OAAO,kBAAkB;IAC7B,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACjC,QAAQ,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IAElC,GAAG,CAAC,IAAY;QACd,IAAI,MAAW,CAAC;QAChB,OAAO,IAAI,CAAC,QAAQ;aACjB,IAAI,CACH,qBAAqB,EACrB;YACE,KAAK,EAAE;gBACL,SAAS,EAAE,yBAAyB,CAAC,IAAI,CAAC;aAC3C;SACF,EACD,OAAO,CAAC,IAAI,CACb;aACA,IAAI,CACH,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACV,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;gBACvB,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,CAAC;YACD,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,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Service } from '@yuuvis/client-core';\nimport { map, Observable, of, switchMap } from 'rxjs';\nimport { getShellConfigQueryString, SHELL_CONFIG_BASE } from './shell-config.const';\nimport { ShellConfig } from './shell-config.interface';\n\n/**\n * Service to manage shell configuration objects. Base on the 'system:item' type.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ShellConfigService {\n #dmsService = inject(DmsService);\n #backend = inject(BackendService);\n\n get(name: string): Observable<ShellConfig | undefined> {\n let object: any;\n return this.#backend\n .post(\n '/dms/objects/search',\n {\n query: {\n statement: getShellConfigQueryString(name)\n }\n },\n ApiBase.core\n )\n .pipe(\n map((res) => {\n if (res.objects.length) {\n object = res.objects[0];\n }\n return object ? object.properties[BaseObjectTypeField.OBJECT_ID].value : undefined;\n }),\n switchMap((id) => (id ? this.#backend.get(`/dms/objects/${id}/contents/file`, ApiBase.core) : of(undefined))),\n map((data) => {\n return data\n ? {\n id: object.properties[BaseObjectTypeField.OBJECT_ID].value,\n name: object.properties[SHELL_CONFIG_BASE.nameProperty].value,\n context: object.properties['system:context']?.value,\n user: object.properties['system:user']?.value,\n data\n }\n : undefined;\n })\n );\n }\n\n /**\n * Create a new configuration object.\n * @param cfg the configuration object to be created\n */\n create(name: string, data: unknown, context?: string, user?: string[]): Observable<ShellConfig> {\n const properties: Record<string, unknown> = {\n [SHELL_CONFIG_BASE.nameProperty]: name\n };\n if (user) properties['system:user'] = user;\n if (context) properties['system:context'] = context;\n return this.#dmsService\n .createDmsObject(\n SHELL_CONFIG_BASE.objectType,\n {\n [BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS]: [SHELL_CONFIG_BASE.secondaryObjectType],\n ...properties\n },\n [this.#dataToFile(data)],\n undefined,\n true\n )\n .pipe(\n map((res) => ({\n id: res[0],\n name,\n context,\n user,\n data\n }))\n );\n }\n\n /**\n * Update data of an existing configuration object.\n * @param id the id of the configuration object to update\n * @param data the new configuration data to be set\n */\n update(id: string, data: unknown): Observable<any> {\n return this.#dmsService.uploadContent(id, this.#dataToFile(data), undefined, true);\n }\n\n /**\n * Delete a configuration object.\n * @param id the id of the configuration object to delete\n */\n delete(id: string): Observable<any> {\n return this.#dmsService.deleteDmsObject(id);\n }\n\n download(id: string, filename?: string): void {\n this.#backend.download(this.#dmsService.getContentPath(id), filename);\n }\n\n upload(id: string, file: File): Observable<any> {\n return this.#dmsService.uploadContent(id, file, undefined, true);\n }\n\n /**\n * Transform the configuration to a file.\n * @param data the configuration data to be transformed\n * @returns a file object containing the configuration data\n */\n #dataToFile(data: unknown): File {\n return new File([JSON.stringify(data)], 'config.json', { type: 'application/json' });\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shell-notifications.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-notifications.interface.js","sourceRoot":"","sources":["../../../../../../../../libs/yuuvis/client-shell-core/src/lib/services/shell-notifications/shell-notifications.interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface ShellNotification {\n // notifications title\n title: string;\n // notifications description\n description?: string;\n // an icon (SVG string)\n icon?: string;\n // the app that triggered the notification\n app?: string;\n // level indicating the type of notification (its importance)\n level?: ShellNotificationLevel;\n // a route to open clicking the notification\n targetRoute?: string;\n // remove the notification after the target route has been navigated to\n removeOnTargetRouteNavigated?: boolean;\n}\n\nexport type ShellNotificationLevel = 'alert' | 'info' | 'warning' | 'success'"]}
@@ -0,0 +1,84 @@
1
+ import { Injectable, inject } from '@angular/core';
2
+ import { ReplaySubject } from 'rxjs';
3
+ import { AppCacheService, NativeNotificationService, TranslateService, Utils } from '@yuuvis/client-core';
4
+ import { ShellService } from '../shell/shell.service';
5
+ import { Router } from '@angular/router';
6
+ import { CLIENT_SHELL_FEATURE_CONFIG_ALWAYS_SHOW_NOTOFICATION } from '../feature';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Service managing shell notifications.
10
+ * Every app could propagate shell notifications. They will be published
11
+ * in the notifications section of the shell. Incoming new messahes will
12
+ * also add an indicator to the icon in the shell bar.
13
+ *
14
+ */
15
+ export class ShellNotificationsService {
16
+ #shell;
17
+ #router;
18
+ #nativeNotificationService;
19
+ constructor() {
20
+ this.LOCAL_STORAGE_KEY = 'yuv.shell.notifications';
21
+ this.appCache = inject(AppCacheService);
22
+ this.#shell = inject(ShellService);
23
+ this.#router = inject(Router);
24
+ this.translate = inject(TranslateService);
25
+ this.#nativeNotificationService = inject(NativeNotificationService);
26
+ this.alwaysShowNotifications = inject(CLIENT_SHELL_FEATURE_CONFIG_ALWAYS_SHOW_NOTOFICATION);
27
+ this._notifications = [];
28
+ this._notificationsSource = new ReplaySubject();
29
+ this.shellNotifications$ = this._notificationsSource.asObservable();
30
+ this.appCache.getItem(this.LOCAL_STORAGE_KEY).subscribe((res) => {
31
+ this._notifications = res || [];
32
+ this._notificationsSource.next(this._notifications);
33
+ });
34
+ }
35
+ add(notification, nativeNotification = false) {
36
+ this._notifications.push({
37
+ ...notification,
38
+ id: Utils.uuid(),
39
+ timestamp: new Date().getTime(),
40
+ seen: false
41
+ });
42
+ // // check for unseen items
43
+ // if (document.hidden && nativeNotification && this._notifications.some((n) => !n.seen)) {
44
+ // this.#nativeNotificationService.showNotification(this.translate.instant('yuv.shell.notification.native.title'), {
45
+ // onClick: () => this.#router.navigate([{ outlets: { aside: 'notifications' } }]),
46
+ // options: {
47
+ // body: this.translate.instant('yuv.shell.notification.native.message'),
48
+ // // badge: this.#shell.shellConfig().icons!.appIcon,
49
+ // icon: 'https://budgie.enaioci.net/client/assets/_yuuvis/theme/favicon.svg'
50
+ // }
51
+ // });
52
+ // }
53
+ this._updateNotifications();
54
+ }
55
+ remove(id) {
56
+ this._notifications = this._notifications.filter((n) => n.id !== id);
57
+ this._updateNotifications();
58
+ }
59
+ removeAll() {
60
+ this._notifications = [];
61
+ this._updateNotifications();
62
+ }
63
+ markAllAsSeen() {
64
+ this._notifications.forEach((n) => (n.seen = true));
65
+ this._updateNotifications();
66
+ }
67
+ getNotificationById(id) {
68
+ return this._notifications.find((n) => n.id === id);
69
+ }
70
+ _updateNotifications() {
71
+ this._notifications = this._notifications.sort((a, b) => b.timestamp - a.timestamp);
72
+ this._notificationsSource.next(this._notifications);
73
+ this.appCache.setItem(this.LOCAL_STORAGE_KEY, this._notifications).subscribe();
74
+ }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ShellNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
76
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ShellNotificationsService, providedIn: 'root' }); }
77
+ }
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: ShellNotificationsService, decorators: [{
79
+ type: Injectable,
80
+ args: [{
81
+ providedIn: 'root'
82
+ }]
83
+ }], ctorParameters: () => [] });
84
+ //# sourceMappingURL=shell-notifications.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-notifications.service.js","sourceRoot":"","sources":["../../../../../../../../libs/yuuvis/client-shell-core/src/lib/services/shell-notifications/shell-notifications.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAc,aAAa,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,oDAAoD,EAAE,MAAM,YAAY,CAAC;;AAElF;;;;;;GAMG;AAIH,MAAM,OAAO,yBAAyB;IAGpC,MAAM,CAAwB;IAC9B,OAAO,CAAkB;IAEzB,0BAA0B,CAAqC;IAO/D;QAZQ,sBAAiB,GA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QACf,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACrE,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED,SAAS;QACP,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED,aAAa;QACX,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED,mBAAmB,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtD,CAAC;IAEO,oBAAoB;QAC1B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC;QACpF,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACpD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,SAAS,EAAE,CAAC;IACjF,CAAC;+GAhEU,yBAAyB;mHAAzB,yBAAyB,cAFxB,MAAM;;4FAEP,yBAAyB;kBAHrC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { ShellNotification } from './shell-notifications.interface';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { AppCacheService, NativeNotificationService, TranslateService, Utils } from '@yuuvis/client-core';\nimport { ShellService } from '../shell/shell.service';\nimport { Router } from '@angular/router';\nimport { CLIENT_SHELL_FEATURE_CONFIG_ALWAYS_SHOW_NOTOFICATION } from '../feature';\n\n/**\n * Service managing shell notifications.\n * Every app could propagate shell notifications. They will be published\n * in the notifications section of the shell. Incoming new messahes will\n * also add an indicator to the icon in the shell bar.\n *\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ShellNotificationsService {\n private LOCAL_STORAGE_KEY = 'yuv.shell.notifications';\n private appCache = inject(AppCacheService);\n #shell = inject(ShellService);\n #router = inject(Router);\n private translate = inject(TranslateService);\n #nativeNotificationService = inject(NativeNotificationService);\n alwaysShowNotifications = inject(CLIENT_SHELL_FEATURE_CONFIG_ALWAYS_SHOW_NOTOFICATION);\n\n private _notifications: ShellNotificationItem[] = [];\n private _notificationsSource = new ReplaySubject<ShellNotificationItem[]>();\n shellNotifications$: Observable<ShellNotificationItem[]> = this._notificationsSource.asObservable();\n\n constructor() {\n this.appCache.getItem(this.LOCAL_STORAGE_KEY).subscribe((res) => {\n this._notifications = res || [];\n this._notificationsSource.next(this._notifications);\n });\n }\n\n add(notification: ShellNotification, nativeNotification = false) {\n this._notifications.push({\n ...notification,\n id: Utils.uuid(),\n timestamp: new Date().getTime(),\n seen: false\n });\n // // check for unseen items\n // if (document.hidden && nativeNotification && this._notifications.some((n) => !n.seen)) {\n // this.#nativeNotificationService.showNotification(this.translate.instant('yuv.shell.notification.native.title'), {\n // onClick: () => this.#router.navigate([{ outlets: { aside: 'notifications' } }]),\n // options: {\n // body: this.translate.instant('yuv.shell.notification.native.message'),\n // // badge: this.#shell.shellConfig().icons!.appIcon,\n // icon: 'https://budgie.enaioci.net/client/assets/_yuuvis/theme/favicon.svg'\n // }\n // });\n // }\n this._updateNotifications();\n }\n\n remove(id: string) {\n this._notifications = this._notifications.filter((n) => n.id !== id);\n this._updateNotifications();\n }\n\n removeAll() {\n this._notifications = [];\n this._updateNotifications();\n }\n\n markAllAsSeen() {\n this._notifications.forEach((n) => (n.seen = true));\n this._updateNotifications();\n }\n\n getNotificationById(id: string): ShellNotificationItem | undefined {\n return this._notifications.find((n) => n.id === id);\n }\n\n private _updateNotifications() {\n this._notifications = this._notifications.sort((a, b) => b.timestamp - a.timestamp);\n this._notificationsSource.next(this._notifications);\n this.appCache.setItem(this.LOCAL_STORAGE_KEY, this._notifications).subscribe();\n }\n}\n\ntype ShellNotificationItem = ShellNotification & {\n id: string;\n timestamp: number;\n seen: boolean;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tile-extension.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tile-extension.interface.js","sourceRoot":"","sources":["../../../../../../libs/yuuvis/client-shell-core/src/lib/tile-extension.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { Type } from \"@angular/core\";\n\nexport interface TileExtension {\n typeId: string;\n cmp: Type<TileExtensionComponent>;\n}\n\nexport interface TileExtensionComponent {\n data: any;\n}\n\nexport interface TileExtensionDirectiveInput {\n typeId: string;\n data: any\n}"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=yuuvis-client-shell-core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yuuvis-client-shell-core.js","sourceRoot":"","sources":["../../../../../libs/yuuvis/client-shell-core/src/yuuvis-client-shell-core.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
2
2
  import { CommandPaletteCommand, DisabledCause } from '../command-palette.interface';
3
3
  import { CommandPaletteService } from '../command-palette.service';
4
4
  import * as i0 from "@angular/core";
@@ -15,7 +15,7 @@ export declare class CommandPaletteComponent implements OnInit, AfterViewInit {
15
15
  message: string | undefined;
16
16
  disabledCauses: DisabledCause[];
17
17
  placeholder: string | undefined;
18
- searchTermChange: EventEmitter<string>;
18
+ readonly searchTermChange: import("@angular/core").OutputEmitterRef<string>;
19
19
  onArrowDown(e: KeyboardEvent): void;
20
20
  onArrowUp(e: KeyboardEvent): void;
21
21
  onEnter(): void;
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "name": "@yuuvis/client-shell-core",
3
- "version": "2.20.1",
3
+ "version": "3.0.0-beta.20.1",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
7
- "@angular/common": "^19.2.1",
8
- "@angular/core": "^19.2.1",
9
- "@angular/material": "^19.2.15",
7
+ "@angular/common": "^20.0.0",
8
+ "@angular/core": "^20.0.0",
9
+ "@angular/material": "^20.0.0",
10
10
  "rxjs": "^7.8.2",
11
- "@angular/platform-browser": "^19.2.1",
12
- "@yuuvis/client-core": "^2.20.1"
11
+ "@angular/platform-browser": "^20.0.0",
12
+ "@yuuvis/client-core": "^3.0.0-beta.20.1"
13
13
  },
14
14
  "dependencies": {
15
15
  "tslib": "^2.3.0"
16
16
  },
17
17
  "sideEffects": false,
18
- "module": "esm2022/yuuvis-client-shell-core.mjs",
19
- "typings": "index.d.ts",
18
+ "module": "esm2022/yuuvis-client-shell-core.js",
19
+ "typings": "yuuvis-client-shell-core.d.ts",
20
20
  "exports": {
21
21
  "./package.json": {
22
22
  "default": "./package.json"
23
23
  },
24
24
  ".": {
25
- "types": "./index.d.ts",
26
- "default": "./esm2022/yuuvis-client-shell-core.mjs"
25
+ "types": "./yuuvis-client-shell-core.d.ts",
26
+ "default": "./esm2022/yuuvis-client-shell-core.js"
27
27
  }
28
28
  }
29
29
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@yuuvis/client-shell-core" />
5
+ export * from './index';
package/esm2022/index.mjs DELETED
@@ -1,15 +0,0 @@
1
- export * from './lib/models/client-shell.interface';
2
- export * from './lib/services/command-palette/command-palette.interface';
3
- export * from './lib/services/command-palette/command-palette.service';
4
- export * from './lib/services/command-palette/command-palette/command-palette.component';
5
- export * from './lib/services/shell-notifications/shell-notifications.interface';
6
- export * from './lib/services/shell-notifications/shell-notifications.service';
7
- export * from './lib/services/shell/shell.service';
8
- export * from './lib/tile-extension.interface';
9
- export * from './lib/services/shell/shell.bootstrap';
10
- export * from './lib/services/shell/shell.providers';
11
- export * from './lib/services/feature';
12
- export * from './lib/services/shell-config/shell-config.service';
13
- export * from './lib/services/shell-config/shell-config.interface';
14
- export * from './lib/services/shell-config/shell-config.const';
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL3l1dXZpcy9jbGllbnQtc2hlbGwtY29yZS9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLDBEQUEwRCxDQUFDO0FBQ3pFLGNBQWMsd0RBQXdELENBQUM7QUFDdkUsY0FBYywwRUFBMEUsQ0FBQztBQUN6RixjQUFjLGtFQUFrRSxDQUFDO0FBQ2pGLGNBQWMsZ0VBQWdFLENBQUM7QUFDL0UsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLGdDQUFnQyxDQUFDO0FBRS9DLGNBQWMsc0NBQXNDLENBQUM7QUFDckQsY0FBYyxzQ0FBc0MsQ0FBQztBQUNyRCxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsa0RBQWtELENBQUM7QUFDakUsY0FBYyxvREFBb0QsQ0FBQztBQUNu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cuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9zaGVsbC1jb25maWcvc2hlbGwtY29uZmlnLmludGVyZmFjZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlcy9zaGVsbC1jb25maWcvc2hlbGwtY29uZmlnLmNvbnN0JztcbiJdfQ==
@@ -1,12 +0,0 @@
1
- // default assets for the client shell
2
- export const CLIENT_SHELL_ASSETS = {
3
- appIcon: {
4
- svgIcon: '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 64 64">' +
5
- ' <path fill="var(--ymt-brand, #181C21)" d="M12 0h40v44a8 8 0 0 1-8 8H20a8 8 0 0 1-8-8V0Z"/>' +
6
- ' <path fill="var(--ymt-on-brand, #E0E2EA)" d="m40 24-4.534 6.931a51.188 51.188 0 0 0-1.523 2.462s-.583-1.07-1.425-2.332L27.79 24H24l8.324 12.567V40h3.66v-3.757L40 29.7V24Z"/>' +
7
- '</svg>',
8
- iconName: 'app_logo'
9
- },
10
- shellIconNamespace: 'shellIcons'
11
- };
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LXNoZWxsLmFzc2V0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMveXV1dmlzL2NsaWVudC1zaGVsbC1jb3JlL3NyYy9saWIvY2xpZW50LXNoZWxsLmFzc2V0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxzQ0FBc0M7QUFDdEMsTUFBTSxDQUFDLE1BQU0sbUJBQW1CLEdBQXNCO0lBQ3BELE9BQU8sRUFBRTtRQUNQLE9BQU8sRUFDTCwwRUFBMEU7WUFDMUUsOEZBQThGO1lBQzlGLGlMQUFpTDtZQUNqTCxRQUFRO1FBQ1YsUUFBUSxFQUFFLFVBQVU7S0FDckI7SUFDRCxrQkFBa0IsRUFBRSxZQUFZO0NBQ2pDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDbGllbnRTaGVsbENvbmZpZyB9IGZyb20gJy4vbW9kZWxzL2NsaWVudC1zaGVsbC5pbnRlcmZhY2UnO1xuXG4vLyBkZWZhdWx0IGFzc2V0cyBmb3IgdGhlIGNsaWVudCBzaGVsbFxuZXhwb3J0IGNvbnN0IENMSUVOVF9TSEVMTF9BU1NFVFM6IENsaWVudFNoZWxsQ29uZmlnID0ge1xuICBhcHBJY29uOiB7XG4gICAgc3ZnSWNvbjpcbiAgICAgICc8c3ZnIHhtbG5zPVwiaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmdcIiBmaWxsPVwibm9uZVwiIHZpZXdCb3g9XCIwIDAgNjQgNjRcIj4nICtcbiAgICAgICcgIDxwYXRoIGZpbGw9XCJ2YXIoLS15bXQtYnJhbmQsICMxODFDMjEpXCIgZD1cIk0xMiAwaDQwdjQ0YTggOCAwIDAgMS04IDhIMjBhOCA4IDAgMCAxLTgtOFYwWlwiLz4nICtcbiAgICAgICcgIDxwYXRoIGZpbGw9XCJ2YXIoLS15bXQtb24tYnJhbmQsICNFMEUyRUEpXCIgZD1cIm00MCAyNC00LjUzNCA2LjkzMWE1MS4xODggNTEuMTg4IDAgMCAwLTEuNTIzIDIuNDYycy0uNTgzLTEuMDctMS40MjUtMi4zMzJMMjcuNzkgMjRIMjRsOC4zMjQgMTIuNTY3VjQwaDMuNjZ2LTMuNzU3TDQwIDI5LjdWMjRaXCIvPicgK1xuICAgICAgJzwvc3ZnPicsXG4gICAgaWNvbk5hbWU6ICdhcHBfbG9nbydcbiAgfSxcbiAgc2hlbGxJY29uTmFtZXNwYWNlOiAnc2hlbGxJY29ucydcbn07XG4iXX0=
@@ -1,5 +0,0 @@
1
- export var GlobalShortcut;
2
- (function (GlobalShortcut) {
3
- GlobalShortcut["search"] = "search";
4
- })(GlobalShortcut || (GlobalShortcut = {}));
5
- //# s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