@progress/kendo-angular-inputs 8.0.0-dev.202201101634 → 8.0.0

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.
Files changed (75) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-inputs.js +1 -1
  5. package/dist/cdn/main.js +1 -1
  6. package/dist/es/colorpicker/color-gradient.component.js +3 -0
  7. package/dist/es/colorpicker/color-palette.component.js +6 -3
  8. package/dist/es/colorpicker/colorpicker.component.js +189 -49
  9. package/dist/es/colorpicker/flatcolorpicker.component.js +7 -4
  10. package/dist/es/maskedtextbox/maskedtextbox.component.js +1 -1
  11. package/dist/es/numerictextbox/numerictextbox.component.js +1 -1
  12. package/dist/es/package-metadata.js +1 -1
  13. package/dist/es/radiobutton/radiobutton.directive.js +3 -0
  14. package/dist/es/rangeslider/rangeslider-model.js +4 -7
  15. package/dist/es/rangeslider/rangeslider.component.js +1 -1
  16. package/dist/es/slider/slider-model.js +3 -5
  17. package/dist/es/slider/slider.component.js +2 -2
  18. package/dist/es/sliders-common/slider-model.base.js +7 -10
  19. package/dist/es/sliders-common/slider-ticks.component.js +3 -10
  20. package/dist/es/sliders-common/sliders-util.js +2 -3
  21. package/dist/es/switch/switch.component.js +1 -1
  22. package/dist/es/textarea/textarea.component.js +3 -2
  23. package/dist/es/textbox/textbox.component.js +1 -1
  24. package/dist/es2015/colorpicker/color-gradient.component.js +3 -0
  25. package/dist/es2015/colorpicker/color-palette.component.d.ts +1 -1
  26. package/dist/es2015/colorpicker/color-palette.component.js +6 -3
  27. package/dist/es2015/colorpicker/colorpicker.component.d.ts +19 -7
  28. package/dist/es2015/colorpicker/colorpicker.component.js +168 -70
  29. package/dist/es2015/colorpicker/flatcolorpicker.component.d.ts +2 -2
  30. package/dist/es2015/colorpicker/flatcolorpicker.component.js +7 -4
  31. package/dist/es2015/index.metadata.json +1 -1
  32. package/dist/es2015/maskedtextbox/maskedtextbox.component.d.ts +1 -1
  33. package/dist/es2015/maskedtextbox/maskedtextbox.component.js +1 -1
  34. package/dist/es2015/numerictextbox/numerictextbox.component.d.ts +1 -1
  35. package/dist/es2015/numerictextbox/numerictextbox.component.js +1 -1
  36. package/dist/es2015/package-metadata.js +1 -1
  37. package/dist/es2015/radiobutton/radiobutton.directive.js +3 -0
  38. package/dist/es2015/rangeslider/rangeslider-model.js +4 -7
  39. package/dist/es2015/rangeslider/rangeslider.component.js +55 -54
  40. package/dist/es2015/slider/slider-model.d.ts +1 -1
  41. package/dist/es2015/slider/slider-model.js +3 -5
  42. package/dist/es2015/slider/slider.component.js +39 -37
  43. package/dist/es2015/sliders-common/slider-model.base.js +7 -10
  44. package/dist/es2015/sliders-common/slider-ticks.component.d.ts +0 -2
  45. package/dist/es2015/sliders-common/slider-ticks.component.js +6 -10
  46. package/dist/es2015/sliders-common/sliders-util.d.ts +2 -2
  47. package/dist/es2015/sliders-common/sliders-util.js +2 -3
  48. package/dist/es2015/switch/switch.component.d.ts +1 -1
  49. package/dist/es2015/switch/switch.component.js +1 -1
  50. package/dist/es2015/textarea/textarea.component.d.ts +1 -1
  51. package/dist/es2015/textarea/textarea.component.js +10 -2
  52. package/dist/es2015/textbox/textbox.component.d.ts +1 -1
  53. package/dist/es2015/textbox/textbox.component.js +1 -1
  54. package/dist/fesm2015/index.js +333 -243
  55. package/dist/fesm5/index.js +256 -138
  56. package/dist/npm/colorpicker/color-gradient.component.js +3 -0
  57. package/dist/npm/colorpicker/color-palette.component.js +6 -3
  58. package/dist/npm/colorpicker/colorpicker.component.js +188 -48
  59. package/dist/npm/colorpicker/flatcolorpicker.component.js +7 -4
  60. package/dist/npm/maskedtextbox/maskedtextbox.component.js +1 -1
  61. package/dist/npm/numerictextbox/numerictextbox.component.js +1 -1
  62. package/dist/npm/package-metadata.js +1 -1
  63. package/dist/npm/radiobutton/radiobutton.directive.js +3 -0
  64. package/dist/npm/rangeslider/rangeslider-model.js +4 -7
  65. package/dist/npm/rangeslider/rangeslider.component.js +1 -1
  66. package/dist/npm/slider/slider-model.js +3 -5
  67. package/dist/npm/slider/slider.component.js +2 -2
  68. package/dist/npm/sliders-common/slider-model.base.js +6 -9
  69. package/dist/npm/sliders-common/slider-ticks.component.js +2 -9
  70. package/dist/npm/sliders-common/sliders-util.js +2 -3
  71. package/dist/npm/switch/switch.component.js +1 -1
  72. package/dist/npm/textarea/textarea.component.js +3 -2
  73. package/dist/npm/textbox/textbox.component.js +1 -1
  74. package/dist/systemjs/kendo-angular-inputs.js +1 -1
  75. package/package.json +5 -5
@@ -9,6 +9,7 @@ import { BehaviorSubject, Subject } from 'rxjs';
9
9
  import { throttleTime } from 'rxjs/operators';
10
10
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
11
11
  import { isChanged, isDocumentAvailable, KendoInput } from '@progress/kendo-angular-common';
12
+ import { validatePackage } from '@progress/kendo-licensing';
12
13
  import { containsFocus, isUntouched } from '../common/dom-utils';
13
14
  import { parseColor, getHSV, getColorFromHSV, getColorFromHue } from './utils';
14
15
  import { isPresent, fitIntoBounds } from '../common/utils';
@@ -16,6 +17,7 @@ import { SliderComponent } from '../slider/slider.component';
16
17
  import { ColorGradientLocalizationService } from './localization/colorgradient-localization.service';
17
18
  import { ColorInputComponent } from './color-input.component';
18
19
  import { DEFAULT_GRADIENT_BACKGROUND_COLOR, DEFAULT_OUTPUT_FORMAT, DRAGHANDLE_MOVE_SPEED } from './constants';
20
+ import { packageMetadata } from '../package-metadata';
19
21
  var serial = 0;
20
22
  /**
21
23
  * The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
@@ -95,6 +97,7 @@ var ColorGradientComponent = /** @class */ (function () {
95
97
  this.updateValues = new Subject();
96
98
  this.notifyNgChanged = function () { };
97
99
  this.notifyNgTouched = function () { };
100
+ validatePackage(packageMetadata);
98
101
  this.dynamicRTLSubscription = localizationService.changes.subscribe(function (_a) {
99
102
  var rtl = _a.rtl;
100
103
  _this.direction = rtl ? 'rtl' : 'ltr';
@@ -5,13 +5,15 @@
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Component, Input, EventEmitter, Output, HostBinding, HostListener, forwardRef, ChangeDetectorRef, Renderer2, ElementRef } from '@angular/core';
7
7
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
+ import { Keys, KendoInput, guid } from '@progress/kendo-angular-common';
9
+ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
+ import { validatePackage } from '@progress/kendo-licensing';
11
+ import { ColorPaletteLocalizationService } from './localization/colorpalette-localization.service';
12
+ import { packageMetadata } from '../package-metadata';
8
13
  import { PALETTEPRESETS } from './models';
9
14
  import { parseColor } from './utils';
10
15
  import { isPresent } from '../common/utils';
11
16
  import { ColorPaletteService } from './services/color-palette.service';
12
- import { Keys, KendoInput, guid } from '@progress/kendo-angular-common';
13
- import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
14
- import { ColorPaletteLocalizationService } from './localization/colorpalette-localization.service';
15
17
  var DEFAULT_TILE_SIZE = 24;
16
18
  var DEFAULT_COLUMNS_COUNT = 10;
17
19
  var DEFAULT_PRESET = 'office';
@@ -85,6 +87,7 @@ var ColorPaletteComponent = /** @class */ (function () {
85
87
  this._tabindex = 0;
86
88
  this.notifyNgTouched = function () { };
87
89
  this.notifyNgChanged = function () { };
90
+ validatePackage(packageMetadata);
88
91
  this.dynamicRTLSubscription = localizationService.changes.subscribe(function (_a) {
89
92
  var rtl = _a.rtl;
90
93
  _this.direction = rtl ? 'rtl' : 'ltr';
@@ -3,12 +3,14 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
+ import { take } from 'rxjs/operators';
6
7
  import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ElementRef, TemplateRef, ViewContainerRef, forwardRef, ChangeDetectorRef, NgZone, Renderer2 } from '@angular/core';
7
8
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
9
+ import { Subscription } from 'rxjs';
8
10
  import { FlatColorPickerComponent } from './flatcolorpicker.component';
9
11
  import { PopupService } from '@progress/kendo-angular-popup';
10
12
  import { validatePackage } from '@progress/kendo-licensing';
11
- import { Keys, KendoInput } from '@progress/kendo-angular-common';
13
+ import { Keys, KendoInput, isChanged, closest, guid } from '@progress/kendo-angular-common';
12
14
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
13
15
  import { packageMetadata } from '../package-metadata';
14
16
  import { PALETTEPRESETS } from './models';
@@ -17,7 +19,7 @@ import { parseColor } from './utils';
17
19
  import { getStylingClasses, isPresent } from '../common/utils';
18
20
  import { ColorPickerLocalizationService } from './localization/colorpicker-localization.service';
19
21
  import { DEFAULT_ACCESSIBLE_PRESET, DEFAULT_PRESET } from './constants';
20
- var serial = 0;
22
+ var DOM_FOCUS_EVENTS = ['focus', 'blur'];
21
23
  /**
22
24
  * Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
23
25
  *
@@ -34,10 +36,7 @@ var ColorPickerComponent = /** @class */ (function () {
34
36
  this.ngZone = ngZone;
35
37
  this.renderer = renderer;
36
38
  this.hostClasses = true;
37
- /**
38
- * @hidden
39
- */
40
- this.focusableId = "k-colorpicker-" + serial++;
39
+ this.role = 'listbox';
41
40
  /**
42
41
  * Specifies the views that will be rendered in the popup.
43
42
  * By default both the gradient and palette views will be rendered.
@@ -133,6 +132,10 @@ var ColorPickerComponent = /** @class */ (function () {
133
132
  * Used to provide a two-way binding for the `activeView` property.
134
133
  */
135
134
  this.activeViewChange = new EventEmitter();
135
+ /**
136
+ * Indicates whether the ColorPicker wrapper is focused.
137
+ */
138
+ this.isFocused = false;
136
139
  this._tabindex = 0;
137
140
  this._popupSettings = { animate: true };
138
141
  this._paletteSettings = {};
@@ -140,8 +143,10 @@ var ColorPickerComponent = /** @class */ (function () {
140
143
  this._size = 'medium';
141
144
  this._rounded = 'medium';
142
145
  this._fillMode = 'solid';
146
+ this.subscriptions = new Subscription();
143
147
  this.notifyNgTouched = function () { };
144
148
  this.notifyNgChanged = function () { };
149
+ this.domFocusListener = function (event) { return event.stopImmediatePropagation(); };
145
150
  validatePackage(packageMetadata);
146
151
  this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
147
152
  var rtl = _a.rtl;
@@ -149,6 +154,41 @@ var ColorPickerComponent = /** @class */ (function () {
149
154
  });
150
155
  }
151
156
  ColorPickerComponent_1 = ColorPickerComponent;
157
+ Object.defineProperty(ColorPickerComponent.prototype, "focusedClass", {
158
+ get: function () {
159
+ return this.isFocused;
160
+ },
161
+ enumerable: true,
162
+ configurable: true
163
+ });
164
+ Object.defineProperty(ColorPickerComponent.prototype, "disabledClass", {
165
+ get: function () {
166
+ return this.disabled;
167
+ },
168
+ enumerable: true,
169
+ configurable: true
170
+ });
171
+ Object.defineProperty(ColorPickerComponent.prototype, "ariaReadonly", {
172
+ get: function () {
173
+ return this.readonly;
174
+ },
175
+ enumerable: true,
176
+ configurable: true
177
+ });
178
+ Object.defineProperty(ColorPickerComponent.prototype, "ariaExpanded", {
179
+ get: function () {
180
+ return this.isOpen;
181
+ },
182
+ enumerable: true,
183
+ configurable: true
184
+ });
185
+ Object.defineProperty(ColorPickerComponent.prototype, "hostTabindex", {
186
+ get: function () {
187
+ return this.tabindex;
188
+ },
189
+ enumerable: true,
190
+ configurable: true
191
+ });
152
192
  Object.defineProperty(ColorPickerComponent.prototype, "view", {
153
193
  get: function () {
154
194
  return (this.views && this.views.length > 0) ? this.views[0] : null;
@@ -236,7 +276,7 @@ var ColorPickerComponent = /** @class */ (function () {
236
276
  return this._size;
237
277
  },
238
278
  /**
239
- * The size property specifies the font size and line height of the ColorPicker
279
+ * The size property specifies the padding of the ColorPicker internal elements
240
280
  * ([see example]({% slug appearance_colorpicker %}#toc-size)).
241
281
  *
242
282
  * The possible values are:
@@ -338,6 +378,9 @@ var ColorPickerComponent = /** @class */ (function () {
338
378
  stylingInputs.forEach(function (input) {
339
379
  _this.handleClasses(_this[input], input);
340
380
  });
381
+ this.setHostElementAriaLabel();
382
+ this.handleHostId();
383
+ this.initDomEvents();
341
384
  };
342
385
  ColorPickerComponent.prototype.ngOnChanges = function (changes) {
343
386
  if (changes.format && changes.format.currentValue === 'name') {
@@ -347,23 +390,18 @@ var ColorPickerComponent = /** @class */ (function () {
347
390
  this.format = 'rgba';
348
391
  this.value = parseColor(this.value, this.format, this.gradientSettings.opacity);
349
392
  }
393
+ if (isChanged('value', changes)) {
394
+ this.setHostElementAriaLabel();
395
+ }
350
396
  };
351
397
  ColorPickerComponent.prototype.ngOnDestroy = function () {
352
398
  this.closePopup();
353
399
  if (this.dynamicRTLSubscription) {
354
400
  this.dynamicRTLSubscription.unsubscribe();
355
401
  }
402
+ this.subscriptions.unsubscribe();
403
+ this.handleDomEvents('remove', DOM_FOCUS_EVENTS);
356
404
  };
357
- Object.defineProperty(ColorPickerComponent.prototype, "colorPickerAriaLabel", {
358
- /**
359
- * @hidden
360
- */
361
- get: function () {
362
- return this.value ? this.value : this.localizationService.get('colorPickerNoColor');
363
- },
364
- enumerable: true,
365
- configurable: true
366
- });
367
405
  /**
368
406
  * @hidden
369
407
  */
@@ -374,55 +412,74 @@ var ColorPickerComponent = /** @class */ (function () {
374
412
  * @hidden
375
413
  */
376
414
  ColorPickerComponent.prototype.togglePopup = function () {
377
- this.toggleWithEvents(!this.isOpen);
378
415
  this.focus();
416
+ this.toggleWithEvents(!this.isOpen);
379
417
  };
380
418
  /**
381
419
  * @hidden
382
420
  */
383
- ColorPickerComponent.prototype.handleActiveColorClick = function () {
421
+ ColorPickerComponent.prototype.handleWrapperClick = function (event) {
422
+ var _this = this;
423
+ if (this.disabled) {
424
+ return;
425
+ }
384
426
  this.focus();
385
- var event = new ActiveColorClickEvent(this.value);
386
- this.activeColorClick.emit(event);
387
- if (!event.isOpenPrevented() || this.isOpen) {
388
- this.togglePopup();
427
+ if (closest(event.target, function (element) { return element === _this.activeColor.nativeElement; })) {
428
+ var event_1 = new ActiveColorClickEvent(this.value);
429
+ this.activeColorClick.emit(event_1);
430
+ if (!event_1.isOpenPrevented() || this.isOpen) {
431
+ this.toggleWithEvents(!this.isOpen);
432
+ }
433
+ return;
389
434
  }
435
+ this.toggleWithEvents(!this.isOpen);
390
436
  };
391
437
  /**
392
438
  * Focuses the wrapper of the ColorPicker.
393
439
  */
394
440
  ColorPickerComponent.prototype.focus = function () {
395
- if (this.disabled) {
396
- return;
397
- }
398
- this.wrapper.nativeElement.focus();
441
+ this.isFocused = true;
442
+ this.host.nativeElement.focus();
399
443
  };
400
444
  /**
401
445
  * @hidden
402
446
  */
403
447
  ColorPickerComponent.prototype.handleWrapperFocus = function () {
448
+ var _this = this;
404
449
  if (this.isFocused) {
405
450
  return;
406
451
  }
407
- this.isFocused = true;
408
- this.onFocus.emit();
452
+ this.ngZone.run(function () {
453
+ _this.focus();
454
+ _this.onFocus.emit();
455
+ });
409
456
  };
410
457
  /**
411
458
  * Blurs the ColorPicker.
412
459
  */
413
460
  ColorPickerComponent.prototype.blur = function () {
414
- this.wrapper.nativeElement.blur();
461
+ this.isFocused = false;
462
+ this.host.nativeElement.blur();
463
+ this.notifyNgTouched();
415
464
  };
416
465
  /**
417
466
  * @hidden
418
467
  */
419
468
  ColorPickerComponent.prototype.handleWrapperBlur = function () {
469
+ var _this = this;
420
470
  if (this.isOpen) {
421
471
  return;
422
472
  }
423
- this.isFocused = false;
424
- this.onBlur.emit();
425
- this.notifyNgTouched();
473
+ this.ngZone.run(function () {
474
+ _this.onBlur.emit();
475
+ _this.isFocused = false;
476
+ });
477
+ };
478
+ /**
479
+ * @hidden
480
+ */
481
+ ColorPickerComponent.prototype.arrowButtonMouseDown = function (ev) {
482
+ ev.preventDefault();
426
483
  };
427
484
  /**
428
485
  * Clears the value of the ColorPicker.
@@ -432,6 +489,7 @@ var ColorPickerComponent = /** @class */ (function () {
432
489
  return;
433
490
  }
434
491
  this._value = undefined;
492
+ this.setHostElementAriaLabel();
435
493
  this.notifyNgChanged(undefined);
436
494
  };
437
495
  /**
@@ -459,6 +517,7 @@ var ColorPickerComponent = /** @class */ (function () {
459
517
  if (valueChange) {
460
518
  this.value = parsedColor;
461
519
  this.valueChange.emit(parsedColor);
520
+ this.setHostElementAriaLabel();
462
521
  this.notifyNgChanged(parsedColor);
463
522
  }
464
523
  };
@@ -503,9 +562,12 @@ var ColorPickerComponent = /** @class */ (function () {
503
562
  * @hidden
504
563
  */
505
564
  ColorPickerComponent.prototype.handleWrapperKeyDown = function (event) {
565
+ var _this = this;
506
566
  if (event.keyCode === Keys.ArrowDown || event.keyCode === Keys.Enter) {
507
567
  event.preventDefault();
508
- this.toggleWithEvents(true);
568
+ this.ngZone.run(function () {
569
+ _this.toggleWithEvents(true);
570
+ });
509
571
  }
510
572
  };
511
573
  /**
@@ -514,14 +576,14 @@ var ColorPickerComponent = /** @class */ (function () {
514
576
  ColorPickerComponent.prototype.handlePopupKeyDown = function (event) {
515
577
  if (event.keyCode === Keys.Escape) {
516
578
  this.toggleWithEvents(false);
517
- this.wrapper.nativeElement.focus();
579
+ this.host.nativeElement.focus();
518
580
  }
519
581
  if (event.keyCode === Keys.Tab) {
520
582
  var currentElement = event.shiftKey ? this.firstFocusableElement.nativeElement : this.lastFocusableElement.nativeElement;
521
583
  var nextElement = event.shiftKey ? this.lastFocusableElement.nativeElement : this.firstFocusableElement.nativeElement;
522
584
  if (event.target === currentElement) {
523
585
  event.preventDefault();
524
- nextElement.nativeElement.focus();
586
+ nextElement.focus();
525
587
  }
526
588
  }
527
589
  };
@@ -532,6 +594,10 @@ var ColorPickerComponent = /** @class */ (function () {
532
594
  ColorPickerComponent.prototype.isEmpty = function () {
533
595
  return false;
534
596
  };
597
+ ColorPickerComponent.prototype.setHostElementAriaLabel = function () {
598
+ var ariaLabelValue = "" + (this.value ? this.value : this.localizationService.get('colorPickerNoColor'));
599
+ this.renderer.setAttribute(this.host.nativeElement, 'aria-label', ariaLabelValue);
600
+ };
535
601
  ColorPickerComponent.prototype.handleClasses = function (value, input) {
536
602
  var elem = this.host.nativeElement;
537
603
  var classes = getStylingClasses('picker', input, this[input], value);
@@ -543,9 +609,10 @@ var ColorPickerComponent = /** @class */ (function () {
543
609
  }
544
610
  };
545
611
  ColorPickerComponent.prototype.popupBlurInvalid = function (ev) {
546
- var focusInPopupElement = this.popupRef.popupElement.contains(ev.relatedTarget);
547
- var wrapperClicked = ev.relatedTarget === this.wrapper.nativeElement;
548
- return !this.isFocused || wrapperClicked || focusInPopupElement;
612
+ var _this = this;
613
+ var focusInFlatColorPickerElement = this.popupRef.popupElement.contains(ev.relatedTarget);
614
+ var hostClicked = closest(ev.relatedTarget, function (element) { return element === _this.host.nativeElement; });
615
+ return hostClicked || focusInFlatColorPickerElement;
549
616
  };
550
617
  ColorPickerComponent.prototype.toggleWithEvents = function (open) {
551
618
  var sameState = this.isOpen === open;
@@ -570,12 +637,12 @@ var ColorPickerComponent = /** @class */ (function () {
570
637
  };
571
638
  ColorPickerComponent.prototype.focusFirstElement = function () {
572
639
  var _this = this;
573
- this.ngZone.runOutsideAngular(function () {
574
- setTimeout(function () {
640
+ this.ngZone.onStable.pipe(take(1)).subscribe(function () {
641
+ if (_this.flatColorPicker) {
575
642
  var elementToFocus = _this.flatColorPicker.gradient ? _this.flatColorPicker.gradient.gradientDragHandle :
576
643
  _this.flatColorPicker.palette.host;
577
644
  elementToFocus.nativeElement.focus();
578
- });
645
+ }
579
646
  });
580
647
  };
581
648
  ColorPickerComponent.prototype.openPopup = function () {
@@ -584,7 +651,7 @@ var ColorPickerComponent = /** @class */ (function () {
584
651
  var anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
585
652
  var popupPosition = { horizontal: horizontalAlign, vertical: "top" };
586
653
  this.popupRef = this.popupService.open({
587
- anchor: this.wrapper,
654
+ anchor: this.activeColor,
588
655
  animate: this.popupSettings.animate,
589
656
  appendTo: this.popupSettings.appendTo,
590
657
  popupAlign: popupPosition,
@@ -596,7 +663,7 @@ var ColorPickerComponent = /** @class */ (function () {
596
663
  this.popupRef.popupAnchorViewportLeave.subscribe(function () {
597
664
  _this.toggleWithEvents(false);
598
665
  if (!_this.isOpen) {
599
- _this.wrapper.nativeElement.focus({
666
+ _this.host.nativeElement.focus({
600
667
  preventScroll: true
601
668
  });
602
669
  }
@@ -632,6 +699,53 @@ var ColorPickerComponent = /** @class */ (function () {
632
699
  enumerable: true,
633
700
  configurable: true
634
701
  });
702
+ ColorPickerComponent.prototype.handleDomEvents = function (action, events) {
703
+ var _this = this;
704
+ var hostElement = this.host.nativeElement;
705
+ events.forEach(function (ev) { return hostElement[action + "EventListener"](ev, _this.domFocusListener, true); });
706
+ };
707
+ ColorPickerComponent.prototype.initDomEvents = function () {
708
+ var _this = this;
709
+ if (!this.host) {
710
+ return;
711
+ }
712
+ var hostElement = this.host.nativeElement;
713
+ this.ngZone.runOutsideAngular(function () {
714
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'focusin', function () {
715
+ _this.handleWrapperFocus();
716
+ }));
717
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'focusout', function (event) {
718
+ var closestPopup = _this.popupRef ?
719
+ closest(event.relatedTarget, function (element) { return element === _this.flatColorPicker.host.nativeElement; }) :
720
+ false;
721
+ var closestWrapper = closest(event.relatedTarget, function (element) { return element === _this.host.nativeElement; });
722
+ if (!closestPopup && !closestWrapper) {
723
+ _this.handleWrapperBlur();
724
+ }
725
+ }));
726
+ _this.handleDomEvents('add', DOM_FOCUS_EVENTS);
727
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'keydown', function (event) {
728
+ _this.handleWrapperKeyDown(event);
729
+ }));
730
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'click', function (event) {
731
+ _this.ngZone.run(function () {
732
+ _this.handleWrapperClick(event);
733
+ });
734
+ }));
735
+ });
736
+ };
737
+ ColorPickerComponent.prototype.handleHostId = function () {
738
+ var hostElement = this.host.nativeElement;
739
+ var existingId = hostElement.getAttribute('id');
740
+ if (existingId) {
741
+ this.focusableId = existingId;
742
+ }
743
+ else {
744
+ var id = "k-" + guid();
745
+ hostElement.setAttribute('id', id);
746
+ this.focusableId = id;
747
+ }
748
+ };
635
749
  var ColorPickerComponent_1;
636
750
  tslib_1.__decorate([
637
751
  HostBinding('class.k-colorpicker'),
@@ -639,14 +753,40 @@ var ColorPickerComponent = /** @class */ (function () {
639
753
  HostBinding('class.k-picker'),
640
754
  tslib_1.__metadata("design:type", Boolean)
641
755
  ], ColorPickerComponent.prototype, "hostClasses", void 0);
756
+ tslib_1.__decorate([
757
+ HostBinding('class.k-focus'),
758
+ tslib_1.__metadata("design:type", Boolean),
759
+ tslib_1.__metadata("design:paramtypes", [])
760
+ ], ColorPickerComponent.prototype, "focusedClass", null);
761
+ tslib_1.__decorate([
762
+ HostBinding('attr.aria-disabled'),
763
+ HostBinding('class.k-disabled'),
764
+ tslib_1.__metadata("design:type", Boolean),
765
+ tslib_1.__metadata("design:paramtypes", [])
766
+ ], ColorPickerComponent.prototype, "disabledClass", null);
767
+ tslib_1.__decorate([
768
+ HostBinding('attr.aria-readonly'),
769
+ tslib_1.__metadata("design:type", Boolean),
770
+ tslib_1.__metadata("design:paramtypes", [])
771
+ ], ColorPickerComponent.prototype, "ariaReadonly", null);
772
+ tslib_1.__decorate([
773
+ HostBinding('attr.aria-expanded'),
774
+ tslib_1.__metadata("design:type", Boolean),
775
+ tslib_1.__metadata("design:paramtypes", [])
776
+ ], ColorPickerComponent.prototype, "ariaExpanded", null);
777
+ tslib_1.__decorate([
778
+ HostBinding('attr.tabindex'),
779
+ tslib_1.__metadata("design:type", Number),
780
+ tslib_1.__metadata("design:paramtypes", [])
781
+ ], ColorPickerComponent.prototype, "hostTabindex", null);
642
782
  tslib_1.__decorate([
643
783
  HostBinding('attr.dir'),
644
784
  tslib_1.__metadata("design:type", String)
645
785
  ], ColorPickerComponent.prototype, "direction", void 0);
646
786
  tslib_1.__decorate([
647
- Input(),
787
+ HostBinding('attr.role'),
648
788
  tslib_1.__metadata("design:type", String)
649
- ], ColorPickerComponent.prototype, "focusableId", void 0);
789
+ ], ColorPickerComponent.prototype, "role", void 0);
650
790
  tslib_1.__decorate([
651
791
  Input(),
652
792
  tslib_1.__metadata("design:type", Array)
@@ -769,9 +909,9 @@ var ColorPickerComponent = /** @class */ (function () {
769
909
  tslib_1.__metadata("design:type", ViewContainerRef)
770
910
  ], ColorPickerComponent.prototype, "container", void 0);
771
911
  tslib_1.__decorate([
772
- ViewChild('wrapper', { static: true }),
912
+ ViewChild('activeColor', { static: true }),
773
913
  tslib_1.__metadata("design:type", ElementRef)
774
- ], ColorPickerComponent.prototype, "wrapper", void 0);
914
+ ], ColorPickerComponent.prototype, "activeColor", void 0);
775
915
  tslib_1.__decorate([
776
916
  ViewChild('popupTemplate', { static: true }),
777
917
  tslib_1.__metadata("design:type", TemplateRef)
@@ -802,7 +942,7 @@ var ColorPickerComponent = /** @class */ (function () {
802
942
  useValue: 'kendo.colorpicker'
803
943
  }
804
944
  ],
805
- template: "\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor=\"kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.\"\n colorPickerNoColor=\"Colorpicker no color chosen\"\n i18n-flatColorPickerNoColor=\"kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.colorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.colorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.colorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.colorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.colorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.colorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.colorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.colorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <span\n #wrapper\n [ngClass]=\"{\n 'k-input-inner': true,\n 'k-disabled': this.disabled,\n 'k-focus': this.isFocused\n }\"\n role=\"listbox\"\n [attr.aria-expanded]=\"isOpen\"\n [attr.aria-readonly]=\"readonly\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"colorPickerAriaLabel\"\n [id]=\"focusableId\"\n [attr.tabindex]=\"tabindex\"\n (focus)=\"handleWrapperFocus()\"\n (blur)=\"handleWrapperBlur()\"\n (mousedown)=\"$event.preventDefault()\"\n (keydown)=\"handleWrapperKeyDown($event)\"\n >\n <span\n class=\"k-value-icon k-color-preview\"\n [ngClass]=\"{'k-icon-color-preview': iconStyles, 'k-no-color': !value}\"\n (click)=\"handleActiveColorClick()\">\n <span *ngIf=\"iconClass || icon\" class=\"k-color-preview-icon k-icon\" [ngClass]=\"iconStyles\"></span>\n <span class=\"k-color-preview-mask\" [style.background-color]=\"value\"></span>\n </span>\n </span>\n <button\n type=\"button\"\n class=\"k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button\"\n [attr.aria-label]=\"colorPickerAriaLabel\"\n (click)=\"togglePopup()\">\n <span class=\"k-button-icon k-icon k-i-arrow-s\"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]=\"value\"\n [format]=\"format\"\n [views]=\"views\"\n [activeView]=\"activeView\"\n [actionsLayout]=\"actionsLayout\"\n [preview]=\"preview\"\n [gradientSettings]=\"gradientSettings\"\n [paletteSettings]=\"paletteSettings\"\n [clearButton]=\"clearButton\"\n (focusout)=\"handlePopupBlur($event)\"\n (cancel)=\"handleCancelEvent($event)\"\n (valueChange)=\"handleValueChange($event)\"\n (keydown)=\"handlePopupKeyDown($event)\"\n (activeViewChange)=\"activeViewChange.emit($event)\"\n (actionButtonClick)=\"togglePopup()\">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n "
945
+ template: "\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor=\"kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.\"\n colorPickerNoColor=\"Colorpicker no color chosen\"\n i18n-flatColorPickerNoColor=\"kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.colorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.colorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.colorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.colorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.colorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.colorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.colorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.colorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <span #activeColor class=\"k-input-inner\">\n <span\n class=\"k-value-icon k-color-preview\"\n [ngClass]=\"{'k-icon-color-preview': iconStyles, 'k-no-color': !value}\">\n <span *ngIf=\"iconClass || icon\" class=\"k-color-preview-icon k-icon\" [ngClass]=\"iconStyles\"></span>\n <span class=\"k-color-preview-mask\" [style.background-color]=\"value\"></span>\n </span>\n </span>\n <button\n #arrowButton\n tabindex=\"-1\"\n role=\"button\"\n class=\"k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button\">\n <span class=\"k-button-icon k-icon k-i-arrow-s\"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]=\"value\"\n [format]=\"format\"\n [views]=\"views\"\n [activeView]=\"activeView\"\n [actionsLayout]=\"actionsLayout\"\n [preview]=\"preview\"\n [gradientSettings]=\"gradientSettings\"\n [paletteSettings]=\"paletteSettings\"\n [clearButton]=\"clearButton\"\n (cancel)=\"handleCancelEvent($event)\"\n (focusout)=\"handlePopupBlur($event)\"\n (valueChange)=\"handleValueChange($event)\"\n (keydown)=\"handlePopupKeyDown($event)\"\n (activeViewChange)=\"activeViewChange.emit($event)\"\n (actionButtonClick)=\"togglePopup()\">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n "
806
946
  }),
807
947
  tslib_1.__metadata("design:paramtypes", [ElementRef,
808
948
  PopupService,
@@ -8,8 +8,10 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
8
  import { Subscription } from 'rxjs';
9
9
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
10
10
  import { isChanged, KendoInput } from '@progress/kendo-angular-common';
11
+ import { validatePackage } from "@progress/kendo-licensing";
11
12
  import { FlatColorPickerLocalizationService } from './localization/flatcolorpicker-localization.service';
12
13
  import { FlatColorPickerService } from './services/flatcolorpicker.service';
14
+ import { packageMetadata } from "../package-metadata";
13
15
  import { ColorPickerCancelEvent } from './events';
14
16
  import { parseColor } from './utils';
15
17
  import { isPresent } from '../common/utils';
@@ -24,10 +26,10 @@ import { FlatColorPickerActionButtonsComponent } from './flatcolorpicker-actions
24
26
  * through a gradient that renders an hsv canvas. It supports previewing the selected color, reverting it to its previous state or clearing it completely.
25
27
  */
26
28
  var FlatColorPickerComponent = /** @class */ (function () {
27
- function FlatColorPickerComponent(service, host, localizationService, cdr, renderer, ngZone) {
29
+ function FlatColorPickerComponent(host, service, localizationService, cdr, renderer, ngZone) {
28
30
  var _this = this;
29
- this.service = service;
30
31
  this.host = host;
32
+ this.service = service;
31
33
  this.localizationService = localizationService;
32
34
  this.cdr = cdr;
33
35
  this.renderer = renderer;
@@ -110,6 +112,7 @@ var FlatColorPickerComponent = /** @class */ (function () {
110
112
  this.subscriptions = new Subscription();
111
113
  this.notifyNgChanged = function () { };
112
114
  this.notifyNgTouched = function () { };
115
+ validatePackage(packageMetadata);
113
116
  this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
114
117
  var rtl = _a.rtl;
115
118
  _this.direction = rtl ? 'rtl' : 'ltr';
@@ -541,8 +544,8 @@ var FlatColorPickerComponent = /** @class */ (function () {
541
544
  ],
542
545
  template: "\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor=\"kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.flatcolorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.flatcolorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.flatcolorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.flatcolorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.flatcolorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.flatcolorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.flatcolorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.flatcolorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf=\"headerHasContent\"\n #header\n [clearButton]=\"clearButton\"\n [activeView]=\"activeView\"\n [views]=\"views\"\n [value]=\"value\"\n [selection]=\"selection\"\n [preview]=\"preview\"\n (clearButtonClick)=\"onClearButtonClick()\"\n (viewChange)=\"onViewChange($event)\"\n (valuePaneClick)=\"resetSelection($event)\">\n </div>\n <div class=\"k-coloreditor-views k-vstack\">\n <kendo-colorgradient #gradient\n *ngIf=\"activeView === 'gradient'\"\n [tabindex]=\"null\"\n [value]=\"selection\"\n [format]=\"format\"\n [opacity]=\"gradientSettings.opacity\"\n [delay]=\"gradientSettings.delay\"\n [contrastTool]=\"gradientSettings.contrastTool\"\n [readonly]=\"readonly\"\n (valueChange)=\"handleValueChange($event)\"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf=\"activeView === 'palette'\"\n kendoFocusOnDomReady\n [palette]=\"paletteSettings.palette\"\n [columns]=\"paletteSettings.columns\"\n [tileSize]=\"paletteSettings.tileSize\"\n [format]=\"format\"\n [value]=\"selection\"\n (valueChange)=\"handleValueChange($event)\"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf=\"preview\"\n #footer\n [ngClass]=\"'k-justify-content-' + actionsLayout\"\n (actionButtonClick)=\"onAction($event)\">\n </div>\n"
543
546
  }),
544
- tslib_1.__metadata("design:paramtypes", [FlatColorPickerService,
545
- ElementRef,
547
+ tslib_1.__metadata("design:paramtypes", [ElementRef,
548
+ FlatColorPickerService,
546
549
  LocalizationService,
547
550
  ChangeDetectorRef,
548
551
  Renderer2,
@@ -208,7 +208,7 @@ var MaskedTextBoxComponent = /** @class */ (function () {
208
208
  return this._size;
209
209
  },
210
210
  /**
211
- * The size property specifies the font size and line height of the MaskedTextBox
211
+ * The size property specifies the padding of the MaskedTextBox internal input element
212
212
  * ([see example]({% slug appearance_maskedtextbox %}#toc-size)).
213
213
  * The possible values are:
214
214
  * * `'small'`
@@ -335,7 +335,7 @@ var NumericTextBoxComponent = /** @class */ (function () {
335
335
  return this._size;
336
336
  },
337
337
  /**
338
- * The size property specifies the font size and line height of the NumericTextBox
338
+ * The size property specifies padding of the NumericTextBox internal input element
339
339
  * ([see example]({% slug appearance_numerictextbox %}#toc-size)).
340
340
  * The possible values are:
341
341
  * * `'small'`
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-inputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1641832234,
12
+ publishDate: 1642572427,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -4,7 +4,9 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
6
  import { Directive, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core';
7
+ import { validatePackage } from '@progress/kendo-licensing';
7
8
  import { getStylingClasses } from '../common/utils';
9
+ import { packageMetadata } from '../package-metadata';
8
10
  /**
9
11
  * Represents the directive that renders the [Kendo UI RadioButton]({% slug overview_checkbox %}) input component.
10
12
  * The directive is placed on input type="radio" elements.
@@ -20,6 +22,7 @@ var RadioButtonDirective = /** @class */ (function () {
20
22
  this.hostElement = hostElement;
21
23
  this.kendoClass = true;
22
24
  this._size = 'medium';
25
+ validatePackage(packageMetadata);
23
26
  }
24
27
  Object.defineProperty(RadioButtonDirective.prototype, "size", {
25
28
  get: function () {