@progress/kendo-react-intl 9.4.0-develop.6 → 9.4.0-develop.7

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.
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("prop-types"),u=require("./IntlService.js"),c=require("../globalization/GlobalizationContext.js");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=p(a),i=class i extends r.Component{getIntlService(){return new u.IntlService(this.props.locale)}render(){return r.createElement(c.GlobalizationContext.Consumer,null,t=>r.createElement(c.GlobalizationContext.Provider,{value:{...t,intl:this.getIntlService()}},this.props.children))}};i.propTypes={locale:s.string};let o=i;exports.IntlProvider=o;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("prop-types"),u=require("./IntlService.js"),c=require("../globalization/GlobalizationContext.js");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=p(a),i=class i extends n.Component{getIntlService(){return new u.IntlService(this.props.locale)}render(){return n.createElement(c.GlobalizationContext.Consumer,null,t=>n.createElement(c.GlobalizationContext.Provider,{value:{...t,intl:this.getIntlService()}},this.props.children))}};i.propTypes={locale:s.string};let o=i;exports.IntlProvider=o;
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@progress/kendo-intl"),n=require("@progress/kendo-react-common"),c=require("../package-metadata.js");function i(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const r=i(l);class s{constructor(e){if(this.locale=e,n.validatePackage(c.packageMetadata),e===""&&process.env.NODE_ENV!=="production")throw"Locale should not be empty string"}format(e,...t){return t.length===1&&Array.isArray(t[0])?r.format(e,t[0],this.locale):r.format(e,t,this.locale)}formatDate(e,t){return r.formatDate(e,t,this.locale)}toString(e,t){return r.toString(e,t,this.locale)}parseNumber(e,t){return r.parseNumber(e,this.locale,t)}parseDate(e,t){return r.parseDate(e,t,this.locale)}formatNumber(e,t){return r.formatNumber(e,t,this.locale)}dateFieldName(e){return r.dateFieldName(e,this.locale)}dateFormatNames(e){return r.dateFormatNames(this.locale,e)}splitDateFormat(e){return r.splitDateFormat(e,this.locale)}numberSymbols(){return r.numberSymbols(this.locale)}firstDay(){return r.firstDay(this.locale)}localeInfo(){return r.localeInfo(this.locale)}localeCurrency(){return r.localeCurrency(this.locale)}}exports.IntlService=s;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@progress/kendo-intl"),n=require("@progress/kendo-react-common"),c=require("../package-metadata.js");function i(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const r=i(l);class s{constructor(e){if(this.locale=e,n.validatePackage(c.packageMetadata),e===""&&process.env.NODE_ENV!=="production")throw"Locale should not be empty string"}format(e,...t){return t.length===1&&Array.isArray(t[0])?r.format(e,t[0],this.locale):r.format(e,t,this.locale)}formatDate(e,t){return r.formatDate(e,t,this.locale)}toString(e,t){return r.toString(e,t,this.locale)}parseNumber(e,t){return r.parseNumber(e,this.locale,t)}parseDate(e,t){return r.parseDate(e,t,this.locale)}formatNumber(e,t){return r.formatNumber(e,t,this.locale)}dateFieldName(e){return r.dateFieldName(e,this.locale)}dateFormatNames(e){return r.dateFormatNames(this.locale,e)}splitDateFormat(e){return r.splitDateFormat(e,this.locale)}numberSymbols(){return r.numberSymbols(this.locale)}firstDay(){return r.firstDay(this.locale)}localeInfo(){return r.localeInfo(this.locale)}localeCurrency(){return r.localeCurrency(this.locale)}}exports.IntlService=s;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as e from "@progress/kendo-intl";
10
9
  import { validatePackage as a } from "@progress/kendo-react-common";
11
10
  import { packageMetadata as o } from "../package-metadata.mjs";
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("prop-types"),u=require("./LocalizationService.js"),c=require("../globalization/GlobalizationContext.js");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=p(l),i=class i extends r.Component{getLocalizationService(){return new u.LocalizationService(this.props.language)}render(){return r.createElement(c.GlobalizationContext.Consumer,null,t=>r.createElement(c.GlobalizationContext.Provider,{value:{...t,localization:this.getLocalizationService()}},this.props.children))}};i.propTypes={language:s.string};let o=i;exports.LocalizationProvider=o;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("prop-types"),u=require("./LocalizationService.js"),c=require("../globalization/GlobalizationContext.js");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=p(l),i=class i extends r.Component{getLocalizationService(){return new u.LocalizationService(this.props.language)}render(){return r.createElement(c.GlobalizationContext.Consumer,null,t=>r.createElement(c.GlobalizationContext.Provider,{value:{...t,localization:this.getLocalizationService()}},this.props.children))}};i.propTypes={language:s.string};let o=i;exports.LocalizationProvider=o;
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./messages.js");class a{constructor(e){if(this.language=e,e===""&&process.env.NODE_ENV!=="production")throw"Language should not be an empty string"}toLanguageString(e,t){return this.language&&s.messages[this.language]&&s.messages[this.language].hasOwnProperty(e)?s.messages[this.language][e]:t}}exports.LocalizationService=a;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./messages.js");class a{constructor(e){if(this.language=e,e===""&&process.env.NODE_ENV!=="production")throw"Language should not be an empty string"}toLanguageString(e,t){return this.language&&s.messages[this.language]&&s.messages[this.language].hasOwnProperty(e)?s.messages[this.language][e]:t}}exports.LocalizationService=a;
@@ -5,8 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
- import { messages as e } from "./messages.mjs";
8
+ import { messages as a } from "./messages.mjs";
10
9
  class s {
11
10
  constructor(t) {
12
11
  if (this.language = t, t === "" && process.env.NODE_ENV !== "production")
@@ -22,8 +21,8 @@ class s {
22
21
  * @return - The string for the current language.
23
22
  */
24
23
  // tslint:enable:max-line-length
25
- toLanguageString(t, a) {
26
- return this.language && e[this.language] && e[this.language].hasOwnProperty(t) ? e[this.language][t] : a;
24
+ toLanguageString(t, e) {
25
+ return this.language && a[this.language] && a[this.language].hasOwnProperty(t) ? a[this.language][t] : e;
27
26
  }
28
27
  }
29
28
  export {
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./messages.js"),r=(s,e,t)=>{for(const o in s)if(s.hasOwnProperty(o)){const n=[...t];if(n.push(o),typeof s[o]!="string")r(s[o],e,n);else{const u=s[o];Object.defineProperty(e,n.join("."),{value:u})}}};function a(s,e){const t=c.messages[e]=c.messages[e]||{};r(s,t,[])}exports.loadMessages=a;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./messages.js"),r=(s,e,t)=>{for(const o in s)if(s.hasOwnProperty(o)){const n=[...t];if(n.push(o),typeof s[o]!="string")r(s[o],e,n);else{const a=s[o];Object.defineProperty(e,n.join("."),{value:a})}}};function u(s,e){const t=c.messages[e]=c.messages[e]||{};r(s,t,[])}exports.loadMessages=u;
@@ -5,23 +5,22 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { messages as e } from "./messages.mjs";
10
- const r = (s, o, t) => {
11
- for (const n in s)
12
- if (s.hasOwnProperty(n)) {
9
+ const r = (o, s, t) => {
10
+ for (const n in o)
11
+ if (o.hasOwnProperty(n)) {
13
12
  const c = [...t];
14
- if (c.push(n), typeof s[n] != "string")
15
- r(s[n], o, c);
13
+ if (c.push(n), typeof o[n] != "string")
14
+ r(o[n], s, c);
16
15
  else {
17
- const f = s[n];
18
- Object.defineProperty(o, c.join("."), { value: f });
16
+ const f = o[n];
17
+ Object.defineProperty(s, c.join("."), { value: f });
19
18
  }
20
19
  }
21
20
  };
22
- function i(s, o) {
23
- const t = e[o] = e[o] || {};
24
- r(s, t, []);
21
+ function i(o, s) {
22
+ const t = e[s] = e[s] || {};
23
+ r(o, t, []);
25
24
  }
26
25
  export {
27
26
  i as loadMessages
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.create({});exports.messages=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.create({});exports.messages=e;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  const e = /* @__PURE__ */ Object.create({});
10
9
  export {
11
10
  e as messages
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),i=require("../Intl/IntlService.js"),r=require("../Localization/LocalizationService.js");function a(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=a(c),u=l.createContext({intl:new i.IntlService("en"),localization:new r.LocalizationService});exports.GlobalizationContext=u;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),c=require("../Intl/IntlService.js"),i=require("../Localization/LocalizationService.js");function a(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=a(r),u=l.createContext({intl:new c.IntlService("en"),localization:new i.LocalizationService});exports.GlobalizationContext=u;
@@ -6,11 +6,11 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- import * as t from "react";
10
- import { IntlService as o } from "../Intl/IntlService.mjs";
9
+ import * as o from "react";
10
+ import { IntlService as t } from "../Intl/IntlService.mjs";
11
11
  import { LocalizationService as e } from "../Localization/LocalizationService.mjs";
12
- const r = t.createContext({
13
- intl: new o("en"),
12
+ const r = o.createContext({
13
+ intl: new t("en"),
14
14
  localization: new e()
15
15
  });
16
16
  export {
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),i=require("../globalization/GlobalizationContext.js");function r(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=r(a),l=()=>c.useContext(i.GlobalizationContext).intl;exports.useInternationalization=l;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),r=require("../globalization/GlobalizationContext.js");function i(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const c=i(a),l=()=>c.useContext(r.GlobalizationContext).intl;exports.useInternationalization=l;
@@ -8,7 +8,7 @@
8
8
  "use client";
9
9
  import * as t from "react";
10
10
  import { GlobalizationContext as o } from "../globalization/GlobalizationContext.mjs";
11
- const e = () => t.useContext(o).intl;
11
+ const i = () => t.useContext(o).intl;
12
12
  export {
13
- e as useInternationalization
13
+ i as useInternationalization
14
14
  };
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("../globalization/GlobalizationContext.js");function i(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=i(a),l=()=>r.useContext(c.GlobalizationContext).localization;exports.useLocalization=l;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("../globalization/GlobalizationContext.js");function i(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=i(a),l=()=>r.useContext(c.GlobalizationContext).localization;exports.useLocalization=l;
@@ -8,7 +8,7 @@
8
8
  "use client";
9
9
  import * as o from "react";
10
10
  import { GlobalizationContext as t } from "../globalization/GlobalizationContext.mjs";
11
- const a = () => o.useContext(t).localization;
11
+ const i = () => o.useContext(t).localization;
12
12
  export {
13
- a as useLocalization
13
+ i as useLocalization
14
14
  };
package/index.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./globalization/GlobalizationContext.js"),o=require("./Localization/messages.js"),e=require("./intlUtils.js"),r=require("./Intl/IntlProvider.js"),t=require("./Intl/IntlService.js"),n=require("./Localization/loadMessages.js"),a=require("./Localization/LocalizationProvider.js"),l=require("./Localization/LocalizationService.js"),s=require("@progress/kendo-intl"),c=require("./hooks/useInternationalization.js"),u=require("./hooks/useLocalization.js");exports.GlobalizationContext=i.GlobalizationContext;exports.localizationMessages=o.messages;exports.provideIntlService=e.provideIntlService;exports.provideLocalizationService=e.provideLocalizationService;exports.registerForIntl=e.registerForIntl;exports.registerForLocalization=e.registerForLocalization;exports.IntlProvider=r.IntlProvider;exports.IntlService=t.IntlService;exports.loadMessages=n.loadMessages;exports.LocalizationProvider=a.LocalizationProvider;exports.LocalizationService=l.LocalizationService;Object.defineProperty(exports,"load",{enumerable:!0,get:()=>s.load});exports.useInternationalization=c.useInternationalization;exports.useLocalization=u.useLocalization;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./globalization/GlobalizationContext.js"),o=require("./Localization/messages.js"),e=require("./intlUtils.js"),r=require("./Intl/IntlProvider.js"),t=require("./Intl/IntlService.js"),n=require("./Localization/loadMessages.js"),a=require("./Localization/LocalizationProvider.js"),l=require("./Localization/LocalizationService.js"),s=require("@progress/kendo-intl"),c=require("./hooks/useInternationalization.js"),u=require("./hooks/useLocalization.js");exports.GlobalizationContext=i.GlobalizationContext;exports.localizationMessages=o.messages;exports.provideIntlService=e.provideIntlService;exports.provideLocalizationService=e.provideLocalizationService;exports.registerForIntl=e.registerForIntl;exports.registerForLocalization=e.registerForLocalization;exports.IntlProvider=r.IntlProvider;exports.IntlService=t.IntlService;exports.loadMessages=n.loadMessages;exports.LocalizationProvider=a.LocalizationProvider;exports.LocalizationService=l.LocalizationService;Object.defineProperty(exports,"load",{enumerable:!0,get:()=>s.load});exports.useInternationalization=c.useInternationalization;exports.useLocalization=u.useLocalization;
package/index.mjs CHANGED
@@ -5,12 +5,11 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
- import { GlobalizationContext as r } from "./globalization/GlobalizationContext.mjs";
8
+ import { GlobalizationContext as e } from "./globalization/GlobalizationContext.mjs";
10
9
  import { messages as i } from "./Localization/messages.mjs";
11
10
  import { provideIntlService as l, provideLocalizationService as n, registerForIntl as s, registerForLocalization as p } from "./intlUtils.mjs";
12
11
  import { IntlProvider as x } from "./Intl/IntlProvider.mjs";
13
- import { IntlService as f } from "./Intl/IntlService.mjs";
12
+ import { IntlService as c } from "./Intl/IntlService.mjs";
14
13
  import { loadMessages as z } from "./Localization/loadMessages.mjs";
15
14
  import { LocalizationProvider as g } from "./Localization/LocalizationProvider.mjs";
16
15
  import { LocalizationService as L } from "./Localization/LocalizationService.mjs";
@@ -18,9 +17,9 @@ import { load as u } from "@progress/kendo-intl";
18
17
  import { useInternationalization as M } from "./hooks/useInternationalization.mjs";
19
18
  import { useLocalization as b } from "./hooks/useLocalization.mjs";
20
19
  export {
21
- r as GlobalizationContext,
20
+ e as GlobalizationContext,
22
21
  x as IntlProvider,
23
- f as IntlService,
22
+ c as IntlService,
24
23
  g as LocalizationProvider,
25
24
  L as LocalizationService,
26
25
  u as load,
package/intlUtils.js CHANGED
@@ -5,4 +5,5 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Intl/IntlService.js"),n=require("./Localization/LocalizationService.js"),t=require("./globalization/GlobalizationContext.js");function r(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.context;return i&&i.intl?i.intl:new o.IntlService("en")}function c(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.context;return i&&i.localization?i.localization:new n.LocalizationService}function l(e){e.contextType=t.GlobalizationContext}function a(e){e.contextType=t.GlobalizationContext}exports.provideIntlService=r;exports.provideLocalizationService=c;exports.registerForIntl=l;exports.registerForLocalization=a;
8
+ "use client";
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Intl/IntlService.js"),n=require("./Localization/LocalizationService.js"),t=require("./globalization/GlobalizationContext.js");function r(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.context;return i&&i.intl?i.intl:new o.IntlService("en")}function c(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.context;return i&&i.localization?i.localization:new n.LocalizationService}function l(e){e.contextType=t.GlobalizationContext}function a(e){e.contextType=t.GlobalizationContext}exports.provideIntlService=r;exports.provideLocalizationService=c;exports.registerForIntl=l;exports.registerForLocalization=a;
package/intlUtils.mjs CHANGED
@@ -8,27 +8,27 @@
8
8
  "use client";
9
9
  import { IntlService as n } from "./Intl/IntlService.mjs";
10
10
  import { LocalizationService as e } from "./Localization/LocalizationService.mjs";
11
- import { GlobalizationContext as o } from "./globalization/GlobalizationContext.mjs";
12
- function a(t) {
11
+ import { GlobalizationContext as i } from "./globalization/GlobalizationContext.mjs";
12
+ function l(t) {
13
13
  if (!t && process.env.NODE_ENV !== "production")
14
14
  throw `Passed component - ${t} is invalid.`;
15
- const i = t.context;
16
- return i && i.intl ? i.intl : new n("en");
15
+ const o = t.context;
16
+ return o && o.intl ? o.intl : new n("en");
17
17
  }
18
18
  function s(t) {
19
19
  if (!t && process.env.NODE_ENV !== "production")
20
20
  throw `Passed component - ${t} is invalid.`;
21
- const i = t.context;
22
- return i && i.localization ? i.localization : new e();
21
+ const o = t.context;
22
+ return o && o.localization ? o.localization : new e();
23
23
  }
24
24
  function p(t) {
25
- t.contextType = o;
25
+ t.contextType = i;
26
26
  }
27
27
  function v(t) {
28
- t.contextType = o;
28
+ t.contextType = i;
29
29
  }
30
30
  export {
31
- a as provideIntlService,
31
+ l as provideIntlService,
32
32
  s as provideLocalizationService,
33
33
  p as registerForIntl,
34
34
  v as registerForLocalization
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "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: 1737925458,version:"9.4.0-develop.6",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-intl",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1738076935,version:"9.4.0-develop.7",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
@@ -5,14 +5,13 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  const e = {
10
9
  name: "@progress/kendo-react-intl",
11
10
  productName: "KendoReact",
12
11
  productCode: "KENDOUIREACT",
13
12
  productCodes: ["KENDOUIREACT"],
14
- publishDate: 1737925458,
15
- version: "9.4.0-develop.6",
13
+ publishDate: 1738076935,
14
+ version: "9.4.0-develop.7",
16
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
17
16
  };
18
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-intl",
3
- "version": "9.4.0-develop.6",
3
+ "version": "9.4.0-develop.7",
4
4
  "description": "React Internationalization package provides services for parsing and formatting of dates and numbers. KendoReact Internationalization package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -27,7 +27,7 @@
27
27
  "peerDependencies": {
28
28
  "@progress/kendo-intl": "^3.1.1",
29
29
  "@progress/kendo-licensing": "^1.3.4",
30
- "@progress/kendo-react-common": "9.4.0-develop.6",
30
+ "@progress/kendo-react-common": "9.4.0-develop.7",
31
31
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
32
32
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
33
33
  },
@@ -52,7 +52,7 @@
52
52
  "package": {
53
53
  "productName": "KendoReact",
54
54
  "productCode": "KENDOUIREACT",
55
- "publishDate": 1737925458,
55
+ "publishDate": 1738076935,
56
56
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
57
57
  }
58
58
  },