@indigina/ui-kit 1.1.676 → 1.1.678
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/indigina-ui-kit-auth0.mjs +3 -3
- package/fesm2022/indigina-ui-kit-locales-de-de-ijrJkq4o.mjs +453 -0
- package/fesm2022/indigina-ui-kit-locales-de-de-ijrJkq4o.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-de.mjs +22 -0
- package/fesm2022/indigina-ui-kit-locales-de.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-en-en-LdM8cu2u.mjs +453 -0
- package/fesm2022/indigina-ui-kit-locales-en-en-LdM8cu2u.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-en.mjs +13 -0
- package/fesm2022/indigina-ui-kit-locales-en.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-es-es-DftffjS9.mjs +453 -0
- package/fesm2022/indigina-ui-kit-locales-es-es-DftffjS9.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-es.mjs +22 -0
- package/fesm2022/indigina-ui-kit-locales-es.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-fr-fr-CzdpyobY.mjs +453 -0
- package/fesm2022/indigina-ui-kit-locales-fr-fr-CzdpyobY.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-fr.mjs +22 -0
- package/fesm2022/indigina-ui-kit-locales-fr.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-ru-ru-_reS9Egl.mjs +453 -0
- package/fesm2022/indigina-ui-kit-locales-ru-ru-_reS9Egl.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-ru.mjs +22 -0
- package/fesm2022/indigina-ui-kit-locales-ru.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-zh-CN-zh-CN-DODtZtow.mjs +453 -0
- package/fesm2022/indigina-ui-kit-locales-zh-CN-zh-CN-DODtZtow.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-locales-zh-CN.mjs +22 -0
- package/fesm2022/indigina-ui-kit-locales-zh-CN.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit-localization.mjs +139 -0
- package/fesm2022/indigina-ui-kit-localization.mjs.map +1 -0
- package/fesm2022/indigina-ui-kit.mjs +670 -670
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/package.json +30 -2
- package/types/indigina-ui-kit-auth0.d.ts +1 -1
- package/types/indigina-ui-kit-locales-de.d.ts +8 -0
- package/types/indigina-ui-kit-locales-en.d.ts +6 -0
- package/types/indigina-ui-kit-locales-es.d.ts +8 -0
- package/types/indigina-ui-kit-locales-fr.d.ts +8 -0
- package/types/indigina-ui-kit-locales-ru.d.ts +8 -0
- package/types/indigina-ui-kit-locales-zh-CN.d.ts +8 -0
- package/types/indigina-ui-kit-localization.d.ts +15 -0
- package/types/indigina-ui-kit.d.ts +33 -33
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, DestroyRef, ErrorHandler, Injectable, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';
|
|
3
|
+
import { CldrIntlService, IntlService } from '@progress/kendo-angular-intl';
|
|
4
|
+
import { MessageService } from '@progress/kendo-angular-l10n';
|
|
5
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { merge } from 'rxjs';
|
|
8
|
+
|
|
9
|
+
const KIT_LOCALIZATION_LOCALES = new InjectionToken('KIT_LOCALIZATION_LOCALES');
|
|
10
|
+
|
|
11
|
+
class KitLocalizationService extends MessageService {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.translateService = inject(TranslateService);
|
|
15
|
+
this.intlService = inject(CldrIntlService);
|
|
16
|
+
this.destroyRef = inject(DestroyRef);
|
|
17
|
+
this.errorHandler = inject(ErrorHandler);
|
|
18
|
+
this.locales = inject(KIT_LOCALIZATION_LOCALES);
|
|
19
|
+
this.messages = new Map();
|
|
20
|
+
this.loading = new Map();
|
|
21
|
+
this.language = 'en';
|
|
22
|
+
this.fallbackLanguage = null;
|
|
23
|
+
this.synchronizationId = 0;
|
|
24
|
+
}
|
|
25
|
+
async initialize() {
|
|
26
|
+
await this.synchronize();
|
|
27
|
+
if (this.destroyRef.destroyed) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (this.getLanguage() !== this.language ||
|
|
31
|
+
this.translateService.getFallbackLang() !== this.fallbackLanguage) {
|
|
32
|
+
return this.initialize();
|
|
33
|
+
}
|
|
34
|
+
merge(this.translateService.onLangChange, this.translateService.onTranslationChange, this.translateService.onFallbackLangChange)
|
|
35
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
36
|
+
.subscribe(() => {
|
|
37
|
+
this.synchronize().catch((error) => {
|
|
38
|
+
if (!this.destroyRef.destroyed) {
|
|
39
|
+
this.errorHandler.handleError(error);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
get(key) {
|
|
45
|
+
const translationKey = `kit.${key}`;
|
|
46
|
+
const translated = this.translateService.instant(translationKey);
|
|
47
|
+
if (typeof translated === 'string' && translated !== translationKey) {
|
|
48
|
+
return translated;
|
|
49
|
+
}
|
|
50
|
+
return this.messages.get(this.language)?.[key] ??
|
|
51
|
+
(this.fallbackLanguage ? this.messages.get(this.fallbackLanguage)?.[key] : undefined);
|
|
52
|
+
}
|
|
53
|
+
loadLocale(locale) {
|
|
54
|
+
if (this.messages.has(locale.language)) {
|
|
55
|
+
return Promise.resolve();
|
|
56
|
+
}
|
|
57
|
+
const pending = this.loading.get(locale.language);
|
|
58
|
+
if (pending) {
|
|
59
|
+
return pending;
|
|
60
|
+
}
|
|
61
|
+
const loading = locale.load()
|
|
62
|
+
.then(messages => {
|
|
63
|
+
this.messages.set(locale.language, messages);
|
|
64
|
+
})
|
|
65
|
+
.finally(() => this.loading.delete(locale.language));
|
|
66
|
+
this.loading.set(locale.language, loading);
|
|
67
|
+
return loading;
|
|
68
|
+
}
|
|
69
|
+
getLocale(language) {
|
|
70
|
+
const locale = this.locales.find(item => item.language === language);
|
|
71
|
+
if (!locale) {
|
|
72
|
+
throw new Error(`UI Kit localization has no registered locale for language "${language}".`);
|
|
73
|
+
}
|
|
74
|
+
return locale;
|
|
75
|
+
}
|
|
76
|
+
getLanguage() {
|
|
77
|
+
return this.translateService.getCurrentLang() ??
|
|
78
|
+
this.translateService.getFallbackLang() ??
|
|
79
|
+
'en';
|
|
80
|
+
}
|
|
81
|
+
async synchronize() {
|
|
82
|
+
const synchronizationId = ++this.synchronizationId;
|
|
83
|
+
const language = this.getLanguage();
|
|
84
|
+
const fallbackLanguage = this.translateService.getFallbackLang();
|
|
85
|
+
const locale = this.getLocale(language);
|
|
86
|
+
const fallbackLocale = fallbackLanguage ? this.getLocale(fallbackLanguage) : undefined;
|
|
87
|
+
if (!this.messages.has(language) || (fallbackLanguage && !this.messages.has(fallbackLanguage))) {
|
|
88
|
+
await Promise.all([
|
|
89
|
+
this.loadLocale(locale),
|
|
90
|
+
...(fallbackLocale ? [this.loadLocale(fallbackLocale)] : []),
|
|
91
|
+
]);
|
|
92
|
+
}
|
|
93
|
+
if (this.destroyRef.destroyed || synchronizationId !== this.synchronizationId) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
this.language = language;
|
|
97
|
+
this.fallbackLanguage = fallbackLanguage;
|
|
98
|
+
this.intlService.localeId = locale.localeId;
|
|
99
|
+
this.notify();
|
|
100
|
+
}
|
|
101
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: KitLocalizationService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
102
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: KitLocalizationService }); }
|
|
103
|
+
}
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: KitLocalizationService, decorators: [{
|
|
105
|
+
type: Injectable
|
|
106
|
+
}] });
|
|
107
|
+
|
|
108
|
+
function provideKitLocalization(options) {
|
|
109
|
+
if (!options.locales.length) {
|
|
110
|
+
throw new Error('UI Kit localization requires at least one registered locale.');
|
|
111
|
+
}
|
|
112
|
+
if (new Set(options.locales.map(locale => locale.language)).size !== options.locales.length) {
|
|
113
|
+
throw new Error('UI Kit localization cannot register the same language more than once.');
|
|
114
|
+
}
|
|
115
|
+
return makeEnvironmentProviders([
|
|
116
|
+
{ provide: KIT_LOCALIZATION_LOCALES, useValue: [...options.locales] },
|
|
117
|
+
{
|
|
118
|
+
provide: CldrIntlService,
|
|
119
|
+
useFactory: () => new CldrIntlService('en'),
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
provide: IntlService,
|
|
123
|
+
useExisting: CldrIntlService,
|
|
124
|
+
},
|
|
125
|
+
KitLocalizationService,
|
|
126
|
+
{
|
|
127
|
+
provide: MessageService,
|
|
128
|
+
useExisting: KitLocalizationService,
|
|
129
|
+
},
|
|
130
|
+
provideAppInitializer(() => inject(KitLocalizationService).initialize()),
|
|
131
|
+
]);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Generated bundle index. Do not edit.
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
export { provideKitLocalization };
|
|
139
|
+
//# sourceMappingURL=indigina-ui-kit-localization.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indigina-ui-kit-localization.mjs","sources":["../../../projects/ui-kit/localization/src/lib/services/kit-localization/kit-localization.token.ts","../../../projects/ui-kit/localization/src/lib/services/kit-localization/kit-localization.service.ts","../../../projects/ui-kit/localization/src/lib/services/kit-localization/kit-localization.provider.ts","../../../projects/ui-kit/localization/indigina-ui-kit-localization.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { KitLocale } from './kit-localization.model';\n\nexport const KIT_LOCALIZATION_LOCALES: InjectionToken<readonly KitLocale[]> =\n new InjectionToken<readonly KitLocale[]>('KIT_LOCALIZATION_LOCALES');\n","import { DestroyRef, ErrorHandler, Injectable, inject } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { TranslateService } from '@ngx-translate/core';\nimport { CldrIntlService } from '@progress/kendo-angular-intl';\nimport { MessageService } from '@progress/kendo-angular-l10n';\nimport { merge } from 'rxjs';\nimport { KitLocale } from './kit-localization.model';\nimport { KIT_LOCALIZATION_LOCALES } from './kit-localization.token';\n\n@Injectable()\nexport class KitLocalizationService extends MessageService {\n private readonly translateService: TranslateService = inject(TranslateService);\n private readonly intlService: CldrIntlService = inject(CldrIntlService);\n private readonly destroyRef: DestroyRef = inject(DestroyRef);\n private readonly errorHandler: ErrorHandler = inject(ErrorHandler);\n private readonly locales: readonly KitLocale[] = inject(KIT_LOCALIZATION_LOCALES);\n\n private readonly messages: Map<string, Readonly<Record<string, string>>> = new Map();\n private readonly loading: Map<string, Promise<void>> = new Map();\n private language: string = 'en';\n private fallbackLanguage: string | null = null;\n private synchronizationId: number = 0;\n\n async initialize(): Promise<void> {\n await this.synchronize();\n\n if (this.destroyRef.destroyed) {\n return;\n }\n\n if (\n this.getLanguage() !== this.language ||\n this.translateService.getFallbackLang() !== this.fallbackLanguage\n ) {\n return this.initialize();\n }\n\n merge(\n this.translateService.onLangChange,\n this.translateService.onTranslationChange,\n this.translateService.onFallbackLangChange,\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n this.synchronize().catch((error: unknown) => {\n if (!this.destroyRef.destroyed) {\n this.errorHandler.handleError(error);\n }\n });\n });\n }\n\n override get(key: string): string | undefined {\n const translationKey: string = `kit.${key}`;\n const translated: unknown = this.translateService.instant(translationKey);\n\n if (typeof translated === 'string' && translated !== translationKey) {\n return translated;\n }\n\n return this.messages.get(this.language)?.[key] ??\n (this.fallbackLanguage ? this.messages.get(this.fallbackLanguage)?.[key] : undefined);\n }\n\n private loadLocale(locale: KitLocale): Promise<void> {\n if (this.messages.has(locale.language)) {\n return Promise.resolve();\n }\n\n const pending: Promise<void> | undefined = this.loading.get(locale.language);\n\n if (pending) {\n return pending;\n }\n\n const loading: Promise<void> = locale.load()\n .then(messages => {\n this.messages.set(locale.language, messages);\n })\n .finally(() => this.loading.delete(locale.language));\n this.loading.set(locale.language, loading);\n\n return loading;\n }\n\n private getLocale(language: string): KitLocale {\n const locale: KitLocale | undefined = this.locales.find(item => item.language === language);\n\n if (!locale) {\n throw new Error(`UI Kit localization has no registered locale for language \"${language}\".`);\n }\n\n return locale;\n }\n\n private getLanguage(): string {\n return this.translateService.getCurrentLang() ??\n this.translateService.getFallbackLang() ??\n 'en';\n }\n\n private async synchronize(): Promise<void> {\n const synchronizationId: number = ++this.synchronizationId;\n const language: string = this.getLanguage();\n const fallbackLanguage: string | null = this.translateService.getFallbackLang();\n const locale: KitLocale = this.getLocale(language);\n const fallbackLocale: KitLocale | undefined = fallbackLanguage ? this.getLocale(fallbackLanguage) : undefined;\n\n if (!this.messages.has(language) || (fallbackLanguage && !this.messages.has(fallbackLanguage))) {\n await Promise.all([\n this.loadLocale(locale),\n ...(fallbackLocale ? [this.loadLocale(fallbackLocale)] : []),\n ]);\n }\n\n if (this.destroyRef.destroyed || synchronizationId !== this.synchronizationId) {\n return;\n }\n\n this.language = language;\n this.fallbackLanguage = fallbackLanguage;\n this.intlService.localeId = locale.localeId;\n this.notify();\n }\n}\n","import { EnvironmentProviders, inject, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';\nimport { CldrIntlService, IntlService } from '@progress/kendo-angular-intl';\nimport { MessageService } from '@progress/kendo-angular-l10n';\nimport { KitLocalizationOptions } from './kit-localization.model';\nimport { KitLocalizationService } from './kit-localization.service';\nimport { KIT_LOCALIZATION_LOCALES } from './kit-localization.token';\n\nexport function provideKitLocalization(options: KitLocalizationOptions): EnvironmentProviders {\n if (!options.locales.length) {\n throw new Error('UI Kit localization requires at least one registered locale.');\n }\n\n if (new Set(options.locales.map(locale => locale.language)).size !== options.locales.length) {\n throw new Error('UI Kit localization cannot register the same language more than once.');\n }\n\n return makeEnvironmentProviders([\n { provide: KIT_LOCALIZATION_LOCALES, useValue: [...options.locales] },\n {\n provide: CldrIntlService,\n useFactory: (): CldrIntlService => new CldrIntlService('en'),\n },\n {\n provide: IntlService,\n useExisting: CldrIntlService,\n },\n KitLocalizationService,\n {\n provide: MessageService,\n useExisting: KitLocalizationService,\n },\n provideAppInitializer(() => inject(KitLocalizationService).initialize()),\n ]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAGO,MAAM,wBAAwB,GACnC,IAAI,cAAc,CAAuB,0BAA0B,CAAC;;ACMhE,MAAO,sBAAuB,SAAQ,cAAc,CAAA;AAD1D,IAAA,WAAA,GAAA;;AAEmB,QAAA,IAAA,CAAA,gBAAgB,GAAqB,MAAM,CAAC,gBAAgB,CAAC;AAC7D,QAAA,IAAA,CAAA,WAAW,GAAoB,MAAM,CAAC,eAAe,CAAC;AACtD,QAAA,IAAA,CAAA,UAAU,GAAe,MAAM,CAAC,UAAU,CAAC;AAC3C,QAAA,IAAA,CAAA,YAAY,GAAiB,MAAM,CAAC,YAAY,CAAC;AACjD,QAAA,IAAA,CAAA,OAAO,GAAyB,MAAM,CAAC,wBAAwB,CAAC;AAEhE,QAAA,IAAA,CAAA,QAAQ,GAAkD,IAAI,GAAG,EAAE;AACnE,QAAA,IAAA,CAAA,OAAO,GAA+B,IAAI,GAAG,EAAE;QACxD,IAAA,CAAA,QAAQ,GAAW,IAAI;QACvB,IAAA,CAAA,gBAAgB,GAAkB,IAAI;QACtC,IAAA,CAAA,iBAAiB,GAAW,CAAC;AAuGtC,IAAA;AArGC,IAAA,MAAM,UAAU,GAAA;AACd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