@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,219 +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, Output, EventEmitter, TemplateRef, ViewChild } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { checkIcon } from '@progress/kendo-svg-icons';
8
- import { ActionSheetComponent, ActionSheetTemplateDirective } from '@progress/kendo-angular-navigation';
9
- import { NgTemplateOutlet } from '@angular/common';
10
- import { ButtonComponent } from '@progress/kendo-angular-buttons';
11
- import { TextBoxComponent } from '../../textbox/textbox.component';
12
- import { animationDuration } from '../models/adaptive-mode';
13
- import { AdaptiveCloseButtonComponent } from './adaptive-close-button.component';
14
- import { AdaptiveService } from '@progress/kendo-angular-utils';
15
- import * as i0 from "@angular/core";
16
- import * as i1 from "@progress/kendo-angular-l10n";
17
- import * as i2 from "@progress/kendo-angular-utils";
18
- /**
19
- * @hidden
20
- */
21
- export class AdaptiveRendererComponent {
22
- localization;
23
- adaptiveService;
24
- title;
25
- subtitle;
26
- actionSheetTemplate;
27
- isActionSheetExpanded;
28
- preview;
29
- actionSheetClose = new EventEmitter();
30
- onExpand = new EventEmitter();
31
- onCollapse = new EventEmitter();
32
- onApply = new EventEmitter();
33
- onCancel = new EventEmitter();
34
- actionSheet;
35
- actionSheetSearchBar;
36
- cancelButton;
37
- applyButton;
38
- constructor(localization, adaptiveService) {
39
- this.localization = localization;
40
- this.adaptiveService = adaptiveService;
41
- }
42
- animationDuration = animationDuration;
43
- checkIcon = checkIcon;
44
- messageFor(key) {
45
- return this.localization.get(key);
46
- }
47
- get windowSize() {
48
- return this.adaptiveService.size;
49
- }
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdaptiveRendererComponent, deps: [{ token: i1.LocalizationService }, { token: i2.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
51
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AdaptiveRendererComponent, isStandalone: true, selector: "kendo-adaptive-renderer", inputs: { title: "title", subtitle: "subtitle", actionSheetTemplate: "actionSheetTemplate", isActionSheetExpanded: "isActionSheetExpanded", preview: "preview" }, outputs: { actionSheetClose: "actionSheetClose", onExpand: "onExpand", onCollapse: "onCollapse", onApply: "onApply", onCancel: "onCancel" }, viewQueries: [{ propertyName: "actionSheet", first: true, predicate: ActionSheetComponent, descendants: true }, { propertyName: "actionSheetSearchBar", first: true, predicate: ["actionSheetSearchBar"], descendants: true }, { propertyName: "cancelButton", first: true, predicate: ["cancel"], descendants: true }, { propertyName: "applyButton", first: true, predicate: ["apply"], descendants: true }], ngImport: i0, template: `
52
- <kendo-actionsheet
53
- #actionSheet
54
- [animation]="{ duration: animationDuration }"
55
- [expanded]="isActionSheetExpanded"
56
- [cssClass]="{
57
- 'k-adaptive-actionsheet': true,
58
- 'k-actionsheet-fullscreen': windowSize === 'small',
59
- 'k-actionsheet-bottom': windowSize === 'medium'
60
- }"
61
- [cssStyle]="{
62
- height: windowSize === 'small' ? '100vh' : '60vh'
63
- }"
64
- (overlayClick)="actionSheetClose.emit()"
65
- (expand)="onExpand.emit()"
66
- (collapse)="onCollapse.emit()"
67
- >
68
- <ng-template kendoActionSheetTemplate>
69
- <div class="k-actionsheet-titlebar">
70
- <div class="k-actionsheet-titlebar-group">
71
- <div class="k-actionsheet-title">
72
- <div class="k-text-center">{{ title || messageFor('adaptiveTitle') }}</div>
73
- @if (subtitle) {
74
- <div class="k-actionsheet-subtitle k-text-center">{{ subtitle }}</div>
75
- }
76
- </div>
77
- <div class="k-actionsheet-actions">
78
- <kendo-adaptive-close-button
79
- icon="check"
80
- color="primary"
81
- [title]="messageFor('adaptiveCloseButtonTitle')"
82
- [svgIcon]="checkIcon"
83
- (close)="actionSheetClose.emit($event)">
84
- </kendo-adaptive-close-button>
85
- </div>
86
- </div>
87
- </div>
88
- <div class="k-actionsheet-content">
89
- <ng-container *ngTemplateOutlet="actionSheetTemplate"></ng-container>
90
- </div>
91
- @if (preview) {
92
- <div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
93
- <button
94
- #cancel
95
- kendoButton
96
- size="large"
97
- (click)="onCancel.emit($event)"
98
- [title]="messageFor('cancelButton')">
99
- {{messageFor('cancelButton')}}
100
- </button>
101
- <button
102
- #apply
103
- kendoButton
104
- size="large"
105
- themeColor="primary"
106
- (click)="onApply.emit()"
107
- [title]="messageFor('applyButton')">
108
- {{messageFor('applyButton')}}
109
- </button>
110
- </div>
111
- }
112
- </ng-template>
113
- </kendo-actionsheet>
114
- `, isInline: true, dependencies: [{ kind: "component", type: ActionSheetComponent, selector: "kendo-actionsheet", inputs: ["actions", "actionsLayout", "overlayClickClose", "title", "subtitle", "items", "cssClass", "cssStyle", "animation", "expanded", "titleId", "initialFocus"], outputs: ["expandedChange", "action", "expand", "collapse", "itemClick", "overlayClick"], exportAs: ["kendoActionSheet"] }, { kind: "directive", type: ActionSheetTemplateDirective, selector: "[kendoActionSheetTemplate]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AdaptiveCloseButtonComponent, selector: "kendo-adaptive-close-button", inputs: ["title", "icon", "svgIcon", "color"], outputs: ["close"] }] });
115
- }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AdaptiveRendererComponent, decorators: [{
117
- type: Component,
118
- args: [{
119
- selector: 'kendo-adaptive-renderer',
120
- template: `
121
- <kendo-actionsheet
122
- #actionSheet
123
- [animation]="{ duration: animationDuration }"
124
- [expanded]="isActionSheetExpanded"
125
- [cssClass]="{
126
- 'k-adaptive-actionsheet': true,
127
- 'k-actionsheet-fullscreen': windowSize === 'small',
128
- 'k-actionsheet-bottom': windowSize === 'medium'
129
- }"
130
- [cssStyle]="{
131
- height: windowSize === 'small' ? '100vh' : '60vh'
132
- }"
133
- (overlayClick)="actionSheetClose.emit()"
134
- (expand)="onExpand.emit()"
135
- (collapse)="onCollapse.emit()"
136
- >
137
- <ng-template kendoActionSheetTemplate>
138
- <div class="k-actionsheet-titlebar">
139
- <div class="k-actionsheet-titlebar-group">
140
- <div class="k-actionsheet-title">
141
- <div class="k-text-center">{{ title || messageFor('adaptiveTitle') }}</div>
142
- @if (subtitle) {
143
- <div class="k-actionsheet-subtitle k-text-center">{{ subtitle }}</div>
144
- }
145
- </div>
146
- <div class="k-actionsheet-actions">
147
- <kendo-adaptive-close-button
148
- icon="check"
149
- color="primary"
150
- [title]="messageFor('adaptiveCloseButtonTitle')"
151
- [svgIcon]="checkIcon"
152
- (close)="actionSheetClose.emit($event)">
153
- </kendo-adaptive-close-button>
154
- </div>
155
- </div>
156
- </div>
157
- <div class="k-actionsheet-content">
158
- <ng-container *ngTemplateOutlet="actionSheetTemplate"></ng-container>
159
- </div>
160
- @if (preview) {
161
- <div class="k-actions k-actions-stretched k-actions-horizontal k-actionsheet-footer">
162
- <button
163
- #cancel
164
- kendoButton
165
- size="large"
166
- (click)="onCancel.emit($event)"
167
- [title]="messageFor('cancelButton')">
168
- {{messageFor('cancelButton')}}
169
- </button>
170
- <button
171
- #apply
172
- kendoButton
173
- size="large"
174
- themeColor="primary"
175
- (click)="onApply.emit()"
176
- [title]="messageFor('applyButton')">
177
- {{messageFor('applyButton')}}
178
- </button>
179
- </div>
180
- }
181
- </ng-template>
182
- </kendo-actionsheet>
183
- `,
184
- standalone: true,
185
- imports: [ActionSheetComponent, ActionSheetTemplateDirective, ButtonComponent, NgTemplateOutlet, AdaptiveCloseButtonComponent]
186
- }]
187
- }], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.AdaptiveService }], propDecorators: { title: [{
188
- type: Input
189
- }], subtitle: [{
190
- type: Input
191
- }], actionSheetTemplate: [{
192
- type: Input
193
- }], isActionSheetExpanded: [{
194
- type: Input
195
- }], preview: [{
196
- type: Input
197
- }], actionSheetClose: [{
198
- type: Output
199
- }], onExpand: [{
200
- type: Output
201
- }], onCollapse: [{
202
- type: Output
203
- }], onApply: [{
204
- type: Output
205
- }], onCancel: [{
206
- type: Output
207
- }], actionSheet: [{
208
- type: ViewChild,
209
- args: [ActionSheetComponent]
210
- }], actionSheetSearchBar: [{
211
- type: ViewChild,
212
- args: ['actionSheetSearchBar']
213
- }], cancelButton: [{
214
- type: ViewChild,
215
- args: ['cancel']
216
- }], applyButton: [{
217
- type: ViewChild,
218
- args: ['apply']
219
- }] } });
@@ -1,108 +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, Input } from '@angular/core';
6
- import { BehaviorSubject } from 'rxjs';
7
- import { isPresent } from '../common/utils';
8
- import { AA_RATIO, STEP_COUNT, AAA_RATIO } from './constants';
9
- import { bezierCommand, getContrastFromTwoRGBAs, getRGBA, getColorFromHSV, svgPath, controlPoint, line } from './utils';
10
- import { isDocumentAvailable } from '@progress/kendo-angular-common';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * @hidden
14
- */
15
- export class ColorContrastSvgComponent {
16
- hostClass = true;
17
- wrapper;
18
- hsva;
19
- backgroundColor;
20
- paths;
21
- oldHsva;
22
- oldH;
23
- oldA;
24
- metrics;
25
- ngAfterViewInit() {
26
- if (!isDocumentAvailable()) {
27
- return;
28
- }
29
- this.metrics = this.wrapper.getBoundingClientRect();
30
- this.oldA = this.hsva.value.a;
31
- this.oldH = this.hsva.value.h;
32
- this.hsva.subscribe((value) => {
33
- if (value.h !== this.oldH || value.a !== this.oldA) {
34
- this.oldH = value.h;
35
- this.oldA = value.a;
36
- this.setPaths();
37
- }
38
- });
39
- }
40
- ngOnChanges(changes) {
41
- if (isPresent(changes['backgroundColor']) && this.metrics) {
42
- this.setPaths();
43
- }
44
- }
45
- setPaths() {
46
- const bezierCommandCalc = bezierCommand(controlPoint(line));
47
- this.paths = [svgPath(this.getPaths(AA_RATIO, STEP_COUNT), bezierCommandCalc),
48
- svgPath(this.getPaths(AA_RATIO, STEP_COUNT, true), bezierCommandCalc),
49
- svgPath(this.getPaths(AAA_RATIO, STEP_COUNT), bezierCommandCalc),
50
- svgPath(this.getPaths(AAA_RATIO, STEP_COUNT, true), bezierCommandCalc)];
51
- }
52
- findValue(contrast, saturation, low, high, comparer) {
53
- const mid = (low + high) / 2;
54
- const hsva = { ...this.hsva.value, s: saturation / this.metrics.width, v: 1 - mid / this.metrics.height };
55
- const currentContrast = getContrastFromTwoRGBAs(getRGBA(getColorFromHSV(hsva)), getRGBA(this.backgroundColor || ''));
56
- if (low + 0.5 > high) {
57
- if (currentContrast < contrast + 1 && currentContrast > contrast - 1) {
58
- return mid;
59
- }
60
- else {
61
- return null;
62
- }
63
- }
64
- if (comparer(currentContrast, contrast)) {
65
- return this.findValue(contrast, saturation, low, high - (high - low) / 2, comparer);
66
- }
67
- return this.findValue(contrast, saturation, low + (high - low) / 2, high, comparer);
68
- }
69
- getPaths(contrast, stepCount, reversed = false) {
70
- const points = [];
71
- for (let i = 0; i <= this.metrics.width; i += this.metrics.width / stepCount) {
72
- const value = this.findValue(contrast, i, 0, this.metrics.height, reversed ? ((a, b) => a < b) : ((a, b) => a > b));
73
- if (value !== null) {
74
- points.push([i, value]);
75
- }
76
- }
77
- return points;
78
- }
79
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorContrastSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
80
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColorContrastSvgComponent, isStandalone: true, selector: "[kendoColorContrastSvg]", inputs: { wrapper: "wrapper", hsva: "hsva", backgroundColor: "backgroundColor" }, host: { properties: { "class.k-color-contrast-svg": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
81
- @for (path of paths; track path) {
82
- <svg:path [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>
83
- }
84
- `, isInline: true });
85
- }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColorContrastSvgComponent, decorators: [{
87
- type: Component,
88
- args: [{
89
- // eslint-disable-next-line @angular-eslint/component-selector
90
- selector: '[kendoColorContrastSvg]',
91
- template: `
92
- @for (path of paths; track path) {
93
- <svg:path [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>
94
- }
95
- `,
96
- standalone: true,
97
- imports: []
98
- }]
99
- }], propDecorators: { hostClass: [{
100
- type: HostBinding,
101
- args: ['class.k-color-contrast-svg']
102
- }], wrapper: [{
103
- type: Input
104
- }], hsva: [{
105
- type: Input
106
- }], backgroundColor: [{
107
- type: Input
108
- }] } });
@@ -1,37 +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 { Directive, Input } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { NumericTextBoxComponent } from './../numerictextbox/numerictextbox.component';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "./../numerictextbox/numerictextbox.component";
10
- /**
11
- * @hidden
12
- */
13
- export class NumericLabelDirective {
14
- host;
15
- kendoAdditionalNumericLabel;
16
- localizationService;
17
- constructor(host) {
18
- this.host = host;
19
- }
20
- ngOnInit() {
21
- const localizationToken = `${this.kendoAdditionalNumericLabel}ChannelLabel`;
22
- this.host.numericInput.nativeElement.setAttribute('aria-label', this.localizationService.get(localizationToken));
23
- }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericLabelDirective, deps: [{ token: i1.NumericTextBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
25
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: NumericLabelDirective, isStandalone: true, selector: "[kendoAdditionalNumericLabel]", inputs: { kendoAdditionalNumericLabel: "kendoAdditionalNumericLabel", localizationService: "localizationService" }, ngImport: i0 });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericLabelDirective, decorators: [{
28
- type: Directive,
29
- args: [{
30
- selector: '[kendoAdditionalNumericLabel]',
31
- standalone: true
32
- }]
33
- }], ctorParameters: () => [{ type: i1.NumericTextBoxComponent }], propDecorators: { kendoAdditionalNumericLabel: [{
34
- type: Input
35
- }], localizationService: [{
36
- type: Input
37
- }] } });
@@ -1,34 +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 { Directive, Input, Renderer2 } from '@angular/core';
6
- import { TextBoxComponent } from '../textbox/textbox.component';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "../textbox/textbox.component";
9
- /**
10
- * @hidden
11
- */
12
- export class TextLabelDirective {
13
- textBox;
14
- renderer;
15
- focusableId;
16
- constructor(textBox, renderer) {
17
- this.textBox = textBox;
18
- this.renderer = renderer;
19
- }
20
- ngOnInit() {
21
- this.renderer.setAttribute(this.textBox.input.nativeElement, 'id', this.focusableId);
22
- }
23
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TextLabelDirective, deps: [{ token: i1.TextBoxComponent }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
24
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: TextLabelDirective, isStandalone: true, selector: "[kendoTextLabel]", inputs: { focusableId: "focusableId" }, ngImport: i0 });
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TextLabelDirective, decorators: [{
27
- type: Directive,
28
- args: [{
29
- selector: '[kendoTextLabel]',
30
- standalone: true
31
- }]
32
- }], ctorParameters: () => [{ type: i1.TextBoxComponent }, { type: i0.Renderer2 }], propDecorators: { focusableId: [{
33
- type: Input
34
- }] } });