@fundamental-ngx/ui5-webcomponents-base 0.62.0-rc.3 → 0.62.0-rc.31

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.
@@ -0,0 +1,31 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, effect, Injectable, provideEnvironmentInitializer } from '@angular/core';
3
+ import { FD_LOCALE_SIGNAL } from '@fundamental-ngx/i18n';
4
+ import { setLanguage } from '@ui5/webcomponents-base/dist/config/Language.js';
5
+
6
+ class Ui5LanguageService {
7
+ constructor() {
8
+ this._localeSignal = inject(FD_LOCALE_SIGNAL);
9
+ effect(() => {
10
+ const locale = this._localeSignal();
11
+ setLanguage(locale);
12
+ });
13
+ }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: Ui5LanguageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
15
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: Ui5LanguageService, providedIn: 'root' }); }
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: Ui5LanguageService, decorators: [{
18
+ type: Injectable,
19
+ args: [{ providedIn: 'root' }]
20
+ }], ctorParameters: () => [] });
21
+
22
+ function provideUi5LanguageBridge() {
23
+ return provideEnvironmentInitializer(() => inject(Ui5LanguageService));
24
+ }
25
+
26
+ /**
27
+ * Generated bundle index. Do not edit.
28
+ */
29
+
30
+ export { Ui5LanguageService, provideUi5LanguageBridge };
31
+ //# sourceMappingURL=fundamental-ngx-ui5-webcomponents-base-i18n.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fundamental-ngx-ui5-webcomponents-base-i18n.mjs","sources":["../../../../libs/ui5-webcomponents-base/i18n/ui5-language.service.ts","../../../../libs/ui5-webcomponents-base/i18n/ui5-language.initializer.ts","../../../../libs/ui5-webcomponents-base/i18n/fundamental-ngx-ui5-webcomponents-base-i18n.ts"],"sourcesContent":["import { effect, inject, Injectable } from '@angular/core';\nimport { FD_LOCALE_SIGNAL } from '@fundamental-ngx/i18n';\nimport { setLanguage } from '@ui5/webcomponents-base/dist/config/Language.js';\n\n@Injectable({ providedIn: 'root' })\nexport class Ui5LanguageService {\n private readonly _localeSignal = inject(FD_LOCALE_SIGNAL);\n\n constructor() {\n effect(() => {\n const locale = this._localeSignal();\n setLanguage(locale);\n });\n }\n}\n","import { EnvironmentProviders, inject, provideEnvironmentInitializer } from '@angular/core';\nimport { Ui5LanguageService } from './ui5-language.service';\n\nexport function provideUi5LanguageBridge(): EnvironmentProviders {\n return provideEnvironmentInitializer(() => inject(Ui5LanguageService));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAKa,kBAAkB,CAAA;AAG3B,IAAA,WAAA,GAAA;AAFiB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAGrD,MAAM,CAAC,MAAK;AACR,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE;YACnC,WAAW,CAAC,MAAM,CAAC;AACvB,QAAA,CAAC,CAAC;IACN;8GARS,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cADL,MAAM,EAAA,CAAA,CAAA;;2FACnB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;SCDlB,wBAAwB,GAAA;IACpC,OAAO,6BAA6B,CAAC,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAC1E;;ACLA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/ui5-webcomponents-base",
3
- "version": "0.62.0-rc.3",
3
+ "version": "0.62.0-rc.31",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "description": "Fundamental Library for Angular - UI5 Webcomponents Base",
6
6
  "license": "Apache-2.0",
@@ -20,6 +20,7 @@
20
20
  "@angular/forms": "^21.0.0",
21
21
  "@angular/platform-browser": "^21.0.0",
22
22
  "@angular/router": "^21.0.0",
23
+ "@fundamental-ngx/i18n": "0.62.0-rc.31",
23
24
  "@ui5/webcomponents-base": "^2.20.0",
24
25
  "fundamental-styles": "0.40.1",
25
26
  "rxjs": "^7.8.0"
@@ -43,6 +44,10 @@
43
44
  "types": "./types/fundamental-ngx-ui5-webcomponents-base.d.ts",
44
45
  "default": "./fesm2022/fundamental-ngx-ui5-webcomponents-base.mjs"
45
46
  },
47
+ "./i18n": {
48
+ "types": "./types/fundamental-ngx-ui5-webcomponents-base-i18n.d.ts",
49
+ "default": "./fesm2022/fundamental-ngx-ui5-webcomponents-base-i18n.mjs"
50
+ },
46
51
  "./theming": {
47
52
  "types": "./types/fundamental-ngx-ui5-webcomponents-base-theming.d.ts",
48
53
  "default": "./fesm2022/fundamental-ngx-ui5-webcomponents-base-theming.mjs"
@@ -0,0 +1,13 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EnvironmentProviders } from '@angular/core';
3
+
4
+ declare class Ui5LanguageService {
5
+ private readonly _localeSignal;
6
+ constructor();
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<Ui5LanguageService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<Ui5LanguageService>;
9
+ }
10
+
11
+ declare function provideUi5LanguageBridge(): EnvironmentProviders;
12
+
13
+ export { Ui5LanguageService, provideUi5LanguageBridge };