@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
|
@@ -6,11 +6,11 @@ import { ElementRef, Renderer2 } from '@angular/core';
|
|
|
6
6
|
import { InputSize } from '../common/models';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents the directive that renders the
|
|
10
|
-
*
|
|
9
|
+
* Represents the directive that renders the Kendo UI RadioButton input component.
|
|
10
|
+
* Place the directive on `input type="radio"` HTML elements.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* ```
|
|
13
|
+
* ```html
|
|
14
14
|
* <input type="radio" kendoRadioButton />
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
@@ -19,13 +19,9 @@ export declare class RadioButtonDirective {
|
|
|
19
19
|
private hostElement;
|
|
20
20
|
kendoClass: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* The size property
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* * `small`
|
|
26
|
-
* * `medium` (default)
|
|
27
|
-
* * `large`
|
|
28
|
-
* * `none`
|
|
22
|
+
* Specifies the `size` of the RadioButton. The `size` property changes the width and height of the RadioButton ([see example]({% slug appearance_radiobuttondirective %}#toc-size)).
|
|
23
|
+
*
|
|
24
|
+
* @default "medium"
|
|
29
25
|
*/
|
|
30
26
|
set size(size: InputSize);
|
|
31
27
|
get size(): InputSize;
|
package/radiobutton.module.d.ts
CHANGED
|
@@ -6,34 +6,24 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
import * as i1 from "./radiobutton/radiobutton.component";
|
|
7
7
|
import * as i2 from "./radiobutton/radiobutton.directive";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Defines the [NgModule](link:site.data.urls.angular['ngmoduleapi']) for the RadioButton directive and RadioButton component.
|
|
10
|
+
*
|
|
11
|
+
* Use this module to add the RadioButton directive and component to your NgModule-based Angular application.
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
*
|
|
14
|
-
* ```
|
|
15
|
-
* // Import the RadioButton module
|
|
15
|
+
* ```typescript
|
|
16
16
|
* import { RadioButtonModule } 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
|
|
18
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
24
19
|
* import { AppComponent } from './app.component';
|
|
25
20
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* imports: [BrowserModule, RadioButtonModule], // import RadioButton module
|
|
21
|
+
* @NgModule({
|
|
22
|
+
* declarations: [AppComponent],
|
|
23
|
+
* imports: [BrowserModule, RadioButtonModule],
|
|
30
24
|
* bootstrap: [AppComponent]
|
|
31
25
|
* })
|
|
32
26
|
* export class AppModule {}
|
|
33
|
-
*
|
|
34
|
-
* // Compile and launch the module
|
|
35
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
36
|
-
*
|
|
37
27
|
* ```
|
|
38
28
|
*/
|
|
39
29
|
export declare class RadioButtonModule {
|
|
@@ -6,7 +6,17 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
6
6
|
import { RangeSliderMessages } from './messages';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Lets you override the default messages of the RangeSlider component.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
*
|
|
13
|
+
* ```html
|
|
14
|
+
* <kendo-rangeslider-messages
|
|
15
|
+
* decreaseHandle="Decrease handle"
|
|
16
|
+
* increaseHandle="Increase handle"
|
|
17
|
+
* decreaseRange="Decrease range">
|
|
18
|
+
* </kendo-rangeslider-messages>
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
export declare class RangeSliderCustomMessagesComponent extends RangeSliderMessages {
|
|
12
22
|
protected service: LocalizationService;
|
|
@@ -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
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Defines the value type of the RangeSlider as an array of two numbers `[number, number]`.
|
|
7
|
+
* The array represents the start and end of the range.
|
|
8
8
|
*/
|
|
9
9
|
export type RangeSliderValue = [number, number];
|
|
@@ -9,7 +9,16 @@ import { SliderBase } from '../sliders-common/slider-base';
|
|
|
9
9
|
import { RangeSliderValue } from './rangeslider-value.type';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* Represents the
|
|
12
|
+
* Represents the Kendo UI RangeSlider component for Angular.
|
|
13
|
+
* Use this component to let users select a range of values.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-rangeslider [value]="[10, 50]" [min]="0" [max]="100"></kendo-rangeslider>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Supported children components are: {@link RangeSliderCustomMessagesComponent}.
|
|
13
22
|
*/
|
|
14
23
|
export declare class RangeSliderComponent extends SliderBase implements AfterViewInit, ControlValueAccessor, OnChanges, OnDestroy {
|
|
15
24
|
protected localization: LocalizationService;
|
|
@@ -20,7 +29,7 @@ export declare class RangeSliderComponent extends SliderBase implements AfterVie
|
|
|
20
29
|
protected hostElement: ElementRef;
|
|
21
30
|
/**
|
|
22
31
|
* Sets the range value of the RangeSlider.
|
|
23
|
-
*
|
|
32
|
+
* Use either `ngModel` or the `value` binding, but not both at the same time.
|
|
24
33
|
*/
|
|
25
34
|
value: RangeSliderValue;
|
|
26
35
|
draghandleStart: ElementRef;
|
|
@@ -46,23 +55,10 @@ export declare class RangeSliderComponent extends SliderBase implements AfterVie
|
|
|
46
55
|
/**
|
|
47
56
|
* Focuses the RangeSlider.
|
|
48
57
|
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts-no-run
|
|
51
|
-
* _@Component({
|
|
52
|
-
* selector: 'my-app',
|
|
53
|
-
* template: `
|
|
54
|
-
* <div>
|
|
55
|
-
* <button class="k-button" (click)="slider.focus()">Focus</button>
|
|
56
|
-
* </div>
|
|
57
|
-
* <kendo-rangeslider #slider></kendo-rangeslider>
|
|
58
|
-
* `
|
|
59
|
-
* })
|
|
60
|
-
* class AppComponent { }
|
|
61
|
-
* ```
|
|
62
58
|
*/
|
|
63
59
|
focus(): void;
|
|
64
60
|
/**
|
|
65
|
-
*
|
|
61
|
+
* Removes focus from the RangeSlider.
|
|
66
62
|
*/
|
|
67
63
|
blur(): void;
|
|
68
64
|
ngOnInit(): void;
|
package/rangeslider.module.d.ts
CHANGED
|
@@ -7,35 +7,24 @@ import * as i1 from "./rangeslider/rangeslider.component";
|
|
|
7
7
|
import * as i2 from "./rangeslider/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 RangeSlider component.
|
|
11
|
+
*
|
|
12
|
+
* Use this module to add the RangeSlider 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 { RangeSliderModule } 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, RangeSliderModule], // import RangeSlider module
|
|
22
|
+
* @NgModule({
|
|
23
|
+
* declarations: [AppComponent],
|
|
24
|
+
* imports: [BrowserModule, BrowserAnimationsModule, RangeSliderModule],
|
|
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 RangeSliderModule {
|
|
@@ -5,10 +5,18 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Renders the hovered rating item content.
|
|
9
|
-
* with the `kendoRatingHoveredItemTemplate` directive inside the `<kendo-rating>` tag
|
|
10
|
-
*
|
|
8
|
+
* Renders the hovered rating item content.
|
|
9
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingHoveredItemTemplate` directive inside the `<kendo-rating>` tag ([see example](slug:templates_rating)).
|
|
10
|
+
*
|
|
11
11
|
* The index of the currently hovered item is available as an implicit context using the `let-index="index"` syntax.
|
|
12
|
+
* * @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <kendo-rating [value]="ratingValue">
|
|
15
|
+
* <ng-template kendoRatingHoveredItemTemplate let-index="index">
|
|
16
|
+
* <span>Hovered item: {{ index }}</span>
|
|
17
|
+
* </ng-template>
|
|
18
|
+
* </kendo-rating>
|
|
19
|
+
* ```
|
|
12
20
|
*/
|
|
13
21
|
export declare class RatingHoveredItemTemplateDirective {
|
|
14
22
|
templateRef: TemplateRef<any>;
|
|
@@ -5,10 +5,17 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Renders the rating item content.
|
|
9
|
-
* with the `kendoRatingItemTemplate` directive inside the `<kendo-rating>` tag
|
|
10
|
-
* [see example](slug:templates_rating).
|
|
8
|
+
* Renders the rating item content.
|
|
9
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingItemTemplate` directive inside the `<kendo-rating>` tag ([see example](slug:templates_rating)).
|
|
11
10
|
* The index of the current item is available as an implicit context using the `let-index="index"` syntax.
|
|
11
|
+
* * @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-rating [value]="ratingValue">
|
|
14
|
+
* <ng-template kendoRatingItemTemplate let-index="index">
|
|
15
|
+
* <span>Item: {{ index }}</span>
|
|
16
|
+
* </ng-template>
|
|
17
|
+
* </kendo-rating>
|
|
18
|
+
* ```
|
|
12
19
|
*/
|
|
13
20
|
export declare class RatingItemTemplateDirective {
|
|
14
21
|
templateRef: TemplateRef<any>;
|
|
@@ -5,10 +5,19 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Renders the selected rating item content.
|
|
9
|
-
* with the `kendoRatingSelectedItemTemplate` directive inside the `<kendo-rating>` tag
|
|
10
|
-
*
|
|
8
|
+
* Renders the selected rating item content.
|
|
9
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingSelectedItemTemplate` directive inside the `<kendo-rating>` tag ([see example](slug:templates_rating)).
|
|
10
|
+
*
|
|
11
11
|
* The index of the currently selected item is available as an implicit context using the `let-index="index"` syntax.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-rating [value]="ratingValue">
|
|
16
|
+
* <ng-template kendoRatingSelectedItemTemplate let-index="index">
|
|
17
|
+
* <span>Selected item: {{ index }}</span>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-rating>
|
|
20
|
+
* ```
|
|
12
21
|
*/
|
|
13
22
|
export declare class RatingSelectedItemTemplateDirective {
|
|
14
23
|
templateRef: TemplateRef<any>;
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Sets the precision with which an item is selected.
|
|
7
7
|
*
|
|
8
8
|
* The available values are:
|
|
9
9
|
* * `item` (default)
|
|
10
10
|
* * `half`
|
|
11
|
-
*
|
|
12
11
|
*/
|
|
13
12
|
export type RatingPrecision = 'item' | 'half';
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
|
-
* Sets the selection mode of the Rating ([see example]({% slug selection_rating %})).
|
|
6
|
+
* Sets the `selection` mode of the Rating ([see example]({% slug selection_rating %})).
|
|
7
7
|
*
|
|
8
8
|
* The available values are:
|
|
9
9
|
* * `continuous` (default)
|
|
10
10
|
* * `single`
|
|
11
|
-
*
|
|
12
11
|
*/
|
|
13
12
|
export type RatingSelectionMode = 'continuous' | 'single';
|
|
@@ -14,7 +14,13 @@ import { RatingSelectedItemTemplateDirective } from './directives/rating-selecte
|
|
|
14
14
|
import { RatingPrecision } from './models/precision';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
/**
|
|
17
|
-
* Represents the
|
|
17
|
+
* Represents the Kendo UI Rating component for Angular.
|
|
18
|
+
* Use this component to let users select a rating value.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-rating [itemsCount]="5" [(value)]="ratingValue"></kendo-rating>
|
|
23
|
+
* ```
|
|
18
24
|
*/
|
|
19
25
|
export declare class RatingComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
20
26
|
element: ElementRef;
|
|
@@ -26,37 +32,36 @@ export declare class RatingComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
26
32
|
hoveredItemTemplate: RatingHoveredItemTemplateDirective;
|
|
27
33
|
selectedItemTemplate: RatingSelectedItemTemplateDirective;
|
|
28
34
|
/**
|
|
29
|
-
*
|
|
35
|
+
* When `true`, disables the Rating ([see example]({% slug disabledstate_rating %})).
|
|
36
|
+
|
|
37
|
+
* To disable the component in reactive forms, see [Forms Support](slug:formssupport_rating#toc-managing-the-rating-disabled-state-in-reactive-forms).
|
|
30
38
|
*
|
|
31
39
|
* @default false
|
|
32
|
-
*
|
|
33
40
|
*/
|
|
34
41
|
disabled: boolean;
|
|
35
42
|
/**
|
|
36
|
-
*
|
|
43
|
+
* When `true`, sets the Rating to read-only ([see example]({% slug readonly_rating %})).
|
|
44
|
+
|
|
37
45
|
*
|
|
38
46
|
* @default false
|
|
39
|
-
*
|
|
40
47
|
*/
|
|
41
48
|
readonly: boolean;
|
|
42
49
|
/**
|
|
43
|
-
*
|
|
50
|
+
* Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Rating.
|
|
51
|
+
|
|
44
52
|
*
|
|
45
53
|
* @default 0
|
|
46
|
-
*
|
|
47
54
|
*/
|
|
48
55
|
tabindex: number;
|
|
49
56
|
/**
|
|
50
57
|
* Sets the number of Rating items ([see example]({% slug itemscount_rating %})).
|
|
51
58
|
*
|
|
52
59
|
* @default 5
|
|
53
|
-
*
|
|
54
60
|
*/
|
|
55
61
|
itemsCount: number;
|
|
56
62
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
63
|
+
* Sets the initial value of the Rating component.
|
|
64
|
+
* Use either `ngModel` or the `value` binding, but not both at the same time.
|
|
60
65
|
*/
|
|
61
66
|
set value(value: number);
|
|
62
67
|
get value(): number;
|
|
@@ -64,20 +69,18 @@ export declare class RatingComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
64
69
|
* Sets the selection mode of the Rating ([see example]({% slug selection_rating %})).
|
|
65
70
|
*
|
|
66
71
|
* @default 'continuous'
|
|
67
|
-
*
|
|
68
72
|
*/
|
|
69
73
|
set selection(selection: RatingSelectionMode);
|
|
70
74
|
get selection(): RatingSelectionMode;
|
|
71
75
|
/**
|
|
72
|
-
*
|
|
76
|
+
* Sets the precision of the Rating ([see example]({% slug precision_rating %})).
|
|
73
77
|
*
|
|
74
78
|
* @default 'item'
|
|
75
|
-
*
|
|
76
79
|
*/
|
|
77
80
|
set precision(precision: RatingPrecision);
|
|
78
81
|
get precision(): RatingPrecision;
|
|
79
82
|
/**
|
|
80
|
-
* Sets the
|
|
83
|
+
* Sets the label text for the Rating. The text renders in a `<span>` element ([see example]({% slug label_rating %})).
|
|
81
84
|
*/
|
|
82
85
|
label: string;
|
|
83
86
|
/**
|
|
@@ -85,15 +88,15 @@ export declare class RatingComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
85
88
|
*/
|
|
86
89
|
icon: string;
|
|
87
90
|
/**
|
|
88
|
-
* Sets a custom SVG icon for the selected
|
|
91
|
+
* Sets a custom SVG icon for the selected or hovered state of the Rating items ([see example]({% slug icon_rating %})).
|
|
89
92
|
*/
|
|
90
93
|
svgIcon: SVGIcon;
|
|
91
94
|
/**
|
|
92
|
-
* Sets a custom SVG icon for the default state of the Rating items when
|
|
95
|
+
* Sets a custom SVG icon for the default state of the Rating items when not hovered or selected ([see example]({% slug icon_rating %})).
|
|
93
96
|
*/
|
|
94
97
|
svgIconOutline: SVGIcon;
|
|
95
98
|
/**
|
|
96
|
-
* Fires
|
|
99
|
+
* Fires when the user selects a new value.
|
|
97
100
|
*/
|
|
98
101
|
valueChange: EventEmitter<number>;
|
|
99
102
|
hostClass: boolean;
|
package/rating.module.d.ts
CHANGED
|
@@ -8,34 +8,23 @@ import * as i2 from "./rating/directives/rating-item.directive";
|
|
|
8
8
|
import * as i3 from "./rating/directives/rating-hovered-item.directive";
|
|
9
9
|
import * as i4 from "./rating/directives/rating-selected-item.directive";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Defines the [`NgModule`](link:site.data.urls.angular['ngmoduleapi']) for the Rating component.
|
|
12
|
+
*
|
|
13
|
+
* Use this module to add the Rating component to your NgModule-based Angular application.
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
16
|
*
|
|
16
|
-
* ```
|
|
17
|
-
* // Import the Rating module
|
|
17
|
+
* ```typescript
|
|
18
18
|
* import { RatingModule } from '@progress/kendo-angular-inputs';
|
|
19
|
-
*
|
|
20
|
-
* // The browser platform with a compiler
|
|
21
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
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, RatingModule], // import Rating module
|
|
22
|
+
* @NgModule({
|
|
23
|
+
* declarations: [AppComponent],
|
|
24
|
+
* imports: [BrowserModule, RatingModule],
|
|
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 RatingModule {
|
|
@@ -5,26 +5,21 @@
|
|
|
5
5
|
import { SeparatorOrientation } from '@progress/kendo-angular-common';
|
|
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 declare 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
|
*/
|
|
@@ -6,11 +6,10 @@ import { ElementRef, EventEmitter, OnDestroy, Renderer2, OnChanges, OnInit, NgZo
|
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* Represents the
|
|
10
|
-
* Provides floating labels to `textarea` elements.
|
|
9
|
+
* Represents the Kendo UI TextArea directive for the Inputs components for Angular.
|
|
11
10
|
*
|
|
12
11
|
* @example
|
|
13
|
-
* ```
|
|
12
|
+
* ```html
|
|
14
13
|
* <textarea kendoTextArea></textarea>
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
@@ -24,18 +23,18 @@ export declare class TextAreaDirective implements OnInit, OnDestroy, OnChanges,
|
|
|
24
23
|
autofillClass: boolean;
|
|
25
24
|
direction: string;
|
|
26
25
|
/**
|
|
27
|
-
* Fires
|
|
26
|
+
* Fires when the TextArea value changes.
|
|
28
27
|
*/
|
|
29
28
|
valueChange: EventEmitter<any>;
|
|
30
29
|
/**
|
|
31
|
-
*
|
|
30
|
+
* Sets whether the `textarea` element resizes its height automatically
|
|
32
31
|
* ([see example](slug:textarea_sizing#toc-auto-resizing)).
|
|
33
32
|
*
|
|
34
33
|
* @default false
|
|
35
34
|
*/
|
|
36
35
|
autoSize: boolean;
|
|
37
36
|
/**
|
|
38
|
-
*
|
|
37
|
+
* Sets the textarea value.
|
|
39
38
|
*/
|
|
40
39
|
value: string;
|
|
41
40
|
/**
|
|
@@ -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 declare class SignatureCloseEvent extends PreventableEvent {
|
|
10
10
|
}
|
|
@@ -6,7 +6,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
6
6
|
import { SignatureMessages } from './messages';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Use this component to override the default Signature messages.
|
|
10
10
|
*/
|
|
11
11
|
export declare class SignatureCustomMessagesComponent extends SignatureMessages {
|
|
12
12
|
protected service: LocalizationService;
|