@progress/kendo-react-intl 6.1.1 → 7.0.0-develop.2
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/{dist/es/Intl → Intl}/IntlProvider.d.ts +5 -1
- package/Intl/IntlProviderProps.d.ts +17 -0
- package/{dist/es/Intl → Intl}/IntlService.d.ts +8 -0
- package/Intl/main.d.ts +8 -0
- package/LICENSE.md +1 -1
- package/{dist/es/Localization → Localization}/LocalizationProvider.d.ts +5 -1
- package/Localization/LocalizationProviderProps.d.ts +17 -0
- package/{dist/npm/Localization → Localization}/LocalizationService.d.ts +4 -0
- package/Localization/loadMessages.d.ts +11 -0
- package/Localization/main.d.ts +9 -0
- package/Localization/messages.d.ts +8 -0
- package/coreExports.d.ts +6 -0
- package/dist/cdn/js/kendo-react-intl.js +8 -1
- package/globalization/GlobalizationContext.d.ts +14 -0
- package/hooks/index.d.ts +6 -0
- package/hooks/useInternationalization.d.ts +9 -0
- package/hooks/useLocalization.d.ts +9 -0
- package/index.d.ts +11 -0
- package/index.js +8 -0
- package/index.mjs +261 -0
- package/{dist/npm/intlUtils.d.ts → intlUtils.d.ts} +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +27 -27
- package/about.md +0 -3
- package/dist/es/Intl/IntlProvider.js +0 -62
- package/dist/es/Intl/IntlProviderProps.d.ts +0 -14
- package/dist/es/Intl/IntlProviderProps.js +0 -1
- package/dist/es/Intl/IntlService.js +0 -149
- package/dist/es/Intl/main.d.ts +0 -4
- package/dist/es/Intl/main.js +0 -3
- package/dist/es/Localization/LocalizationProvider.js +0 -62
- package/dist/es/Localization/LocalizationProviderProps.d.ts +0 -14
- package/dist/es/Localization/LocalizationProviderProps.js +0 -1
- package/dist/es/Localization/LocalizationService.d.ts +0 -16
- package/dist/es/Localization/LocalizationService.js +0 -34
- package/dist/es/Localization/loadMessages.d.ts +0 -7
- package/dist/es/Localization/loadMessages.js +0 -35
- package/dist/es/Localization/main.d.ts +0 -5
- package/dist/es/Localization/main.js +0 -4
- package/dist/es/Localization/messages.d.ts +0 -4
- package/dist/es/Localization/messages.js +0 -4
- package/dist/es/coreExports.d.ts +0 -1
- package/dist/es/coreExports.js +0 -1
- package/dist/es/globalization/GlobalizationContext.d.ts +0 -10
- package/dist/es/globalization/GlobalizationContext.js +0 -8
- package/dist/es/hooks/index.d.ts +0 -2
- package/dist/es/hooks/index.js +0 -2
- package/dist/es/hooks/useInternationalization.d.ts +0 -5
- package/dist/es/hooks/useInternationalization.js +0 -6
- package/dist/es/hooks/useLocalization.d.ts +0 -5
- package/dist/es/hooks/useLocalization.js +0 -6
- package/dist/es/intlUtils.d.ts +0 -27
- package/dist/es/intlUtils.js +0 -49
- package/dist/es/main.d.ts +0 -7
- package/dist/es/main.js +0 -7
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/npm/Intl/IntlProvider.d.ts +0 -23
- package/dist/npm/Intl/IntlProvider.js +0 -65
- package/dist/npm/Intl/IntlProviderProps.d.ts +0 -14
- package/dist/npm/Intl/IntlProviderProps.js +0 -2
- package/dist/npm/Intl/IntlService.d.ts +0 -98
- package/dist/npm/Intl/IntlService.js +0 -152
- package/dist/npm/Intl/main.d.ts +0 -4
- package/dist/npm/Intl/main.js +0 -7
- package/dist/npm/Localization/LocalizationProvider.d.ts +0 -23
- package/dist/npm/Localization/LocalizationProvider.js +0 -65
- package/dist/npm/Localization/LocalizationProviderProps.d.ts +0 -14
- package/dist/npm/Localization/LocalizationProviderProps.js +0 -2
- package/dist/npm/Localization/LocalizationService.js +0 -37
- package/dist/npm/Localization/loadMessages.d.ts +0 -7
- package/dist/npm/Localization/loadMessages.js +0 -39
- package/dist/npm/Localization/main.d.ts +0 -5
- package/dist/npm/Localization/main.js +0 -9
- package/dist/npm/Localization/messages.d.ts +0 -4
- package/dist/npm/Localization/messages.js +0 -7
- package/dist/npm/coreExports.d.ts +0 -1
- package/dist/npm/coreExports.js +0 -5
- package/dist/npm/globalization/GlobalizationContext.d.ts +0 -10
- package/dist/npm/globalization/GlobalizationContext.js +0 -11
- package/dist/npm/hooks/index.d.ts +0 -2
- package/dist/npm/hooks/index.js +0 -18
- package/dist/npm/hooks/useInternationalization.d.ts +0 -5
- package/dist/npm/hooks/useInternationalization.js +0 -10
- package/dist/npm/hooks/useLocalization.d.ts +0 -5
- package/dist/npm/hooks/useLocalization.js +0 -10
- package/dist/npm/intlUtils.js +0 -56
- package/dist/npm/main.d.ts +0 -7
- package/dist/npm/main.js +0 -26
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/systemjs/kendo-react-intl.js +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocalizationService = exports.LocalizationProvider = exports.loadMessages = void 0;
|
|
4
|
-
var loadMessages_1 = require("./loadMessages");
|
|
5
|
-
Object.defineProperty(exports, "loadMessages", { enumerable: true, get: function () { return loadMessages_1.loadMessages; } });
|
|
6
|
-
var LocalizationProvider_1 = require("./LocalizationProvider");
|
|
7
|
-
Object.defineProperty(exports, "LocalizationProvider", { enumerable: true, get: function () { return LocalizationProvider_1.LocalizationProvider; } });
|
|
8
|
-
var LocalizationService_1 = require("./LocalizationService");
|
|
9
|
-
Object.defineProperty(exports, "LocalizationService", { enumerable: true, get: function () { return LocalizationService_1.LocalizationService; } });
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart, load } from '@progress/kendo-intl';
|
package/dist/npm/coreExports.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IntlService } from '../Intl/IntlService';
|
|
3
|
-
import { LocalizationService } from '../Localization/LocalizationService';
|
|
4
|
-
/** @hidden */
|
|
5
|
-
export declare type GlobalizationContextType = {
|
|
6
|
-
intl: IntlService;
|
|
7
|
-
localization: LocalizationService;
|
|
8
|
-
};
|
|
9
|
-
/** @hidden */
|
|
10
|
-
export declare const GlobalizationContext: React.Context<GlobalizationContextType>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GlobalizationContext = void 0;
|
|
4
|
-
var React = require("react");
|
|
5
|
-
var IntlService_1 = require("../Intl/IntlService");
|
|
6
|
-
var LocalizationService_1 = require("../Localization/LocalizationService");
|
|
7
|
-
/** @hidden */
|
|
8
|
-
exports.GlobalizationContext = React.createContext({
|
|
9
|
-
intl: new IntlService_1.IntlService('en'),
|
|
10
|
-
localization: new LocalizationService_1.LocalizationService()
|
|
11
|
-
});
|
package/dist/npm/hooks/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./useInternationalization"), exports);
|
|
18
|
-
__exportStar(require("./useLocalization"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useInternationalization = void 0;
|
|
4
|
-
var React = require("react");
|
|
5
|
-
var GlobalizationContext_1 = require("../globalization/GlobalizationContext");
|
|
6
|
-
/**
|
|
7
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to an [IntlService]({% slug api_intl_intlservice %}).
|
|
8
|
-
*/
|
|
9
|
-
var useInternationalization = function () { return React.useContext(GlobalizationContext_1.GlobalizationContext).intl; };
|
|
10
|
-
exports.useInternationalization = useInternationalization;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { LocalizationService } from '../Localization/main';
|
|
2
|
-
/**
|
|
3
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to an [LocalizationService]({% slug api_intl_localizationservice %}).
|
|
4
|
-
*/
|
|
5
|
-
export declare const useLocalization: () => LocalizationService;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useLocalization = void 0;
|
|
4
|
-
var React = require("react");
|
|
5
|
-
var GlobalizationContext_1 = require("../globalization/GlobalizationContext");
|
|
6
|
-
/**
|
|
7
|
-
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to an [LocalizationService]({% slug api_intl_localizationservice %}).
|
|
8
|
-
*/
|
|
9
|
-
var useLocalization = function () { return React.useContext(GlobalizationContext_1.GlobalizationContext).localization; };
|
|
10
|
-
exports.useLocalization = useLocalization;
|
package/dist/npm/intlUtils.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerForLocalization = exports.registerForIntl = exports.provideLocalizationService = exports.provideIntlService = void 0;
|
|
4
|
-
var IntlService_1 = require("./Intl/IntlService");
|
|
5
|
-
var LocalizationService_1 = require("./Localization/LocalizationService");
|
|
6
|
-
var GlobalizationContext_1 = require("./globalization/GlobalizationContext");
|
|
7
|
-
/* eslint-disable max-len */
|
|
8
|
-
/**
|
|
9
|
-
* Provides an internationalization service. When the passed component is a direct or indirect child of `IntlProvider`, the returned service uses the locale of the provider. Otherwise, uses `en` as a default locale. To handle locale changes, call the method on each `render`.
|
|
10
|
-
*
|
|
11
|
-
* @param componentClass - The React component class that will use the internationalization service.
|
|
12
|
-
*/
|
|
13
|
-
function provideIntlService(component) {
|
|
14
|
-
if (!component && process.env.NODE_ENV !== 'production') {
|
|
15
|
-
throw "Passed component - ".concat(component, " is invalid.");
|
|
16
|
-
}
|
|
17
|
-
var context = component.context;
|
|
18
|
-
return context && context.intl
|
|
19
|
-
? context.intl
|
|
20
|
-
: new IntlService_1.IntlService('en');
|
|
21
|
-
}
|
|
22
|
-
exports.provideIntlService = provideIntlService;
|
|
23
|
-
/**
|
|
24
|
-
* Provides a localization service. When the passed component is a direct or indirect child of `LocalizationProvider`, the returned service uses the language of the provider. To handle locale changes, call the method on each `render`.
|
|
25
|
-
*
|
|
26
|
-
* @param componentClass - The React component class that will use the internationalization service.
|
|
27
|
-
*/
|
|
28
|
-
function provideLocalizationService(component) {
|
|
29
|
-
if (!component && process.env.NODE_ENV !== 'production') {
|
|
30
|
-
throw "Passed component - ".concat(component, " is invalid.");
|
|
31
|
-
}
|
|
32
|
-
var context = component.context;
|
|
33
|
-
return context && context.localization
|
|
34
|
-
? context.localization
|
|
35
|
-
: new LocalizationService_1.LocalizationService();
|
|
36
|
-
}
|
|
37
|
-
exports.provideLocalizationService = provideLocalizationService;
|
|
38
|
-
/**
|
|
39
|
-
* A method which registers a component class or a functional stateless component for internationalization. When a component of that type is a direct or indirect child of `IntlProvider`, the locale of the provider is used. Otherwise, uses `en` as a default locale.
|
|
40
|
-
*
|
|
41
|
-
* @param component - The React component class that will use the internationalization methods.
|
|
42
|
-
*/
|
|
43
|
-
function registerForIntl(component) {
|
|
44
|
-
component.contextType = GlobalizationContext_1.GlobalizationContext;
|
|
45
|
-
}
|
|
46
|
-
exports.registerForIntl = registerForIntl;
|
|
47
|
-
/**
|
|
48
|
-
* A method which registers a component class or a stateless functional component for localization. When a component of that type is a direct or indirect child of `LocalizationProvider`, the language of the provider is used.
|
|
49
|
-
*
|
|
50
|
-
* @param component - The React component class that will use the internationalization methods.
|
|
51
|
-
*/
|
|
52
|
-
function registerForLocalization(component) {
|
|
53
|
-
component.contextType = GlobalizationContext_1.GlobalizationContext;
|
|
54
|
-
}
|
|
55
|
-
exports.registerForLocalization = registerForLocalization;
|
|
56
|
-
// tslint:enable:max-line-length
|
package/dist/npm/main.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { GlobalizationContext } from './globalization/GlobalizationContext';
|
|
2
|
-
export { messages as localizationMessages } from './Localization/messages';
|
|
3
|
-
export * from './Intl/main';
|
|
4
|
-
export * from './Localization/main';
|
|
5
|
-
export * from './coreExports';
|
|
6
|
-
export * from './intlUtils';
|
|
7
|
-
export * from './hooks';
|
package/dist/npm/main.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.localizationMessages = exports.GlobalizationContext = void 0;
|
|
18
|
-
var GlobalizationContext_1 = require("./globalization/GlobalizationContext");
|
|
19
|
-
Object.defineProperty(exports, "GlobalizationContext", { enumerable: true, get: function () { return GlobalizationContext_1.GlobalizationContext; } });
|
|
20
|
-
var messages_1 = require("./Localization/messages");
|
|
21
|
-
Object.defineProperty(exports, "localizationMessages", { enumerable: true, get: function () { return messages_1.messages; } });
|
|
22
|
-
__exportStar(require("./Intl/main"), exports);
|
|
23
|
-
__exportStar(require("./Localization/main"), exports);
|
|
24
|
-
__exportStar(require("./coreExports"), exports);
|
|
25
|
-
__exportStar(require("./intlUtils"), exports);
|
|
26
|
-
__exportStar(require("./hooks"), exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.packageMetadata = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
exports.packageMetadata = {
|
|
8
|
-
name: '@progress/kendo-react-intl',
|
|
9
|
-
productName: 'KendoReact',
|
|
10
|
-
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate: 1700063373,
|
|
12
|
-
version: '',
|
|
13
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-intl",["@progress/kendo-intl","@progress/kendo-licensing","prop-types","react"],function(e,t){var o={},i={},a={},c={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){o[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})}],execute:function(){e((()=>{"use strict";var n={439:function(e,t,o){var n,r,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.IntlProvider=void 0,o(954)),l=o(895),s=o(758),u=o(345),o=(r=c.Component,i(p,r),p.prototype.getIntlService=function(){return new s.IntlService(this.props.locale)},p.prototype.render=function(){var t=this;return c.createElement(u.GlobalizationContext.Consumer,null,function(e){return c.createElement(u.GlobalizationContext.Provider,{value:a(a({},e),{intl:t.getIntlService()})},t.props.children)})},p.propTypes={locale:l.string},p);function p(){return null!==r&&r.apply(this,arguments)||this}t.IntlProvider=o},758:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IntlService=void 0;var n=o(202),r=o(527),i=o(363);function a(e){this.locale=e,void 0!==r?r.validatePackage(i.packageMetadata):(e="License activation failed for ".concat(i.packageMetadata.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(i.packageMetadata.licensingDocsUrl," for more information.\n"),console.warn(e))}a.prototype.format=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return 1===t.length&&Array.isArray(t[0])?n.format(e,t[0],this.locale):n.format(e,t,this.locale)},a.prototype.formatDate=function(e,t){return n.formatDate(e,t,this.locale)},a.prototype.toString=function(e,t){return n.toString(e,t,this.locale)},a.prototype.parseNumber=function(e,t){return n.parseNumber(e,this.locale,t)},a.prototype.parseDate=function(e,t){return n.parseDate(e,t,this.locale)},a.prototype.formatNumber=function(e,t){return n.formatNumber(e,t,this.locale)},a.prototype.dateFieldName=function(e){return n.dateFieldName(e,this.locale)},a.prototype.dateFormatNames=function(e){return n.dateFormatNames(this.locale,e)},a.prototype.splitDateFormat=function(e){return n.splitDateFormat(e,this.locale)},a.prototype.numberSymbols=function(){return n.numberSymbols(this.locale)},a.prototype.firstDay=function(){return n.firstDay(this.locale)},a.prototype.localeInfo=function(){return n.localeInfo(this.locale)},t.IntlService=a},257:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IntlService=t.IntlProvider=void 0;var n=o(439),r=(Object.defineProperty(t,"IntlProvider",{enumerable:!0,get:function(){return n.IntlProvider}}),o(758));Object.defineProperty(t,"IntlService",{enumerable:!0,get:function(){return r.IntlService}})},537:function(e,t,o){var n,r,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=(Object.defineProperty(t,"__esModule",{value:!0}),t.LocalizationProvider=void 0,o(954)),l=o(895),s=o(362),u=o(345),o=(r=c.Component,i(p,r),p.prototype.getLocalizationService=function(){return new s.LocalizationService(this.props.language)},p.prototype.render=function(){var t=this;return c.createElement(u.GlobalizationContext.Consumer,null,function(e){return c.createElement(u.GlobalizationContext.Provider,{value:a(a({},e),{localization:t.getLocalizationService()})},t.props.children)})},p.propTypes={language:l.string},p);function p(){return null!==r&&r.apply(this,arguments)||this}t.LocalizationProvider=o},362:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalizationService=void 0;var n=o(502);function r(e){this.language=e}r.prototype.toLanguageString=function(e,t){return this.language&&n.messages[this.language]&&n.messages[this.language].hasOwnProperty(e)?n.messages[this.language][e]:t},t.LocalizationService=r},212:function(e,t,o){var i=this&&this.__spreadArray||function(e,t,o){if(o||2===arguments.length)for(var n,r=0,i=t.length;r<i;r++)!n&&r in t||((n=n||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},n=(Object.defineProperty(t,"__esModule",{value:!0}),t.loadMessages=void 0,o(502)),a=function(e,t,o){for(var n in e){var r;e.hasOwnProperty(n)&&((r=i([],o,!0)).push(n),"string"!=typeof e[n]?a(e[n],t,r):(n=e[n],Object.defineProperty(t,r.join("."),{value:n})))}};t.loadMessages=function(e,t){t=n.messages[t]=n.messages[t]||{};a(e,t,[])}},574:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalizationService=t.LocalizationProvider=t.loadMessages=void 0;var n=o(212),r=(Object.defineProperty(t,"loadMessages",{enumerable:!0,get:function(){return n.loadMessages}}),o(537)),i=(Object.defineProperty(t,"LocalizationProvider",{enumerable:!0,get:function(){return r.LocalizationProvider}}),o(362));Object.defineProperty(t,"LocalizationService",{enumerable:!0,get:function(){return i.LocalizationService}})},502:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.messages=void 0,t.messages=Object.create({})},8:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.load=void 0;var n=o(202);Object.defineProperty(t,"load",{enumerable:!0,get:function(){return n.load}})},345:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalizationContext=void 0;var n=o(954),r=o(758),o=o(362);t.GlobalizationContext=n.createContext({intl:new r.IntlService("en"),localization:new o.LocalizationService})},586:function(e,t,o){var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){e[n=void 0===n?o:n]=t[o]}),r=this&&this.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||n(t,e,o)};Object.defineProperty(t,"__esModule",{value:!0}),r(o(21),t),r(o(147),t)},21:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useInternationalization=void 0;var n=o(954),r=o(345);t.useInternationalization=function(){return n.useContext(r.GlobalizationContext).intl}},147:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useLocalization=void 0;var n=o(954),r=o(345);t.useLocalization=function(){return n.useContext(r.GlobalizationContext).localization}},798:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.registerForLocalization=t.registerForIntl=t.provideLocalizationService=t.provideIntlService=void 0;var n=o(758),r=o(362),i=o(345);t.provideIntlService=function(e){e=e.context;return e&&e.intl?e.intl:new n.IntlService("en")},t.provideLocalizationService=function(e){e=e.context;return e&&e.localization?e.localization:new r.LocalizationService},t.registerForIntl=function(e){e.contextType=i.GlobalizationContext},t.registerForLocalization=function(e){e.contextType=i.GlobalizationContext}},468:function(e,t,o){var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){void 0===n&&(n=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,n,r)}:function(e,t,o,n){e[n=void 0===n?o:n]=t[o]}),r=this&&this.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||n(t,e,o)},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.localizationMessages=t.GlobalizationContext=void 0,o(345)),a=(Object.defineProperty(t,"GlobalizationContext",{enumerable:!0,get:function(){return i.GlobalizationContext}}),o(502));Object.defineProperty(t,"localizationMessages",{enumerable:!0,get:function(){return a.messages}}),r(o(257),t),r(o(574),t),r(o(8),t),r(o(798),t),r(o(586),t)},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-intl",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700063373,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},202:e=>{e.exports=o},527:e=>{e.exports=i},895:e=>{e.exports=a},954:e=>{e.exports=c}},r={};return function e(t){var o=r[t];return void 0!==o||(o=r[t]={exports:{}},n[t].call(o.exports,o,o.exports,e)),o.exports}(468)})())}}});
|