From f3d7dc362ca5059c7bef6a4ae15692004b65a878 Mon Sep 17 00:00:00 2001 From: kendo-bot Date: Wed, 1 May 2024 04:18:49 +0000 Subject: [PATCH] Sync with Kendo UI Professional --- docs/_config.yml | 2 + docs/accessibility/keyboard-support.md | 1 + docs/accessibility/wcag.md | 1 + docs/api/javascript/ui/treelist.md | 61 ++++ .../aiprompt/accessibility/key-nav.md | 29 ++ .../aiprompt/accessibility/overview.md | 34 ++ docs/controls/aiprompt/get-started.md | 324 ++++++++++++++++++ docs/controls/aiprompt/overview.md | 30 ++ docs/controls/aiprompt/templates.md | 68 ++++ docs/controls/aiprompt/views.md | 96 ++++++ package-lock.json | 84 ++--- package.json | 14 +- src/kendo.validator.js | 2 +- 13 files changed, 696 insertions(+), 50 deletions(-) create mode 100644 docs/controls/aiprompt/accessibility/key-nav.md create mode 100644 docs/controls/aiprompt/accessibility/overview.md create mode 100644 docs/controls/aiprompt/get-started.md create mode 100644 docs/controls/aiprompt/overview.md create mode 100644 docs/controls/aiprompt/templates.md create mode 100644 docs/controls/aiprompt/views.md diff --git a/docs/_config.yml b/docs/_config.yml index 100e3ffae77..214d06bc8f5 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -680,6 +680,8 @@ navigation: title: "Upload" "*window": title: "Window" + "*aiprompt": + title: "AIPrompt" "*hello-kendo-ui": title: "Hello Kendo UI" "*home-page": diff --git a/docs/accessibility/keyboard-support.md b/docs/accessibility/keyboard-support.md index b4b9fefd542..9350d086874 100644 --- a/docs/accessibility/keyboard-support.md +++ b/docs/accessibility/keyboard-support.md @@ -24,6 +24,7 @@ Keyboard support in Kendo UI maps access-key combinations and ensures that users Besides the `accesskey` attribute support, most Kendo UI components also offer a series of keyboard controls for interacting with them. The specific keyboard shortcuts supported by each component are provided in the following keyboard examples. +- [AIPrompt](https://demos.telerik.com/kendo-ui/aiprompt/keyboard-navigation) - [AutoComplete](https://demos.telerik.com/kendo-ui/autocomplete/keyboard-navigation) - [BottomNavigation](https://demos.telerik.com/kendo-ui/bottomnavigaiton/keyboard-navigation) - [Breadcrumb](https://demos.telerik.com/kendo-ui/breadcrumb/keyboard-navigation) diff --git a/docs/accessibility/wcag.md b/docs/accessibility/wcag.md index f550625e141..e20f5475627 100644 --- a/docs/accessibility/wcag.md +++ b/docs/accessibility/wcag.md @@ -23,6 +23,7 @@ The following table lists the Section 508 and WCAG compliance levels of support |Component |WCAG 2.2| Accessibility Example | |:--- |:---|:--- |ActionSheet |AA | [Demo](https://demos.telerik.com/kendo-ui/accessibility/actionsheet)| +|AIPrompt |AA | n/a| |AppBar |AA | [Demo](https://demos.telerik.com/kendo-ui/accessibility/appbar)| |AutoComplete |AA | [Demo](https://demos.telerik.com/kendo-ui/accessibility/autocomplete)| |Avatar |AA | [Demo](https://demos.telerik.com/kendo-ui/accessibility/avatar)| diff --git a/docs/api/javascript/ui/treelist.md b/docs/api/javascript/ui/treelist.md index 8366756a27a..172ef3574d3 100644 --- a/docs/api/javascript/ui/treelist.md +++ b/docs/api/javascript/ui/treelist.md @@ -5903,6 +5903,67 @@ The name of the toolbar command. Can be either a built-in ("create", "excel", or }); + +### toolbar.template `String|Function` + +The [template](/api/javascript/kendo/methods/template) which renders the command. By default renders a button. Uses the template for a ToolBar item [toolbar.items.template](/api/javascript/ui/toolbar/configuration/items.template) + +#### Example - set the template as a function + +
+ + + +> Check [Toolbar template](https://demos.telerik.com/kendo-ui/treelist/toolbar-template) for a live demo. + +#### Example - set the template as a string + +
+ + + ### toolbar.text `String` The text that is displayed by the command button. If not set, the TreeList will use the [`name`](/api/javascript/ui/treelist#configuration-toolbar.name)` option as the button text instead. diff --git a/docs/controls/aiprompt/accessibility/key-nav.md b/docs/controls/aiprompt/accessibility/key-nav.md new file mode 100644 index 00000000000..4b8fbeb20f4 --- /dev/null +++ b/docs/controls/aiprompt/accessibility/key-nav.md @@ -0,0 +1,29 @@ +--- +title: Keyboard Navigation +page_title: jQuery AIPrompt Documentation - Keyboard Navigation +description: "Get started with the jQuery AIPrompt by Kendo UI and learn about the accessibility support it provides through its keyboard navigation functionality." +slug: keynav_aiprompt_jquery +position: 2 +--- + +# Keyboard Navigation + +The keyboard navigation of the AIPrompt is always available. + +Kendo UI AIPrompt supports the following keyboard shortcuts: + +| SHORTCUT | DESCRIPTION | +|:--- |:--- | +| `Enter`/`Space` | When the toolbar is focused, selects the focused view. When a panel item is focused, expands or collapses the item. When a button is focused, triggers the click event.| +| `Tab` | Navigates to the next structure element of the AIPrompt—either the header, the content, or the footer element.| +| `Shift`+`Tab` | Navigates to the previous structure element of the AIPrompt—either the header, the content, or the footer element.| +| `Up/Down Arrows` | Navigates to the next/previous item when a panel is focused.| +| `Right/Left Arrows` | Navigates to the next/previous view button when the toolbar is focused.| + +For a complete example, refer to the [demo on keyboard navigation of the AIPrompt](https://demos.telerik.com/kendo-ui/aiprompt/keyboard-navigation). + +## See Also + +* [Keyboard Navigation by the AIPrompt (Demo)](https://demos.telerik.com/kendo-ui/aiprompt/keyboard-navigation) +* [Keyboard Support in Kendo UI for jQuery]({% slug keyboard_shortcuts_accessibility_support %}) +* [Accessibility in the AIPrompt]({% slug accessibility_kendoui_aiprompt_component %}) diff --git a/docs/controls/aiprompt/accessibility/overview.md b/docs/controls/aiprompt/accessibility/overview.md new file mode 100644 index 00000000000..cfa68d8fb06 --- /dev/null +++ b/docs/controls/aiprompt/accessibility/overview.md @@ -0,0 +1,34 @@ +--- +title: Overview +page_title: jQuery AIPrompt Documentation - AIPrompt Accessibility +description: "Get started with the jQuery AIPrompt and learn about its accessibility support for WAI-ARIA, Section 508, and WCAG 2.2." +slug: accessibility_kendoui_aiprompt_component +position: 1 +--- + +# AIPrompt Accessibility + +The AIPrompt is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and keyboard support. + +For more information, refer to: +* [Keyboard navigation by the Kendo UI AIPrompt]({% slug keynav_aiprompt_jquery %}) +* [Accessibility in Kendo UI for jQuery]({% slug overview_accessibility_support_kendoui %}) + +## WAI-ARIA + +The component follows the WAI-ARIA Authoring Practices for implementing the keyboard navigation for its component role and is tested against the popular screen readers. For more information, refer to the article on [WAI-ARIA support in Kendo UI for jQuery]({% slug wai_aria_accessibility_support %}). + +## Section 508 + +The AIPrompt is compliant with the Section 508 requirements. For more information, refer to the article on [Section 508 support in Kendo UI for jQuery]({% slug section508_accessibility_support %}). + +## WCAG 2.2 + +The AIPrompt supports the standards for providing accessible web content which are set by the [Web Content Accessibility Guidelines 2.1](https://www.w3.org/TR/WCAG/). For more information, refer to the article on [WCAG 2.2 compliance in Kendo UI for jQuery]({% slug section508_wcag21_accessibility_support %}) + +## See Also + +* [Keyboard Navigation by the AIPrompt (Demo)](https://demos.telerik.com/kendo-ui/aiprompt/keyboard-navigation) +* [Keyboard Navigation by the AIPrompt]({% slug keynav_aiprompt_jquery %}) +* [Keyboard Support in Kendo UI for jQuery]({% slug keyboard_shortcuts_accessibility_support %}) +* [Accessibility in Kendo UI for jQuery]({% slug overview_accessibility_support_kendoui %}) diff --git a/docs/controls/aiprompt/get-started.md b/docs/controls/aiprompt/get-started.md new file mode 100644 index 00000000000..ba114c778ee --- /dev/null +++ b/docs/controls/aiprompt/get-started.md @@ -0,0 +1,324 @@ +--- +title: Getting Started +page_title: jQuery AIPrompt Documentation - Getting Started with the AIPrompt +description: "Get started with the jQuery AIPrompt by Kendo UI and learn how to create the component." +slug: getting_started_kendoui_aiprompt_component +position: 1 +--- + +# Getting Started with the AIPrompt + +This guide demonstrates how to get up and running with the Kendo UI for jQuery AIPrompt. + +After the completion of this guide, you will be able to achieve the following end result: + +```dojo +
+ +``` + +## 1. Create an Empty Div Element + +First, create an empty`
` element on the page that will be used to initialize the component. + +```html +
+``` + +## 2. Initialize the AIPrompt + +In this step, you will initialize the AIPrompt from the `
` element. When you initialize the component, all settings of the AIPrompt will be provided in the script statement. You have to describe its configuration and event handlers in JavaScript. + +```html +
+ + +``` + +## 3. Configure the Views + +Here, you will specify which [`views`](/api/javascript/ui/aiprompt/configuration/views) will be displayed in the component. For the purposes of this guide, we will include two item collections for the prompt suggestions and the items in the command view. + +```html +
+ + +``` + +## 4. Handle the PromptRequest Event + +In order to generate a response for the prompts suggestions, you will need to first send a request to your service through the `promptRequest` event. For this guide, we will use a mocked response. + +```html +
+ +``` + +## 5. Handle the CommandExecute Event + +In a similar fashion, if you wish to execute a command to process the generated request, you can handle the `commandExecute` event. + +```html +
+ +``` + +## Next Steps + +* [Referencing Existing Component Instances]({% slug widget_methodsand_events_kendoui_installation %}) +* [Templates in the Kendo AIPrompt]({% slug templates_aiprompt_component %}) +* [Demo Page for the Kendo UI for jQuery AIPrompt](https://demos.telerik.com/kendo-ui/aiprompt/index) + +## See Also + +* [JavaScript API Reference of the jQuery AIPrompt](/api/javascript/ui/aiprompt) +* [Knowledge Base Section](/knowledge-base) + + diff --git a/docs/controls/aiprompt/overview.md b/docs/controls/aiprompt/overview.md new file mode 100644 index 00000000000..b0b57aa6a0c --- /dev/null +++ b/docs/controls/aiprompt/overview.md @@ -0,0 +1,30 @@ +--- +title: Overview +page_title: jQuery AIPrompt Documentation - AIPrompt Overview +description: "Get started with the jQuery AIPrompt by Kendo UI and learn how to initialize the widget." +slug: overview_kendoui_aiprompt_component +position: 0 +--- + +# {{ site.product }} AIPrompt Overview + +The Kendo UI for jQuery AIPrompt provides users with a modern interface to interact with AI services, while enhancing usability for developers by offering smooth customization. The component brings a range of functionalities, from generating responses to writing prompts and interacting with AI outputs, to executing a set of predefined commands. + +![Kendo UI for jQuery AIPrompt Overview](aiprompt-overview.PNG) + +## Functionality and Features + +* [Views]({% slug views_aiprompt_component %})—You can configure the available views in the component. You can also implement a custom view. +* [Templates]({% slug templates_aiprompt_component %})—The AIPrompt allows you to customize the prompt suggestions' appearance and define a custom view by using templates. +* [Accessibility]({% slug accessibility_kendoui_actionsheet_widget %})—The AIPrompt is accessible for screen readers, supports WAI-ARIA attributes, and delivers keyboard shortcuts for faster navigation. + +## Next Steps + +* [Getting Started with the Kendo UI AIPrompt for jQuery]({% slug getting_started_kendoui_aiprompt_component %}) +* [Demo Page for the AIPrompt](https://demos.telerik.com/kendo-ui/aiprompt/index) +* [JavaScript API Reference of the AIPrompt](/api/javascript/ui/aiprompt) + +## See Also + +* [Overview of the AIPrompt (Demo)](https://demos.telerik.com/kendo-ui/aiprompt/index) +* [JavaScript API Reference of the AIPrompt](/api/javascript/ui/aiprompt) diff --git a/docs/controls/aiprompt/templates.md b/docs/controls/aiprompt/templates.md new file mode 100644 index 00000000000..4ef63c11c23 --- /dev/null +++ b/docs/controls/aiprompt/templates.md @@ -0,0 +1,68 @@ +--- +title: Prompt Suggestion Template +page_title: jQuery AIPrompt Documentation - AIPrompt Suggestion Template +description: "Learn about how to use Kendo UI Prompt Suggestion Template with the jQuery AIPrompt" +slug: templates_aiprompt_component +position: 3 +--- + +# Templates + +The AIPrompt provides full control over the rendering of the items by using [Kendo UI templates]({% slug overview_kendoui_templatescomponent %}). + +For a complete example, refer to the [demo on customizing the AIPrompt templates](https://demos.telerik.com/kendo-ui/aiprompt/templates). + +## PromptSuggestion Template + +The [`promptSuggestionItemTemplate`](/api/javascript/ui/aiprompt/configuration/promptsuggestionitemtemplate) allows you to customize the appearance of the prompt suggestion items in the `prompt` view. + +```dojo +
+ +``` + +## See Also + +* [Templates Demo of the AIPrompt](https://demos.telerik.com/kendo-ui/aiprompt/templates) +* [JavaScript API Reference of the AIPrompt](/api/javascript/ui/aiprompt) diff --git a/docs/controls/aiprompt/views.md b/docs/controls/aiprompt/views.md new file mode 100644 index 00000000000..3d252851e71 --- /dev/null +++ b/docs/controls/aiprompt/views.md @@ -0,0 +1,96 @@ +--- +title: Views +page_title: jQuery AIPrompt Documentation - AIPrompt Views +description: "Learn about how to set the views of the jQuery AIPrompt" +slug: views_aiprompt_component +position: 2 +--- + +# Views + +The AIPrompt allows you to show pre-defined and custom views. The [`views`](/api/javascript/ui/aiprompt/configuration/views) configuration exposes a number of options that you can set for a view, such as text, name, or icon. + +Below you will find a list of the supported view types: + +* `prompt`—This view contains the prompt suggestions. Rendered by default. +* `output`—The output view is where you see the generated content, along with the copy, retry, and rating buttons. Rendered by default. +* `commands`—The commands view contains the actions a user can pick from to further process the generated content. Rendered only if a set of commands is passed. +* `custom`—With custom views, you can configure and show additional content based on your project's requirements. Use [`viewTemplate`](/api/javascript/ui/aiprompt/configuration/views.viewtemplate) and [`footerTemplate`](/api/javascript/ui/aiprompt/configuration/views.footertemplate) to control the contents of the custom view. + +The example below shows a possible configuration for all the view types: + +```dojo +
+ +``` + +## See Also + +* [Templates in the AIPrompt]({% slug templates_aiprompt_component %}) +* [JavaScript API Reference of the AIPrompt](/api/javascript/ui/aiprompt) diff --git a/package-lock.json b/package-lock.json index 8fc2e16dbea..5e98a7a590f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,13 +10,13 @@ "license": "Apache-2.0", "devDependencies": { "@progress/kendo-svg-icons": "2.3.0", - "@progress/kendo-theme-bootstrap": "8.0.0-dev.10", - "@progress/kendo-theme-classic": "8.0.0-dev.10", - "@progress/kendo-theme-core": "8.0.0-dev.10", - "@progress/kendo-theme-default": "8.0.0-dev.10", - "@progress/kendo-theme-fluent": "8.0.0-dev.10", - "@progress/kendo-theme-material": "8.0.0-dev.10", - "@progress/kendo-theme-utils": "8.0.0-dev.10", + "@progress/kendo-theme-bootstrap": "8.0.0-dev.11", + "@progress/kendo-theme-classic": "8.0.0-dev.11", + "@progress/kendo-theme-core": "8.0.0-dev.11", + "@progress/kendo-theme-default": "8.0.0-dev.11", + "@progress/kendo-theme-fluent": "8.0.0-dev.11", + "@progress/kendo-theme-material": "8.0.0-dev.11", + "@progress/kendo-theme-utils": "8.0.0-dev.11", "@progress/wct-a11y-spec": "^2.0.9", "@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-virtual": "^2.1.0", @@ -302,15 +302,15 @@ "dev": true }, "node_modules/@progress/kendo-theme-bootstrap": { - "version": "8.0.0-dev.10", - "resolved": "https://registry.npmjs.org/@progress/kendo-theme-bootstrap/-/kendo-theme-bootstrap-8.0.0-dev.10.tgz", - "integrity": "sha512-3TOahMI2NalmrsyZLocRQnBXXDEx5xQeVtN+1fZT964cclfFhEGcqgRAYy2wwPo1m0du8cPBJ0gemyMvHg/h1Q==", + "version": "8.0.0-dev.11", + "resolved": "https://registry.npmjs.org/@progress/kendo-theme-bootstrap/-/kendo-theme-bootstrap-8.0.0-dev.11.tgz", + "integrity": "sha512-RNiE4M4pN8DObOim72lgzFJXKzm4YVmKRvjIRrBzWsRS8p9plpDZqYOjvf8RdbSBsrKKKwS6dwmRIai2ovz0BQ==", "dev": true, "dependencies": { "@progress/kendo-svg-icons": "2.3.0", - "@progress/kendo-theme-core": "8.0.0-dev.10", - "@progress/kendo-theme-default": "8.0.0-dev.10", - "@progress/kendo-theme-utils": "8.0.0-dev.10", + "@progress/kendo-theme-core": "8.0.0-dev.11", + "@progress/kendo-theme-default": "8.0.0-dev.11", + "@progress/kendo-theme-utils": "8.0.0-dev.11", "bootstrap": "5.2.1" } }, @@ -334,64 +334,64 @@ } }, "node_modules/@progress/kendo-theme-classic": { - "version": "8.0.0-dev.10", - "resolved": "https://registry.npmjs.org/@progress/kendo-theme-classic/-/kendo-theme-classic-8.0.0-dev.10.tgz", - "integrity": "sha512-g12ahk3bzzQ3VkEmRol9729DS/OyOoMDM/YM0wdHLz0zQlXGNlFo0V0fA+XaytbMER4HZ8eQgXNJpOqM4A4NhQ==", + "version": "8.0.0-dev.11", + "resolved": "https://registry.npmjs.org/@progress/kendo-theme-classic/-/kendo-theme-classic-8.0.0-dev.11.tgz", + "integrity": "sha512-kdoO1CgEU5zxrXSnvOu8cpP3p57t9FV3AHFLPMYgn9PtcrIs4+dvtDhyTuT9eXcovcjskaAz3HsW+F7TToz3GA==", "dev": true, "dependencies": { "@progress/kendo-svg-icons": "2.3.0", - "@progress/kendo-theme-core": "8.0.0-dev.10", - "@progress/kendo-theme-default": "8.0.0-dev.10", - "@progress/kendo-theme-utils": "8.0.0-dev.10" + "@progress/kendo-theme-core": "8.0.0-dev.11", + "@progress/kendo-theme-default": "8.0.0-dev.11", + "@progress/kendo-theme-utils": "8.0.0-dev.11" } }, "node_modules/@progress/kendo-theme-core": { - "version": "8.0.0-dev.10", - "resolved": "https://registry.npmjs.org/@progress/kendo-theme-core/-/kendo-theme-core-8.0.0-dev.10.tgz", - "integrity": "sha512-GDmc+n4RWg+pj/8PLMPgp22q/Ht7Cwg8iIwxZjTioJv7Uae1IWi/uHXB7qgsOS8ic2e4JGiCH+GOmVR/BhVKnw==", + "version": "8.0.0-dev.11", + "resolved": "https://registry.npmjs.org/@progress/kendo-theme-core/-/kendo-theme-core-8.0.0-dev.11.tgz", + "integrity": "sha512-RoDniajbztejfh0C9En/QGL5zebQDhOuZipQNSgmTGlpKqIjqhXvjCPj6DHPHJSQAucTPEqZ7CIc3G5hhHqG7w==", "dev": true }, "node_modules/@progress/kendo-theme-default": { - "version": "8.0.0-dev.10", - "resolved": "https://registry.npmjs.org/@progress/kendo-theme-default/-/kendo-theme-default-8.0.0-dev.10.tgz", - "integrity": "sha512-bCZxz7hULUc8Se5hHYhV6yaJdHi0Jegi1G3cTb8sUBv3XA6J1KWXioHl5R+jLGyM6mju+qNY3bBidCwdr1o9Yw==", + "version": "8.0.0-dev.11", + "resolved": "https://registry.npmjs.org/@progress/kendo-theme-default/-/kendo-theme-default-8.0.0-dev.11.tgz", + "integrity": "sha512-NVTXnBHkn7LDxu74tlLp3MbKfaCUGO1Clp9qj+dK8W72gHn2UxpJQtlZWHRXwIzW3q93vATk96Sgln5Hyip5VA==", "dev": true, "dependencies": { "@progress/kendo-svg-icons": "2.3.0", - "@progress/kendo-theme-core": "8.0.0-dev.10", - "@progress/kendo-theme-utils": "8.0.0-dev.10" + "@progress/kendo-theme-core": "8.0.0-dev.11", + "@progress/kendo-theme-utils": "8.0.0-dev.11" } }, "node_modules/@progress/kendo-theme-fluent": { - "version": "8.0.0-dev.10", - "resolved": "https://registry.npmjs.org/@progress/kendo-theme-fluent/-/kendo-theme-fluent-8.0.0-dev.10.tgz", - "integrity": "sha512-9Wg/UFGkw7kXnBAsHHHGDAD46yQNz+GNbSpWgw0e+h1SdXpHYE0CtDKV2cRRDS5rTPZccwcBpcu0KnfUN3je+A==", + "version": "8.0.0-dev.11", + "resolved": "https://registry.npmjs.org/@progress/kendo-theme-fluent/-/kendo-theme-fluent-8.0.0-dev.11.tgz", + "integrity": "sha512-ZxofQ3DhAxh9iaJug5TjU85ee4e3exSAqdcYw8vFTKVu5uK47HYIwVlhDsWrum5A4nVVScltx6ru01yhNS6lzg==", "dev": true, "dependencies": { "@progress/kendo-svg-icons": "2.3.0", - "@progress/kendo-theme-core": "8.0.0-dev.10", - "@progress/kendo-theme-utils": "8.0.0-dev.10" + "@progress/kendo-theme-core": "8.0.0-dev.11", + "@progress/kendo-theme-utils": "8.0.0-dev.11" } }, "node_modules/@progress/kendo-theme-material": { - "version": "8.0.0-dev.10", - "resolved": "https://registry.npmjs.org/@progress/kendo-theme-material/-/kendo-theme-material-8.0.0-dev.10.tgz", - "integrity": "sha512-RudK9vmq8CPxXaYMHPNKU82sW0F0dSqddkh3Kl7cS5ozy/N1TGZruGwAAR4w8BiYwzQVnr++t+vHtDhFBosBqg==", + "version": "8.0.0-dev.11", + "resolved": "https://registry.npmjs.org/@progress/kendo-theme-material/-/kendo-theme-material-8.0.0-dev.11.tgz", + "integrity": "sha512-PIyxIh2UrdE1yrc/hT79+YLdcyL2xRRbUlWrbJB1WJ9N142LgjJPh//IP3smKm+YfZy3LOGVUyLJMU0FyPrYBw==", "dev": true, "dependencies": { "@progress/kendo-svg-icons": "2.3.0", - "@progress/kendo-theme-core": "8.0.0-dev.10", - "@progress/kendo-theme-default": "8.0.0-dev.10", - "@progress/kendo-theme-utils": "8.0.0-dev.10" + "@progress/kendo-theme-core": "8.0.0-dev.11", + "@progress/kendo-theme-default": "8.0.0-dev.11", + "@progress/kendo-theme-utils": "8.0.0-dev.11" } }, "node_modules/@progress/kendo-theme-utils": { - "version": "8.0.0-dev.10", - "resolved": "https://registry.npmjs.org/@progress/kendo-theme-utils/-/kendo-theme-utils-8.0.0-dev.10.tgz", - "integrity": "sha512-Fv0JJJbplt6yE5V+b9hcjI/a1OfgiuYDl0j99dwcR5dpfn7U/1PgYpwu9XIGTFn5lSJOvbz5MwpvQ0q2CJZK8Q==", + "version": "8.0.0-dev.11", + "resolved": "https://registry.npmjs.org/@progress/kendo-theme-utils/-/kendo-theme-utils-8.0.0-dev.11.tgz", + "integrity": "sha512-Wpq9jtj+ssOrnSeF/Fpoj8/JUotqpP80bBZ5zi1w4nzFQOM1wQJQEZ1IW6wx922aH8/O0OJME/mC9XMcYmUQmg==", "dev": true, "dependencies": { - "@progress/kendo-theme-core": "8.0.0-dev.10" + "@progress/kendo-theme-core": "8.0.0-dev.11" } }, "node_modules/@progress/wct-a11y-spec": { diff --git a/package.json b/package.json index efaa545c57e..193a2b19357 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,13 @@ "version": "1.0.0", "devDependencies": { "@progress/kendo-svg-icons": "2.3.0", - "@progress/kendo-theme-bootstrap": "8.0.0-dev.10", - "@progress/kendo-theme-classic": "8.0.0-dev.10", - "@progress/kendo-theme-core": "8.0.0-dev.10", - "@progress/kendo-theme-default": "8.0.0-dev.10", - "@progress/kendo-theme-fluent": "8.0.0-dev.10", - "@progress/kendo-theme-material": "8.0.0-dev.10", - "@progress/kendo-theme-utils": "8.0.0-dev.10", + "@progress/kendo-theme-bootstrap": "8.0.0-dev.11", + "@progress/kendo-theme-classic": "8.0.0-dev.11", + "@progress/kendo-theme-core": "8.0.0-dev.11", + "@progress/kendo-theme-default": "8.0.0-dev.11", + "@progress/kendo-theme-fluent": "8.0.0-dev.11", + "@progress/kendo-theme-material": "8.0.0-dev.11", + "@progress/kendo-theme-utils": "8.0.0-dev.11", "@progress/wct-a11y-spec": "^2.0.9", "@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-virtual": "^2.1.0", diff --git a/src/kendo.validator.js b/src/kendo.validator.js index d809595ad02..fc54e7a2f03 100644 --- a/src/kendo.validator.js +++ b/src/kendo.validator.js @@ -229,7 +229,7 @@ var __meta__ = { step: function(input) { if (input.filter(NUMBERINPUTSELECTOR + ",[" + kendo.attr("type") + "=number]").filter("[step]").length && input.val() !== "") { var min = parseFloat(input.attr("min")) || 0, - step = parseFloat(input.attr("step")) || 1, + step = kendo.parseFloat(input.attr("step")) || 1, val = parseFloat(input.val()), decimals = numberOfDecimalDigits(step), raise;