@progress/kendo-angular-inputs 19.1.1-develop.2 → 19.1.2-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.
- package/checkbox/checkbox.component.d.ts +15 -13
- package/checkbox/checkbox.directive.d.ts +8 -15
- package/checkbox/checked-state.d.ts +5 -1
- package/checkbox.module.d.ts +9 -20
- package/colorpicker/color-gradient.component.d.ts +26 -26
- package/colorpicker/color-input.component.d.ts +18 -18
- package/colorpicker/color-palette.component.d.ts +28 -29
- package/colorpicker/colorpicker.component.d.ts +53 -69
- package/colorpicker/events/active-color-click-event.d.ts +10 -14
- package/colorpicker/events/cancel-event.d.ts +1 -1
- package/colorpicker/events/close-event.d.ts +1 -1
- package/colorpicker/events/open-event.d.ts +1 -1
- package/colorpicker/flatcolorpicker.component.d.ts +26 -29
- package/colorpicker/localization/custom-messages.component.d.ts +9 -1
- package/colorpicker/localization/messages.d.ts +29 -29
- package/colorpicker/models/palette-settings.d.ts +0 -3
- package/colorpicker/models/tile-size.d.ts +6 -0
- package/colorpicker.module.d.ts +18 -2
- package/common/models/fillmode.d.ts +4 -1
- package/common/models/rounded.d.ts +8 -2
- package/common/models/size.d.ts +4 -1
- package/common/models/type.d.ts +3 -1
- package/common/radio-checkbox.base.d.ts +0 -7
- package/directives.d.ts +216 -18
- package/esm2022/checkbox/checkbox.component.mjs +15 -13
- package/esm2022/checkbox/checkbox.directive.mjs +8 -15
- package/esm2022/checkbox.module.mjs +9 -20
- package/esm2022/colorpicker/color-gradient.component.mjs +26 -26
- package/esm2022/colorpicker/color-input.component.mjs +21 -21
- package/esm2022/colorpicker/color-palette.component.mjs +28 -29
- package/esm2022/colorpicker/colorpicker.component.mjs +53 -69
- package/esm2022/colorpicker/events/active-color-click-event.mjs +10 -14
- package/esm2022/colorpicker/events/cancel-event.mjs +1 -1
- package/esm2022/colorpicker/events/close-event.mjs +1 -1
- package/esm2022/colorpicker/events/open-event.mjs +1 -1
- package/esm2022/colorpicker/flatcolorpicker.component.mjs +26 -29
- package/esm2022/colorpicker/localization/custom-messages.component.mjs +9 -1
- package/esm2022/colorpicker/localization/messages.mjs +29 -29
- package/esm2022/colorpicker.module.mjs +18 -2
- package/esm2022/common/radio-checkbox.base.mjs +0 -7
- package/esm2022/directives.mjs +216 -18
- package/esm2022/formfield/error.component.mjs +9 -6
- package/esm2022/formfield/formfield.component.mjs +24 -20
- package/esm2022/formfield/hint.component.mjs +8 -5
- package/esm2022/formfield.module.mjs +9 -20
- package/esm2022/index.mjs +1 -0
- package/esm2022/inputs.module.mjs +9 -21
- package/esm2022/maskedtextbox/maskedtextbox.component.mjs +46 -88
- package/esm2022/maskedtextbox.module.mjs +9 -20
- package/esm2022/numerictextbox/localization/custom-messages.component.mjs +13 -1
- package/esm2022/numerictextbox/localization/messages.mjs +2 -2
- package/esm2022/numerictextbox/numerictextbox.component.mjs +57 -70
- package/esm2022/numerictextbox.module.mjs +9 -20
- package/esm2022/otp.module.mjs +44 -0
- package/esm2022/otpinput/localization/custom-messages.component.mjs +3 -1
- package/esm2022/otpinput/otpinput.component.mjs +39 -42
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/radiobutton/radiobutton.component.mjs +15 -6
- package/esm2022/radiobutton/radiobutton.directive.mjs +6 -10
- package/esm2022/radiobutton.module.mjs +8 -18
- package/esm2022/rangeslider/localization/custom-messages.component.mjs +11 -1
- package/esm2022/rangeslider/rangeslider.component.mjs +12 -16
- package/esm2022/rangeslider.module.mjs +7 -18
- package/esm2022/rating/directives/rating-hovered-item.directive.mjs +11 -3
- package/esm2022/rating/directives/rating-item.directive.mjs +10 -3
- package/esm2022/rating/directives/rating-selected-item.directive.mjs +12 -3
- package/esm2022/rating/rating.component.mjs +23 -20
- package/esm2022/rating.module.mjs +7 -18
- package/esm2022/shared/input-separator.component.mjs +10 -15
- package/esm2022/shared/textarea.directive.mjs +5 -6
- package/esm2022/signature/events/close-event.mjs +1 -1
- package/esm2022/signature/localization/custom-messages.component.mjs +1 -1
- package/esm2022/signature/signature.component.mjs +52 -51
- package/esm2022/signature.module.mjs +7 -18
- package/esm2022/slider/localization/custom-messages.component.mjs +1 -1
- package/esm2022/slider/slider.component.mjs +18 -19
- package/esm2022/slider.module.mjs +7 -18
- package/esm2022/sliders-common/label-template.directive.mjs +9 -19
- package/esm2022/sliders-common/slider-base.mjs +47 -29
- package/esm2022/switch/events/blur-event.mjs +1 -1
- package/esm2022/switch/events/focus-event.mjs +1 -1
- package/esm2022/switch/localization/custom-messages.component.mjs +1 -1
- package/esm2022/switch/switch.component.mjs +32 -43
- package/esm2022/switch.module.mjs +7 -18
- package/esm2022/textarea/textarea-prefix.component.mjs +11 -13
- package/esm2022/textarea/textarea-suffix.component.mjs +11 -13
- package/esm2022/textarea/textarea.component.mjs +40 -103
- package/esm2022/textarea.module.mjs +7 -18
- package/esm2022/textbox/localization/custom-messages.component.mjs +1 -1
- package/esm2022/textbox/textbox-prefix.directive.mjs +9 -13
- package/esm2022/textbox/textbox-suffix.directive.mjs +10 -14
- package/esm2022/textbox/textbox.component.mjs +41 -112
- package/esm2022/textbox/textbox.directive.mjs +2 -2
- package/esm2022/textbox.module.mjs +7 -18
- package/fesm2022/progress-kendo-angular-inputs.mjs +1207 -1280
- package/formfield/error.component.d.ts +9 -6
- package/formfield/formfield.component.d.ts +24 -20
- package/formfield/hint.component.d.ts +8 -5
- package/formfield/models/message-align.d.ts +3 -1
- package/formfield/models/orientation.d.ts +3 -0
- package/formfield/models/show-options.d.ts +5 -7
- package/formfield.module.d.ts +9 -20
- package/index.d.ts +1 -0
- package/inputs.module.d.ts +9 -21
- package/maskedtextbox/maskedtextbox.component.d.ts +46 -88
- package/maskedtextbox.module.d.ts +9 -20
- package/numerictextbox/localization/custom-messages.component.d.ts +13 -1
- package/numerictextbox/localization/messages.d.ts +2 -2
- package/numerictextbox/numerictextbox.component.d.ts +57 -70
- package/numerictextbox.module.d.ts +9 -20
- package/otp.module.d.ts +32 -0
- package/otpinput/localization/custom-messages.component.d.ts +3 -1
- package/otpinput/models/otpinput-type.d.ts +2 -2
- package/otpinput/models/separator-icon.d.ts +8 -3
- package/otpinput/otpinput.component.d.ts +39 -42
- package/package.json +12 -12
- package/radiobutton/radiobutton.component.d.ts +15 -6
- package/radiobutton/radiobutton.directive.d.ts +6 -10
- package/radiobutton.module.d.ts +8 -18
- package/rangeslider/localization/custom-messages.component.d.ts +11 -1
- package/rangeslider/rangeslider-value.type.d.ts +2 -2
- package/rangeslider/rangeslider.component.d.ts +12 -16
- package/rangeslider.module.d.ts +7 -18
- package/rating/directives/rating-hovered-item.directive.d.ts +11 -3
- package/rating/directives/rating-item.directive.d.ts +10 -3
- package/rating/directives/rating-selected-item.directive.d.ts +12 -3
- package/rating/models/precision.d.ts +1 -2
- package/rating/models/selection.d.ts +1 -2
- package/rating/rating.component.d.ts +21 -18
- package/rating.module.d.ts +7 -18
- package/shared/input-separator.component.d.ts +10 -15
- package/shared/textarea.directive.d.ts +5 -6
- package/signature/events/close-event.d.ts +1 -1
- package/signature/localization/custom-messages.component.d.ts +1 -1
- package/signature/signature.component.d.ts +52 -51
- package/signature.module.d.ts +7 -18
- package/slider/localization/custom-messages.component.d.ts +1 -1
- package/slider/slider.component.d.ts +18 -19
- package/slider.module.d.ts +7 -18
- package/sliders-common/label-template.directive.d.ts +9 -19
- package/sliders-common/slider-base.d.ts +47 -29
- package/sliders-common/title-callback.d.ts +19 -3
- package/switch/events/blur-event.d.ts +1 -1
- package/switch/events/focus-event.d.ts +1 -1
- package/switch/localization/custom-messages.component.d.ts +1 -1
- package/switch/switch.component.d.ts +32 -43
- package/switch.module.d.ts +7 -18
- package/textarea/models/adornments-orientation.d.ts +3 -3
- package/textarea/models/flow.d.ts +3 -3
- package/textarea/models/resize.d.ts +6 -7
- package/textarea/textarea-prefix.component.d.ts +11 -13
- package/textarea/textarea-suffix.component.d.ts +11 -13
- package/textarea/textarea.component.d.ts +40 -103
- package/textarea.module.d.ts +7 -18
- package/textbox/localization/custom-messages.component.d.ts +1 -1
- package/textbox/textbox-prefix.directive.d.ts +9 -13
- package/textbox/textbox-suffix.directive.d.ts +10 -14
- package/textbox/textbox.component.d.ts +41 -112
- package/textbox/textbox.directive.d.ts +2 -2
- package/textbox.module.d.ts +7 -18
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { NgModule } from "@angular/core";
|
|
6
|
+
import { KENDO_OTPINPUT } from "./directives";
|
|
7
|
+
import { IconsService } from "@progress/kendo-angular-icons";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "./otpinput/otpinput.component";
|
|
10
|
+
import * as i2 from "./otpinput/localization/custom-messages.component";
|
|
11
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
12
|
+
/**
|
|
13
|
+
* Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the OTP Input component.
|
|
14
|
+
*
|
|
15
|
+
* Use this module to add the OTP Input component to your NgModule-based Angular application.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import { OTPInputModule } from '@progress/kendo-angular-inputs';
|
|
20
|
+
* import { NgModule } from '@angular/core';
|
|
21
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
22
|
+
* import { AppComponent } from './app.component';
|
|
23
|
+
*
|
|
24
|
+
* @NgModule({
|
|
25
|
+
* declarations: [AppComponent],
|
|
26
|
+
* imports: [BrowserModule, OTPInputModule],
|
|
27
|
+
* bootstrap: [AppComponent]
|
|
28
|
+
* })
|
|
29
|
+
* export class AppModule {}
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export class OTPInputModule {
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OTPInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: OTPInputModule, imports: [i1.OTPInputComponent, i2.OTPInputCustomMessagesComponent], exports: [i1.OTPInputComponent, i2.OTPInputCustomMessagesComponent] });
|
|
35
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OTPInputModule, providers: [IconsService], imports: [i1.OTPInputComponent] });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OTPInputModule, decorators: [{
|
|
38
|
+
type: NgModule,
|
|
39
|
+
args: [{
|
|
40
|
+
imports: [...KENDO_OTPINPUT],
|
|
41
|
+
exports: [...KENDO_OTPINPUT],
|
|
42
|
+
providers: [IconsService]
|
|
43
|
+
}]
|
|
44
|
+
}] });
|
|
@@ -8,7 +8,9 @@ import { OTPInputMessages } from './messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Provides custom messages for the OTP Input component.
|
|
12
|
+
*
|
|
13
|
+
* Use this component to override the default messages.
|
|
12
14
|
*/
|
|
13
15
|
export class OTPInputCustomMessagesComponent extends OTPInputMessages {
|
|
14
16
|
service;
|
|
@@ -19,6 +19,19 @@ const DEFAULT_SIZE = 'medium';
|
|
|
19
19
|
const DEFAULT_ROUNDED = 'medium';
|
|
20
20
|
const DEFAULT_FILL_MODE = 'solid';
|
|
21
21
|
const DEFAULT_OTPINPUT_LENGTH = 4;
|
|
22
|
+
/**
|
|
23
|
+
* Represents the Kendo UI OTP Input component for Angular.
|
|
24
|
+
*
|
|
25
|
+
* Use the OTP Input to enter one-time passwords or verification codes.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```html
|
|
29
|
+
* <kendo-otpinput type="number" [(ngModel)]="otpValue"></kendo-otpinput>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Supported children components are: {@link OTPInputCustomMessagesComponent}.
|
|
34
|
+
*/
|
|
22
35
|
export class OTPInputComponent {
|
|
23
36
|
hostElement;
|
|
24
37
|
cdr;
|
|
@@ -27,7 +40,7 @@ export class OTPInputComponent {
|
|
|
27
40
|
localizationService;
|
|
28
41
|
zone;
|
|
29
42
|
/**
|
|
30
|
-
*
|
|
43
|
+
* Sets the total number of input fields.
|
|
31
44
|
*
|
|
32
45
|
* @default 4
|
|
33
46
|
*/
|
|
@@ -42,46 +55,40 @@ export class OTPInputComponent {
|
|
|
42
55
|
return this._length;
|
|
43
56
|
}
|
|
44
57
|
/**
|
|
45
|
-
*
|
|
58
|
+
* Sets the input type.
|
|
46
59
|
*
|
|
47
|
-
* * The possible values are:
|
|
48
|
-
* * `text` (default)
|
|
49
|
-
* * `number`
|
|
50
|
-
* * `password`
|
|
51
60
|
*
|
|
52
61
|
* @default 'text'
|
|
53
62
|
*/
|
|
54
63
|
type = 'text';
|
|
55
64
|
/**
|
|
56
|
-
*
|
|
65
|
+
* Sets whether the input fields are separate or adjacent.
|
|
57
66
|
*
|
|
58
67
|
* @default true
|
|
59
68
|
*/
|
|
60
69
|
spacing = true;
|
|
61
70
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* > The configuration can only be applied when `groupLength` is set.
|
|
71
|
+
* Sets the separator between groups of input fields. You can use this only when `groupLength` is set.
|
|
65
72
|
*/
|
|
66
73
|
separator;
|
|
67
74
|
/**
|
|
68
|
-
*
|
|
75
|
+
* When `true`, disables the OTPInput.
|
|
69
76
|
*
|
|
70
77
|
* @default false
|
|
71
78
|
*/
|
|
72
79
|
disabled = false;
|
|
73
80
|
/**
|
|
74
|
-
*
|
|
81
|
+
* When `true`, sets the OTPInput to read-only mode.
|
|
75
82
|
*
|
|
76
83
|
* @default false
|
|
77
84
|
*/
|
|
78
85
|
readonly = false;
|
|
79
86
|
/**
|
|
80
|
-
*
|
|
87
|
+
* Sets the placeholder for the input fields.
|
|
81
88
|
*/
|
|
82
89
|
placeholder;
|
|
83
90
|
/**
|
|
84
|
-
*
|
|
91
|
+
* Sets the length of the groups. If you set a number, all groups have the same length. If you set an array, each group can have a different length.
|
|
85
92
|
*/
|
|
86
93
|
get groupLength() {
|
|
87
94
|
return this._groupLength;
|
|
@@ -110,7 +117,7 @@ export class OTPInputComponent {
|
|
|
110
117
|
this.populateSeparatorPositions();
|
|
111
118
|
}
|
|
112
119
|
/**
|
|
113
|
-
*
|
|
120
|
+
* Sets the value of the component. Unfilled input fields are represented with а space.
|
|
114
121
|
*/
|
|
115
122
|
get value() {
|
|
116
123
|
return this._value;
|
|
@@ -138,13 +145,9 @@ export class OTPInputComponent {
|
|
|
138
145
|
}
|
|
139
146
|
}
|
|
140
147
|
/**
|
|
141
|
-
*
|
|
148
|
+
* Sets the padding of the input fields.
|
|
142
149
|
*
|
|
143
|
-
*
|
|
144
|
-
* * `small`
|
|
145
|
-
* * `medium` (default)
|
|
146
|
-
* * `large`
|
|
147
|
-
* * `none`
|
|
150
|
+
* @default 'medium'
|
|
148
151
|
*/
|
|
149
152
|
set size(size) {
|
|
150
153
|
const newSize = size || DEFAULT_SIZE;
|
|
@@ -157,14 +160,9 @@ export class OTPInputComponent {
|
|
|
157
160
|
return this._size;
|
|
158
161
|
}
|
|
159
162
|
/**
|
|
160
|
-
*
|
|
163
|
+
* Sets the border radius of the OTP Input.
|
|
161
164
|
*
|
|
162
|
-
*
|
|
163
|
-
* * `small`
|
|
164
|
-
* * `medium` (default)
|
|
165
|
-
* * `large`
|
|
166
|
-
* * `full`
|
|
167
|
-
* * `none`
|
|
165
|
+
* @default 'medium'
|
|
168
166
|
*/
|
|
169
167
|
set rounded(rounded) {
|
|
170
168
|
this._rounded = rounded || DEFAULT_ROUNDED;
|
|
@@ -173,13 +171,9 @@ export class OTPInputComponent {
|
|
|
173
171
|
return this._rounded;
|
|
174
172
|
}
|
|
175
173
|
/**
|
|
176
|
-
*
|
|
174
|
+
* Sets the background and border styles of the OTP Input.
|
|
177
175
|
*
|
|
178
|
-
*
|
|
179
|
-
* * `flat`
|
|
180
|
-
* * `solid` (default)
|
|
181
|
-
* * `outline`
|
|
182
|
-
* * `none`
|
|
176
|
+
* @default 'solid'
|
|
183
177
|
*/
|
|
184
178
|
set fillMode(fillMode) {
|
|
185
179
|
const newFillMode = fillMode || DEFAULT_FILL_MODE;
|
|
@@ -190,7 +184,7 @@ export class OTPInputComponent {
|
|
|
190
184
|
return this._fillMode;
|
|
191
185
|
}
|
|
192
186
|
/**
|
|
193
|
-
* Sets the HTML attributes of the inner
|
|
187
|
+
* Sets the HTML attributes of the inner input element. You cannot change attributes that are required for the component to work.
|
|
194
188
|
*/
|
|
195
189
|
set inputAttributes(attributes) {
|
|
196
190
|
this._inputAttributes = attributes;
|
|
@@ -203,18 +197,17 @@ export class OTPInputComponent {
|
|
|
203
197
|
return this._inputAttributes;
|
|
204
198
|
}
|
|
205
199
|
/**
|
|
206
|
-
* Fires
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* might cause a mix-up with the built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
|
|
200
|
+
* Fires when the user changes the value.
|
|
201
|
+
*
|
|
202
|
+
* This event does not fire when you change the value programmatically or through form bindings.
|
|
210
203
|
*/
|
|
211
204
|
valueChange = new EventEmitter();
|
|
212
205
|
/**
|
|
213
|
-
* Fires
|
|
206
|
+
* Fires when the user focuses the OTP Input.
|
|
214
207
|
*/
|
|
215
208
|
onFocus = new EventEmitter();
|
|
216
209
|
/**
|
|
217
|
-
* Fires
|
|
210
|
+
* Fires when the user blurs the OTP Input.
|
|
218
211
|
*/
|
|
219
212
|
onBlur = new EventEmitter();
|
|
220
213
|
wrapperClass = true;
|
|
@@ -384,6 +377,8 @@ export class OTPInputComponent {
|
|
|
384
377
|
}
|
|
385
378
|
}
|
|
386
379
|
/**
|
|
380
|
+
* Returns `true` if the component has groups.
|
|
381
|
+
*
|
|
387
382
|
* @hidden
|
|
388
383
|
*/
|
|
389
384
|
get hasGroups() {
|
|
@@ -483,7 +478,9 @@ export class OTPInputComponent {
|
|
|
483
478
|
});
|
|
484
479
|
}
|
|
485
480
|
/**
|
|
486
|
-
* Focuses the OTP Input.
|
|
481
|
+
* Focuses the OTP Input at the specified index provided as an argument.
|
|
482
|
+
*
|
|
483
|
+
* @param index The index of the input to focus.
|
|
487
484
|
*/
|
|
488
485
|
focus(index) {
|
|
489
486
|
if (!this.inputFields || index < 0 || index >= this.length) {
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.1.
|
|
13
|
+
publishDate: 1749804176,
|
|
14
|
+
version: '19.1.2-develop.1',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -13,6 +13,18 @@ import { RadioCheckBoxBase } from '../common/radio-checkbox.base';
|
|
|
13
13
|
import { SharedInputEventsDirective } from '../shared/shared-events.directive';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
16
|
+
/**
|
|
17
|
+
* Represents the Kendo UI RadioButton component.
|
|
18
|
+
* Use this component to create a styled radio button in your Angular application.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-radiobutton
|
|
23
|
+
* [checked]="true"
|
|
24
|
+
* (checkedChange)="onCheckedChange($event)">
|
|
25
|
+
* </kendo-radiobutton>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
16
28
|
export class RadioButtonComponent extends RadioCheckBoxBase {
|
|
17
29
|
renderer;
|
|
18
30
|
hostElement;
|
|
@@ -29,12 +41,9 @@ export class RadioButtonComponent extends RadioCheckBoxBase {
|
|
|
29
41
|
*/
|
|
30
42
|
checked = false;
|
|
31
43
|
/**
|
|
32
|
-
* Fires
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* might cause a mix-up with the built-in mechanisms of the `ngModel` or `formControl` bindings.
|
|
36
|
-
*
|
|
37
|
-
* Used to provide a two-way binding for the `checked` property.
|
|
44
|
+
* Fires when the checked state changes.
|
|
45
|
+
* The event does not fire when you change the state through `ngModel` or `formControl` bindings.
|
|
46
|
+
* Use this event for two-way binding of the `checked` property.
|
|
38
47
|
*/
|
|
39
48
|
checkedChange = new EventEmitter();
|
|
40
49
|
subs = new Subscription();
|
|
@@ -9,11 +9,11 @@ import { packageMetadata } from '../package-metadata';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
const DEFAULT_SIZE = 'medium';
|
|
11
11
|
/**
|
|
12
|
-
* Represents the directive that renders the
|
|
13
|
-
*
|
|
12
|
+
* Represents the directive that renders the Kendo UI RadioButton input component.
|
|
13
|
+
* Place the directive on `input type="radio"` HTML elements.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* ```
|
|
16
|
+
* ```html
|
|
17
17
|
* <input type="radio" kendoRadioButton />
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
@@ -22,13 +22,9 @@ export class RadioButtonDirective {
|
|
|
22
22
|
hostElement;
|
|
23
23
|
kendoClass = true;
|
|
24
24
|
/**
|
|
25
|
-
* The size property
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* * `small`
|
|
29
|
-
* * `medium` (default)
|
|
30
|
-
* * `large`
|
|
31
|
-
* * `none`
|
|
25
|
+
* Specifies the `size` of the RadioButton. The `size` property changes the width and height of the RadioButton ([see example]({% slug appearance_radiobuttondirective %}#toc-size)).
|
|
26
|
+
*
|
|
27
|
+
* @default "medium"
|
|
32
28
|
*/
|
|
33
29
|
set size(size) {
|
|
34
30
|
const newSize = size ? size : DEFAULT_SIZE;
|
|
@@ -9,34 +9,24 @@ import * as i1 from "./radiobutton/radiobutton.component";
|
|
|
9
9
|
import * as i2 from "./radiobutton/radiobutton.directive";
|
|
10
10
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the RadioButton directive and RadioButton component.
|
|
13
|
+
*
|
|
14
|
+
* Use this module to add the RadioButton directive and component to your NgModule-based Angular application.
|
|
14
15
|
*
|
|
15
16
|
* @example
|
|
16
17
|
*
|
|
17
|
-
* ```
|
|
18
|
-
* // Import the RadioButton module
|
|
18
|
+
* ```typescript
|
|
19
19
|
* import { RadioButtonModule } from '@progress/kendo-angular-inputs';
|
|
20
|
-
*
|
|
21
|
-
* // The browser platform with a compiler
|
|
22
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
23
|
-
*
|
|
24
20
|
* import { NgModule } from '@angular/core';
|
|
25
|
-
*
|
|
26
|
-
* // Import the app component
|
|
21
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
27
22
|
* import { AppComponent } from './app.component';
|
|
28
23
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* imports: [BrowserModule, RadioButtonModule], // import RadioButton module
|
|
24
|
+
* @NgModule({
|
|
25
|
+
* declarations: [AppComponent],
|
|
26
|
+
* imports: [BrowserModule, RadioButtonModule],
|
|
33
27
|
* bootstrap: [AppComponent]
|
|
34
28
|
* })
|
|
35
29
|
* export class AppModule {}
|
|
36
|
-
*
|
|
37
|
-
* // Compile and launch the module
|
|
38
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
39
|
-
*
|
|
40
30
|
* ```
|
|
41
31
|
*/
|
|
42
32
|
export class RadioButtonModule {
|
|
@@ -8,7 +8,17 @@ import { RangeSliderMessages } from './messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Lets you override the default messages of the RangeSlider component.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-rangeslider-messages
|
|
17
|
+
* decreaseHandle="Decrease handle"
|
|
18
|
+
* increaseHandle="Increase handle"
|
|
19
|
+
* decreaseRange="Decrease range">
|
|
20
|
+
* </kendo-rangeslider-messages>
|
|
21
|
+
* ```
|
|
12
22
|
*/
|
|
13
23
|
export class RangeSliderCustomMessagesComponent extends RangeSliderMessages {
|
|
14
24
|
service;
|
|
@@ -20,7 +20,16 @@ import * as i0 from "@angular/core";
|
|
|
20
20
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
21
21
|
const PRESSED = 'k-pressed';
|
|
22
22
|
/**
|
|
23
|
-
* Represents the
|
|
23
|
+
* Represents the Kendo UI RangeSlider component for Angular.
|
|
24
|
+
* Use this component to let users select a range of values.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```html
|
|
28
|
+
* <kendo-rangeslider [value]="[10, 50]" [min]="0" [max]="100"></kendo-rangeslider>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Supported children components are: {@link RangeSliderCustomMessagesComponent}.
|
|
24
33
|
*/
|
|
25
34
|
export class RangeSliderComponent extends SliderBase {
|
|
26
35
|
localization;
|
|
@@ -31,7 +40,7 @@ export class RangeSliderComponent extends SliderBase {
|
|
|
31
40
|
hostElement;
|
|
32
41
|
/**
|
|
33
42
|
* Sets the range value of the RangeSlider.
|
|
34
|
-
*
|
|
43
|
+
* Use either `ngModel` or the `value` binding, but not both at the same time.
|
|
35
44
|
*/
|
|
36
45
|
value;
|
|
37
46
|
draghandleStart;
|
|
@@ -65,19 +74,6 @@ export class RangeSliderComponent extends SliderBase {
|
|
|
65
74
|
/**
|
|
66
75
|
* Focuses the RangeSlider.
|
|
67
76
|
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts-no-run
|
|
70
|
-
* _@Component({
|
|
71
|
-
* selector: 'my-app',
|
|
72
|
-
* template: `
|
|
73
|
-
* <div>
|
|
74
|
-
* <button class="k-button" (click)="slider.focus()">Focus</button>
|
|
75
|
-
* </div>
|
|
76
|
-
* <kendo-rangeslider #slider></kendo-rangeslider>
|
|
77
|
-
* `
|
|
78
|
-
* })
|
|
79
|
-
* class AppComponent { }
|
|
80
|
-
* ```
|
|
81
77
|
*/
|
|
82
78
|
focus() {
|
|
83
79
|
this.focusChangedProgrammatically = true;
|
|
@@ -85,7 +81,7 @@ export class RangeSliderComponent extends SliderBase {
|
|
|
85
81
|
this.focusChangedProgrammatically = false;
|
|
86
82
|
}
|
|
87
83
|
/**
|
|
88
|
-
*
|
|
84
|
+
* Removes focus from the RangeSlider.
|
|
89
85
|
*/
|
|
90
86
|
blur() {
|
|
91
87
|
this.focusChangedProgrammatically = true;
|
|
@@ -11,35 +11,24 @@ import * as i2 from "./rangeslider/localization/custom-messages.component";
|
|
|
11
11
|
import * as i3 from "./sliders-common/label-template.directive";
|
|
12
12
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the RangeSlider component.
|
|
15
|
+
*
|
|
16
|
+
* Use this module to add the RangeSlider component to your NgModule-based Angular application.
|
|
16
17
|
*
|
|
17
18
|
* @example
|
|
18
19
|
*
|
|
19
|
-
* ```
|
|
20
|
-
* // Import the Inputs module
|
|
20
|
+
* ```typescript
|
|
21
21
|
* import { RangeSliderModule } from '@progress/kendo-angular-inputs';
|
|
22
|
-
*
|
|
23
|
-
* // The browser platform with a compiler
|
|
24
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
25
22
|
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
26
|
-
*
|
|
27
23
|
* import { NgModule } from '@angular/core';
|
|
28
|
-
*
|
|
29
|
-
* // Import the app component
|
|
30
24
|
* import { AppComponent } from './app.component';
|
|
31
25
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* imports: [BrowserModule, BrowserAnimationsModule, RangeSliderModule], // import RangeSlider module
|
|
26
|
+
* @NgModule({
|
|
27
|
+
* declarations: [AppComponent],
|
|
28
|
+
* imports: [BrowserModule, BrowserAnimationsModule, RangeSliderModule],
|
|
36
29
|
* bootstrap: [AppComponent]
|
|
37
30
|
* })
|
|
38
31
|
* export class AppModule {}
|
|
39
|
-
*
|
|
40
|
-
* // Compile and launch the module
|
|
41
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
42
|
-
*
|
|
43
32
|
* ```
|
|
44
33
|
*/
|
|
45
34
|
export class RangeSliderModule {
|
|
@@ -5,10 +5,18 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Renders the hovered rating item content.
|
|
9
|
-
* with the `kendoRatingHoveredItemTemplate` directive inside the `<kendo-rating>` tag
|
|
10
|
-
*
|
|
8
|
+
* Renders the hovered rating item content.
|
|
9
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingHoveredItemTemplate` directive inside the `<kendo-rating>` tag ([see example](slug:templates_rating)).
|
|
10
|
+
*
|
|
11
11
|
* The index of the currently hovered item is available as an implicit context using the `let-index="index"` syntax.
|
|
12
|
+
* * @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <kendo-rating [value]="ratingValue">
|
|
15
|
+
* <ng-template kendoRatingHoveredItemTemplate let-index="index">
|
|
16
|
+
* <span>Hovered item: {{ index }}</span>
|
|
17
|
+
* </ng-template>
|
|
18
|
+
* </kendo-rating>
|
|
19
|
+
* ```
|
|
12
20
|
*/
|
|
13
21
|
export class RatingHoveredItemTemplateDirective {
|
|
14
22
|
templateRef;
|
|
@@ -5,10 +5,17 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Renders the rating item content.
|
|
9
|
-
* with the `kendoRatingItemTemplate` directive inside the `<kendo-rating>` tag
|
|
10
|
-
* [see example](slug:templates_rating).
|
|
8
|
+
* Renders the rating item content.
|
|
9
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingItemTemplate` directive inside the `<kendo-rating>` tag ([see example](slug:templates_rating)).
|
|
11
10
|
* The index of the current item is available as an implicit context using the `let-index="index"` syntax.
|
|
11
|
+
* * @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-rating [value]="ratingValue">
|
|
14
|
+
* <ng-template kendoRatingItemTemplate let-index="index">
|
|
15
|
+
* <span>Item: {{ index }}</span>
|
|
16
|
+
* </ng-template>
|
|
17
|
+
* </kendo-rating>
|
|
18
|
+
* ```
|
|
12
19
|
*/
|
|
13
20
|
export class RatingItemTemplateDirective {
|
|
14
21
|
templateRef;
|
|
@@ -5,10 +5,19 @@
|
|
|
5
5
|
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Renders the selected rating item content.
|
|
9
|
-
* with the `kendoRatingSelectedItemTemplate` directive inside the `<kendo-rating>` tag
|
|
10
|
-
*
|
|
8
|
+
* Renders the selected rating item content.
|
|
9
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingSelectedItemTemplate` directive inside the `<kendo-rating>` tag ([see example](slug:templates_rating)).
|
|
10
|
+
*
|
|
11
11
|
* The index of the currently selected item is available as an implicit context using the `let-index="index"` syntax.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-rating [value]="ratingValue">
|
|
16
|
+
* <ng-template kendoRatingSelectedItemTemplate let-index="index">
|
|
17
|
+
* <span>Selected item: {{ index }}</span>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-rating>
|
|
20
|
+
* ```
|
|
12
21
|
*/
|
|
13
22
|
export class RatingSelectedItemTemplateDirective {
|
|
14
23
|
templateRef;
|