@progress/kendo-angular-inputs 18.1.0-develop.29 → 18.1.0-develop.3

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 (33) hide show
  1. package/colorpicker/color-gradient.component.d.ts +1 -19
  2. package/colorpicker/color-input.component.d.ts +3 -15
  3. package/colorpicker/color-palette.component.d.ts +6 -16
  4. package/colorpicker/colorpicker.component.d.ts +8 -55
  5. package/colorpicker/flatcolorpicker-actions.component.d.ts +1 -3
  6. package/colorpicker/flatcolorpicker-header.component.d.ts +1 -3
  7. package/colorpicker/flatcolorpicker.component.d.ts +1 -19
  8. package/colorpicker/localization/messages.d.ts +1 -9
  9. package/esm2022/colorpicker/color-gradient.component.mjs +17 -75
  10. package/esm2022/colorpicker/color-input.component.mjs +23 -56
  11. package/esm2022/colorpicker/color-palette.component.mjs +15 -45
  12. package/esm2022/colorpicker/colorpicker.component.mjs +41 -182
  13. package/esm2022/colorpicker/flatcolorpicker-actions.component.mjs +7 -22
  14. package/esm2022/colorpicker/flatcolorpicker-header.component.mjs +3 -8
  15. package/esm2022/colorpicker/flatcolorpicker.component.mjs +17 -72
  16. package/esm2022/colorpicker/localization/messages.mjs +1 -13
  17. package/esm2022/colorpicker/services/flatcolorpicker.service.mjs +3 -3
  18. package/esm2022/colorpicker.module.mjs +2 -3
  19. package/esm2022/inputs.module.mjs +2 -3
  20. package/esm2022/otpinput/otpinput.component.mjs +45 -75
  21. package/esm2022/package-metadata.mjs +2 -2
  22. package/fesm2022/progress-kendo-angular-inputs.mjs +3092 -3765
  23. package/otpinput/models/separator-icon.d.ts +3 -9
  24. package/otpinput/otpinput.component.d.ts +7 -4
  25. package/package.json +11 -13
  26. package/colorpicker/adaptiveness/adaptive-close-button.component.d.ts +0 -20
  27. package/colorpicker/adaptiveness/adaptive-renderer.component.d.ts +0 -38
  28. package/colorpicker/color-gradient-text-label.directive.d.ts +0 -19
  29. package/colorpicker/models/adaptive-mode.d.ts +0 -23
  30. package/esm2022/colorpicker/adaptiveness/adaptive-close-button.component.mjs +0 -62
  31. package/esm2022/colorpicker/adaptiveness/adaptive-renderer.component.mjs +0 -205
  32. package/esm2022/colorpicker/color-gradient-text-label.directive.mjs +0 -34
  33. package/esm2022/colorpicker/models/adaptive-mode.mjs +0 -27
@@ -14,17 +14,17 @@ import { ColorPaletteLocalizationService } from './localization/colorpalette-loc
14
14
  import { packageMetadata } from '../package-metadata';
15
15
  import { PALETTEPRESETS } from './models';
16
16
  import { parseColor } from './utils';
17
- import { getStylingClasses, isPresent } from '../common/utils';
17
+ import { isPresent } from '../common/utils';
18
18
  import { ColorPaletteService } from './services/color-palette.service';
19
19
  import { NgFor, NgStyle } from '@angular/common';
20
20
  import { LocalizedColorPickerMessagesDirective } from './localization/localized-colorpicker-messages.directive';
21
21
  import * as i0 from "@angular/core";
22
22
  import * as i1 from "./services/color-palette.service";
23
23
  import * as i2 from "@progress/kendo-angular-l10n";
24
+ const DEFAULT_TILE_SIZE = 24;
24
25
  const DEFAULT_COLUMNS_COUNT = 10;
25
26
  const DEFAULT_PRESET = 'office';
26
27
  const DEFAULT_ACCESSIBLE_PRESET = 'accessible';
27
- const DEFAULT_SIZE = 'medium';
28
28
  let serial = 0;
29
29
  /**
30
30
  * The ColorPalette component provides a set of predefined palette presets and enables you to implement a custom color palette.
@@ -114,23 +114,6 @@ export class ColorPaletteComponent {
114
114
  get palette() {
115
115
  return this._palette;
116
116
  }
117
- /**
118
- * The size property specifies the padding of the ColorPalette internal elements.
119
- *
120
- * The possible values are:
121
- * * `small`
122
- * * `medium` (default)
123
- * * `large`
124
- * * `none`
125
- */
126
- set size(size) {
127
- const newSize = size || DEFAULT_SIZE;
128
- this.handleClasses(newSize, 'size');
129
- this._size = newSize;
130
- }
131
- get size() {
132
- return this._size;
133
- }
134
117
  /**
135
118
  * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
136
119
  */
@@ -153,9 +136,13 @@ export class ColorPaletteComponent {
153
136
  */
154
137
  readonly = false;
155
138
  /**
156
- * Specifies the size of a color cell. The default tile size depends on the `size` of the component.
139
+ * Specifies the size of a color cell.
140
+ *
141
+ * The possible values are:
142
+ * * (Default) `tileSize = 24`
143
+ * * `{ width: number, height: number }`
157
144
  */
158
- tileSize;
145
+ tileSize = { width: DEFAULT_TILE_SIZE, height: DEFAULT_TILE_SIZE };
159
146
  /**
160
147
  * @hidden
161
148
  */
@@ -222,7 +209,6 @@ export class ColorPaletteComponent {
222
209
  */
223
210
  uniqueId = guid();
224
211
  selection;
225
- _size = 'medium';
226
212
  _value;
227
213
  _columns;
228
214
  _palette;
@@ -253,10 +239,6 @@ export class ColorPaletteComponent {
253
239
  this.subs.add(this.renderer.listen(elem, 'blur', () => this.handleHostBlur()));
254
240
  }
255
241
  ngAfterViewInit() {
256
- const stylingInputs = ['size'];
257
- stylingInputs.forEach(input => {
258
- this.handleClasses(this[input], input);
259
- });
260
242
  this.setHostElementAriaLabel();
261
243
  if (this.value) {
262
244
  this.ngZone.onStable.pipe(take(1)).subscribe(() => {
@@ -442,20 +424,10 @@ export class ColorPaletteComponent {
442
424
  const selectedColor = this.service.getColorAt(this.focusedCell);
443
425
  this.handleCellSelection(selectedColor, this.focusedCell);
444
426
  }
445
- handleClasses(value, input) {
446
- const elem = this.host.nativeElement;
447
- const classes = getStylingClasses('colorpalette', input, this[input], value);
448
- if (classes.toRemove) {
449
- this.renderer.removeClass(elem, classes.toRemove);
450
- }
451
- if (classes.toAdd) {
452
- this.renderer.addClass(elem, classes.toAdd);
453
- }
454
- }
455
427
  notifyNgTouched = () => { };
456
428
  notifyNgChanged = () => { };
457
429
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPaletteComponent, deps: [{ token: i0.ElementRef }, { token: i1.ColorPaletteService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
458
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorPaletteComponent, isStandalone: true, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", size: "size", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { properties: { "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.id": "this.paletteId", "class.k-readonly": "this.readonly", "attr.tabindex": "this.hostTabindex", "class.k-colorpalette": "this.hostClasses", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.readonlyAttribute" } }, providers: [
430
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorPaletteComponent, isStandalone: true, selector: "kendo-colorpalette", inputs: { id: "id", format: "format", value: "value", columns: "columns", palette: "palette", tabindex: "tabindex", disabled: "disabled", readonly: "readonly", tileSize: "tileSize" }, outputs: { selectionChange: "selectionChange", valueChange: "valueChange", cellSelection: "cellSelection" }, host: { properties: { "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-activedescendant": "this.activeDescendant", "attr.id": "this.paletteId", "class.k-readonly": "this.readonly", "attr.tabindex": "this.hostTabindex", "class.k-colorpalette": "this.hostClasses", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.readonlyAttribute" } }, providers: [
459
431
  {
460
432
  multi: true,
461
433
  provide: NG_VALUE_ACCESSOR,
@@ -494,9 +466,9 @@ export class ColorPaletteComponent {
494
466
  (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"
495
467
  [ngStyle]="{
496
468
  backgroundColor: color,
497
- width: tileLayout?.width + 'px',
498
- height: tileLayout?.height + 'px',
499
- minWidth: tileLayout?.width + 'px'
469
+ width: tileLayout.width + 'px',
470
+ height: tileLayout.height + 'px',
471
+ minWidth: tileLayout.width + 'px'
500
472
  }">
501
473
  </td>
502
474
  </tr>
@@ -549,9 +521,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
549
521
  (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"
550
522
  [ngStyle]="{
551
523
  backgroundColor: color,
552
- width: tileLayout?.width + 'px',
553
- height: tileLayout?.height + 'px',
554
- minWidth: tileLayout?.width + 'px'
524
+ width: tileLayout.width + 'px',
525
+ height: tileLayout.height + 'px',
526
+ minWidth: tileLayout.width + 'px'
555
527
  }">
556
528
  </td>
557
529
  </tr>
@@ -583,8 +555,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
583
555
  type: Input
584
556
  }], palette: [{
585
557
  type: Input
586
- }], size: [{
587
- type: Input
588
558
  }], tabindex: [{
589
559
  type: Input
590
560
  }], disabled: [{
@@ -9,10 +9,8 @@ import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
9
9
  import { Subscription } from 'rxjs';
10
10
  import { FlatColorPickerComponent } from './flatcolorpicker.component';
11
11
  import { PopupService } from '@progress/kendo-angular-popup';
12
- import { ButtonComponent } from '@progress/kendo-angular-buttons';
13
- import { AdaptiveService } from '@progress/kendo-angular-utils';
14
12
  import { validatePackage } from '@progress/kendo-licensing';
15
- import { Keys, KendoInput, isChanged, closest, guid, ResizeSensorComponent, isDocumentAvailable } from '@progress/kendo-angular-common';
13
+ import { Keys, KendoInput, isChanged, closest, guid } from '@progress/kendo-angular-common';
16
14
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
17
15
  import { packageMetadata } from '../package-metadata';
18
16
  import { PALETTEPRESETS } from './models';
@@ -26,12 +24,10 @@ import { parseCSSClassNames } from '@progress/kendo-angular-common';
26
24
  import { caretAltDownIcon } from '@progress/kendo-svg-icons';
27
25
  import { NgClass, NgIf } from '@angular/common';
28
26
  import { LocalizedColorPickerMessagesDirective } from './localization/localized-colorpicker-messages.directive';
29
- import { updateActionSheetAdaptiveAppearance } from './models/adaptive-mode';
30
- import { AdaptiveRendererComponent } from './adaptiveness/adaptive-renderer.component';
27
+ import { ButtonComponent } from '@progress/kendo-angular-buttons';
31
28
  import * as i0 from "@angular/core";
32
29
  import * as i1 from "@progress/kendo-angular-popup";
33
30
  import * as i2 from "@progress/kendo-angular-l10n";
34
- import * as i3 from "@progress/kendo-angular-utils";
35
31
  const DOM_FOCUS_EVENTS = ['focus', 'blur'];
36
32
  const DEFAULT_SIZE = 'medium';
37
33
  const DEFAULT_ROUNDED = 'medium';
@@ -54,7 +50,6 @@ export class ColorPickerComponent {
54
50
  ngZone;
55
51
  renderer;
56
52
  injector;
57
- adaptiveService;
58
53
  hostClasses = true;
59
54
  get focusedClass() {
60
55
  return this.isFocused;
@@ -95,10 +90,6 @@ export class ColorPickerComponent {
95
90
  get view() {
96
91
  return (this.views && this.views.length > 0) ? this.views[0] : null;
97
92
  }
98
- /**
99
- * Enables or disables the adaptive mode. By default, adaptive rendering is disabled.
100
- */
101
- adaptiveMode = 'none';
102
93
  /**
103
94
  * Sets the initially active view in the popup. The property supports two-way binding.
104
95
  *
@@ -293,13 +284,13 @@ export class ColorPickerComponent {
293
284
  */
294
285
  valueChange = new EventEmitter();
295
286
  /**
296
- * Fires each time the Popup (or ActionSheet in adaptive mode) is about to open.
297
- * This event is preventable. If you cancel it, the Popup (or the ActionSheet) will remain closed.
287
+ * Fires each time the popup is about to open.
288
+ * This event is preventable. If you cancel it, the popup will remain closed.
298
289
  */
299
290
  open = new EventEmitter();
300
291
  /**
301
- * Fires each time the Popup (or ActionSheet in adaptive mode) is about to close.
302
- * This event is preventable. If you cancel it, the Popup (or the ActionSheet) will remain open.
292
+ * Fires each time the popup is about to close.
293
+ * This event is preventable. If you cancel it, the popup will remain open.
303
294
  */
304
295
  close = new EventEmitter();
305
296
  /**
@@ -338,14 +329,10 @@ export class ColorPickerComponent {
338
329
  */
339
330
  isFocused = false;
340
331
  /**
341
- * @hidden
342
- */
343
- windowSize = 'large';
344
- /**
345
- * Returns the current open state. Returns `true` if the Popup (or ActionSheet in adaptive mode) is currently open.
332
+ * Indicates whether the ColorPicker popup is open.
346
333
  */
347
334
  get isOpen() {
348
- return isPresent(this.popupRef) || this.isActionSheetExpanded;
335
+ return isPresent(this.popupRef);
349
336
  }
350
337
  /**
351
338
  * @hidden
@@ -360,30 +347,6 @@ export class ColorPickerComponent {
360
347
  }
361
348
  return '';
362
349
  }
363
- /**
364
- * @hidden
365
- */
366
- get isAdaptiveModeEnabled() {
367
- return this.adaptiveMode === 'auto';
368
- }
369
- /**
370
- * @hidden
371
- */
372
- get isAdaptive() {
373
- return this.isAdaptiveModeEnabled && this.windowSize !== 'large';
374
- }
375
- /**
376
- * @hidden
377
- */
378
- get actionSheet() {
379
- return this.adaptiveRenderer?.actionSheet;
380
- }
381
- /**
382
- * @hidden
383
- */
384
- get isActionSheetExpanded() {
385
- return Boolean(this.actionSheet?.expanded);
386
- }
387
350
  /**
388
351
  * @hidden
389
352
  */
@@ -402,10 +365,6 @@ export class ColorPickerComponent {
402
365
  activeColor;
403
366
  popupTemplate;
404
367
  flatColorPicker;
405
- /**
406
- * @hidden
407
- */
408
- adaptiveRenderer;
409
368
  /**
410
369
  * @hidden
411
370
  */
@@ -425,7 +384,7 @@ export class ColorPickerComponent {
425
384
  popupSubs = new Subscription();
426
385
  colorPickerId;
427
386
  control;
428
- constructor(host, popupService, cdr, localizationService, ngZone, renderer, injector, adaptiveService) {
387
+ constructor(host, popupService, cdr, localizationService, ngZone, renderer, injector) {
429
388
  this.host = host;
430
389
  this.popupService = popupService;
431
390
  this.cdr = cdr;
@@ -433,7 +392,6 @@ export class ColorPickerComponent {
433
392
  this.ngZone = ngZone;
434
393
  this.renderer = renderer;
435
394
  this.injector = injector;
436
- this.adaptiveService = adaptiveService;
437
395
  validatePackage(packageMetadata);
438
396
  this.dynamicRTLSubscription = this.localizationService.changes.subscribe(({ rtl }) => {
439
397
  this.direction = rtl ? 'rtl' : 'ltr';
@@ -448,7 +406,7 @@ export class ColorPickerComponent {
448
406
  undefined;
449
407
  this._paletteSettings = {
450
408
  palette: settingsPalette || defaultPreset,
451
- tileSize: this._paletteSettings.tileSize,
409
+ tileSize: this._paletteSettings.tileSize || 24,
452
410
  columns: this._paletteSettings.columns || presetColumns || 10
453
411
  };
454
412
  this.handleHostId();
@@ -462,12 +420,6 @@ export class ColorPickerComponent {
462
420
  });
463
421
  this.setHostElementAriaLabel();
464
422
  this.initDomEvents();
465
- this.windowSize = this.adaptiveService.size;
466
- if (this.actionSheet && isDocumentAvailable()) {
467
- // The following syntax is used as it does not violate CSP compliance
468
- this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
469
- this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
470
- }
471
423
  }
472
424
  ngOnChanges(changes) {
473
425
  if (changes.format && changes.format.currentValue === 'name') {
@@ -489,18 +441,6 @@ export class ColorPickerComponent {
489
441
  this.subscriptions.unsubscribe();
490
442
  this.handleDomEvents('remove', DOM_FOCUS_EVENTS);
491
443
  }
492
- /**
493
- * @hidden
494
- */
495
- onResize() {
496
- const currentWindowSize = this.adaptiveService.size;
497
- if (this.isAdaptiveModeEnabled && this.windowSize !== currentWindowSize) {
498
- if (this.isOpen) {
499
- this.toggleWithEvents(false);
500
- }
501
- this.windowSize = currentWindowSize;
502
- }
503
- }
504
444
  /**
505
445
  * @hidden
506
446
  */
@@ -511,10 +451,8 @@ export class ColorPickerComponent {
511
451
  * @hidden
512
452
  */
513
453
  togglePopup() {
514
- if (!this.isActionSheetExpanded) {
515
- this.focus();
516
- this.toggleWithEvents(!this.isOpen);
517
- }
454
+ this.focus();
455
+ this.toggleWithEvents(!this.isOpen);
518
456
  }
519
457
  /**
520
458
  * @hidden
@@ -532,9 +470,7 @@ export class ColorPickerComponent {
532
470
  }
533
471
  return;
534
472
  }
535
- if (!this.isActionSheetExpanded) {
536
- this.toggleWithEvents(!this.isOpen);
537
- }
473
+ this.toggleWithEvents(!this.isOpen);
538
474
  }
539
475
  /**
540
476
  * Focuses the wrapper of the ColorPicker.
@@ -567,15 +503,13 @@ export class ColorPickerComponent {
567
503
  * @hidden
568
504
  */
569
505
  handleWrapperBlur() {
570
- if (!this.isActionSheetExpanded) {
571
- if (this.isOpen) {
572
- return;
573
- }
574
- this.ngZone.run(() => {
575
- this.onBlur.emit();
576
- this.isFocused = false;
577
- });
506
+ if (this.isOpen) {
507
+ return;
578
508
  }
509
+ this.ngZone.run(() => {
510
+ this.onBlur.emit();
511
+ this.isFocused = false;
512
+ });
579
513
  }
580
514
  /**
581
515
  * Clears the value of the ColorPicker.
@@ -589,31 +523,20 @@ export class ColorPickerComponent {
589
523
  this.notifyNgChanged(undefined);
590
524
  }
591
525
  /**
592
- * Toggles the Popup (or ActionSheet in adaptive mode) of the ColorPicker.
526
+ * Toggles the popup of the ColorPicker.
593
527
  * Does not trigger the `open` and `close` events of the component.
594
528
  *
595
529
  * @param open An optional parameter. Specifies whether the popup will be opened or closed.
596
530
  */
597
531
  toggle(open) {
598
- this.windowSize = this.adaptiveService.size;
599
532
  if (this.disabled || this.readonly) {
600
533
  return;
601
534
  }
602
535
  this.cdr.markForCheck();
603
- if (this.isActionSheetExpanded) {
604
- this.closeActionSheet();
605
- }
606
- else {
607
- this.closePopup();
608
- }
536
+ this.closePopup();
609
537
  open = isPresent(open) ? open : !this.isOpen;
610
538
  if (open) {
611
- if (this.isAdaptive && !this.isActionSheetExpanded) {
612
- this.openActionSheet();
613
- }
614
- else {
615
- this.openPopup();
616
- }
539
+ this.openPopup();
617
540
  this.focusFirstElement();
618
541
  }
619
542
  }
@@ -634,15 +557,13 @@ export class ColorPickerComponent {
634
557
  * @hidden
635
558
  */
636
559
  handlePopupBlur(event) {
637
- if (!this.isActionSheetExpanded) {
638
- if (this.popupBlurInvalid(event)) {
639
- return;
640
- }
641
- this.isFocused = false;
642
- this.onBlur.emit();
643
- this.notifyNgTouched();
644
- this.toggleWithEvents(false);
560
+ if (this.popupBlurInvalid(event)) {
561
+ return;
645
562
  }
563
+ this.isFocused = false;
564
+ this.onBlur.emit();
565
+ this.notifyNgTouched();
566
+ this.toggleWithEvents(false);
646
567
  }
647
568
  /**
648
569
  * @hidden
@@ -680,20 +601,6 @@ export class ColorPickerComponent {
680
601
  });
681
602
  }
682
603
  }
683
- /**
684
- * @hidden
685
- */
686
- onApply() {
687
- this.handleValueChange(this.flatColorPicker.selection);
688
- this.toggleWithEvents(false);
689
- }
690
- /**
691
- * @hidden
692
- */
693
- onCancel(e) {
694
- this.flatColorPicker.resetSelection(e);
695
- this.toggleWithEvents(false);
696
- }
697
604
  /**
698
605
  * @hidden
699
606
  */
@@ -733,7 +640,7 @@ export class ColorPickerComponent {
733
640
  }
734
641
  }
735
642
  popupBlurInvalid(ev) {
736
- const focusInFlatColorPickerElement = this.popupRef?.popupElement?.contains(ev.relatedTarget);
643
+ const focusInFlatColorPickerElement = this.popupRef.popupElement.contains(ev.relatedTarget);
737
644
  const hostClicked = closest(ev.relatedTarget, (element) => element === this.host.nativeElement);
738
645
  return Boolean(hostClicked || focusInFlatColorPickerElement);
739
646
  }
@@ -768,15 +675,6 @@ export class ColorPickerComponent {
768
675
  }
769
676
  });
770
677
  }
771
- openActionSheet() {
772
- this.windowSize = this.adaptiveService.size;
773
- this.actionSheet.toggle(true);
774
- updateActionSheetAdaptiveAppearance(this.actionSheet, this.windowSize, this.renderer);
775
- }
776
- closeActionSheet() {
777
- this.actionSheet.toggle(false);
778
- this.focus();
779
- }
780
678
  openPopup() {
781
679
  const horizontalAlign = this.direction === "rtl" ? "right" : "left";
782
680
  const anchorPosition = { horizontal: horizontalAlign, vertical: "bottom" };
@@ -818,7 +716,7 @@ export class ColorPickerComponent {
818
716
  }
819
717
  get lastFocusableElement() {
820
718
  if (this.preview) {
821
- return this.flatColorPicker.footer?.lastButton || this.adaptiveRenderer.applyButton.nativeElement;
719
+ return this.flatColorPicker.footer.lastButton;
822
720
  }
823
721
  if (this.flatColorPicker.palette) {
824
722
  return this.flatColorPicker.palette.host;
@@ -850,9 +748,7 @@ export class ColorPickerComponent {
850
748
  closest(event.relatedTarget, (element) => element === this.flatColorPicker.host.nativeElement) :
851
749
  false;
852
750
  const closestWrapper = closest(event.relatedTarget, (element) => element === this.host.nativeElement);
853
- const closestActionSheet = this.isActionSheetExpanded ? closest(event.relatedTarget, (element) => element === this.actionSheet.element.nativeElement) :
854
- false;
855
- if (!closestPopup && !closestWrapper && !closestActionSheet) {
751
+ if (!closestPopup && !closestWrapper) {
856
752
  this.handleWrapperBlur();
857
753
  }
858
754
  }));
@@ -862,7 +758,7 @@ export class ColorPickerComponent {
862
758
  }));
863
759
  this.subscriptions.add(this.renderer.listen(hostElement, 'click', (event) => {
864
760
  this.ngZone.run(() => {
865
- !this.isActionSheetExpanded && this.handleWrapperClick(event);
761
+ this.handleWrapperClick(event);
866
762
  });
867
763
  }));
868
764
  });
@@ -880,8 +776,8 @@ export class ColorPickerComponent {
880
776
  this.focusableId = id;
881
777
  }
882
778
  }
883
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i3.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
884
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerComponent, isStandalone: true, selector: "kendo-colorpicker", inputs: { views: "views", view: "view", adaptiveMode: "adaptiveMode", activeView: "activeView", readonly: "readonly", disabled: "disabled", format: "format", value: "value", popupSettings: "popupSettings", paletteSettings: "paletteSettings", gradientSettings: "gradientSettings", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", clearButton: "clearButton", tabindex: "tabindex", preview: "preview", actionsLayout: "actionsLayout", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", cancel: "cancel", activeColorClick: "activeColorClick", clearButtonClick: "clearButtonClick", activeViewChange: "activeViewChange" }, host: { properties: { "class.k-colorpicker": "this.hostClasses", "class.k-icon-picker": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-focus": "this.focusedClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-haspopup": "this.hasPopup", "attr.aria-invalid": "this.isControlInvalid", "class.k-readonly": "this.readonly" } }, providers: [{
779
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1.PopupService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
780
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerComponent, isStandalone: true, selector: "kendo-colorpicker", inputs: { views: "views", view: "view", activeView: "activeView", readonly: "readonly", disabled: "disabled", format: "format", value: "value", popupSettings: "popupSettings", paletteSettings: "paletteSettings", gradientSettings: "gradientSettings", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", clearButton: "clearButton", tabindex: "tabindex", preview: "preview", actionsLayout: "actionsLayout", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", cancel: "cancel", activeColorClick: "activeColorClick", clearButtonClick: "clearButtonClick", activeViewChange: "activeViewChange" }, host: { properties: { "class.k-colorpicker": "this.hostClasses", "class.k-icon-picker": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-focus": "this.focusedClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-haspopup": "this.hasPopup", "attr.aria-invalid": "this.isControlInvalid", "class.k-readonly": "this.readonly" } }, providers: [{
885
781
  multi: true,
886
782
  provide: NG_VALUE_ACCESSOR,
887
783
  useExisting: forwardRef(() => ColorPickerComponent)
@@ -898,7 +794,7 @@ export class ColorPickerComponent {
898
794
  provide: L10N_PREFIX,
899
795
  useValue: 'kendo.colorpicker'
900
796
  }
901
- ], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "activeColor", first: true, predicate: ["activeColor"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "flatColorPicker", first: true, predicate: ["flatColorPicker"], descendants: true }, { propertyName: "adaptiveRenderer", first: true, predicate: AdaptiveRendererComponent, descendants: true }], exportAs: ["kendoColorPicker"], usesOnChanges: true, ngImport: i0, template: `
797
+ ], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "activeColor", first: true, predicate: ["activeColor"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "flatColorPicker", first: true, predicate: ["flatColorPicker"], descendants: true }], exportAs: ["kendoColorPicker"], usesOnChanges: true, ngImport: i0, template: `
902
798
  <ng-container kendoColorPickerLocalizedMessages
903
799
  i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."
904
800
  colorPickerNoColor="Colorpicker no color chosen"
@@ -932,10 +828,6 @@ export class ColorPickerComponent {
932
828
  applyButton="Apply"
933
829
  i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."
934
830
  cancelButton="Cancel"
935
- i18n-closeButton="kendo.colorpicker.closeButton|The title for the Close button."
936
- closeButton="Close"
937
- i18n-adaptiveTitle="kendo.colorpicker.adaptiveTitle|The title for the ActionSheet when in adaptive mode."
938
- adaptiveTitle="Choose Color"
939
831
  i18n-redChannelLabel="kendo.colorpicker.redChannelLabel|The label of the NumericTextBox representing the red color channel."
940
832
  redChannelLabel="Red channel"
941
833
  i18n-greenChannelLabel="kendo.colorpicker.greenChannelLabel|The label of the NumericTextBox representing the green color channel."
@@ -968,13 +860,13 @@ export class ColorPickerComponent {
968
860
  </kendo-icon-wrapper>
969
861
  <span class="k-color-preview-mask" [style.background-color]="value"></span>
970
862
  </span>
863
+
971
864
  </span>
972
865
  <button
973
866
  kendoButton
974
867
  tabindex="-1"
975
868
  type="button"
976
869
  icon="caret-alt-down"
977
- [size]="size"
978
870
  [svgIcon]="arrowDownIcon"
979
871
  [fillMode]="fillMode"
980
872
  [disabled]="disabled"
@@ -988,11 +880,9 @@ export class ColorPickerComponent {
988
880
  #flatColorPicker
989
881
  [value]="value"
990
882
  [format]="format"
991
- [size]="isAdaptive ? 'large' : size"
992
883
  [views]="views"
993
884
  [activeView]="activeView"
994
885
  [actionsLayout]="actionsLayout"
995
- [adaptiveMode]="isActionSheetExpanded"
996
886
  [preview]="preview"
997
887
  [gradientSettings]="gradientSettings"
998
888
  [paletteSettings]="paletteSettings"
@@ -1007,17 +897,7 @@ export class ColorPickerComponent {
1007
897
  </kendo-flatcolorpicker>
1008
898
  </ng-template>
1009
899
  <ng-container #container></ng-container>
1010
- <kendo-adaptive-renderer
1011
- [actionSheetTemplate]="popupTemplate"
1012
- [isActionSheetExpanded]="isActionSheetExpanded"
1013
- [preview]="preview"
1014
- (actionSheetClose)="onCancel($event)"
1015
- (onApply)="onApply()"
1016
- (onCancel)="onCancel($event)"
1017
- >
1018
- </kendo-adaptive-renderer>
1019
- <kendo-resize-sensor *ngIf="isOpen || isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
1020
- `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "adaptiveMode", "paletteSettings", "size"], outputs: ["valueChange", "cancel", "activeViewChange", "clearButtonClick", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: AdaptiveRendererComponent, selector: "kendo-adaptive-renderer", inputs: ["title", "subtitle", "actionSheetTemplate", "isActionSheetExpanded", "preview"], outputs: ["actionSheetClose", "onExpand", "onCollapse", "onApply", "onCancel"] }] });
900
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "clearButtonClick", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }] });
1021
901
  }
1022
902
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerComponent, decorators: [{
1023
903
  type: Component,
@@ -1075,10 +955,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1075
955
  applyButton="Apply"
1076
956
  i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."
1077
957
  cancelButton="Cancel"
1078
- i18n-closeButton="kendo.colorpicker.closeButton|The title for the Close button."
1079
- closeButton="Close"
1080
- i18n-adaptiveTitle="kendo.colorpicker.adaptiveTitle|The title for the ActionSheet when in adaptive mode."
1081
- adaptiveTitle="Choose Color"
1082
958
  i18n-redChannelLabel="kendo.colorpicker.redChannelLabel|The label of the NumericTextBox representing the red color channel."
1083
959
  redChannelLabel="Red channel"
1084
960
  i18n-greenChannelLabel="kendo.colorpicker.greenChannelLabel|The label of the NumericTextBox representing the green color channel."
@@ -1111,13 +987,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1111
987
  </kendo-icon-wrapper>
1112
988
  <span class="k-color-preview-mask" [style.background-color]="value"></span>
1113
989
  </span>
990
+
1114
991
  </span>
1115
992
  <button
1116
993
  kendoButton
1117
994
  tabindex="-1"
1118
995
  type="button"
1119
996
  icon="caret-alt-down"
1120
- [size]="size"
1121
997
  [svgIcon]="arrowDownIcon"
1122
998
  [fillMode]="fillMode"
1123
999
  [disabled]="disabled"
@@ -1131,11 +1007,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1131
1007
  #flatColorPicker
1132
1008
  [value]="value"
1133
1009
  [format]="format"
1134
- [size]="isAdaptive ? 'large' : size"
1135
1010
  [views]="views"
1136
1011
  [activeView]="activeView"
1137
1012
  [actionsLayout]="actionsLayout"
1138
- [adaptiveMode]="isActionSheetExpanded"
1139
1013
  [preview]="preview"
1140
1014
  [gradientSettings]="gradientSettings"
1141
1015
  [paletteSettings]="paletteSettings"
@@ -1150,21 +1024,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1150
1024
  </kendo-flatcolorpicker>
1151
1025
  </ng-template>
1152
1026
  <ng-container #container></ng-container>
1153
- <kendo-adaptive-renderer
1154
- [actionSheetTemplate]="popupTemplate"
1155
- [isActionSheetExpanded]="isActionSheetExpanded"
1156
- [preview]="preview"
1157
- (actionSheetClose)="onCancel($event)"
1158
- (onApply)="onApply()"
1159
- (onCancel)="onCancel($event)"
1160
- >
1161
- </kendo-adaptive-renderer>
1162
- <kendo-resize-sensor *ngIf="isOpen || isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
1163
- `,
1027
+ `,
1164
1028
  standalone: true,
1165
- imports: [LocalizedColorPickerMessagesDirective, NgClass, NgIf, IconWrapperComponent, ButtonComponent, FlatColorPickerComponent, ResizeSensorComponent, AdaptiveRendererComponent]
1029
+ imports: [LocalizedColorPickerMessagesDirective, NgClass, NgIf, IconWrapperComponent, ButtonComponent, FlatColorPickerComponent]
1166
1030
  }]
1167
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PopupService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: i3.AdaptiveService }]; }, propDecorators: { hostClasses: [{
1031
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PopupService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.Injector }]; }, propDecorators: { hostClasses: [{
1168
1032
  type: HostBinding,
1169
1033
  args: ['class.k-colorpicker']
1170
1034
  }, {
@@ -1207,8 +1071,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1207
1071
  type: Input
1208
1072
  }], view: [{
1209
1073
  type: Input
1210
- }], adaptiveMode: [{
1211
- type: Input
1212
1074
  }], activeView: [{
1213
1075
  type: Input
1214
1076
  }], readonly: [{
@@ -1280,7 +1142,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1280
1142
  }], flatColorPicker: [{
1281
1143
  type: ViewChild,
1282
1144
  args: ['flatColorPicker', { static: false }]
1283
- }], adaptiveRenderer: [{
1284
- type: ViewChild,
1285
- args: [AdaptiveRendererComponent]
1286
1145
  }] } });