@progress/kendo-angular-l10n 3.0.2 → 4.0.0-next.202202031612

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.
Files changed (35) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/bundles/kendo-angular-l10n.umd.js +5 -0
  5. package/{dist/es2015/component-messages.d.ts → component-messages.d.ts} +4 -1
  6. package/{dist/es2015 → esm2015}/component-messages.js +8 -0
  7. package/{dist/es/index.js → esm2015/kendo-angular-l10n.js} +0 -0
  8. package/{dist/es2015 → esm2015}/localization.service.js +19 -12
  9. package/{dist/es → esm2015}/main.js +0 -0
  10. package/{dist/es2015 → esm2015}/message.service.js +12 -14
  11. package/{dist/es2015 → esm2015}/rtl.js +0 -0
  12. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-l10n.js} +38 -24
  13. package/{dist/es2015/index.js → kendo-angular-l10n.d.ts} +1 -0
  14. package/{dist/es2015/localization.service.d.ts → localization.service.d.ts} +4 -1
  15. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  16. package/{dist/es2015/message.service.d.ts → message.service.d.ts} +9 -2
  17. package/package.json +30 -102
  18. package/{dist/es2015/rtl.d.ts → rtl.d.ts} +0 -0
  19. package/dist/cdn/js/kendo-angular-l10n.js +0 -20
  20. package/dist/cdn/main.js +0 -5
  21. package/dist/es/component-messages.js +0 -44
  22. package/dist/es/localization.service.js +0 -94
  23. package/dist/es/message.service.js +0 -43
  24. package/dist/es/rtl.js +0 -15
  25. package/dist/es2015/index.d.ts +0 -8
  26. package/dist/es2015/index.metadata.json +0 -1
  27. package/dist/es2015/main.js +0 -8
  28. package/dist/fesm5/index.js +0 -184
  29. package/dist/npm/component-messages.js +0 -46
  30. package/dist/npm/index.js +0 -11
  31. package/dist/npm/localization.service.js +0 -96
  32. package/dist/npm/main.js +0 -11
  33. package/dist/npm/message.service.js +0 -45
  34. package/dist/npm/rtl.js +0 -17
  35. package/dist/systemjs/kendo-angular-l10n.js +0 -5
@@ -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
- readonly rtl: boolean;
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 key - The message key. For example, `"kendo.grid.noRecords"`.
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(key: string): string | undefined;
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,31 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-l10n",
3
+ "version": "4.0.0-next.202202031612",
3
4
  "description": "Localization Services - Kendo UI Angular",
4
- "author": "Progress",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
- "version": "3.0.2",
7
- "main": "dist/npm/index.js",
8
- "module": "dist/fesm5/index.js",
9
- "es2015": "dist/fesm2015/index.js",
10
- "esm5": "dist/es/index.js",
11
- "esm2015": "dist/es2015/index.js",
12
- "jsnext:main": "dist/es/index.js",
13
- "typings": "dist/es2015/index.d.ts",
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
- "Kendo UI",
29
- "Angular"
16
+ "Angular",
17
+ "Kendo UI"
30
18
  ],
31
- "peerDependencies": {
32
- "@angular/common": "8 - 12",
33
- "@angular/core": "8 - 12",
34
- "rxjs": "^6.4.0"
19
+ "@progress": {
20
+ "friendlyName": "Localization"
35
21
  },
36
22
  "dependencies": {
37
- "tslib": "^1.9.0"
23
+ "tslib": "^2.3.1"
38
24
  },
39
- "devDependencies": {
40
- "@angular-devkit/core": "^8.2.0",
41
- "@angular-devkit/schematics": "^8.2.0",
42
- "@angular/animations": "^8.2.0",
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.0.2",
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"
25
+ "peerDependencies": {
26
+ "@angular/common": "^12.0.0 || ^13.0.0",
27
+ "@angular/core": "^12.0.0 || ^13.0.0",
28
+ "rxjs": "^6.5.3 || ^7.0.0"
92
29
  },
93
30
  "config": {
94
31
  "commitizen": {
@@ -113,27 +50,16 @@
113
50
  "maxSubjectLength": 100
114
51
  }
115
52
  },
116
- "jest": {
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/",
53
+ "schematics": "./schematics/collection.json",
130
54
  "release": {
131
55
  "debug": false,
132
56
  "branchTags": {
133
- "develop": "dev"
57
+ "develop": "dev",
58
+ "ng12-update": "next"
134
59
  },
135
60
  "fallbackTags": {
136
- "dev": "latest"
61
+ "dev": "latest",
62
+ "next": "latest"
137
63
  },
138
64
  "analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
139
65
  "generateNotes": "@telerik/semantic-prerelease/generateNotes",
@@ -141,9 +67,11 @@
141
67
  "verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
142
68
  "verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
143
69
  },
144
- "schematics": "./schematics/collection.json",
145
- "files": [
146
- "dist",
147
- "schematics"
148
- ]
70
+ "main": "bundles/kendo-angular-l10n.umd.js",
71
+ "module": "fesm2015/kendo-angular-l10n.js",
72
+ "es2015": "fesm2015/kendo-angular-l10n.js",
73
+ "esm2015": "esm2015/kendo-angular-l10n.js",
74
+ "fesm2015": "fesm2015/kendo-angular-l10n.js",
75
+ "typings": "kendo-angular-l10n.d.ts",
76
+ "sideEffects": false
149
77
  }
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(["@angular/core","rxjs","rxjs/operators"],e):"object"==typeof exports?exports.KendoAngularL10N=e(require("@angular/core"),require("rxjs"),require("rxjs/operators")):t.KendoAngularL10N=e(t["@angular/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(["tslib","@angular/core","rxjs","rxjs/operators"],t):"object"==typeof exports?exports.KendoAngularL10N=t(require("tslib"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):e.KendoAngularL10N=t(e.tslib,e["@angular/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 o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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),o=r(1),i=r(3),s=function(){function e(){this.changes=new i.BehaviorSubject({rtl:void 0})}return e.prototype.notify=function(e){this.changes.next({rtl:e})},e.prototype.get=function(e){},e=n.__decorate([o.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),o=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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=r(1),i=r(2),s=r(5),u=r(3),c=r(4);t.L10N_PREFIX=new o.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),o=t;if(!r){if(this.dictionary.hasOwnProperty(n))return;o=this.defaultValue(n,t)}this.dictionary[n]=o},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([o.Injectable(),n.__param(0,o.Inject(t.L10N_PREFIX)),n.__param(1,o.Optional()),n.__param(2,o.Optional()),n.__param(2,o.Inject(s.RTL)),n.__metadata("design:paramtypes",[String,i.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");
@@ -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"}
@@ -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';