@progress/kendo-angular-intl 4.0.0 → 4.0.1-dev.202206071423
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-intl.umd.js +1 -1
- package/date.pipe.d.ts +1 -1
- package/esm2015/intl-members.js +1 -1
- package/esm2015/intl.service.js +1 -1
- package/esm2015/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-intl.js +3 -3
- package/intl-members.d.ts +1 -1
- package/intl.service.d.ts +2 -2
- package/number.pipe.d.ts +1 -1
- package/package.json +9 -9
|
@@ -2,4 +2,4 @@
|
|
|
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
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-licensing"),require("@
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-licensing"),require("@progress/kendo-intl")):"function"==typeof define&&define.amd?define("KendoAngularIntl",["exports","@angular/core","@progress/kendo-licensing","@progress/kendo-intl"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularIntl={},e.ng.core,e.KendoLicensing,e.KendoIntl)}(this,function(e,t,r,n){"use strict";function o(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 a=o(t),i=o(n),c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};Object.create;Object.create;var s={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1654611794,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},n="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",l={NoCurrency:"Solution: "+n+"#toc-no-currency",NoCurrencyDisplay:"Solution: "+n+"#toc-no-currency-display",NoCurrencyRegion:"Solution: "+n+"#toc-no-currency-region",NoDateFieldNames:"Solution: "+n+"#toc-no-date-filed-names",NoFirstDay:"Solution: "+n+"#toc-no-first-day",NoGMTInfo:"Solution: "+n+"#toc-no-gmt-info",NoLocale:"Solution: "+n+"#toc-no-locale",NoValidCurrency:"Solution: "+n+"#toc-no-valid-currency",NoWeekData:"Solution: "+n+"#toc-no-week-data"};function u(e){var t=e.message,e=l[Object.keys(l).filter(function(e){return 0===t.indexOf(e)})[0]];return e?t+" "+e:t}function p(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return r.apply(null,e)}catch(e){throw e.message=u(e),e}}}var d=p(i.dateFormatNames),m=p(i.dateFieldName),f=p(i.firstDay),g=p(i.format),y=p(i.formatDate),I=p(i.formatNumber),n=p(i.load),v=p(i.numberSymbols),D=p(i.parseDate),h=p(i.parseNumber),b=p(i.splitDateFormat),N=p(i.toString),k=p(i.weekendRange),F=/_/g;function S(e){return new w(e)}j.prototype.notify=function(){this.changes.emit()};var O=j;function j(){this.changes=new t.EventEmitter,r.validatePackage(s)}O.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,deps:[],target:a.ɵɵFactoryTarget.Injectable}),O.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,providedIn:"root",useFactory:S,deps:[{token:t.LOCALE_ID}]}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:O,decorators:[{type:t.Injectable,args:[{providedIn:"root",useFactory:S,deps:[t.LOCALE_ID]}]}],ctorParameters:function(){return[]}});var w=function(r){var e=o,t=r;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}function o(e){var t=r.call(this)||this;return t.localeId=e,t}return c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n),Object.defineProperty(o.prototype,"localeId",{get:function(){return this.locale},set:function(e){e=e.replace(F,"-");e!==this.locale&&(this.locale=e,this.notify())},enumerable:!1,configurable:!0}),o.prototype.format=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return g(e,t,this.localeId)},o.prototype.toString=function(e,t,r){return N(e,t,r||this.localeId)},o.prototype.formatDate=function(e,t,r){return y(e,t,r||this.localeId)},o.prototype.parseDate=function(e,t,r){return D(e,t,r||this.localeId)},o.prototype.parseNumber=function(e,t,r){return h(e,r||this.localeId,t)},o.prototype.formatNumber=function(e,t,r){return I(e,t,r||this.localeId)},o.prototype.dateFieldName=function(e,t){return m(e,t||this.localeId)},o.prototype.dateFormatNames=function(e,t){return d(t||this.localeId,e)},o.prototype.splitDateFormat=function(e,t){return b(e,t||this.localeId)},o.prototype.numberSymbols=function(e){return v(e||this.localeId)},o.prototype.firstDay=function(e){return f(e||this.localeId)},o.prototype.weekendRange=function(e){return k(e||this.localeId)},o}(O),P=(w.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,deps:[{token:t.LOCALE_ID}],target:a.ɵɵFactoryTarget.Injectable}),w.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:w,decorators:[{type:t.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]}}),_.prototype.transform=function(e,t,r){return void 0===t&&(t=""),(e=this.normalize(e))?this.intlService.formatDate(e,t,r):e},_.prototype.normalize=function(e){return e&&"string"==typeof e?e=this.intlService.parseDate(e):e&&!isNaN(e-parseFloat(e))&&(e=new Date(parseFloat(e))),e},_);function _(e){this.intlService=e}P.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,deps:[{token:O}],target:a.ɵɵFactoryTarget.Pipe}),P.ɵpipe=a.ɵɵngDeclarePipe({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,name:"kendoDate"}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:P,decorators:[{type:t.Pipe,args:[{name:"kendoDate"}]}],ctorParameters:function(){return[{type:O}]}});V.prototype.transform=function(e,t,r){return null!=(e="string"==typeof e?this.intlService.parseNumber(e):e)?this.intlService.formatNumber(e,t,r):e};var C=V;function V(e){this.intlService=e}C.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,deps:[{token:O}],target:a.ɵɵFactoryTarget.Pipe}),C.ɵpipe=a.ɵɵngDeclarePipe({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,name:"kendoNumber"}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:C,decorators:[{type:t.Pipe,args:[{name:"kendoNumber"}]}],ctorParameters:function(){return[{type:O}]}});var M=[P,C],E=function(){};E.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:E,deps:[],target:a.ɵɵFactoryTarget.NgModule}),E.ɵmod=a.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:E,declarations:[P,C],exports:[P,C]}),E.ɵinj=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:E}),a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:a,type:E,decorators:[{type:t.NgModule,args:[{declarations:[M],exports:[M]}]}]}),e.CldrIntlService=w,e.DatePipe=P,e.IntlModule=E,e.IntlService=O,e.NumberPipe=C,e.cldrServiceFactory=S,e.dateFieldName=m,e.dateFormatNames=d,e.firstDay=f,e.format=g,e.formatDate=y,e.formatNumber=I,e.load=n,e.localeData=function(e){try{return i.localeInfo(e)}catch(e){throw e.message=u(e),e}},e.numberSymbols=v,e.parseDate=D,e.parseNumber=h,e.setData=function(e){return i.setData(e)},e.splitDateFormat=b,e.toString=N,e.weekendRange=k,Object.defineProperty(e,"__esModule",{value:!0})});
|
package/date.pipe.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PipeTransform } from '@angular/core';
|
|
6
6
|
import { IntlService } from './intl.service';
|
|
7
|
-
import { DateFormatOptions } from '@
|
|
7
|
+
import { DateFormatOptions } from '@progress/kendo-intl';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* Formats a date value to a string based on the requested format.
|
package/esm2015/intl-members.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 intl from '@
|
|
5
|
+
import * as intl from '@progress/kendo-intl';
|
|
6
6
|
import { errorSolutions } from './error-solutions';
|
|
7
7
|
function formatMessage(error) {
|
|
8
8
|
const message = error.message;
|
package/esm2015/intl.service.js
CHANGED
|
@@ -49,7 +49,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
49
49
|
}], ctorParameters: function () { return []; } });
|
|
50
50
|
/**
|
|
51
51
|
* The Internationalization service implemented by using
|
|
52
|
-
* the CLDR Database via the `@
|
|
52
|
+
* the CLDR Database via the `@progress/kendo-intl` package.
|
|
53
53
|
*/
|
|
54
54
|
export class CldrIntlService extends IntlService {
|
|
55
55
|
/**
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-intl',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1654611794,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, LOCALE_ID, Injectable, Inject, Pipe, NgModule } from '@angular/core';
|
|
7
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
|
-
import * as intl from '@
|
|
8
|
+
import * as intl from '@progress/kendo-intl';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
@@ -14,7 +14,7 @@ const packageMetadata = {
|
|
|
14
14
|
name: '@progress/kendo-angular-intl',
|
|
15
15
|
productName: 'Kendo UI for Angular',
|
|
16
16
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
17
|
-
publishDate:
|
|
17
|
+
publishDate: 1654611794,
|
|
18
18
|
version: '',
|
|
19
19
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
20
20
|
};
|
|
@@ -167,7 +167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
167
167
|
}], ctorParameters: function () { return []; } });
|
|
168
168
|
/**
|
|
169
169
|
* The Internationalization service implemented by using
|
|
170
|
-
* the CLDR Database via the `@
|
|
170
|
+
* the CLDR Database via the `@progress/kendo-intl` package.
|
|
171
171
|
*/
|
|
172
172
|
class CldrIntlService extends IntlService {
|
|
173
173
|
/**
|
package/intl-members.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Locale } from './locale-data.interface';
|
|
6
|
-
export { DateFieldNameOptions, DateFormatNameOptions, DateFormatOptions, NumberFormatOptions, DateFormatPart } from '@
|
|
6
|
+
export { DateFieldNameOptions, DateFormatNameOptions, DateFormatOptions, NumberFormatOptions, DateFormatPart } from '@progress/kendo-intl';
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
package/intl.service.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { EventEmitter } from '@angular/core';
|
|
6
|
-
import { DateFieldNameOptions, DateFormatOptions, DateFormatNameOptions, NumberFormatOptions, DateFormatPart, DayRange } from '@
|
|
6
|
+
import { DateFieldNameOptions, DateFormatOptions, DateFormatNameOptions, NumberFormatOptions, DateFormatPart, DayRange } from '@progress/kendo-intl';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
@@ -141,7 +141,7 @@ export declare abstract class IntlService {
|
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* The Internationalization service implemented by using
|
|
144
|
-
* the CLDR Database via the `@
|
|
144
|
+
* the CLDR Database via the `@progress/kendo-intl` package.
|
|
145
145
|
*/
|
|
146
146
|
export declare class CldrIntlService extends IntlService {
|
|
147
147
|
private locale;
|
package/number.pipe.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PipeTransform } from '@angular/core';
|
|
6
6
|
import { IntlService } from './intl.service';
|
|
7
|
-
import { NumberFormatOptions } from '@
|
|
7
|
+
import { NumberFormatOptions } from '@progress/kendo-intl';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* Formats a number value to a string based on the requested format.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-intl",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1-dev.202206071423",
|
|
4
4
|
"description": "Kendo UI Internationalization for Angular components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"./locales/**/*"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
31
|
+
"@progress/kendo-schematics": "^3.0.0",
|
|
32
|
+
"@progress/kendo-intl": "^3.0.2",
|
|
33
|
+
"tslib": "^2.3.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@angular/common": "12 - 14",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"fallbackTags": {
|
|
72
72
|
"dev": "latest"
|
|
73
73
|
},
|
|
74
|
-
"analyzeCommits": "@
|
|
75
|
-
"generateNotes": "@
|
|
76
|
-
"getLastRelease": "@
|
|
77
|
-
"verifyConditions": "@
|
|
78
|
-
"verifyRelease": "@
|
|
74
|
+
"analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
|
|
75
|
+
"generateNotes": "@progress/semantic-prerelease/generateNotes",
|
|
76
|
+
"getLastRelease": "@progress/semantic-prerelease/getLastRelease",
|
|
77
|
+
"verifyConditions": "@progress/semantic-prerelease/verifyConditions",
|
|
78
|
+
"verifyRelease": "@progress/semantic-prerelease/verifyRelease"
|
|
79
79
|
},
|
|
80
80
|
"main": "bundles/kendo-angular-intl.umd.js",
|
|
81
81
|
"module": "fesm2015/kendo-angular-intl.js",
|