@progress/kendo-vue-intl 8.0.3-develop.2 → 8.0.3-develop.3

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.
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { IntlService } from './IntlService';
9
+ import { PropType } from 'vue';
10
+ /**
11
+ * @hidden
12
+ */
13
+ declare const IntlProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
14
+ locale: PropType<string>;
15
+ }>, void, any, {}, {
16
+ /**
17
+ * Returns an internationalization service.
18
+ * The method is suitable for overriding when you
19
+ * implement custom internationalization behavior.
20
+ */
21
+ getIntlService(): IntlService;
22
+ /**
23
+ * @hidden
24
+ */
25
+ getChildContext(): {
26
+ kendoIntlService: IntlService;
27
+ };
28
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
29
+ locale: PropType<string>;
30
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
31
+ kendoIntlService: any;
32
+ }, true, {}, any>;
33
+ /**
34
+ *
35
+ * A Vue component which provides an internationalization service. Expects a locale string as a property of the component.
36
+ *
37
+ *
38
+ * ### props
39
+ * The props of the IntlProvider component.
40
+ *
41
+ *
42
+ *
43
+ * ## Methods
44
+ *
45
+ * ### getIntlService
46
+ * Returns an internationalization service. The method is suitable for overriding when you implement custom internationalization behavior.
47
+ *
48
+ * #### Returns
49
+ * <span class='code'>[IntlService]({% slug api_intl_intlservice %})</span>
50
+ */
51
+ export { IntlProvider };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * Represents the props of the KendoVue IntlProvider component.
10
+ */
11
+ export interface IntlProviderProps {
12
+ /**
13
+ * The locale that will be used by the child components.
14
+ */
15
+ locale: string;
16
+ }
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { DateFormatOptions, NumberFormatOptions, DateFieldNameOptions, DateFormatNameOptions, DateFormatPart } from './../coreExports';
9
+ /**
10
+ * A service which provides internationalization methods
11
+ * and is bound to a specific locale.
12
+ */
13
+ export declare class IntlService {
14
+ private locale;
15
+ /**
16
+ * Creates a new instance of the internationalization service.
17
+ *
18
+ * @param locale - The locale that will be used by the internationalization methods.
19
+ */
20
+ constructor(locale: string);
21
+ /**
22
+ * Formats a string with placeholders such as
23
+ * `Total amount {0:c}`.
24
+ *
25
+ * @param format - The format string.
26
+ * @param values - One or more values to output in the format string placeholders.
27
+ * @return - The formatted string.
28
+ */
29
+ format(format: string, ...values: any[]): string;
30
+ /**
31
+ * Converts a `Date` object to a string based on the specified format.
32
+ * If no format is provided, the default short date format is used.
33
+ *
34
+ * @param value - The date which will be formatted.
35
+ * @param format - The format string or options.
36
+ * @return - The formatted date.
37
+ */
38
+ formatDate(value: Date, format?: string | DateFormatOptions): string;
39
+ /**
40
+ * Converts an object to a string based on the specified format.
41
+ *
42
+ * @param value - The value which will be formatted.
43
+ * @param format - The format to use.
44
+ * @return - The formatted object.
45
+ */
46
+ toString(value: any, format: string | any): string;
47
+ /**
48
+ * Converts a string to a `Number`.
49
+ *
50
+ * @param value - The string which will be parsed.
51
+ * @param format - The format string or options.
52
+ * @return - The parsed number.
53
+ */
54
+ parseNumber(value: string, format?: string | NumberFormatOptions): number;
55
+ /**
56
+ * Converts a string to a `Date` object based on the specified format.
57
+ *
58
+ * @param value - The string which will be converted.
59
+ * @param format - The format strings or options.
60
+ * @return - The parsed date.
61
+ */
62
+ parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[]): Date;
63
+ /**
64
+ * Converts a `Number` to a string based on the specified format.
65
+ *
66
+ * @param value - The number which will be formatted.
67
+ * @param format - The format string or options.
68
+ * @return - The formatted number.
69
+ */
70
+ formatNumber(value: number, format: string | NumberFormatOptions): string;
71
+ /**
72
+ * Returns a localized date field name based on specific `dateFieldName` options.
73
+ *
74
+ * @param options - The detailed configuration for the desired date field name.
75
+ * @returns - The localized date field name from the current locale based on the option.
76
+ */
77
+ dateFieldName(options: DateFieldNameOptions): string;
78
+ /**
79
+ * Returns the day names from the current locale based on the option.
80
+ *
81
+ * @param options - The detailed configuration for the desired date format.
82
+ * @return - The day names from the current locale based on the option.
83
+ */
84
+ dateFormatNames(options: DateFormatNameOptions): any;
85
+ /**
86
+ * Splits the date format into objects which contain
87
+ * information about each part of the pattern.
88
+ *
89
+ * @param format - The format string or options.
90
+ * @returns - The date format parts.
91
+ */
92
+ splitDateFormat(format: string | DateFormatOptions): DateFormatPart[];
93
+ /**
94
+ * Returns the number symbols from the current locale.
95
+ *
96
+ * @return - The number symbols from the current locale.
97
+ */
98
+ numberSymbols(): any;
99
+ /**
100
+ * Returns the first day index, starting from Sunday.
101
+ *
102
+ * @return - The index of the first day of the week (0 == Sunday).
103
+ */
104
+ firstDay(): number;
105
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { IntlProvider } from './IntlProvider';
9
+ import { IntlProviderProps } from './IntlProviderProps';
10
+ import { IntlService } from './IntlService';
11
+ export { IntlProvider, type IntlProviderProps, IntlService };
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { LocalizationService } from './LocalizationService';
9
+ /**
10
+ * @hidden
11
+ */
12
+ declare const LocalizationProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ language: StringConstructor;
14
+ }>, void, any, {}, {
15
+ /**
16
+ * Returns a localization service.
17
+ * The method is suitable for overriding when you
18
+ * implement custom localization behavior.
19
+ */
20
+ getLocalizationService(): LocalizationService;
21
+ /**
22
+ * @hidden
23
+ */
24
+ getChildContext(): {
25
+ kendoLocalizationService: LocalizationService;
26
+ };
27
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
+ language: StringConstructor;
29
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
30
+ kendoLocalizationService: any;
31
+ }, true, {}, any>;
32
+ /**
33
+ *
34
+ *
35
+ * A Vue component which provides a localization service. Expects a language string as a property of the component.
36
+ *
37
+ *
38
+ * ### props
39
+ * The props of the LocalizationProvider component.
40
+ *
41
+ *
42
+ *
43
+ * ## Methods
44
+ *
45
+ * ### getLocalizationService
46
+ * Returns a localization service. The method is suitable for overriding when you implement custom localization behavior.
47
+ *
48
+ * #### Returns
49
+ * <span class='code'>[LocalizationService]({% slug api_intl_localizationservice %})</span>
50
+ */
51
+ export { LocalizationProvider };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * Represents the props of the KendoVue LocalizationProvider component.
10
+ */
11
+ export interface LocalizationProviderProps {
12
+ /**
13
+ * The language that will be used by the child components.
14
+ */
15
+ language: string;
16
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * A service which provides localization methods.
10
+ */
11
+ export declare class LocalizationService {
12
+ private language?;
13
+ constructor(language?: string);
14
+ /**
15
+ * Provides a string based on a key for the current language.
16
+ * When no string for the current language is available under this key,
17
+ * the `defaultValue` is returned.
18
+ *
19
+ * @param key - The key which identifies the string for the current language.
20
+ * @param defaultValue - The default value which will be returned when no string
21
+ * for the current language is available under the key.
22
+ * @return - The string for the current language.
23
+ */
24
+ toLanguageString(key: string, defaultValue: string): string;
25
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { loadMessages } from './loadMessages';
9
+ import { LocalizationProvider } from './LocalizationProvider';
10
+ import { LocalizationProviderProps } from './LocalizationProviderProps';
11
+ import { LocalizationService } from './LocalizationService';
12
+ export { loadMessages, LocalizationProvider, type LocalizationProviderProps, LocalizationService };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * Provides mechanism to load language-specific messages for the KendoVue components.
10
+ *
11
+ * @param messages - An iterable object which contains key-value pairs.
12
+ * @param languages - The language to which the messages are associated.
13
+ */
14
+ export declare function loadMessages(messages: any, language: string): void;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare const messages: any;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ export { type DateFormatOptions, type NumberFormatOptions, type DateFieldNameOptions, type DateFormatNameOptions, type DateFormatPart, load } from '@progress/kendo-intl';
@@ -12,4 +12,4 @@
12
12
  * Licensed under commercial license. See LICENSE.md in the package root for more information
13
13
  *-------------------------------------------------------------------------------------------
14
14
  */
15
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@progress/kendo-intl"),require("vue"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","@progress/kendo-intl","vue","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueIntl={},e.KendoIntl,e.Vue,e.KendoVueCommon)}(this,(function(e,t,n,o){"use strict";function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=r(t);class a{constructor(e){if(this.locale=e,""===e&&"production"!==process.env.NODE_ENV)throw"Locale should not be empty string"}format(e,...t){return 1===t.length&&Array.isArray(t[0])?i.format(e,t[0],this.locale):i.format(e,t,this.locale)}formatDate(e,t){return i.formatDate(e,t,this.locale)}toString(e,t){return i.toString(e,t,this.locale)}parseNumber(e,t){return i.parseNumber(e,this.locale,t)}parseDate(e,t){return i.parseDate(e,t,this.locale)}formatNumber(e,t){return i.formatNumber(e,t,this.locale)}dateFieldName(e){return i.dateFieldName(e,this.locale)}dateFormatNames(e){return i.dateFormatNames(this.locale,e)}splitDateFormat(e){return i.splitDateFormat(e,this.locale)}numberSymbols(){return i.numberSymbols(this.locale)}firstDay(){return i.firstDay(this.locale)}}const s=Object.create({});let l=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&&s[this.language]&&s[this.language].hasOwnProperty(e)?s[this.language][e]:Object.keys(this)[0]&&s[Object.values(this)[0]]&&s[Object.values(this)[0]].hasOwnProperty(e)?s[Object.values(this)[0]][e]:t}};const c={name:"@progress/kendo-vue-intl",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"8.0.3-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"},u=n.defineComponent({props:{locale:String},data(){return this.getChildContext()},setup(e){const t=n.ref(new a(e.locale));n.provide("kendoIntlService",t)},watch:{locale:function(e){this.$data.kendoIntlService.locale=e}},provide:function(){return{kendoIntlService:this.$data.kendoIntlService}},methods:{getIntlService(){return new a(this.$props.locale)},getChildContext(){return{kendoIntlService:this.getIntlService()}}},created:function(){o.validatePackage(c)},render(){const e=o.getDefaultSlots(this);return n.createVNode("div",null,[e])}}),d=(e,t,n)=>{for(const o in e)if(e.hasOwnProperty(o)){const r=[...n];if(r.push(o),"string"!=typeof e[o])d(e[o],t,r);else{const n=e[o];Object.defineProperty(t,r.join("."),{value:n})}}};const p=n.defineComponent({props:{language:String},data(){return this.getChildContext()},watch:{language:function(e){this.$data.kendoLocalizationService.language=e}},setup(e){const t=n.ref(new l(e.language));n.provide("kendoLocalizationService",t)},provide:function(){return{kendoLocalizationService:this.$data.kendoLocalizationService}},methods:{getLocalizationService(){return new l(this.$props.language)},getChildContext(){return{kendoLocalizationService:this.getLocalizationService()}}},render(){const e=o.getDefaultSlots(this);return n.createVNode("div",null,[e])}});Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),e.IntlProvider=u,e.IntlService=a,e.LocalizationProvider=p,e.LocalizationService=l,e.loadMessages=function(e,t){let n=s[t]=s[t]||{};d(e,n,[])},e.provideIntlService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.kendoIntlService;return t&&Object.keys(t).some((e=>"locale"===e))?t:new a("en")},e.provideLocalizationService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.kendoLocalizationService;return t&&Object.keys(t).some((e=>"language"===e))?t:new l}}));
15
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@progress/kendo-intl"),require("vue"),require("@progress/kendo-vue-common")):"function"==typeof define&&define.amd?define(["exports","@progress/kendo-intl","vue","@progress/kendo-vue-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueIntl={},e.KendoIntl,e.Vue,e.KendoVueCommon)}(this,function(e,t,n,o){"use strict";function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var i=r(t);class a{constructor(e){if(this.locale=e,""===e&&"production"!==process.env.NODE_ENV)throw"Locale should not be empty string"}format(e,...t){return 1===t.length&&Array.isArray(t[0])?i.format(e,t[0],this.locale):i.format(e,t,this.locale)}formatDate(e,t){return i.formatDate(e,t,this.locale)}toString(e,t){return i.toString(e,t,this.locale)}parseNumber(e,t){return i.parseNumber(e,this.locale,t)}parseDate(e,t){return i.parseDate(e,t,this.locale)}formatNumber(e,t){return i.formatNumber(e,t,this.locale)}dateFieldName(e){return i.dateFieldName(e,this.locale)}dateFormatNames(e){return i.dateFormatNames(this.locale,e)}splitDateFormat(e){return i.splitDateFormat(e,this.locale)}numberSymbols(){return i.numberSymbols(this.locale)}firstDay(){return i.firstDay(this.locale)}}const s=Object.create({});let l=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&&s[this.language]&&s[this.language].hasOwnProperty(e)?s[this.language][e]:Object.keys(this)[0]&&s[Object.values(this)[0]]&&s[Object.values(this)[0]].hasOwnProperty(e)?s[Object.values(this)[0]][e]:t}};const c={name:"@progress/kendo-vue-intl",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"8.0.3-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"},u=n.defineComponent({props:{locale:String},data(){return this.getChildContext()},setup(e){const t=n.ref(new a(e.locale));n.provide("kendoIntlService",t)},watch:{locale:function(e){this.$data.kendoIntlService.locale=e}},provide:function(){return{kendoIntlService:this.$data.kendoIntlService}},methods:{getIntlService(){return new a(this.$props.locale)},getChildContext(){return{kendoIntlService:this.getIntlService()}}},created:function(){o.validatePackage(c)},render(){const e=o.getDefaultSlots(this);return n.createVNode("div",null,[e])}}),d=n.defineComponent({props:{language:String},data(){return this.getChildContext()},watch:{language:function(e){this.$data.kendoLocalizationService.language=e}},setup(e){const t=n.ref(new l(e.language));n.provide("kendoLocalizationService",t)},provide:function(){return{kendoLocalizationService:this.$data.kendoLocalizationService}},methods:{getLocalizationService(){return new l(this.$props.language)},getChildContext(){return{kendoLocalizationService:this.getLocalizationService()}}},render(){const e=o.getDefaultSlots(this);return n.createVNode("div",null,[e])}}),p=(e,t,n)=>{for(const o in e)if(e.hasOwnProperty(o)){const r=[...n];if(r.push(o),"string"!=typeof e[o])p(e[o],t,r);else{const n=e[o];Object.defineProperty(t,r.join("."),{value:n})}}};Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),e.IntlProvider=u,e.IntlService=a,e.LocalizationProvider=d,e.LocalizationService=l,e.loadMessages=function(e,t){let n=s[t]=s[t]||{};p(e,n,[])},e.provideIntlService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.kendoIntlService;return t&&Object.keys(t).some(e=>"locale"===e)?t:new a("en")},e.provideLocalizationService=function(e){if(!e&&"production"!==process.env.NODE_ENV)throw`Passed component - ${e} is invalid.`;const t=e.kendoLocalizationService;return t&&Object.keys(t).some(e=>"language"===e)?t:new l}});
package/index.d.mts CHANGED
@@ -5,242 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { ComponentOptionsMixin } from 'vue';
9
- import { DateFieldNameOptions } from '@progress/kendo-intl';
10
- import { DateFormatNameOptions } from '@progress/kendo-intl';
11
- import { DateFormatOptions } from '@progress/kendo-intl';
12
- import { DateFormatPart } from '@progress/kendo-intl';
13
- import { DefineComponent } from 'vue';
14
- import { ExtractPropTypes } from 'vue';
15
- import { load } from '@progress/kendo-intl';
16
- import { NumberFormatOptions } from '@progress/kendo-intl';
17
- import { PropType } from 'vue';
18
- import { PublicProps } from 'vue';
19
-
20
- export { DateFieldNameOptions }
21
-
22
- export { DateFormatNameOptions }
23
-
24
- export { DateFormatOptions }
25
-
26
- export { DateFormatPart }
27
-
28
- /**
29
- * @hidden
30
- */
31
- export declare const IntlProvider: DefineComponent<ExtractPropTypes< {
32
- locale: PropType<string>;
33
- }>, void, any, {}, {
34
- /**
35
- * Returns an internationalization service.
36
- * The method is suitable for overriding when you
37
- * implement custom internationalization behavior.
38
- */
39
- getIntlService(): IntlService;
40
- /**
41
- * @hidden
42
- */
43
- getChildContext(): {
44
- kendoIntlService: IntlService;
45
- };
46
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
47
- locale: PropType<string>;
48
- }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
49
- kendoIntlService: any;
50
- }, true, {}, any>;
51
-
52
- /**
53
- * Represents the props of the KendoVue IntlProvider component.
54
- */
55
- export declare interface IntlProviderProps {
56
- /**
57
- * The locale that will be used by the child components.
58
- */
59
- locale: string;
60
- }
61
-
62
- /**
63
- * A service which provides internationalization methods
64
- * and is bound to a specific locale.
65
- */
66
- export declare class IntlService {
67
- private locale;
68
- /**
69
- * Creates a new instance of the internationalization service.
70
- *
71
- * @param locale - The locale that will be used by the internationalization methods.
72
- */
73
- constructor(locale: string);
74
- /**
75
- * Formats a string with placeholders such as
76
- * `Total amount {0:c}`.
77
- *
78
- * @param format - The format string.
79
- * @param values - One or more values to output in the format string placeholders.
80
- * @return - The formatted string.
81
- */
82
- format(format: string, ...values: any[]): string;
83
- /**
84
- * Converts a `Date` object to a string based on the specified format.
85
- * If no format is provided, the default short date format is used.
86
- *
87
- * @param value - The date which will be formatted.
88
- * @param format - The format string or options.
89
- * @return - The formatted date.
90
- */
91
- formatDate(value: Date, format?: string | DateFormatOptions): string;
92
- /**
93
- * Converts an object to a string based on the specified format.
94
- *
95
- * @param value - The value which will be formatted.
96
- * @param format - The format to use.
97
- * @return - The formatted object.
98
- */
99
- toString(value: any, format: string | any): string;
100
- /**
101
- * Converts a string to a `Number`.
102
- *
103
- * @param value - The string which will be parsed.
104
- * @param format - The format string or options.
105
- * @return - The parsed number.
106
- */
107
- parseNumber(value: string, format?: string | NumberFormatOptions): number;
108
- /**
109
- * Converts a string to a `Date` object based on the specified format.
110
- *
111
- * @param value - The string which will be converted.
112
- * @param format - The format strings or options.
113
- * @return - The parsed date.
114
- */
115
- parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[]): Date;
116
- /**
117
- * Converts a `Number` to a string based on the specified format.
118
- *
119
- * @param value - The number which will be formatted.
120
- * @param format - The format string or options.
121
- * @return - The formatted number.
122
- */
123
- formatNumber(value: number, format: string | NumberFormatOptions): string;
124
- /**
125
- * Returns a localized date field name based on specific `dateFieldName` options.
126
- *
127
- * @param options - The detailed configuration for the desired date field name.
128
- * @returns - The localized date field name from the current locale based on the option.
129
- */
130
- dateFieldName(options: DateFieldNameOptions): string;
131
- /**
132
- * Returns the day names from the current locale based on the option.
133
- *
134
- * @param options - The detailed configuration for the desired date format.
135
- * @return - The day names from the current locale based on the option.
136
- */
137
- dateFormatNames(options: DateFormatNameOptions): any;
138
- /**
139
- * Splits the date format into objects which contain
140
- * information about each part of the pattern.
141
- *
142
- * @param format - The format string or options.
143
- * @returns - The date format parts.
144
- */
145
- splitDateFormat(format: string | DateFormatOptions): DateFormatPart[];
146
- /**
147
- * Returns the number symbols from the current locale.
148
- *
149
- * @return - The number symbols from the current locale.
150
- */
151
- numberSymbols(): any;
152
- /**
153
- * Returns the first day index, starting from Sunday.
154
- *
155
- * @return - The index of the first day of the week (0 == Sunday).
156
- */
157
- firstDay(): number;
158
- }
159
-
160
- export { load }
161
-
162
- /**
163
- * Provides mechanism to load language-specific messages for the KendoVue components.
164
- *
165
- * @param messages - An iterable object which contains key-value pairs.
166
- * @param languages - The language to which the messages are associated.
167
- */
168
- export declare function loadMessages(messages: any, language: string): void;
169
-
170
- /**
171
- * @hidden
172
- */
173
- export declare const LocalizationProvider: DefineComponent<ExtractPropTypes< {
174
- language: StringConstructor;
175
- }>, void, any, {}, {
176
- /**
177
- * Returns a localization service.
178
- * The method is suitable for overriding when you
179
- * implement custom localization behavior.
180
- */
181
- getLocalizationService(): LocalizationService;
182
- /**
183
- * @hidden
184
- */
185
- getChildContext(): {
186
- kendoLocalizationService: LocalizationService;
187
- };
188
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
189
- language: StringConstructor;
190
- }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
191
- kendoLocalizationService: any;
192
- }, true, {}, any>;
193
-
194
- /**
195
- * Represents the props of the KendoVue LocalizationProvider component.
196
- */
197
- export declare interface LocalizationProviderProps {
198
- /**
199
- * The language that will be used by the child components.
200
- */
201
- language: string;
202
- }
203
-
204
- /**
205
- * A service which provides localization methods.
206
- */
207
- export declare class LocalizationService {
208
- private language?;
209
- constructor(language?: string);
210
- /**
211
- * Provides a string based on a key for the current language.
212
- * When no string for the current language is available under this key,
213
- * the `defaultValue` is returned.
214
- *
215
- * @param key - The key which identifies the string for the current language.
216
- * @param defaultValue - The default value which will be returned when no string
217
- * for the current language is available under the key.
218
- * @return - The string for the current language.
219
- */
220
- toLanguageString(key: string, defaultValue: string): string;
221
- }
222
-
223
- export { NumberFormatOptions }
224
-
225
- /**
226
- * Provides an internationalization service.
227
- * When the passed component is a direct or indirect child of
228
- * `IntlProvider`, the returned service uses the locale of the provider.
229
- * Otherwise, uses `en` as a default locale.
230
- * To handle locale changes, call the method on each `render`.
231
- *
232
- * @param componentClass - The Vue component class that will use the internationalization service.
233
- */
234
- export declare function provideIntlService(component: any): IntlService;
235
-
236
- /**
237
- * Provides a localization service.
238
- * When the passed component is a direct or indirect child of
239
- * `LocalizationProvider`, the returned service uses the language of the provider.
240
- * To handle locale changes, call the method on each `render`.
241
- *
242
- * @param componentClass - The Vue component class that will use the internationalization service.
243
- */
244
- export declare function provideLocalizationService(component: any): LocalizationService;
245
-
246
- export { }
8
+ export * from './Intl/index.js';
9
+ export * from './Localization/index.js';
10
+ export * from './coreExports.js';
11
+ export * from './intlUtils.js';
package/index.d.ts CHANGED
@@ -5,242 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { ComponentOptionsMixin } from 'vue';
9
- import { DateFieldNameOptions } from '@progress/kendo-intl';
10
- import { DateFormatNameOptions } from '@progress/kendo-intl';
11
- import { DateFormatOptions } from '@progress/kendo-intl';
12
- import { DateFormatPart } from '@progress/kendo-intl';
13
- import { DefineComponent } from 'vue';
14
- import { ExtractPropTypes } from 'vue';
15
- import { load } from '@progress/kendo-intl';
16
- import { NumberFormatOptions } from '@progress/kendo-intl';
17
- import { PropType } from 'vue';
18
- import { PublicProps } from 'vue';
19
-
20
- export { DateFieldNameOptions }
21
-
22
- export { DateFormatNameOptions }
23
-
24
- export { DateFormatOptions }
25
-
26
- export { DateFormatPart }
27
-
28
- /**
29
- * @hidden
30
- */
31
- export declare const IntlProvider: DefineComponent<ExtractPropTypes< {
32
- locale: PropType<string>;
33
- }>, void, any, {}, {
34
- /**
35
- * Returns an internationalization service.
36
- * The method is suitable for overriding when you
37
- * implement custom internationalization behavior.
38
- */
39
- getIntlService(): IntlService;
40
- /**
41
- * @hidden
42
- */
43
- getChildContext(): {
44
- kendoIntlService: IntlService;
45
- };
46
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
47
- locale: PropType<string>;
48
- }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
49
- kendoIntlService: any;
50
- }, true, {}, any>;
51
-
52
- /**
53
- * Represents the props of the KendoVue IntlProvider component.
54
- */
55
- export declare interface IntlProviderProps {
56
- /**
57
- * The locale that will be used by the child components.
58
- */
59
- locale: string;
60
- }
61
-
62
- /**
63
- * A service which provides internationalization methods
64
- * and is bound to a specific locale.
65
- */
66
- export declare class IntlService {
67
- private locale;
68
- /**
69
- * Creates a new instance of the internationalization service.
70
- *
71
- * @param locale - The locale that will be used by the internationalization methods.
72
- */
73
- constructor(locale: string);
74
- /**
75
- * Formats a string with placeholders such as
76
- * `Total amount {0:c}`.
77
- *
78
- * @param format - The format string.
79
- * @param values - One or more values to output in the format string placeholders.
80
- * @return - The formatted string.
81
- */
82
- format(format: string, ...values: any[]): string;
83
- /**
84
- * Converts a `Date` object to a string based on the specified format.
85
- * If no format is provided, the default short date format is used.
86
- *
87
- * @param value - The date which will be formatted.
88
- * @param format - The format string or options.
89
- * @return - The formatted date.
90
- */
91
- formatDate(value: Date, format?: string | DateFormatOptions): string;
92
- /**
93
- * Converts an object to a string based on the specified format.
94
- *
95
- * @param value - The value which will be formatted.
96
- * @param format - The format to use.
97
- * @return - The formatted object.
98
- */
99
- toString(value: any, format: string | any): string;
100
- /**
101
- * Converts a string to a `Number`.
102
- *
103
- * @param value - The string which will be parsed.
104
- * @param format - The format string or options.
105
- * @return - The parsed number.
106
- */
107
- parseNumber(value: string, format?: string | NumberFormatOptions): number;
108
- /**
109
- * Converts a string to a `Date` object based on the specified format.
110
- *
111
- * @param value - The string which will be converted.
112
- * @param format - The format strings or options.
113
- * @return - The parsed date.
114
- */
115
- parseDate(value: string, format?: string | DateFormatOptions | string[] | DateFormatOptions[]): Date;
116
- /**
117
- * Converts a `Number` to a string based on the specified format.
118
- *
119
- * @param value - The number which will be formatted.
120
- * @param format - The format string or options.
121
- * @return - The formatted number.
122
- */
123
- formatNumber(value: number, format: string | NumberFormatOptions): string;
124
- /**
125
- * Returns a localized date field name based on specific `dateFieldName` options.
126
- *
127
- * @param options - The detailed configuration for the desired date field name.
128
- * @returns - The localized date field name from the current locale based on the option.
129
- */
130
- dateFieldName(options: DateFieldNameOptions): string;
131
- /**
132
- * Returns the day names from the current locale based on the option.
133
- *
134
- * @param options - The detailed configuration for the desired date format.
135
- * @return - The day names from the current locale based on the option.
136
- */
137
- dateFormatNames(options: DateFormatNameOptions): any;
138
- /**
139
- * Splits the date format into objects which contain
140
- * information about each part of the pattern.
141
- *
142
- * @param format - The format string or options.
143
- * @returns - The date format parts.
144
- */
145
- splitDateFormat(format: string | DateFormatOptions): DateFormatPart[];
146
- /**
147
- * Returns the number symbols from the current locale.
148
- *
149
- * @return - The number symbols from the current locale.
150
- */
151
- numberSymbols(): any;
152
- /**
153
- * Returns the first day index, starting from Sunday.
154
- *
155
- * @return - The index of the first day of the week (0 == Sunday).
156
- */
157
- firstDay(): number;
158
- }
159
-
160
- export { load }
161
-
162
- /**
163
- * Provides mechanism to load language-specific messages for the KendoVue components.
164
- *
165
- * @param messages - An iterable object which contains key-value pairs.
166
- * @param languages - The language to which the messages are associated.
167
- */
168
- export declare function loadMessages(messages: any, language: string): void;
169
-
170
- /**
171
- * @hidden
172
- */
173
- export declare const LocalizationProvider: DefineComponent<ExtractPropTypes< {
174
- language: StringConstructor;
175
- }>, void, any, {}, {
176
- /**
177
- * Returns a localization service.
178
- * The method is suitable for overriding when you
179
- * implement custom localization behavior.
180
- */
181
- getLocalizationService(): LocalizationService;
182
- /**
183
- * @hidden
184
- */
185
- getChildContext(): {
186
- kendoLocalizationService: LocalizationService;
187
- };
188
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
189
- language: StringConstructor;
190
- }>> & Readonly<{}>, {}, {}, {}, {}, string, () => {
191
- kendoLocalizationService: any;
192
- }, true, {}, any>;
193
-
194
- /**
195
- * Represents the props of the KendoVue LocalizationProvider component.
196
- */
197
- export declare interface LocalizationProviderProps {
198
- /**
199
- * The language that will be used by the child components.
200
- */
201
- language: string;
202
- }
203
-
204
- /**
205
- * A service which provides localization methods.
206
- */
207
- export declare class LocalizationService {
208
- private language?;
209
- constructor(language?: string);
210
- /**
211
- * Provides a string based on a key for the current language.
212
- * When no string for the current language is available under this key,
213
- * the `defaultValue` is returned.
214
- *
215
- * @param key - The key which identifies the string for the current language.
216
- * @param defaultValue - The default value which will be returned when no string
217
- * for the current language is available under the key.
218
- * @return - The string for the current language.
219
- */
220
- toLanguageString(key: string, defaultValue: string): string;
221
- }
222
-
223
- export { NumberFormatOptions }
224
-
225
- /**
226
- * Provides an internationalization service.
227
- * When the passed component is a direct or indirect child of
228
- * `IntlProvider`, the returned service uses the locale of the provider.
229
- * Otherwise, uses `en` as a default locale.
230
- * To handle locale changes, call the method on each `render`.
231
- *
232
- * @param componentClass - The Vue component class that will use the internationalization service.
233
- */
234
- export declare function provideIntlService(component: any): IntlService;
235
-
236
- /**
237
- * Provides a localization service.
238
- * When the passed component is a direct or indirect child of
239
- * `LocalizationProvider`, the returned service uses the language of the provider.
240
- * To handle locale changes, call the method on each `render`.
241
- *
242
- * @param componentClass - The Vue component class that will use the internationalization service.
243
- */
244
- export declare function provideLocalizationService(component: any): LocalizationService;
245
-
246
- export { }
8
+ export * from './Intl';
9
+ export * from './Localization';
10
+ export * from './coreExports';
11
+ export * from './intlUtils';
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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./intlUtils.js"),i=require("./Intl/IntlProvider.js"),r=require("./Intl/IntlService.js"),o=require("./Localization/loadMessages.js"),t=require("./Localization/LocalizationProvider.js"),c=require("./Localization/LocalizationService.js"),n=require("@progress/kendo-intl");exports.provideIntlService=e.provideIntlService;exports.provideLocalizationService=e.provideLocalizationService;exports.IntlProvider=i.IntlProvider;exports.IntlService=r.IntlService;exports.loadMessages=o.loadMessages;exports.LocalizationProvider=t.LocalizationProvider;exports.LocalizationService=c.LocalizationService;Object.defineProperty(exports,"load",{enumerable:!0,get:()=>n.load});
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./intlUtils.js"),i=require("./Intl/IntlProvider.js"),r=require("./Intl/IntlService.js"),o=require("./Localization/LocalizationProvider.js"),t=require("./Localization/LocalizationService.js"),c=require("@progress/kendo-intl"),n=require("./Localization/loadMessages.js");exports.provideIntlService=e.provideIntlService;exports.provideLocalizationService=e.provideLocalizationService;exports.IntlProvider=i.IntlProvider;exports.IntlService=r.IntlService;exports.LocalizationProvider=o.LocalizationProvider;exports.LocalizationService=t.LocalizationService;Object.defineProperty(exports,"load",{enumerable:!0,get:()=>c.load});exports.loadMessages=n.loadMessages;
package/index.mjs CHANGED
@@ -8,17 +8,17 @@
8
8
  import { provideIntlService as e, provideLocalizationService as i } from "./intlUtils.mjs";
9
9
  import { IntlProvider as a } from "./Intl/IntlProvider.mjs";
10
10
  import { IntlService as l } from "./Intl/IntlService.mjs";
11
- import { loadMessages as c } from "./Localization/loadMessages.mjs";
12
- import { LocalizationProvider as m } from "./Localization/LocalizationProvider.mjs";
13
- import { LocalizationService as d } from "./Localization/LocalizationService.mjs";
14
- import { load as S } from "@progress/kendo-intl";
11
+ import { LocalizationProvider as c } from "./Localization/LocalizationProvider.mjs";
12
+ import { LocalizationService as m } from "./Localization/LocalizationService.mjs";
13
+ import { load as d } from "@progress/kendo-intl";
14
+ import { loadMessages as S } from "./Localization/loadMessages.mjs";
15
15
  export {
16
16
  a as IntlProvider,
17
17
  l as IntlService,
18
- m as LocalizationProvider,
19
- d as LocalizationService,
20
- S as load,
21
- c as loadMessages,
18
+ c as LocalizationProvider,
19
+ m as LocalizationService,
20
+ d as load,
21
+ S as loadMessages,
22
22
  e as provideIntlService,
23
23
  i as provideLocalizationService
24
24
  };
package/intlUtils.d.ts ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { IntlService } from './Intl/IntlService';
9
+ import { LocalizationService } from './Localization/LocalizationService';
10
+ /**
11
+ * Provides an internationalization service.
12
+ * When the passed component is a direct or indirect child of
13
+ * `IntlProvider`, the returned service uses the locale of the provider.
14
+ * Otherwise, uses `en` as a default locale.
15
+ * To handle locale changes, call the method on each `render`.
16
+ *
17
+ * @param componentClass - The Vue component class that will use the internationalization service.
18
+ */
19
+ export declare function provideIntlService(component: any): IntlService;
20
+ /**
21
+ * Provides a localization service.
22
+ * When the passed component is a direct or indirect child of
23
+ * `LocalizationProvider`, the returned service uses the language of the provider.
24
+ * To handle locale changes, call the method on each `render`.
25
+ *
26
+ * @param componentClass - The Vue component class that will use the internationalization service.
27
+ */
28
+ export declare function provideLocalizationService(component: any): LocalizationService;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { PackageMetadata } from '@progress/kendo-licensing';
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const packageMetadata: PackageMetadata;
@@ -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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-intl",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1773129866,version:"8.0.3-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-intl",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1773401292,version:"8.0.3-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1773129866,
14
- version: "8.0.3-develop.2",
13
+ publishDate: 1773401292,
14
+ version: "8.0.3-develop.3",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-intl",
3
- "version": "8.0.3-develop.2",
3
+ "version": "8.0.3-develop.3",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -9,8 +9,14 @@
9
9
  "types": "./index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "import": "./index.mjs",
13
- "require": "./index.js"
12
+ "import": {
13
+ "types": "./index.d.mts",
14
+ "default": "./index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./index.d.ts",
18
+ "default": "./index.js"
19
+ }
14
20
  },
15
21
  "./package.json": {
16
22
  "default": "./package.json"
@@ -20,7 +26,7 @@
20
26
  "peerDependencies": {
21
27
  "@progress/kendo-intl": "^3.2.1",
22
28
  "@progress/kendo-licensing": "^1.7.2",
23
- "@progress/kendo-vue-common": "8.0.3-develop.2",
29
+ "@progress/kendo-vue-common": "8.0.3-develop.3",
24
30
  "vue": "^3.0.2"
25
31
  },
26
32
  "dependencies": {},
@@ -40,7 +46,7 @@
40
46
  "package": {
41
47
  "productName": "Kendo UI for Vue",
42
48
  "productCode": "KENDOUIVUE",
43
- "publishDate": 1773129866,
49
+ "publishDate": 1773401292,
44
50
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/"
45
51
  }
46
52
  },