@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
@@ -5,15 +5,19 @@
5
5
  import { AA_RATIO, AAA_RATIO } from './constants';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { Component, Input } from '@angular/core';
8
+ import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
8
9
  import * as i0 from "@angular/core";
9
10
  import * as i1 from "@progress/kendo-angular-l10n";
10
- import * as i2 from "@angular/common";
11
+ import * as i2 from "@progress/kendo-angular-icons";
12
+ import * as i3 from "@angular/common";
11
13
  /**
12
14
  * @hidden
13
15
  */
14
16
  export class ContrastValidationComponent {
15
17
  constructor(localization) {
16
18
  this.localization = localization;
19
+ this.checkIcon = checkIcon;
20
+ this.xCircleIcon = xCircleIcon;
17
21
  }
18
22
  get passMessage() {
19
23
  return this.localization.get('passContrast');
@@ -32,14 +36,14 @@ ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
32
36
  <ng-container *ngIf="value">
33
37
  <span class="k-contrast-validation k-text-success" *ngIf="pass">
34
38
  {{passMessage}}
35
- <span class="k-icon k-i-check"></span>
39
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
36
40
  </span>
37
41
  <span class="k-contrast-validation k-text-error" *ngIf="!pass">
38
42
  {{failMessage}}
39
- <span class="k-icon k-i-x"></span>
43
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
40
44
  </span>
41
45
  </ng-container>
42
- `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
46
+ `, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
43
47
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastValidationComponent, decorators: [{
44
48
  type: Component,
45
49
  args: [{
@@ -50,11 +54,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
50
54
  <ng-container *ngIf="value">
51
55
  <span class="k-contrast-validation k-text-success" *ngIf="pass">
52
56
  {{passMessage}}
53
- <span class="k-icon k-i-check"></span>
57
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
54
58
  </span>
55
59
  <span class="k-contrast-validation k-text-error" *ngIf="!pass">
56
60
  {{failMessage}}
57
- <span class="k-icon k-i-x"></span>
61
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
58
62
  </span>
59
63
  </ng-container>
60
64
  `
@@ -6,16 +6,20 @@ import { Component, Input } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { getContrastFromTwoRGBAs, getRGBA } from './utils';
8
8
  import { AA_RATIO, AAA_RATIO } from './constants';
9
+ import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "@progress/kendo-angular-l10n";
11
- import * as i2 from "./contrast-validation.component";
12
- import * as i3 from "@angular/common";
12
+ import * as i2 from "@progress/kendo-angular-icons";
13
+ import * as i3 from "./contrast-validation.component";
14
+ import * as i4 from "@angular/common";
13
15
  /**
14
16
  * @hidden
15
17
  */
16
18
  export class ContrastComponent {
17
19
  constructor(localization) {
18
20
  this.localization = localization;
21
+ this.checkIcon = checkIcon;
22
+ this.xCircleIcon = xCircleIcon;
19
23
  }
20
24
  get formatedRatio() {
21
25
  return this.contrastRatio.toFixed(2);
@@ -40,11 +44,11 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
40
44
  <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
41
45
  <ng-container *ngIf="value">
42
46
  <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
43
- <span class="k-icon k-i-check"></span>
44
- <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>
47
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
48
+ <kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
45
49
  </span>
46
50
  <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
47
- <span class="k-icon k-i-x"></span>
51
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
48
52
  </span>
49
53
  </ng-container>
50
54
  </div>
@@ -58,7 +62,7 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
58
62
  [value]="value"
59
63
  [pass]="satisfiesAAACondition">
60
64
  </div>
61
- `, isInline: true, components: [{ type: i2.ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
65
+ `, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: i3.ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
62
66
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastComponent, decorators: [{
63
67
  type: Component,
64
68
  args: [{
@@ -69,11 +73,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
69
73
  <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
70
74
  <ng-container *ngIf="value">
71
75
  <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
72
- <span class="k-icon k-i-check"></span>
73
- <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>
76
+ <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
77
+ <kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
74
78
  </span>
75
79
  <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
76
- <span class="k-icon k-i-x"></span>
80
+ <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
77
81
  </span>
78
82
  </ng-container>
79
83
  </div>
@@ -2,23 +2,41 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ViewChildren, QueryList, ElementRef } from '@angular/core';
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
6
+ import { Component, HostBinding, Input, Output, EventEmitter, ViewChild, ViewChildren, QueryList, ElementRef, Renderer2 } from '@angular/core';
7
+ import { dropletSlashIcon, dropletSliderIcon, paletteIcon } from '@progress/kendo-svg-icons';
6
8
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
9
  import * as i0 from "@angular/core";
8
10
  import * as i1 from "@progress/kendo-angular-l10n";
9
- import * as i2 from "@angular/common";
11
+ import * as i2 from "@progress/kendo-angular-buttons";
12
+ import * as i3 from "@angular/common";
10
13
  /**
11
14
  * @hidden
12
15
  */
13
16
  export class FlatColorPickerHeaderComponent {
14
- constructor(localizationService) {
17
+ constructor(localizationService, renderer) {
15
18
  this.localizationService = localizationService;
19
+ this.renderer = renderer;
16
20
  this.hostClasses = true;
17
21
  this.innerTabIndex = -1;
18
22
  this.viewChange = new EventEmitter();
19
23
  this.valuePaneClick = new EventEmitter();
20
24
  this.clearButtonClick = new EventEmitter();
21
25
  this.tabOut = new EventEmitter();
26
+ this.dropletSliderIcon = dropletSliderIcon;
27
+ this.paletteIcon = paletteIcon;
28
+ this.dropletSlashIcon = dropletSlashIcon;
29
+ }
30
+ ngAfterViewInit() {
31
+ if (this.viewButtonsCollection.length > 0) {
32
+ this.viewButtonsCollection.forEach((button) => {
33
+ const buttonElem = button.nativeElement;
34
+ const isViewActive = buttonElem.getAttribute('aria-pressed') === 'true';
35
+ if (isViewActive) {
36
+ this.renderer.addClass(buttonElem, 'k-selected');
37
+ }
38
+ });
39
+ }
22
40
  }
23
41
  onViewButtonClick(view) {
24
42
  this.activeView = view;
@@ -28,7 +46,10 @@ export class FlatColorPickerHeaderComponent {
28
46
  return this.views && this.views.indexOf('gradient') >= 0 && this.views.indexOf('palette') >= 0;
29
47
  }
30
48
  getViewButtonIcon(view) {
31
- return view === 'gradient' ? 'k-i-color-canvas' : 'k-i-palette';
49
+ return view === 'gradient' ? 'color-canvas' : 'palette';
50
+ }
51
+ getViewButtonsSVGIcon(view) {
52
+ return view === 'gradient' ? this.dropletSliderIcon : this.paletteIcon;
32
53
  }
33
54
  getText(text) {
34
55
  return this.localizationService.get(text);
@@ -40,42 +61,46 @@ export class FlatColorPickerHeaderComponent {
40
61
  }
41
62
  }
42
63
  }
43
- FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
64
+ 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 });
44
65
  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: `
45
66
  <div class="k-coloreditor-header-actions k-hstack">
46
67
  <div
47
68
  *ngIf="viewButtons"
48
69
  class="k-button-group k-button-group-flat">
49
- <button *ngFor="let view of views; let i = index;"
50
- #viewButtons
70
+ <button
71
+ *ngFor="let view of views; let i = index;"
72
+ kendoButton
51
73
  type="button"
74
+ #viewButtons
75
+ fillMode="flat"
52
76
  [tabindex]="innerTabIndex.toString()"
53
77
  (click)="onViewButtonClick(view)"
78
+ [icon]="getViewButtonIcon(view)"
79
+ [svgIcon]="getViewButtonsSVGIcon(view)"
54
80
  (keydown.shift.tab)="onHeaderTabOut($event, i)"
55
81
  class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
56
82
  [attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
57
83
  [attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
58
84
  [attr.aria-pressed]="activeView === view"
59
85
  [ngClass]="activeView === view ? 'k-selected' : ''">
60
- <span
61
- class="k-button-icon k-icon"
62
- [ngClass]="getViewButtonIcon(view)">
63
- </span>
64
86
  </button>
65
87
  </div>
66
88
  </div>
67
89
  <div class="k-spacer"></div>
68
90
  <div class="k-coloreditor-header-actions k-hstack">
69
91
  <button
92
+ kendoButton
93
+ type="button"
70
94
  [tabindex]="innerTabIndex.toString()"
71
95
  *ngIf="clearButton"
72
96
  #clearButton
73
- type="button"
74
- class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
97
+ fillMode="flat"
98
+ icon="reset-color"
99
+ [svgIcon]="dropletSlashIcon"
100
+ class="k-coloreditor-reset"
75
101
  [attr.aria-label]="getText('clearButton')"
76
102
  [attr.title]="getText('clearButton')"
77
103
  (click)="clearButtonClick.emit()">
78
- <span class="k-button-icon k-icon k-i-droplet-slash"></span>
79
104
  </button>
80
105
  <div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
81
106
  <span
@@ -90,7 +115,7 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
90
115
  </span>
91
116
  </div>
92
117
  </div>
93
- `, isInline: true, directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
118
+ `, 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: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
94
119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, decorators: [{
95
120
  type: Component,
96
121
  args: [{
@@ -101,36 +126,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
101
126
  <div
102
127
  *ngIf="viewButtons"
103
128
  class="k-button-group k-button-group-flat">
104
- <button *ngFor="let view of views; let i = index;"
105
- #viewButtons
129
+ <button
130
+ *ngFor="let view of views; let i = index;"
131
+ kendoButton
106
132
  type="button"
133
+ #viewButtons
134
+ fillMode="flat"
107
135
  [tabindex]="innerTabIndex.toString()"
108
136
  (click)="onViewButtonClick(view)"
137
+ [icon]="getViewButtonIcon(view)"
138
+ [svgIcon]="getViewButtonsSVGIcon(view)"
109
139
  (keydown.shift.tab)="onHeaderTabOut($event, i)"
110
140
  class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
111
141
  [attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
112
142
  [attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
113
143
  [attr.aria-pressed]="activeView === view"
114
144
  [ngClass]="activeView === view ? 'k-selected' : ''">
115
- <span
116
- class="k-button-icon k-icon"
117
- [ngClass]="getViewButtonIcon(view)">
118
- </span>
119
145
  </button>
120
146
  </div>
121
147
  </div>
122
148
  <div class="k-spacer"></div>
123
149
  <div class="k-coloreditor-header-actions k-hstack">
124
150
  <button
151
+ kendoButton
152
+ type="button"
125
153
  [tabindex]="innerTabIndex.toString()"
126
154
  *ngIf="clearButton"
127
155
  #clearButton
128
- type="button"
129
- class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
156
+ fillMode="flat"
157
+ icon="reset-color"
158
+ [svgIcon]="dropletSlashIcon"
159
+ class="k-coloreditor-reset"
130
160
  [attr.aria-label]="getText('clearButton')"
131
161
  [attr.title]="getText('clearButton')"
132
162
  (click)="clearButtonClick.emit()">
133
- <span class="k-button-icon k-icon k-i-droplet-slash"></span>
134
163
  </button>
135
164
  <div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
136
165
  <span
@@ -147,7 +176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
147
176
  </div>
148
177
  `
149
178
  }]
150
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
179
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClasses: [{
151
180
  type: HostBinding,
152
181
  args: ['class.k-coloreditor-header']
153
182
  }, {
@@ -22,6 +22,8 @@ import { ContrastValidationComponent } from './colorpicker/contrast-validation.c
22
22
  import { ContrastComponent } from './colorpicker/contrast.component';
23
23
  import { ColorContrastSvgComponent } from './colorpicker/color-contrast-svg.component';
24
24
  import { NumericLabelDirective } from './colorpicker/color-gradient-numeric-label.directive';
25
+ import { ButtonModule } from '@progress/kendo-angular-buttons';
26
+ import { IconsModule } from '@progress/kendo-angular-icons';
25
27
  import * as i0 from "@angular/core";
26
28
  const PUBLIC_DIRECTIVES = [
27
29
  ColorPickerComponent,
@@ -64,7 +66,9 @@ ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
64
66
  NumericTextBoxModule,
65
67
  CommonModule,
66
68
  PopupModule,
67
- DraggableModule], exports: [ColorPickerComponent,
69
+ DraggableModule,
70
+ ButtonModule,
71
+ IconsModule], exports: [ColorPickerComponent,
68
72
  ColorPaletteComponent,
69
73
  ColorGradientComponent,
70
74
  FlatColorPickerComponent,
@@ -75,7 +79,9 @@ ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
75
79
  NumericTextBoxModule,
76
80
  CommonModule,
77
81
  PopupModule,
78
- DraggableModule
82
+ DraggableModule,
83
+ ButtonModule,
84
+ IconsModule
79
85
  ]] });
80
86
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerModule, decorators: [{
81
87
  type: NgModule,
@@ -90,7 +96,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
90
96
  NumericTextBoxModule,
91
97
  CommonModule,
92
98
  PopupModule,
93
- DraggableModule
99
+ DraggableModule,
100
+ ButtonModule,
101
+ IconsModule
94
102
  ]
95
103
  }]
96
104
  }] });
@@ -2,6 +2,7 @@
2
2
  * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
6
  import { Component, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, ViewChild, forwardRef, isDevMode, NgZone, ChangeDetectorRef, Injector } from '@angular/core';
6
7
  import { anyChanged, hasObservers, Keys, guid, KendoInput } from '@progress/kendo-angular-common';
7
8
  import { areSame, getStylingClasses, requiresZoneOnBlur } from '../common/utils';
@@ -18,12 +19,14 @@ import { MIN_DOC_LINK, MAX_DOC_LINK, POINT, INITIAL_SPIN_DELAY, SPIN_DELAY, EXPO
18
19
  import { defined, noop, numericRegex, isNumber, pad, decimalPart, getDeltaFromMouseWheel, getCaretPosition, extractSignificantNumericChars, isRightClick } from './utils';
19
20
  import { ArrowDirection } from './arrow-direction';
20
21
  import { mobileOS } from '@progress/kendo-common';
22
+ import { caretAltUpIcon, caretAltDownIcon } from '@progress/kendo-svg-icons';
21
23
  import * as i0 from "@angular/core";
22
24
  import * as i1 from "@progress/kendo-angular-intl";
23
25
  import * as i2 from "@progress/kendo-angular-l10n";
24
- import * as i3 from "./localization/localized-numerictextbox-messages.directive";
25
- import * as i4 from "@progress/kendo-angular-common";
26
- import * as i5 from "@angular/common";
26
+ import * as i3 from "@progress/kendo-angular-icons";
27
+ import * as i4 from "./localization/localized-numerictextbox-messages.directive";
28
+ import * as i5 from "@progress/kendo-angular-common";
29
+ import * as i6 from "@angular/common";
27
30
  const PARSABLE_OPTIONS = ['min', 'max', 'step', 'decimals'];
28
31
  const PARSABLE_DEFAULTS = {
29
32
  decimals: null,
@@ -130,6 +133,14 @@ export class NumericTextBoxComponent {
130
133
  */
131
134
  this.arrowDirection = ArrowDirection.None;
132
135
  this.hostClasses = true;
136
+ /**
137
+ * @hidden
138
+ */
139
+ this.arrowUpIcon = caretAltUpIcon;
140
+ /**
141
+ * @hidden
142
+ */
143
+ this.arrowDownIcon = caretAltDownIcon;
133
144
  this.inputValue = '';
134
145
  this.minValidateFn = noop;
135
146
  this.maxValidateFn = noop;
@@ -907,12 +918,17 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
907
918
  [attr.aria-hidden]="true"
908
919
  [attr.aria-label]="incrementTitle"
909
920
  [title]="incrementTitle"
910
- [class.k-active]="arrowDirection === ArrowDirection.Up"
911
921
  class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
922
+ [class.k-active]="arrowDirection === ArrowDirection.Up"
912
923
  tabindex="-1"
913
924
  >
914
- <span class="k-button-icon k-icon k-i-caret-alt-up"></span>
915
- </button>
925
+ <kendo-icon-wrapper
926
+ name="caret-alt-up"
927
+ innerCssClass="k-button-icon"
928
+ [svgIcon]="arrowUpIcon"
929
+ >
930
+ </kendo-icon-wrapper>
931
+ </button>
916
932
  <button
917
933
  type="button"
918
934
  [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
@@ -922,11 +938,16 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
922
938
  [class.k-active]="arrowDirection === ArrowDirection.Down"
923
939
  class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
924
940
  tabindex="-1"
925
- >
926
- <span class="k-button-icon k-icon k-i-caret-alt-down"></span>
927
- </button>
941
+ >
942
+ <kendo-icon-wrapper
943
+ name="caret-alt-down"
944
+ innerCssClass="k-button-icon"
945
+ [svgIcon]="arrowDownIcon"
946
+ >
947
+ </kendo-icon-wrapper>
948
+ </button>
928
949
  </span>
929
- `, isInline: true, directives: [{ type: i3.LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i4.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
950
+ `, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i5.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
930
951
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxComponent, decorators: [{
931
952
  type: Component,
932
953
  args: [{
@@ -983,12 +1004,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
983
1004
  [attr.aria-hidden]="true"
984
1005
  [attr.aria-label]="incrementTitle"
985
1006
  [title]="incrementTitle"
986
- [class.k-active]="arrowDirection === ArrowDirection.Up"
987
1007
  class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
1008
+ [class.k-active]="arrowDirection === ArrowDirection.Up"
988
1009
  tabindex="-1"
989
1010
  >
990
- <span class="k-button-icon k-icon k-i-caret-alt-up"></span>
991
- </button>
1011
+ <kendo-icon-wrapper
1012
+ name="caret-alt-up"
1013
+ innerCssClass="k-button-icon"
1014
+ [svgIcon]="arrowUpIcon"
1015
+ >
1016
+ </kendo-icon-wrapper>
1017
+ </button>
992
1018
  <button
993
1019
  type="button"
994
1020
  [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
@@ -998,9 +1024,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
998
1024
  [class.k-active]="arrowDirection === ArrowDirection.Down"
999
1025
  class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
1000
1026
  tabindex="-1"
1001
- >
1002
- <span class="k-button-icon k-icon k-i-caret-alt-down"></span>
1003
- </button>
1027
+ >
1028
+ <kendo-icon-wrapper
1029
+ name="caret-alt-down"
1030
+ innerCssClass="k-button-icon"
1031
+ [svgIcon]="arrowDownIcon"
1032
+ >
1033
+ </kendo-icon-wrapper>
1034
+ </button>
1004
1035
  </span>
1005
1036
  `
1006
1037
  }]
@@ -8,6 +8,7 @@ import { CommonModule } from '@angular/common';
8
8
  import { LocalizedNumericTextBoxMessagesDirective } from './numerictextbox/localization/localized-numerictextbox-messages.directive';
9
9
  import { NumericTextBoxCustomMessagesComponent } from './numerictextbox/localization/custom-messages.component';
10
10
  import { EventsModule } from '@progress/kendo-angular-common';
11
+ import { IconsModule } from '@progress/kendo-angular-icons';
11
12
  import * as i0 from "@angular/core";
12
13
  /**
13
14
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
@@ -45,9 +46,9 @@ export class NumericTextBoxModule {
45
46
  NumericTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
47
  NumericTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, declarations: [LocalizedNumericTextBoxMessagesDirective,
47
48
  NumericTextBoxComponent,
48
- NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule], exports: [NumericTextBoxComponent,
49
+ NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule, IconsModule], exports: [NumericTextBoxComponent,
49
50
  NumericTextBoxCustomMessagesComponent] });
50
- NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule, EventsModule]] });
51
+ NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule, EventsModule, IconsModule]] });
51
52
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, decorators: [{
52
53
  type: NgModule,
53
54
  args: [{
@@ -60,6 +61,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
60
61
  NumericTextBoxComponent,
61
62
  NumericTextBoxCustomMessagesComponent
62
63
  ],
63
- imports: [CommonModule, EventsModule]
64
+ imports: [CommonModule, EventsModule, IconsModule]
64
65
  }]
65
66
  }] });
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-inputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1673435233,
12
+ publishDate: 1673446165,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -11,6 +11,7 @@ import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { isNone, isPresent, ROUNDED_MAP, SIZE_MAP } from '../common/utils';
12
12
  import { packageMetadata } from '../package-metadata';
13
13
  import { SignatureCloseEvent, SignatureOpenEvent } from './events';
14
+ import { xIcon, hyperlinkOpenIcon } from '@progress/kendo-svg-icons';
14
15
  import * as i0 from "@angular/core";
15
16
  import * as i1 from "@progress/kendo-angular-l10n";
16
17
  import * as i2 from "@progress/kendo-angular-buttons";
@@ -26,6 +27,7 @@ const DEFAULT_POPUP_SCALE = 3;
26
27
  const DEFAULT_EXPORT_SCALE = 2;
27
28
  const DEFAULT_COLOR = '#000000';
28
29
  const DEFAULT_BACKGROUND_COLOR = '#ffffff';
30
+ const iconsMap = { xIcon, hyperlinkOpenIcon };
29
31
  /**
30
32
  * Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
31
33
  *
@@ -186,6 +188,12 @@ export class SignatureComponent {
186
188
  get value() {
187
189
  return this._value;
188
190
  }
191
+ /**
192
+ * @hidden
193
+ */
194
+ svgIcon(name) {
195
+ return iconsMap[name];
196
+ }
189
197
  /**
190
198
  * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
191
199
  *
@@ -271,6 +279,9 @@ export class SignatureComponent {
271
279
  get showClear() {
272
280
  return !(this.isEmpty || this.isDrawing || this.readonly || this.disabled);
273
281
  }
282
+ /**
283
+ * @hidden
284
+ */
274
285
  get focused() {
275
286
  return this.isFocused;
276
287
  }
@@ -596,6 +607,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
596
607
  kendoButton
597
608
  class="k-signature-action k-signature-maximize"
598
609
  icon="hyperlink-open"
610
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
599
611
  fillMode="flat"
600
612
  [size]="size"
601
613
  (click)="onMaximize()"
@@ -607,6 +619,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
607
619
  kendoButton
608
620
  class="k-signature-action k-signature-minimize k-rotate-180"
609
621
  icon="hyperlink-open"
622
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
610
623
  fillMode="flat"
611
624
  [size]="size"
612
625
  (click)="onMinimize()"
@@ -631,6 +644,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
631
644
  kendoButton
632
645
  class="k-signature-action k-signature-clear"
633
646
  icon="close"
647
+ [svgIcon]="svgIcon('xIcon')"
634
648
  fillMode="flat"
635
649
  [size]="size"
636
650
  [attr.aria-label]="clearTitle"
@@ -697,6 +711,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
697
711
  kendoButton
698
712
  class="k-signature-action k-signature-maximize"
699
713
  icon="hyperlink-open"
714
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
700
715
  fillMode="flat"
701
716
  [size]="size"
702
717
  (click)="onMaximize()"
@@ -708,6 +723,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
708
723
  kendoButton
709
724
  class="k-signature-action k-signature-minimize k-rotate-180"
710
725
  icon="hyperlink-open"
726
+ [svgIcon]="svgIcon('hyperlinkOpenIcon')"
711
727
  fillMode="flat"
712
728
  [size]="size"
713
729
  (click)="onMinimize()"
@@ -732,6 +748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
732
748
  kendoButton
733
749
  class="k-signature-action k-signature-clear"
734
750
  icon="close"
751
+ [svgIcon]="svgIcon('xIcon')"
735
752
  fillMode="flat"
736
753
  [size]="size"
737
754
  [attr.aria-label]="clearTitle"
@@ -6,6 +6,7 @@ import { CommonModule } from '@angular/common';
6
6
  import { NgModule } from '@angular/core';
7
7
  import { ButtonModule } from '@progress/kendo-angular-buttons';
8
8
  import { DialogsModule } from '@progress/kendo-angular-dialog';
9
+ import { IconsModule } from '@progress/kendo-angular-icons';
9
10
  import { LocalizedSignatureMessagesDirective, SignatureCustomMessagesComponent } from './signature/localization';
10
11
  import { SignatureComponent } from './signature/signature.component';
11
12
  import * as i0 from "@angular/core";
@@ -47,12 +48,14 @@ SignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
47
48
  SignatureCustomMessagesComponent,
48
49
  LocalizedSignatureMessagesDirective], imports: [ButtonModule,
49
50
  CommonModule,
50
- DialogsModule], exports: [SignatureComponent,
51
+ DialogsModule,
52
+ IconsModule], exports: [SignatureComponent,
51
53
  SignatureCustomMessagesComponent] });
52
54
  SignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, imports: [[
53
55
  ButtonModule,
54
56
  CommonModule,
55
- DialogsModule
57
+ DialogsModule,
58
+ IconsModule
56
59
  ]] });
57
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, decorators: [{
58
61
  type: NgModule,
@@ -69,7 +72,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
69
72
  imports: [
70
73
  ButtonModule,
71
74
  CommonModule,
72
- DialogsModule
75
+ DialogsModule,
76
+ IconsModule
73
77
  ]
74
78
  }]
75
79
  }] });