@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
|
@@ -5,27 +5,17 @@
|
|
|
5
5
|
import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Represents the template for
|
|
9
|
-
* To define
|
|
10
|
-
* the `<kendo-slider>` tag. The template context
|
|
8
|
+
* Represents the template for Slider labels.
|
|
9
|
+
* To define a labels template, nest an `<ng-template>` tag with the `kendoSliderLabelTemplate` directive inside
|
|
10
|
+
* the `<kendo-slider>` tag. The template context provides the `value`.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* <ng-template kendoSliderLabelTemplate let-value="value">
|
|
20
|
-
* <b>{{value}}</b>
|
|
21
|
-
* </ng-template>
|
|
22
|
-
* </kendo-slider>
|
|
23
|
-
* `
|
|
24
|
-
* })
|
|
25
|
-
*
|
|
26
|
-
* class AppComponent {
|
|
27
|
-
* }
|
|
28
|
-
*
|
|
13
|
+
* ```html
|
|
14
|
+
* <kendo-slider [largeStep]="2">
|
|
15
|
+
* <ng-template kendoSliderLabelTemplate let-value="value">
|
|
16
|
+
* <p>{{ value }}</p>
|
|
17
|
+
* </ng-template>
|
|
18
|
+
* </kendo-slider>
|
|
29
19
|
* ```
|
|
30
20
|
*/
|
|
31
21
|
export class LabelTemplateDirective {
|
|
@@ -24,77 +24,95 @@ export class SliderBase {
|
|
|
24
24
|
changeDetector;
|
|
25
25
|
hostElement;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* for each tick is its Slider value.
|
|
29
|
-
*
|
|
27
|
+
* Sets the title for the ticks.
|
|
28
|
+
* The default title for each tick is its Slider value.
|
|
29
|
+
* If you use a callback function, the function receives the component value and returns a string for the new title [see example]({% slug ticks_slider %}#toc-titles).
|
|
30
30
|
*/
|
|
31
31
|
title = identity;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Sets the location of the tick marks in the Slider [see example]({% slug ticks_slider %}#toc-placement).
|
|
34
34
|
*
|
|
35
|
-
* The
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
35
|
+
* The options are:
|
|
36
|
+
* - `before` – Shows tick marks above a horizontal track or left of a vertical track.
|
|
37
|
+
* - `after` – Shows tick marks below a horizontal track or right of a vertical track.
|
|
38
|
+
* - `both` – Shows tick marks on both sides of the track.
|
|
39
|
+
* - `none` – Hides tick marks and removes them from the DOM.
|
|
40
|
+
*
|
|
41
|
+
* @default 'both'
|
|
40
42
|
*/
|
|
41
43
|
tickPlacement = 'both';
|
|
42
44
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
+
* When `true`. renders a vertical Slider [see example]({% slug orientation_slider %}).
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
45
48
|
*/
|
|
46
49
|
vertical = false;
|
|
47
50
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
51
|
+
* Sets the minimum value of the Slider.
|
|
52
|
+
* Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
|
|
53
|
+
*
|
|
54
|
+
* @default 0
|
|
50
55
|
*/
|
|
51
56
|
min = 0;
|
|
52
57
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
58
|
+
* Sets the maximum value of the Slider.
|
|
59
|
+
* Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
|
|
60
|
+
*
|
|
61
|
+
* @default 10
|
|
55
62
|
*/
|
|
56
63
|
max = 10;
|
|
57
64
|
/**
|
|
58
|
-
*
|
|
59
|
-
* Accepts positive values
|
|
65
|
+
* Sets the step value of the Slider.
|
|
66
|
+
* Accepts only positive values.
|
|
67
|
+
* Can be an integer or a floating-point number [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
|
|
68
|
+
*
|
|
69
|
+
* @default 1
|
|
60
70
|
*/
|
|
61
71
|
smallStep = 1;
|
|
62
72
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
73
|
+
* Sets every n<sup>th</sup> tick as large and shows a label for it [see example]({% slug predefinedsteps_slider %}#toc-large-steps).
|
|
74
|
+
*
|
|
75
|
+
* @default null
|
|
66
76
|
*/
|
|
67
77
|
largeStep = null;
|
|
68
78
|
/**
|
|
69
|
-
* Sets the width between
|
|
70
|
-
*
|
|
71
|
-
*
|
|
79
|
+
* Sets the width between two ticks along the track, in pixels.
|
|
80
|
+
* If you do not set `fixedTickWidth`, the Slider adjusts the tick width automatically [see example]({% slug ticks_slider %}#toc-width).
|
|
81
|
+
*
|
|
72
82
|
*/
|
|
73
83
|
fixedTickWidth;
|
|
74
84
|
/**
|
|
75
|
-
*
|
|
85
|
+
* When `true`, disables the Slider.
|
|
86
|
+
* To disable the component in reactive forms, see [Forms Support](slug:formssupport_slider#toc-managing-the-slider-disabled-state-in-reactive-forms) [see example]({% slug disabledstate_slider %}).
|
|
87
|
+
*
|
|
88
|
+
* @default false
|
|
76
89
|
*/
|
|
77
90
|
disabled = false;
|
|
78
91
|
/**
|
|
79
|
-
*
|
|
92
|
+
* When `true`, sets the Slider to read-only [see example]({% slug readonly_slider %}).
|
|
80
93
|
*
|
|
81
94
|
* @default false
|
|
82
95
|
*/
|
|
83
96
|
readonly = false;
|
|
84
97
|
/**
|
|
85
|
-
*
|
|
98
|
+
* Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Slider.
|
|
99
|
+
*
|
|
100
|
+
* @default 0
|
|
86
101
|
*/
|
|
87
102
|
tabindex = 0;
|
|
88
103
|
/**
|
|
89
|
-
* Fires
|
|
104
|
+
* Fires when the user focuses the component.
|
|
105
|
+
*
|
|
90
106
|
*/
|
|
91
107
|
onFocus = new EventEmitter();
|
|
92
108
|
/**
|
|
93
|
-
* Fires
|
|
109
|
+
* Fires when the component is blurred.
|
|
110
|
+
*
|
|
94
111
|
*/
|
|
95
112
|
onBlur = new EventEmitter();
|
|
96
113
|
/**
|
|
97
|
-
* Fires
|
|
114
|
+
* Fires when the user selects a new value.
|
|
115
|
+
*
|
|
98
116
|
*/
|
|
99
117
|
valueChange = new EventEmitter();
|
|
100
118
|
direction;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Provides arguments for the `blur` event of the Switch component.
|
|
7
7
|
*/
|
|
8
8
|
export class SwitchBlurEvent {
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Provides arguments for the `focus` event of the Switch component.
|
|
7
7
|
*/
|
|
8
8
|
export class SwitchFocusEvent {
|
|
9
9
|
/**
|
|
@@ -8,7 +8,7 @@ import { Messages } from './messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Overrides the default component messages with custom component messages.
|
|
12
12
|
*/
|
|
13
13
|
export class SwitchCustomMessagesComponent extends Messages {
|
|
14
14
|
service;
|
|
@@ -19,6 +19,14 @@ const DEFAULT_THUMB_ROUNDED = 'full';
|
|
|
19
19
|
const DEFAULT_TRACK_ROUNDED = 'full';
|
|
20
20
|
/**
|
|
21
21
|
* Represents the [Kendo UI Switch component for Angular]({% slug overview_switch %}).
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```html
|
|
25
|
+
* <kendo-switch [(ngModel)]="checked"></kendo-switch>`
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Supported children components are: {@link SwitchCustomMessagesComponent}.
|
|
22
30
|
*/
|
|
23
31
|
export class SwitchComponent {
|
|
24
32
|
renderer;
|
|
@@ -37,17 +45,19 @@ export class SwitchComponent {
|
|
|
37
45
|
return `k-${guid()}`;
|
|
38
46
|
}
|
|
39
47
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
48
|
+
* Set the **On** label.
|
|
49
|
+
* This label takes precedence over the [custom messages component]({% slug api_inputs_switchcustommessagescomponent %}).
|
|
50
|
+
* [See example]({% slug labels_switch %}).
|
|
42
51
|
*/
|
|
43
52
|
onLabel;
|
|
44
53
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
54
|
+
* Set the **Off** label.
|
|
55
|
+
* This label takes precedence over the [custom messages component]({% slug api_inputs_switchcustommessagescomponent %}).
|
|
56
|
+
* [See example]({% slug labels_switch %}).
|
|
47
57
|
*/
|
|
48
58
|
offLabel;
|
|
49
59
|
/**
|
|
50
|
-
* Sets the value of the Switch when it
|
|
60
|
+
* Sets the value of the Switch when it first appears.
|
|
51
61
|
*/
|
|
52
62
|
set checked(value) {
|
|
53
63
|
this.setHostClasses(value);
|
|
@@ -57,27 +67,27 @@ export class SwitchComponent {
|
|
|
57
67
|
return this._checked;
|
|
58
68
|
}
|
|
59
69
|
/**
|
|
60
|
-
*
|
|
70
|
+
* When `true`, disables the Switch.
|
|
71
|
+
* [See example]({% slug disabled_switch %}).
|
|
72
|
+
* To disable the component in reactive forms, see [Forms Support](slug:formssupport_switch#toc-managing-the-switch-disabled-state-in-reactive-forms).
|
|
73
|
+
* @default false
|
|
61
74
|
*/
|
|
62
75
|
disabled = false;
|
|
63
76
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
77
|
+
* When `true`, sets the Switch to read-only.
|
|
78
|
+
* [See example]({% slug readonly_switch %}).
|
|
66
79
|
* @default false
|
|
67
80
|
*/
|
|
68
81
|
readonly = false;
|
|
69
82
|
/**
|
|
70
|
-
*
|
|
83
|
+
* Set the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Switch.
|
|
84
|
+
* @default 0
|
|
71
85
|
*/
|
|
72
86
|
tabindex = 0;
|
|
73
87
|
/**
|
|
74
|
-
*
|
|
88
|
+
* Sets the size of the Switch.
|
|
75
89
|
*
|
|
76
|
-
*
|
|
77
|
-
* * `small`
|
|
78
|
-
* * `medium` (default)
|
|
79
|
-
* * `large`
|
|
80
|
-
* * `none`
|
|
90
|
+
* @default "medium"
|
|
81
91
|
*/
|
|
82
92
|
set size(size) {
|
|
83
93
|
const newSize = size ? size : DEFAULT_SIZE;
|
|
@@ -88,14 +98,9 @@ export class SwitchComponent {
|
|
|
88
98
|
return this._size;
|
|
89
99
|
}
|
|
90
100
|
/**
|
|
91
|
-
*
|
|
101
|
+
* Sets the border radius of the Switch.
|
|
92
102
|
*
|
|
93
|
-
*
|
|
94
|
-
* * `full` (default)
|
|
95
|
-
* * `small`
|
|
96
|
-
* * `medium`
|
|
97
|
-
* * `large`
|
|
98
|
-
* * `none`
|
|
103
|
+
* @default "full"
|
|
99
104
|
*/
|
|
100
105
|
set thumbRounded(thumbRounded) {
|
|
101
106
|
const newThumbRounded = thumbRounded ? thumbRounded : DEFAULT_THUMB_ROUNDED;
|
|
@@ -106,14 +111,9 @@ export class SwitchComponent {
|
|
|
106
111
|
return this._thumbRounded;
|
|
107
112
|
}
|
|
108
113
|
/**
|
|
109
|
-
*
|
|
114
|
+
* Sets the border radius of the Switch track.
|
|
110
115
|
*
|
|
111
|
-
*
|
|
112
|
-
* * `full` (default)
|
|
113
|
-
* * `small`
|
|
114
|
-
* * `medium`
|
|
115
|
-
* * `large`
|
|
116
|
-
* * `none`
|
|
116
|
+
* @default "full"
|
|
117
117
|
*/
|
|
118
118
|
set trackRounded(trackRounded) {
|
|
119
119
|
const newTrackRounded = trackRounded ? trackRounded : DEFAULT_TRACK_ROUNDED;
|
|
@@ -133,15 +133,15 @@ export class SwitchComponent {
|
|
|
133
133
|
return this.tabindex;
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
|
-
* Fires
|
|
136
|
+
* Fires when the user focuses the Switch.
|
|
137
137
|
*/
|
|
138
138
|
onFocus = new EventEmitter();
|
|
139
139
|
/**
|
|
140
|
-
* Fires
|
|
140
|
+
* Fires when the user blurs the Switch.
|
|
141
141
|
*/
|
|
142
142
|
onBlur = new EventEmitter();
|
|
143
143
|
/**
|
|
144
|
-
* Fires
|
|
144
|
+
* Fires when the value of the Switch changes.
|
|
145
145
|
*/
|
|
146
146
|
valueChange = new EventEmitter();
|
|
147
147
|
direction;
|
|
@@ -247,17 +247,6 @@ export class SwitchComponent {
|
|
|
247
247
|
/**
|
|
248
248
|
* Focuses the Switch.
|
|
249
249
|
*
|
|
250
|
-
* @example
|
|
251
|
-
* ```ts-no-run
|
|
252
|
-
* _@Component({
|
|
253
|
-
* selector: 'my-app',
|
|
254
|
-
* template: `
|
|
255
|
-
* <button (click)="switch.focus()">Focus</button>
|
|
256
|
-
* <kendo-switch #switch></kendo-switch>
|
|
257
|
-
* `
|
|
258
|
-
* })
|
|
259
|
-
* class AppComponent { }
|
|
260
|
-
* ```
|
|
261
250
|
*/
|
|
262
251
|
focus() {
|
|
263
252
|
if (!this.hostElement) {
|
|
@@ -10,34 +10,23 @@ import * as i1 from "./switch/switch.component";
|
|
|
10
10
|
import * as i2 from "./switch/localization/custom-messages.component";
|
|
11
11
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Switch component.
|
|
14
|
+
*
|
|
15
|
+
* Use this module to add the Switch component to your NgModule-based Angular application.
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
*
|
|
18
|
-
* ```
|
|
19
|
-
* // Import the Switch module
|
|
19
|
+
* ```typescript
|
|
20
20
|
* import { SwitchModule } from '@progress/kendo-angular-inputs';
|
|
21
|
-
*
|
|
22
|
-
* // The browser platform with a compiler
|
|
23
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
24
|
-
*
|
|
25
21
|
* import { NgModule } from '@angular/core';
|
|
26
|
-
*
|
|
27
|
-
* // Import the app component
|
|
28
22
|
* import { AppComponent } from './app.component';
|
|
29
23
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* imports: [BrowserModule, SwitchModule], // import Switch module
|
|
24
|
+
* @NgModule({
|
|
25
|
+
* declarations: [AppComponent],
|
|
26
|
+
* imports: [BrowserModule, SwitchModule],
|
|
34
27
|
* bootstrap: [AppComponent]
|
|
35
28
|
* })
|
|
36
29
|
* export class AppModule {}
|
|
37
|
-
*
|
|
38
|
-
* // Compile and launch the module
|
|
39
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
40
|
-
*
|
|
41
30
|
* ```
|
|
42
31
|
*/
|
|
43
32
|
export class SwitchModule {
|
|
@@ -5,19 +5,17 @@
|
|
|
5
5
|
import { Component, HostBinding, Input } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* })
|
|
20
|
-
* class AppComponent {}
|
|
8
|
+
* Represents the prefix adornments container for the TextArea component.
|
|
9
|
+
*
|
|
10
|
+
* Nest the `<kendo-textarea-prefix>` component inside `<kendo-textarea>` to add elements before the input.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <kendo-textarea>
|
|
15
|
+
* <kendo-textarea-prefix>
|
|
16
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
17
|
+
* </kendo-textarea-prefix>
|
|
18
|
+
* </kendo-textarea>
|
|
21
19
|
* ```
|
|
22
20
|
*/
|
|
23
21
|
export class TextAreaPrefixComponent {
|
|
@@ -5,19 +5,17 @@
|
|
|
5
5
|
import { Component, HostBinding, Input } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* })
|
|
20
|
-
* class AppComponent {}
|
|
8
|
+
* Represents the suffix adornments container for the TextArea component.
|
|
9
|
+
*
|
|
10
|
+
* Nest the `<kendo-textarea-suffix>` component inside `<kendo-textarea>` to add elements after the input.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <kendo-textarea>
|
|
15
|
+
* <kendo-textarea-suffix>
|
|
16
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
17
|
+
* </kendo-textarea-suffix>
|
|
18
|
+
* </kendo-textarea>
|
|
21
19
|
* ```
|
|
22
20
|
*/
|
|
23
21
|
export class TextAreaSuffixComponent {
|