@progress/kendo-angular-inputs 21.4.1 → 22.0.0-develop.1

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 (189) hide show
  1. package/colorpicker/localization/messages.d.ts +1 -1
  2. package/common/radio-checkbox.base.d.ts +1 -1
  3. package/fesm2022/progress-kendo-angular-inputs.mjs +321 -321
  4. package/numerictextbox/localization/messages.d.ts +1 -1
  5. package/otpinput/localization/messages.d.ts +1 -1
  6. package/package.json +17 -25
  7. package/rangeslider/localization/messages.d.ts +1 -1
  8. package/signature/localization/messages.d.ts +1 -1
  9. package/slider/localization/messages.d.ts +1 -1
  10. package/sliders-common/slider-base.d.ts +1 -1
  11. package/switch/localization/messages.d.ts +1 -1
  12. package/text-fields-common/text-fields-base.d.ts +1 -1
  13. package/textbox/localization/messages.d.ts +1 -1
  14. package/esm2022/checkbox/checkbox.component.mjs +0 -227
  15. package/esm2022/checkbox/checkbox.directive.mjs +0 -96
  16. package/esm2022/checkbox/checked-state.mjs +0 -5
  17. package/esm2022/checkbox.module.mjs +0 -42
  18. package/esm2022/colorpicker/adaptiveness/adaptive-close-button.component.mjs +0 -62
  19. package/esm2022/colorpicker/adaptiveness/adaptive-renderer.component.mjs +0 -219
  20. package/esm2022/colorpicker/color-contrast-svg.component.mjs +0 -108
  21. package/esm2022/colorpicker/color-gradient-numeric-label.directive.mjs +0 -37
  22. package/esm2022/colorpicker/color-gradient-text-label.directive.mjs +0 -34
  23. package/esm2022/colorpicker/color-gradient.component.mjs +0 -1110
  24. package/esm2022/colorpicker/color-input.component.mjs +0 -498
  25. package/esm2022/colorpicker/color-palette.component.mjs +0 -629
  26. package/esm2022/colorpicker/colorpicker.component.mjs +0 -1315
  27. package/esm2022/colorpicker/constants.mjs +0 -40
  28. package/esm2022/colorpicker/contrast-validation.component.mjs +0 -83
  29. package/esm2022/colorpicker/contrast.component.mjs +0 -114
  30. package/esm2022/colorpicker/events/active-color-click-event.mjs +0 -55
  31. package/esm2022/colorpicker/events/cancel-event.mjs +0 -18
  32. package/esm2022/colorpicker/events/close-event.mjs +0 -10
  33. package/esm2022/colorpicker/events/kendo-drag-event.mjs +0 -5
  34. package/esm2022/colorpicker/events/open-event.mjs +0 -10
  35. package/esm2022/colorpicker/events.mjs +0 -8
  36. package/esm2022/colorpicker/flatcolorpicker-actions.component.mjs +0 -112
  37. package/esm2022/colorpicker/flatcolorpicker-header.component.mjs +0 -244
  38. package/esm2022/colorpicker/flatcolorpicker.component.mjs +0 -942
  39. package/esm2022/colorpicker/localization/colorgradient-localization.service.mjs +0 -46
  40. package/esm2022/colorpicker/localization/colorpalette-localization.service.mjs +0 -46
  41. package/esm2022/colorpicker/localization/colorpicker-localization.service.mjs +0 -31
  42. package/esm2022/colorpicker/localization/custom-messages.component.mjs +0 -51
  43. package/esm2022/colorpicker/localization/flatcolorpicker-localization.service.mjs +0 -46
  44. package/esm2022/colorpicker/localization/localized-colorpicker-messages.directive.mjs +0 -39
  45. package/esm2022/colorpicker/localization/messages.mjs +0 -201
  46. package/esm2022/colorpicker/models/actions-layout.mjs +0 -5
  47. package/esm2022/colorpicker/models/adaptive-mode.mjs +0 -8
  48. package/esm2022/colorpicker/models/colorpicker-view.mjs +0 -5
  49. package/esm2022/colorpicker/models/gradient-settings.mjs +0 -5
  50. package/esm2022/colorpicker/models/hsva.mjs +0 -5
  51. package/esm2022/colorpicker/models/output-format.mjs +0 -5
  52. package/esm2022/colorpicker/models/palette-presets.mjs +0 -62
  53. package/esm2022/colorpicker/models/palette-settings.mjs +0 -5
  54. package/esm2022/colorpicker/models/popup-settings.mjs +0 -5
  55. package/esm2022/colorpicker/models/rgb.mjs +0 -5
  56. package/esm2022/colorpicker/models/rgba.mjs +0 -5
  57. package/esm2022/colorpicker/models/table-cell.mjs +0 -5
  58. package/esm2022/colorpicker/models/tile-size.mjs +0 -5
  59. package/esm2022/colorpicker/models.mjs +0 -16
  60. package/esm2022/colorpicker/services/color-palette.service.mjs +0 -65
  61. package/esm2022/colorpicker/services/flatcolorpicker.service.mjs +0 -39
  62. package/esm2022/colorpicker/utils/color-parser.mjs +0 -164
  63. package/esm2022/colorpicker/utils/contrast-curve.mjs +0 -85
  64. package/esm2022/colorpicker/utils.mjs +0 -6
  65. package/esm2022/colorpicker.module.mjs +0 -50
  66. package/esm2022/common/dom-utils.mjs +0 -36
  67. package/esm2022/common/formservice.service.mjs +0 -21
  68. package/esm2022/common/math.mjs +0 -65
  69. package/esm2022/common/models/fillmode.mjs +0 -5
  70. package/esm2022/common/models/gutters.mjs +0 -5
  71. package/esm2022/common/models/responsive-breakpoints.mjs +0 -5
  72. package/esm2022/common/models/rounded.mjs +0 -5
  73. package/esm2022/common/models/size.mjs +0 -5
  74. package/esm2022/common/models/styling-classes.mjs +0 -5
  75. package/esm2022/common/models/type.mjs +0 -5
  76. package/esm2022/common/models.mjs +0 -9
  77. package/esm2022/common/radio-checkbox.base.mjs +0 -295
  78. package/esm2022/common/utils.mjs +0 -88
  79. package/esm2022/directives.mjs +0 -430
  80. package/esm2022/form/form.component.mjs +0 -163
  81. package/esm2022/form/formseparator.component.mjs +0 -80
  82. package/esm2022/form/utils.mjs +0 -147
  83. package/esm2022/form.module.mjs +0 -46
  84. package/esm2022/formfield/error.component.mjs +0 -70
  85. package/esm2022/formfield/formfield.component.mjs +0 -353
  86. package/esm2022/formfield/hint.component.mjs +0 -65
  87. package/esm2022/formfield/models/message-align.mjs +0 -5
  88. package/esm2022/formfield/models/orientation.mjs +0 -5
  89. package/esm2022/formfield/models/show-options.mjs +0 -5
  90. package/esm2022/formfield.module.mjs +0 -43
  91. package/esm2022/formfieldset/formfieldset.component.mjs +0 -174
  92. package/esm2022/index.mjs +0 -91
  93. package/esm2022/inputs.module.mjs +0 -91
  94. package/esm2022/maskedtextbox/maskedtextbox.component.mjs +0 -876
  95. package/esm2022/maskedtextbox/masking.service.mjs +0 -189
  96. package/esm2022/maskedtextbox/parsing/combinators.mjs +0 -28
  97. package/esm2022/maskedtextbox/parsing/parsers.mjs +0 -148
  98. package/esm2022/maskedtextbox/parsing/result.mjs +0 -44
  99. package/esm2022/maskedtextbox/parsing/stream.mjs +0 -43
  100. package/esm2022/maskedtextbox.module.mjs +0 -43
  101. package/esm2022/numerictextbox/arrow-direction.mjs +0 -13
  102. package/esm2022/numerictextbox/constants.mjs +0 -28
  103. package/esm2022/numerictextbox/localization/custom-messages.component.mjs +0 -55
  104. package/esm2022/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs +0 -39
  105. package/esm2022/numerictextbox/localization/messages.mjs +0 -33
  106. package/esm2022/numerictextbox/numerictextbox.component.mjs +0 -1314
  107. package/esm2022/numerictextbox/utils.mjs +0 -92
  108. package/esm2022/numerictextbox.module.mjs +0 -46
  109. package/esm2022/otp.module.mjs +0 -44
  110. package/esm2022/otpinput/localization/custom-messages.component.mjs +0 -45
  111. package/esm2022/otpinput/localization/localized-textbox-messages.directive.mjs +0 -39
  112. package/esm2022/otpinput/localization/messages.mjs +0 -34
  113. package/esm2022/otpinput/models/otpinput-type.mjs +0 -5
  114. package/esm2022/otpinput/models/separator-icon.mjs +0 -5
  115. package/esm2022/otpinput/otpinput-separator.component.mjs +0 -93
  116. package/esm2022/otpinput/otpinput.component.mjs +0 -936
  117. package/esm2022/package-metadata.mjs +0 -16
  118. package/esm2022/progress-kendo-angular-inputs.mjs +0 -8
  119. package/esm2022/radiobutton/radiobutton.component.mjs +0 -212
  120. package/esm2022/radiobutton/radiobutton.directive.mjs +0 -81
  121. package/esm2022/radiobutton.module.mjs +0 -43
  122. package/esm2022/rangeslider/localization/custom-messages.component.mjs +0 -53
  123. package/esm2022/rangeslider/localization/localized-rangeslider-messages.directive.mjs +0 -39
  124. package/esm2022/rangeslider/localization/messages.mjs +0 -33
  125. package/esm2022/rangeslider/rangeslider-model.mjs +0 -53
  126. package/esm2022/rangeslider/rangeslider-value.type.mjs +0 -5
  127. package/esm2022/rangeslider/rangeslider.component.mjs +0 -625
  128. package/esm2022/rangeslider.module.mjs +0 -46
  129. package/esm2022/rating/directives/rating-hovered-item.directive.mjs +0 -35
  130. package/esm2022/rating/directives/rating-item.directive.mjs +0 -34
  131. package/esm2022/rating/directives/rating-selected-item.directive.mjs +0 -36
  132. package/esm2022/rating/models/precision.mjs +0 -5
  133. package/esm2022/rating/models/rating-item.interface.mjs +0 -5
  134. package/esm2022/rating/models/selection.mjs +0 -5
  135. package/esm2022/rating/rating.component.mjs +0 -754
  136. package/esm2022/rating.module.mjs +0 -46
  137. package/esm2022/shared/input-separator.component.mjs +0 -55
  138. package/esm2022/shared/input-spacer.component.mjs +0 -56
  139. package/esm2022/shared/shared-events.directive.mjs +0 -102
  140. package/esm2022/shared/utils.mjs +0 -13
  141. package/esm2022/signature/events/close-event.mjs +0 -10
  142. package/esm2022/signature/events/index.mjs +0 -6
  143. package/esm2022/signature/events/open-event.mjs +0 -10
  144. package/esm2022/signature/localization/custom-messages.component.mjs +0 -43
  145. package/esm2022/signature/localization/index.mjs +0 -7
  146. package/esm2022/signature/localization/localized-signature-messages.directive.mjs +0 -39
  147. package/esm2022/signature/localization/messages.mjs +0 -45
  148. package/esm2022/signature/signature.component.mjs +0 -981
  149. package/esm2022/signature.module.mjs +0 -47
  150. package/esm2022/slider/localization/custom-messages.component.mjs +0 -43
  151. package/esm2022/slider/localization/localized-slider-messages.directive.mjs +0 -39
  152. package/esm2022/slider/localization/messages.mjs +0 -39
  153. package/esm2022/slider/slider-model.mjs +0 -32
  154. package/esm2022/slider/slider.component.mjs +0 -671
  155. package/esm2022/slider.module.mjs +0 -48
  156. package/esm2022/sliders-common/label-template.directive.mjs +0 -37
  157. package/esm2022/sliders-common/slider-base.mjs +0 -300
  158. package/esm2022/sliders-common/slider-model.base.mjs +0 -118
  159. package/esm2022/sliders-common/slider-ticks.component.mjs +0 -147
  160. package/esm2022/sliders-common/sliders-util.mjs +0 -206
  161. package/esm2022/sliders-common/title-callback.mjs +0 -5
  162. package/esm2022/switch/events/blur-event.mjs +0 -13
  163. package/esm2022/switch/events/focus-event.mjs +0 -13
  164. package/esm2022/switch/localization/custom-messages.component.mjs +0 -43
  165. package/esm2022/switch/localization/localized-switch-messages.directive.mjs +0 -39
  166. package/esm2022/switch/localization/messages.mjs +0 -33
  167. package/esm2022/switch/switch.component.mjs +0 -585
  168. package/esm2022/switch.module.mjs +0 -44
  169. package/esm2022/text-fields-common/text-fields-base.mjs +0 -150
  170. package/esm2022/textarea/models/adornments-orientation.mjs +0 -5
  171. package/esm2022/textarea/models/flow.mjs +0 -5
  172. package/esm2022/textarea/models/resize.mjs +0 -5
  173. package/esm2022/textarea/models/textarea-settings.mjs +0 -5
  174. package/esm2022/textarea/textarea-prefix.component.mjs +0 -67
  175. package/esm2022/textarea/textarea-suffix.component.mjs +0 -67
  176. package/esm2022/textarea/textarea.component.mjs +0 -740
  177. package/esm2022/textarea/textarea.directive.mjs +0 -288
  178. package/esm2022/textarea.module.mjs +0 -46
  179. package/esm2022/textbox/localization/custom-messages.component.mjs +0 -43
  180. package/esm2022/textbox/localization/localized-textbox-messages.directive.mjs +0 -39
  181. package/esm2022/textbox/localization/messages.mjs +0 -27
  182. package/esm2022/textbox/models/icon-show-options.mjs +0 -5
  183. package/esm2022/textbox/textbox-prefix.directive.mjs +0 -50
  184. package/esm2022/textbox/textbox-suffix.directive.mjs +0 -49
  185. package/esm2022/textbox/textbox.component.mjs +0 -933
  186. package/esm2022/textbox/textbox.directive.mjs +0 -125
  187. package/esm2022/textbox.module.mjs +0 -51
  188. package/esm2022/validators/max.validator.mjs +0 -21
  189. package/esm2022/validators/min.validator.mjs +0 -21
@@ -1,40 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const DEFAULT_OUTPUT_FORMAT = 'rgba';
9
- /**
10
- * @hidden
11
- */
12
- export const DEFAULT_GRADIENT_BACKGROUND_COLOR = 'rgba(255, 0, 0, 1)';
13
- /**
14
- * @hidden
15
- */
16
- export const DRAGHANDLE_MOVE_SPEED = 5;
17
- /**
18
- * @hidden
19
- */
20
- export const DRAGHANDLE_MOVE_SPEED_SMALL_STEP = 2;
21
- /**
22
- * @hidden
23
- */
24
- export const AAA_RATIO = 7.0;
25
- /**
26
- * @hidden
27
- */
28
- export const AA_RATIO = 4.5;
29
- /**
30
- * @hidden
31
- */
32
- export const DEFAULT_PRESET = 'office';
33
- /**
34
- * @hidden
35
- */
36
- export const DEFAULT_ACCESSIBLE_PRESET = 'accessible';
37
- /**
38
- * @hidden
39
- */
40
- export const STEP_COUNT = 16;
@@ -1,83 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { AA_RATIO, AAA_RATIO } from './constants';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { Component, Input } from '@angular/core';
8
- import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
9
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "@progress/kendo-angular-l10n";
12
- /**
13
- * @hidden
14
- */
15
- export class ContrastValidationComponent {
16
- localization;
17
- type;
18
- pass;
19
- value;
20
- checkIcon = checkIcon;
21
- xCircleIcon = xCircleIcon;
22
- constructor(localization) {
23
- this.localization = localization;
24
- }
25
- get passMessage() {
26
- return this.localization.get('passContrast');
27
- }
28
- get failMessage() {
29
- return this.localization.get('failContrast');
30
- }
31
- get contrastText() {
32
- const ratio = this.type === 'AA' ? AA_RATIO : AAA_RATIO;
33
- return `${this.type}: ${ratio.toFixed(1)}`;
34
- }
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContrastValidationComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
36
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ContrastValidationComponent, isStandalone: true, selector: "[kendoContrastValidation]", inputs: { type: "type", pass: "pass", value: "value" }, ngImport: i0, template: `
37
- <span>{{contrastText}}</span>
38
- @if (value) {
39
- @if (pass) {
40
- <span class="k-contrast-validation k-text-success">
41
- {{passMessage}}
42
- <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
43
- </span>
44
- } @else {
45
- <span class="k-contrast-validation k-text-error">
46
- {{failMessage}}
47
- <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
48
- </span>
49
- }
50
- }
51
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContrastValidationComponent, decorators: [{
54
- type: Component,
55
- args: [{
56
- // eslint-disable-next-line @angular-eslint/component-selector
57
- selector: '[kendoContrastValidation]',
58
- template: `
59
- <span>{{contrastText}}</span>
60
- @if (value) {
61
- @if (pass) {
62
- <span class="k-contrast-validation k-text-success">
63
- {{passMessage}}
64
- <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
65
- </span>
66
- } @else {
67
- <span class="k-contrast-validation k-text-error">
68
- {{failMessage}}
69
- <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
70
- </span>
71
- }
72
- }
73
- `,
74
- standalone: true,
75
- imports: [IconWrapperComponent]
76
- }]
77
- }], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { type: [{
78
- type: Input
79
- }], pass: [{
80
- type: Input
81
- }], value: [{
82
- type: Input
83
- }] } });
@@ -1,114 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, Input } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { getContrastFromTwoRGBAs, getRGBA } from './utils';
8
- import { AA_RATIO, AAA_RATIO } from './constants';
9
- import { checkIcon, xCircleIcon } from '@progress/kendo-svg-icons';
10
- import { ContrastValidationComponent } from './contrast-validation.component';
11
- import { IconWrapperComponent } from '@progress/kendo-angular-icons';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "@progress/kendo-angular-l10n";
14
- /**
15
- * @hidden
16
- */
17
- export class ContrastComponent {
18
- localization;
19
- value;
20
- ratio;
21
- checkIcon = checkIcon;
22
- xCircleIcon = xCircleIcon;
23
- constructor(localization) {
24
- this.localization = localization;
25
- }
26
- get formatedRatio() {
27
- return this.contrastRatio.toFixed(2);
28
- }
29
- get contrastRatioText() {
30
- return `${this.localization.get('contrastRatio')}: ${this.value ? this.formatedRatio : 'n/a'}`;
31
- }
32
- get satisfiesAACondition() {
33
- return this.contrastRatio >= AA_RATIO;
34
- }
35
- get satisfiesAAACondition() {
36
- return this.contrastRatio >= AAA_RATIO;
37
- }
38
- get contrastRatio() {
39
- const contrast = getContrastFromTwoRGBAs(getRGBA(this.value), getRGBA(this.ratio));
40
- return contrast;
41
- }
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContrastComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
43
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ContrastComponent, isStandalone: true, selector: "[kendoContrastTool]", inputs: { value: "value", ratio: "ratio" }, ngImport: i0, template: `
44
- <div class="k-contrast-ratio">
45
- <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
46
- @if (value) {
47
- @if (satisfiesAACondition) {
48
- <span class="k-contrast-validation k-text-success">
49
- <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
50
- @if (satisfiesAAACondition) {
51
- <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
52
- }
53
- </span>
54
- } @else {
55
- <span class="k-contrast-validation k-text-error">
56
- <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
57
- </span>
58
- }
59
- }
60
- </div>
61
- <div kendoContrastValidation
62
- type="AA"
63
- [value]="value"
64
- [pass]="satisfiesAACondition">
65
- </div>
66
- <div kendoContrastValidation
67
- type="AAA"
68
- [value]="value"
69
- [pass]="satisfiesAAACondition">
70
- </div>
71
- `, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }] });
72
- }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ContrastComponent, decorators: [{
74
- type: Component,
75
- args: [{
76
- // eslint-disable-next-line @angular-eslint/component-selector
77
- selector: '[kendoContrastTool]',
78
- template: `
79
- <div class="k-contrast-ratio">
80
- <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
81
- @if (value) {
82
- @if (satisfiesAACondition) {
83
- <span class="k-contrast-validation k-text-success">
84
- <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
85
- @if (satisfiesAAACondition) {
86
- <kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
87
- }
88
- </span>
89
- } @else {
90
- <span class="k-contrast-validation k-text-error">
91
- <kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
92
- </span>
93
- }
94
- }
95
- </div>
96
- <div kendoContrastValidation
97
- type="AA"
98
- [value]="value"
99
- [pass]="satisfiesAACondition">
100
- </div>
101
- <div kendoContrastValidation
102
- type="AAA"
103
- [value]="value"
104
- [pass]="satisfiesAAACondition">
105
- </div>
106
- `,
107
- standalone: true,
108
- imports: [IconWrapperComponent, ContrastValidationComponent]
109
- }]
110
- }], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { value: [{
111
- type: Input
112
- }], ratio: [{
113
- type: Input
114
- }] } });
@@ -1,55 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Fires when you click the left side of the ColorPicker wrapper.
7
- * The event triggers whether you set a ColorPicker icon or not.
8
- *
9
- * Provides information about the current active color and lets you prevent the popup from opening.
10
- *
11
- * @example
12
- * ```typescript
13
- * @Component({
14
- * selector: 'my-app',
15
- * template: `
16
- * <kendo-colorpicker
17
- * [icon]="'edit-tools'"
18
- * [value]="'#900'"
19
- * (activeColorClick)="onColorClick($event)"
20
- * >
21
- * </kendo-colorpicker>
22
- * `
23
- * })
24
- * class AppComponent {
25
- * public onColorClick(event: ActiveColorClickEvent): void {
26
- * event.preventOpen();
27
- * }
28
- * }
29
- * ```
30
- */
31
- export class ActiveColorClickEvent {
32
- color;
33
- openPrevented = false;
34
- /**
35
- * @hidden
36
- * @param color Represents the current value of the ColorPicker.
37
- */
38
- constructor(color) {
39
- this.color = color;
40
- }
41
- /**
42
- * Prevents the popup from opening.
43
- */
44
- preventOpen() {
45
- this.openPrevented = true;
46
- }
47
- /**
48
- * Returns `true` if the popup opening is prevented by any of its subscribers.
49
- *
50
- * @returns Returns `true` if the open action was prevented. Otherwise, returns `false`.
51
- */
52
- isOpenPrevented() {
53
- return this.openPrevented;
54
- }
55
- }
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from "@progress/kendo-angular-common";
6
- /**
7
- * Provides the arguments for the `cancel` event of the ColorPicker and FlatColorPicker components.
8
- */
9
- export class ColorPickerCancelEvent extends PreventableEvent {
10
- /**
11
- * The DOM event that triggered the `cancel` event.
12
- */
13
- originalEvent;
14
- constructor(originalEvent) {
15
- super();
16
- this.originalEvent = originalEvent;
17
- }
18
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from "@progress/kendo-angular-common";
6
- /**
7
- * Provides the arguments for the `close` event of the ColorPicker component.
8
- */
9
- export class ColorPickerCloseEvent extends PreventableEvent {
10
- }
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PreventableEvent } from "@progress/kendo-angular-common";
6
- /**
7
- * Provides the arguments for the `open` event of the ColorPicker component.
8
- */
9
- export class ColorPickerOpenEvent extends PreventableEvent {
10
- }
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './events/cancel-event';
6
- export * from './events/close-event';
7
- export * from './events/open-event';
8
- export * from './events/active-color-click-event';
@@ -1,112 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, HostBinding, EventEmitter, Output, ElementRef, ViewChild, Input } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { ButtonComponent } from '@progress/kendo-angular-buttons';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@progress/kendo-angular-l10n";
10
- /**
11
- * @hidden
12
- */
13
- export class FlatColorPickerActionButtonsComponent {
14
- localizationService;
15
- hostClasses = true;
16
- innerTabIndex = -1;
17
- size;
18
- actionButtonClick = new EventEmitter();
19
- tabOut = new EventEmitter();
20
- firstButton;
21
- lastButton;
22
- constructor(localizationService) {
23
- this.localizationService = localizationService;
24
- }
25
- getText(text) {
26
- return this.localizationService.get(text);
27
- }
28
- onActionButtonClick(type, ev) {
29
- const args = {
30
- target: type,
31
- originalEvent: ev
32
- };
33
- this.actionButtonClick.emit(args);
34
- }
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FlatColorPickerActionButtonsComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
36
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FlatColorPickerActionButtonsComponent, isStandalone: true, selector: "[kendoFlatColorPickerActionButtons]", inputs: { innerTabIndex: "innerTabIndex", size: "size" }, outputs: { actionButtonClick: "actionButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-footer": "this.hostClasses", "class.k-actions": "this.hostClasses", "class.k-actions-horizontal": "this.hostClasses" } }, viewQueries: [{ propertyName: "firstButton", first: true, predicate: ["first"], descendants: true, read: ElementRef }, { propertyName: "lastButton", first: true, predicate: ["last"], descendants: true, read: ElementRef }], ngImport: i0, template: `
37
- <button #first
38
- kendoButton
39
- class="k-coloreditor-cancel"
40
- [size]="size"
41
- [attr.title]="getText('cancelButton')"
42
- (click)="onActionButtonClick('cancel', $event)"
43
- type="button"
44
- [tabindex]="innerTabIndex.toString()"
45
- >{{getText('cancelButton')}}</button>
46
- <button #last
47
- kendoButton
48
- themeColor="primary"
49
- [size]="size"
50
- class="k-coloreditor-apply"
51
- [attr.title]="getText('applyButton')"
52
- (click)="onActionButtonClick('apply', $event)"
53
- type="button"
54
- [tabindex]="innerTabIndex.toString()"
55
- (keydown.tab)="$event.preventDefault(); tabOut.emit();"
56
- >{{getText('applyButton')}}</button>
57
- `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
58
- }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FlatColorPickerActionButtonsComponent, decorators: [{
60
- type: Component,
61
- args: [{
62
- // eslint-disable-next-line @angular-eslint/component-selector
63
- selector: '[kendoFlatColorPickerActionButtons]',
64
- template: `
65
- <button #first
66
- kendoButton
67
- class="k-coloreditor-cancel"
68
- [size]="size"
69
- [attr.title]="getText('cancelButton')"
70
- (click)="onActionButtonClick('cancel', $event)"
71
- type="button"
72
- [tabindex]="innerTabIndex.toString()"
73
- >{{getText('cancelButton')}}</button>
74
- <button #last
75
- kendoButton
76
- themeColor="primary"
77
- [size]="size"
78
- class="k-coloreditor-apply"
79
- [attr.title]="getText('applyButton')"
80
- (click)="onActionButtonClick('apply', $event)"
81
- type="button"
82
- [tabindex]="innerTabIndex.toString()"
83
- (keydown.tab)="$event.preventDefault(); tabOut.emit();"
84
- >{{getText('applyButton')}}</button>
85
- `,
86
- standalone: true,
87
- imports: [ButtonComponent]
88
- }]
89
- }], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { hostClasses: [{
90
- type: HostBinding,
91
- args: ['class.k-coloreditor-footer']
92
- }, {
93
- type: HostBinding,
94
- args: ['class.k-actions']
95
- }, {
96
- type: HostBinding,
97
- args: ['class.k-actions-horizontal']
98
- }], innerTabIndex: [{
99
- type: Input
100
- }], size: [{
101
- type: Input
102
- }], actionButtonClick: [{
103
- type: Output
104
- }], tabOut: [{
105
- type: Output
106
- }], firstButton: [{
107
- type: ViewChild,
108
- args: ['first', { read: ElementRef }]
109
- }], lastButton: [{
110
- type: ViewChild,
111
- args: ['last', { read: ElementRef }]
112
- }] } });