@progress/kendo-angular-inputs 8.0.0-dev.202112161434 → 8.0.0-dev.202201121416

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 (115) hide show
  1. package/dist/cdn/js/kendo-angular-inputs.js +2 -2
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/checkbox/checkbox.directive.js +79 -3
  4. package/dist/es/colorpicker/color-gradient.component.js +4 -1
  5. package/dist/es/colorpicker/color-input.component.js +1 -1
  6. package/dist/es/colorpicker/color-palette.component.js +6 -3
  7. package/dist/es/colorpicker/colorpicker.component.js +316 -53
  8. package/dist/es/colorpicker/flatcolorpicker-actions.component.js +1 -1
  9. package/dist/es/colorpicker/flatcolorpicker-header.component.js +1 -1
  10. package/dist/es/colorpicker/flatcolorpicker.component.js +7 -4
  11. package/dist/es/common/models/fillmode.js +4 -0
  12. package/dist/es/common/models/rounded.js +4 -0
  13. package/dist/es/common/models/size.js +4 -0
  14. package/dist/es/common/models/styling-classes.js +4 -0
  15. package/dist/es/common/models.js +4 -0
  16. package/dist/es/common/utils.js +37 -0
  17. package/dist/es/main.js +0 -1
  18. package/dist/es/maskedtextbox/maskedtextbox.component.js +101 -6
  19. package/dist/es/numerictextbox/numerictextbox.component.js +116 -20
  20. package/dist/es/package-metadata.js +1 -1
  21. package/dist/es/radiobutton/radiobutton.directive.js +55 -3
  22. package/dist/es/shared/textarea.directive.js +3 -2
  23. package/dist/es/slider/slider.component.js +1 -1
  24. package/dist/es/switch/switch.component.js +167 -21
  25. package/dist/es/text-fields-common/text-fields-base.js +1 -1
  26. package/dist/es/textarea/textarea.component.js +101 -5
  27. package/dist/es/textbox/textbox.component.js +108 -11
  28. package/dist/es/textbox/textbox.directive.js +3 -2
  29. package/dist/es/textbox.module.js +0 -3
  30. package/dist/es2015/checkbox/checkbox.directive.d.ts +31 -0
  31. package/dist/es2015/checkbox/checkbox.directive.js +68 -10
  32. package/dist/es2015/colorpicker/color-gradient.component.js +4 -1
  33. package/dist/es2015/colorpicker/color-input.component.js +2 -2
  34. package/dist/es2015/colorpicker/color-palette.component.d.ts +1 -1
  35. package/dist/es2015/colorpicker/color-palette.component.js +6 -3
  36. package/dist/es2015/colorpicker/colorpicker.component.d.ts +67 -9
  37. package/dist/es2015/colorpicker/colorpicker.component.js +285 -76
  38. package/dist/es2015/colorpicker/flatcolorpicker-actions.component.js +2 -2
  39. package/dist/es2015/colorpicker/flatcolorpicker-header.component.js +2 -2
  40. package/dist/es2015/colorpicker/flatcolorpicker.component.d.ts +2 -2
  41. package/dist/es2015/colorpicker/flatcolorpicker.component.js +7 -4
  42. package/dist/es2015/common/models/fillmode.d.ts +13 -0
  43. package/dist/es2015/common/models/fillmode.js +4 -0
  44. package/dist/es2015/common/models/rounded.d.ts +23 -0
  45. package/dist/es2015/common/models/rounded.js +4 -0
  46. package/dist/es2015/common/models/size.d.ts +14 -0
  47. package/dist/es2015/common/models/size.js +4 -0
  48. package/dist/es2015/common/models/styling-classes.d.ts +11 -0
  49. package/dist/es2015/common/models/styling-classes.js +4 -0
  50. package/dist/es2015/common/models.d.ts +8 -0
  51. package/dist/es2015/common/models.js +4 -0
  52. package/dist/es2015/common/utils.d.ts +7 -0
  53. package/dist/es2015/common/utils.js +37 -0
  54. package/dist/es2015/index.metadata.json +1 -1
  55. package/dist/es2015/main.d.ts +1 -1
  56. package/dist/es2015/main.js +0 -1
  57. package/dist/es2015/maskedtextbox/maskedtextbox.component.d.ts +39 -1
  58. package/dist/es2015/maskedtextbox/maskedtextbox.component.js +88 -6
  59. package/dist/es2015/numerictextbox/numerictextbox.component.d.ts +39 -2
  60. package/dist/es2015/numerictextbox/numerictextbox.component.js +124 -40
  61. package/dist/es2015/package-metadata.js +1 -1
  62. package/dist/es2015/radiobutton/radiobutton.directive.d.ts +18 -0
  63. package/dist/es2015/radiobutton/radiobutton.directive.js +49 -11
  64. package/dist/es2015/shared/textarea.directive.d.ts +1 -1
  65. package/dist/es2015/shared/textarea.directive.js +3 -2
  66. package/dist/es2015/slider/slider.component.js +18 -23
  67. package/dist/es2015/switch/switch.component.d.ts +48 -5
  68. package/dist/es2015/switch/switch.component.js +166 -24
  69. package/dist/es2015/text-fields-common/text-fields-base.js +1 -1
  70. package/dist/es2015/textarea/textarea.component.d.ts +39 -1
  71. package/dist/es2015/textarea/textarea.component.js +89 -5
  72. package/dist/es2015/textbox/textbox.component.d.ts +40 -1
  73. package/dist/es2015/textbox/textbox.component.js +114 -30
  74. package/dist/es2015/textbox/textbox.directive.d.ts +1 -1
  75. package/dist/es2015/textbox/textbox.directive.js +3 -2
  76. package/dist/es2015/textbox.module.js +0 -3
  77. package/dist/fesm2015/index.js +1220 -654
  78. package/dist/fesm5/index.js +1276 -585
  79. package/dist/npm/checkbox/checkbox.directive.js +78 -2
  80. package/dist/npm/colorpicker/color-gradient.component.js +4 -1
  81. package/dist/npm/colorpicker/color-input.component.js +1 -1
  82. package/dist/npm/colorpicker/color-palette.component.js +6 -3
  83. package/dist/npm/colorpicker/colorpicker.component.js +313 -50
  84. package/dist/npm/colorpicker/flatcolorpicker-actions.component.js +1 -1
  85. package/dist/npm/colorpicker/flatcolorpicker-header.component.js +1 -1
  86. package/dist/npm/colorpicker/flatcolorpicker.component.js +7 -4
  87. package/dist/npm/common/models/fillmode.js +6 -0
  88. package/dist/npm/common/models/rounded.js +6 -0
  89. package/dist/npm/common/models/size.js +6 -0
  90. package/dist/npm/common/models/styling-classes.js +6 -0
  91. package/dist/npm/common/models.js +6 -0
  92. package/dist/npm/common/utils.js +37 -0
  93. package/dist/npm/main.js +0 -2
  94. package/dist/npm/maskedtextbox/maskedtextbox.component.js +100 -5
  95. package/dist/npm/numerictextbox/numerictextbox.component.js +115 -19
  96. package/dist/npm/package-metadata.js +1 -1
  97. package/dist/npm/radiobutton/radiobutton.directive.js +54 -2
  98. package/dist/npm/shared/textarea.directive.js +3 -2
  99. package/dist/npm/slider/slider.component.js +1 -1
  100. package/dist/npm/switch/switch.component.js +166 -20
  101. package/dist/npm/text-fields-common/text-fields-base.js +1 -1
  102. package/dist/npm/textarea/textarea.component.js +100 -4
  103. package/dist/npm/textbox/textbox.component.js +107 -10
  104. package/dist/npm/textbox/textbox.directive.js +3 -2
  105. package/dist/npm/textbox.module.js +0 -3
  106. package/dist/systemjs/kendo-angular-inputs.js +1 -1
  107. package/package.json +12 -12
  108. package/dist/es/textbox/floating-label-input-adapter.js +0 -58
  109. package/dist/es/textbox/textbox-container.component.js +0 -224
  110. package/dist/es2015/textbox/floating-label-input-adapter.d.ts +0 -20
  111. package/dist/es2015/textbox/floating-label-input-adapter.js +0 -52
  112. package/dist/es2015/textbox/textbox-container.component.d.ts +0 -59
  113. package/dist/es2015/textbox/textbox-container.component.js +0 -209
  114. package/dist/npm/textbox/floating-label-input-adapter.js +0 -60
  115. package/dist/npm/textbox/textbox-container.component.js +0 -226
@@ -5,8 +5,10 @@
5
5
  "use strict";
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  var tslib_1 = require("tslib");
8
+ var operators_1 = require("rxjs/operators");
8
9
  var core_1 = require("@angular/core");
9
10
  var forms_1 = require("@angular/forms");
11
+ var rxjs_1 = require("rxjs");
10
12
  var flatcolorpicker_component_1 = require("./flatcolorpicker.component");
11
13
  var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
12
14
  var kendo_licensing_1 = require("@progress/kendo-licensing");
@@ -19,7 +21,7 @@ var utils_1 = require("./utils");
19
21
  var utils_2 = require("../common/utils");
20
22
  var colorpicker_localization_service_1 = require("./localization/colorpicker-localization.service");
21
23
  var constants_1 = require("./constants");
22
- var serial = 0;
24
+ var DOM_FOCUS_EVENTS = ['focus', 'blur'];
23
25
  /**
24
26
  * Represents the [Kendo UI ColorPicker component for Angular]({% slug overview_colorpicker %}).
25
27
  *
@@ -27,17 +29,16 @@ var serial = 0;
27
29
  * which are rendered in its popup. It supports previewing the selected color, reverting it to its previous state or clearing it completely.
28
30
  */
29
31
  var ColorPickerComponent = /** @class */ (function () {
30
- function ColorPickerComponent(popupService, cdr, localizationService, ngZone) {
32
+ function ColorPickerComponent(host, popupService, cdr, localizationService, ngZone, renderer) {
31
33
  var _this = this;
34
+ this.host = host;
32
35
  this.popupService = popupService;
33
36
  this.cdr = cdr;
34
37
  this.localizationService = localizationService;
35
38
  this.ngZone = ngZone;
39
+ this.renderer = renderer;
36
40
  this.hostClasses = true;
37
- /**
38
- * @hidden
39
- */
40
- this.focusableId = "k-colorpicker-" + serial++;
41
+ this.role = 'listbox';
41
42
  /**
42
43
  * Specifies the views that will be rendered in the popup.
43
44
  * By default both the gradient and palette views will be rendered.
@@ -133,12 +134,21 @@ var ColorPickerComponent = /** @class */ (function () {
133
134
  * Used to provide a two-way binding for the `activeView` property.
134
135
  */
135
136
  this.activeViewChange = new core_1.EventEmitter();
137
+ /**
138
+ * Indicates whether the ColorPicker wrapper is focused.
139
+ */
140
+ this.isFocused = false;
136
141
  this._tabindex = 0;
137
142
  this._popupSettings = { animate: true };
138
143
  this._paletteSettings = {};
139
144
  this._gradientSettings = { opacity: true, delay: 0 };
145
+ this._size = 'medium';
146
+ this._rounded = 'medium';
147
+ this._fillMode = 'solid';
148
+ this.subscriptions = new rxjs_1.Subscription();
140
149
  this.notifyNgTouched = function () { };
141
150
  this.notifyNgChanged = function () { };
151
+ this.domFocusListener = function (event) { return event.stopImmediatePropagation(); };
142
152
  kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
143
153
  this.dynamicRTLSubscription = this.localizationService.changes.subscribe(function (_a) {
144
154
  var rtl = _a.rtl;
@@ -146,6 +156,54 @@ var ColorPickerComponent = /** @class */ (function () {
146
156
  });
147
157
  }
148
158
  ColorPickerComponent_1 = ColorPickerComponent;
159
+ Object.defineProperty(ColorPickerComponent.prototype, "focusedClass", {
160
+ get: function () {
161
+ return this.isFocused;
162
+ },
163
+ enumerable: true,
164
+ configurable: true
165
+ });
166
+ Object.defineProperty(ColorPickerComponent.prototype, "disabledClass", {
167
+ get: function () {
168
+ return this.disabled;
169
+ },
170
+ enumerable: true,
171
+ configurable: true
172
+ });
173
+ Object.defineProperty(ColorPickerComponent.prototype, "ariaReadonly", {
174
+ get: function () {
175
+ return this.readonly;
176
+ },
177
+ enumerable: true,
178
+ configurable: true
179
+ });
180
+ Object.defineProperty(ColorPickerComponent.prototype, "ariaExpanded", {
181
+ get: function () {
182
+ return this.isOpen;
183
+ },
184
+ enumerable: true,
185
+ configurable: true
186
+ });
187
+ Object.defineProperty(ColorPickerComponent.prototype, "hostTabindex", {
188
+ get: function () {
189
+ return this.tabindex;
190
+ },
191
+ enumerable: true,
192
+ configurable: true
193
+ });
194
+ Object.defineProperty(ColorPickerComponent.prototype, "view", {
195
+ get: function () {
196
+ return (this.views && this.views.length > 0) ? this.views[0] : null;
197
+ },
198
+ /**
199
+ * @hidden
200
+ */
201
+ set: function (view) {
202
+ this.views = [view];
203
+ },
204
+ enumerable: true,
205
+ configurable: true
206
+ });
149
207
  Object.defineProperty(ColorPickerComponent.prototype, "value", {
150
208
  get: function () {
151
209
  return this._value;
@@ -215,6 +273,70 @@ var ColorPickerComponent = /** @class */ (function () {
215
273
  enumerable: true,
216
274
  configurable: true
217
275
  });
276
+ Object.defineProperty(ColorPickerComponent.prototype, "size", {
277
+ get: function () {
278
+ return this._size;
279
+ },
280
+ /**
281
+ * The size property specifies the font size and line height of the ColorPicker
282
+ * ([see example]({% slug appearance_colorpicker %}#toc-size)).
283
+ *
284
+ * The possible values are:
285
+ * * `'small'`
286
+ * * `'medium'` (default)
287
+ * * `'large'`
288
+ * * `null`
289
+ */
290
+ set: function (size) {
291
+ this.handleClasses(size, 'size');
292
+ this._size = size;
293
+ },
294
+ enumerable: true,
295
+ configurable: true
296
+ });
297
+ Object.defineProperty(ColorPickerComponent.prototype, "rounded", {
298
+ get: function () {
299
+ return this._rounded;
300
+ },
301
+ /**
302
+ * The rounded property specifies the border radius of the ColorPicker
303
+ * ([see example]({% slug appearance_colorpicker %}#toc-rounded)).
304
+ *
305
+ * The possible values are:
306
+ * * `'small'`
307
+ * * `'medium'` (default)
308
+ * * `'large'`
309
+ * * `'full'`
310
+ * * `null`
311
+ */
312
+ set: function (rounded) {
313
+ this.handleClasses(rounded, 'rounded');
314
+ this._rounded = rounded;
315
+ },
316
+ enumerable: true,
317
+ configurable: true
318
+ });
319
+ Object.defineProperty(ColorPickerComponent.prototype, "fillMode", {
320
+ get: function () {
321
+ return this._fillMode;
322
+ },
323
+ /**
324
+ * The fillMode property specifies the background and border styles of the ColorPicker
325
+ * ([see example]({% slug appearance_colorpicker %}#toc-fillMode)).
326
+ *
327
+ * The possible values are:
328
+ * * `'flat'`
329
+ * * `'solid'` (default)
330
+ * * `'outline'`
331
+ * * `null`
332
+ */
333
+ set: function (fillMode) {
334
+ this.handleClasses(fillMode, 'fillMode');
335
+ this._fillMode = fillMode;
336
+ },
337
+ enumerable: true,
338
+ configurable: true
339
+ });
218
340
  Object.defineProperty(ColorPickerComponent.prototype, "isOpen", {
219
341
  /**
220
342
  * Indicates whether the ColorPicker popup is open.
@@ -252,6 +374,16 @@ var ColorPickerComponent = /** @class */ (function () {
252
374
  columns: this._paletteSettings.columns || presetColumns || 10
253
375
  };
254
376
  };
377
+ ColorPickerComponent.prototype.ngAfterViewInit = function () {
378
+ var _this = this;
379
+ var stylingInputs = ['size', 'rounded', 'fillMode'];
380
+ stylingInputs.forEach(function (input) {
381
+ _this.handleClasses(_this[input], input);
382
+ });
383
+ this.setHostElementAriaLabel();
384
+ this.handleHostId();
385
+ this.initDomEvents();
386
+ };
255
387
  ColorPickerComponent.prototype.ngOnChanges = function (changes) {
256
388
  if (changes.format && changes.format.currentValue === 'name') {
257
389
  this.activeView = 'palette';
@@ -260,23 +392,18 @@ var ColorPickerComponent = /** @class */ (function () {
260
392
  this.format = 'rgba';
261
393
  this.value = utils_1.parseColor(this.value, this.format, this.gradientSettings.opacity);
262
394
  }
395
+ if (kendo_angular_common_1.isChanged('value', changes)) {
396
+ this.setHostElementAriaLabel();
397
+ }
263
398
  };
264
399
  ColorPickerComponent.prototype.ngOnDestroy = function () {
265
400
  this.closePopup();
266
401
  if (this.dynamicRTLSubscription) {
267
402
  this.dynamicRTLSubscription.unsubscribe();
268
403
  }
404
+ this.subscriptions.unsubscribe();
405
+ this.handleDomEvents('remove', DOM_FOCUS_EVENTS);
269
406
  };
270
- Object.defineProperty(ColorPickerComponent.prototype, "colorPickerAriaLabel", {
271
- /**
272
- * @hidden
273
- */
274
- get: function () {
275
- return this.value ? this.value : this.localizationService.get('colorPickerNoColor');
276
- },
277
- enumerable: true,
278
- configurable: true
279
- });
280
407
  /**
281
408
  * @hidden
282
409
  */
@@ -287,55 +414,74 @@ var ColorPickerComponent = /** @class */ (function () {
287
414
  * @hidden
288
415
  */
289
416
  ColorPickerComponent.prototype.togglePopup = function () {
290
- this.toggleWithEvents(!this.isOpen);
291
417
  this.focus();
418
+ this.toggleWithEvents(!this.isOpen);
292
419
  };
293
420
  /**
294
421
  * @hidden
295
422
  */
296
- ColorPickerComponent.prototype.handleActiveColorClick = function () {
423
+ ColorPickerComponent.prototype.handleWrapperClick = function (event) {
424
+ var _this = this;
425
+ if (this.disabled) {
426
+ return;
427
+ }
297
428
  this.focus();
298
- var event = new events_1.ActiveColorClickEvent(this.value);
299
- this.activeColorClick.emit(event);
300
- if (!event.isOpenPrevented() || this.isOpen) {
301
- this.togglePopup();
429
+ if (kendo_angular_common_1.closest(event.target, function (element) { return element === _this.activeColor.nativeElement; })) {
430
+ var event_1 = new events_1.ActiveColorClickEvent(this.value);
431
+ this.activeColorClick.emit(event_1);
432
+ if (!event_1.isOpenPrevented() || this.isOpen) {
433
+ this.toggleWithEvents(!this.isOpen);
434
+ }
435
+ return;
302
436
  }
437
+ this.toggleWithEvents(!this.isOpen);
303
438
  };
304
439
  /**
305
440
  * Focuses the wrapper of the ColorPicker.
306
441
  */
307
442
  ColorPickerComponent.prototype.focus = function () {
308
- if (this.disabled) {
309
- return;
310
- }
311
- this.wrapper.nativeElement.focus();
443
+ this.isFocused = true;
444
+ this.host.nativeElement.focus();
312
445
  };
313
446
  /**
314
447
  * @hidden
315
448
  */
316
449
  ColorPickerComponent.prototype.handleWrapperFocus = function () {
450
+ var _this = this;
317
451
  if (this.isFocused) {
318
452
  return;
319
453
  }
320
- this.isFocused = true;
321
- this.onFocus.emit();
454
+ this.ngZone.run(function () {
455
+ _this.focus();
456
+ _this.onFocus.emit();
457
+ });
322
458
  };
323
459
  /**
324
460
  * Blurs the ColorPicker.
325
461
  */
326
462
  ColorPickerComponent.prototype.blur = function () {
327
- this.wrapper.nativeElement.blur();
463
+ this.isFocused = false;
464
+ this.host.nativeElement.blur();
465
+ this.notifyNgTouched();
328
466
  };
329
467
  /**
330
468
  * @hidden
331
469
  */
332
470
  ColorPickerComponent.prototype.handleWrapperBlur = function () {
471
+ var _this = this;
333
472
  if (this.isOpen) {
334
473
  return;
335
474
  }
336
- this.isFocused = false;
337
- this.onBlur.emit();
338
- this.notifyNgTouched();
475
+ this.ngZone.run(function () {
476
+ _this.onBlur.emit();
477
+ _this.isFocused = false;
478
+ });
479
+ };
480
+ /**
481
+ * @hidden
482
+ */
483
+ ColorPickerComponent.prototype.arrowButtonMouseDown = function (ev) {
484
+ ev.preventDefault();
339
485
  };
340
486
  /**
341
487
  * Clears the value of the ColorPicker.
@@ -345,6 +491,7 @@ var ColorPickerComponent = /** @class */ (function () {
345
491
  return;
346
492
  }
347
493
  this._value = undefined;
494
+ this.setHostElementAriaLabel();
348
495
  this.notifyNgChanged(undefined);
349
496
  };
350
497
  /**
@@ -372,6 +519,7 @@ var ColorPickerComponent = /** @class */ (function () {
372
519
  if (valueChange) {
373
520
  this.value = parsedColor;
374
521
  this.valueChange.emit(parsedColor);
522
+ this.setHostElementAriaLabel();
375
523
  this.notifyNgChanged(parsedColor);
376
524
  }
377
525
  };
@@ -416,9 +564,12 @@ var ColorPickerComponent = /** @class */ (function () {
416
564
  * @hidden
417
565
  */
418
566
  ColorPickerComponent.prototype.handleWrapperKeyDown = function (event) {
567
+ var _this = this;
419
568
  if (event.keyCode === kendo_angular_common_1.Keys.ArrowDown || event.keyCode === kendo_angular_common_1.Keys.Enter) {
420
569
  event.preventDefault();
421
- this.toggleWithEvents(true);
570
+ this.ngZone.run(function () {
571
+ _this.toggleWithEvents(true);
572
+ });
422
573
  }
423
574
  };
424
575
  /**
@@ -427,14 +578,14 @@ var ColorPickerComponent = /** @class */ (function () {
427
578
  ColorPickerComponent.prototype.handlePopupKeyDown = function (event) {
428
579
  if (event.keyCode === kendo_angular_common_1.Keys.Escape) {
429
580
  this.toggleWithEvents(false);
430
- this.wrapper.nativeElement.focus();
581
+ this.host.nativeElement.focus();
431
582
  }
432
583
  if (event.keyCode === kendo_angular_common_1.Keys.Tab) {
433
584
  var currentElement = event.shiftKey ? this.firstFocusableElement.nativeElement : this.lastFocusableElement.nativeElement;
434
585
  var nextElement = event.shiftKey ? this.lastFocusableElement.nativeElement : this.firstFocusableElement.nativeElement;
435
586
  if (event.target === currentElement) {
436
587
  event.preventDefault();
437
- nextElement.nativeElement.focus();
588
+ nextElement.focus();
438
589
  }
439
590
  }
440
591
  };
@@ -445,10 +596,25 @@ var ColorPickerComponent = /** @class */ (function () {
445
596
  ColorPickerComponent.prototype.isEmpty = function () {
446
597
  return false;
447
598
  };
599
+ ColorPickerComponent.prototype.setHostElementAriaLabel = function () {
600
+ var ariaLabelValue = "" + (this.value ? this.value : this.localizationService.get('colorPickerNoColor'));
601
+ this.renderer.setAttribute(this.host.nativeElement, 'aria-label', ariaLabelValue);
602
+ };
603
+ ColorPickerComponent.prototype.handleClasses = function (value, input) {
604
+ var elem = this.host.nativeElement;
605
+ var classes = utils_2.getStylingClasses('picker', input, this[input], value);
606
+ if (classes.toRemove) {
607
+ this.renderer.removeClass(elem, classes.toRemove);
608
+ }
609
+ if (classes.toAdd) {
610
+ this.renderer.addClass(elem, classes.toAdd);
611
+ }
612
+ };
448
613
  ColorPickerComponent.prototype.popupBlurInvalid = function (ev) {
449
- var focusInPopupElement = this.popupRef.popupElement.contains(ev.relatedTarget);
450
- var wrapperClicked = ev.relatedTarget === this.wrapper.nativeElement;
451
- return !this.isFocused || wrapperClicked || focusInPopupElement;
614
+ var _this = this;
615
+ var focusInFlatColorPickerElement = this.popupRef.popupElement.contains(ev.relatedTarget);
616
+ var hostClicked = kendo_angular_common_1.closest(ev.relatedTarget, function (element) { return element === _this.host.nativeElement; });
617
+ return hostClicked || focusInFlatColorPickerElement;
452
618
  };
453
619
  ColorPickerComponent.prototype.toggleWithEvents = function (open) {
454
620
  var sameState = this.isOpen === open;
@@ -473,12 +639,12 @@ var ColorPickerComponent = /** @class */ (function () {
473
639
  };
474
640
  ColorPickerComponent.prototype.focusFirstElement = function () {
475
641
  var _this = this;
476
- this.ngZone.runOutsideAngular(function () {
477
- setTimeout(function () {
642
+ this.ngZone.onStable.pipe(operators_1.take(1)).subscribe(function () {
643
+ if (_this.flatColorPicker) {
478
644
  var elementToFocus = _this.flatColorPicker.gradient ? _this.flatColorPicker.gradient.gradientDragHandle :
479
645
  _this.flatColorPicker.palette.host;
480
646
  elementToFocus.nativeElement.focus();
481
- });
647
+ }
482
648
  });
483
649
  };
484
650
  ColorPickerComponent.prototype.openPopup = function () {
@@ -487,7 +653,7 @@ var ColorPickerComponent = /** @class */ (function () {
487
653
  var anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
488
654
  var popupPosition = { horizontal: horizontalAlign, vertical: "top" };
489
655
  this.popupRef = this.popupService.open({
490
- anchor: this.wrapper,
656
+ anchor: this.activeColor,
491
657
  animate: this.popupSettings.animate,
492
658
  appendTo: this.popupSettings.appendTo,
493
659
  popupAlign: popupPosition,
@@ -499,7 +665,7 @@ var ColorPickerComponent = /** @class */ (function () {
499
665
  this.popupRef.popupAnchorViewportLeave.subscribe(function () {
500
666
  _this.toggleWithEvents(false);
501
667
  if (!_this.isOpen) {
502
- _this.wrapper.nativeElement.focus({
668
+ _this.host.nativeElement.focus({
503
669
  preventScroll: true
504
670
  });
505
671
  }
@@ -535,23 +701,103 @@ var ColorPickerComponent = /** @class */ (function () {
535
701
  enumerable: true,
536
702
  configurable: true
537
703
  });
704
+ ColorPickerComponent.prototype.handleDomEvents = function (action, events) {
705
+ var _this = this;
706
+ var hostElement = this.host.nativeElement;
707
+ events.forEach(function (ev) { return hostElement[action + "EventListener"](ev, _this.domFocusListener, true); });
708
+ };
709
+ ColorPickerComponent.prototype.initDomEvents = function () {
710
+ var _this = this;
711
+ if (!this.host) {
712
+ return;
713
+ }
714
+ var hostElement = this.host.nativeElement;
715
+ this.ngZone.runOutsideAngular(function () {
716
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'focusin', function () {
717
+ _this.handleWrapperFocus();
718
+ }));
719
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'focusout', function (event) {
720
+ var closestPopup = _this.popupRef ?
721
+ kendo_angular_common_1.closest(event.relatedTarget, function (element) { return element === _this.flatColorPicker.host.nativeElement; }) :
722
+ false;
723
+ var closestWrapper = kendo_angular_common_1.closest(event.relatedTarget, function (element) { return element === _this.host.nativeElement; });
724
+ if (!closestPopup && !closestWrapper) {
725
+ _this.handleWrapperBlur();
726
+ }
727
+ }));
728
+ _this.handleDomEvents('add', DOM_FOCUS_EVENTS);
729
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'keydown', function (event) {
730
+ _this.handleWrapperKeyDown(event);
731
+ }));
732
+ _this.subscriptions.add(_this.renderer.listen(hostElement, 'click', function (event) {
733
+ _this.ngZone.run(function () {
734
+ _this.handleWrapperClick(event);
735
+ });
736
+ }));
737
+ });
738
+ };
739
+ ColorPickerComponent.prototype.handleHostId = function () {
740
+ var hostElement = this.host.nativeElement;
741
+ var existingId = hostElement.getAttribute('id');
742
+ if (existingId) {
743
+ this.focusableId = existingId;
744
+ }
745
+ else {
746
+ var id = "k-" + kendo_angular_common_1.guid();
747
+ hostElement.setAttribute('id', id);
748
+ this.focusableId = id;
749
+ }
750
+ };
538
751
  var ColorPickerComponent_1;
539
752
  tslib_1.__decorate([
540
753
  core_1.HostBinding('class.k-colorpicker'),
754
+ core_1.HostBinding('class.k-icon-picker'),
755
+ core_1.HostBinding('class.k-picker'),
541
756
  tslib_1.__metadata("design:type", Boolean)
542
757
  ], ColorPickerComponent.prototype, "hostClasses", void 0);
758
+ tslib_1.__decorate([
759
+ core_1.HostBinding('class.k-focus'),
760
+ tslib_1.__metadata("design:type", Boolean),
761
+ tslib_1.__metadata("design:paramtypes", [])
762
+ ], ColorPickerComponent.prototype, "focusedClass", null);
763
+ tslib_1.__decorate([
764
+ core_1.HostBinding('attr.aria-disabled'),
765
+ core_1.HostBinding('class.k-disabled'),
766
+ tslib_1.__metadata("design:type", Boolean),
767
+ tslib_1.__metadata("design:paramtypes", [])
768
+ ], ColorPickerComponent.prototype, "disabledClass", null);
769
+ tslib_1.__decorate([
770
+ core_1.HostBinding('attr.aria-readonly'),
771
+ tslib_1.__metadata("design:type", Boolean),
772
+ tslib_1.__metadata("design:paramtypes", [])
773
+ ], ColorPickerComponent.prototype, "ariaReadonly", null);
774
+ tslib_1.__decorate([
775
+ core_1.HostBinding('attr.aria-expanded'),
776
+ tslib_1.__metadata("design:type", Boolean),
777
+ tslib_1.__metadata("design:paramtypes", [])
778
+ ], ColorPickerComponent.prototype, "ariaExpanded", null);
779
+ tslib_1.__decorate([
780
+ core_1.HostBinding('attr.tabindex'),
781
+ tslib_1.__metadata("design:type", Number),
782
+ tslib_1.__metadata("design:paramtypes", [])
783
+ ], ColorPickerComponent.prototype, "hostTabindex", null);
543
784
  tslib_1.__decorate([
544
785
  core_1.HostBinding('attr.dir'),
545
786
  tslib_1.__metadata("design:type", String)
546
787
  ], ColorPickerComponent.prototype, "direction", void 0);
547
788
  tslib_1.__decorate([
548
- core_1.Input(),
789
+ core_1.HostBinding('attr.role'),
549
790
  tslib_1.__metadata("design:type", String)
550
- ], ColorPickerComponent.prototype, "focusableId", void 0);
791
+ ], ColorPickerComponent.prototype, "role", void 0);
551
792
  tslib_1.__decorate([
552
793
  core_1.Input(),
553
794
  tslib_1.__metadata("design:type", Array)
554
795
  ], ColorPickerComponent.prototype, "views", void 0);
796
+ tslib_1.__decorate([
797
+ core_1.Input(),
798
+ tslib_1.__metadata("design:type", String),
799
+ tslib_1.__metadata("design:paramtypes", [String])
800
+ ], ColorPickerComponent.prototype, "view", null);
555
801
  tslib_1.__decorate([
556
802
  core_1.Input(),
557
803
  tslib_1.__metadata("design:type", String)
@@ -613,6 +859,21 @@ var ColorPickerComponent = /** @class */ (function () {
613
859
  core_1.Input(),
614
860
  tslib_1.__metadata("design:type", String)
615
861
  ], ColorPickerComponent.prototype, "actionsLayout", void 0);
862
+ tslib_1.__decorate([
863
+ core_1.Input(),
864
+ tslib_1.__metadata("design:type", String),
865
+ tslib_1.__metadata("design:paramtypes", [String])
866
+ ], ColorPickerComponent.prototype, "size", null);
867
+ tslib_1.__decorate([
868
+ core_1.Input(),
869
+ tslib_1.__metadata("design:type", String),
870
+ tslib_1.__metadata("design:paramtypes", [String])
871
+ ], ColorPickerComponent.prototype, "rounded", null);
872
+ tslib_1.__decorate([
873
+ core_1.Input(),
874
+ tslib_1.__metadata("design:type", String),
875
+ tslib_1.__metadata("design:paramtypes", [String])
876
+ ], ColorPickerComponent.prototype, "fillMode", null);
616
877
  tslib_1.__decorate([
617
878
  core_1.Output(),
618
879
  tslib_1.__metadata("design:type", core_1.EventEmitter)
@@ -650,9 +911,9 @@ var ColorPickerComponent = /** @class */ (function () {
650
911
  tslib_1.__metadata("design:type", core_1.ViewContainerRef)
651
912
  ], ColorPickerComponent.prototype, "container", void 0);
652
913
  tslib_1.__decorate([
653
- core_1.ViewChild('wrapper', { static: true }),
914
+ core_1.ViewChild('activeColor', { static: true }),
654
915
  tslib_1.__metadata("design:type", core_1.ElementRef)
655
- ], ColorPickerComponent.prototype, "wrapper", void 0);
916
+ ], ColorPickerComponent.prototype, "activeColor", void 0);
656
917
  tslib_1.__decorate([
657
918
  core_1.ViewChild('popupTemplate', { static: true }),
658
919
  tslib_1.__metadata("design:type", core_1.TemplateRef)
@@ -683,12 +944,14 @@ var ColorPickerComponent = /** @class */ (function () {
683
944
  useValue: 'kendo.colorpicker'
684
945
  }
685
946
  ],
686
- 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-picker-wrap': true,\n 'k-state-disabled': this.disabled,\n 'k-state-focused': 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 *ngIf=\"!iconStyles\" class=\"k-selected-color\" [style.background]=\"value\" (click)=\"handleActiveColorClick()\">\n <span class=\"k-icon k-i-line\" *ngIf=\"!value\"></span>\n </span>\n <span *ngIf=\"iconStyles\" class=\"k-tool-icon\" [ngClass]=\"iconStyles\" (click)=\"handleActiveColorClick()\">\n <span class=\"k-selected-color\" [style.background-color]=\"value\"></span>\n </span>\n <span class=\"k-select\" (click)=\"togglePopup()\">\n <span class=\"k-icon k-i-arrow-s\"></span>\n </span>\n </span>\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 "
947
+ 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 "
687
948
  }),
688
- tslib_1.__metadata("design:paramtypes", [kendo_angular_popup_1.PopupService,
949
+ tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
950
+ kendo_angular_popup_1.PopupService,
689
951
  core_1.ChangeDetectorRef,
690
952
  kendo_angular_l10n_1.LocalizationService,
691
- core_1.NgZone])
953
+ core_1.NgZone,
954
+ core_1.Renderer2])
692
955
  ], ColorPickerComponent);
693
956
  return ColorPickerComponent;
694
957
  }());
@@ -43,7 +43,7 @@ var FlatColorPickerActionButtonsComponent = /** @class */ (function () {
43
43
  FlatColorPickerActionButtonsComponent = tslib_1.__decorate([
44
44
  core_1.Component({
45
45
  selector: '[kendoFlatColorPickerActionButtons]',
46
- template: "\n <button\n class=\"k-coloreditor-cancel k-button\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n >{{getText('applyButton')}}</button>\n "
46
+ template: "\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n >{{getText('applyButton')}}</button>\n "
47
47
  }),
48
48
  tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
49
49
  ], FlatColorPickerActionButtonsComponent);
@@ -87,7 +87,7 @@ var FlatColorPickerHeaderComponent = /** @class */ (function () {
87
87
  FlatColorPickerHeaderComponent = tslib_1.__decorate([
88
88
  core_1.Component({
89
89
  selector: '[kendoFlatColorPickerHeader]',
90
- template: "\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <div *ngIf=\"viewButtons\" class=\"k-button-group k-button-group-flat\">\n <button *ngFor=\"let view of views\"\n #viewButtons\n (click)=\"onViewButtonClick(view)\"\n class=\"k-button k-icon-button k-flat\"\n [attr.title]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-label]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-pressed]=\"activeView === view\"\n [ngClass]=\"activeView === view ? 'k-state-selected' : ''\"\n >\n <span\n class=\"k-button-icon k-icon\"\n [ngClass]=\"getViewButtonIcon(view)\">\n </span>\n </button>\n </div>\n </div>\n <div class=\"k-spacer\"></div>\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <button *ngIf=\"clearButton\"\n #clearButton\n class=\"k-button k-icon-button k-flat k-coloreditor-reset\"\n [attr.aria-label]=\"getText('clearButton')\"\n [attr.title]=\"getText('clearButton')\"\n (click)=\"clearButtonClick.emit()\">\n <span class=\"k-button-icon k-icon k-i-reset-color\"></span>\n </button>\n <div class=\"k-coloreditor-preview k-vstack\" *ngIf=\"preview\">\n <span\n class=\"k-coloreditor-preview-color k-color-preview\"\n [attr.title]=\"getText('previewColor')\"\n [style.background-color]=\"selection\">\n </span>\n <span class=\"k-coloreditor-current-color k-color-preview\"\n [style.background-color]=\"value\"\n [attr.title]=\"getText('revertSelection')\"\n (click)=\"valuePaneClick.emit($event)\">\n </span>\n </div>\n </div>\n "
90
+ template: "\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <div *ngIf=\"viewButtons\" class=\"k-button-group k-button-group-flat\">\n <button *ngFor=\"let view of views\"\n #viewButtons\n (click)=\"onViewButtonClick(view)\"\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.title]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-label]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-pressed]=\"activeView === view\"\n [ngClass]=\"activeView === view ? 'k-state-selected' : ''\"\n >\n <span\n class=\"k-button-icon k-icon\"\n [ngClass]=\"getViewButtonIcon(view)\">\n </span>\n </button>\n </div>\n </div>\n <div class=\"k-spacer\"></div>\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <button *ngIf=\"clearButton\"\n #clearButton\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset\"\n [attr.aria-label]=\"getText('clearButton')\"\n [attr.title]=\"getText('clearButton')\"\n (click)=\"clearButtonClick.emit()\">\n <span class=\"k-button-icon k-icon k-i-reset-color\"></span>\n </button>\n <div class=\"k-coloreditor-preview k-vstack\" *ngIf=\"preview\">\n <span\n class=\"k-coloreditor-preview-color k-color-preview\"\n [attr.title]=\"getText('previewColor')\"\n [style.background-color]=\"selection\">\n </span>\n <span class=\"k-coloreditor-current-color k-color-preview\"\n [style.background-color]=\"value\"\n [attr.title]=\"getText('revertSelection')\"\n (click)=\"valuePaneClick.emit($event)\">\n </span>\n </div>\n </div>\n "
91
91
  }),
92
92
  tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
93
93
  ], FlatColorPickerHeaderComponent);