@ui5/webcomponents-ngx 0.2.3-rc.0 → 0.2.3-rc.2

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,18 +1,18 @@
1
1
  export default [
2
- 'sap_belize',
3
- 'sap_belize_hcb',
4
- 'sap_belize_hcw',
5
- 'sap_fiori_3',
6
- 'sap_fiori_3_dark',
7
- 'sap_fiori_3_hcb',
8
- 'sap_fiori_3_hcw',
9
- 'sap_horizon',
10
- 'sap_horizon_dark',
11
- 'sap_horizon_dark_exp',
12
- 'sap_horizon_exp',
13
- 'sap_horizon_hcb',
14
- 'sap_horizon_hcb_exp',
15
- 'sap_horizon_hcw',
16
- 'sap_horizon_hcw_exp',
2
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json',
3
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json',
4
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json',
5
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json',
6
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json',
7
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json',
8
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json',
9
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json',
10
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json',
11
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json',
12
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json',
13
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json',
14
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json',
15
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json',
16
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json',
17
17
  ];
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwcG9ydGVkLXRoZW1lcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvdWk1LWFuZ3VsYXIvdGhlbWluZy9zdXBwb3J0ZWQtdGhlbWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGVBQWU7SUFDYixZQUFZO0lBQ1osZ0JBQWdCO0lBQ2hCLGdCQUFnQjtJQUNoQixhQUFhO0lBQ2Isa0JBQWtCO0lBQ2xCLGlCQUFpQjtJQUNqQixpQkFBaUI7SUFDakIsYUFBYTtJQUNiLGtCQUFrQjtJQUNsQixzQkFBc0I7SUFDdEIsaUJBQWlCO0lBQ2pCLGlCQUFpQjtJQUNqQixxQkFBcUI7SUFDckIsaUJBQWlCO0lBQ2pCLHFCQUFxQjtDQUN0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgW1xuICAnc2FwX2JlbGl6ZScsXG4gICdzYXBfYmVsaXplX2hjYicsXG4gICdzYXBfYmVsaXplX2hjdycsXG4gICdzYXBfZmlvcmlfMycsXG4gICdzYXBfZmlvcmlfM19kYXJrJyxcbiAgJ3NhcF9maW9yaV8zX2hjYicsXG4gICdzYXBfZmlvcmlfM19oY3cnLFxuICAnc2FwX2hvcml6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JdfQ==
@@ -5,21 +5,21 @@ import { BehaviorSubject, map, switchMap, of } from 'rxjs';
5
5
  import { setTheme } from '@ui5/webcomponents-base/dist/config/Theme.js';
6
6
 
7
7
  var supportedThemes = [
8
- 'sap_belize',
9
- 'sap_belize_hcb',
10
- 'sap_belize_hcw',
11
- 'sap_fiori_3',
12
- 'sap_fiori_3_dark',
13
- 'sap_fiori_3_hcb',
14
- 'sap_fiori_3_hcw',
15
- 'sap_horizon',
16
- 'sap_horizon_dark',
17
- 'sap_horizon_dark_exp',
18
- 'sap_horizon_exp',
19
- 'sap_horizon_hcb',
20
- 'sap_horizon_hcb_exp',
21
- 'sap_horizon_hcw',
22
- 'sap_horizon_hcw_exp',
8
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json',
9
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json',
10
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json',
11
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json',
12
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json',
13
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json',
14
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json',
15
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json',
16
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json',
17
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json',
18
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json',
19
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json',
20
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json',
21
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json',
22
+ 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json',
23
23
  ];
24
24
 
25
25
  class WebcomponentsThemingProvider {
@@ -1 +1 @@
1
- {"version":3,"file":"ui5-webcomponents-ngx-theming.mjs","sources":["../../../../libs/ui5-angular/theming/supported-themes.ts","../../../../libs/ui5-angular/theming/base-webcomponents-theming-provider.ts","../../../../libs/ui5-angular/theming/theming.service.ts","../../../../libs/ui5-angular/theming/theming.module.ts","../../../../libs/ui5-angular/theming/ui5-webcomponents-ngx-theming.ts"],"sourcesContent":["export default [\n 'sap_belize',\n 'sap_belize_hcb',\n 'sap_belize_hcw',\n 'sap_fiori_3',\n 'sap_fiori_3_dark',\n 'sap_fiori_3_hcb',\n 'sap_fiori_3_hcw',\n 'sap_horizon',\n 'sap_horizon_dark',\n 'sap_horizon_dark_exp',\n 'sap_horizon_exp',\n 'sap_horizon_hcb',\n 'sap_horizon_hcb_exp',\n 'sap_horizon_hcw',\n 'sap_horizon_hcw_exp',\n];\n","import {inject, Injectable, OnDestroy} from \"@angular/core\";\nimport {Ui5ThemingProvider, Ui5ThemingService} from \"@ui5/theming-ngx\";\nimport {BehaviorSubject, map, Observable, of, switchMap} from \"rxjs\";\nimport supportedThemes from './supported-themes';\nimport {setTheme} from '@ui5/webcomponents-base/dist/config/Theme.js';\n\n@Injectable()\nexport abstract class WebcomponentsThemingProvider implements Ui5ThemingProvider, OnDestroy {\n abstract name: string;\n\n protected availableThemes$ = new BehaviorSubject<string[]>(supportedThemes);\n\n protected _globalThemingService: Ui5ThemingService | null = inject(Ui5ThemingService, {optional: true});\n\n /** @hidden */\n protected constructor(\n protected registerThemes: () => Promise<any>\n ) {\n registerThemes().then(() => {\n this._globalThemingService?.registerProvider(this);\n });\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._globalThemingService?.unregisterProvider(this);\n }\n\n supportsTheme(theme: string): Observable<boolean> {\n return this.getAvailableThemes().pipe(\n map((themes) => themes.includes(theme))\n );\n }\n\n getAvailableThemes(): Observable<string[]> {\n return this.availableThemes$.asObservable();\n }\n\n setTheme(theme: string): Observable<boolean> {\n return this.supportsTheme(theme).pipe(\n switchMap((supported) => {\n if (supported) {\n setTheme(theme);\n }\n return of(supported);\n })\n );\n }\n}\n","import {Injectable} from \"@angular/core\";\nimport {WebcomponentsThemingProvider} from \"./base-webcomponents-theming-provider\";\n\n/**\n * Theming service specifically for the ui5/webcomponents-ngx components.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class Ui5WebcomponentsThemingService extends WebcomponentsThemingProvider {\n name = 'ui5-webcomponents-theming-service';\n\n /** @hidden */\n constructor() {\n super(() => import('@ui5/webcomponents-theming/dist/generated/json-imports/Themes.js'))\n }\n}\n","import {ModuleWithProviders, NgModule} from \"@angular/core\";\nimport {Ui5WebcomponentsThemingService} from \"./theming.service\";\n\n@NgModule({\n exports: [],\n declarations: []\n})\nexport class Ui5WebcomponentsThemingModule {\n constructor(readonly theming: Ui5WebcomponentsThemingService) {\n }\n\n static forRoot(): ModuleWithProviders<Ui5WebcomponentsThemingModule> {\n return {\n ngModule: Ui5WebcomponentsThemingModule,\n providers: [Ui5WebcomponentsThemingService]\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.Ui5WebcomponentsThemingService"],"mappings":";;;;;;AAAA,sBAAe;IACb,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,kBAAkB;IAClB,sBAAsB;IACtB,iBAA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AAA,CAAA,CAAA,EAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AACjB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"ui5-webcomponents-ngx-theming.mjs","sources":["../../../../libs/ui5-angular/theming/supported-themes.ts","../../../../libs/ui5-angular/theming/base-webcomponents-theming-provider.ts","../../../../libs/ui5-angular/theming/theming.service.ts","../../../../libs/ui5-angular/theming/theming.module.ts","../../../../libs/ui5-angular/theming/ui5-webcomponents-ngx-theming.ts"],"sourcesContent":["export default [\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json',\n 'node_modules/@ui5/webcomponents-theming/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json',\n];\n","import {inject, Injectable, OnDestroy} from \"@angular/core\";\nimport {Ui5ThemingProvider, Ui5ThemingService} from \"@ui5/theming-ngx\";\nimport {BehaviorSubject, map, Observable, of, switchMap} from \"rxjs\";\nimport supportedThemes from './supported-themes';\nimport {setTheme} from '@ui5/webcomponents-base/dist/config/Theme.js';\n\n@Injectable()\nexport abstract class WebcomponentsThemingProvider implements Ui5ThemingProvider, OnDestroy {\n abstract name: string;\n\n protected availableThemes$ = new BehaviorSubject<string[]>(supportedThemes);\n\n protected _globalThemingService: Ui5ThemingService | null = inject(Ui5ThemingService, {optional: true});\n\n /** @hidden */\n protected constructor(\n protected registerThemes: () => Promise<any>\n ) {\n registerThemes().then(() => {\n this._globalThemingService?.registerProvider(this);\n });\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._globalThemingService?.unregisterProvider(this);\n }\n\n supportsTheme(theme: string): Observable<boolean> {\n return this.getAvailableThemes().pipe(\n map((themes) => themes.includes(theme))\n );\n }\n\n getAvailableThemes(): Observable<string[]> {\n return this.availableThemes$.asObservable();\n }\n\n setTheme(theme: string): Observable<boolean> {\n return this.supportsTheme(theme).pipe(\n switchMap((supported) => {\n if (supported) {\n setTheme(theme);\n }\n return of(supported);\n })\n );\n }\n}\n","import {Injectable} from \"@angular/core\";\nimport {WebcomponentsThemingProvider} from \"./base-webcomponents-theming-provider\";\n\n/**\n * Theming service specifically for the ui5/webcomponents-ngx components.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class Ui5WebcomponentsThemingService extends WebcomponentsThemingProvider {\n name = 'ui5-webcomponents-theming-service';\n\n /** @hidden */\n constructor() {\n super(() => import('@ui5/webcomponents-theming/dist/generated/json-imports/Themes.js'))\n }\n}\n","import {ModuleWithProviders, NgModule} from \"@angular/core\";\nimport {Ui5WebcomponentsThemingService} from \"./theming.service\";\n\n@NgModule({\n exports: [],\n declarations: []\n})\nexport class Ui5WebcomponentsThemingModule {\n constructor(readonly theming: Ui5WebcomponentsThemingService) {\n }\n\n static forRoot(): ModuleWithProviders<Ui5WebcomponentsThemingModule> {\n return {\n ngModule: Ui5WebcomponentsThemingModule,\n providers: [Ui5WebcomponentsThemingService]\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.Ui5WebcomponentsThemingService"],"mappings":";;;;;;AAAA,sBAAe;IACb,4GAA4G;IAC5G,gHAAgH;IAChH,gHAAgH;IAChH,6GAA6G;IAC7G,kHAAkH;IAClH,iHAAiH;IACjH,iHAAiH;IACjH,6GAA6G;IAC7G,kHAAkH;IAClH,sHAAsH;IACtH,iHAAiH;IACjH,iHAAiH;IACjH,qHAAqH;IACrH,iHAAiH;IACjH,qHAAqH;CACtH;;MCTqB,4BAA4B,CAAA;;AAQhD,IAAA,WAAA,CACY,cAAkC,EAAA;QAAlC,IAAc,CAAA,cAAA,GAAd,cAAc,CAAoB;AANpC,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,eAAe,CAAW,eAAe,CAAC,CAAC;QAElE,IAAqB,CAAA,qBAAA,GAA6B,MAAM,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC;AAMtG,QAAA,cAAc,EAAE,CAAC,IAAI,CAAC,MAAK;AACzB,YAAA,IAAI,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACrD,SAAC,CAAC,CAAC;KACJ;;IAGD,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;K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A,EAAA,8BAA8B,cAF7B,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAH1C,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCDY,6BAA6B,CAAA;AACxC,IAAA,WAAA,CAAqB,OAAuC,EAAA;QAAvC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAgC;KAC3D;AAED,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,6BAA6B;YACvC,SAAS,EAAE,CAAC,8BAA8B,CAAC;SAC5C,CAAA;KACF;8GATU,6BAA6B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,8BAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAA7B,6BAA6B,EAAA,CAAA,CAAA,EAAA;+GAA7B,6BAA6B,EAAA,CAAA,CAAA,EAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AACjB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-ngx",
3
- "version": "0.2.3-rc.0",
3
+ "version": "0.2.3-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "keywords": [
@@ -19,18 +19,18 @@
19
19
  "@angular/common": "^16.1.0",
20
20
  "@angular/core": "^16.1.0",
21
21
  "@angular/forms": "^16.1.0",
22
- "@ui5/webcomponents": "^1.13.2",
23
- "@ui5/webcomponents-base": "^1.13.2",
24
- "@ui5/webcomponents-fiori": "^1.13.2",
25
- "@ui5/webcomponents-icons": "^1.13.2",
26
- "@ui5/webcomponents-icons-business-suite": "^1.13.2",
27
- "@ui5/webcomponents-icons-tnt": "^1.13.2",
28
- "@ui5/webcomponents-theming": "^1.13.2",
22
+ "@ui5/webcomponents": "^1.19.0",
23
+ "@ui5/webcomponents-base": "^1.19.0",
24
+ "@ui5/webcomponents-fiori": "^1.19.0",
25
+ "@ui5/webcomponents-icons": "^1.19.0",
26
+ "@ui5/webcomponents-icons-business-suite": "^1.19.0",
27
+ "@ui5/webcomponents-icons-tnt": "^1.19.0",
28
+ "@ui5/webcomponents-theming": "^1.19.0",
29
29
  "fast-deep-equal": "^3.1.3",
30
30
  "rxjs": "^6.5.3 || ^7.4.0",
31
31
  "lodash": "4.17.21",
32
32
  "inquirer": "8.2.4",
33
- "@ui5/theming-ngx": "0.2.3-rc.0"
33
+ "@ui5/theming-ngx": "0.2.3-rc.2"
34
34
  },
35
35
  "dependencies": {
36
36
  "tslib": "^2.4.1"
@@ -261,12 +261,6 @@
261
261
  "esm": "./esm2022/fiori/upload-collection-item/ui5-webcomponents-ngx-fiori-upload-collection-item.mjs",
262
262
  "default": "./fesm2022/ui5-webcomponents-ngx-fiori-upload-collection-item.mjs"
263
263
  },
264
- "./fiori/view-settings-dialog": {
265
- "types": "./fiori/view-settings-dialog/index.d.ts",
266
- "esm2022": "./esm2022/fiori/view-settings-dialog/ui5-webcomponents-ngx-fiori-view-settings-dialog.mjs",
267
- "esm": "./esm2022/fiori/view-settings-dialog/ui5-webcomponents-ngx-fiori-view-settings-dialog.mjs",
268
- "default": "./fesm2022/ui5-webcomponents-ngx-fiori-view-settings-dialog.mjs"
269
- },
270
264
  "./fiori/wizard": {
271
265
  "types": "./fiori/wizard/index.d.ts",
272
266
  "esm2022": "./esm2022/fiori/wizard/ui5-webcomponents-ngx-fiori-wizard.mjs",
@@ -279,6 +273,12 @@
279
273
  "esm": "./esm2022/fiori/wizard-step/ui5-webcomponents-ngx-fiori-wizard-step.mjs",
280
274
  "default": "./fesm2022/ui5-webcomponents-ngx-fiori-wizard-step.mjs"
281
275
  },
276
+ "./fiori/view-settings-dialog": {
277
+ "types": "./fiori/view-settings-dialog/index.d.ts",
278
+ "esm2022": "./esm2022/fiori/view-settings-dialog/ui5-webcomponents-ngx-fiori-view-settings-dialog.mjs",
279
+ "esm": "./esm2022/fiori/view-settings-dialog/ui5-webcomponents-ngx-fiori-view-settings-dialog.mjs",
280
+ "default": "./fesm2022/ui5-webcomponents-ngx-fiori-view-settings-dialog.mjs"
281
+ },
282
282
  "./main/avatar": {
283
283
  "types": "./main/avatar/index.d.ts",
284
284
  "esm2022": "./esm2022/main/avatar/ui5-webcomponents-ngx-main-avatar.mjs",