@ui5/theming-ngx 0.4.9-rc.2 → 0.4.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ui5-theming-ngx.mjs","sources":["../../../../libs/ui5-angular-theming/src/ui5-theming.models.ts","../../../../libs/ui5-angular-theming/src/ui5-theming.service.ts","../../../../libs/ui5-angular-theming/src/ui5-theming.module.ts","../../../../libs/ui5-angular-theming/src/ui5-theming-ngx.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\nexport interface ThemingConfig {\n defaultTheme: string;\n}\nexport const UI5_THEMING_CONFIGURATION = new InjectionToken<ThemingConfig>(\n 'Ui5 global theming configuration.'\n);\n\nexport interface Ui5ThemingProvider {\n name: string;\n getAvailableThemes(): string[] | Observable<string[]>;\n supportsTheme(themeName: string): boolean | Observable<boolean>;\n setTheme(themeName: string): Observable<boolean>;\n}\n\nexport interface Ui5ThemingConsumer extends Omit<Ui5ThemingProvider, 'name'> {\n registerProvider(provider: Ui5ThemingProvider): void;\n unregisterProvider(provider: Ui5ThemingProvider): void;\n}\n","import {Inject, Injectable, isDevMode, OnDestroy, Optional} from '@angular/core';\nimport {\n BehaviorSubject,\n combineLatest,\n map,\n Observable,\n Subject,\n switchMap,\n takeUntil,\n tap,\n of, delay,\n} from 'rxjs';\nimport {\n ThemingConfig,\n UI5_THEMING_CONFIGURATION,\n Ui5ThemingProvider,\n Ui5ThemingConsumer,\n} from './ui5-theming.models';\n\n@Injectable()\nexport class Ui5ThemingService implements Ui5ThemingConsumer, OnDestroy {\n private readonly _providers$ = new BehaviorSubject<Ui5ThemingProvider[]>([]);\n private _currentTheme$ = new BehaviorSubject<[string, string]>([\n this._config?.defaultTheme || 'sap_fiori_3',\n this._config?.defaultTheme || 'sap_fiori_3',\n ]);\n\n private _themeChanged$ = new Subject<string>();\n\n private _destroyed$ = new Subject<void>();\n\n constructor(\n @Optional() @Inject(UI5_THEMING_CONFIGURATION) private readonly _config: ThemingConfig\n ) {\n combineLatest([\n this._providers$,\n this._currentTheme$.pipe(delay(100)) // Delay so that the providers are registered. @todo: Find a better solution\n ])\n .pipe(\n switchMap(([providers, [previousTheme, newTheme]]) => {\n return combineLatest(\n providers.map(\n (provider): Observable<[Ui5ThemingProvider, boolean]> => {\n const isSupported = provider.supportsTheme(newTheme);\n if (typeof isSupported === 'boolean') {\n return of([provider, isSupported]);\n }\n return isSupported.pipe(\n map((supported) => [provider, supported])\n );\n }\n )\n ).pipe(\n switchMap((providers) => {\n const unsupportedProviders = providers.filter(\n ([, supported]) => !supported\n );\n if (unsupportedProviders.length) {\n if (isDevMode()) {\n console.warn(\n `The following providers do not support the theme \"${newTheme}\":`,\n unsupportedProviders.map(([provider]) => provider.name)\n );\n }\n }\n return combineLatest(\n providers.map(([provider]) => provider.setTheme(newTheme))\n );\n }),\n map((providerResponses) => {\n if (providerResponses.every(Boolean)) {\n return newTheme;\n }\n return previousTheme;\n })\n );\n }),\n tap((theme) => {\n this._themeChanged$.next(theme);\n }),\n takeUntil(this._destroyed$)\n )\n .subscribe();\n }\n\n supportsTheme(themeName: string): Observable<boolean> {\n return this.getAvailableThemes().pipe(\n map((themes) => themes.includes(themeName))\n );\n }\n\n getAvailableThemes(): Observable<string[]> {\n return this._providers$.pipe(\n switchMap((providers) => {\n return combineLatest(\n providers.map((provider) => {\n const availableThemes = provider.getAvailableThemes();\n if (Array.isArray(availableThemes)) {\n return of(availableThemes);\n }\n return availableThemes;\n })\n ).pipe(\n map((providerResponses: Array<string[]>) => {\n const uniques = providerResponses.reduce((acc, curr) => {\n curr.forEach((theme) => acc.add(theme));\n return acc;\n }, new Set<string>());\n return [...uniques.values()];\n })\n );\n })\n );\n }\n\n /** Registers theming provider for further usage. */\n registerProvider(provider: Ui5ThemingProvider): void {\n const providers = this._providers$.value;\n providers.push(provider);\n this._providers$.next(providers);\n }\n\n /** Unregisters previously registered theming provider. */\n unregisterProvider(provider: Ui5ThemingProvider): void {\n const providers = this._providers$.value;\n const index = providers.indexOf(provider);\n if (index !== -1) {\n providers.splice(index, 1);\n this._providers$.next(providers);\n }\n }\n\n /** Sets the theme to the providers */\n setTheme(theme: string): Observable<boolean> {\n return new Observable<boolean>((subscriber) => {\n const finalizer$ = new Subject<void>();\n this._themeChanged$\n .pipe(takeUntil(finalizer$))\n .subscribe((changedTheme) => {\n if (changedTheme === theme) {\n finalizer$.next();\n finalizer$.complete();\n }\n subscriber.next(changedTheme === theme);\n subscriber.complete();\n });\n this._currentTheme$.next([this._currentTheme$.value[1], theme]);\n });\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._destroyed$.next();\n this._destroyed$.complete();\n }\n}\n","import {\n NgModule,\n ModuleWithProviders,\n Optional,\n isDevMode,\n} from '@angular/core';\nimport { Ui5ThemingService } from './ui5-theming.service';\nimport { ThemingConfig, UI5_THEMING_CONFIGURATION } from './ui5-theming.models';\n\n@NgModule({\n exports: [],\n declarations: [],\n})\nexport class Ui5ThemingModule {\n constructor(@Optional() public theming: Ui5ThemingService) {\n if (!this.theming && isDevMode()) {\n console.error(\n 'Could not find Ui5ThemingService. Make sure you called .forRoot() for Ui5ThemingModule'\n );\n }\n }\n static forRoot(config: ThemingConfig): ModuleWithProviders<Ui5ThemingModule> {\n return {\n ngModule: Ui5ThemingModule,\n providers: [\n Ui5ThemingService,\n {\n provide: UI5_THEMING_CONFIGURATION,\n useValue: config,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.Ui5ThemingService"],"mappings":";;;;MAKa,yBAAyB,GAAG,IAAI,cAAc,CACzD,mCAAmC;;MCcxB,iBAAiB,CAAA;AAW5B,IAAA,WAAA,CACkE,OAAsB,EAAA;QAAtB,IAAO,CAAA,OAAA,GAAP,OAAO;AAXxD,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,eAAe,CAAuB,EAAE,CAAC;QACpE,IAAc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EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AACjB,iBAAA;;0BAEc;;;ACdf;;AAEG;;;;"}
1
+ {"version":3,"file":"ui5-theming-ngx.mjs","sources":["../../../../libs/ui5-angular-theming/src/ui5-theming.models.ts","../../../../libs/ui5-angular-theming/src/ui5-theming.service.ts","../../../../libs/ui5-angular-theming/src/ui5-theming.module.ts","../../../../libs/ui5-angular-theming/src/ui5-theming-ngx.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\nexport interface ThemingConfig {\n defaultTheme: string;\n}\nexport const UI5_THEMING_CONFIGURATION = new InjectionToken<ThemingConfig>(\n 'Ui5 global theming configuration.'\n);\n\nexport interface Ui5ThemingProvider {\n name: string;\n getAvailableThemes(): string[] | Observable<string[]>;\n supportsTheme(themeName: string): boolean | Observable<boolean>;\n setTheme(themeName: string): Observable<boolean>;\n}\n\nexport interface Ui5ThemingConsumer extends Omit<Ui5ThemingProvider, 'name'> {\n registerProvider(provider: Ui5ThemingProvider): void;\n unregisterProvider(provider: Ui5ThemingProvider): void;\n}\n","import {Inject, Injectable, isDevMode, OnDestroy, Optional} from '@angular/core';\nimport {\n BehaviorSubject,\n combineLatest,\n map,\n Observable,\n Subject,\n switchMap,\n takeUntil,\n tap,\n of, delay,\n} from 'rxjs';\nimport {\n ThemingConfig,\n UI5_THEMING_CONFIGURATION,\n Ui5ThemingProvider,\n Ui5ThemingConsumer,\n} from './ui5-theming.models';\n\n@Injectable()\nexport class Ui5ThemingService implements Ui5ThemingConsumer, OnDestroy {\n private readonly _providers$ = new BehaviorSubject<Ui5ThemingProvider[]>([]);\n private _currentTheme$ = new BehaviorSubject<[string, string]>([\n this._config?.defaultTheme || 'sap_fiori_3',\n this._config?.defaultTheme || 'sap_fiori_3',\n ]);\n\n private _themeChanged$ = new Subject<string>();\n\n private _destroyed$ = new Subject<void>();\n\n constructor(\n @Optional() @Inject(UI5_THEMING_CONFIGURATION) private readonly _config: ThemingConfig\n ) {\n combineLatest([\n this._providers$,\n this._currentTheme$.pipe(delay(100)) // Delay so that the providers are registered. @todo: Find a better solution\n ])\n .pipe(\n switchMap(([providers, [previousTheme, newTheme]]) => {\n return combineLatest(\n providers.map(\n (provider): Observable<[Ui5ThemingProvider, boolean]> => {\n const isSupported = provider.supportsTheme(newTheme);\n if (typeof isSupported === 'boolean') {\n return of([provider, isSupported]);\n }\n return isSupported.pipe(\n map((supported) => [provider, supported])\n );\n }\n )\n ).pipe(\n switchMap((providers) => {\n const unsupportedProviders = providers.filter(\n ([, supported]) => !supported\n );\n if (unsupportedProviders.length) {\n if (isDevMode()) {\n console.warn(\n `The following providers do not support the theme \"${newTheme}\":`,\n unsupportedProviders.map(([provider]) => provider.name)\n );\n }\n }\n return combineLatest(\n providers.map(([provider]) => provider.setTheme(newTheme))\n );\n }),\n map((providerResponses) => {\n if (providerResponses.every(Boolean)) {\n return newTheme;\n }\n return previousTheme;\n })\n );\n }),\n tap((theme) => {\n this._themeChanged$.next(theme);\n }),\n takeUntil(this._destroyed$)\n )\n .subscribe();\n }\n\n supportsTheme(themeName: string): Observable<boolean> {\n return this.getAvailableThemes().pipe(\n map((themes) => themes.includes(themeName))\n );\n }\n\n getAvailableThemes(): Observable<string[]> {\n return this._providers$.pipe(\n switchMap((providers) => {\n return combineLatest(\n providers.map((provider) => {\n const availableThemes = provider.getAvailableThemes();\n if (Array.isArray(availableThemes)) {\n return of(availableThemes);\n }\n return availableThemes;\n })\n ).pipe(\n map((providerResponses: Array<string[]>) => {\n const uniques = providerResponses.reduce((acc, curr) => {\n curr.forEach((theme) => acc.add(theme));\n return acc;\n }, new Set<string>());\n return [...uniques.values()];\n })\n );\n })\n );\n }\n\n /** Registers theming provider for further usage. */\n registerProvider(provider: Ui5ThemingProvider): void {\n const providers = this._providers$.value;\n providers.push(provider);\n this._providers$.next(providers);\n }\n\n /** Unregisters previously registered theming provider. */\n unregisterProvider(provider: Ui5ThemingProvider): void {\n const providers = this._providers$.value;\n const index = providers.indexOf(provider);\n if (index !== -1) {\n providers.splice(index, 1);\n this._providers$.next(providers);\n }\n }\n\n /** Sets the theme to the providers */\n setTheme(theme: string): Observable<boolean> {\n return new Observable<boolean>((subscriber) => {\n const finalizer$ = new Subject<void>();\n this._themeChanged$\n .pipe(takeUntil(finalizer$))\n .subscribe((changedTheme) => {\n if (changedTheme === theme) {\n finalizer$.next();\n finalizer$.complete();\n }\n subscriber.next(changedTheme === theme);\n subscriber.complete();\n });\n this._currentTheme$.next([this._currentTheme$.value[1], theme]);\n });\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._destroyed$.next();\n this._destroyed$.complete();\n }\n}\n","import {\n NgModule,\n ModuleWithProviders,\n Optional,\n isDevMode,\n} from '@angular/core';\nimport { Ui5ThemingService } from './ui5-theming.service';\nimport { ThemingConfig, UI5_THEMING_CONFIGURATION } from './ui5-theming.models';\n\n@NgModule({\n exports: [],\n declarations: [],\n})\nexport class Ui5ThemingModule {\n constructor(@Optional() public theming: Ui5ThemingService) {\n if (!this.theming && isDevMode()) {\n console.error(\n 'Could not find Ui5ThemingService. Make sure you called .forRoot() for Ui5ThemingModule'\n );\n }\n }\n static forRoot(config: ThemingConfig): ModuleWithProviders<Ui5ThemingModule> {\n return {\n ngModule: Ui5ThemingModule,\n providers: [\n Ui5ThemingService,\n {\n provide: UI5_THEMING_CONFIGURATION,\n useValue: config,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not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,EAAA;QAA1B,IAAA,CAAA,OAAO,GAAP,OAAO;QACpC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,SAAS,EAAE,EAAE;AAChC,YAAA,OAAO,CAAC,KAAK,CACX,wFAAwF,CACzF;QACH;IACF;IACA,OAAO,OAAO,CAAC,MAAqB,EAAA;QAClC,OAAO;AACL,YAAA,QAAQ,EAAE,gBAAgB;AAC1B,YAAA,SAAS,EAAE;gBACT,iBAAiB;AACjB,gBAAA;AACE,oBAAA,OAAO,EAAE,yBAAyB;AAClC,oBAAA,QAAQ,EAAE,MAAM;AACjB,iBAAA;AACF,aAAA;SACF;IACH;8GAnBW,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AACjB,iBAAA;;0BAEc;;;ACdf;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/theming-ngx",
3
- "version": "0.4.9-rc.2",
3
+ "version": "0.4.9",
4
4
  "license": "Apache-2.0",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "repository": {
Binary file
Binary file