@progress/kendo-angular-l10n 3.0.5-dev.202203091016 → 4.0.0-dev.202204131625
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/bundles/kendo-angular-l10n.umd.js +5 -0
- package/{dist/es2015/component-messages.d.ts → component-messages.d.ts} +4 -1
- package/{dist/es2015 → esm2015}/component-messages.js +8 -0
- package/{dist/es/index.js → esm2015/kendo-angular-l10n.js} +0 -0
- package/{dist/es2015 → esm2015}/localization.service.js +19 -12
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/message.service.js +11 -14
- package/{dist/es2015 → esm2015}/rtl.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-l10n.js} +37 -24
- package/{dist/es2015/index.js → kendo-angular-l10n.d.ts} +1 -0
- package/{dist/es2015/localization.service.d.ts → localization.service.d.ts} +4 -1
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/message.service.d.ts → message.service.d.ts} +9 -2
- package/package.json +31 -102
- package/{dist/es2015/rtl.d.ts → rtl.d.ts} +0 -0
- package/dist/cdn/js/kendo-angular-l10n.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/component-messages.js +0 -44
- package/dist/es/localization.service.js +0 -94
- package/dist/es/message.service.js +0 -43
- package/dist/es/rtl.js +0 -15
- package/dist/es2015/index.d.ts +0 -8
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -8
- package/dist/fesm5/index.js +0 -184
- package/dist/npm/component-messages.js +0 -46
- package/dist/npm/index.js +0 -11
- package/dist/npm/localization.service.js +0 -96
- package/dist/npm/main.js +0 -11
- package/dist/npm/message.service.js +0 -45
- package/dist/npm/rtl.js +0 -17
- package/dist/systemjs/kendo-angular-l10n.js +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("KendoAngularL10N",["exports","@angular/core","rxjs","rxjs/operators"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularL10N={},e.ng.core,e.rxjs,e.rxjs.operators)}(this,function(e,t,i,o){"use strict";function r(r){if(r&&r.__esModule)return r;var n=Object.create(null);return r&&Object.keys(r).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(r,e),Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}}))}),n.default=r,Object.freeze(n)}var n=r(t),s=(a.prototype.notify=function(e){this.changes.next({rtl:e})},a.prototype.get=function(e){},a);function a(){this.changes=new i.BehaviorSubject({rtl:void 0})}s.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,deps:[],target:n.ɵɵFactoryTarget.Injectable}),s.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,decorators:[{type:t.Injectable}],ctorParameters:function(){return[]}});Object.defineProperty(p.prototype,"override",{get:function(){return!1},enumerable:!1,configurable:!0}),p.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some(function(e){return!t[e].isFirstChange()})&&this.service.notifyChanges()},p.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(o.skip(1)).subscribe(function(){return e.register(e)})},p.prototype.register=function(e){var t=this;Object.keys(e).forEach(function(e){return t.service.register(e,t[e],t.override)})},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};var c=p;function p(){}c.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:c,deps:[],target:n.ɵɵFactoryTarget.Directive}),c.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:c,decorators:[{type:t.Directive,args:[{}]}]});var u=new t.InjectionToken("Kendo UI Right-to-Left token"),g=new t.InjectionToken("Localization key prefix"),f=(Object.defineProperty(y.prototype,"rtl",{get:function(){return this._rtl},enumerable:!1,configurable:!0}),y.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},y.prototype.get=function(e){e=this.key(e);return this.dictionary[e]},y.prototype.register=function(e,t,r){void 0===r&&(r=!1);var e=this.key(e),n=t;if(!r){if(this.dictionary.hasOwnProperty(e))return;n=this.defaultValue(e,t)}this.dictionary[e]=n},y.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},y.prototype.key=function(e){return this.prefix+"."+e},y.prototype.defaultValue=function(e,t){if(!this.messageService)return t;e=this.messageService.get(e);return void 0===e?t:e},y);function y(e,t,r){var n=this;this.prefix=e,this.messageService=t,this._rtl=r,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(o.map(function(e){e=e.rtl;return void 0!==e?e:n._rtl}),o.tap(function(e){return n._rtl=e})).subscribe(function(e){n.dictionary={},n.changes.next({rtl:e})}))}f.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f,deps:[{token:g},{token:s,optional:!0},{token:u,optional:!0}],target:n.ɵɵFactoryTarget.Injectable}),f.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f,decorators:[{type:t.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:t.Inject,args:[g]}]},{type:s,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[u]}]}]}}),e.ComponentMessages=c,e.L10N_PREFIX=g,e.LocalizationService=f,e.MessageService=s,e.RTL=u,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { OnChanges, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from './localization.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Base class that acts as a component messages container.
|
|
9
10
|
*
|
|
@@ -13,9 +14,11 @@ import { LocalizationService } from './localization.service';
|
|
|
13
14
|
export declare abstract class ComponentMessages implements OnChanges, OnInit, OnDestroy {
|
|
14
15
|
protected service: LocalizationService;
|
|
15
16
|
private subscription;
|
|
16
|
-
protected
|
|
17
|
+
protected get override(): boolean;
|
|
17
18
|
ngOnChanges(changes: SimpleChanges): void;
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
protected register(changes: Object): void;
|
|
20
21
|
ngOnDestroy(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentMessages, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ComponentMessages, never, never, {}, {}, never>;
|
|
21
24
|
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive } from '@angular/core';
|
|
5
6
|
import { skip } from "rxjs/operators";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
6
8
|
/**
|
|
7
9
|
* Base class that acts as a component messages container.
|
|
8
10
|
*
|
|
@@ -32,3 +34,9 @@ export class ComponentMessages {
|
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
}
|
|
37
|
+
ComponentMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
38
|
+
ComponentMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ComponentMessages, usesOnChanges: true, ngImport: i0 });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, decorators: [{
|
|
40
|
+
type: Directive,
|
|
41
|
+
args: [{}]
|
|
42
|
+
}] });
|
|
File without changes
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { Inject, Injectable, Optional, InjectionToken } from '@angular/core';
|
|
7
|
-
import { MessageService } from './message.service';
|
|
8
6
|
import { RTL } from './rtl';
|
|
9
7
|
import { BehaviorSubject } from 'rxjs';
|
|
10
8
|
import { map, tap } from 'rxjs/operators';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./message.service";
|
|
11
11
|
/**
|
|
12
12
|
* Localization prefix for the component messages.
|
|
13
13
|
*
|
|
@@ -21,7 +21,7 @@ export const L10N_PREFIX = new InjectionToken('Localization key prefix');
|
|
|
21
21
|
* For internal use.
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
export class LocalizationService {
|
|
25
25
|
constructor(prefix, messageService, _rtl) {
|
|
26
26
|
this.prefix = prefix;
|
|
27
27
|
this.messageService = messageService;
|
|
@@ -73,12 +73,19 @@ let LocalizationService = class LocalizationService {
|
|
|
73
73
|
const alt = this.messageService.get(key);
|
|
74
74
|
return (alt === undefined) ? value : alt;
|
|
75
75
|
}
|
|
76
|
-
}
|
|
77
|
-
LocalizationService =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
]
|
|
84
|
-
|
|
76
|
+
}
|
|
77
|
+
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService });
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, decorators: [{
|
|
80
|
+
type: Injectable
|
|
81
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
82
|
+
type: Inject,
|
|
83
|
+
args: [L10N_PREFIX]
|
|
84
|
+
}] }, { type: i1.MessageService, decorators: [{
|
|
85
|
+
type: Optional
|
|
86
|
+
}] }, { type: undefined, decorators: [{
|
|
87
|
+
type: Optional
|
|
88
|
+
}, {
|
|
89
|
+
type: Inject,
|
|
90
|
+
args: [RTL]
|
|
91
|
+
}] }]; } });
|
|
File without changes
|
|
@@ -2,21 +2,17 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { Injectable } from '@angular/core';
|
|
7
6
|
import { BehaviorSubject } from 'rxjs';
|
|
8
|
-
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
9
8
|
/**
|
|
10
9
|
* A base class for a service that returns localized messages.
|
|
11
10
|
*
|
|
12
11
|
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
13
12
|
*/
|
|
14
|
-
|
|
15
|
-
/* tslint:disable:max-line-length */
|
|
13
|
+
export class MessageService {
|
|
16
14
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
15
|
+
* @hidden
|
|
20
16
|
*/
|
|
21
17
|
constructor() {
|
|
22
18
|
/**
|
|
@@ -35,14 +31,15 @@ let MessageService = class MessageService {
|
|
|
35
31
|
/**
|
|
36
32
|
* Returns a localized message for the supplied key.
|
|
37
33
|
*
|
|
38
|
-
* @param
|
|
34
|
+
* @param _key - The message key. For example, `"kendo.grid.noRecords"`.
|
|
39
35
|
* @return - The localized message for this key or `undefined` if not found.
|
|
40
36
|
*/
|
|
41
|
-
get(
|
|
37
|
+
get(_key) {
|
|
42
38
|
return undefined;
|
|
43
39
|
}
|
|
44
|
-
}
|
|
45
|
-
MessageService =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
}
|
|
41
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
|
|
44
|
+
type: Injectable
|
|
45
|
+
}], ctorParameters: function () { return []; } });
|
|
File without changes
|
|
@@ -2,23 +2,19 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { Injectable, InjectionToken, Inject, Optional } from '@angular/core';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { Injectable, Directive, InjectionToken, Inject, Optional } from '@angular/core';
|
|
7
7
|
import { BehaviorSubject } from 'rxjs';
|
|
8
8
|
import { skip, map, tap } from 'rxjs/operators';
|
|
9
9
|
|
|
10
|
-
/* tslint:disable:max-line-length */
|
|
11
10
|
/**
|
|
12
11
|
* A base class for a service that returns localized messages.
|
|
13
12
|
*
|
|
14
13
|
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
15
14
|
*/
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:max-line-length */
|
|
15
|
+
class MessageService {
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
17
|
+
* @hidden
|
|
22
18
|
*/
|
|
23
19
|
constructor() {
|
|
24
20
|
/**
|
|
@@ -37,16 +33,18 @@ let MessageService = class MessageService {
|
|
|
37
33
|
/**
|
|
38
34
|
* Returns a localized message for the supplied key.
|
|
39
35
|
*
|
|
40
|
-
* @param
|
|
36
|
+
* @param _key - The message key. For example, `"kendo.grid.noRecords"`.
|
|
41
37
|
* @return - The localized message for this key or `undefined` if not found.
|
|
42
38
|
*/
|
|
43
|
-
get(
|
|
39
|
+
get(_key) {
|
|
44
40
|
return undefined;
|
|
45
41
|
}
|
|
46
|
-
}
|
|
47
|
-
MessageService =
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
}
|
|
43
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MessageService, decorators: [{
|
|
46
|
+
type: Injectable
|
|
47
|
+
}], ctorParameters: function () { return []; } });
|
|
50
48
|
|
|
51
49
|
/**
|
|
52
50
|
* Base class that acts as a component messages container.
|
|
@@ -77,6 +75,12 @@ class ComponentMessages {
|
|
|
77
75
|
}
|
|
78
76
|
}
|
|
79
77
|
}
|
|
78
|
+
ComponentMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
79
|
+
ComponentMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ComponentMessages, usesOnChanges: true, ngImport: i0 });
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ComponentMessages, decorators: [{
|
|
81
|
+
type: Directive,
|
|
82
|
+
args: [{}]
|
|
83
|
+
}] });
|
|
80
84
|
|
|
81
85
|
/**
|
|
82
86
|
* A token that specifies the text direction of Kendo UI for Angular components.
|
|
@@ -102,7 +106,7 @@ const L10N_PREFIX = new InjectionToken('Localization key prefix');
|
|
|
102
106
|
* For internal use.
|
|
103
107
|
* @hidden
|
|
104
108
|
*/
|
|
105
|
-
|
|
109
|
+
class LocalizationService {
|
|
106
110
|
constructor(prefix, messageService, _rtl) {
|
|
107
111
|
this.prefix = prefix;
|
|
108
112
|
this.messageService = messageService;
|
|
@@ -154,17 +158,26 @@ let LocalizationService = class LocalizationService {
|
|
|
154
158
|
const alt = this.messageService.get(key);
|
|
155
159
|
return (alt === undefined) ? value : alt;
|
|
156
160
|
}
|
|
157
|
-
}
|
|
158
|
-
LocalizationService =
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
]
|
|
161
|
+
}
|
|
162
|
+
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, deps: [{ token: L10N_PREFIX }, { token: MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService });
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizationService, decorators: [{
|
|
165
|
+
type: Injectable
|
|
166
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
167
|
+
type: Inject,
|
|
168
|
+
args: [L10N_PREFIX]
|
|
169
|
+
}] }, { type: MessageService, decorators: [{
|
|
170
|
+
type: Optional
|
|
171
|
+
}] }, { type: undefined, decorators: [{
|
|
172
|
+
type: Optional
|
|
173
|
+
}, {
|
|
174
|
+
type: Inject,
|
|
175
|
+
args: [RTL]
|
|
176
|
+
}] }]; } });
|
|
165
177
|
|
|
166
178
|
/**
|
|
167
179
|
* Generated bundle index. Do not edit.
|
|
168
180
|
*/
|
|
169
181
|
|
|
170
|
-
export {
|
|
182
|
+
export { ComponentMessages, L10N_PREFIX, LocalizationService, MessageService, RTL };
|
|
183
|
+
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { InjectionToken, OnDestroy } from '@angular/core';
|
|
6
6
|
import { MessageService } from './message.service';
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* Localization prefix for the component messages.
|
|
10
11
|
*
|
|
@@ -28,11 +29,13 @@ export declare class LocalizationService implements OnDestroy {
|
|
|
28
29
|
private subscription;
|
|
29
30
|
private dictionary;
|
|
30
31
|
constructor(prefix: string, messageService: MessageService, _rtl: boolean);
|
|
31
|
-
|
|
32
|
+
get rtl(): boolean;
|
|
32
33
|
ngOnDestroy(): void;
|
|
33
34
|
get(shortKey: string): string;
|
|
34
35
|
register(shortKey: string, value: string, override?: boolean): void;
|
|
35
36
|
notifyChanges(): void;
|
|
36
37
|
private key;
|
|
37
38
|
private defaultValue;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, [null, { optional: true; }, { optional: true; }]>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
|
|
38
41
|
}
|
|
File without changes
|
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* A base class for a service that returns localized messages.
|
|
8
9
|
*
|
|
9
10
|
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
10
11
|
*/
|
|
11
12
|
export declare class MessageService {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
constructor();
|
|
12
17
|
/**
|
|
13
18
|
* @hidden
|
|
14
19
|
*/
|
|
@@ -24,8 +29,10 @@ export declare class MessageService {
|
|
|
24
29
|
/**
|
|
25
30
|
* Returns a localized message for the supplied key.
|
|
26
31
|
*
|
|
27
|
-
* @param
|
|
32
|
+
* @param _key - The message key. For example, `"kendo.grid.noRecords"`.
|
|
28
33
|
* @return - The localized message for this key or `undefined` if not found.
|
|
29
34
|
*/
|
|
30
|
-
get(
|
|
35
|
+
get(_key: string): string | undefined;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
|
|
31
38
|
}
|
package/package.json
CHANGED
|
@@ -1,94 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-l10n",
|
|
3
|
+
"version": "4.0.0-dev.202204131625",
|
|
3
4
|
"description": "Localization Services - Kendo UI Angular",
|
|
4
|
-
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"jsdelivr": "dist/cdn/main.js",
|
|
15
|
-
"unpkg": "dist/cdn/main.js",
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "jest",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"test:ci": "ci-angular-test",
|
|
21
|
-
"start": "gulp start",
|
|
22
|
-
"lint": "gulp lint && gulp lint-docs",
|
|
23
|
-
"api-check": "gulp api-check",
|
|
24
|
-
"build-package": "gulp build-package",
|
|
25
|
-
"semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post"
|
|
6
|
+
"author": "Progress",
|
|
7
|
+
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/telerik/kendo-angular-l10n.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/telerik/kendo-angular"
|
|
26
14
|
},
|
|
27
15
|
"keywords": [
|
|
28
|
-
"
|
|
29
|
-
"
|
|
16
|
+
"Angular",
|
|
17
|
+
"Kendo UI"
|
|
30
18
|
],
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"@angular/core": "8 - 13",
|
|
34
|
-
"rxjs": "^6.4.0 || ^7.0.0"
|
|
19
|
+
"@progress": {
|
|
20
|
+
"friendlyName": "Localization"
|
|
35
21
|
},
|
|
36
22
|
"dependencies": {
|
|
37
|
-
"tslib": "^
|
|
23
|
+
"tslib": "^2.3.1",
|
|
24
|
+
"@progress/kendo-schematics": "^3.0.0"
|
|
38
25
|
},
|
|
39
|
-
"
|
|
40
|
-
"@angular
|
|
41
|
-
"@angular
|
|
42
|
-
"
|
|
43
|
-
"@angular/common": "^8.2.0",
|
|
44
|
-
"@angular/compiler": "^8.2.0",
|
|
45
|
-
"@angular/compiler-cli": "^8.2.0",
|
|
46
|
-
"@angular/core": "^8.2.0",
|
|
47
|
-
"@angular/forms": "^8.2.0",
|
|
48
|
-
"@angular/platform-browser": "^8.2.0",
|
|
49
|
-
"@angular/platform-browser-dynamic": "^8.2.0",
|
|
50
|
-
"@angular/platform-server": "^8.2.0",
|
|
51
|
-
"@angular/router": "^8.2.0",
|
|
52
|
-
"@progress/kendo-angular-buttons": "^6.0.0",
|
|
53
|
-
"@progress/kendo-angular-common": "^2.0.0",
|
|
54
|
-
"@progress/kendo-angular-dateinputs": "^5.0.0",
|
|
55
|
-
"@progress/kendo-angular-dropdowns": "^5.0.0",
|
|
56
|
-
"@progress/kendo-angular-excel-export": "^4.0.0",
|
|
57
|
-
"@progress/kendo-angular-grid": "^5.0.0",
|
|
58
|
-
"@progress/kendo-angular-inputs": "^7.0.0",
|
|
59
|
-
"@progress/kendo-angular-intl": "^3.0.0",
|
|
60
|
-
"@progress/kendo-angular-jest-preset": "^2.0.0",
|
|
61
|
-
"@progress/kendo-angular-l10n": "^3.0.0",
|
|
62
|
-
"@progress/kendo-angular-label": "^3.0.0",
|
|
63
|
-
"@progress/kendo-angular-layout": "^6.0.0",
|
|
64
|
-
"@progress/kendo-angular-pdf-export": "^3.0.0",
|
|
65
|
-
"@progress/kendo-angular-popup": "^4.0.0",
|
|
66
|
-
"@progress/kendo-angular-progressbar": "^2.0.0",
|
|
67
|
-
"@progress/kendo-angular-tasks": "18.1.2-cdn-bundle-v18.10",
|
|
68
|
-
"@progress/kendo-angular-treeview": "^5.0.0",
|
|
69
|
-
"@progress/kendo-data-query": "^1.5.2",
|
|
70
|
-
"@progress/kendo-drawing": "^1.5.12",
|
|
71
|
-
"@progress/kendo-licensing": "^1.0.2",
|
|
72
|
-
"@progress/kendo-theme-default": "^2.0.0",
|
|
73
|
-
"@telerik/semantic-prerelease": "^1.0.0",
|
|
74
|
-
"@types/jasmine": "2.2.34",
|
|
75
|
-
"@types/jest": "^21.1.8",
|
|
76
|
-
"@types/node": "ts3.4",
|
|
77
|
-
"@types/zone.js": "0.0.27",
|
|
78
|
-
"codelyzer": "^5.0.0",
|
|
79
|
-
"core-js": "^2.2.2",
|
|
80
|
-
"cz-conventional-changelog": "^1.1.5",
|
|
81
|
-
"ghooks": "^1.0.3",
|
|
82
|
-
"gulp": "^4.0.0",
|
|
83
|
-
"jest-cli": "^21.2.1",
|
|
84
|
-
"jest-junit": "^8.0.0",
|
|
85
|
-
"rxjs": "~6.4.0",
|
|
86
|
-
"rxjs-tslint-rules": "^4.23.1",
|
|
87
|
-
"semantic-release": "^6.3.6",
|
|
88
|
-
"tslint": "^5.20.1",
|
|
89
|
-
"typescript": "~3.4.5",
|
|
90
|
-
"validate-commit-msg": "^1.1.1",
|
|
91
|
-
"zone.js": "~0.9.1"
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@angular/common": "^12.0.0 || ^13.0.0",
|
|
28
|
+
"@angular/core": "^12.0.0 || ^13.0.0",
|
|
29
|
+
"rxjs": "^6.5.3 || ^7.0.0"
|
|
92
30
|
},
|
|
93
31
|
"config": {
|
|
94
32
|
"commitizen": {
|
|
@@ -113,27 +51,16 @@
|
|
|
113
51
|
"maxSubjectLength": 100
|
|
114
52
|
}
|
|
115
53
|
},
|
|
116
|
-
"
|
|
117
|
-
"preset": "@progress/kendo-angular-jest-preset"
|
|
118
|
-
},
|
|
119
|
-
"repository": {
|
|
120
|
-
"type": "git",
|
|
121
|
-
"url": "https://github.com/telerik/kendo-angular-l10n.git"
|
|
122
|
-
},
|
|
123
|
-
"bugs": {
|
|
124
|
-
"url": "https://github.com/telerik/kendo-angular"
|
|
125
|
-
},
|
|
126
|
-
"@progress": {
|
|
127
|
-
"friendlyName": "Localization"
|
|
128
|
-
},
|
|
129
|
-
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
54
|
+
"schematics": "./schematics/collection.json",
|
|
130
55
|
"release": {
|
|
131
56
|
"debug": false,
|
|
132
57
|
"branchTags": {
|
|
133
|
-
"develop": "dev"
|
|
58
|
+
"develop": "dev",
|
|
59
|
+
"ng12-update": "next"
|
|
134
60
|
},
|
|
135
61
|
"fallbackTags": {
|
|
136
|
-
"dev": "latest"
|
|
62
|
+
"dev": "latest",
|
|
63
|
+
"next": "latest"
|
|
137
64
|
},
|
|
138
65
|
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
139
66
|
"generateNotes": "@telerik/semantic-prerelease/generateNotes",
|
|
@@ -141,9 +68,11 @@
|
|
|
141
68
|
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
|
|
142
69
|
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
|
|
143
70
|
},
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
71
|
+
"main": "bundles/kendo-angular-l10n.umd.js",
|
|
72
|
+
"module": "fesm2015/kendo-angular-l10n.js",
|
|
73
|
+
"es2015": "fesm2015/kendo-angular-l10n.js",
|
|
74
|
+
"esm2015": "esm2015/kendo-angular-l10n.js",
|
|
75
|
+
"fesm2015": "fesm2015/kendo-angular-l10n.js",
|
|
76
|
+
"typings": "kendo-angular-l10n.d.ts",
|
|
77
|
+
"sideEffects": false
|
|
149
78
|
}
|
|
File without changes
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define([,,],e):"object"==typeof exports?exports.KendoAngularL10N=e(require("@angular/core"),require("rxjs"),require("rxjs/operators")):t.KendoAngularL10N=e(t.ng.core,t.rxjs,t.rxjs.operators)}(window,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return u})),n.d(e,"__decorate",(function(){return c})),n.d(e,"__param",(function(){return a})),n.d(e,"__metadata",(function(){return f})),n.d(e,"__awaiter",(function(){return s})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return p})),n.d(e,"__exportStar",(function(){return y})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return h})),n.d(e,"__spread",(function(){return _})),n.d(e,"__spreadArrays",(function(){return b})),n.d(e,"__await",(function(){return v})),n.d(e,"__asyncGenerator",(function(){return g})),n.d(e,"__asyncDelegator",(function(){return m})),n.d(e,"__asyncValues",(function(){return j})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return x})),n.d(e,"__classPrivateFieldGet",(function(){return S})),n.d(e,"__classPrivateFieldSet",(function(){return P}));
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function u(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function c(t,e,n,r){var o,i=arguments.length,u=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(u=(i<3?o(u):i>3?o(e,n,u):o(e,n))||u);return i>3&&u&&Object.defineProperty(e,n,u),u}function a(t,e){return function(n,r){e(n,r,t)}}function f(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function s(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}a((r=r.apply(t,e||[])).next())}))}function l(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function p(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function y(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function _(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function b(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],u=0,c=i.length;u<c;u++,o++)r[o]=i[u];return r}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function g(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||c(t,e)}))})}function c(t,e){try{(n=o[t](e)).value instanceof v?Promise.resolve(n.value.v).then(a,f):s(i[0][2],n)}catch(t){s(i[0][3],t)}var n}function a(t){c("next",t)}function f(t){c("throw",t)}function s(t,e){t(e),i.shift(),i.length&&c(i[0][0],i[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:v(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function j(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function P(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3),u=function(){function t(){this.changes=new i.BehaviorSubject({rtl:void 0})}return t.prototype.notify=function(t){this.changes.next({rtl:t})},t.prototype.get=function(t){},t=r.__decorate([o.Injectable()],t)}();e.MessageService=u},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.RTL=new r.InjectionToken("Kendo UI Right-to-Left token")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(2),e),r.__exportStar(n(7),e),r.__exportStar(n(8),e),r.__exportStar(n(5),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=function(){function t(){}return Object.defineProperty(t.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some((function(e){return!t[e].isFirstChange()}))&&this.service.notifyChanges()},t.prototype.ngOnInit=function(){var t=this;this.subscription=this.service.changes.pipe(r.skip(1)).subscribe((function(){return t.register(t)}))},t.prototype.register=function(t){var e=this;Object.keys(t).forEach((function(t){return e.service.register(t,e[t],e.override)}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t}();e.ComponentMessages=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),u=n(5),c=n(3),a=n(4);e.L10N_PREFIX=new o.InjectionToken("Localization key prefix");var f=function(){function t(t,e,n){var r=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new c.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe(a.map((function(t){var e=t.rtl;return void 0!==e?e:r._rtl})),a.tap((function(t){return r._rtl=t}))).subscribe((function(t){r.dictionary={},r.changes.next({rtl:t})})))}return Object.defineProperty(t.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.get=function(t){var e=this.key(t);return this.dictionary[e]},t.prototype.register=function(t,e,n){void 0===n&&(n=!1);var r=this.key(t),o=e;if(!n){if(this.dictionary.hasOwnProperty(r))return;o=this.defaultValue(r,e)}this.dictionary[r]=o},t.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},t.prototype.key=function(t){return this.prefix+"."+t},t.prototype.defaultValue=function(t,e){if(!this.messageService)return e;var n=this.messageService.get(t);return void 0===n?e:n},t=r.__decorate([o.Injectable(),r.__param(0,o.Inject(e.L10N_PREFIX)),r.__param(1,o.Optional()),r.__param(2,o.Optional()),r.__param(2,o.Inject(u.RTL)),r.__metadata("design:paramtypes",[String,i.MessageService,Boolean])],t)}();e.LocalizationService=f}])}));
|
package/dist/cdn/main.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define([,,,],t):"object"==typeof exports?exports.KendoAngularL10N=t(require("tslib"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):e.KendoAngularL10N=t(e.self,e.ng.core,e.rxjs,e.rxjs.operators)}(window,(function(e,t,r,n){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),o=r(3),s=function(){function e(){this.changes=new o.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=n.__decorate([i.Injectable()],e)}();t.MessageService=s},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.RTL=new n.InjectionToken("Kendo UI Right-to-Left token")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);n.__exportStar(r(2),t),n.__exportStar(r(7),t),n.__exportStar(r(8),t),n.__exportStar(r(5),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4),i=function(){function e(){}return Object.defineProperty(e.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some((function(t){return!e[t].isFirstChange()}))&&this.service.notifyChanges()},e.prototype.ngOnInit=function(){var e=this;this.subscription=this.service.changes.pipe(n.skip(1)).subscribe((function(){return e.register(e)}))},e.prototype.register=function(e){var t=this;Object.keys(e).forEach((function(e){return t.service.register(e,t[e],t.override)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e}();t.ComponentMessages=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),o=r(2),s=r(5),u=r(3),c=r(4);t.L10N_PREFIX=new i.InjectionToken("Localization key prefix");var a=function(){function e(e,t,r){var n=this;this.prefix=e,this.messageService=t,this._rtl=r,this.changes=new u.BehaviorSubject({rtl:this._rtl}),this.dictionary={},t&&(this.subscription=t.changes.pipe(c.map((function(e){var t=e.rtl;return void 0!==t?t:n._rtl})),c.tap((function(e){return n._rtl=e}))).subscribe((function(e){n.dictionary={},n.changes.next({rtl:e})})))}return Object.defineProperty(e.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.get=function(e){var t=this.key(e);return this.dictionary[t]},e.prototype.register=function(e,t,r){void 0===r&&(r=!1);var n=this.key(e),i=t;if(!r){if(this.dictionary.hasOwnProperty(n))return;i=this.defaultValue(n,t)}this.dictionary[n]=i},e.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},e.prototype.key=function(e){return this.prefix+"."+e},e.prototype.defaultValue=function(e,t){if(!this.messageService)return t;var r=this.messageService.get(e);return void 0===r?t:r},e=n.__decorate([i.Injectable(),n.__param(0,i.Inject(t.L10N_PREFIX)),n.__param(1,i.Optional()),n.__param(2,i.Optional()),n.__param(2,i.Inject(s.RTL)),n.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],e)}();t.LocalizationService=a}])}));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { skip } from "rxjs/operators";
|
|
6
|
-
/**
|
|
7
|
-
* Base class that acts as a component messages container.
|
|
8
|
-
*
|
|
9
|
-
* For internal use.
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var ComponentMessages = /** @class */ (function () {
|
|
13
|
-
function ComponentMessages() {
|
|
14
|
-
}
|
|
15
|
-
Object.defineProperty(ComponentMessages.prototype, "override", {
|
|
16
|
-
get: function () {
|
|
17
|
-
return false;
|
|
18
|
-
},
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true
|
|
21
|
-
});
|
|
22
|
-
ComponentMessages.prototype.ngOnChanges = function (changes) {
|
|
23
|
-
this.register(changes);
|
|
24
|
-
if (Object.keys(changes).some(function (field) { return !changes[field].isFirstChange(); })) {
|
|
25
|
-
this.service.notifyChanges();
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
ComponentMessages.prototype.ngOnInit = function () {
|
|
29
|
-
var _this = this;
|
|
30
|
-
this.subscription = this.service.changes.pipe(skip(1)).subscribe(function () { return _this.register(_this); });
|
|
31
|
-
};
|
|
32
|
-
ComponentMessages.prototype.register = function (changes) {
|
|
33
|
-
var _this = this;
|
|
34
|
-
var keys = Object.keys(changes);
|
|
35
|
-
keys.forEach(function (key) { return _this.service.register(key, _this[key], _this.override); });
|
|
36
|
-
};
|
|
37
|
-
ComponentMessages.prototype.ngOnDestroy = function () {
|
|
38
|
-
if (this.subscription) {
|
|
39
|
-
this.subscription.unsubscribe();
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
return ComponentMessages;
|
|
43
|
-
}());
|
|
44
|
-
export { ComponentMessages };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Inject, Injectable, Optional, InjectionToken } from '@angular/core';
|
|
7
|
-
import { MessageService } from './message.service';
|
|
8
|
-
import { RTL } from './rtl';
|
|
9
|
-
import { BehaviorSubject } from 'rxjs';
|
|
10
|
-
import { map, tap } from 'rxjs/operators';
|
|
11
|
-
/**
|
|
12
|
-
* Localization prefix for the component messages.
|
|
13
|
-
*
|
|
14
|
-
* For internal use.
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export var L10N_PREFIX = new InjectionToken('Localization key prefix');
|
|
18
|
-
/**
|
|
19
|
-
* Component localization service.
|
|
20
|
-
*
|
|
21
|
-
* For internal use.
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
var LocalizationService = /** @class */ (function () {
|
|
25
|
-
function LocalizationService(prefix, messageService, _rtl) {
|
|
26
|
-
var _this = this;
|
|
27
|
-
this.prefix = prefix;
|
|
28
|
-
this.messageService = messageService;
|
|
29
|
-
this._rtl = _rtl;
|
|
30
|
-
this.changes = new BehaviorSubject({ rtl: this._rtl });
|
|
31
|
-
this.dictionary = {};
|
|
32
|
-
if (messageService) {
|
|
33
|
-
this.subscription = messageService.changes
|
|
34
|
-
.pipe(map(function (_a) {
|
|
35
|
-
var rtl = _a.rtl;
|
|
36
|
-
return rtl !== undefined ? rtl : _this._rtl;
|
|
37
|
-
}), tap(function (rtl) { return _this._rtl = rtl; }))
|
|
38
|
-
.subscribe(function (rtl) {
|
|
39
|
-
_this.dictionary = {};
|
|
40
|
-
_this.changes.next({ rtl: rtl });
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
Object.defineProperty(LocalizationService.prototype, "rtl", {
|
|
45
|
-
get: function () {
|
|
46
|
-
return this._rtl;
|
|
47
|
-
},
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true
|
|
50
|
-
});
|
|
51
|
-
LocalizationService.prototype.ngOnDestroy = function () {
|
|
52
|
-
if (this.subscription) {
|
|
53
|
-
this.subscription.unsubscribe();
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
LocalizationService.prototype.get = function (shortKey) {
|
|
57
|
-
var key = this.key(shortKey);
|
|
58
|
-
return this.dictionary[key];
|
|
59
|
-
};
|
|
60
|
-
LocalizationService.prototype.register = function (shortKey, value, override) {
|
|
61
|
-
if (override === void 0) { override = false; }
|
|
62
|
-
var key = this.key(shortKey);
|
|
63
|
-
var message = value;
|
|
64
|
-
if (!override) {
|
|
65
|
-
if (this.dictionary.hasOwnProperty(key)) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
message = this.defaultValue(key, value);
|
|
69
|
-
}
|
|
70
|
-
this.dictionary[key] = message;
|
|
71
|
-
};
|
|
72
|
-
LocalizationService.prototype.notifyChanges = function () {
|
|
73
|
-
this.changes.next({ rtl: this.rtl });
|
|
74
|
-
};
|
|
75
|
-
LocalizationService.prototype.key = function (shortKey) {
|
|
76
|
-
return this.prefix + '.' + shortKey;
|
|
77
|
-
};
|
|
78
|
-
LocalizationService.prototype.defaultValue = function (key, value) {
|
|
79
|
-
if (!this.messageService) {
|
|
80
|
-
return value;
|
|
81
|
-
}
|
|
82
|
-
var alt = this.messageService.get(key);
|
|
83
|
-
return (alt === undefined) ? value : alt;
|
|
84
|
-
};
|
|
85
|
-
LocalizationService = tslib_1.__decorate([
|
|
86
|
-
Injectable(),
|
|
87
|
-
tslib_1.__param(0, Inject(L10N_PREFIX)),
|
|
88
|
-
tslib_1.__param(1, Optional()),
|
|
89
|
-
tslib_1.__param(2, Optional()), tslib_1.__param(2, Inject(RTL)),
|
|
90
|
-
tslib_1.__metadata("design:paramtypes", [String, MessageService, Boolean])
|
|
91
|
-
], LocalizationService);
|
|
92
|
-
return LocalizationService;
|
|
93
|
-
}());
|
|
94
|
-
export { LocalizationService };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Injectable } from '@angular/core';
|
|
7
|
-
import { BehaviorSubject } from 'rxjs';
|
|
8
|
-
/* tslint:disable:max-line-length */
|
|
9
|
-
/**
|
|
10
|
-
* A base class for a service that returns localized messages.
|
|
11
|
-
*
|
|
12
|
-
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
13
|
-
*/
|
|
14
|
-
var MessageService = /** @class */ (function () {
|
|
15
|
-
function MessageService() {
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
this.changes = new BehaviorSubject({ rtl: undefined });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Notifies the components that the messages were changed.
|
|
23
|
-
*
|
|
24
|
-
* @param rtl - (Optional) A new value for the [text direction token]({% slug api_l10n_rtl %}).
|
|
25
|
-
*/
|
|
26
|
-
MessageService.prototype.notify = function (rtl) {
|
|
27
|
-
this.changes.next({ rtl: rtl });
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Returns a localized message for the supplied key.
|
|
31
|
-
*
|
|
32
|
-
* @param key - The message key. For example, `"kendo.grid.noRecords"`.
|
|
33
|
-
* @return - The localized message for this key or `undefined` if not found.
|
|
34
|
-
*/
|
|
35
|
-
MessageService.prototype.get = function (key) {
|
|
36
|
-
return undefined;
|
|
37
|
-
};
|
|
38
|
-
MessageService = tslib_1.__decorate([
|
|
39
|
-
Injectable()
|
|
40
|
-
], MessageService);
|
|
41
|
-
return MessageService;
|
|
42
|
-
}());
|
|
43
|
-
export { MessageService };
|
package/dist/es/rtl.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { InjectionToken } from '@angular/core';
|
|
6
|
-
/**
|
|
7
|
-
* A token that specifies the text direction of Kendo UI for Angular components.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* {% embed_file rtl/app.module.ts preview %}
|
|
11
|
-
* {% embed_file rtl/app.component.ts %}
|
|
12
|
-
* {% embed_file shared/main.ts hidden %}
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export var RTL = new InjectionToken("Kendo UI Right-to-Left token");
|
package/dist/es2015/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"MessageService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"notify":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}]}},"ComponentMessages":{"__symbolic":"class","members":{"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"L10N_PREFIX":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":13,"character":31},"arguments":["Localization key prefix"]},"LocalizationService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":5},"arguments":[{"__symbolic":"reference","name":"L10N_PREFIX"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":30,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":31,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":17},"arguments":[{"__symbolic":"reference","name":"RTL"}]}]],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"MessageService"},{"__symbolic":"reference","name":"boolean"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"notifyChanges":[{"__symbolic":"method"}],"key":[{"__symbolic":"method"}],"defaultValue":[{"__symbolic":"method"}]}},"RTL":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":23},"arguments":["Kendo UI Right-to-Left token"]}},"origins":{"MessageService":"./message.service","ComponentMessages":"./component-messages","L10N_PREFIX":"./localization.service","LocalizationService":"./localization.service","RTL":"./rtl"},"importAs":"@progress/kendo-angular-l10n"}
|
package/dist/es2015/main.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export * from './message.service';
|
|
6
|
-
export * from './component-messages';
|
|
7
|
-
export * from './localization.service';
|
|
8
|
-
export * from './rtl';
|
package/dist/fesm5/index.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
6
|
-
import { Injectable, InjectionToken, Inject, Optional } from '@angular/core';
|
|
7
|
-
import { BehaviorSubject } from 'rxjs';
|
|
8
|
-
import { skip, map, tap } from 'rxjs/operators';
|
|
9
|
-
|
|
10
|
-
/* tslint:disable:max-line-length */
|
|
11
|
-
/**
|
|
12
|
-
* A base class for a service that returns localized messages.
|
|
13
|
-
*
|
|
14
|
-
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
15
|
-
*/
|
|
16
|
-
var MessageService = /** @class */ (function () {
|
|
17
|
-
function MessageService() {
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
this.changes = new BehaviorSubject({ rtl: undefined });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Notifies the components that the messages were changed.
|
|
25
|
-
*
|
|
26
|
-
* @param rtl - (Optional) A new value for the [text direction token]({% slug api_l10n_rtl %}).
|
|
27
|
-
*/
|
|
28
|
-
MessageService.prototype.notify = function (rtl) {
|
|
29
|
-
this.changes.next({ rtl: rtl });
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Returns a localized message for the supplied key.
|
|
33
|
-
*
|
|
34
|
-
* @param key - The message key. For example, `"kendo.grid.noRecords"`.
|
|
35
|
-
* @return - The localized message for this key or `undefined` if not found.
|
|
36
|
-
*/
|
|
37
|
-
MessageService.prototype.get = function (key) {
|
|
38
|
-
return undefined;
|
|
39
|
-
};
|
|
40
|
-
MessageService = __decorate([
|
|
41
|
-
Injectable()
|
|
42
|
-
], MessageService);
|
|
43
|
-
return MessageService;
|
|
44
|
-
}());
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Base class that acts as a component messages container.
|
|
48
|
-
*
|
|
49
|
-
* For internal use.
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
var ComponentMessages = /** @class */ (function () {
|
|
53
|
-
function ComponentMessages() {
|
|
54
|
-
}
|
|
55
|
-
Object.defineProperty(ComponentMessages.prototype, "override", {
|
|
56
|
-
get: function () {
|
|
57
|
-
return false;
|
|
58
|
-
},
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true
|
|
61
|
-
});
|
|
62
|
-
ComponentMessages.prototype.ngOnChanges = function (changes) {
|
|
63
|
-
this.register(changes);
|
|
64
|
-
if (Object.keys(changes).some(function (field) { return !changes[field].isFirstChange(); })) {
|
|
65
|
-
this.service.notifyChanges();
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
ComponentMessages.prototype.ngOnInit = function () {
|
|
69
|
-
var _this = this;
|
|
70
|
-
this.subscription = this.service.changes.pipe(skip(1)).subscribe(function () { return _this.register(_this); });
|
|
71
|
-
};
|
|
72
|
-
ComponentMessages.prototype.register = function (changes) {
|
|
73
|
-
var _this = this;
|
|
74
|
-
var keys = Object.keys(changes);
|
|
75
|
-
keys.forEach(function (key) { return _this.service.register(key, _this[key], _this.override); });
|
|
76
|
-
};
|
|
77
|
-
ComponentMessages.prototype.ngOnDestroy = function () {
|
|
78
|
-
if (this.subscription) {
|
|
79
|
-
this.subscription.unsubscribe();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
return ComponentMessages;
|
|
83
|
-
}());
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* A token that specifies the text direction of Kendo UI for Angular components.
|
|
87
|
-
*
|
|
88
|
-
* @example
|
|
89
|
-
* {% embed_file rtl/app.module.ts preview %}
|
|
90
|
-
* {% embed_file rtl/app.component.ts %}
|
|
91
|
-
* {% embed_file shared/main.ts hidden %}
|
|
92
|
-
*
|
|
93
|
-
*/
|
|
94
|
-
var RTL = new InjectionToken("Kendo UI Right-to-Left token");
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Localization prefix for the component messages.
|
|
98
|
-
*
|
|
99
|
-
* For internal use.
|
|
100
|
-
* @hidden
|
|
101
|
-
*/
|
|
102
|
-
var L10N_PREFIX = new InjectionToken('Localization key prefix');
|
|
103
|
-
/**
|
|
104
|
-
* Component localization service.
|
|
105
|
-
*
|
|
106
|
-
* For internal use.
|
|
107
|
-
* @hidden
|
|
108
|
-
*/
|
|
109
|
-
var LocalizationService = /** @class */ (function () {
|
|
110
|
-
function LocalizationService(prefix, messageService, _rtl) {
|
|
111
|
-
var _this = this;
|
|
112
|
-
this.prefix = prefix;
|
|
113
|
-
this.messageService = messageService;
|
|
114
|
-
this._rtl = _rtl;
|
|
115
|
-
this.changes = new BehaviorSubject({ rtl: this._rtl });
|
|
116
|
-
this.dictionary = {};
|
|
117
|
-
if (messageService) {
|
|
118
|
-
this.subscription = messageService.changes
|
|
119
|
-
.pipe(map(function (_a) {
|
|
120
|
-
var rtl = _a.rtl;
|
|
121
|
-
return rtl !== undefined ? rtl : _this._rtl;
|
|
122
|
-
}), tap(function (rtl) { return _this._rtl = rtl; }))
|
|
123
|
-
.subscribe(function (rtl) {
|
|
124
|
-
_this.dictionary = {};
|
|
125
|
-
_this.changes.next({ rtl: rtl });
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
Object.defineProperty(LocalizationService.prototype, "rtl", {
|
|
130
|
-
get: function () {
|
|
131
|
-
return this._rtl;
|
|
132
|
-
},
|
|
133
|
-
enumerable: true,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
LocalizationService.prototype.ngOnDestroy = function () {
|
|
137
|
-
if (this.subscription) {
|
|
138
|
-
this.subscription.unsubscribe();
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
LocalizationService.prototype.get = function (shortKey) {
|
|
142
|
-
var key = this.key(shortKey);
|
|
143
|
-
return this.dictionary[key];
|
|
144
|
-
};
|
|
145
|
-
LocalizationService.prototype.register = function (shortKey, value, override) {
|
|
146
|
-
if (override === void 0) { override = false; }
|
|
147
|
-
var key = this.key(shortKey);
|
|
148
|
-
var message = value;
|
|
149
|
-
if (!override) {
|
|
150
|
-
if (this.dictionary.hasOwnProperty(key)) {
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
message = this.defaultValue(key, value);
|
|
154
|
-
}
|
|
155
|
-
this.dictionary[key] = message;
|
|
156
|
-
};
|
|
157
|
-
LocalizationService.prototype.notifyChanges = function () {
|
|
158
|
-
this.changes.next({ rtl: this.rtl });
|
|
159
|
-
};
|
|
160
|
-
LocalizationService.prototype.key = function (shortKey) {
|
|
161
|
-
return this.prefix + '.' + shortKey;
|
|
162
|
-
};
|
|
163
|
-
LocalizationService.prototype.defaultValue = function (key, value) {
|
|
164
|
-
if (!this.messageService) {
|
|
165
|
-
return value;
|
|
166
|
-
}
|
|
167
|
-
var alt = this.messageService.get(key);
|
|
168
|
-
return (alt === undefined) ? value : alt;
|
|
169
|
-
};
|
|
170
|
-
LocalizationService = __decorate([
|
|
171
|
-
Injectable(),
|
|
172
|
-
__param(0, Inject(L10N_PREFIX)),
|
|
173
|
-
__param(1, Optional()),
|
|
174
|
-
__param(2, Optional()), __param(2, Inject(RTL)),
|
|
175
|
-
__metadata("design:paramtypes", [String, MessageService, Boolean])
|
|
176
|
-
], LocalizationService);
|
|
177
|
-
return LocalizationService;
|
|
178
|
-
}());
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Generated bundle index. Do not edit.
|
|
182
|
-
*/
|
|
183
|
-
|
|
184
|
-
export { MessageService, ComponentMessages, L10N_PREFIX, LocalizationService, RTL };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var operators_1 = require("rxjs/operators");
|
|
8
|
-
/**
|
|
9
|
-
* Base class that acts as a component messages container.
|
|
10
|
-
*
|
|
11
|
-
* For internal use.
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
var ComponentMessages = /** @class */ (function () {
|
|
15
|
-
function ComponentMessages() {
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(ComponentMessages.prototype, "override", {
|
|
18
|
-
get: function () {
|
|
19
|
-
return false;
|
|
20
|
-
},
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true
|
|
23
|
-
});
|
|
24
|
-
ComponentMessages.prototype.ngOnChanges = function (changes) {
|
|
25
|
-
this.register(changes);
|
|
26
|
-
if (Object.keys(changes).some(function (field) { return !changes[field].isFirstChange(); })) {
|
|
27
|
-
this.service.notifyChanges();
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
ComponentMessages.prototype.ngOnInit = function () {
|
|
31
|
-
var _this = this;
|
|
32
|
-
this.subscription = this.service.changes.pipe(operators_1.skip(1)).subscribe(function () { return _this.register(_this); });
|
|
33
|
-
};
|
|
34
|
-
ComponentMessages.prototype.register = function (changes) {
|
|
35
|
-
var _this = this;
|
|
36
|
-
var keys = Object.keys(changes);
|
|
37
|
-
keys.forEach(function (key) { return _this.service.register(key, _this[key], _this.override); });
|
|
38
|
-
};
|
|
39
|
-
ComponentMessages.prototype.ngOnDestroy = function () {
|
|
40
|
-
if (this.subscription) {
|
|
41
|
-
this.subscription.unsubscribe();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return ComponentMessages;
|
|
45
|
-
}());
|
|
46
|
-
exports.ComponentMessages = ComponentMessages;
|
package/dist/npm/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
/**
|
|
7
|
-
* Generated bundle index. Do not edit.
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var tslib_1 = require("tslib");
|
|
11
|
-
tslib_1.__exportStar(require("./main"), exports);
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var message_service_1 = require("./message.service");
|
|
10
|
-
var rtl_1 = require("./rtl");
|
|
11
|
-
var rxjs_1 = require("rxjs");
|
|
12
|
-
var operators_1 = require("rxjs/operators");
|
|
13
|
-
/**
|
|
14
|
-
* Localization prefix for the component messages.
|
|
15
|
-
*
|
|
16
|
-
* For internal use.
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
exports.L10N_PREFIX = new core_1.InjectionToken('Localization key prefix');
|
|
20
|
-
/**
|
|
21
|
-
* Component localization service.
|
|
22
|
-
*
|
|
23
|
-
* For internal use.
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
var LocalizationService = /** @class */ (function () {
|
|
27
|
-
function LocalizationService(prefix, messageService, _rtl) {
|
|
28
|
-
var _this = this;
|
|
29
|
-
this.prefix = prefix;
|
|
30
|
-
this.messageService = messageService;
|
|
31
|
-
this._rtl = _rtl;
|
|
32
|
-
this.changes = new rxjs_1.BehaviorSubject({ rtl: this._rtl });
|
|
33
|
-
this.dictionary = {};
|
|
34
|
-
if (messageService) {
|
|
35
|
-
this.subscription = messageService.changes
|
|
36
|
-
.pipe(operators_1.map(function (_a) {
|
|
37
|
-
var rtl = _a.rtl;
|
|
38
|
-
return rtl !== undefined ? rtl : _this._rtl;
|
|
39
|
-
}), operators_1.tap(function (rtl) { return _this._rtl = rtl; }))
|
|
40
|
-
.subscribe(function (rtl) {
|
|
41
|
-
_this.dictionary = {};
|
|
42
|
-
_this.changes.next({ rtl: rtl });
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
Object.defineProperty(LocalizationService.prototype, "rtl", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return this._rtl;
|
|
49
|
-
},
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
LocalizationService.prototype.ngOnDestroy = function () {
|
|
54
|
-
if (this.subscription) {
|
|
55
|
-
this.subscription.unsubscribe();
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
LocalizationService.prototype.get = function (shortKey) {
|
|
59
|
-
var key = this.key(shortKey);
|
|
60
|
-
return this.dictionary[key];
|
|
61
|
-
};
|
|
62
|
-
LocalizationService.prototype.register = function (shortKey, value, override) {
|
|
63
|
-
if (override === void 0) { override = false; }
|
|
64
|
-
var key = this.key(shortKey);
|
|
65
|
-
var message = value;
|
|
66
|
-
if (!override) {
|
|
67
|
-
if (this.dictionary.hasOwnProperty(key)) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
message = this.defaultValue(key, value);
|
|
71
|
-
}
|
|
72
|
-
this.dictionary[key] = message;
|
|
73
|
-
};
|
|
74
|
-
LocalizationService.prototype.notifyChanges = function () {
|
|
75
|
-
this.changes.next({ rtl: this.rtl });
|
|
76
|
-
};
|
|
77
|
-
LocalizationService.prototype.key = function (shortKey) {
|
|
78
|
-
return this.prefix + '.' + shortKey;
|
|
79
|
-
};
|
|
80
|
-
LocalizationService.prototype.defaultValue = function (key, value) {
|
|
81
|
-
if (!this.messageService) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
var alt = this.messageService.get(key);
|
|
85
|
-
return (alt === undefined) ? value : alt;
|
|
86
|
-
};
|
|
87
|
-
LocalizationService = tslib_1.__decorate([
|
|
88
|
-
core_1.Injectable(),
|
|
89
|
-
tslib_1.__param(0, core_1.Inject(exports.L10N_PREFIX)),
|
|
90
|
-
tslib_1.__param(1, core_1.Optional()),
|
|
91
|
-
tslib_1.__param(2, core_1.Optional()), tslib_1.__param(2, core_1.Inject(rtl_1.RTL)),
|
|
92
|
-
tslib_1.__metadata("design:paramtypes", [String, message_service_1.MessageService, Boolean])
|
|
93
|
-
], LocalizationService);
|
|
94
|
-
return LocalizationService;
|
|
95
|
-
}());
|
|
96
|
-
exports.LocalizationService = LocalizationService;
|
package/dist/npm/main.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
tslib_1.__exportStar(require("./message.service"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./component-messages"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./localization.service"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./rtl"), exports);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var rxjs_1 = require("rxjs");
|
|
10
|
-
/* tslint:disable:max-line-length */
|
|
11
|
-
/**
|
|
12
|
-
* A base class for a service that returns localized messages.
|
|
13
|
-
*
|
|
14
|
-
* For more information, refer to the section on [using the message service]({% slug messages_l10n %}#toc-using-the-message-service).
|
|
15
|
-
*/
|
|
16
|
-
var MessageService = /** @class */ (function () {
|
|
17
|
-
function MessageService() {
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
this.changes = new rxjs_1.BehaviorSubject({ rtl: undefined });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Notifies the components that the messages were changed.
|
|
25
|
-
*
|
|
26
|
-
* @param rtl - (Optional) A new value for the [text direction token]({% slug api_l10n_rtl %}).
|
|
27
|
-
*/
|
|
28
|
-
MessageService.prototype.notify = function (rtl) {
|
|
29
|
-
this.changes.next({ rtl: rtl });
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Returns a localized message for the supplied key.
|
|
33
|
-
*
|
|
34
|
-
* @param key - The message key. For example, `"kendo.grid.noRecords"`.
|
|
35
|
-
* @return - The localized message for this key or `undefined` if not found.
|
|
36
|
-
*/
|
|
37
|
-
MessageService.prototype.get = function (key) {
|
|
38
|
-
return undefined;
|
|
39
|
-
};
|
|
40
|
-
MessageService = tslib_1.__decorate([
|
|
41
|
-
core_1.Injectable()
|
|
42
|
-
], MessageService);
|
|
43
|
-
return MessageService;
|
|
44
|
-
}());
|
|
45
|
-
exports.MessageService = MessageService;
|
package/dist/npm/rtl.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var core_1 = require("@angular/core");
|
|
8
|
-
/**
|
|
9
|
-
* A token that specifies the text direction of Kendo UI for Angular components.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* {% embed_file rtl/app.module.ts preview %}
|
|
13
|
-
* {% embed_file rtl/app.component.ts %}
|
|
14
|
-
* {% embed_file shared/main.ts hidden %}
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
exports.RTL = new core_1.InjectionToken("Kendo UI Right-to-Left token");
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
System.register("@progress/kendo-angular-l10n",["tslib","rxjs","@angular/core","rxjs/operators"],function(s){var o,c,u,a;function e(t){return t.__useDefault?t.default:t}return{setters:[function(t){o=e(t)},function(t){c=e(t)},function(t){u=e(t)},function(t){a=e(t)}],execute:function(){function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i;n=[function(t,e){t.exports=u},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n=n(0);e.RTL=new n.InjectionToken("Kendo UI Right-to-Left token")},function(t,e){t.exports=a},function(t,e){t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(4),n=(s.prototype.notify=function(t){this.changes.next({rtl:t})},s.prototype.get=function(t){},r.__decorate([i.Injectable()],s));function s(){this.changes=new o.BehaviorSubject({rtl:void 0})}e.MessageService=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(5),s=n(2),c=n(4),u=n(3),n=(e.L10N_PREFIX=new i.InjectionToken("Localization key prefix"),Object.defineProperty(a.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),a.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},a.prototype.get=function(t){t=this.key(t);return this.dictionary[t]},a.prototype.register=function(t,e,n){void 0===n&&(n=!1);var t=this.key(t),r=e;if(!n){if(this.dictionary.hasOwnProperty(t))return;r=this.defaultValue(t,e)}this.dictionary[t]=r},a.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},a.prototype.key=function(t){return this.prefix+"."+t},a.prototype.defaultValue=function(t,e){if(!this.messageService)return e;t=this.messageService.get(t);return void 0===t?e:t},r.__decorate([i.Injectable(),r.__param(0,i.Inject(e.L10N_PREFIX)),r.__param(1,i.Optional()),r.__param(2,i.Optional()),r.__param(2,i.Inject(s.RTL)),r.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],a));function a(t,e,n){var r=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new c.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe(u.map(function(t){t=t.rtl;return void 0!==t?t:r._rtl}),u.tap(function(t){return r._rtl=t})).subscribe(function(t){r.dictionary={},r.changes.next({rtl:t})}))}e.LocalizationService=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);function i(){}Object.defineProperty(i.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),i.prototype.ngOnChanges=function(e){this.register(e),Object.keys(e).some(function(t){return!e[t].isFirstChange()})&&this.service.notifyChanges()},i.prototype.ngOnInit=function(){var t=this;this.subscription=this.service.changes.pipe(r.skip(1)).subscribe(function(){return t.register(t)})},i.prototype.register=function(t){var e=this;Object.keys(t).forEach(function(t){return e.service.register(t,e[t],e.override)})},i.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.ComponentMessages=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(1),o=(i.__exportStar(n(5),e),i.__exportStar(n(7),e),i.__exportStar(n(6),e),i.__exportStar(n(2),e),e);for(r in o)s(r,o[r])}],i={},r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}}});
|