@progress/kendo-angular-inputs 19.1.1-develop.2 → 19.1.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
|
@@ -19,7 +19,13 @@ import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
|
19
19
|
import * as i0 from "@angular/core";
|
|
20
20
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
21
21
|
/**
|
|
22
|
-
* Represents the
|
|
22
|
+
* Represents the Kendo UI Rating component for Angular.
|
|
23
|
+
* Use this component to let users select a rating value.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```html
|
|
27
|
+
* <kendo-rating [itemsCount]="5" [(value)]="ratingValue"></kendo-rating>
|
|
28
|
+
* ```
|
|
23
29
|
*/
|
|
24
30
|
export class RatingComponent {
|
|
25
31
|
element;
|
|
@@ -31,37 +37,36 @@ export class RatingComponent {
|
|
|
31
37
|
hoveredItemTemplate;
|
|
32
38
|
selectedItemTemplate;
|
|
33
39
|
/**
|
|
34
|
-
*
|
|
40
|
+
* When `true`, disables the Rating ([see example]({% slug disabledstate_rating %})).
|
|
41
|
+
|
|
42
|
+
* To disable the component in reactive forms, see [Forms Support](slug:formssupport_rating#toc-managing-the-rating-disabled-state-in-reactive-forms).
|
|
35
43
|
*
|
|
36
44
|
* @default false
|
|
37
|
-
*
|
|
38
45
|
*/
|
|
39
46
|
disabled = false;
|
|
40
47
|
/**
|
|
41
|
-
*
|
|
48
|
+
* When `true`, sets the Rating to read-only ([see example]({% slug readonly_rating %})).
|
|
49
|
+
|
|
42
50
|
*
|
|
43
51
|
* @default false
|
|
44
|
-
*
|
|
45
52
|
*/
|
|
46
53
|
readonly = false;
|
|
47
54
|
/**
|
|
48
|
-
*
|
|
55
|
+
* Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Rating.
|
|
56
|
+
|
|
49
57
|
*
|
|
50
58
|
* @default 0
|
|
51
|
-
*
|
|
52
59
|
*/
|
|
53
60
|
tabindex = 0;
|
|
54
61
|
/**
|
|
55
62
|
* Sets the number of Rating items ([see example]({% slug itemscount_rating %})).
|
|
56
63
|
*
|
|
57
64
|
* @default 5
|
|
58
|
-
*
|
|
59
65
|
*/
|
|
60
66
|
itemsCount = 5;
|
|
61
67
|
/**
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
68
|
+
* Sets the initial value of the Rating component.
|
|
69
|
+
* Use either `ngModel` or the `value` binding, but not both at the same time.
|
|
65
70
|
*/
|
|
66
71
|
set value(value) {
|
|
67
72
|
this._value = value;
|
|
@@ -74,7 +79,6 @@ export class RatingComponent {
|
|
|
74
79
|
* Sets the selection mode of the Rating ([see example]({% slug selection_rating %})).
|
|
75
80
|
*
|
|
76
81
|
* @default 'continuous'
|
|
77
|
-
*
|
|
78
82
|
*/
|
|
79
83
|
set selection(selection) {
|
|
80
84
|
this._selection = selection;
|
|
@@ -84,10 +88,9 @@ export class RatingComponent {
|
|
|
84
88
|
return this._selection;
|
|
85
89
|
}
|
|
86
90
|
/**
|
|
87
|
-
*
|
|
91
|
+
* Sets the precision of the Rating ([see example]({% slug precision_rating %})).
|
|
88
92
|
*
|
|
89
93
|
* @default 'item'
|
|
90
|
-
*
|
|
91
94
|
*/
|
|
92
95
|
set precision(precision) {
|
|
93
96
|
this._precision = precision;
|
|
@@ -97,7 +100,7 @@ export class RatingComponent {
|
|
|
97
100
|
return this._precision;
|
|
98
101
|
}
|
|
99
102
|
/**
|
|
100
|
-
* Sets the
|
|
103
|
+
* Sets the label text for the Rating. The text renders in a `<span>` element ([see example]({% slug label_rating %})).
|
|
101
104
|
*/
|
|
102
105
|
label;
|
|
103
106
|
/**
|
|
@@ -105,15 +108,15 @@ export class RatingComponent {
|
|
|
105
108
|
*/
|
|
106
109
|
icon;
|
|
107
110
|
/**
|
|
108
|
-
* Sets a custom SVG icon for the selected
|
|
111
|
+
* Sets a custom SVG icon for the selected or hovered state of the Rating items ([see example]({% slug icon_rating %})).
|
|
109
112
|
*/
|
|
110
113
|
svgIcon = starIcon;
|
|
111
114
|
/**
|
|
112
|
-
* Sets a custom SVG icon for the default state of the Rating items when
|
|
115
|
+
* Sets a custom SVG icon for the default state of the Rating items when not hovered or selected ([see example]({% slug icon_rating %})).
|
|
113
116
|
*/
|
|
114
117
|
svgIconOutline = starOutlineIcon;
|
|
115
118
|
/**
|
|
116
|
-
* Fires
|
|
119
|
+
* Fires when the user selects a new value.
|
|
117
120
|
*/
|
|
118
121
|
valueChange = new EventEmitter();
|
|
119
122
|
hostClass = true;
|
|
@@ -507,7 +510,7 @@ export class RatingComponent {
|
|
|
507
510
|
</span>
|
|
508
511
|
</span>
|
|
509
512
|
|
|
510
|
-
<span
|
|
513
|
+
<span
|
|
511
514
|
*ngIf="label"
|
|
512
515
|
class="k-rating-label"
|
|
513
516
|
>{{ label }}</span>
|
|
@@ -664,7 +667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
664
667
|
</span>
|
|
665
668
|
</span>
|
|
666
669
|
|
|
667
|
-
<span
|
|
670
|
+
<span
|
|
668
671
|
*ngIf="label"
|
|
669
672
|
class="k-rating-label"
|
|
670
673
|
>{{ label }}</span>
|
|
@@ -12,34 +12,23 @@ import * as i3 from "./rating/directives/rating-hovered-item.directive";
|
|
|
12
12
|
import * as i4 from "./rating/directives/rating-selected-item.directive";
|
|
13
13
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Rating component.
|
|
16
|
+
*
|
|
17
|
+
* Use this module to add the Rating component to your NgModule-based Angular application.
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
*
|
|
20
|
-
* ```
|
|
21
|
-
* // Import the Rating module
|
|
21
|
+
* ```typescript
|
|
22
22
|
* import { RatingModule } from '@progress/kendo-angular-inputs';
|
|
23
|
-
*
|
|
24
|
-
* // The browser platform with a compiler
|
|
25
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
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, RatingModule], // import Rating module
|
|
26
|
+
* @NgModule({
|
|
27
|
+
* declarations: [AppComponent],
|
|
28
|
+
* imports: [BrowserModule, RatingModule],
|
|
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 RatingModule {
|
|
@@ -5,26 +5,21 @@
|
|
|
5
5
|
import { Component, HostBinding, Input } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Represents a separator in the content of components like TextArea and TextBox. ([see examples]({% slug adornments_textbox %}#toc-separator)).
|
|
9
|
+
*
|
|
9
10
|
* @example
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* <button kendoButton look="clear" icon="image"></button>
|
|
18
|
-
* </ng-template>
|
|
19
|
-
* </kendo-textbox>
|
|
20
|
-
* `
|
|
21
|
-
* })
|
|
22
|
-
* class AppComponent {}
|
|
11
|
+
* ```html
|
|
12
|
+
* <kendo-textbox>
|
|
13
|
+
* <ng-template kendoTextBoxSuffixTemplate>
|
|
14
|
+
* <kendo-input-separator></kendo-input-separator>
|
|
15
|
+
* <button kendoButton icon="image"></button>
|
|
16
|
+
* </ng-template>
|
|
17
|
+
* </kendo-textbox>
|
|
23
18
|
* ```
|
|
24
19
|
*/
|
|
25
20
|
export class InputSeparatorComponent {
|
|
26
21
|
/**
|
|
27
|
-
*
|
|
22
|
+
* Sets the orientation of the separator. Use this for the adornments of the [`TextAreaComponent`](slug:api_inputs_textareacomponent).
|
|
28
23
|
*
|
|
29
24
|
* @default 'vertical'
|
|
30
25
|
*/
|
|
@@ -11,11 +11,10 @@ import { fromEvent } from 'rxjs';
|
|
|
11
11
|
import { debounceTime, take } from 'rxjs/operators';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
/**
|
|
14
|
-
* Represents the
|
|
15
|
-
* Provides floating labels to `textarea` elements.
|
|
14
|
+
* Represents the Kendo UI TextArea directive for the Inputs components for Angular.
|
|
16
15
|
*
|
|
17
16
|
* @example
|
|
18
|
-
* ```
|
|
17
|
+
* ```html
|
|
19
18
|
* <textarea kendoTextArea></textarea>
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
@@ -29,18 +28,18 @@ export class TextAreaDirective {
|
|
|
29
28
|
autofillClass = true;
|
|
30
29
|
direction;
|
|
31
30
|
/**
|
|
32
|
-
* Fires
|
|
31
|
+
* Fires when the TextArea value changes.
|
|
33
32
|
*/
|
|
34
33
|
valueChange = new EventEmitter();
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
35
|
+
* Sets whether the `textarea` element resizes its height automatically
|
|
37
36
|
* ([see example](slug:textarea_sizing#toc-auto-resizing)).
|
|
38
37
|
*
|
|
39
38
|
* @default false
|
|
40
39
|
*/
|
|
41
40
|
autoSize = false;
|
|
42
41
|
/**
|
|
43
|
-
*
|
|
42
|
+
* Sets the textarea value.
|
|
44
43
|
*/
|
|
45
44
|
value;
|
|
46
45
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Provides arguments for the `close` event of the Signature component.
|
|
8
8
|
*/
|
|
9
9
|
export class SignatureCloseEvent extends PreventableEvent {
|
|
10
10
|
}
|
|
@@ -8,7 +8,7 @@ import { SignatureMessages } from './messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Use this component to override the default Signature messages.
|
|
12
12
|
*/
|
|
13
13
|
export class SignatureCustomMessagesComponent extends SignatureMessages {
|
|
14
14
|
service;
|
|
@@ -35,7 +35,15 @@ const iconsMap = { xIcon, hyperlinkOpenIcon };
|
|
|
35
35
|
/**
|
|
36
36
|
* Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* Use the Signature to let users add a hand-drawn signature to forms.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```html
|
|
42
|
+
* <kendo-signature [(ngModel)]="signatureValue"></kendo-signature>
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Supported children components are: {@link SignatureCustomMessagesComponent}.
|
|
39
47
|
*/
|
|
40
48
|
export class SignatureComponent {
|
|
41
49
|
element;
|
|
@@ -53,29 +61,34 @@ export class SignatureComponent {
|
|
|
53
61
|
/**
|
|
54
62
|
* Sets the read-only state of the Signature.
|
|
55
63
|
*
|
|
64
|
+
* Set to `true` to prevent editing.
|
|
65
|
+
*
|
|
56
66
|
* @default false
|
|
57
67
|
*/
|
|
58
68
|
readonly = false;
|
|
59
69
|
/**
|
|
60
|
-
* Sets the disabled state of the Signature.
|
|
70
|
+
* Sets the disabled state of the Signature.
|
|
71
|
+
*
|
|
72
|
+
* Set to `true` to disable the component and prevent any user interaction.
|
|
73
|
+
* 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).
|
|
61
74
|
*
|
|
62
75
|
* @default false
|
|
63
76
|
*/
|
|
64
77
|
disabled = false;
|
|
65
78
|
/**
|
|
66
|
-
* Sets the width of the
|
|
79
|
+
* Sets the width of the Signature in pixels.
|
|
67
80
|
*
|
|
68
|
-
*
|
|
81
|
+
* You can also set the width using inline styles or CSS.
|
|
69
82
|
*/
|
|
70
83
|
width;
|
|
71
84
|
/**
|
|
72
|
-
*
|
|
85
|
+
* Sets the height of the Signature in pixels.
|
|
73
86
|
*
|
|
74
|
-
*
|
|
87
|
+
* You can also set the height using inline styles or CSS.
|
|
75
88
|
*/
|
|
76
89
|
height;
|
|
77
90
|
/**
|
|
78
|
-
* Gets or sets the value of the
|
|
91
|
+
* Gets or sets the value of the Signature.
|
|
79
92
|
*
|
|
80
93
|
* The value is a Base64-encoded PNG image.
|
|
81
94
|
*/
|
|
@@ -110,69 +123,54 @@ export class SignatureComponent {
|
|
|
110
123
|
return !this.disabled ? this._tabindex : undefined;
|
|
111
124
|
}
|
|
112
125
|
/**
|
|
113
|
-
*
|
|
114
|
-
* ([
|
|
126
|
+
* Sets the padding of the Signature internal controls
|
|
127
|
+
* ([ee example]({% slug appearance_signature %}#toc-size)).
|
|
115
128
|
*
|
|
116
|
-
*
|
|
117
|
-
* * `small`
|
|
118
|
-
* * `medium` (default)
|
|
119
|
-
* * `large`
|
|
120
|
-
* * `none`
|
|
129
|
+
* @default 'medium'
|
|
121
130
|
*/
|
|
122
131
|
size = DEFAULT_SIZE;
|
|
123
132
|
/**
|
|
124
|
-
*
|
|
133
|
+
* Sets the border radius of the Signature
|
|
125
134
|
* ([see example](slug:appearance_signature#rounded-corners)).
|
|
126
135
|
*
|
|
127
|
-
*
|
|
128
|
-
* * `small`
|
|
129
|
-
* * `medium` (default)
|
|
130
|
-
* * `large`
|
|
131
|
-
* * `full` (not supported by the Signature)
|
|
132
|
-
* * `none`
|
|
136
|
+
* @default 'medium'
|
|
133
137
|
*/
|
|
134
138
|
rounded = DEFAULT_ROUNDED;
|
|
135
139
|
/**
|
|
136
|
-
*
|
|
140
|
+
* Sets the background and border styles of the Signature
|
|
137
141
|
* ([see example](slug:appearance_signature#toc-fill-mode)).
|
|
138
142
|
*
|
|
139
|
-
*
|
|
140
|
-
* * `flat`
|
|
141
|
-
* * `solid` (default)
|
|
142
|
-
* * `outline`
|
|
143
|
-
* * `none`
|
|
143
|
+
* @default 'solid'
|
|
144
144
|
*/
|
|
145
145
|
fillMode = DEFAULT_FILL_MODE;
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* Sets the stroke color of the Signature.
|
|
148
148
|
*
|
|
149
149
|
* Accepts CSS color names and hex values.
|
|
150
|
-
*
|
|
151
150
|
* The default value is determined by the theme `$kendo-input-text` variable.
|
|
152
151
|
*/
|
|
153
152
|
color;
|
|
154
153
|
/**
|
|
155
|
-
*
|
|
154
|
+
* Sets the background color of the Signature.
|
|
156
155
|
*
|
|
157
156
|
* Accepts CSS color names and hex values.
|
|
158
|
-
*
|
|
159
157
|
* The default value is determined by the theme `$kendo-input-bg` variable.
|
|
160
158
|
*/
|
|
161
159
|
backgroundColor;
|
|
162
160
|
/**
|
|
163
|
-
*
|
|
161
|
+
* Sets the stroke width of the Signature.
|
|
164
162
|
*
|
|
165
163
|
* @default 1
|
|
166
164
|
*/
|
|
167
165
|
strokeWidth = 1;
|
|
168
166
|
/**
|
|
169
|
-
*
|
|
167
|
+
* When set to `true`, smooths out signature lines.
|
|
170
168
|
*
|
|
171
169
|
* @default false
|
|
172
170
|
*/
|
|
173
171
|
smooth = false;
|
|
174
172
|
/**
|
|
175
|
-
*
|
|
173
|
+
* When set to `true`, allows the Signature to be maximized.
|
|
176
174
|
*
|
|
177
175
|
* @default true
|
|
178
176
|
*/
|
|
@@ -182,17 +180,17 @@ export class SignatureComponent {
|
|
|
182
180
|
*/
|
|
183
181
|
maximized = false;
|
|
184
182
|
/**
|
|
185
|
-
*
|
|
183
|
+
* Sets the scale factor for the popup.
|
|
186
184
|
*
|
|
187
|
-
* The Signature width and height
|
|
185
|
+
* The Signature width and height are multiplied by this value when showing the popup.
|
|
188
186
|
*
|
|
189
187
|
* @default 3
|
|
190
188
|
*/
|
|
191
189
|
popupScale = DEFAULT_POPUP_SCALE;
|
|
192
190
|
/**
|
|
193
|
-
*
|
|
191
|
+
* Sets the scale factor for the exported image.
|
|
194
192
|
*
|
|
195
|
-
* The Signature width and height
|
|
193
|
+
* The Signature width and height are multiplied by this value when converting the signature to an image.
|
|
196
194
|
*
|
|
197
195
|
* @default 2
|
|
198
196
|
*/
|
|
@@ -202,31 +200,33 @@ export class SignatureComponent {
|
|
|
202
200
|
*/
|
|
203
201
|
parentLocalization;
|
|
204
202
|
/**
|
|
205
|
-
*
|
|
203
|
+
* When set to `true`, hides the dotted line in the background.
|
|
206
204
|
*
|
|
207
205
|
* @default false
|
|
208
206
|
*/
|
|
209
207
|
hideLine = false;
|
|
210
208
|
/**
|
|
211
|
-
* Fires
|
|
209
|
+
* Fires when the signature value changes.
|
|
212
210
|
*/
|
|
213
211
|
valueChange = new EventEmitter();
|
|
214
212
|
/**
|
|
215
|
-
* Fires
|
|
216
|
-
*
|
|
213
|
+
* Fires before the popup opens.
|
|
214
|
+
*
|
|
215
|
+
* This event is preventable. If you cancel it, the popup stays closed.
|
|
217
216
|
*/
|
|
218
217
|
open = new EventEmitter();
|
|
219
218
|
/**
|
|
220
|
-
* Fires
|
|
221
|
-
*
|
|
219
|
+
* Fires before the popup closes.
|
|
220
|
+
*
|
|
221
|
+
* This event is preventable. If you cancel it, the popup stays open.
|
|
222
222
|
*/
|
|
223
223
|
close = new EventEmitter();
|
|
224
224
|
/**
|
|
225
|
-
* Fires
|
|
225
|
+
* Fires when the Signature receives focus.
|
|
226
226
|
*/
|
|
227
227
|
onFocus = new EventEmitter();
|
|
228
228
|
/**
|
|
229
|
-
* Fires
|
|
229
|
+
* Fires when the Signature loses focus.
|
|
230
230
|
*/
|
|
231
231
|
onBlur = new EventEmitter();
|
|
232
232
|
/**
|
|
@@ -237,11 +237,11 @@ export class SignatureComponent {
|
|
|
237
237
|
minimizeButton;
|
|
238
238
|
maximizeButton;
|
|
239
239
|
/**
|
|
240
|
-
* Indicates
|
|
240
|
+
* Indicates if the Signature wrapper is focused.
|
|
241
241
|
*/
|
|
242
242
|
isFocused = false;
|
|
243
243
|
/**
|
|
244
|
-
* Indicates
|
|
244
|
+
* Indicates if the Signature popup is open.
|
|
245
245
|
*/
|
|
246
246
|
isOpen;
|
|
247
247
|
/**
|
|
@@ -498,9 +498,10 @@ export class SignatureComponent {
|
|
|
498
498
|
}
|
|
499
499
|
/**
|
|
500
500
|
* Toggles the popup of the Signature.
|
|
501
|
-
* Does not trigger the `open` and `close` events of the component.
|
|
502
501
|
*
|
|
503
|
-
*
|
|
502
|
+
* Does not trigger the `open` and `close` events.
|
|
503
|
+
*
|
|
504
|
+
* @param open Optional. Set to `true` to open or `false` to close the popup.
|
|
504
505
|
*/
|
|
505
506
|
toggle(open) {
|
|
506
507
|
if (this.disabled || this.readonly) {
|
|
@@ -552,7 +553,7 @@ export class SignatureComponent {
|
|
|
552
553
|
this.backgroundColor = this.backgroundColor || defaultBackgroundColor;
|
|
553
554
|
}
|
|
554
555
|
/**
|
|
555
|
-
* Focuses the wrapper
|
|
556
|
+
* Focuses the Signature wrapper container.
|
|
556
557
|
*/
|
|
557
558
|
focus() {
|
|
558
559
|
this.focused = true;
|
|
@@ -13,34 +13,23 @@ import * as i1 from "./signature/signature.component";
|
|
|
13
13
|
import * as i2 from "./signature/localization/custom-messages.component";
|
|
14
14
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Signature component.
|
|
17
|
+
*
|
|
18
|
+
* Use this module to add the Signature component to your NgModule-based Angular application.
|
|
18
19
|
*
|
|
19
20
|
* @example
|
|
20
21
|
*
|
|
21
|
-
* ```
|
|
22
|
-
* // Import the Signature module
|
|
22
|
+
* ```typescript
|
|
23
23
|
* import { SignatureModule } from '@progress/kendo-angular-inputs';
|
|
24
|
-
*
|
|
25
|
-
* // The browser platform with a compiler
|
|
26
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
27
|
-
*
|
|
28
24
|
* import { NgModule } from '@angular/core';
|
|
29
|
-
*
|
|
30
|
-
* // Import the app component
|
|
31
25
|
* import { AppComponent } from './app.component';
|
|
32
26
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* imports: [BrowserModule, SignatureModule], // import Signature module
|
|
27
|
+
* @NgModule({
|
|
28
|
+
* declarations: [AppComponent],
|
|
29
|
+
* imports: [BrowserModule, SignatureModule],
|
|
37
30
|
* bootstrap: [AppComponent]
|
|
38
31
|
* })
|
|
39
32
|
* export class AppModule {}
|
|
40
|
-
*
|
|
41
|
-
* // Compile and launch the module
|
|
42
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
43
|
-
*
|
|
44
33
|
* ```
|
|
45
34
|
*/
|
|
46
35
|
export class SignatureModule {
|
|
@@ -8,7 +8,7 @@ import { SliderMessages } from './messages';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Use this component to override the default Slider messages.
|
|
12
12
|
*/
|
|
13
13
|
export class SliderCustomMessagesComponent extends SliderMessages {
|
|
14
14
|
service;
|
|
@@ -25,6 +25,14 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
25
25
|
const PRESSED = 'k-pressed';
|
|
26
26
|
/**
|
|
27
27
|
* Represents the [Kendo UI Slider component for Angular]({% slug overview_slider %}).
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <kendo-slider [min]="0" [max]="10" [smallStep]="1" [(ngModel)]="value"></kendo-slider>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Supported children components are: {@link SliderCustomMessagesComponent}.
|
|
28
36
|
*/
|
|
29
37
|
export class SliderComponent extends SliderBase {
|
|
30
38
|
localization;
|
|
@@ -38,7 +46,7 @@ export class SliderComponent extends SliderBase {
|
|
|
38
46
|
*/
|
|
39
47
|
focusableId = `k-${guid()}`;
|
|
40
48
|
/**
|
|
41
|
-
* Changes the `title` attribute of the drag handle
|
|
49
|
+
* Changes the `title` attribute of the drag handle. Use this property to localize the drag handle title.
|
|
42
50
|
*/
|
|
43
51
|
dragHandleTitle;
|
|
44
52
|
/**
|
|
@@ -46,8 +54,9 @@ export class SliderComponent extends SliderBase {
|
|
|
46
54
|
*/
|
|
47
55
|
incrementTitle;
|
|
48
56
|
/**
|
|
49
|
-
* Determines if the
|
|
50
|
-
*
|
|
57
|
+
* Determines if the component animates when the value changes.
|
|
58
|
+
* The component does not animate during initial rendering.
|
|
59
|
+
* @default true
|
|
51
60
|
*/
|
|
52
61
|
animate = true;
|
|
53
62
|
/**
|
|
@@ -55,13 +64,15 @@ export class SliderComponent extends SliderBase {
|
|
|
55
64
|
*/
|
|
56
65
|
decrementTitle;
|
|
57
66
|
/**
|
|
58
|
-
*
|
|
59
|
-
* When `showButtons`
|
|
67
|
+
* Shows or hides the arrow side buttons of the Slider ([see example]({% slug sidebuttons_slider %}#toc-hidden-state)).
|
|
68
|
+
* When you set `showButtons` to `false`, the component does not display the buttons.
|
|
69
|
+
* @default true
|
|
60
70
|
*/
|
|
61
71
|
showButtons = true;
|
|
62
72
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
73
|
+
* Sets the current value of the Slider when it first appears.
|
|
74
|
+
* Use either `ngModel` or the `value` binding, but not both at the same time.
|
|
75
|
+
* @default 0
|
|
65
76
|
*/
|
|
66
77
|
value = this.min;
|
|
67
78
|
/**
|
|
@@ -111,18 +122,6 @@ export class SliderComponent extends SliderBase {
|
|
|
111
122
|
}
|
|
112
123
|
/**
|
|
113
124
|
* Focuses the Slider.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts-no-run
|
|
117
|
-
* _@Component({
|
|
118
|
-
* selector: 'my-app',
|
|
119
|
-
* template: `
|
|
120
|
-
* <button (click)="slider.focus()">Focus</button>
|
|
121
|
-
* <kendo-slider #slider></kendo-slider>
|
|
122
|
-
* `
|
|
123
|
-
* })
|
|
124
|
-
* class AppComponent { }
|
|
125
|
-
* ```
|
|
126
125
|
*/
|
|
127
126
|
focus() {
|
|
128
127
|
if (!this.disabled) {
|
|
@@ -13,35 +13,24 @@ import * as i2 from "./slider/localization/custom-messages.component";
|
|
|
13
13
|
import * as i3 from "./sliders-common/label-template.directive";
|
|
14
14
|
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Slider component.
|
|
17
|
+
*
|
|
18
|
+
* Use this module to add the Slider component to your NgModule-based Angular application.
|
|
18
19
|
*
|
|
19
20
|
* @example
|
|
20
21
|
*
|
|
21
|
-
* ```
|
|
22
|
-
* // Import the Inputs module
|
|
22
|
+
* ```typescript
|
|
23
23
|
* import { SliderModule } from '@progress/kendo-angular-inputs';
|
|
24
|
-
*
|
|
25
|
-
* // The browser platform with a compiler
|
|
26
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
27
24
|
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
28
|
-
*
|
|
29
25
|
* import { NgModule } from '@angular/core';
|
|
30
|
-
*
|
|
31
|
-
* // Import the app component
|
|
32
26
|
* import { AppComponent } from './app.component';
|
|
33
27
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* imports: [BrowserModule, BrowserAnimationsModule, SliderModule], // import Slider module
|
|
28
|
+
* @NgModule({
|
|
29
|
+
* declarations: [AppComponent],
|
|
30
|
+
* imports: [BrowserModule, BrowserAnimationsModule, SliderModule],
|
|
38
31
|
* bootstrap: [AppComponent]
|
|
39
32
|
* })
|
|
40
33
|
* export class AppModule {}
|
|
41
|
-
*
|
|
42
|
-
* // Compile and launch the module
|
|
43
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
44
|
-
*
|
|
45
34
|
* ```
|
|
46
35
|
*/
|
|
47
36
|
export class SliderModule {
|