@progress/kendo-react-intl
Advanced tools
Comparing version 9.4.0-develop.2 to 9.4.0-develop.3
@@ -8,2 +8,2 @@ /** | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@progress/kendo-intl"),require("@progress/kendo-react-common"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-intl","@progress/kendo-react-common","prop-types"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactIntl={},e.React,e.KendoIntl,e.KendoReactCommon,e.PropTypes)}(this,(function(e,t,o,n,r){"use strict";function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var i=a(t),l=a(o);const s={name:"@progress/kendo-react-intl",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1737713641,version:"$VERSION",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class c{constructor(e){if(this.locale=e,n.validatePackage(s),""===e&&"production"!==process.env.NODE_ENV)throw"Locale should not be empty string"}format(e,...t){return 1===t.length&&Array.isArray(t[0])?l.format(e,t[0],this.locale):l.format(e,t,this.locale)}formatDate(e,t){return l.formatDate(e,t,this.locale)}toString(e,t){return l.toString(e,t,this.locale)}parseNumber(e,t){return l.parseNumber(e,this.locale,t)}parseDate(e,t){return l.parseDate(e,t,this.locale)}formatNumber(e,t){return l.formatNumber(e,t,this.locale)}dateFieldName(e){return l.dateFieldName(e,this.locale)}dateFormatNames(e){return l.dateFormatNames(this.locale,e)}splitDateFormat(e){return l.splitDateFormat(e,this.locale)}numberSymbols(){return l.numberSymbols(this.locale)}firstDay(){return l.firstDay(this.locale)}localeInfo(){return l.localeInfo(this.locale)}localeCurrency(){return l.localeCurrency(this.locale)}}const u=Object.create({});let p=class{constructor(e){if(this.language=e,""===e&&"production"!==process.env.NODE_ENV)throw"Language should not be an empty string"}toLanguageString(e,t){return this.language&&u[this.language]&&u[this.language].hasOwnProperty(e)?u[this.language][e]:t}};const d=i.createContext({intl:new c("en"),localization:new p});const m=class extends i.Component{getIntlService(){return new c(this.props.locale)}render(){return i.createElement(d.Consumer,null,(e=>i.createElement(d.Provider,{value:{...e,intl:this.getIntlService()}},this.props.children)))}};m.propTypes={locale:r.string};let f=m;const g=(e,t,o)=>{for(const n in e)if(e.hasOwnProperty(n)){const r=[...o];if(r.push(n),"string"!=typeof e[n])g(e[n],t,r);else{const o=e[n];Object.defineProperty(t,r.join("."),{value:o})}}};const h=class extends i.Component{getLocalizationService(){return new p(this.props.language)}render(){return i.createElement(d.Consumer,null,(e=>i.createElement(d.Provider,{value:{...e,localization:this.getLocalizationService()}},this.props.children)))}};h.propTypes={language:r.string};let y=h;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return o.load}}),e.GlobalizationContext=d,e.IntlProvider=f,e.IntlService=c,e.LocalizationProvider=y,e.LocalizationService=p,e.loadMessages=function(e,t){const o=u[t]=u[t]||{};g(e,o,[])},e.localizationMessages=u,e.provideIntlService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.context;return t&&t.intl?t.intl:new c("en")},e.provideLocalizationService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.context;return t&&t.localization?t.localization:new p},e.registerForIntl=function(e){e.contextType=d},e.registerForLocalization=function(e){e.contextType=d},e.useInternationalization=()=>i.useContext(d).intl,e.useLocalization=()=>i.useContext(d).localization})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@progress/kendo-intl"),require("@progress/kendo-react-common"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-intl","@progress/kendo-react-common","prop-types"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactIntl={},e.React,e.KendoIntl,e.KendoReactCommon,e.PropTypes)}(this,(function(e,t,o,n,r){"use strict";function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var i=a(t),l=a(o);const s={name:"@progress/kendo-react-intl",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1737719731,version:"$VERSION",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};class c{constructor(e){if(this.locale=e,n.validatePackage(s),""===e&&"production"!==process.env.NODE_ENV)throw"Locale should not be empty string"}format(e,...t){return 1===t.length&&Array.isArray(t[0])?l.format(e,t[0],this.locale):l.format(e,t,this.locale)}formatDate(e,t){return l.formatDate(e,t,this.locale)}toString(e,t){return l.toString(e,t,this.locale)}parseNumber(e,t){return l.parseNumber(e,this.locale,t)}parseDate(e,t){return l.parseDate(e,t,this.locale)}formatNumber(e,t){return l.formatNumber(e,t,this.locale)}dateFieldName(e){return l.dateFieldName(e,this.locale)}dateFormatNames(e){return l.dateFormatNames(this.locale,e)}splitDateFormat(e){return l.splitDateFormat(e,this.locale)}numberSymbols(){return l.numberSymbols(this.locale)}firstDay(){return l.firstDay(this.locale)}localeInfo(){return l.localeInfo(this.locale)}localeCurrency(){return l.localeCurrency(this.locale)}}const u=Object.create({});let p=class{constructor(e){if(this.language=e,""===e&&"production"!==process.env.NODE_ENV)throw"Language should not be an empty string"}toLanguageString(e,t){return this.language&&u[this.language]&&u[this.language].hasOwnProperty(e)?u[this.language][e]:t}};const d=i.createContext({intl:new c("en"),localization:new p});const m=class extends i.Component{getIntlService(){return new c(this.props.locale)}render(){return i.createElement(d.Consumer,null,(e=>i.createElement(d.Provider,{value:{...e,intl:this.getIntlService()}},this.props.children)))}};m.propTypes={locale:r.string};let f=m;const g=(e,t,o)=>{for(const n in e)if(e.hasOwnProperty(n)){const r=[...o];if(r.push(n),"string"!=typeof e[n])g(e[n],t,r);else{const o=e[n];Object.defineProperty(t,r.join("."),{value:o})}}};const h=class extends i.Component{getLocalizationService(){return new p(this.props.language)}render(){return i.createElement(d.Consumer,null,(e=>i.createElement(d.Provider,{value:{...e,localization:this.getLocalizationService()}},this.props.children)))}};h.propTypes={language:r.string};let y=h;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return o.load}}),e.GlobalizationContext=d,e.IntlProvider=f,e.IntlService=c,e.LocalizationProvider=y,e.LocalizationService=p,e.loadMessages=function(e,t){const o=u[t]=u[t]||{};g(e,o,[])},e.localizationMessages=u,e.provideIntlService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.context;return t&&t.intl?t.intl:new c("en")},e.provideLocalizationService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.context;return t&&t.localization?t.localization:new p},e.registerForIntl=function(e){e.contextType=d},e.registerForLocalization=function(e){e.contextType=d},e.useInternationalization=()=>i.useContext(d).intl,e.useLocalization=()=>i.useContext(d).localization})); |
@@ -8,2 +8,2 @@ /** | ||
*/ | ||
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-intl",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1737713641,version:"9.4.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e; | ||
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-intl",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1737719731,version:"9.4.0-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e; |
{ | ||
"name": "@progress/kendo-react-intl", | ||
"version": "9.4.0-develop.2", | ||
"version": "9.4.0-develop.3", | ||
"description": "React Internationalization package provides services for parsing and formatting of dates and numbers. KendoReact Internationalization package", | ||
@@ -30,3 +30,3 @@ "author": "Progress", | ||
"@progress/kendo-licensing": "^1.3.4", | ||
"@progress/kendo-react-common": "9.4.0-develop.2", | ||
"@progress/kendo-react-common": "9.4.0-develop.3", | ||
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc", | ||
@@ -56,3 +56,3 @@ "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" | ||
"productCode": "KENDOUIREACT", | ||
"publishDate": 1737713641, | ||
"publishDate": 1737719731, | ||
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/" | ||
@@ -59,0 +59,0 @@ } |
Sorry, the diff of this file is not supported yet