Skip to content

Commit 0e3aa97

Browse files
committed
Sync with Kendo UI Professional
1 parent db26085 commit 0e3aa97

File tree

13 files changed

+146
-164
lines changed

13 files changed

+146
-164
lines changed

docs/api/javascript/ui/chat.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ component: chat
77

88
# kendo.ui.Chat
99

10-
Represents the Kendo UI Chat widget. Inherits from [Widget](/api/javascript/ui/widget).
10+
Represents the Kendo UI Chat component. Inherits from [Widget](/api/javascript/ui/widget).
1111

1212
## Configuration
1313

1414
### messages `Object`
1515

16-
Allows localization of the strings that are used in the widget.
16+
Allows localization of the strings that are used in the component.
1717

1818
#### Example
1919

@@ -26,9 +26,50 @@ Allows localization of the strings that are used in the widget.
2626
}).data("kendoChat");
2727
</script>
2828

29+
### messages.and `String` *(default: " and ")*
30+
31+
The localization for the ` and ` message that is displayed when several people are typing in the Chat.
32+
33+
<div id="chat"></div>
34+
<script>
35+
$("#chat").kendoChat({
36+
messages: {
37+
and: " custom and "
38+
}
39+
}).data("kendoChat");
40+
</script>
41+
42+
### messages.areTyping `String` *(default: " are typing.")*
43+
44+
The localization for the ` are typing.` message that is displayed when several people are typing in the Chat.
45+
46+
<div id="chat"></div>
47+
<script>
48+
$("#chat").kendoChat({
49+
messages: {
50+
areTyping: " custom are typing."
51+
}
52+
}).data("kendoChat");
53+
</script>
54+
55+
### messages.isTyping `String` *(default: "User is typing.")*
56+
57+
The localization for the ` is typing.` message that is displayed when someone is typing in the Chat.
58+
59+
<div id="chat"></div>
60+
<script>
61+
$("#chat").kendoChat({
62+
messages: {
63+
isTyping: " custom typing message."
64+
}
65+
}).data("kendoChat");
66+
</script>
67+
68+
#### Example
69+
2970
### messages.placeholder `String` *(default: "Type a message...")*
3071

31-
The hint that is displayed in the input textbox of the widget.
72+
The hint that is displayed in the input textbox of the component.
3273

3374
#### Example
3475

docs/controls/PDFViewer/pdfjs-processing.md

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,40 @@ By default, if no processing configuration is defined, the PDFViewer uses the PD
1414

1515
## Requirements
1616

17-
Add the PDF.js library scripts to the page.
17+
The following table showcases the compatibility between Kendo UI and the PDFJS library. Versions before Kendo UI 2024.4.1112 are not compatible with PDFJS 4.x.
1818

19-
## Basic Configuration
19+
| Major Releases | Compatible PDFJS Versions |
20+
| :--- | :--- |
21+
| [Kendo UI 2024.4.1112 (2024 Q4)](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-for-jquery-2024-4-1112-(2024-q4))| 4.3.136 |
22+
| [Kendo UI 2024.3.1015](https://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-for-jquery-2024-3-1015) | 3.x, 2.x |
2023

21-
The following example demonstrates how to configure the PDFViewer to use PDF.js processing.
24+
## Configuring with Kendo UI v2024.4.1112 and Later
25+
26+
Starting with v2024.4.1112(2024 Q4), the PDFViewer requires PDFJS version 4.x.x or later.
27+
28+
The following example demonstrates how to configure the PDFViewer to use PDF.js processing with versions starting with 4.x.x
29+
30+
```html
31+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.3.136/pdf.mjs" type="module"></script> <!-- Include pdf.js before the kendo scripts -->
32+
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.3.136/pdf.worker.mjs" type="module"></script> <!-- Include pdf.worker.js before the kendo scripts -->
33+
<script src="https://code.jquery.com/jquery-3.7.0.min.js" type="module"></script>
34+
<script src="https://kendo.cdn.telerik.com/2024.4.1112/js/kendo.all.min.js" type="module"></script>
35+
36+
<div id="pdfviewer"></div>
37+
<script type="module">
38+
$("#pdfviewer").kendoPDFViewer({
39+
pdfjsProcessing: {
40+
file: ""
41+
}
42+
});
43+
</script>
44+
```
45+
46+
## Configuring with Kendo UI v2024.3.1015 and Earlier
47+
48+
Versions of Kendo UI before v2024.4.1112 are not compatible with version 4.x of PDFJS. You must use either PDFJS 2.x or 3.x.
49+
50+
The following example demonstrates how to configure the PDFViewer to use PDF.js processing with versions prior to 4.x.x.
2251

2352
<div id="pdfviewer"></div>
2453
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>
@@ -33,17 +62,6 @@ The following example demonstrates how to configure the PDFViewer to use PDF.js
3362
});
3463
</script>
3564

36-
## Browser Support
37-
38-
PDF.js processing is not supported in Internet Explorer 9.
39-
40-
To work properly in Internet Explorer 11, PDF.js requires additional configuration.
41-
42-
<script>
43-
// Specify the workerSrc property for Internet Explorer support.
44-
window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
45-
</script>
46-
4765
## See Also
4866

4967
* [Basic Usage of the Kendo UI for jQuery PDFViewer (Demo)](https://demos.telerik.com/kendo-ui/pdfviewer/index)

src/kendo.autocomplete.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export const __meta__ = {
4040
READONLY = "readonly",
4141
FOCUSED = "k-focus",
4242
SELECTED = "k-selected",
43-
HIDDENCLASS = "k-hidden",
4443
STATEDISABLED = "k-disabled",
4544
AUTOCOMPLETEVALUE = "off",
4645
HOVER = "k-hover",
@@ -358,11 +357,12 @@ export const __meta__ = {
358357
},
359358

360359
search: function(word) {
361-
var that = this,
360+
let that = this,
362361
options = that.options,
363362
ignoreCase = options.ignoreCase,
364363
separator = that._separator(),
365364
length,
365+
lowerCaseValue,
366366
accentFoldingFiltering = that.dataSource.options.accentFoldingFiltering,
367367
element = that.filterInput && activeElement() === that.filterInput[0] ? that.filterInput : that.element;
368368

@@ -383,8 +383,10 @@ export const __meta__ = {
383383
this.listView.value([]);
384384
});
385385

386+
lowerCaseValue = accentFoldingFiltering ? word.toLocaleLowerCase(accentFoldingFiltering) : word.toLowerCase();
387+
386388
that._filterSource({
387-
value: ignoreCase ? (accentFoldingFiltering ? word.toLocaleLowerCase(accentFoldingFiltering) : word.toLowerCase()) : word,
389+
value: ignoreCase ? lowerCaseValue : word,
388390
operator: options.filter,
389391
field: options.dataTextField,
390392
ignoreCase: ignoreCase
@@ -771,10 +773,8 @@ export const __meta__ = {
771773
let index = this.listView._view.length - 1;
772774
this.listView.focus(index);
773775
this.suggest(this.listView._view[index].item);
774-
} else if (this.options.suggest && action == "focusFirst") {
775-
caret(this.element)[0];
776-
} else if (this.options.suggest && action == "focusLast") {
777-
caret(this.element)[this.element.val().length - 1];
776+
} else if (this.options.suggest && (action == "focusFirst" || action == "focusLast")) {
777+
caret(this.element);
778778
} else if (this.options.suggest && this.listView.focus() != null) {
779779
this.suggest(this.listView.focus());
780780
}

src/kendo.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ import "./kendo.icons.js";
551551
});
552552

553553
if (!wrapper[0].style.zIndex || originalZIndex < zIndex) {
554-
wrapper.css(ZINDEX, zIndex + 2);
554+
wrapper.css(ZINDEX, zIndex + 1);
555555
}
556556

557557
wrapper = null;

0 commit comments

Comments
 (0)