@progress/kendo-react-editor 5.5.1-dev.202207221045 → 5.6.0-dev.202208080636

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,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-editor',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1658485878,
8
+ publishDate: 1659939602,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -22,6 +22,8 @@ import * as React from 'react';
22
22
  import { toggleList, listStyle } from '@progress/kendo-editor-common';
23
23
  import { SplitButton } from '@progress/kendo-react-buttons';
24
24
  import { listsTypes } from './../config/toolsSettings';
25
+ import { useLocalization } from '@progress/kendo-react-intl';
26
+ import { messages } from '../messages';
25
27
  var parentNode = function (state, nodeType) {
26
28
  var _a = state.selection, from = _a.from, to = _a.to;
27
29
  var result = null;
@@ -39,6 +41,7 @@ export var ListTool = function (props) {
39
41
  var view = props.view;
40
42
  var types = listsTypes;
41
43
  var listType = props.listType;
44
+ var localization = useLocalization();
42
45
  var items = __spreadArray([], (props.items || []), true);
43
46
  var ol, ul;
44
47
  if (view) {
@@ -73,5 +76,5 @@ export var ListTool = function (props) {
73
76
  items = items.map(function (item, index) { return (__assign(__assign({}, item), { selected: listStyleType_1 ? item.style === listStyleType_1 : index === 0 })); });
74
77
  }
75
78
  return (React.createElement("span", { onMouseDown: function (e) { e.preventDefault(); } },
76
- React.createElement(SplitButton, { textField: "text", items: items, icon: props.icon, onButtonClick: onButtonClick, onItemClick: onItemClick, buttonClass: isActive ? 'k-selected' : undefined })));
79
+ React.createElement(SplitButton, { textField: "text", items: items, icon: props.icon, onButtonClick: onButtonClick, onItemClick: onItemClick, buttonClass: isActive ? 'k-selected' : undefined, title: props.title !== undefined ? props.title : localization.toLanguageString(props.titleKey, messages[props.titleKey]) })));
77
80
  };
@@ -417,7 +417,7 @@ export var EditorTools;
417
417
  { icon: 'list-unordered-outline', text: 'Circle', style: 'circle' },
418
418
  { icon: 'list-unordered-square', text: 'Square', style: 'square' }
419
419
  ];
420
- return (React.createElement(ListTool, __assign({ listType: EditorToolsSettings.bulletList.listType, items: ulItems, icon: "list-unordered" }, props)));
420
+ return (React.createElement(ListTool, __assign({ listType: EditorToolsSettings.bulletList.listType, items: ulItems, icon: "list-unordered", titleKey: EditorToolsSettings.bulletList.messages.title }, props)));
421
421
  };
422
422
  /**
423
423
  * The NumberedList tool component.
@@ -432,7 +432,7 @@ export var EditorTools;
432
432
  { icon: 'list-latin-big', text: 'Upper latin', style: 'upper-latin' },
433
433
  { icon: 'list-latin-small', text: 'Lower latin', style: 'lower-latin' }
434
434
  ];
435
- return (React.createElement(ListTool, __assign({ listType: EditorToolsSettings.orderedList.listType, items: olItems, icon: "list-ordered" }, props)));
435
+ return (React.createElement(ListTool, __assign({ listType: EditorToolsSettings.orderedList.listType, items: olItems, icon: "list-ordered", titleKey: EditorToolsSettings.orderedList.messages.title }, props)));
436
436
  };
437
437
  /**
438
438
  * Creates the Outdent tool component of the Editor.
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-editor',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1658485878,
11
+ publishDate: 1659939602,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };
@@ -25,6 +25,8 @@ var React = require("react");
25
25
  var kendo_editor_common_1 = require("@progress/kendo-editor-common");
26
26
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
27
27
  var toolsSettings_1 = require("./../config/toolsSettings");
28
+ var kendo_react_intl_1 = require("@progress/kendo-react-intl");
29
+ var messages_1 = require("../messages");
28
30
  var parentNode = function (state, nodeType) {
29
31
  var _a = state.selection, from = _a.from, to = _a.to;
30
32
  var result = null;
@@ -42,6 +44,7 @@ var ListTool = function (props) {
42
44
  var view = props.view;
43
45
  var types = toolsSettings_1.listsTypes;
44
46
  var listType = props.listType;
47
+ var localization = (0, kendo_react_intl_1.useLocalization)();
45
48
  var items = __spreadArray([], (props.items || []), true);
46
49
  var ol, ul;
47
50
  if (view) {
@@ -76,6 +79,6 @@ var ListTool = function (props) {
76
79
  items = items.map(function (item, index) { return (__assign(__assign({}, item), { selected: listStyleType_1 ? item.style === listStyleType_1 : index === 0 })); });
77
80
  }
78
81
  return (React.createElement("span", { onMouseDown: function (e) { e.preventDefault(); } },
79
- React.createElement(kendo_react_buttons_1.SplitButton, { textField: "text", items: items, icon: props.icon, onButtonClick: onButtonClick, onItemClick: onItemClick, buttonClass: isActive ? 'k-selected' : undefined })));
82
+ React.createElement(kendo_react_buttons_1.SplitButton, { textField: "text", items: items, icon: props.icon, onButtonClick: onButtonClick, onItemClick: onItemClick, buttonClass: isActive ? 'k-selected' : undefined, title: props.title !== undefined ? props.title : localization.toLanguageString(props.titleKey, messages_1.messages[props.titleKey]) })));
80
83
  };
81
84
  exports.ListTool = ListTool;
@@ -420,7 +420,7 @@ var EditorTools;
420
420
  { icon: 'list-unordered-outline', text: 'Circle', style: 'circle' },
421
421
  { icon: 'list-unordered-square', text: 'Square', style: 'square' }
422
422
  ];
423
- return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.bulletList.listType, items: ulItems, icon: "list-unordered" }, props)));
423
+ return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.bulletList.listType, items: ulItems, icon: "list-unordered", titleKey: toolsSettings_1.EditorToolsSettings.bulletList.messages.title }, props)));
424
424
  };
425
425
  /**
426
426
  * The NumberedList tool component.
@@ -435,7 +435,7 @@ var EditorTools;
435
435
  { icon: 'list-latin-big', text: 'Upper latin', style: 'upper-latin' },
436
436
  { icon: 'list-latin-small', text: 'Lower latin', style: 'lower-latin' }
437
437
  ];
438
- return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.orderedList.listType, items: olItems, icon: "list-ordered" }, props)));
438
+ return (React.createElement(lists_styled_1.ListTool, __assign({ listType: toolsSettings_1.EditorToolsSettings.orderedList.listType, items: olItems, icon: "list-ordered", titleKey: toolsSettings_1.EditorToolsSettings.orderedList.messages.title }, props)));
439
439
  };
440
440
  /**
441
441
  * Creates the Outdent tool component of the Editor.