@progress/kendo-angular-inputs 11.0.0-develop.95 → 11.0.0-develop.96

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 (35) hide show
  1. package/colorpicker/color-gradient.component.d.ts +5 -0
  2. package/colorpicker/color-input.component.d.ts +5 -0
  3. package/colorpicker/colorpicker.component.d.ts +18 -4
  4. package/colorpicker/contrast-validation.component.d.ts +3 -0
  5. package/colorpicker/contrast.component.d.ts +3 -0
  6. package/colorpicker/flatcolorpicker-header.component.d.ts +10 -3
  7. package/colorpicker.module.d.ts +3 -1
  8. package/esm2020/colorpicker/color-gradient.component.mjs +34 -17
  9. package/esm2020/colorpicker/color-input.component.mjs +29 -14
  10. package/esm2020/colorpicker/colorpicker.component.mjs +77 -18
  11. package/esm2020/colorpicker/contrast-validation.component.mjs +10 -6
  12. package/esm2020/colorpicker/contrast.component.mjs +13 -9
  13. package/esm2020/colorpicker/flatcolorpicker-header.component.mjs +54 -25
  14. package/esm2020/colorpicker.module.mjs +11 -3
  15. package/esm2020/numerictextbox/numerictextbox.component.mjs +47 -16
  16. package/esm2020/numerictextbox.module.mjs +4 -3
  17. package/esm2020/package-metadata.mjs +1 -1
  18. package/esm2020/signature/signature.component.mjs +17 -0
  19. package/esm2020/signature.module.mjs +7 -3
  20. package/esm2020/slider/slider.component.mjs +73 -42
  21. package/esm2020/slider.module.mjs +5 -3
  22. package/esm2020/textbox/textbox.component.mjs +92 -20
  23. package/esm2020/textbox.module.mjs +4 -3
  24. package/fesm2015/progress-kendo-angular-inputs.mjs +427 -157
  25. package/fesm2020/progress-kendo-angular-inputs.mjs +427 -157
  26. package/numerictextbox/numerictextbox.component.d.ts +9 -0
  27. package/numerictextbox.module.d.ts +2 -1
  28. package/package.json +9 -8
  29. package/schematics/ngAdd/index.js +4 -2
  30. package/signature/signature.component.d.ts +8 -0
  31. package/signature.module.d.ts +2 -1
  32. package/slider/slider.component.d.ts +17 -0
  33. package/slider.module.d.ts +4 -2
  34. package/textbox/textbox.component.d.ts +18 -1
  35. package/textbox.module.d.ts +4 -3
@@ -10,17 +10,20 @@ import { take, filter, concatMap, startWith, takeUntil, skip, debounceTime, thro
10
10
  import * as i1 from '@progress/kendo-angular-l10n';
11
11
  import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
12
12
  import * as i3 from '@progress/kendo-angular-common';
13
- import { Keys, guid, hasObservers, anyChanged, isDocumentAvailable, KendoInput, isChanged, DraggableModule, EventsModule, ResizeSensorModule, PreventableEvent, findFocusableChild, closest as closest$1 } from '@progress/kendo-angular-common';
13
+ import { Keys, guid, hasObservers, anyChanged, isDocumentAvailable, KendoInput, isChanged, DraggableModule, EventsModule, ResizeSensorModule, PreventableEvent, findFocusableChild, parseCSSClassNames, closest as closest$1 } from '@progress/kendo-angular-common';
14
14
  import { validatePackage } from '@progress/kendo-licensing';
15
+ import { caretAltUpIcon, caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, checkIcon, exclamationCircleIcon, xIcon, dropletSliderIcon, paletteIcon, dropletSlashIcon, caretAltExpandIcon, xCircleIcon, hyperlinkOpenIcon } from '@progress/kendo-svg-icons';
16
+ import * as i2 from '@progress/kendo-angular-buttons';
17
+ import { ButtonModule } from '@progress/kendo-angular-buttons';
15
18
  import * as i1$1 from '@angular/common';
16
19
  import { CommonModule } from '@angular/common';
17
20
  import { browser, mobileOS, detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
18
21
  import * as i1$2 from '@progress/kendo-angular-intl';
22
+ import * as i2$1 from '@progress/kendo-angular-icons';
23
+ import { IconsModule } from '@progress/kendo-angular-icons';
19
24
  import * as i1$3 from '@progress/kendo-angular-popup';
20
25
  import { PopupModule } from '@progress/kendo-angular-popup';
21
26
  import { parseColor as parseColor$1, Color, namedColors } from '@progress/kendo-drawing';
22
- import * as i2 from '@progress/kendo-angular-buttons';
23
- import { ButtonModule } from '@progress/kendo-angular-buttons';
24
27
  import * as i3$1 from '@progress/kendo-angular-dialog';
25
28
  import { DialogsModule } from '@progress/kendo-angular-dialog';
26
29
  import { __awaiter } from 'tslib';
@@ -536,7 +539,7 @@ const packageMetadata = {
536
539
  name: '@progress/kendo-angular-inputs',
537
540
  productName: 'Kendo UI for Angular',
538
541
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
539
- publishDate: 1673435233,
542
+ publishDate: 1673446165,
540
543
  version: '',
541
544
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
542
545
  };
@@ -992,6 +995,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
992
995
  }]
993
996
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
994
997
 
998
+ /* eslint-disable @typescript-eslint/no-explicit-any */
995
999
  const PRESSED$1 = 'k-pressed';
996
1000
  /**
997
1001
  * Represents the [Kendo UI Slider component for Angular]({% slug overview_slider %}).
@@ -1024,13 +1028,29 @@ class SliderComponent extends SliderBase {
1024
1028
  * The component can use either NgModel or the `value` binding but not both of them at the same time.
1025
1029
  */
1026
1030
  this.value = this.min;
1031
+ /**
1032
+ * @hidden
1033
+ */
1034
+ this.arrowUpIcon = caretAltUpIcon;
1035
+ /**
1036
+ * @hidden
1037
+ */
1038
+ this.arrowDownIcon = caretAltDownIcon;
1039
+ /**
1040
+ * @hidden
1041
+ */
1042
+ this.arrowLeftIcon = caretAltLeftIcon;
1043
+ /**
1044
+ * @hidden
1045
+ */
1046
+ this.arrowRightIcon = caretAltRightIcon;
1027
1047
  this.focusChangedProgrammatically = false;
1028
1048
  /**
1029
1049
  * @hidden
1030
1050
  */
1031
1051
  this.onWrapClick = (args) => {
1032
1052
  const target = args.target;
1033
- if (!this.isDisabled && !(isButton(target) || isButton(target.parentNode))) {
1053
+ if (!this.isDisabled && !(target.closest('.k-button'))) {
1034
1054
  const value = eventValue(args, this.track.nativeElement, this.getProps());
1035
1055
  this.changeValue(value);
1036
1056
  }
@@ -1365,7 +1385,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
1365
1385
  { provide: L10N_PREFIX, useValue: 'kendo.slider' },
1366
1386
  { multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent) },
1367
1387
  { provide: KendoInput, useExisting: forwardRef(() => SliderComponent) }
1368
- ], viewQueries: [{ propertyName: "draghandle", first: true, predicate: ["draghandle"], descendants: true, static: true }, { propertyName: "decreaseButton", first: true, predicate: ["decreaseButton"], descendants: true }, { propertyName: "increaseButton", first: true, predicate: ["increaseButton"], descendants: true }], exportAs: ["kendoSlider"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
1388
+ ], viewQueries: [{ propertyName: "draghandle", first: true, predicate: ["draghandle"], descendants: true, static: true }, { propertyName: "decreaseButton", first: true, predicate: ["decreaseButton"], descendants: true, read: ElementRef }, { propertyName: "increaseButton", first: true, predicate: ["increaseButton"], descendants: true, read: ElementRef }], exportAs: ["kendoSlider"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
1369
1389
  <ng-container kendoSliderLocalizedMessages
1370
1390
  i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."
1371
1391
  increment="increment"
@@ -1380,16 +1400,19 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
1380
1400
  [class.k-slider-bottomright]="tickPlacement === 'after'"
1381
1401
  [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
1382
1402
  >
1383
- <button *ngIf="showButtons" type="button" #decreaseButton
1384
- class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"
1403
+ <button
1404
+ kendoButton
1405
+ #decreaseButton
1406
+ *ngIf="showButtons"
1407
+ type="button"
1408
+ rounded="full"
1409
+ [icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
1410
+ [svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
1411
+ class="k-button-decrease"
1385
1412
  [title]="decrementMessage"
1386
1413
  [attr.tabindex]="-1"
1387
- role="presentation">
1388
- <span class="k-button-icon k-icon"
1389
- [class.k-i-caret-alt-left]="!vertical"
1390
- [class.k-i-caret-alt-down]="vertical">
1391
- </span>
1392
- </button>
1414
+ role="presentation"
1415
+ ></button>
1393
1416
  <div class="k-slider-track-wrap">
1394
1417
  <ul kendoSliderTicks
1395
1418
  #ticks
@@ -1428,21 +1451,24 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
1428
1451
  ></span>
1429
1452
  </div>
1430
1453
  </div>
1431
- <button *ngIf="showButtons" type="button" #increaseButton
1432
- class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"
1454
+ <button
1455
+ kendoButton
1456
+ #increaseButton
1457
+ *ngIf="showButtons"
1458
+ type="button"
1459
+ rounded="full"
1460
+ [icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
1461
+ [svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
1462
+ class="k-button-increase"
1433
1463
  [title]="incrementMessage"
1434
1464
  (click)="$event.preventDefault()"
1435
1465
  [attr.tabindex]="-1"
1436
1466
  [attr.aria-label]="currentValue"
1437
- role="presentation">
1438
- <span class="k-button-icon k-icon"
1439
- [class.k-i-caret-alt-right]="!vertical"
1440
- [class.k-i-caret-alt-up]="vertical">
1441
- </span>
1442
- </button>
1467
+ role="presentation"
1468
+ ></button>
1443
1469
  <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
1444
1470
  </div>
1445
- `, isInline: true, components: [{ type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
1471
+ `, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
1446
1472
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderComponent, decorators: [{
1447
1473
  type: Component,
1448
1474
  args: [{
@@ -1469,16 +1495,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1469
1495
  [class.k-slider-bottomright]="tickPlacement === 'after'"
1470
1496
  [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
1471
1497
  >
1472
- <button *ngIf="showButtons" type="button" #decreaseButton
1473
- class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"
1498
+ <button
1499
+ kendoButton
1500
+ #decreaseButton
1501
+ *ngIf="showButtons"
1502
+ type="button"
1503
+ rounded="full"
1504
+ [icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
1505
+ [svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
1506
+ class="k-button-decrease"
1474
1507
  [title]="decrementMessage"
1475
1508
  [attr.tabindex]="-1"
1476
- role="presentation">
1477
- <span class="k-button-icon k-icon"
1478
- [class.k-i-caret-alt-left]="!vertical"
1479
- [class.k-i-caret-alt-down]="vertical">
1480
- </span>
1481
- </button>
1509
+ role="presentation"
1510
+ ></button>
1482
1511
  <div class="k-slider-track-wrap">
1483
1512
  <ul kendoSliderTicks
1484
1513
  #ticks
@@ -1517,18 +1546,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1517
1546
  ></span>
1518
1547
  </div>
1519
1548
  </div>
1520
- <button *ngIf="showButtons" type="button" #increaseButton
1521
- class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"
1549
+ <button
1550
+ kendoButton
1551
+ #increaseButton
1552
+ *ngIf="showButtons"
1553
+ type="button"
1554
+ rounded="full"
1555
+ [icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
1556
+ [svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
1557
+ class="k-button-increase"
1522
1558
  [title]="incrementMessage"
1523
1559
  (click)="$event.preventDefault()"
1524
1560
  [attr.tabindex]="-1"
1525
1561
  [attr.aria-label]="currentValue"
1526
- role="presentation">
1527
- <span class="k-button-icon k-icon"
1528
- [class.k-i-caret-alt-right]="!vertical"
1529
- [class.k-i-caret-alt-up]="vertical">
1530
- </span>
1531
- </button>
1562
+ role="presentation"
1563
+ ></button>
1532
1564
  <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
1533
1565
  </div>
1534
1566
  `
@@ -1554,10 +1586,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1554
1586
  args: ['draghandle', { static: true }]
1555
1587
  }], decreaseButton: [{
1556
1588
  type: ViewChild,
1557
- args: ['decreaseButton', { static: false }]
1589
+ args: ['decreaseButton', { read: ElementRef }]
1558
1590
  }], increaseButton: [{
1559
1591
  type: ViewChild,
1560
- args: ['increaseButton', { static: false }]
1592
+ args: ['increaseButton', { read: ElementRef }]
1561
1593
  }] } });
1562
1594
 
1563
1595
  /**
@@ -3405,6 +3437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
3405
3437
  }]
3406
3438
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
3407
3439
 
3440
+ /* eslint-disable @typescript-eslint/no-explicit-any */
3408
3441
  const PARSABLE_OPTIONS = ['min', 'max', 'step', 'decimals'];
3409
3442
  const PARSABLE_DEFAULTS = {
3410
3443
  decimals: null,
@@ -3511,6 +3544,14 @@ class NumericTextBoxComponent {
3511
3544
  */
3512
3545
  this.arrowDirection = ArrowDirection.None;
3513
3546
  this.hostClasses = true;
3547
+ /**
3548
+ * @hidden
3549
+ */
3550
+ this.arrowUpIcon = caretAltUpIcon;
3551
+ /**
3552
+ * @hidden
3553
+ */
3554
+ this.arrowDownIcon = caretAltDownIcon;
3514
3555
  this.inputValue = '';
3515
3556
  this.minValidateFn = noop$1;
3516
3557
  this.maxValidateFn = noop$1;
@@ -4288,12 +4329,17 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
4288
4329
  [attr.aria-hidden]="true"
4289
4330
  [attr.aria-label]="incrementTitle"
4290
4331
  [title]="incrementTitle"
4291
- [class.k-active]="arrowDirection === ArrowDirection.Up"
4292
4332
  class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
4333
+ [class.k-active]="arrowDirection === ArrowDirection.Up"
4293
4334
  tabindex="-1"
4294
4335
  >
4295
- <span class="k-button-icon k-icon k-i-caret-alt-up"></span>
4296
- </button>
4336
+ <kendo-icon-wrapper
4337
+ name="caret-alt-up"
4338
+ innerCssClass="k-button-icon"
4339
+ [svgIcon]="arrowUpIcon"
4340
+ >
4341
+ </kendo-icon-wrapper>
4342
+ </button>
4297
4343
  <button
4298
4344
  type="button"
4299
4345
  [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
@@ -4303,11 +4349,16 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
4303
4349
  [class.k-active]="arrowDirection === ArrowDirection.Down"
4304
4350
  class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
4305
4351
  tabindex="-1"
4306
- >
4307
- <span class="k-button-icon k-icon k-i-caret-alt-down"></span>
4308
- </button>
4352
+ >
4353
+ <kendo-icon-wrapper
4354
+ name="caret-alt-down"
4355
+ innerCssClass="k-button-icon"
4356
+ [svgIcon]="arrowDownIcon"
4357
+ >
4358
+ </kendo-icon-wrapper>
4359
+ </button>
4309
4360
  </span>
4310
- `, isInline: true, directives: [{ type: LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4361
+ `, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4311
4362
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxComponent, decorators: [{
4312
4363
  type: Component,
4313
4364
  args: [{
@@ -4364,12 +4415,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
4364
4415
  [attr.aria-hidden]="true"
4365
4416
  [attr.aria-label]="incrementTitle"
4366
4417
  [title]="incrementTitle"
4367
- [class.k-active]="arrowDirection === ArrowDirection.Up"
4368
4418
  class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
4419
+ [class.k-active]="arrowDirection === ArrowDirection.Up"
4369
4420
  tabindex="-1"
4370
4421
  >
4371
- <span class="k-button-icon k-icon k-i-caret-alt-up"></span>
4372
- </button>
4422
+ <kendo-icon-wrapper
4423
+ name="caret-alt-up"
4424
+ innerCssClass="k-button-icon"
4425
+ [svgIcon]="arrowUpIcon"
4426
+ >
4427
+ </kendo-icon-wrapper>
4428
+ </button>
4373
4429
  <button
4374
4430
  type="button"
4375
4431
  [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
@@ -4379,9 +4435,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
4379
4435
  [class.k-active]="arrowDirection === ArrowDirection.Down"
4380
4436
  class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
4381
4437
  tabindex="-1"
4382
- >
4383
- <span class="k-button-icon k-icon k-i-caret-alt-down"></span>
4384
- </button>
4438
+ >
4439
+ <kendo-icon-wrapper
4440
+ name="caret-alt-down"
4441
+ innerCssClass="k-button-icon"
4442
+ [svgIcon]="arrowDownIcon"
4443
+ >
4444
+ </kendo-icon-wrapper>
4445
+ </button>
4385
4446
  </span>
4386
4447
  `
4387
4448
  }]
@@ -5713,11 +5774,11 @@ class SliderModule {
5713
5774
  SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5714
5775
  SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, declarations: [SliderComponent,
5715
5776
  SliderCustomMessagesComponent,
5716
- LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule], exports: [SliderComponent,
5777
+ LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule], exports: [SliderComponent,
5717
5778
  SliderCustomMessagesComponent,
5718
5779
  LabelTemplateDirective,
5719
5780
  LocalizedSliderMessagesDirective] });
5720
- SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, imports: [[CommonModule, SlidersCommonModule]] });
5781
+ SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, imports: [[CommonModule, SlidersCommonModule, IconsModule, ButtonModule]] });
5721
5782
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, decorators: [{
5722
5783
  type: NgModule,
5723
5784
  args: [{
@@ -5732,7 +5793,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
5732
5793
  LabelTemplateDirective,
5733
5794
  LocalizedSliderMessagesDirective
5734
5795
  ],
5735
- imports: [CommonModule, SlidersCommonModule]
5796
+ imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule]
5736
5797
  }]
5737
5798
  }] });
5738
5799
 
@@ -5955,9 +6016,9 @@ class NumericTextBoxModule {
5955
6016
  NumericTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5956
6017
  NumericTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, declarations: [LocalizedNumericTextBoxMessagesDirective,
5957
6018
  NumericTextBoxComponent,
5958
- NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule], exports: [NumericTextBoxComponent,
6019
+ NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule, IconsModule], exports: [NumericTextBoxComponent,
5959
6020
  NumericTextBoxCustomMessagesComponent] });
5960
- NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule, EventsModule]] });
6021
+ NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule, EventsModule, IconsModule]] });
5961
6022
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, decorators: [{
5962
6023
  type: NgModule,
5963
6024
  args: [{
@@ -5970,7 +6031,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
5970
6031
  NumericTextBoxComponent,
5971
6032
  NumericTextBoxCustomMessagesComponent
5972
6033
  ],
5973
- imports: [CommonModule, EventsModule]
6034
+ imports: [CommonModule, EventsModule, IconsModule]
5974
6035
  }]
5975
6036
  }] });
5976
6037
 
@@ -6154,10 +6215,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
6154
6215
  }]
6155
6216
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
6156
6217
 
6218
+ /* eslint-disable @typescript-eslint/no-explicit-any */
6157
6219
  const FOCUSED$1 = 'k-focus';
6158
6220
  const DEFAULT_SIZE$5 = 'medium';
6159
6221
  const DEFAULT_ROUNDED$4 = 'medium';
6160
6222
  const DEFAULT_FILL_MODE$3 = 'solid';
6223
+ const iconsMap$1 = { checkIcon, exclamationCircleIcon, xIcon };
6161
6224
  class TextBoxComponent {
6162
6225
  constructor(localizationService, ngZone, changeDetector, renderer, injector, hostElement) {
6163
6226
  this.localizationService = localizationService;
@@ -6491,6 +6554,12 @@ class TextBoxComponent {
6491
6554
  this.subscriptions.unsubscribe();
6492
6555
  }
6493
6556
  }
6557
+ /**
6558
+ * @hidden
6559
+ */
6560
+ svgIcon(name) {
6561
+ return iconsMap$1[name];
6562
+ }
6494
6563
  /**
6495
6564
  * Focuses the TextBox.
6496
6565
  *
@@ -6617,25 +6686,49 @@ class TextBoxComponent {
6617
6686
  * @hidden
6618
6687
  */
6619
6688
  get successIconClasses() {
6620
- return this.successIcon
6621
- ? `${this.successIcon}`
6622
- : `k-input-validation-icon k-icon k-i-check`;
6689
+ if (!this.successIcon) {
6690
+ return `check`;
6691
+ }
6692
+ }
6693
+ /**
6694
+ * @hidden
6695
+ */
6696
+ get customSuccessIconClasses() {
6697
+ if (this.successIcon) {
6698
+ return this.successIcon;
6699
+ }
6623
6700
  }
6624
6701
  /**
6625
6702
  * @hidden
6626
6703
  */
6627
6704
  get errorIconClasses() {
6628
- return this.errorIcon
6629
- ? `${this.errorIcon}`
6630
- : `k-input-validation-icon k-icon k-i-exclamation-circle`;
6705
+ if (!this.errorIcon) {
6706
+ return `exclamation-circle`;
6707
+ }
6631
6708
  }
6632
6709
  /**
6633
6710
  * @hidden
6634
6711
  */
6635
- get clearButtonClasses() {
6636
- return this.clearButtonIcon
6637
- ? this.clearButtonIcon
6638
- : `k-icon k-i-x`;
6712
+ get customIconClasses() {
6713
+ if (this.errorIcon) {
6714
+ return this.errorIcon;
6715
+ }
6716
+ }
6717
+ /**
6718
+ * @hidden
6719
+ */
6720
+ get customClearButtonClasses() {
6721
+ if (this.clearButtonIcon) {
6722
+ return this.clearButtonIcon;
6723
+ }
6724
+ }
6725
+ /**
6726
+ * @hidden
6727
+ */
6728
+ get clearButtonClass() {
6729
+ if (!this.clearButtonIcon) {
6730
+ return 'x';
6731
+ }
6639
6732
  }
6640
6733
  /**
6641
6734
  * @hidden
@@ -6756,17 +6849,36 @@ TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
6756
6849
  [title]="clearTitle()"
6757
6850
  (keydown.enter)="clearValue($event)"
6758
6851
  (keydown.space)="clearValue($event)">
6759
- <span [ngClass]="clearButtonClasses"></span>
6852
+ <kendo-icon-wrapper
6853
+ [name]="clearButtonClass"
6854
+ [customFontClass]="customClearButtonClasses"
6855
+ [svgIcon]="svgIcon('xIcon')"
6856
+ >
6857
+ </kendo-icon-wrapper>
6760
6858
  </span>
6761
- <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>
6762
- <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>
6859
+ <kendo-icon-wrapper
6860
+ *ngIf="hasErrors"
6861
+ innerCssClass="k-input-validation-icon"
6862
+ [name]="errorIconClasses"
6863
+ [customFontClass]="customIconClasses"
6864
+ [svgIcon]="svgIcon('exclamationCircleIcon')"
6865
+ >
6866
+ </kendo-icon-wrapper>
6867
+ <kendo-icon-wrapper
6868
+ *ngIf="isSuccessful"
6869
+ innerCssClass="k-input-validation-icon"
6870
+ [name]="successIconClasses"
6871
+ [customFontClass]="customSuccessIconClasses"
6872
+ [svgIcon]="svgIcon('checkIcon')"
6873
+ >
6874
+ </kendo-icon-wrapper>
6763
6875
  <span class="k-input-suffix">
6764
6876
  <ng-template
6765
6877
  *ngIf="suffixTemplate"
6766
6878
  [ngTemplateOutlet]="suffixTemplate?.templateRef">
6767
6879
  </ng-template>
6768
6880
  </span>
6769
- `, isInline: true, directives: [{ type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
6881
+ `, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
6770
6882
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxComponent, decorators: [{
6771
6883
  type: Component,
6772
6884
  args: [{
@@ -6820,10 +6932,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
6820
6932
  [title]="clearTitle()"
6821
6933
  (keydown.enter)="clearValue($event)"
6822
6934
  (keydown.space)="clearValue($event)">
6823
- <span [ngClass]="clearButtonClasses"></span>
6935
+ <kendo-icon-wrapper
6936
+ [name]="clearButtonClass"
6937
+ [customFontClass]="customClearButtonClasses"
6938
+ [svgIcon]="svgIcon('xIcon')"
6939
+ >
6940
+ </kendo-icon-wrapper>
6824
6941
  </span>
6825
- <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>
6826
- <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>
6942
+ <kendo-icon-wrapper
6943
+ *ngIf="hasErrors"
6944
+ innerCssClass="k-input-validation-icon"
6945
+ [name]="errorIconClasses"
6946
+ [customFontClass]="customIconClasses"
6947
+ [svgIcon]="svgIcon('exclamationCircleIcon')"
6948
+ >
6949
+ </kendo-icon-wrapper>
6950
+ <kendo-icon-wrapper
6951
+ *ngIf="isSuccessful"
6952
+ innerCssClass="k-input-validation-icon"
6953
+ [name]="successIconClasses"
6954
+ [customFontClass]="customSuccessIconClasses"
6955
+ [svgIcon]="svgIcon('checkIcon')"
6956
+ >
6957
+ </kendo-icon-wrapper>
6827
6958
  <span class="k-input-suffix">
6828
6959
  <ng-template
6829
6960
  *ngIf="suffixTemplate"
@@ -7038,14 +7169,14 @@ TextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
7038
7169
  TextBoxSuffixTemplateDirective,
7039
7170
  TextBoxPrefixTemplateDirective,
7040
7171
  TextBoxCustomMessagesComponent,
7041
- LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule], exports: [TextBoxDirective,
7172
+ LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule, IconsModule], exports: [TextBoxDirective,
7042
7173
  TextBoxComponent,
7043
7174
  TextBoxSuffixTemplateDirective,
7044
7175
  TextBoxPrefixTemplateDirective,
7045
7176
  EventsModule,
7046
7177
  TextBoxCustomMessagesComponent,
7047
7178
  LocalizedTextBoxMessagesDirective, InputSeparatorComponent, TextAreaDirective] });
7048
- TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, imports: [[CommonModule, EventsModule, SharedModule], EventsModule] });
7179
+ TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, imports: [[CommonModule, EventsModule, SharedModule, IconsModule], EventsModule] });
7049
7180
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, decorators: [{
7050
7181
  type: NgModule,
7051
7182
  args: [{
@@ -7067,7 +7198,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
7067
7198
  LocalizedTextBoxMessagesDirective,
7068
7199
  SHARED_DIRECTIVES
7069
7200
  ],
7070
- imports: [CommonModule, EventsModule, SharedModule]
7201
+ imports: [CommonModule, EventsModule, SharedModule, IconsModule]
7071
7202
  }]
7072
7203
  }] });
7073
7204
 
@@ -8377,18 +8508,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
8377
8508
  type: Injectable
8378
8509
  }] });
8379
8510
 
8511
+ /* eslint-disable @typescript-eslint/no-explicit-any */
8380
8512
  /**
8381
8513
  * @hidden
8382
8514
  */
8383
8515
  class FlatColorPickerHeaderComponent {
8384
- constructor(localizationService) {
8516
+ constructor(localizationService, renderer) {
8385
8517
  this.localizationService = localizationService;
8518
+ this.renderer = renderer;
8386
8519
  this.hostClasses = true;
8387
8520
  this.innerTabIndex = -1;
8388
8521
  this.viewChange = new EventEmitter();
8389
8522
  this.valuePaneClick = new EventEmitter();
8390
8523
  this.clearButtonClick = new EventEmitter();
8391
8524
  this.tabOut = new EventEmitter();
8525
+ this.dropletSliderIcon = dropletSliderIcon;
8526
+ this.paletteIcon = paletteIcon;
8527
+ this.dropletSlashIcon = dropletSlashIcon;
8528
+ }
8529
+ ngAfterViewInit() {
8530
+ if (this.viewButtonsCollection.length > 0) {
8531
+ this.viewButtonsCollection.forEach((button) => {
8532
+ const buttonElem = button.nativeElement;
8533
+ const isViewActive = buttonElem.getAttribute('aria-pressed') === 'true';
8534
+ if (isViewActive) {
8535
+ this.renderer.addClass(buttonElem, 'k-selected');
8536
+ }
8537
+ });
8538
+ }
8392
8539
  }
8393
8540
  onViewButtonClick(view) {
8394
8541
  this.activeView = view;
@@ -8398,7 +8545,10 @@ class FlatColorPickerHeaderComponent {
8398
8545
  return this.views && this.views.indexOf('gradient') >= 0 && this.views.indexOf('palette') >= 0;
8399
8546
  }
8400
8547
  getViewButtonIcon(view) {
8401
- return view === 'gradient' ? 'k-i-color-canvas' : 'k-i-palette';
8548
+ return view === 'gradient' ? 'color-canvas' : 'palette';
8549
+ }
8550
+ getViewButtonsSVGIcon(view) {
8551
+ return view === 'gradient' ? this.dropletSliderIcon : this.paletteIcon;
8402
8552
  }
8403
8553
  getText(text) {
8404
8554
  return this.localizationService.get(text);
@@ -8410,42 +8560,46 @@ class FlatColorPickerHeaderComponent {
8410
8560
  }
8411
8561
  }
8412
8562
  }
8413
- FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
8563
+ FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
8414
8564
  FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: { clearButton: "clearButton", activeView: "activeView", views: "views", preview: "preview", innerTabIndex: "innerTabIndex", value: "value", selection: "selection" }, outputs: { viewChange: "viewChange", valuePaneClick: "valuePaneClick", clearButtonClick: "clearButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-header": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "clearButtonElement", first: true, predicate: ["clearButton"], descendants: true, read: ElementRef }, { propertyName: "viewButtonsCollection", predicate: ["viewButtons"], descendants: true, read: ElementRef }], ngImport: i0, template: `
8415
8565
  <div class="k-coloreditor-header-actions k-hstack">
8416
8566
  <div
8417
8567
  *ngIf="viewButtons"
8418
8568
  class="k-button-group k-button-group-flat">
8419
- <button *ngFor="let view of views; let i = index;"
8420
- #viewButtons
8569
+ <button
8570
+ *ngFor="let view of views; let i = index;"
8571
+ kendoButton
8421
8572
  type="button"
8573
+ #viewButtons
8574
+ fillMode="flat"
8422
8575
  [tabindex]="innerTabIndex.toString()"
8423
8576
  (click)="onViewButtonClick(view)"
8577
+ [icon]="getViewButtonIcon(view)"
8578
+ [svgIcon]="getViewButtonsSVGIcon(view)"
8424
8579
  (keydown.shift.tab)="onHeaderTabOut($event, i)"
8425
8580
  class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
8426
8581
  [attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
8427
8582
  [attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
8428
8583
  [attr.aria-pressed]="activeView === view"
8429
8584
  [ngClass]="activeView === view ? 'k-selected' : ''">
8430
- <span
8431
- class="k-button-icon k-icon"
8432
- [ngClass]="getViewButtonIcon(view)">
8433
- </span>
8434
8585
  </button>
8435
8586
  </div>
8436
8587
  </div>
8437
8588
  <div class="k-spacer"></div>
8438
8589
  <div class="k-coloreditor-header-actions k-hstack">
8439
8590
  <button
8591
+ kendoButton
8592
+ type="button"
8440
8593
  [tabindex]="innerTabIndex.toString()"
8441
8594
  *ngIf="clearButton"
8442
8595
  #clearButton
8443
- type="button"
8444
- class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
8596
+ fillMode="flat"
8597
+ icon="reset-color"
8598
+ [svgIcon]="dropletSlashIcon"
8599
+ class="k-coloreditor-reset"
8445
8600
  [attr.aria-label]="getText('clearButton')"
8446
8601
  [attr.title]="getText('clearButton')"
8447
8602
  (click)="clearButtonClick.emit()">
8448
- <span class="k-button-icon k-icon k-i-droplet-slash"></span>
8449
8603
  </button>
8450
8604
  <div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
8451
8605
  <span
@@ -8460,7 +8614,7 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
8460
8614
  </span>
8461
8615
  </div>
8462
8616
  </div>
8463
- `, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
8617
+ `, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
8464
8618
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, decorators: [{
8465
8619
  type: Component,
8466
8620
  args: [{
@@ -8471,36 +8625,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
8471
8625
  <div
8472
8626
  *ngIf="viewButtons"
8473
8627
  class="k-button-group k-button-group-flat">
8474
- <button *ngFor="let view of views; let i = index;"
8475
- #viewButtons
8628
+ <button
8629
+ *ngFor="let view of views; let i = index;"
8630
+ kendoButton
8476
8631
  type="button"
8632
+ #viewButtons
8633
+ fillMode="flat"
8477
8634
  [tabindex]="innerTabIndex.toString()"
8478
8635
  (click)="onViewButtonClick(view)"
8636
+ [icon]="getViewButtonIcon(view)"
8637
+ [svgIcon]="getViewButtonsSVGIcon(view)"
8479
8638
  (keydown.shift.tab)="onHeaderTabOut($event, i)"
8480
8639
  class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
8481
8640
  [attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
8482
8641
  [attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
8483
8642
  [attr.aria-pressed]="activeView === view"
8484
8643
  [ngClass]="activeView === view ? 'k-selected' : ''">
8485
- <span
8486
- class="k-button-icon k-icon"
8487
- [ngClass]="getViewButtonIcon(view)">
8488
- </span>
8489
8644
  </button>
8490
8645
  </div>
8491
8646
  </div>
8492
8647
  <div class="k-spacer"></div>
8493
8648
  <div class="k-coloreditor-header-actions k-hstack">
8494
8649
  <button
8650
+ kendoButton
8651
+ type="button"
8495
8652
  [tabindex]="innerTabIndex.toString()"
8496
8653
  *ngIf="clearButton"
8497
8654
  #clearButton
8498
- type="button"
8499
- class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
8655
+ fillMode="flat"
8656
+ icon="reset-color"
8657
+ [svgIcon]="dropletSlashIcon"
8658
+ class="k-coloreditor-reset"
8500
8659
  [attr.aria-label]="getText('clearButton')"
8501
8660
  [attr.title]="getText('clearButton')"
8502
8661
  (click)="clearButtonClick.emit()">
8503
- <span class="k-button-icon k-icon k-i-droplet-slash"></span>
8504
8662
  </button>
8505
8663
  <div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
8506
8664
  <span
@@ -8517,7 +8675,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
8517
8675
  </div>
8518
8676
  `
8519
8677
  }]
8520
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
8678
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClasses: [{
8521
8679
  type: HostBinding,
8522
8680
  args: ['class.k-coloreditor-header']
8523
8681
  }, {
@@ -8700,6 +8858,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
8700
8858
  type: Input
8701
8859
  }] } });
8702
8860
 
8861
+ /* eslint-disable @typescript-eslint/no-explicit-any */
8703
8862
  /**
8704
8863
  * @hidden
8705
8864
  */
@@ -8741,6 +8900,10 @@ class ColorInputComponent {
8741
8900
  * The rgba inputs values.
8742
8901
  */
8743
8902
  this.rgba = {};
8903
+ /**
8904
+ * @hidden
8905
+ */
8906
+ this.caretAltExpandIcon = caretAltExpandIcon;
8744
8907
  this.subscriptions = new Subscription();
8745
8908
  }
8746
8909
  /**
@@ -8828,17 +8991,21 @@ class ColorInputComponent {
8828
8991
  }
8829
8992
  }
8830
8993
  ColorInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
8831
- ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorInputComponent, selector: "kendo-colorinput", inputs: { focusableId: "focusableId", formatView: "formatView", tabindex: "tabindex", value: "value", opacity: "opacity", disabled: "disabled", readonly: "readonly" }, outputs: { valueChange: "valueChange", tabOut: "tabOut" }, host: { properties: { "class.k-colorgradient-inputs": "this.colorInputClass", "class.k-hstack": "this.colorInputClass" } }, viewQueries: [{ propertyName: "opacityInput", first: true, predicate: ["opacityInput"], descendants: true }, { propertyName: "hexInput", first: true, predicate: ["hexInput"], descendants: true }, { propertyName: "blueInput", first: true, predicate: ["blueInput"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
8994
+ ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorInputComponent, selector: "kendo-colorinput", inputs: { focusableId: "focusableId", formatView: "formatView", tabindex: "tabindex", value: "value", opacity: "opacity", disabled: "disabled", readonly: "readonly" }, outputs: { valueChange: "valueChange", tabOut: "tabOut" }, host: { properties: { "class.k-colorgradient-inputs": "this.colorInputClass", "class.k-hstack": "this.colorInputClass" } }, viewQueries: [{ propertyName: "opacityInput", first: true, predicate: ["opacityInput"], descendants: true }, { propertyName: "hexInput", first: true, predicate: ["hexInput"], descendants: true }, { propertyName: "blueInput", first: true, predicate: ["blueInput"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
8832
8995
  <div class="k-vstack">
8833
- <button #toggleFormatButton
8834
- class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
8996
+ <button
8997
+ kendoButton
8998
+ type="button"
8999
+ fillMode="flat"
9000
+ #toggleFormatButton
9001
+ icon="caret-alt-expand"
9002
+ [svgIcon]="caretAltExpandIcon"
9003
+ class="k-colorgradient-toggle-mode"
8835
9004
  [attr.aria-label]="formatButtonTitle"
8836
9005
  [attr.title]="formatButtonTitle"
8837
9006
  [disabled]="disabled"
8838
9007
  [tabindex]="tabindex.toString()"
8839
- type="button"
8840
9008
  >
8841
- <span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
8842
9009
  </button>
8843
9010
  </div>
8844
9011
  <div *ngIf="formatView === 'hex'" class="k-vstack">
@@ -8941,22 +9108,26 @@ ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
8941
9108
  <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>
8942
9109
  </div>
8943
9110
  </ng-container>
8944
- `, isInline: true, components: [{ type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
9111
+ `, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
8945
9112
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, decorators: [{
8946
9113
  type: Component,
8947
9114
  args: [{
8948
9115
  selector: 'kendo-colorinput',
8949
9116
  template: `
8950
9117
  <div class="k-vstack">
8951
- <button #toggleFormatButton
8952
- class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
9118
+ <button
9119
+ kendoButton
9120
+ type="button"
9121
+ fillMode="flat"
9122
+ #toggleFormatButton
9123
+ icon="caret-alt-expand"
9124
+ [svgIcon]="caretAltExpandIcon"
9125
+ class="k-colorgradient-toggle-mode"
8953
9126
  [attr.aria-label]="formatButtonTitle"
8954
9127
  [attr.title]="formatButtonTitle"
8955
9128
  [disabled]="disabled"
8956
9129
  [tabindex]="tabindex.toString()"
8957
- type="button"
8958
9130
  >
8959
- <span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
8960
9131
  </button>
8961
9132
  </div>
8962
9133
  <div *ngIf="formatView === 'hex'" class="k-vstack">
@@ -9096,7 +9267,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
9096
9267
  args: ['blueInput']
9097
9268
  }], toggleFormatButton: [{
9098
9269
  type: ViewChild,
9099
- args: ['toggleFormatButton', { static: false }]
9270
+ args: ['toggleFormatButton', { static: false, read: ElementRef }]
9100
9271
  }] } });
9101
9272
 
9102
9273
  /**
@@ -9105,6 +9276,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
9105
9276
  class ContrastValidationComponent {
9106
9277
  constructor(localization) {
9107
9278
  this.localization = localization;
9279
+ this.checkIcon = checkIcon;
9280
+ this.xCircleIcon = xCircleIcon;
9108
9281
  }
9109
9282
  get passMessage() {
9110
9283
  return this.localization.get('passContrast');
@@ -9123,14 +9296,14 @@ ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
9123
9296
  <ng-container *ngIf="value">
9124
9297
  <span class="k-contrast-validation k-text-success" *ngIf="pass">
9125
9298
  {{passMessage}}
9126
- <span class="k-icon k-i-check"></span>
9299
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
9127
9300
  </span>
9128
9301
  <span class="k-contrast-validation k-text-error" *ngIf="!pass">
9129
9302
  {{failMessage}}
9130
- <span class="k-icon k-i-x"></span>
9303
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
9131
9304
  </span>
9132
9305
  </ng-container>
9133
- `, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
9306
+ `, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
9134
9307
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastValidationComponent, decorators: [{
9135
9308
  type: Component,
9136
9309
  args: [{
@@ -9141,11 +9314,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
9141
9314
  <ng-container *ngIf="value">
9142
9315
  <span class="k-contrast-validation k-text-success" *ngIf="pass">
9143
9316
  {{passMessage}}
9144
- <span class="k-icon k-i-check"></span>
9317
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
9145
9318
  </span>
9146
9319
  <span class="k-contrast-validation k-text-error" *ngIf="!pass">
9147
9320
  {{failMessage}}
9148
- <span class="k-icon k-i-x"></span>
9321
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
9149
9322
  </span>
9150
9323
  </ng-container>
9151
9324
  `
@@ -9164,6 +9337,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
9164
9337
  class ContrastComponent {
9165
9338
  constructor(localization) {
9166
9339
  this.localization = localization;
9340
+ this.checkIcon = checkIcon;
9341
+ this.xCircleIcon = xCircleIcon;
9167
9342
  }
9168
9343
  get formatedRatio() {
9169
9344
  return this.contrastRatio.toFixed(2);
@@ -9188,11 +9363,11 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
9188
9363
  <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
9189
9364
  <ng-container *ngIf="value">
9190
9365
  <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
9191
- <span class="k-icon k-i-check"></span>
9192
- <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>
9366
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
9367
+ <kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
9193
9368
  </span>
9194
9369
  <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
9195
- <span class="k-icon k-i-x"></span>
9370
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
9196
9371
  </span>
9197
9372
  </ng-container>
9198
9373
  </div>
@@ -9206,7 +9381,7 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
9206
9381
  [value]="value"
9207
9382
  [pass]="satisfiesAAACondition">
9208
9383
  </div>
9209
- `, isInline: true, components: [{ type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
9384
+ `, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
9210
9385
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastComponent, decorators: [{
9211
9386
  type: Component,
9212
9387
  args: [{
@@ -9217,11 +9392,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
9217
9392
  <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
9218
9393
  <ng-container *ngIf="value">
9219
9394
  <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
9220
- <span class="k-icon k-i-check"></span>
9221
- <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>
9395
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
9396
+ <kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
9222
9397
  </span>
9223
9398
  <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
9224
- <span class="k-icon k-i-x"></span>
9399
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
9225
9400
  </span>
9226
9401
  </ng-container>
9227
9402
  </div>
@@ -9341,6 +9516,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
9341
9516
  }]
9342
9517
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
9343
9518
 
9519
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9344
9520
  let serial$3 = 0;
9345
9521
  /**
9346
9522
  * The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
@@ -9432,6 +9608,10 @@ class ColorGradientComponent {
9432
9608
  * @hidden
9433
9609
  */
9434
9610
  this.internalNavigation = false;
9611
+ /**
9612
+ * @hidden
9613
+ */
9614
+ this.dropletSlashIcon = dropletSlashIcon;
9435
9615
  this._tabindex = 0;
9436
9616
  this.listeners = [];
9437
9617
  this.hueSliderTouched = false;
@@ -9980,18 +10160,23 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
9980
10160
  </svg>
9981
10161
  </div>
9982
10162
  <div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
9983
- <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"
10163
+
10164
+ <button
10165
+ kendoButton
9984
10166
  *ngIf="clearButton"
9985
- role="button"
10167
+ class="k-clear-color"
10168
+ fillMode="flat"
10169
+ icon="droplet-slash"
10170
+ [svgIcon]="dropletSlashIcon"
9986
10171
  (click)="reset()"
9987
10172
  (keydown.enter)="reset()"
9988
10173
  (keydown.space)="reset()"
9989
10174
  [attr.aria-label]="clearButtonTitle"
9990
10175
  [attr.title]="clearButtonTitle"
9991
10176
  [tabindex]="innerTabIndex.toString()"
9992
- [style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'">
9993
- <span class="k-icon k-i-droplet-slash"></span>
9994
- </span>
10177
+ [style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
10178
+ >
10179
+ </button>
9995
10180
  <kendo-slider
9996
10181
  [ngClass]="{'k-align-self-end': clearButton}"
9997
10182
  [style.height.px]="clearButton ? '140' : null"
@@ -10051,7 +10236,7 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
10051
10236
  [value]="value"
10052
10237
  [ratio]="contrastTool">
10053
10238
  </div>
10054
- `, isInline: true, components: [{ type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { type: SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { type: ColorInputComponent, selector: "kendo-colorinput", inputs: ["focusableId", "formatView", "tabindex", "value", "opacity", "disabled", "readonly"], outputs: ["valueChange", "tabOut"] }, { type: ContrastComponent, selector: "[kendoContrastTool]", inputs: ["value", "ratio"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
10239
+ `, isInline: true, components: [{ type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { type: ColorInputComponent, selector: "kendo-colorinput", inputs: ["focusableId", "formatView", "tabindex", "value", "opacity", "disabled", "readonly"], outputs: ["valueChange", "tabOut"] }, { type: ContrastComponent, selector: "[kendoContrastTool]", inputs: ["value", "ratio"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
10055
10240
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientComponent, decorators: [{
10056
10241
  type: Component,
10057
10242
  args: [{
@@ -10150,18 +10335,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
10150
10335
  </svg>
10151
10336
  </div>
10152
10337
  <div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
10153
- <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"
10338
+
10339
+ <button
10340
+ kendoButton
10154
10341
  *ngIf="clearButton"
10155
- role="button"
10342
+ class="k-clear-color"
10343
+ fillMode="flat"
10344
+ icon="droplet-slash"
10345
+ [svgIcon]="dropletSlashIcon"
10156
10346
  (click)="reset()"
10157
10347
  (keydown.enter)="reset()"
10158
10348
  (keydown.space)="reset()"
10159
10349
  [attr.aria-label]="clearButtonTitle"
10160
10350
  [attr.title]="clearButtonTitle"
10161
10351
  [tabindex]="innerTabIndex.toString()"
10162
- [style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'">
10163
- <span class="k-icon k-i-droplet-slash"></span>
10164
- </span>
10352
+ [style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
10353
+ >
10354
+ </button>
10165
10355
  <kendo-slider
10166
10356
  [ngClass]="{'k-align-self-end': clearButton}"
10167
10357
  [style.height.px]="clearButton ? '140' : null"
@@ -11796,6 +11986,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11796
11986
  args: ['footer']
11797
11987
  }] } });
11798
11988
 
11989
+ /* eslint-disable @typescript-eslint/no-explicit-any */
11799
11990
  const DOM_FOCUS_EVENTS = ['focus', 'blur'];
11800
11991
  const DEFAULT_SIZE$3 = 'medium';
11801
11992
  const DEFAULT_ROUNDED$2 = 'medium';
@@ -11921,6 +12112,10 @@ class ColorPickerComponent {
11921
12112
  * Indicates whether the ColorPicker wrapper is focused.
11922
12113
  */
11923
12114
  this.isFocused = false;
12115
+ /**
12116
+ * @hidden
12117
+ */
12118
+ this.arrowDownIcon = caretAltDownIcon;
11924
12119
  this._tabindex = 0;
11925
12120
  this._popupSettings = { animate: true };
11926
12121
  this._paletteSettings = {};
@@ -12003,6 +12198,19 @@ class ColorPickerComponent {
12003
12198
  get gradientSettings() {
12004
12199
  return this._gradientSettings;
12005
12200
  }
12201
+ /**
12202
+ * Defines an SVGIcon to be rendered within the button.
12203
+ * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
12204
+ */
12205
+ set svgIcon(icon) {
12206
+ if (isDevMode() && icon && this.icon && this.iconClass) {
12207
+ throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
12208
+ }
12209
+ this._svgIcon = icon;
12210
+ }
12211
+ get svgIcon() {
12212
+ return this._svgIcon;
12213
+ }
12006
12214
  /**
12007
12215
  * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
12008
12216
  *
@@ -12080,13 +12288,24 @@ class ColorPickerComponent {
12080
12288
  /**
12081
12289
  * @hidden
12082
12290
  */
12083
- get iconStyles() {
12291
+ get customIconStyles() {
12084
12292
  if (this.iconClass) {
12085
- return this.iconClass;
12293
+ let parsedIconClass = '';
12294
+ parseCSSClassNames(this.iconClass).forEach(iconClass => {
12295
+ parsedIconClass += iconClass + ' ';
12296
+ });
12297
+ return parsedIconClass.slice(0, -1);
12086
12298
  }
12087
- if (this.icon) {
12088
- return `k-icon k-i-${this.icon}`;
12299
+ return '';
12300
+ }
12301
+ /**
12302
+ * @hidden
12303
+ */
12304
+ get iconStyles() {
12305
+ if (this.icon && !this.iconClass) {
12306
+ return `${this.icon}`;
12089
12307
  }
12308
+ return '';
12090
12309
  }
12091
12310
  ngOnInit() {
12092
12311
  const defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
@@ -12464,7 +12683,7 @@ class ColorPickerComponent {
12464
12683
  }
12465
12684
  }
12466
12685
  ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.PopupService }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
12467
- ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerComponent, 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", 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", 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" } }, providers: [{
12686
+ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerComponent, 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", 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" } }, providers: [{
12468
12687
  multi: true,
12469
12688
  provide: NG_VALUE_ACCESSOR,
12470
12689
  useExisting: forwardRef(() => ColorPickerComponent)
@@ -12535,18 +12754,30 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
12535
12754
  <span #activeColor class="k-input-inner">
12536
12755
  <span
12537
12756
  class="k-value-icon k-color-preview"
12538
- [ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}">
12539
- <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>
12757
+ [ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
12758
+ >
12759
+ <kendo-icon-wrapper
12760
+ *ngIf="iconClass || icon"
12761
+ [name]="iconStyles"
12762
+ innerCssClass="k-color-preview-icon"
12763
+ [customFontClass]="customIconStyles"
12764
+ [svgIcon]="svgIcon"
12765
+ >
12766
+ </kendo-icon-wrapper>
12540
12767
  <span class="k-color-preview-mask" [style.background-color]="value"></span>
12541
12768
  </span>
12769
+
12542
12770
  </span>
12543
12771
  <button
12772
+ kendoButton
12544
12773
  tabindex="-1"
12545
12774
  type="button"
12546
12775
  role="none"
12776
+ icon="caret-alt-down"
12777
+ [svgIcon]="arrowDownIcon"
12547
12778
  aria-hidden="true"
12548
- class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">
12549
- <span class="k-button-icon k-icon k-i-caret-alt-down"></span>
12779
+ class="k-input-button"
12780
+ >
12550
12781
  </button>
12551
12782
  <ng-template #popupTemplate>
12552
12783
  <kendo-flatcolorpicker
@@ -12569,7 +12800,7 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
12569
12800
  </kendo-flatcolorpicker>
12570
12801
  </ng-template>
12571
12802
  <ng-container #container></ng-container>
12572
- `, isInline: true, components: [{ type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
12803
+ `, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
12573
12804
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, decorators: [{
12574
12805
  type: Component,
12575
12806
  args: [{
@@ -12646,18 +12877,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
12646
12877
  <span #activeColor class="k-input-inner">
12647
12878
  <span
12648
12879
  class="k-value-icon k-color-preview"
12649
- [ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}">
12650
- <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>
12880
+ [ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
12881
+ >
12882
+ <kendo-icon-wrapper
12883
+ *ngIf="iconClass || icon"
12884
+ [name]="iconStyles"
12885
+ innerCssClass="k-color-preview-icon"
12886
+ [customFontClass]="customIconStyles"
12887
+ [svgIcon]="svgIcon"
12888
+ >
12889
+ </kendo-icon-wrapper>
12651
12890
  <span class="k-color-preview-mask" [style.background-color]="value"></span>
12652
12891
  </span>
12892
+
12653
12893
  </span>
12654
12894
  <button
12895
+ kendoButton
12655
12896
  tabindex="-1"
12656
12897
  type="button"
12657
12898
  role="none"
12899
+ icon="caret-alt-down"
12900
+ [svgIcon]="arrowDownIcon"
12658
12901
  aria-hidden="true"
12659
- class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">
12660
- <span class="k-button-icon k-icon k-i-caret-alt-down"></span>
12902
+ class="k-input-button"
12903
+ >
12661
12904
  </button>
12662
12905
  <ng-template #popupTemplate>
12663
12906
  <kendo-flatcolorpicker
@@ -12745,6 +12988,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
12745
12988
  type: Input
12746
12989
  }], iconClass: [{
12747
12990
  type: Input
12991
+ }], svgIcon: [{
12992
+ type: Input
12748
12993
  }], clearButton: [{
12749
12994
  type: Input
12750
12995
  }], tabindex: [{
@@ -12889,7 +13134,9 @@ ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
12889
13134
  NumericTextBoxModule,
12890
13135
  CommonModule,
12891
13136
  PopupModule,
12892
- DraggableModule], exports: [ColorPickerComponent,
13137
+ DraggableModule,
13138
+ ButtonModule,
13139
+ IconsModule], exports: [ColorPickerComponent,
12893
13140
  ColorPaletteComponent,
12894
13141
  ColorGradientComponent,
12895
13142
  FlatColorPickerComponent,
@@ -12900,7 +13147,9 @@ ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
12900
13147
  NumericTextBoxModule,
12901
13148
  CommonModule,
12902
13149
  PopupModule,
12903
- DraggableModule
13150
+ DraggableModule,
13151
+ ButtonModule,
13152
+ IconsModule
12904
13153
  ]] });
12905
13154
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerModule, decorators: [{
12906
13155
  type: NgModule,
@@ -12915,7 +13164,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
12915
13164
  NumericTextBoxModule,
12916
13165
  CommonModule,
12917
13166
  PopupModule,
12918
- DraggableModule
13167
+ DraggableModule,
13168
+ ButtonModule,
13169
+ IconsModule
12919
13170
  ]
12920
13171
  }]
12921
13172
  }] });
@@ -13707,6 +13958,7 @@ const DEFAULT_POPUP_SCALE = 3;
13707
13958
  const DEFAULT_EXPORT_SCALE = 2;
13708
13959
  const DEFAULT_COLOR = '#000000';
13709
13960
  const DEFAULT_BACKGROUND_COLOR = '#ffffff';
13961
+ const iconsMap = { xIcon, hyperlinkOpenIcon };
13710
13962
  /**
13711
13963
  * Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
13712
13964
  *
@@ -13867,6 +14119,12 @@ class SignatureComponent {
13867
14119
  get value() {
13868
14120
  return this._value;
13869
14121
  }
14122
+ /**
14123
+ * @hidden
14124
+ */
14125
+ svgIcon(name) {
14126
+ return iconsMap[name];
14127
+ }
13870
14128
  /**
13871
14129
  * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
13872
14130
  *
@@ -13952,6 +14210,9 @@ class SignatureComponent {
13952
14210
  get showClear() {
13953
14211
  return !(this.isEmpty || this.isDrawing || this.readonly || this.disabled);
13954
14212
  }
14213
+ /**
14214
+ * @hidden
14215
+ */
13955
14216
  get focused() {
13956
14217
  return this.isFocused;
13957
14218
  }
@@ -14280,6 +14541,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
14280
14541
  kendoButton
14281
14542
  class="k-signature-action k-signature-maximize"
14282
14543
  icon="hyperlink-open"
14544
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
14283
14545
  fillMode="flat"
14284
14546
  [size]="size"
14285
14547
  (click)="onMaximize()"
@@ -14291,6 +14553,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
14291
14553
  kendoButton
14292
14554
  class="k-signature-action k-signature-minimize k-rotate-180"
14293
14555
  icon="hyperlink-open"
14556
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
14294
14557
  fillMode="flat"
14295
14558
  [size]="size"
14296
14559
  (click)="onMinimize()"
@@ -14315,6 +14578,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
14315
14578
  kendoButton
14316
14579
  class="k-signature-action k-signature-clear"
14317
14580
  icon="close"
14581
+ [svgIcon]="svgIcon('xIcon')"
14318
14582
  fillMode="flat"
14319
14583
  [size]="size"
14320
14584
  [attr.aria-label]="clearTitle"
@@ -14381,6 +14645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
14381
14645
  kendoButton
14382
14646
  class="k-signature-action k-signature-maximize"
14383
14647
  icon="hyperlink-open"
14648
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
14384
14649
  fillMode="flat"
14385
14650
  [size]="size"
14386
14651
  (click)="onMaximize()"
@@ -14392,6 +14657,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
14392
14657
  kendoButton
14393
14658
  class="k-signature-action k-signature-minimize k-rotate-180"
14394
14659
  icon="hyperlink-open"
14660
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
14395
14661
  fillMode="flat"
14396
14662
  [size]="size"
14397
14663
  (click)="onMinimize()"
@@ -14416,6 +14682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
14416
14682
  kendoButton
14417
14683
  class="k-signature-action k-signature-clear"
14418
14684
  icon="close"
14685
+ [svgIcon]="svgIcon('xIcon')"
14419
14686
  fillMode="flat"
14420
14687
  [size]="size"
14421
14688
  [attr.aria-label]="clearTitle"
@@ -14572,12 +14839,14 @@ SignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
14572
14839
  SignatureCustomMessagesComponent,
14573
14840
  LocalizedSignatureMessagesDirective], imports: [ButtonModule,
14574
14841
  CommonModule,
14575
- DialogsModule], exports: [SignatureComponent,
14842
+ DialogsModule,
14843
+ IconsModule], exports: [SignatureComponent,
14576
14844
  SignatureCustomMessagesComponent] });
14577
14845
  SignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, imports: [[
14578
14846
  ButtonModule,
14579
14847
  CommonModule,
14580
- DialogsModule
14848
+ DialogsModule,
14849
+ IconsModule
14581
14850
  ]] });
14582
14851
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, decorators: [{
14583
14852
  type: NgModule,
@@ -14594,7 +14863,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
14594
14863
  imports: [
14595
14864
  ButtonModule,
14596
14865
  CommonModule,
14597
- DialogsModule
14866
+ DialogsModule,
14867
+ IconsModule
14598
14868
  ]
14599
14869
  }]
14600
14870
  }] });