@progress/kendo-vue-editor 3.7.4-dev.202212020747 → 3.7.4-dev.202301091431

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.
@@ -55,6 +55,14 @@ var foregroundColor = 'editor.foregroundColor';
55
55
  * @hidden
56
56
  */
57
57
  var backgroundColor = 'editor.backgroundColor';
58
+ /**
59
+ * @hidden
60
+ */
61
+ var foregroundColorAriaLabel = 'editor.foregroundColorAriaLabel';
62
+ /**
63
+ * @hidden
64
+ */
65
+ var backgroundColorAriaLabel = 'editor.backgroundColorAriaLabel';
58
66
  /**
59
67
  * @hidden
60
68
  */
@@ -345,6 +353,8 @@ export var messages = (_a = {},
345
353
  _a[pdf] = 'Export as PDF',
346
354
  _a[foregroundColor] = 'Color',
347
355
  _a[backgroundColor] = 'Background color',
356
+ _a[foregroundColorAriaLabel] = 'Set ForeGround color',
357
+ _a[backgroundColorAriaLabel] = 'Set Background color',
348
358
  // Tables
349
359
  _a[createTable] = 'Create a table',
350
360
  _a[createTableHint] = 'Create a {0} x {1} table',
@@ -435,6 +445,8 @@ export var keys = {
435
445
  pdf: pdf,
436
446
  foregroundColor: foregroundColor,
437
447
  backgroundColor: backgroundColor,
448
+ foregroundColorAriaLabel: foregroundColorAriaLabel,
449
+ backgroundColorAriaLabel: backgroundColorAriaLabel,
438
450
  createTable: createTable,
439
451
  createTableHint: createTableHint,
440
452
  addRowBefore: addRowBefore,
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-editor',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1669966596,
8
+ publishDate: 1673273667,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
11
11
  };
@@ -29,7 +29,8 @@ var ApplyColorVue2 = {
29
29
  color: String,
30
30
  colorPickerProps: Object,
31
31
  commandName: String,
32
- dir: String
32
+ dir: String,
33
+ ariaLabel: String
33
34
  },
34
35
  inject: {
35
36
  kendoLocalizationService: {
@@ -48,7 +49,8 @@ var ApplyColorVue2 = {
48
49
  var h = gh || createElement;
49
50
  var _a = this.$props,
50
51
  colorPickerProps = _a.colorPickerProps,
51
- dir = _a.dir;
52
+ dir = _a.dir,
53
+ ariaLabel = _a.ariaLabel;
52
54
  var titleKey = colorPickerProps.title;
53
55
  var localization = provideLocalizationService(this);
54
56
  var cpProps = __assign(__assign({}, colorPickerProps), {
@@ -56,7 +58,8 @@ var ApplyColorVue2 = {
56
58
  showButtons: false,
57
59
  showClearButton: false,
58
60
  showPreview: false,
59
- title: titleKey ? localization.toLanguageString(titleKey, messages[titleKey]) : titleKey
61
+ title: titleKey ? localization.toLanguageString(titleKey, messages[titleKey]) : titleKey,
62
+ ariaLabel: ariaLabel
60
63
  });
61
64
  var cp = h(ColorPicker, __assign({
62
65
  onChange: this.onChange,
@@ -386,15 +386,26 @@ var EditorVue2 = {
386
386
  };
387
387
  var renderTool = function renderTool(currentTool, _index) {
388
388
  var ct = allTools[currentTool] || currentTool;
389
+ var getAriaLabel = function getAriaLabel() {
390
+ var ariaLabel;
391
+ if (currentTool === 'ForeColor') {
392
+ ariaLabel = ls.toLanguageString(keys.foregroundColorAriaLabel, messages[keys.foregroundColorAriaLabel]);
393
+ } else if (currentTool === 'BackColor') {
394
+ ariaLabel = ls.toLanguageString(keys.backgroundColor, messages[keys.backgroundColor]);
395
+ }
396
+ return ariaLabel;
397
+ };
389
398
  if (allTools[currentTool]) {
390
399
  toolindex++;
391
- var toolProps = __assign({
400
+ var toolProps = __assign(__assign({
392
401
  view: view,
393
402
  dir: this.$props.dir,
394
403
  key: toolindex,
395
404
  updateGuid: this.updateGuid,
396
405
  settings: allTools[currentTool].props
397
- }, allTools[currentTool].props);
406
+ }, allTools[currentTool].props), {
407
+ ariaLabel: getAriaLabel()
408
+ });
398
409
  return h(this.v3 ? markRaw(allTools[currentTool].comp) : allTools[currentTool].comp, this.v3 ? toolProps : {
399
410
  props: toolProps
400
411
  });
@@ -439,7 +450,7 @@ var EditorVue2 = {
439
450
  }, this);
440
451
  return h("div", {
441
452
  "class": classNames('k-widget k-editor', {
442
- 'k-editor-resizable': this.$props.resizable
453
+ 'k-resizable': this.$props.resizable
443
454
  }),
444
455
  dir: this.$props.dir,
445
456
  attrs: this.v3 ? undefined : {
@@ -448,6 +459,7 @@ var EditorVue2 = {
448
459
  }, [buttons.length > 0 &&
449
460
  // @ts-ignore function children
450
461
  h(Toolbar, {
462
+ "class": 'k-editor-toolbar',
451
463
  keyboardNavigation: this.$props.keyboardNavigation,
452
464
  attrs: this.v3 ? undefined : {
453
465
  keyboardNavigation: this.$props.keyboardNavigation
@@ -544,6 +556,7 @@ var EditorVue2 = {
544
556
  this.contentElement = iframeDocument_1.createElement('div');
545
557
  iframeDocument_1.body.appendChild(this.contentElement);
546
558
  this.contentElement.classList.add('k-content');
559
+ this.contentElement.setAttribute('role', 'main');
547
560
  }
548
561
  var dom = this.contentElement;
549
562
  if (!dom) {
@@ -158,6 +158,10 @@ export declare namespace EditorToolsSettings {
158
158
  * The dir of the applied command.
159
159
  */
160
160
  dir?: String;
161
+ /**
162
+ * The ariaLabel of the applied command.
163
+ */
164
+ ariaLabel?: String;
161
165
  }
162
166
  /**
163
167
  * The setting of the IndentAction tool.