@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,17 +5,20 @@
|
|
|
5
5
|
import { MessageAlign } from './models/message-align';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Represents
|
|
9
|
-
* a Kendo
|
|
8
|
+
* Represents the Kendo UI FormError component.
|
|
9
|
+
* Displays an error message under a Kendo Angular component or native HTML form-bound component after validation.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-formerror>Error message here</kendo-formerror>
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
export declare class ErrorComponent {
|
|
12
17
|
hostClass: boolean;
|
|
13
18
|
/**
|
|
14
|
-
*
|
|
19
|
+
* Sets the alignment of the error message.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
* * (Default) `start`
|
|
18
|
-
* * `end`
|
|
21
|
+
* @default 'start'
|
|
19
22
|
*/
|
|
20
23
|
align: MessageAlign;
|
|
21
24
|
/**
|
|
@@ -11,8 +11,22 @@ import { HintComponent } from './hint.component';
|
|
|
11
11
|
import { Orientation } from './models/orientation';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Represents the Kendo UI FormField component for Angular.
|
|
15
|
+
* Use this component to group form-bound controls (Kendo Angular components or native HTML controls).
|
|
15
16
|
* Applies styling and behavior rules.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <kendo-formfield>
|
|
21
|
+
* <kendo-label [for]="firstName"text="First Name"></kendo-label>
|
|
22
|
+
* <kendo-textbox formControlName="firstName" #firstName></kendo-textbox>
|
|
23
|
+
* <kendo-formhint>Enter your name.</kendo-formhint>
|
|
24
|
+
* <kendo-formerror>First name is required.</kendo-formerror>
|
|
25
|
+
* </kendo-formfield>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Supported children components are: {@link ErrorComponent}, {@link HintComponent}, {@link TextBoxComponent}, {@link NumericTextBoxComponent}, {@link MaskedTextBoxComponent}, {@link TextAreaComponent}, {@link DatePickerComponent}, {@link DateTimePickerComponent}, {@link DateInputComponent}, {@link OTPInputComponent}.
|
|
16
30
|
*/
|
|
17
31
|
export declare class FormFieldComponent implements AfterViewInit, AfterViewChecked {
|
|
18
32
|
private renderer;
|
|
@@ -31,35 +45,25 @@ export declare class FormFieldComponent implements AfterViewInit, AfterViewCheck
|
|
|
31
45
|
errorChildren: QueryList<ErrorComponent>;
|
|
32
46
|
hintChildren: QueryList<HintComponent>;
|
|
33
47
|
/**
|
|
48
|
+
* Specifies when to show the hint messages:
|
|
49
|
+
* * `initial`—Shows hints when the form control is `valid` or `untouched` and `pristine`.
|
|
50
|
+
* * `always`—Always shows hints.
|
|
34
51
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* The possible values are:
|
|
38
|
-
*
|
|
39
|
-
* * (Default) `initial`—Allows displaying hints when the form-bound component state is
|
|
40
|
-
* `valid` or `untouched` and `pristine`.
|
|
41
|
-
* * `always`—Allows full control over the visibility of the hints.
|
|
42
|
-
*
|
|
52
|
+
* @default 'initial'
|
|
43
53
|
*/
|
|
44
54
|
showHints: ShowOptions;
|
|
45
55
|
/**
|
|
46
56
|
* Specifies the layout orientation of the form field.
|
|
47
57
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* * (Default) `vertical`
|
|
51
|
-
* * `horizontal`
|
|
58
|
+
* @default 'vertical'
|
|
52
59
|
*/
|
|
53
60
|
orientation: Orientation;
|
|
54
61
|
/**
|
|
55
|
-
* Specifies when the
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* * (Default) `initial`—Allows displaying errors when the form-bound component state is
|
|
60
|
-
* `invalid` and `touched` or `dirty`.
|
|
61
|
-
* * `always`—Allows full control over the visibility of the errors.
|
|
62
|
+
* Specifies when to show the error messages:
|
|
63
|
+
* * `initial`—Shows errors when the form control is `invalid` and `touched` or `dirty`.
|
|
64
|
+
* * `always`—Always shows errors.
|
|
62
65
|
*
|
|
66
|
+
* @default 'initial'
|
|
63
67
|
*/
|
|
64
68
|
showErrors: ShowOptions;
|
|
65
69
|
/**
|
|
@@ -5,15 +5,18 @@
|
|
|
5
5
|
import { MessageAlign } from './models/message-align';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Displays a hint message under a form-bound component.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <kendo-formhint>Hint message here</kendo-formhint>
|
|
13
|
+
* ```
|
|
9
14
|
*/
|
|
10
15
|
export declare class HintComponent {
|
|
11
16
|
/**
|
|
12
|
-
*
|
|
17
|
+
* Sets the alignment of the hint message.
|
|
13
18
|
*
|
|
14
|
-
*
|
|
15
|
-
* * (Default) `start`
|
|
16
|
-
* * `end`
|
|
19
|
+
* @default 'start'
|
|
17
20
|
*/
|
|
18
21
|
align: MessageAlign;
|
|
19
22
|
/**
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Specifies whether the text message
|
|
6
|
+
* Specifies whether the text message aligns at the start or end of the line.
|
|
7
|
+
*
|
|
8
|
+
* Use this type to set the `align` property.
|
|
7
9
|
*/
|
|
8
10
|
export type MessageAlign = 'start' | 'end';
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Specifies the layout orientation of the form fields.
|
|
7
|
+
*
|
|
8
|
+
* Use this type to set the `orientation` property.
|
|
9
|
+
*
|
|
7
10
|
* @default `vertical`
|
|
8
11
|
*/
|
|
9
12
|
export type Orientation = 'vertical' | 'horizontal';
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Specifies whether the Hint or Error messages
|
|
6
|
+
* Specifies whether the Hint or Error messages display.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* Use this type to set the `showHints` or `showErrors` property.
|
|
9
9
|
*
|
|
10
|
-
* * `initial`(
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* * `always`—Allows full control over the visibility of the messages.
|
|
10
|
+
* * `initial` (default)—Displays messages based on the form-bound component state.
|
|
11
|
+
* See [Hint `initial` configuration]({% slug api_inputs_formfieldcomponent %}#toc-showHints) and [Error `initial` configuration]({% slug api_inputs_formfieldcomponent %}#toc-showErrors).
|
|
12
|
+
* * `always`—Always displays the messages.
|
|
15
13
|
*/
|
|
16
14
|
export type ShowOptions = 'initial' | 'always';
|
package/formfield.module.d.ts
CHANGED
|
@@ -7,34 +7,23 @@ import * as i1 from "./formfield/formfield.component";
|
|
|
7
7
|
import * as i2 from "./formfield/hint.component";
|
|
8
8
|
import * as i3 from "./formfield/error.component";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* definition for the FormField, Error and Hint components.
|
|
10
|
+
* Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the FormField, Error, and Hint components.
|
|
12
11
|
*
|
|
13
|
-
*
|
|
12
|
+
* Use this module to add FormField, Error, and Hint features to your NgModule-based Angular application.
|
|
14
13
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
17
16
|
* import { FormFieldModule } from '@progress/kendo-angular-inputs';
|
|
18
|
-
*
|
|
19
|
-
* // The browser platform with a compiler
|
|
20
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
21
|
-
*
|
|
22
17
|
* import { NgModule } from '@angular/core';
|
|
23
|
-
*
|
|
24
|
-
* // Import the app component
|
|
18
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
25
19
|
* import { AppComponent } from './app.component';
|
|
26
20
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* bootstrap: [AppComponent]
|
|
21
|
+
* @NgModule({
|
|
22
|
+
* declarations: [AppComponent],
|
|
23
|
+
* imports: [BrowserModule, FormFieldModule],
|
|
24
|
+
* bootstrap: [AppComponent]
|
|
32
25
|
* })
|
|
33
26
|
* export class AppModule {}
|
|
34
|
-
*
|
|
35
|
-
* // Compile and launch the module
|
|
36
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
37
|
-
*
|
|
38
27
|
* ```
|
|
39
28
|
*/
|
|
40
29
|
export declare class FormFieldModule {
|
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { SliderTicksComponent } from './sliders-common/slider-ticks.component';
|
|
|
18
18
|
export { SliderModule } from './slider.module';
|
|
19
19
|
export { RangeSliderModule } from './rangeslider.module';
|
|
20
20
|
export { SwitchModule } from './switch.module';
|
|
21
|
+
export { OTPInputModule } from './otp.module';
|
|
21
22
|
export { NumericTextBoxModule } from './numerictextbox.module';
|
|
22
23
|
export { MaskedTextBoxModule } from './maskedtextbox.module';
|
|
23
24
|
export { TextBoxModule } from './textbox.module';
|
package/inputs.module.d.ts
CHANGED
|
@@ -45,35 +45,23 @@ import * as i39 from "./colorpicker/color-palette.component";
|
|
|
45
45
|
import * as i40 from "./otpinput/otpinput.component";
|
|
46
46
|
import * as i41 from "./otpinput/localization/custom-messages.component";
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
* definition for the Inputs components.
|
|
48
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Inputs components.
|
|
50
49
|
*
|
|
51
|
-
*
|
|
50
|
+
* Use this module to import all Kendo UI for Angular Inputs components at once in your NgModule-based Angular application.
|
|
52
51
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
55
54
|
* import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
56
|
-
*
|
|
57
|
-
* // The browser platform with a compiler
|
|
58
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
59
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
60
|
-
*
|
|
61
55
|
* import { NgModule } from '@angular/core';
|
|
62
|
-
*
|
|
63
|
-
* // Import the app component
|
|
56
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
64
57
|
* import { AppComponent } from './app.component';
|
|
65
58
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* bootstrap: [AppComponent]
|
|
59
|
+
* @NgModule({
|
|
60
|
+
* declarations: [AppComponent],
|
|
61
|
+
* imports: [BrowserModule, InputsModule],
|
|
62
|
+
* bootstrap: [AppComponent]
|
|
71
63
|
* })
|
|
72
64
|
* export class AppModule {}
|
|
73
|
-
*
|
|
74
|
-
* // Compile and launch the module
|
|
75
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
76
|
-
*
|
|
77
65
|
* ```
|
|
78
66
|
*/
|
|
79
67
|
export declare class InputsModule {
|
|
@@ -14,21 +14,21 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* Represents the [Kendo UI MaskedTextBox component for Angular]({% slug overview_maskedtextbox %}).
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* ```
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import { Component } from '@angular/core';
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
20
|
+
* @Component({
|
|
21
|
+
* selector: 'my-app',
|
|
22
|
+
* template: `
|
|
23
|
+
* <kendo-maskedtextbox
|
|
24
|
+
* [mask]="mask"
|
|
25
|
+
* [value]="value">
|
|
26
|
+
* </kendo-maskedtextbox>
|
|
27
|
+
* `
|
|
27
28
|
* })
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* public mask: string = "0000-0000-0000-0000";
|
|
29
|
+
* export class AppComponent {
|
|
30
|
+
* public value: string = "9580128055807792";
|
|
31
|
+
* public mask: string = "0000-0000-0000-0000";
|
|
32
32
|
* }
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
@@ -44,66 +44,52 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
44
44
|
*/
|
|
45
45
|
focusableId: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Disables the MaskedTextBox when you set it to `true` ([see example]({% slug disabled_maskedtextbox %})).
|
|
48
|
+
* To disable the component in reactive forms, see [Forms Support](slug:formssupport_maskedtextbox#toc-managing-the-maskedtextbox-disabled-state-in-reactive-forms).
|
|
49
|
+
* @default false
|
|
48
50
|
*/
|
|
49
51
|
disabled: boolean;
|
|
50
52
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
+
* When `true`, sets the MaskedTextBox to read-only mode ([see example]({% slug readonly_maskedtextbox %})).
|
|
53
54
|
* @default false
|
|
54
55
|
*/
|
|
55
56
|
readonly: boolean;
|
|
56
57
|
/**
|
|
57
|
-
* Sets the title of the
|
|
58
|
+
* Sets the `title` attribute of the input element.
|
|
58
59
|
*/
|
|
59
60
|
title: string;
|
|
60
61
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* The possible values are:
|
|
64
|
-
* * `small`
|
|
65
|
-
* * `medium` (default)
|
|
66
|
-
* * `large`
|
|
67
|
-
* * `none`
|
|
62
|
+
* Sets the padding size of the MaskedTextBox input element ([see example]({% slug appearance_maskedtextbox %}#toc-size)).
|
|
63
|
+
* @default 'medium'
|
|
68
64
|
*/
|
|
69
65
|
set size(size: InputSize);
|
|
70
66
|
get size(): InputSize;
|
|
71
67
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* The possible values are:
|
|
75
|
-
* * `small`
|
|
76
|
-
* * `medium` (default)
|
|
77
|
-
* * `large`
|
|
78
|
-
* * `none`
|
|
68
|
+
* Sets the border radius of the MaskedTextBox ([see example](slug:appearance_maskedtextbox#toc-roundness)).
|
|
69
|
+
* @default 'medium'
|
|
79
70
|
*/
|
|
80
71
|
set rounded(rounded: InputRounded);
|
|
81
72
|
get rounded(): InputRounded;
|
|
82
73
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* The possible values are:
|
|
86
|
-
* * `flat`
|
|
87
|
-
* * `solid` (default)
|
|
88
|
-
* * `outline`
|
|
89
|
-
* * `none`
|
|
74
|
+
* Sets the background and border style of the MaskedTextBox ([see example]({% slug appearance_maskedtextbox %}#toc-fill-mode)).
|
|
75
|
+
* @default 'solid'
|
|
90
76
|
*/
|
|
91
77
|
set fillMode(fillMode: InputFillMode);
|
|
92
78
|
get fillMode(): InputFillMode;
|
|
93
79
|
/**
|
|
94
|
-
*
|
|
95
|
-
* If
|
|
80
|
+
* Sets the mask pattern for the MaskedTextBox ([see example]({% slug value_maskedtextbox %})).
|
|
81
|
+
* If you do not set a mask, the component acts as a standard `type="text"` input.
|
|
96
82
|
*
|
|
97
|
-
*
|
|
98
|
-
* to a character that
|
|
83
|
+
* If the mask allows spaces, set the [`promptPlaceholder`]({% slug api_inputs_maskedtextboxcomponent %}#toc-promptplaceholder)
|
|
84
|
+
* to a character that the mask does not accept.
|
|
99
85
|
*/
|
|
100
86
|
mask: string;
|
|
101
87
|
/**
|
|
102
|
-
*
|
|
88
|
+
* Sets the value of the MaskedTextBox.
|
|
103
89
|
*/
|
|
104
90
|
value: string;
|
|
105
91
|
/**
|
|
106
|
-
*
|
|
92
|
+
* Sets the RegExp-based mask validation rules ([see example]({% slug masks_maskedtextbox %})).
|
|
107
93
|
*/
|
|
108
94
|
set rules(value: {
|
|
109
95
|
[key: string]: RegExp;
|
|
@@ -112,32 +98,31 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
112
98
|
[key: string]: RegExp;
|
|
113
99
|
};
|
|
114
100
|
/**
|
|
115
|
-
*
|
|
101
|
+
* Sets the prompt character for the masked value.
|
|
116
102
|
* @default `_`
|
|
117
103
|
*/
|
|
118
104
|
prompt: string;
|
|
119
105
|
/**
|
|
120
|
-
*
|
|
106
|
+
* Sets the character that represents an empty position in the raw value.
|
|
121
107
|
* @default ' '
|
|
122
108
|
*/
|
|
123
109
|
promptPlaceholder: string;
|
|
124
110
|
/**
|
|
125
|
-
*
|
|
111
|
+
* When `true` includes literals in the raw value ([see example]({% slug value_maskedtextbox %})).
|
|
126
112
|
* @default false
|
|
127
113
|
*/
|
|
128
114
|
includeLiterals: boolean;
|
|
129
115
|
/**
|
|
130
|
-
*
|
|
116
|
+
* Shows the mask on focus when the value is empty.
|
|
131
117
|
*/
|
|
132
118
|
maskOnFocus: boolean;
|
|
133
119
|
/**
|
|
134
|
-
*
|
|
135
|
-
* ([see example]({% slug validation_maskedtextbox %})).
|
|
120
|
+
* Enables the built-in mask validator when you set it to `true` ([see example]({% slug validation_maskedtextbox %})).
|
|
136
121
|
* @default true
|
|
137
122
|
*/
|
|
138
123
|
maskValidation: boolean;
|
|
139
124
|
/**
|
|
140
|
-
*
|
|
125
|
+
* Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) attribute of the component.
|
|
141
126
|
*/
|
|
142
127
|
tabindex: number;
|
|
143
128
|
/**
|
|
@@ -146,7 +131,8 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
146
131
|
set tabIndex(tabIndex: number);
|
|
147
132
|
get tabIndex(): number;
|
|
148
133
|
/**
|
|
149
|
-
* Sets
|
|
134
|
+
* Sets HTML attributes for the inner input element.
|
|
135
|
+
* You cannot change attributes that are essential for component functionality.
|
|
150
136
|
*/
|
|
151
137
|
set inputAttributes(attributes: {
|
|
152
138
|
[key: string]: string;
|
|
@@ -157,64 +143,36 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
157
143
|
private get defaultAttributes();
|
|
158
144
|
private get mutableAttributes();
|
|
159
145
|
/**
|
|
160
|
-
* Fires
|
|
146
|
+
* Fires when the MaskedTextBox gets focused.
|
|
161
147
|
*
|
|
162
|
-
*
|
|
148
|
+
* To subscribe programmatically, use the `onFocus` property.
|
|
163
149
|
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```ts-no-run
|
|
166
|
-
* _@Component({
|
|
167
|
-
* selector: 'my-app',
|
|
168
|
-
* template: `
|
|
169
|
-
* <kendo-maskedtextbox (focus)="handleFocus()"></kendo-maskedtextbox>
|
|
170
|
-
* `
|
|
171
|
-
* })
|
|
172
|
-
* class AppComponent {
|
|
173
|
-
* public handleFocus(): void {
|
|
174
|
-
* console.log("Component is focused");
|
|
175
|
-
* }
|
|
176
|
-
* }
|
|
177
|
-
* ```
|
|
178
150
|
*/
|
|
179
151
|
onFocus: EventEmitter<any>;
|
|
180
152
|
/**
|
|
181
|
-
* Fires
|
|
153
|
+
* Fires when the MaskedTextBox gets blurred.
|
|
182
154
|
*
|
|
183
|
-
*
|
|
155
|
+
* To subscribe programmatically, use the `onBlur` property.
|
|
184
156
|
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```ts-no-run
|
|
187
|
-
* _@Component({
|
|
188
|
-
* selector: 'my-app',
|
|
189
|
-
* template: `
|
|
190
|
-
* <kendo-maskedtextbox (blur)="handleBlur()"></kendo-maskedtextbox>
|
|
191
|
-
* `
|
|
192
|
-
* })
|
|
193
|
-
* class AppComponent {
|
|
194
|
-
* public handleBlur(): void {
|
|
195
|
-
* console.log("Component is blurred");
|
|
196
|
-
* }
|
|
197
|
-
* }
|
|
198
|
-
* ```
|
|
199
157
|
*/
|
|
200
158
|
onBlur: EventEmitter<any>;
|
|
201
159
|
/**
|
|
202
|
-
* Fires
|
|
160
|
+
* Fires when the input element gets focused.
|
|
203
161
|
*/
|
|
204
162
|
inputFocus: EventEmitter<any>;
|
|
205
163
|
/**
|
|
206
|
-
* Fires
|
|
164
|
+
* Fires when the input element gets blurred.
|
|
207
165
|
*/
|
|
208
166
|
inputBlur: EventEmitter<any>;
|
|
209
167
|
/**
|
|
210
|
-
* Fires
|
|
168
|
+
* Fires when the value changes.
|
|
211
169
|
*/
|
|
212
170
|
valueChange: EventEmitter<string>;
|
|
213
171
|
direction: string;
|
|
214
172
|
hostClasses: boolean;
|
|
215
173
|
get hostDisabledClass(): boolean;
|
|
216
174
|
/**
|
|
217
|
-
*
|
|
175
|
+
* Returns the `ElementRef` of the visible `input` element.
|
|
218
176
|
*/
|
|
219
177
|
input: ElementRef;
|
|
220
178
|
/**
|
|
@@ -6,34 +6,23 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
import * as i1 from "./maskedtextbox/maskedtextbox.component";
|
|
7
7
|
import * as i2 from "@progress/kendo-angular-common";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* definition for the MaskedTextBox component.
|
|
9
|
+
* Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the MaskedTextBox component.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
11
|
+
* Use this module to add the MaskedTextBox component to your NgModule-based Angular application.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
16
15
|
* import { MaskedTextBoxModule } from '@progress/kendo-angular-inputs';
|
|
17
|
-
*
|
|
18
|
-
* // The browser platform with a compiler
|
|
19
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
20
|
-
*
|
|
21
16
|
* import { NgModule } from '@angular/core';
|
|
22
|
-
*
|
|
23
|
-
* // Import the app component
|
|
17
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
24
18
|
* import { AppComponent } from './app.component';
|
|
25
19
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* bootstrap: [AppComponent]
|
|
20
|
+
* @NgModule({
|
|
21
|
+
* declarations: [AppComponent],
|
|
22
|
+
* imports: [BrowserModule, MaskedTextBoxModule],
|
|
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 MaskedTextBoxModule {
|
|
@@ -6,7 +6,19 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
6
6
|
import { NumericTextBoxMessages } from './messages';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Overrides the default messages of the NumericTextBox component.
|
|
10
|
+
*
|
|
11
|
+
* Use this component to provide custom messages for the NumericTextBox.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-numerictextbox>
|
|
16
|
+
* <kendo-numerictextbox-messages
|
|
17
|
+
* [increment]="'Custom Increment Message'"
|
|
18
|
+
* [decrement]="'Custom Decrement Message'">
|
|
19
|
+
* </kendo-numerictextbox-messages>
|
|
20
|
+
* <kendo-numerictextbox>
|
|
21
|
+
* ```
|
|
10
22
|
*/
|
|
11
23
|
export declare class NumericTextBoxCustomMessagesComponent extends NumericTextBoxMessages {
|
|
12
24
|
protected service: LocalizationService;
|
|
@@ -9,11 +9,11 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class NumericTextBoxMessages extends ComponentMessages {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Sets the title of the **Decrement** button in the NumericTextBox.
|
|
13
13
|
*/
|
|
14
14
|
decrement: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Sets the title of the **Increment** button in the NumericTextBox.
|
|
17
17
|
*/
|
|
18
18
|
increment: string;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericTextBoxMessages, never>;
|