@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
|
@@ -12,7 +12,15 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
/**
|
|
13
13
|
* Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* Use the Signature to let users add a hand-drawn signature to forms.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-signature [(ngModel)]="signatureValue"></kendo-signature>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Supported children components are: {@link SignatureCustomMessagesComponent}.
|
|
16
24
|
*/
|
|
17
25
|
export declare class SignatureComponent implements ControlValueAccessor {
|
|
18
26
|
private element;
|
|
@@ -30,29 +38,34 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
30
38
|
/**
|
|
31
39
|
* Sets the read-only state of the Signature.
|
|
32
40
|
*
|
|
41
|
+
* Set to `true` to prevent editing.
|
|
42
|
+
*
|
|
33
43
|
* @default false
|
|
34
44
|
*/
|
|
35
45
|
readonly: boolean;
|
|
36
46
|
/**
|
|
37
|
-
* Sets the disabled state of the Signature.
|
|
47
|
+
* Sets the disabled state of the Signature.
|
|
48
|
+
*
|
|
49
|
+
* Set to `true` to disable the component and prevent any user interaction.
|
|
50
|
+
* To disable the component in reactive forms, see [Managing the Signature Disabled State in Reactive Forms](slug:formssupport_signature#toc-managing-the-signature-disabled-state-in-reactive-forms).
|
|
38
51
|
*
|
|
39
52
|
* @default false
|
|
40
53
|
*/
|
|
41
54
|
disabled: boolean;
|
|
42
55
|
/**
|
|
43
|
-
* Sets the width of the
|
|
56
|
+
* Sets the width of the Signature in pixels.
|
|
44
57
|
*
|
|
45
|
-
*
|
|
58
|
+
* You can also set the width using inline styles or CSS.
|
|
46
59
|
*/
|
|
47
60
|
width: number;
|
|
48
61
|
/**
|
|
49
|
-
*
|
|
62
|
+
* Sets the height of the Signature in pixels.
|
|
50
63
|
*
|
|
51
|
-
*
|
|
64
|
+
* You can also set the height using inline styles or CSS.
|
|
52
65
|
*/
|
|
53
66
|
height: number;
|
|
54
67
|
/**
|
|
55
|
-
* Gets or sets the value of the
|
|
68
|
+
* Gets or sets the value of the Signature.
|
|
56
69
|
*
|
|
57
70
|
* The value is a Base64-encoded PNG image.
|
|
58
71
|
*/
|
|
@@ -70,69 +83,54 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
70
83
|
set tabindex(value: number);
|
|
71
84
|
get tabindex(): number;
|
|
72
85
|
/**
|
|
73
|
-
*
|
|
74
|
-
* ([
|
|
86
|
+
* Sets the padding of the Signature internal controls
|
|
87
|
+
* ([ee example]({% slug appearance_signature %}#toc-size)).
|
|
75
88
|
*
|
|
76
|
-
*
|
|
77
|
-
* * `small`
|
|
78
|
-
* * `medium` (default)
|
|
79
|
-
* * `large`
|
|
80
|
-
* * `none`
|
|
89
|
+
* @default 'medium'
|
|
81
90
|
*/
|
|
82
91
|
size: InputSize;
|
|
83
92
|
/**
|
|
84
|
-
*
|
|
93
|
+
* Sets the border radius of the Signature
|
|
85
94
|
* ([see example](slug:appearance_signature#rounded-corners)).
|
|
86
95
|
*
|
|
87
|
-
*
|
|
88
|
-
* * `small`
|
|
89
|
-
* * `medium` (default)
|
|
90
|
-
* * `large`
|
|
91
|
-
* * `full` (not supported by the Signature)
|
|
92
|
-
* * `none`
|
|
96
|
+
* @default 'medium'
|
|
93
97
|
*/
|
|
94
98
|
rounded: InputRounded;
|
|
95
99
|
/**
|
|
96
|
-
*
|
|
100
|
+
* Sets the background and border styles of the Signature
|
|
97
101
|
* ([see example](slug:appearance_signature#toc-fill-mode)).
|
|
98
102
|
*
|
|
99
|
-
*
|
|
100
|
-
* * `flat`
|
|
101
|
-
* * `solid` (default)
|
|
102
|
-
* * `outline`
|
|
103
|
-
* * `none`
|
|
103
|
+
* @default 'solid'
|
|
104
104
|
*/
|
|
105
105
|
fillMode: InputFillMode;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Sets the stroke color of the Signature.
|
|
108
108
|
*
|
|
109
109
|
* Accepts CSS color names and hex values.
|
|
110
|
-
*
|
|
111
110
|
* The default value is determined by the theme `$kendo-input-text` variable.
|
|
112
111
|
*/
|
|
113
112
|
color: any;
|
|
114
113
|
/**
|
|
115
|
-
*
|
|
114
|
+
* Sets the background color of the Signature.
|
|
116
115
|
*
|
|
117
116
|
* Accepts CSS color names and hex values.
|
|
118
|
-
*
|
|
119
117
|
* The default value is determined by the theme `$kendo-input-bg` variable.
|
|
120
118
|
*/
|
|
121
119
|
backgroundColor: any;
|
|
122
120
|
/**
|
|
123
|
-
*
|
|
121
|
+
* Sets the stroke width of the Signature.
|
|
124
122
|
*
|
|
125
123
|
* @default 1
|
|
126
124
|
*/
|
|
127
125
|
strokeWidth: number;
|
|
128
126
|
/**
|
|
129
|
-
*
|
|
127
|
+
* When set to `true`, smooths out signature lines.
|
|
130
128
|
*
|
|
131
129
|
* @default false
|
|
132
130
|
*/
|
|
133
131
|
smooth: boolean;
|
|
134
132
|
/**
|
|
135
|
-
*
|
|
133
|
+
* When set to `true`, allows the Signature to be maximized.
|
|
136
134
|
*
|
|
137
135
|
* @default true
|
|
138
136
|
*/
|
|
@@ -142,17 +140,17 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
142
140
|
*/
|
|
143
141
|
maximized: boolean;
|
|
144
142
|
/**
|
|
145
|
-
*
|
|
143
|
+
* Sets the scale factor for the popup.
|
|
146
144
|
*
|
|
147
|
-
* The Signature width and height
|
|
145
|
+
* The Signature width and height are multiplied by this value when showing the popup.
|
|
148
146
|
*
|
|
149
147
|
* @default 3
|
|
150
148
|
*/
|
|
151
149
|
popupScale: number;
|
|
152
150
|
/**
|
|
153
|
-
*
|
|
151
|
+
* Sets the scale factor for the exported image.
|
|
154
152
|
*
|
|
155
|
-
* The Signature width and height
|
|
153
|
+
* The Signature width and height are multiplied by this value when converting the signature to an image.
|
|
156
154
|
*
|
|
157
155
|
* @default 2
|
|
158
156
|
*/
|
|
@@ -162,31 +160,33 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
162
160
|
*/
|
|
163
161
|
parentLocalization: LocalizationService;
|
|
164
162
|
/**
|
|
165
|
-
*
|
|
163
|
+
* When set to `true`, hides the dotted line in the background.
|
|
166
164
|
*
|
|
167
165
|
* @default false
|
|
168
166
|
*/
|
|
169
167
|
hideLine: boolean;
|
|
170
168
|
/**
|
|
171
|
-
* Fires
|
|
169
|
+
* Fires when the signature value changes.
|
|
172
170
|
*/
|
|
173
171
|
valueChange: EventEmitter<string>;
|
|
174
172
|
/**
|
|
175
|
-
* Fires
|
|
176
|
-
*
|
|
173
|
+
* Fires before the popup opens.
|
|
174
|
+
*
|
|
175
|
+
* This event is preventable. If you cancel it, the popup stays closed.
|
|
177
176
|
*/
|
|
178
177
|
open: EventEmitter<SignatureOpenEvent>;
|
|
179
178
|
/**
|
|
180
|
-
* Fires
|
|
181
|
-
*
|
|
179
|
+
* Fires before the popup closes.
|
|
180
|
+
*
|
|
181
|
+
* This event is preventable. If you cancel it, the popup stays open.
|
|
182
182
|
*/
|
|
183
183
|
close: EventEmitter<SignatureCloseEvent>;
|
|
184
184
|
/**
|
|
185
|
-
* Fires
|
|
185
|
+
* Fires when the Signature receives focus.
|
|
186
186
|
*/
|
|
187
187
|
onFocus: EventEmitter<any>;
|
|
188
188
|
/**
|
|
189
|
-
* Fires
|
|
189
|
+
* Fires when the Signature loses focus.
|
|
190
190
|
*/
|
|
191
191
|
onBlur: EventEmitter<any>;
|
|
192
192
|
/**
|
|
@@ -197,11 +197,11 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
197
197
|
minimizeButton: ElementRef;
|
|
198
198
|
maximizeButton: ElementRef;
|
|
199
199
|
/**
|
|
200
|
-
* Indicates
|
|
200
|
+
* Indicates if the Signature wrapper is focused.
|
|
201
201
|
*/
|
|
202
202
|
isFocused: boolean;
|
|
203
203
|
/**
|
|
204
|
-
* Indicates
|
|
204
|
+
* Indicates if the Signature popup is open.
|
|
205
205
|
*/
|
|
206
206
|
isOpen: boolean;
|
|
207
207
|
/**
|
|
@@ -305,9 +305,10 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
305
305
|
reset(): void;
|
|
306
306
|
/**
|
|
307
307
|
* Toggles the popup of the Signature.
|
|
308
|
-
* Does not trigger the `open` and `close` events of the component.
|
|
309
308
|
*
|
|
310
|
-
*
|
|
309
|
+
* Does not trigger the `open` and `close` events.
|
|
310
|
+
*
|
|
311
|
+
* @param open Optional. Set to `true` to open or `false` to close the popup.
|
|
311
312
|
*/
|
|
312
313
|
toggle(open?: boolean): void;
|
|
313
314
|
/**
|
|
@@ -321,7 +322,7 @@ export declare class SignatureComponent implements ControlValueAccessor {
|
|
|
321
322
|
private applyHostClasses;
|
|
322
323
|
private readThemeColors;
|
|
323
324
|
/**
|
|
324
|
-
* Focuses the wrapper
|
|
325
|
+
* Focuses the Signature wrapper container.
|
|
325
326
|
*/
|
|
326
327
|
focus(): void;
|
|
327
328
|
/**
|
package/signature.module.d.ts
CHANGED
|
@@ -6,34 +6,23 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
import * as i1 from "./signature/signature.component";
|
|
7
7
|
import * as i2 from "./signature/localization/custom-messages.component";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Signature component.
|
|
10
|
+
*
|
|
11
|
+
* Use this module to add the Signature component to your NgModule-based Angular application.
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
*
|
|
14
|
-
* ```
|
|
15
|
-
* // Import the Signature module
|
|
15
|
+
* ```typescript
|
|
16
16
|
* import { SignatureModule } from '@progress/kendo-angular-inputs';
|
|
17
|
-
*
|
|
18
|
-
* // The browser platform with a compiler
|
|
19
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
20
|
-
*
|
|
21
17
|
* import { NgModule } from '@angular/core';
|
|
22
|
-
*
|
|
23
|
-
* // Import the app component
|
|
24
18
|
* import { AppComponent } from './app.component';
|
|
25
19
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* imports: [BrowserModule, SignatureModule], // import Signature module
|
|
20
|
+
* @NgModule({
|
|
21
|
+
* declarations: [AppComponent],
|
|
22
|
+
* imports: [BrowserModule, SignatureModule],
|
|
30
23
|
* bootstrap: [AppComponent]
|
|
31
24
|
* })
|
|
32
25
|
* export class AppModule {}
|
|
33
|
-
*
|
|
34
|
-
* // Compile and launch the module
|
|
35
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
36
|
-
*
|
|
37
26
|
* ```
|
|
38
27
|
*/
|
|
39
28
|
export declare class SignatureModule {
|
|
@@ -6,7 +6,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
6
6
|
import { SliderMessages } from './messages';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Use this component to override the default Slider messages.
|
|
10
10
|
*/
|
|
11
11
|
export declare class SliderCustomMessagesComponent extends SliderMessages {
|
|
12
12
|
protected service: LocalizationService;
|
|
@@ -10,6 +10,14 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
12
|
* Represents the [Kendo UI Slider component for Angular]({% slug overview_slider %}).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-slider [min]="0" [max]="10" [smallStep]="1" [(ngModel)]="value"></kendo-slider>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Supported children components are: {@link SliderCustomMessagesComponent}.
|
|
13
21
|
*/
|
|
14
22
|
export declare class SliderComponent extends SliderBase implements AfterViewInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
15
23
|
protected localization: LocalizationService;
|
|
@@ -23,7 +31,7 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
|
|
|
23
31
|
*/
|
|
24
32
|
focusableId: string;
|
|
25
33
|
/**
|
|
26
|
-
* Changes the `title` attribute of the drag handle
|
|
34
|
+
* Changes the `title` attribute of the drag handle. Use this property to localize the drag handle title.
|
|
27
35
|
*/
|
|
28
36
|
dragHandleTitle: string;
|
|
29
37
|
/**
|
|
@@ -31,8 +39,9 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
|
|
|
31
39
|
*/
|
|
32
40
|
incrementTitle: string;
|
|
33
41
|
/**
|
|
34
|
-
* Determines if the
|
|
35
|
-
*
|
|
42
|
+
* Determines if the component animates when the value changes.
|
|
43
|
+
* The component does not animate during initial rendering.
|
|
44
|
+
* @default true
|
|
36
45
|
*/
|
|
37
46
|
animate: boolean;
|
|
38
47
|
/**
|
|
@@ -40,13 +49,15 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
|
|
|
40
49
|
*/
|
|
41
50
|
decrementTitle: string;
|
|
42
51
|
/**
|
|
43
|
-
*
|
|
44
|
-
* When `showButtons`
|
|
52
|
+
* Shows or hides the arrow side buttons of the Slider ([see example]({% slug sidebuttons_slider %}#toc-hidden-state)).
|
|
53
|
+
* When you set `showButtons` to `false`, the component does not display the buttons.
|
|
54
|
+
* @default true
|
|
45
55
|
*/
|
|
46
56
|
showButtons: boolean;
|
|
47
57
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
58
|
+
* Sets the current value of the Slider when it first appears.
|
|
59
|
+
* Use either `ngModel` or the `value` binding, but not both at the same time.
|
|
60
|
+
* @default 0
|
|
50
61
|
*/
|
|
51
62
|
value: number;
|
|
52
63
|
/**
|
|
@@ -82,18 +93,6 @@ export declare class SliderComponent extends SliderBase implements AfterViewInit
|
|
|
82
93
|
constructor(localization: LocalizationService, injector: Injector, renderer: Renderer2, ngZone: NgZone, changeDetector: ChangeDetectorRef, hostElement: ElementRef);
|
|
83
94
|
/**
|
|
84
95
|
* Focuses the Slider.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```ts-no-run
|
|
88
|
-
* _@Component({
|
|
89
|
-
* selector: 'my-app',
|
|
90
|
-
* template: `
|
|
91
|
-
* <button (click)="slider.focus()">Focus</button>
|
|
92
|
-
* <kendo-slider #slider></kendo-slider>
|
|
93
|
-
* `
|
|
94
|
-
* })
|
|
95
|
-
* class AppComponent { }
|
|
96
|
-
* ```
|
|
97
96
|
*/
|
|
98
97
|
focus(): void;
|
|
99
98
|
/**
|
package/slider.module.d.ts
CHANGED
|
@@ -7,35 +7,24 @@ import * as i1 from "./slider/slider.component";
|
|
|
7
7
|
import * as i2 from "./slider/localization/custom-messages.component";
|
|
8
8
|
import * as i3 from "./sliders-common/label-template.directive";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Slider component.
|
|
11
|
+
*
|
|
12
|
+
* Use this module to add the Slider component to your NgModule-based Angular application.
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
*
|
|
15
|
-
* ```
|
|
16
|
-
* // Import the Inputs module
|
|
16
|
+
* ```typescript
|
|
17
17
|
* import { SliderModule } from '@progress/kendo-angular-inputs';
|
|
18
|
-
*
|
|
19
|
-
* // The browser platform with a compiler
|
|
20
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
21
18
|
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
22
|
-
*
|
|
23
19
|
* import { NgModule } from '@angular/core';
|
|
24
|
-
*
|
|
25
|
-
* // Import the app component
|
|
26
20
|
* import { AppComponent } from './app.component';
|
|
27
21
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* imports: [BrowserModule, BrowserAnimationsModule, SliderModule], // import Slider module
|
|
22
|
+
* @NgModule({
|
|
23
|
+
* declarations: [AppComponent],
|
|
24
|
+
* imports: [BrowserModule, BrowserAnimationsModule, SliderModule],
|
|
32
25
|
* bootstrap: [AppComponent]
|
|
33
26
|
* })
|
|
34
27
|
* export class AppModule {}
|
|
35
|
-
*
|
|
36
|
-
* // Compile and launch the module
|
|
37
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
38
|
-
*
|
|
39
28
|
* ```
|
|
40
29
|
*/
|
|
41
30
|
export declare class SliderModule {
|
|
@@ -5,27 +5,17 @@
|
|
|
5
5
|
import { TemplateRef } 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 declare class LabelTemplateDirective {
|
|
@@ -20,77 +20,95 @@ export declare abstract class SliderBase {
|
|
|
20
20
|
protected changeDetector: ChangeDetectorRef;
|
|
21
21
|
protected hostElement: ElementRef;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* for each tick is its Slider value.
|
|
25
|
-
*
|
|
23
|
+
* Sets the title for the ticks.
|
|
24
|
+
* The default title for each tick is its Slider value.
|
|
25
|
+
* 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).
|
|
26
26
|
*/
|
|
27
27
|
title: SliderTickTitleCallback;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Sets the location of the tick marks in the Slider [see example]({% slug ticks_slider %}#toc-placement).
|
|
30
30
|
*
|
|
31
|
-
* The
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
31
|
+
* The options are:
|
|
32
|
+
* - `before` – Shows tick marks above a horizontal track or left of a vertical track.
|
|
33
|
+
* - `after` – Shows tick marks below a horizontal track or right of a vertical track.
|
|
34
|
+
* - `both` – Shows tick marks on both sides of the track.
|
|
35
|
+
* - `none` – Hides tick marks and removes them from the DOM.
|
|
36
|
+
*
|
|
37
|
+
* @default 'both'
|
|
36
38
|
*/
|
|
37
39
|
tickPlacement: string;
|
|
38
40
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
+
* When `true`. renders a vertical Slider [see example]({% slug orientation_slider %}).
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
41
44
|
*/
|
|
42
45
|
vertical: boolean;
|
|
43
46
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
47
|
+
* Sets the minimum value of the Slider.
|
|
48
|
+
* Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
|
|
49
|
+
*
|
|
50
|
+
* @default 0
|
|
46
51
|
*/
|
|
47
52
|
min: number;
|
|
48
53
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
54
|
+
* Sets the maximum value of the Slider.
|
|
55
|
+
* Accepts integers and floating-point numbers [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
|
|
56
|
+
*
|
|
57
|
+
* @default 10
|
|
51
58
|
*/
|
|
52
59
|
max: number;
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
55
|
-
* Accepts positive values
|
|
61
|
+
* Sets the step value of the Slider.
|
|
62
|
+
* Accepts only positive values.
|
|
63
|
+
* Can be an integer or a floating-point number [see example]({% slug predefinedsteps_slider %}#toc-small-steps).
|
|
64
|
+
*
|
|
65
|
+
* @default 1
|
|
56
66
|
*/
|
|
57
67
|
smallStep: number;
|
|
58
68
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
69
|
+
* Sets every n<sup>th</sup> tick as large and shows a label for it [see example]({% slug predefinedsteps_slider %}#toc-large-steps).
|
|
70
|
+
*
|
|
71
|
+
* @default null
|
|
62
72
|
*/
|
|
63
73
|
largeStep: number;
|
|
64
74
|
/**
|
|
65
|
-
* Sets the width between
|
|
66
|
-
*
|
|
67
|
-
*
|
|
75
|
+
* Sets the width between two ticks along the track, in pixels.
|
|
76
|
+
* If you do not set `fixedTickWidth`, the Slider adjusts the tick width automatically [see example]({% slug ticks_slider %}#toc-width).
|
|
77
|
+
*
|
|
68
78
|
*/
|
|
69
79
|
fixedTickWidth: number;
|
|
70
80
|
/**
|
|
71
|
-
*
|
|
81
|
+
* When `true`, disables the Slider.
|
|
82
|
+
* 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 %}).
|
|
83
|
+
*
|
|
84
|
+
* @default false
|
|
72
85
|
*/
|
|
73
86
|
disabled: boolean;
|
|
74
87
|
/**
|
|
75
|
-
*
|
|
88
|
+
* When `true`, sets the Slider to read-only [see example]({% slug readonly_slider %}).
|
|
76
89
|
*
|
|
77
90
|
* @default false
|
|
78
91
|
*/
|
|
79
92
|
readonly: boolean;
|
|
80
93
|
/**
|
|
81
|
-
*
|
|
94
|
+
* Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Slider.
|
|
95
|
+
*
|
|
96
|
+
* @default 0
|
|
82
97
|
*/
|
|
83
98
|
tabindex: number;
|
|
84
99
|
/**
|
|
85
|
-
* Fires
|
|
100
|
+
* Fires when the user focuses the component.
|
|
101
|
+
*
|
|
86
102
|
*/
|
|
87
103
|
onFocus: EventEmitter<any>;
|
|
88
104
|
/**
|
|
89
|
-
* Fires
|
|
105
|
+
* Fires when the component is blurred.
|
|
106
|
+
*
|
|
90
107
|
*/
|
|
91
108
|
onBlur: EventEmitter<any>;
|
|
92
109
|
/**
|
|
93
|
-
* Fires
|
|
110
|
+
* Fires when the user selects a new value.
|
|
111
|
+
*
|
|
94
112
|
*/
|
|
95
113
|
valueChange: EventEmitter<any>;
|
|
96
114
|
direction: string;
|
|
@@ -3,8 +3,24 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Sets the title for the ticks ([see example]({% slug ticks_slider %}#toc-titles)).
|
|
7
|
+
* By default, each tick uses its Slider value as the title.
|
|
8
|
+
* If you use a callback function, it receives the component value and returns a string for the title.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* @Component({
|
|
13
|
+
* selector: "my-app",
|
|
14
|
+
* template: `
|
|
15
|
+
* <kendo-slider [title]="title"></kendo-slider>
|
|
16
|
+
* `,
|
|
17
|
+
* })
|
|
18
|
+
* export class AppComponent {
|
|
19
|
+
* // Use a callback function to capture the 'this' execution context of the class.
|
|
20
|
+
* public title = (value: number): string => {
|
|
21
|
+
* return `${this.numbers[value]}`;
|
|
22
|
+
* };
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
9
25
|
*/
|
|
10
26
|
export type SliderTickTitleCallback = (value: number) => string;
|
|
@@ -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 declare 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 declare class SwitchFocusEvent {
|
|
9
9
|
/**
|
|
@@ -6,7 +6,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
6
6
|
import { Messages } from './messages';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Overrides the default component messages with custom component messages.
|
|
10
10
|
*/
|
|
11
11
|
export declare class SwitchCustomMessagesComponent extends Messages {
|
|
12
12
|
protected service: LocalizationService;
|