@progress/kendo-angular-inputs 22.1.0-develop.9 → 23.0.0-develop.10
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 +1 -3
- package/checkbox/checkbox.directive.d.ts +3 -7
- package/colorpicker/color-gradient.component.d.ts +3 -4
- package/colorpicker/color-input.component.d.ts +1 -2
- package/colorpicker/color-palette.component.d.ts +2 -3
- package/colorpicker/colorpicker.component.d.ts +5 -11
- package/colorpicker/flatcolorpicker.component.d.ts +2 -3
- package/common/models/fillmode.d.ts +1 -2
- package/common/models/rounded.d.ts +0 -2
- package/common/models/size.d.ts +1 -2
- package/common/radio-checkbox.base.d.ts +1 -2
- package/common/utils.d.ts +1 -0
- package/fesm2022/progress-kendo-angular-inputs.mjs +530 -632
- package/formfield/models/show-options.d.ts +1 -1
- package/maskedtextbox/maskedtextbox.component.d.ts +12 -15
- package/numerictextbox/constants.d.ts +2 -2
- package/numerictextbox/numerictextbox.component.d.ts +16 -22
- package/otpinput/otpinput.component.d.ts +3 -9
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
- package/radiobutton/radiobutton.directive.d.ts +1 -3
- package/rating/directives/rating-hovered-item.directive.d.ts +1 -1
- package/rating/directives/rating-item.directive.d.ts +1 -1
- package/rating/directives/rating-selected-item.directive.d.ts +1 -1
- package/rating/models/selection.d.ts +1 -1
- package/rating/rating.component.d.ts +10 -10
- package/shared/input-separator.component.d.ts +2 -2
- package/signature/signature.component.d.ts +5 -11
- package/slider/slider.component.d.ts +4 -4
- package/sliders-common/slider-base.d.ts +10 -10
- package/sliders-common/title-callback.d.ts +1 -1
- package/switch/switch.component.d.ts +11 -17
- package/text-fields-common/text-fields-base.d.ts +1 -1
- package/textarea/models/textarea-settings.d.ts +1 -1
- package/textarea/textarea.component.d.ts +4 -7
- package/textarea/textarea.directive.d.ts +1 -1
- package/textbox/models/icon-show-options.d.ts +1 -1
- package/textbox/textbox-prefix.directive.d.ts +1 -1
- package/textbox/textbox-suffix.directive.d.ts +1 -1
- package/textbox/textbox.component.d.ts +7 -10
- package/textbox/textbox.directive.d.ts +1 -1
|
@@ -8,7 +8,7 @@ import { NgControl, NG_VALUE_ACCESSOR, NG_VALIDATORS, RadioControlValueAccessor
|
|
|
8
8
|
import { Subscription, fromEvent, interval, merge, BehaviorSubject, Subject } from 'rxjs';
|
|
9
9
|
import { take, tap, filter, concatMap, startWith, takeUntil, skip, debounceTime, throttleTime } from 'rxjs/operators';
|
|
10
10
|
import * as i8 from '@progress/kendo-angular-common';
|
|
11
|
-
import { isDocumentAvailable, Keys, guid, anyChanged, normalizeKeys, hasObservers, EventsOutsideAngularDirective, DraggableDirective, ResizeSensorComponent, KendoInput, isObjectPresent, removeHTMLAttributes, parseAttributes, isControlRequired, setHTMLAttributes, SuffixTemplateDirective, PrefixTemplateDirective, isChanged, isPresent as isPresent$1, isSafari, PreventableEvent, findFocusableChild, parseCSSClassNames, closest as closest$1, processCssValue, replaceMessagePlaceholder, getLicenseMessage, shouldShowValidationUI, WatermarkOverlayComponent, SeparatorComponent, ResizeBatchService, KENDO_ADORNMENTS } from '@progress/kendo-angular-common';
|
|
11
|
+
import { isDocumentAvailable, Keys, guid, anyChanged, normalizeKeys, hasObservers, EventsOutsideAngularDirective, DraggableDirective, ResizeSensorComponent, KendoInput, hasFocusableParent, isObjectPresent, removeHTMLAttributes, parseAttributes, isControlRequired, setHTMLAttributes, SuffixTemplateDirective, PrefixTemplateDirective, isChanged, isPresent as isPresent$1, isSafari, PreventableEvent, findFocusableChild, parseCSSClassNames, closest as closest$1, processCssValue, replaceMessagePlaceholder, getLicenseMessage, shouldShowValidationUI, WatermarkOverlayComponent, SeparatorComponent, ResizeBatchService, KENDO_ADORNMENTS } from '@progress/kendo-angular-common';
|
|
12
12
|
export { PrefixTemplateDirective, SeparatorComponent, SuffixTemplateDirective } from '@progress/kendo-angular-common';
|
|
13
13
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
14
14
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
@@ -73,7 +73,8 @@ const ROUNDED_MAP = {
|
|
|
73
73
|
small: 'sm',
|
|
74
74
|
medium: 'md',
|
|
75
75
|
large: 'lg',
|
|
76
|
-
full: 'full'
|
|
76
|
+
full: 'full',
|
|
77
|
+
none: 'none'
|
|
77
78
|
};
|
|
78
79
|
/**
|
|
79
80
|
* @hidden
|
|
@@ -86,21 +87,33 @@ const isNone = (style) => style === 'none';
|
|
|
86
87
|
*/
|
|
87
88
|
const getStylingClasses = (componentType, stylingOption, previousValue, newValue) => {
|
|
88
89
|
switch (stylingOption) {
|
|
89
|
-
case 'size':
|
|
90
|
+
case 'size': {
|
|
90
91
|
return {
|
|
91
|
-
toRemove: `k-${componentType}-${SIZE_MAP[previousValue]}
|
|
92
|
-
toAdd: newValue
|
|
92
|
+
toRemove: previousValue ? `k-${componentType}-${SIZE_MAP[previousValue]}` : null,
|
|
93
|
+
toAdd: newValue ? `k-${componentType}-${SIZE_MAP[newValue]}` : null
|
|
93
94
|
};
|
|
94
|
-
|
|
95
|
+
}
|
|
96
|
+
case 'rounded': {
|
|
97
|
+
let roundedClassToAdd;
|
|
98
|
+
if (newValue) {
|
|
99
|
+
if (newValue !== 'none') {
|
|
100
|
+
roundedClassToAdd = `k-rounded-${ROUNDED_MAP[newValue]}`;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
roundedClassToAdd = 'k-rounded-none';
|
|
104
|
+
}
|
|
105
|
+
}
|
|
95
106
|
return {
|
|
96
|
-
toRemove: `k-rounded-${ROUNDED_MAP[previousValue]}
|
|
97
|
-
toAdd:
|
|
107
|
+
toRemove: previousValue ? `k-rounded-${ROUNDED_MAP[previousValue]}` : null,
|
|
108
|
+
toAdd: roundedClassToAdd || null
|
|
98
109
|
};
|
|
99
|
-
|
|
110
|
+
}
|
|
111
|
+
case 'fillMode': {
|
|
100
112
|
return {
|
|
101
|
-
toRemove: `k-${componentType}-${previousValue}
|
|
102
|
-
toAdd: newValue
|
|
113
|
+
toRemove: previousValue ? `k-${componentType}-${previousValue}` : null,
|
|
114
|
+
toAdd: newValue ? `k-${componentType}-${newValue}` : null
|
|
103
115
|
};
|
|
116
|
+
}
|
|
104
117
|
default:
|
|
105
118
|
break;
|
|
106
119
|
}
|
|
@@ -554,7 +567,7 @@ const packageMetadata = {
|
|
|
554
567
|
productCode: 'KENDOUIANGULAR',
|
|
555
568
|
productCodes: ['KENDOUIANGULAR'],
|
|
556
569
|
publishDate: 0,
|
|
557
|
-
version: '
|
|
570
|
+
version: '23.0.0-develop.10',
|
|
558
571
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
559
572
|
};
|
|
560
573
|
|
|
@@ -603,11 +616,11 @@ class SliderBase {
|
|
|
603
616
|
/**
|
|
604
617
|
* Sets the title for the ticks.
|
|
605
618
|
* The default title for each tick is its Slider value.
|
|
606
|
-
* If you use a callback function, the function receives the component value and returns a string for the new title [see example](
|
|
619
|
+
* If you use a callback function, the function receives the component value and returns a string for the new title [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/ticks#titles).
|
|
607
620
|
*/
|
|
608
621
|
title = identity;
|
|
609
622
|
/**
|
|
610
|
-
* Sets the location of the tick marks in the Slider [see example](
|
|
623
|
+
* Sets the location of the tick marks in the Slider [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/ticks#placement).
|
|
611
624
|
*
|
|
612
625
|
* The options are:
|
|
613
626
|
* - `before` – Shows tick marks above a horizontal track or left of a vertical track.
|
|
@@ -619,21 +632,21 @@ class SliderBase {
|
|
|
619
632
|
*/
|
|
620
633
|
tickPlacement = 'both';
|
|
621
634
|
/**
|
|
622
|
-
* When `true`. renders a vertical Slider [see example](
|
|
635
|
+
* When `true`. renders a vertical Slider [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/orientation).
|
|
623
636
|
*
|
|
624
637
|
* @default false
|
|
625
638
|
*/
|
|
626
639
|
vertical = false;
|
|
627
640
|
/**
|
|
628
641
|
* Sets the minimum value of the Slider.
|
|
629
|
-
* Accepts integers and floating-point numbers [see example](
|
|
642
|
+
* Accepts integers and floating-point numbers [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/predefined-steps#small-steps).
|
|
630
643
|
*
|
|
631
644
|
* @default 0
|
|
632
645
|
*/
|
|
633
646
|
min = 0;
|
|
634
647
|
/**
|
|
635
648
|
* Sets the maximum value of the Slider.
|
|
636
|
-
* Accepts integers and floating-point numbers [see example](
|
|
649
|
+
* Accepts integers and floating-point numbers [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/predefined-steps#small-steps).
|
|
637
650
|
*
|
|
638
651
|
* @default 10
|
|
639
652
|
*/
|
|
@@ -641,32 +654,32 @@ class SliderBase {
|
|
|
641
654
|
/**
|
|
642
655
|
* Sets the step value of the Slider.
|
|
643
656
|
* Accepts only positive values.
|
|
644
|
-
* Can be an integer or a floating-point number [see example](
|
|
657
|
+
* Can be an integer or a floating-point number [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/predefined-steps#small-steps).
|
|
645
658
|
*
|
|
646
659
|
* @default 1
|
|
647
660
|
*/
|
|
648
661
|
smallStep = 1;
|
|
649
662
|
/**
|
|
650
|
-
* Sets every n<sup>th</sup> tick as large and shows a label for it [see example](
|
|
663
|
+
* Sets every n<sup>th</sup> tick as large and shows a label for it [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/predefined-steps#large-steps).
|
|
651
664
|
*
|
|
652
665
|
* @default null
|
|
653
666
|
*/
|
|
654
667
|
largeStep = null;
|
|
655
668
|
/**
|
|
656
669
|
* Sets the width between two ticks along the track, in pixels.
|
|
657
|
-
* If you do not set `fixedTickWidth`, the Slider adjusts the tick width automatically [see example](
|
|
670
|
+
* If you do not set `fixedTickWidth`, the Slider adjusts the tick width automatically [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/ticks#width).
|
|
658
671
|
*
|
|
659
672
|
*/
|
|
660
673
|
fixedTickWidth;
|
|
661
674
|
/**
|
|
662
675
|
* When `true`, disables the Slider.
|
|
663
|
-
* To disable the component in reactive forms, see [Forms Support](
|
|
676
|
+
* To disable the component in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/forms#managing-the-slider-disabled-state-in-reactive-forms) [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/disabled-state).
|
|
664
677
|
*
|
|
665
678
|
* @default false
|
|
666
679
|
*/
|
|
667
680
|
disabled = false;
|
|
668
681
|
/**
|
|
669
|
-
* When `true`, sets the Slider to read-only [see example](
|
|
682
|
+
* When `true`, sets the Slider to read-only [see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/readonly-state).
|
|
670
683
|
*
|
|
671
684
|
* @default false
|
|
672
685
|
*/
|
|
@@ -1083,7 +1096,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1083
1096
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1084
1097
|
const PRESSED$1 = 'k-pressed';
|
|
1085
1098
|
/**
|
|
1086
|
-
* Represents the [Kendo UI Slider component for Angular](
|
|
1099
|
+
* Represents the [Kendo UI Slider component for Angular](https://www.telerik.com/kendo-angular-ui/components/inputs/slider).
|
|
1087
1100
|
*
|
|
1088
1101
|
* @example
|
|
1089
1102
|
* ```html
|
|
@@ -1109,7 +1122,7 @@ class SliderComponent extends SliderBase {
|
|
|
1109
1122
|
*/
|
|
1110
1123
|
dragHandleTitle;
|
|
1111
1124
|
/**
|
|
1112
|
-
* Sets the title of the **Increase** button of the Slider ([see example](
|
|
1125
|
+
* Sets the title of the **Increase** button of the Slider ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/side-buttons#titles)).
|
|
1113
1126
|
*/
|
|
1114
1127
|
incrementTitle;
|
|
1115
1128
|
/**
|
|
@@ -1119,11 +1132,11 @@ class SliderComponent extends SliderBase {
|
|
|
1119
1132
|
*/
|
|
1120
1133
|
animate = true;
|
|
1121
1134
|
/**
|
|
1122
|
-
* Sets the title of the **Decrease** button of the Slider ([see example](
|
|
1135
|
+
* Sets the title of the **Decrease** button of the Slider ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/side-buttons#titles)).
|
|
1123
1136
|
*/
|
|
1124
1137
|
decrementTitle;
|
|
1125
1138
|
/**
|
|
1126
|
-
* Shows or hides the arrow side buttons of the Slider ([see example](
|
|
1139
|
+
* Shows or hides the arrow side buttons of the Slider ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/slider/side-buttons#hidden-state)).
|
|
1127
1140
|
* When you set `showButtons` to `false`, the component does not display the buttons.
|
|
1128
1141
|
* @default true
|
|
1129
1142
|
*/
|
|
@@ -2499,11 +2512,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
2499
2512
|
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
2500
2513
|
|
|
2501
2514
|
const FOCUSED$5 = 'k-focus';
|
|
2502
|
-
const DEFAULT_SIZE$e = 'medium';
|
|
2503
|
-
const DEFAULT_THUMB_ROUNDED = 'full';
|
|
2504
|
-
const DEFAULT_TRACK_ROUNDED = 'full';
|
|
2505
2515
|
/**
|
|
2506
|
-
* Represents the [Kendo UI Switch component for Angular](
|
|
2516
|
+
* Represents the [Kendo UI Switch component for Angular](https://www.telerik.com/kendo-angular-ui/components/inputs/switch).
|
|
2507
2517
|
*
|
|
2508
2518
|
* @example
|
|
2509
2519
|
* ```html
|
|
@@ -2531,14 +2541,14 @@ class SwitchComponent {
|
|
|
2531
2541
|
}
|
|
2532
2542
|
/**
|
|
2533
2543
|
* Set the **On** label.
|
|
2534
|
-
* This label takes precedence over the [custom messages component](
|
|
2535
|
-
* [See example](
|
|
2544
|
+
* This label takes precedence over the [custom messages component](https://www.telerik.com/kendo-angular-ui/components/inputs/api/switchcustommessagescomponent).
|
|
2545
|
+
* [See example](https://www.telerik.com/kendo-angular-ui/components/inputs/switch/labels).
|
|
2536
2546
|
*/
|
|
2537
2547
|
onLabel;
|
|
2538
2548
|
/**
|
|
2539
2549
|
* Set the **Off** label.
|
|
2540
|
-
* This label takes precedence over the [custom messages component](
|
|
2541
|
-
* [See example](
|
|
2550
|
+
* This label takes precedence over the [custom messages component](https://www.telerik.com/kendo-angular-ui/components/inputs/api/switchcustommessagescomponent).
|
|
2551
|
+
* [See example](https://www.telerik.com/kendo-angular-ui/components/inputs/switch/labels).
|
|
2542
2552
|
*/
|
|
2543
2553
|
offLabel;
|
|
2544
2554
|
/**
|
|
@@ -2553,14 +2563,14 @@ class SwitchComponent {
|
|
|
2553
2563
|
}
|
|
2554
2564
|
/**
|
|
2555
2565
|
* When `true`, disables the Switch.
|
|
2556
|
-
* [See example](
|
|
2557
|
-
* To disable the component in reactive forms, see [Forms Support](
|
|
2566
|
+
* [See example](https://www.telerik.com/kendo-angular-ui/components/inputs/switch/disabled-state).
|
|
2567
|
+
* To disable the component in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/switch/forms#managing-the-switch-disabled-state-in-reactive-forms).
|
|
2558
2568
|
* @default false
|
|
2559
2569
|
*/
|
|
2560
2570
|
disabled = false;
|
|
2561
2571
|
/**
|
|
2562
2572
|
* When `true`, sets the Switch to read-only.
|
|
2563
|
-
* [See example](
|
|
2573
|
+
* [See example](https://www.telerik.com/kendo-angular-ui/components/inputs/switch/readonly-state).
|
|
2564
2574
|
* @default false
|
|
2565
2575
|
*/
|
|
2566
2576
|
readonly = false;
|
|
@@ -2570,40 +2580,31 @@ class SwitchComponent {
|
|
|
2570
2580
|
*/
|
|
2571
2581
|
tabindex = 0;
|
|
2572
2582
|
/**
|
|
2573
|
-
* Sets the size of the Switch.
|
|
2574
|
-
*
|
|
2575
|
-
* @default "medium"
|
|
2583
|
+
* Sets the size of the Switch. The default value is set by the Kendo theme.
|
|
2576
2584
|
*/
|
|
2577
2585
|
set size(size) {
|
|
2578
|
-
|
|
2579
|
-
this.
|
|
2580
|
-
this._size = newSize;
|
|
2586
|
+
this.handleClasses(size, 'size');
|
|
2587
|
+
this._size = size;
|
|
2581
2588
|
}
|
|
2582
2589
|
get size() {
|
|
2583
2590
|
return this._size;
|
|
2584
2591
|
}
|
|
2585
2592
|
/**
|
|
2586
|
-
* Sets the border radius of the Switch.
|
|
2587
|
-
*
|
|
2588
|
-
* @default "full"
|
|
2593
|
+
* Sets the border radius of the Switch. The default value is set by the Kendo theme.
|
|
2589
2594
|
*/
|
|
2590
2595
|
set thumbRounded(thumbRounded) {
|
|
2591
|
-
|
|
2592
|
-
this.
|
|
2593
|
-
this._thumbRounded = newThumbRounded;
|
|
2596
|
+
this.handleThumbClasses(thumbRounded);
|
|
2597
|
+
this._thumbRounded = thumbRounded;
|
|
2594
2598
|
}
|
|
2595
2599
|
get thumbRounded() {
|
|
2596
2600
|
return this._thumbRounded;
|
|
2597
2601
|
}
|
|
2598
2602
|
/**
|
|
2599
|
-
* Sets the border radius of the Switch track.
|
|
2600
|
-
*
|
|
2601
|
-
* @default "full"
|
|
2603
|
+
* Sets the border radius of the Switch track. The default value is set by the Kendo theme.
|
|
2602
2604
|
*/
|
|
2603
2605
|
set trackRounded(trackRounded) {
|
|
2604
|
-
|
|
2605
|
-
this.
|
|
2606
|
-
this._trackRounded = newTrackRounded;
|
|
2606
|
+
this.handleTrackClasses(trackRounded);
|
|
2607
|
+
this._trackRounded = trackRounded;
|
|
2607
2608
|
}
|
|
2608
2609
|
get trackRounded() {
|
|
2609
2610
|
return this._trackRounded;
|
|
@@ -2664,9 +2665,9 @@ class SwitchComponent {
|
|
|
2664
2665
|
control;
|
|
2665
2666
|
domSubscriptions = [];
|
|
2666
2667
|
_checked = false;
|
|
2667
|
-
_size
|
|
2668
|
-
_trackRounded
|
|
2669
|
-
_thumbRounded
|
|
2668
|
+
_size;
|
|
2669
|
+
_trackRounded;
|
|
2670
|
+
_thumbRounded;
|
|
2670
2671
|
constructor(renderer, hostElement, localizationService, injector, changeDetector, ngZone) {
|
|
2671
2672
|
this.renderer = renderer;
|
|
2672
2673
|
this.hostElement = hostElement;
|
|
@@ -3070,7 +3071,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3070
3071
|
}] } });
|
|
3071
3072
|
|
|
3072
3073
|
/**
|
|
3073
|
-
* Represents the [Kendo UI TextBox directive](
|
|
3074
|
+
* Represents the [Kendo UI TextBox directive](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox) for the Inputs components for Angular.
|
|
3074
3075
|
* Use this directive to style the textbox of any `input` element.
|
|
3075
3076
|
*
|
|
3076
3077
|
* @example
|
|
@@ -3154,7 +3155,7 @@ class TextBoxDirective {
|
|
|
3154
3155
|
this.listeners.forEach(listener => listener());
|
|
3155
3156
|
}
|
|
3156
3157
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TextBoxDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3157
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TextBoxDirective, isStandalone: true, selector: "input[kendoTextBox]", inputs: { value: "value" }, host: { properties: { "class.k-textbox": "this.hostClasses", "class.k-input": "this.hostClasses"
|
|
3158
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TextBoxDirective, isStandalone: true, selector: "input[kendoTextBox]", inputs: { value: "value" }, host: { properties: { "class.k-textbox": "this.hostClasses", "class.k-input": "this.hostClasses" } }, providers: [{
|
|
3158
3159
|
provide: KendoInput,
|
|
3159
3160
|
useExisting: forwardRef(() => TextBoxDirective)
|
|
3160
3161
|
}], ngImport: i0 });
|
|
@@ -3175,15 +3176,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3175
3176
|
}, {
|
|
3176
3177
|
type: HostBinding,
|
|
3177
3178
|
args: ['class.k-input']
|
|
3178
|
-
}, {
|
|
3179
|
-
type: HostBinding,
|
|
3180
|
-
args: ['class.k-input-md']
|
|
3181
|
-
}, {
|
|
3182
|
-
type: HostBinding,
|
|
3183
|
-
args: ['class.k-rounded-md']
|
|
3184
|
-
}, {
|
|
3185
|
-
type: HostBinding,
|
|
3186
|
-
args: ['class.k-input-solid']
|
|
3187
3179
|
}], value: [{
|
|
3188
3180
|
type: Input
|
|
3189
3181
|
}] } });
|
|
@@ -3211,7 +3203,7 @@ class TextAreaDirective {
|
|
|
3211
3203
|
valueChange = new EventEmitter();
|
|
3212
3204
|
/**
|
|
3213
3205
|
* Sets whether the `textarea` element resizes its height automatically
|
|
3214
|
-
* ([see example](
|
|
3206
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textarea/sizing#auto-resizing)).
|
|
3215
3207
|
*
|
|
3216
3208
|
* @default false
|
|
3217
3209
|
*/
|
|
@@ -3408,7 +3400,7 @@ class TextAreaDirective {
|
|
|
3408
3400
|
}
|
|
3409
3401
|
}
|
|
3410
3402
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TextAreaDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3411
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TextAreaDirective, isStandalone: true, selector: "textarea[kendoTextArea]", inputs: { autoSize: "autoSize", value: "value" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-textarea": "this.elementClasses", "class.k-input": "this.elementClasses", "class.k-
|
|
3403
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TextAreaDirective, isStandalone: true, selector: "textarea[kendoTextArea]", inputs: { autoSize: "autoSize", value: "value" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-textarea": "this.elementClasses", "class.k-input": "this.elementClasses", "class.k-autofill": "this.autofillClass", "attr.dir": "this.direction" } }, providers: [{
|
|
3412
3404
|
provide: NG_VALUE_ACCESSOR,
|
|
3413
3405
|
useExisting: forwardRef(() => TextAreaDirective),
|
|
3414
3406
|
multi: true
|
|
@@ -3442,15 +3434,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
3442
3434
|
}, {
|
|
3443
3435
|
type: HostBinding,
|
|
3444
3436
|
args: ['class.k-input']
|
|
3445
|
-
}, {
|
|
3446
|
-
type: HostBinding,
|
|
3447
|
-
args: ['class.k-input-md']
|
|
3448
|
-
}, {
|
|
3449
|
-
type: HostBinding,
|
|
3450
|
-
args: ['class.k-rounded-md']
|
|
3451
|
-
}, {
|
|
3452
|
-
type: HostBinding,
|
|
3453
|
-
args: ['class.k-input-solid']
|
|
3454
3437
|
}], autofillClass: [{
|
|
3455
3438
|
type: HostBinding,
|
|
3456
3439
|
args: ['class.k-autofill']
|
|
@@ -3502,11 +3485,11 @@ const createMinValidator = (minValue) => {
|
|
|
3502
3485
|
/**
|
|
3503
3486
|
* @hidden
|
|
3504
3487
|
*/
|
|
3505
|
-
const MIN_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent
|
|
3488
|
+
const MIN_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent#min';
|
|
3506
3489
|
/**
|
|
3507
3490
|
* @hidden
|
|
3508
3491
|
*/
|
|
3509
|
-
const MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent
|
|
3492
|
+
const MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent#max';
|
|
3510
3493
|
/**
|
|
3511
3494
|
* @hidden
|
|
3512
3495
|
*/
|
|
@@ -3623,7 +3606,7 @@ var ArrowDirection;
|
|
|
3623
3606
|
})(ArrowDirection || (ArrowDirection = {}));
|
|
3624
3607
|
|
|
3625
3608
|
/**
|
|
3626
|
-
* Represents a separator in the content of components like TextArea and TextBox. ([see examples](
|
|
3609
|
+
* Represents a separator in the content of components like TextArea and TextBox. ([see examples](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#separator)).
|
|
3627
3610
|
*
|
|
3628
3611
|
* @example
|
|
3629
3612
|
* ```html
|
|
@@ -3637,7 +3620,7 @@ var ArrowDirection;
|
|
|
3637
3620
|
*/
|
|
3638
3621
|
class InputSeparatorComponent {
|
|
3639
3622
|
/**
|
|
3640
|
-
* Sets the orientation of the separator. Use this for the adornments of the [`TextAreaComponent`](
|
|
3623
|
+
* Sets the orientation of the separator. Use this for the adornments of the [`TextAreaComponent`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/textareacomponent).
|
|
3641
3624
|
*
|
|
3642
3625
|
* @default 'vertical'
|
|
3643
3626
|
*/
|
|
@@ -3724,6 +3707,19 @@ class SharedInputEventsDirective {
|
|
|
3724
3707
|
}
|
|
3725
3708
|
}
|
|
3726
3709
|
}));
|
|
3710
|
+
this.subscriptions.add(this.renderer.listen(hostElement, 'click', (args) => {
|
|
3711
|
+
if (!this.isFocused) {
|
|
3712
|
+
return;
|
|
3713
|
+
}
|
|
3714
|
+
const element = args.target;
|
|
3715
|
+
const adornmentContainer = element.closest('.k-input-prefix') || element.closest('.k-input-suffix');
|
|
3716
|
+
if (adornmentContainer) {
|
|
3717
|
+
const isFocusable = hasFocusableParent(element, adornmentContainer);
|
|
3718
|
+
if (!isFocusable) {
|
|
3719
|
+
this.handleBlur.emit();
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
}));
|
|
3727
3723
|
this.subscriptions.add(this.renderer.listen(hostElement, 'mouseenter', () => {
|
|
3728
3724
|
cursorInsideWrapper = true;
|
|
3729
3725
|
}));
|
|
@@ -3833,11 +3829,8 @@ const PARSABLE_DEFAULTS = {
|
|
|
3833
3829
|
step: 1
|
|
3834
3830
|
};
|
|
3835
3831
|
const FOCUSED$4 = 'k-focus';
|
|
3836
|
-
const DEFAULT_SIZE$d = 'medium';
|
|
3837
|
-
const DEFAULT_ROUNDED$8 = 'medium';
|
|
3838
|
-
const DEFAULT_FILL_MODE$6 = 'solid';
|
|
3839
3832
|
/**
|
|
3840
|
-
* Represents the [Kendo UI NumericTextBox component for Angular](
|
|
3833
|
+
* Represents the [Kendo UI NumericTextBox component for Angular](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox).
|
|
3841
3834
|
*
|
|
3842
3835
|
* Use this component to allow users to input numeric values.
|
|
3843
3836
|
*
|
|
@@ -3863,7 +3856,7 @@ class NumericTextBoxComponent {
|
|
|
3863
3856
|
focusableId = `k-${guid()}`;
|
|
3864
3857
|
/**
|
|
3865
3858
|
* When `true`, disables the `NumericTextBox`.
|
|
3866
|
-
* To disable the component in reactive forms, see [Forms Support](
|
|
3859
|
+
* To disable the component in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/forms#managing-the-numerictextbox-disabled-state-in-reactive-forms).
|
|
3867
3860
|
*
|
|
3868
3861
|
* @default false
|
|
3869
3862
|
*/
|
|
@@ -3879,11 +3872,11 @@ class NumericTextBoxComponent {
|
|
|
3879
3872
|
*/
|
|
3880
3873
|
title = '';
|
|
3881
3874
|
/**
|
|
3882
|
-
* When `true`, the value is automatically corrected based on the minimum and maximum values ([see example](
|
|
3875
|
+
* When `true`, the value is automatically corrected based on the minimum and maximum values ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision)).
|
|
3883
3876
|
*/
|
|
3884
3877
|
autoCorrect = false;
|
|
3885
3878
|
/**
|
|
3886
|
-
* Specifies the number format used when the NumericTextBox is not focused ([see example](
|
|
3879
|
+
* Specifies the number format used when the NumericTextBox is not focused ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/formats)).
|
|
3887
3880
|
* If `format` is `null` or `undefined`, the default format is used.
|
|
3888
3881
|
*/
|
|
3889
3882
|
get format() {
|
|
@@ -3894,15 +3887,15 @@ class NumericTextBoxComponent {
|
|
|
3894
3887
|
this._format = value;
|
|
3895
3888
|
}
|
|
3896
3889
|
/**
|
|
3897
|
-
* Sets the maximum valid value ([see example](
|
|
3890
|
+
* Sets the maximum valid value ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision#value-ranges)).
|
|
3898
3891
|
*/
|
|
3899
3892
|
max;
|
|
3900
3893
|
/**
|
|
3901
|
-
* Sets the minimum valid value ([see example](
|
|
3894
|
+
* Sets the minimum valid value ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision#value-ranges)).
|
|
3902
3895
|
*/
|
|
3903
3896
|
min;
|
|
3904
3897
|
/**
|
|
3905
|
-
* Specifies the number of decimals the user can enter when the input is focused ([see example](
|
|
3898
|
+
* Specifies the number of decimals the user can enter when the input is focused ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/precision)).
|
|
3906
3899
|
*/
|
|
3907
3900
|
decimals = null;
|
|
3908
3901
|
/**
|
|
@@ -3910,13 +3903,13 @@ class NumericTextBoxComponent {
|
|
|
3910
3903
|
*/
|
|
3911
3904
|
placeholder;
|
|
3912
3905
|
/**
|
|
3913
|
-
* Specifies the value used to increment or decrement the component value ([see example](
|
|
3906
|
+
* Specifies the value used to increment or decrement the component value ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/predefined-step)).
|
|
3914
3907
|
*
|
|
3915
3908
|
* @default 1
|
|
3916
3909
|
*/
|
|
3917
3910
|
step = 1;
|
|
3918
3911
|
/**
|
|
3919
|
-
* When `true`, renders the **Up** and **Down** spin buttons ([see example](
|
|
3912
|
+
* When `true`, renders the **Up** and **Down** spin buttons ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/spin-buttons)).
|
|
3920
3913
|
*
|
|
3921
3914
|
* @default true
|
|
3922
3915
|
*/
|
|
@@ -3953,7 +3946,7 @@ class NumericTextBoxComponent {
|
|
|
3953
3946
|
*/
|
|
3954
3947
|
selectOnFocus = true;
|
|
3955
3948
|
/**
|
|
3956
|
-
* Sets the value of the NumericTextBox ([see example](
|
|
3949
|
+
* Sets the value of the NumericTextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/formats)).
|
|
3957
3950
|
*/
|
|
3958
3951
|
value = null;
|
|
3959
3952
|
/**
|
|
@@ -3963,40 +3956,31 @@ class NumericTextBoxComponent {
|
|
|
3963
3956
|
*/
|
|
3964
3957
|
maxlength;
|
|
3965
3958
|
/**
|
|
3966
|
-
* Sets the padding of the internal input element ([see example](
|
|
3967
|
-
*
|
|
3968
|
-
* @default 'medium'
|
|
3959
|
+
* Sets the padding of the internal input element ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/appearance#size)). The default value is set by the Kendo theme.
|
|
3969
3960
|
*/
|
|
3970
3961
|
set size(size) {
|
|
3971
|
-
|
|
3972
|
-
this.
|
|
3973
|
-
this._size = newSize;
|
|
3962
|
+
this.handleClasses(size, 'size');
|
|
3963
|
+
this._size = size;
|
|
3974
3964
|
}
|
|
3975
3965
|
get size() {
|
|
3976
3966
|
return this._size;
|
|
3977
3967
|
}
|
|
3978
3968
|
/**
|
|
3979
|
-
* Sets the border radius of the NumericTextBox ([see example](
|
|
3980
|
-
*
|
|
3981
|
-
* @default 'medium'
|
|
3969
|
+
* Sets the border radius of the NumericTextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/appearance#roundness)). The default value is set by the Kendo theme.
|
|
3982
3970
|
*/
|
|
3983
3971
|
set rounded(rounded) {
|
|
3984
|
-
|
|
3985
|
-
this.
|
|
3986
|
-
this._rounded = newRounded;
|
|
3972
|
+
this.handleClasses(rounded, 'rounded');
|
|
3973
|
+
this._rounded = rounded;
|
|
3987
3974
|
}
|
|
3988
3975
|
get rounded() {
|
|
3989
3976
|
return this._rounded;
|
|
3990
3977
|
}
|
|
3991
3978
|
/**
|
|
3992
|
-
* Sets the background and border styles of the NumericTextBox ([see example](
|
|
3993
|
-
*
|
|
3994
|
-
* @default 'solid'
|
|
3979
|
+
* Sets the background and border styles of the NumericTextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/appearance#fill-mode)). The default value is set by the Kendo theme.
|
|
3995
3980
|
*/
|
|
3996
3981
|
set fillMode(fillMode) {
|
|
3997
|
-
|
|
3998
|
-
this.
|
|
3999
|
-
this._fillMode = newFillMode;
|
|
3982
|
+
this.handleClasses(fillMode, 'fillMode');
|
|
3983
|
+
this._fillMode = fillMode;
|
|
4000
3984
|
}
|
|
4001
3985
|
get fillMode() {
|
|
4002
3986
|
return this._fillMode;
|
|
@@ -4019,15 +4003,15 @@ class NumericTextBoxComponent {
|
|
|
4019
4003
|
return this._inputAttributes;
|
|
4020
4004
|
}
|
|
4021
4005
|
/**
|
|
4022
|
-
* Fires when the user selects a new value ([see example](
|
|
4006
|
+
* Fires when the user selects a new value ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/events)).
|
|
4023
4007
|
*/
|
|
4024
4008
|
valueChange = new EventEmitter();
|
|
4025
4009
|
/**
|
|
4026
|
-
* Fires when the NumericTextBox element is focused ([see example](
|
|
4010
|
+
* Fires when the NumericTextBox element is focused ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/events)).
|
|
4027
4011
|
*/
|
|
4028
4012
|
onFocus = new EventEmitter();
|
|
4029
4013
|
/**
|
|
4030
|
-
* Fires when the `NumericTextBox` component gets blurred ([see example](
|
|
4014
|
+
* Fires when the `NumericTextBox` component gets blurred ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/numerictextbox/events)).
|
|
4031
4015
|
*/
|
|
4032
4016
|
onBlur = new EventEmitter();
|
|
4033
4017
|
/**
|
|
@@ -4084,9 +4068,9 @@ class NumericTextBoxComponent {
|
|
|
4084
4068
|
control;
|
|
4085
4069
|
isPasted = false;
|
|
4086
4070
|
mouseDown = false;
|
|
4087
|
-
_size =
|
|
4088
|
-
_rounded =
|
|
4089
|
-
_fillMode =
|
|
4071
|
+
_size = undefined;
|
|
4072
|
+
_rounded = undefined;
|
|
4073
|
+
_fillMode = undefined;
|
|
4090
4074
|
ngChange = noop$1;
|
|
4091
4075
|
ngTouched = noop$1;
|
|
4092
4076
|
ngValidatorChange = noop$1;
|
|
@@ -4291,6 +4275,11 @@ class NumericTextBoxComponent {
|
|
|
4291
4275
|
this.setSelection(selectionStart - 1, selectionEnd - 1);
|
|
4292
4276
|
return;
|
|
4293
4277
|
}
|
|
4278
|
+
if (this.hasTrailingZeros(inputValue) && !this.isPasted) {
|
|
4279
|
+
input.value = this.inputValue;
|
|
4280
|
+
this.setSelection(selectionStart - 1, selectionEnd - 1);
|
|
4281
|
+
return;
|
|
4282
|
+
}
|
|
4294
4283
|
const parsedValue = this.intl.parseNumber(inputValue);
|
|
4295
4284
|
let value = this.restrictDecimals(parsedValue);
|
|
4296
4285
|
if (this.autoCorrect) {
|
|
@@ -4667,7 +4656,7 @@ class NumericTextBoxComponent {
|
|
|
4667
4656
|
}
|
|
4668
4657
|
restrictDecimals(value, round) {
|
|
4669
4658
|
let result = value;
|
|
4670
|
-
if (
|
|
4659
|
+
if (this.hasDecimals && isPresent(value)) {
|
|
4671
4660
|
const decimals = this.decimals;
|
|
4672
4661
|
const stringValue = String(value);
|
|
4673
4662
|
if (round || EXPONENT_REGEX.test(stringValue)) {
|
|
@@ -4876,7 +4865,7 @@ class NumericTextBoxComponent {
|
|
|
4876
4865
|
[attr.aria-hidden]="true"
|
|
4877
4866
|
[attr.aria-label]="incrementTitle"
|
|
4878
4867
|
[title]="incrementTitle"
|
|
4879
|
-
class="k-spinner-increase k-button k-
|
|
4868
|
+
class="k-spinner-increase k-button k-icon-button"
|
|
4880
4869
|
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4881
4870
|
tabindex="-1"
|
|
4882
4871
|
>
|
|
@@ -4894,7 +4883,7 @@ class NumericTextBoxComponent {
|
|
|
4894
4883
|
[attr.aria-label]="decrementTitle"
|
|
4895
4884
|
[title]="decrementTitle"
|
|
4896
4885
|
[class.k-active]="arrowDirection === ArrowDirection.Down"
|
|
4897
|
-
class="k-spinner-decrease k-button k-
|
|
4886
|
+
class="k-spinner-decrease k-button k-icon-button"
|
|
4898
4887
|
tabindex="-1"
|
|
4899
4888
|
>
|
|
4900
4889
|
<kendo-icon-wrapper
|
|
@@ -4991,7 +4980,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
4991
4980
|
[attr.aria-hidden]="true"
|
|
4992
4981
|
[attr.aria-label]="incrementTitle"
|
|
4993
4982
|
[title]="incrementTitle"
|
|
4994
|
-
class="k-spinner-increase k-button k-
|
|
4983
|
+
class="k-spinner-increase k-button k-icon-button"
|
|
4995
4984
|
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4996
4985
|
tabindex="-1"
|
|
4997
4986
|
>
|
|
@@ -5009,7 +4998,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5009
4998
|
[attr.aria-label]="decrementTitle"
|
|
5010
4999
|
[title]="decrementTitle"
|
|
5011
5000
|
[class.k-active]="arrowDirection === ArrowDirection.Down"
|
|
5012
|
-
class="k-spinner-decrease k-button k-
|
|
5001
|
+
class="k-spinner-decrease k-button k-icon-button"
|
|
5013
5002
|
tabindex="-1"
|
|
5014
5003
|
>
|
|
5015
5004
|
<kendo-icon-wrapper
|
|
@@ -5588,11 +5577,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
5588
5577
|
|
|
5589
5578
|
const resolvedPromise = Promise.resolve(null);
|
|
5590
5579
|
const FOCUSED$3 = 'k-focus';
|
|
5591
|
-
const DEFAULT_SIZE$c = 'medium';
|
|
5592
|
-
const DEFAULT_ROUNDED$7 = 'medium';
|
|
5593
|
-
const DEFAULT_FILL_MODE$5 = 'solid';
|
|
5594
5580
|
/**
|
|
5595
|
-
* Represents the [Kendo UI MaskedTextBox component for Angular](
|
|
5581
|
+
* Represents the [Kendo UI MaskedTextBox component for Angular](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox).
|
|
5596
5582
|
*
|
|
5597
5583
|
* @example
|
|
5598
5584
|
* ```typescript
|
|
@@ -5625,13 +5611,13 @@ class MaskedTextBoxComponent {
|
|
|
5625
5611
|
*/
|
|
5626
5612
|
focusableId = `k-${guid()}`;
|
|
5627
5613
|
/**
|
|
5628
|
-
* Disables the MaskedTextBox when you set it to `true` ([see example](
|
|
5629
|
-
* To disable the component in reactive forms, see [Forms Support](
|
|
5614
|
+
* Disables the MaskedTextBox when you set it to `true` ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/disabled-state)).
|
|
5615
|
+
* To disable the component in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/forms#managing-the-maskedtextbox-disabled-state-in-reactive-forms).
|
|
5630
5616
|
* @default false
|
|
5631
5617
|
*/
|
|
5632
5618
|
disabled = false;
|
|
5633
5619
|
/**
|
|
5634
|
-
* When `true`, sets the MaskedTextBox to read-only mode ([see example](
|
|
5620
|
+
* When `true`, sets the MaskedTextBox to read-only mode ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/readonly-state)).
|
|
5635
5621
|
* @default false
|
|
5636
5622
|
*/
|
|
5637
5623
|
readonly = false;
|
|
@@ -5640,46 +5626,40 @@ class MaskedTextBoxComponent {
|
|
|
5640
5626
|
*/
|
|
5641
5627
|
title;
|
|
5642
5628
|
/**
|
|
5643
|
-
* Sets the padding size of the MaskedTextBox input element ([see example](
|
|
5644
|
-
* @default 'medium'
|
|
5629
|
+
* Sets the padding size of the MaskedTextBox input element ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/appearance#size)). The default value is set by the Kendo theme.
|
|
5645
5630
|
*/
|
|
5646
5631
|
set size(size) {
|
|
5647
|
-
|
|
5648
|
-
this.
|
|
5649
|
-
this._size = newSize;
|
|
5632
|
+
this.handleClasses(size, 'size');
|
|
5633
|
+
this._size = size;
|
|
5650
5634
|
}
|
|
5651
5635
|
get size() {
|
|
5652
5636
|
return this._size;
|
|
5653
5637
|
}
|
|
5654
5638
|
/**
|
|
5655
|
-
* Sets the border radius of the MaskedTextBox ([see example](
|
|
5656
|
-
* @default 'medium'
|
|
5639
|
+
* Sets the border radius of the MaskedTextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/appearance#roundness)). The default value is set by the Kendo theme.
|
|
5657
5640
|
*/
|
|
5658
5641
|
set rounded(rounded) {
|
|
5659
|
-
|
|
5660
|
-
this.
|
|
5661
|
-
this._rounded = newRounded;
|
|
5642
|
+
this.handleClasses(rounded, 'rounded');
|
|
5643
|
+
this._rounded = rounded;
|
|
5662
5644
|
}
|
|
5663
5645
|
get rounded() {
|
|
5664
5646
|
return this._rounded;
|
|
5665
5647
|
}
|
|
5666
5648
|
/**
|
|
5667
|
-
* Sets the background and border style of the MaskedTextBox ([see example](
|
|
5668
|
-
* @default 'solid'
|
|
5649
|
+
* Sets the background and border style of the MaskedTextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/appearance#fill-mode)). The default value is set by the Kendo theme.
|
|
5669
5650
|
*/
|
|
5670
5651
|
set fillMode(fillMode) {
|
|
5671
|
-
|
|
5672
|
-
this.
|
|
5673
|
-
this._fillMode = newFillMode;
|
|
5652
|
+
this.handleClasses(fillMode, 'fillMode');
|
|
5653
|
+
this._fillMode = fillMode;
|
|
5674
5654
|
}
|
|
5675
5655
|
get fillMode() {
|
|
5676
5656
|
return this._fillMode;
|
|
5677
5657
|
}
|
|
5678
5658
|
/**
|
|
5679
|
-
* Sets the mask pattern for the MaskedTextBox ([see example](
|
|
5659
|
+
* Sets the mask pattern for the MaskedTextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/value)).
|
|
5680
5660
|
* If you do not set a mask, the component acts as a standard `type="text"` input.
|
|
5681
5661
|
*
|
|
5682
|
-
* If the mask allows spaces, set the [`promptPlaceholder`](
|
|
5662
|
+
* If the mask allows spaces, set the [`promptPlaceholder`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/maskedtextboxcomponent#promptplaceholder)
|
|
5683
5663
|
* to a character that the mask does not accept.
|
|
5684
5664
|
*/
|
|
5685
5665
|
mask;
|
|
@@ -5688,7 +5668,7 @@ class MaskedTextBoxComponent {
|
|
|
5688
5668
|
*/
|
|
5689
5669
|
value;
|
|
5690
5670
|
/**
|
|
5691
|
-
* Sets the RegExp-based mask validation rules ([see example](
|
|
5671
|
+
* Sets the RegExp-based mask validation rules ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/masks)).
|
|
5692
5672
|
*/
|
|
5693
5673
|
set rules(value) {
|
|
5694
5674
|
this._rules = { ...this.defaultRules, ...value };
|
|
@@ -5707,7 +5687,7 @@ class MaskedTextBoxComponent {
|
|
|
5707
5687
|
*/
|
|
5708
5688
|
promptPlaceholder = ' ';
|
|
5709
5689
|
/**
|
|
5710
|
-
* When `true` includes literals in the raw value ([see example](
|
|
5690
|
+
* When `true` includes literals in the raw value ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/value)).
|
|
5711
5691
|
* @default false
|
|
5712
5692
|
*/
|
|
5713
5693
|
includeLiterals = false;
|
|
@@ -5716,7 +5696,7 @@ class MaskedTextBoxComponent {
|
|
|
5716
5696
|
*/
|
|
5717
5697
|
maskOnFocus = false;
|
|
5718
5698
|
/**
|
|
5719
|
-
* Enables the built-in mask validator when you set it to `true` ([see example](
|
|
5699
|
+
* Enables the built-in mask validator when you set it to `true` ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/validation)).
|
|
5720
5700
|
* @default true
|
|
5721
5701
|
*/
|
|
5722
5702
|
maskValidation = true;
|
|
@@ -5831,9 +5811,9 @@ class MaskedTextBoxComponent {
|
|
|
5831
5811
|
isPasted = false;
|
|
5832
5812
|
selection = [0, 0];
|
|
5833
5813
|
control;
|
|
5834
|
-
_size =
|
|
5835
|
-
_rounded =
|
|
5836
|
-
_fillMode =
|
|
5814
|
+
_size = undefined;
|
|
5815
|
+
_rounded = undefined;
|
|
5816
|
+
_fillMode = undefined;
|
|
5837
5817
|
_inputAttributes;
|
|
5838
5818
|
parsedAttributes = {};
|
|
5839
5819
|
constructor(service, renderer, hostElement, ngZone, injector, changeDetector, rtl) {
|
|
@@ -6446,7 +6426,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6446
6426
|
}] } });
|
|
6447
6427
|
|
|
6448
6428
|
const FOCUSED$2 = 'k-focus';
|
|
6449
|
-
const DEFAULT_SIZE$b = 'medium';
|
|
6450
6429
|
/**
|
|
6451
6430
|
* @hidden
|
|
6452
6431
|
*/
|
|
@@ -6495,15 +6474,13 @@ class RadioCheckBoxBase {
|
|
|
6495
6474
|
*/
|
|
6496
6475
|
value;
|
|
6497
6476
|
/**
|
|
6498
|
-
* The size property specifies the width and height of the component.
|
|
6477
|
+
* The size property specifies the width and height of the component. The default value is set by the Kendo theme.
|
|
6499
6478
|
*
|
|
6500
|
-
* @default 'medium'
|
|
6501
6479
|
*
|
|
6502
6480
|
*/
|
|
6503
6481
|
set size(size) {
|
|
6504
|
-
|
|
6505
|
-
this.
|
|
6506
|
-
this._size = newSize;
|
|
6482
|
+
this.handleClasses(size, 'size');
|
|
6483
|
+
this._size = size;
|
|
6507
6484
|
}
|
|
6508
6485
|
get size() {
|
|
6509
6486
|
return this._size;
|
|
@@ -6663,7 +6640,7 @@ class RadioCheckBoxBase {
|
|
|
6663
6640
|
ngChange = (_) => { };
|
|
6664
6641
|
ngTouched = () => { };
|
|
6665
6642
|
_isFocused = false;
|
|
6666
|
-
_size =
|
|
6643
|
+
_size = undefined;
|
|
6667
6644
|
constructor(componentType, hostElement, renderer, cdr, ngZone, injector) {
|
|
6668
6645
|
this.componentType = componentType;
|
|
6669
6646
|
this.hostElement = hostElement;
|
|
@@ -6732,7 +6709,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6732
6709
|
args: ['input', { static: true }]
|
|
6733
6710
|
}] } });
|
|
6734
6711
|
|
|
6735
|
-
const DEFAULT_ROUNDED$6 = 'medium';
|
|
6736
6712
|
/**
|
|
6737
6713
|
* Represents the Kendo UI CheckBox component for Angular.
|
|
6738
6714
|
* Use this component to create a styled checkbox with support for indeterminate state.
|
|
@@ -6768,14 +6744,11 @@ class CheckBoxComponent extends RadioCheckBoxBase {
|
|
|
6768
6744
|
}
|
|
6769
6745
|
/**
|
|
6770
6746
|
* Sets the `rounded` property to specify the border radius of the CheckBox
|
|
6771
|
-
* ([see example](
|
|
6772
|
-
*
|
|
6773
|
-
* @default 'medium'
|
|
6747
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/checkbox/appearance#roundness)). The default value is set by the Kendo theme.
|
|
6774
6748
|
*/
|
|
6775
6749
|
set rounded(rounded) {
|
|
6776
|
-
|
|
6777
|
-
this.
|
|
6778
|
-
this._rounded = newRounded;
|
|
6750
|
+
this.handleClasses(rounded, 'rounded');
|
|
6751
|
+
this._rounded = rounded;
|
|
6779
6752
|
}
|
|
6780
6753
|
get rounded() {
|
|
6781
6754
|
return this._rounded;
|
|
@@ -6811,7 +6784,7 @@ class CheckBoxComponent extends RadioCheckBoxBase {
|
|
|
6811
6784
|
'aria-invalid': this.isControlInvalid
|
|
6812
6785
|
};
|
|
6813
6786
|
}
|
|
6814
|
-
_rounded =
|
|
6787
|
+
_rounded = undefined;
|
|
6815
6788
|
_checkedState = false;
|
|
6816
6789
|
constructor(renderer, hostElement, cdr, ngZone, injector) {
|
|
6817
6790
|
super('checkbox', hostElement, renderer, cdr, ngZone, injector);
|
|
@@ -6947,10 +6920,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6947
6920
|
type: Output
|
|
6948
6921
|
}] } });
|
|
6949
6922
|
|
|
6950
|
-
const DEFAULT_SIZE$a = 'medium';
|
|
6951
|
-
const DEFAULT_ROUNDED$5 = 'medium';
|
|
6952
6923
|
/**
|
|
6953
|
-
* Renders the [Kendo UI CheckBox](
|
|
6924
|
+
* Renders the [Kendo UI CheckBox](https://www.telerik.com/kendo-angular-ui/components/inputs/checkbox) input component.
|
|
6954
6925
|
* Apply this directive to `input type="checkbox"` HTML elements.
|
|
6955
6926
|
*
|
|
6956
6927
|
* @example
|
|
@@ -6967,35 +6938,29 @@ class CheckBoxDirective {
|
|
|
6967
6938
|
}
|
|
6968
6939
|
/**
|
|
6969
6940
|
* Sets the `size` property to specify the width and height of the CheckBox
|
|
6970
|
-
* ([see example](
|
|
6971
|
-
*
|
|
6972
|
-
* @default 'medium'
|
|
6941
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/checkbox/appearance#size)). The default value is set by the Kendo theme.
|
|
6973
6942
|
*/
|
|
6974
6943
|
set size(size) {
|
|
6975
|
-
|
|
6976
|
-
this.
|
|
6977
|
-
this._size = newSize;
|
|
6944
|
+
this.handleClasses(size, 'size');
|
|
6945
|
+
this._size = size;
|
|
6978
6946
|
}
|
|
6979
6947
|
get size() {
|
|
6980
6948
|
return this._size;
|
|
6981
6949
|
}
|
|
6982
6950
|
/**
|
|
6983
6951
|
* Sets the `rounded` property to specify the border radius of the CheckBox
|
|
6984
|
-
* ([see example](
|
|
6985
|
-
*
|
|
6986
|
-
* @default 'medium'
|
|
6952
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/checkbox/appearance#roundness)). The default value is set by the Kendo theme.
|
|
6987
6953
|
*
|
|
6988
6954
|
*/
|
|
6989
6955
|
set rounded(rounded) {
|
|
6990
|
-
|
|
6991
|
-
this.
|
|
6992
|
-
this._rounded = newRounded;
|
|
6956
|
+
this.handleClasses(rounded, 'rounded');
|
|
6957
|
+
this._rounded = rounded;
|
|
6993
6958
|
}
|
|
6994
6959
|
get rounded() {
|
|
6995
6960
|
return this._rounded;
|
|
6996
6961
|
}
|
|
6997
|
-
_size =
|
|
6998
|
-
_rounded =
|
|
6962
|
+
_size = undefined;
|
|
6963
|
+
_rounded = undefined;
|
|
6999
6964
|
constructor(renderer, hostElement) {
|
|
7000
6965
|
this.renderer = renderer;
|
|
7001
6966
|
this.hostElement = hostElement;
|
|
@@ -7416,7 +7381,7 @@ const isJapanese = (input) => {
|
|
|
7416
7381
|
};
|
|
7417
7382
|
|
|
7418
7383
|
/**
|
|
7419
|
-
* Represents a template for suffix adornments in the TextBox component ([see examples](
|
|
7384
|
+
* Represents a template for suffix adornments in the TextBox component ([see examples](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#suffix-adornments)).
|
|
7420
7385
|
*
|
|
7421
7386
|
* @example
|
|
7422
7387
|
* ```html
|
|
@@ -7460,7 +7425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
7460
7425
|
}] } });
|
|
7461
7426
|
|
|
7462
7427
|
/**
|
|
7463
|
-
* Represents a template for prefix adornments in the TextBox component ([see examples](
|
|
7428
|
+
* Represents a template for prefix adornments in the TextBox component ([see examples](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/adornments#prefix-adornments)).
|
|
7464
7429
|
*
|
|
7465
7430
|
* @example
|
|
7466
7431
|
* ```html
|
|
@@ -7558,9 +7523,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
7558
7523
|
|
|
7559
7524
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7560
7525
|
const FOCUSED$1 = 'k-focus';
|
|
7561
|
-
const DEFAULT_SIZE$9 = 'medium';
|
|
7562
|
-
const DEFAULT_ROUNDED$4 = 'medium';
|
|
7563
|
-
const DEFAULT_FILL_MODE$4 = 'solid';
|
|
7564
7526
|
const iconsMap$1 = { checkIcon, exclamationCircleIcon, xIcon };
|
|
7565
7527
|
/**
|
|
7566
7528
|
* Represents the Kendo UI TextBox component for Angular.
|
|
@@ -7595,7 +7557,7 @@ class TextBoxComponent {
|
|
|
7595
7557
|
*/
|
|
7596
7558
|
type = 'text';
|
|
7597
7559
|
/**
|
|
7598
|
-
* Sets the disabled state of the TextBox. To disable the component in reactive forms, see [Forms Support](
|
|
7560
|
+
* Sets the disabled state of the TextBox. To disable the component in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/forms#managing-the-textbox-disabled-state-in-reactive-forms).
|
|
7599
7561
|
* @default false
|
|
7600
7562
|
*/
|
|
7601
7563
|
disabled = false;
|
|
@@ -7619,13 +7581,13 @@ class TextBoxComponent {
|
|
|
7619
7581
|
*/
|
|
7620
7582
|
selectOnFocus = false;
|
|
7621
7583
|
/**
|
|
7622
|
-
* Specifies when to show the Success icon ([see example](
|
|
7584
|
+
* Specifies when to show the Success icon ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/validation-icons)).
|
|
7623
7585
|
*
|
|
7624
7586
|
* @default false
|
|
7625
7587
|
*/
|
|
7626
7588
|
showSuccessIcon = false;
|
|
7627
7589
|
/**
|
|
7628
|
-
* Specifies when to show the Error icon ([see example](
|
|
7590
|
+
* Specifies when to show the Error icon ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/validation-icons)).
|
|
7629
7591
|
*
|
|
7630
7592
|
* @default false
|
|
7631
7593
|
*/
|
|
@@ -7660,37 +7622,31 @@ class TextBoxComponent {
|
|
|
7660
7622
|
*/
|
|
7661
7623
|
clearButtonSvgIcon;
|
|
7662
7624
|
/**
|
|
7663
|
-
* Sets the padding of the TextBox internal input element ([see example](
|
|
7664
|
-
* @default 'medium'
|
|
7625
|
+
* Sets the padding of the TextBox internal input element ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/appearance#size)). The default value is set by the Kendo theme.
|
|
7665
7626
|
*/
|
|
7666
7627
|
set size(size) {
|
|
7667
|
-
|
|
7668
|
-
this.
|
|
7669
|
-
this._size = newSize;
|
|
7628
|
+
this.handleClasses(size, 'size');
|
|
7629
|
+
this._size = size;
|
|
7670
7630
|
}
|
|
7671
7631
|
get size() {
|
|
7672
7632
|
return this._size;
|
|
7673
7633
|
}
|
|
7674
7634
|
/**
|
|
7675
|
-
* Sets the border radius of the TextBox ([see example](
|
|
7676
|
-
* @default 'medium'
|
|
7635
|
+
* Sets the border radius of the TextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/appearance#roundness)). The default value is set by the Kendo theme.
|
|
7677
7636
|
*/
|
|
7678
7637
|
set rounded(rounded) {
|
|
7679
|
-
|
|
7680
|
-
this.
|
|
7681
|
-
this._rounded = newRounded;
|
|
7638
|
+
this.handleClasses(rounded, 'rounded');
|
|
7639
|
+
this._rounded = rounded;
|
|
7682
7640
|
}
|
|
7683
7641
|
get rounded() {
|
|
7684
7642
|
return this._rounded;
|
|
7685
7643
|
}
|
|
7686
7644
|
/**
|
|
7687
|
-
* Sets the background and border styles of the TextBox ([see example](
|
|
7688
|
-
* @default 'solid'
|
|
7645
|
+
* Sets the background and border styles of the TextBox ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/appearance#fill-mode)). The default value is set by the Kendo theme.
|
|
7689
7646
|
*/
|
|
7690
7647
|
set fillMode(fillMode) {
|
|
7691
|
-
|
|
7692
|
-
this.
|
|
7693
|
-
this._fillMode = newFillMode;
|
|
7648
|
+
this.handleClasses(fillMode, 'fillMode');
|
|
7649
|
+
this._fillMode = fillMode;
|
|
7694
7650
|
}
|
|
7695
7651
|
get fillMode() {
|
|
7696
7652
|
return this._fillMode;
|
|
@@ -7729,7 +7685,7 @@ class TextBoxComponent {
|
|
|
7729
7685
|
return this._inputAttributes;
|
|
7730
7686
|
}
|
|
7731
7687
|
/**
|
|
7732
|
-
* Fires when the value changes—when the component is blurred or the value is cleared through the **Clear** button ([see example](
|
|
7688
|
+
* Fires when the value changes—when the component is blurred or the value is cleared through the **Clear** button ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textbox/events)).
|
|
7733
7689
|
* Does not fire when you change the value programmatically through `ngModel` or `formControl`.
|
|
7734
7690
|
*/
|
|
7735
7691
|
valueChange = new EventEmitter();
|
|
@@ -7797,9 +7753,9 @@ class TextBoxComponent {
|
|
|
7797
7753
|
_isFocused = false;
|
|
7798
7754
|
focusChangedProgrammatically = false;
|
|
7799
7755
|
_inputAttributes;
|
|
7800
|
-
_size =
|
|
7801
|
-
_rounded =
|
|
7802
|
-
_fillMode =
|
|
7756
|
+
_size = undefined;
|
|
7757
|
+
_rounded = undefined;
|
|
7758
|
+
_fillMode = undefined;
|
|
7803
7759
|
parsedAttributes = {};
|
|
7804
7760
|
get defaultAttributes() {
|
|
7805
7761
|
return {
|
|
@@ -8495,7 +8451,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
8495
8451
|
}] } });
|
|
8496
8452
|
|
|
8497
8453
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8498
|
-
const DEFAULT_SIZE$8 = 'medium';
|
|
8499
8454
|
/**
|
|
8500
8455
|
* @hidden
|
|
8501
8456
|
*/
|
|
@@ -8513,11 +8468,10 @@ class ColorInputComponent {
|
|
|
8513
8468
|
*/
|
|
8514
8469
|
formatView;
|
|
8515
8470
|
/**
|
|
8516
|
-
* Sets the size of the ColorInput.
|
|
8471
|
+
* Sets the size of the ColorInput. The default value is set by the Kendo theme.
|
|
8517
8472
|
*
|
|
8518
|
-
* @default 'medium'
|
|
8519
8473
|
*/
|
|
8520
|
-
size =
|
|
8474
|
+
size = undefined;
|
|
8521
8475
|
/**
|
|
8522
8476
|
* Sets the `tabindex` of the inputs.
|
|
8523
8477
|
* @default -1
|
|
@@ -9513,7 +9467,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
9513
9467
|
|
|
9514
9468
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9515
9469
|
let serial$3 = 0;
|
|
9516
|
-
const DEFAULT_SIZE$7 = 'medium';
|
|
9517
9470
|
/**
|
|
9518
9471
|
* Represents the Kendo UI ColorGradient component.
|
|
9519
9472
|
*
|
|
@@ -9598,20 +9551,18 @@ class ColorGradientComponent {
|
|
|
9598
9551
|
*/
|
|
9599
9552
|
opacity = true;
|
|
9600
9553
|
/**
|
|
9601
|
-
* Sets the size of the ColorGradient internal elements.
|
|
9554
|
+
* Sets the size of the ColorGradient internal elements. The default value is set by the Kendo theme.
|
|
9602
9555
|
*
|
|
9603
|
-
* @default 'medium'
|
|
9604
9556
|
*/
|
|
9605
9557
|
set size(size) {
|
|
9606
|
-
|
|
9607
|
-
this.
|
|
9608
|
-
this._size = newSize;
|
|
9558
|
+
this.handleClasses(size, 'size');
|
|
9559
|
+
this._size = size;
|
|
9609
9560
|
}
|
|
9610
9561
|
get size() {
|
|
9611
9562
|
return this._size;
|
|
9612
9563
|
}
|
|
9613
9564
|
/**
|
|
9614
|
-
* Disables the ColorGradient. To disable it in reactive forms, see [Forms Support](
|
|
9565
|
+
* Disables the ColorGradient. To disable it in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/colorgradient/forms#managing-the-colorgradient-disabled-state-in-reactive-forms).
|
|
9615
9566
|
*
|
|
9616
9567
|
* @default false
|
|
9617
9568
|
*/
|
|
@@ -9644,7 +9595,7 @@ class ColorGradientComponent {
|
|
|
9644
9595
|
return this._value;
|
|
9645
9596
|
}
|
|
9646
9597
|
/**
|
|
9647
|
-
* Enables the color contrast tool that checks the contrast ratio of the selected color against a predefined background color. [See example](
|
|
9598
|
+
* Enables the color contrast tool that checks the contrast ratio of the selected color against a predefined background color. [See example](https://www.telerik.com/kendo-angular-ui/components/inputs/colorgradient/contrast-tool).
|
|
9648
9599
|
*/
|
|
9649
9600
|
set contrastTool(value) {
|
|
9650
9601
|
this._contrastTool = parseColor(value, this.format, this.opacity);
|
|
@@ -9750,7 +9701,7 @@ class ColorGradientComponent {
|
|
|
9750
9701
|
listeners = [];
|
|
9751
9702
|
hueSliderTouched = false;
|
|
9752
9703
|
alphaSliderTouched = false;
|
|
9753
|
-
_size =
|
|
9704
|
+
_size = undefined;
|
|
9754
9705
|
updateValues = new Subject();
|
|
9755
9706
|
changeRequestsSubscription;
|
|
9756
9707
|
dynamicRTLSubscription;
|
|
@@ -10754,7 +10705,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
10754
10705
|
const DEFAULT_COLUMNS_COUNT = 10;
|
|
10755
10706
|
const DEFAULT_PRESET = 'office';
|
|
10756
10707
|
const DEFAULT_ACCESSIBLE_PRESET = 'accessible';
|
|
10757
|
-
const DEFAULT_SIZE$6 = 'medium';
|
|
10758
10708
|
let serial$2 = 0;
|
|
10759
10709
|
/**
|
|
10760
10710
|
* Represents the Kendo UI ColorPalette component.
|
|
@@ -10846,14 +10796,12 @@ class ColorPaletteComponent {
|
|
|
10846
10796
|
return this._palette;
|
|
10847
10797
|
}
|
|
10848
10798
|
/**
|
|
10849
|
-
* Sets the size of the ColorPalette internal elements.
|
|
10799
|
+
* Sets the size of the ColorPalette internal elements. The default value is set by the Kendo theme.
|
|
10850
10800
|
*
|
|
10851
|
-
* @default 'medium'
|
|
10852
10801
|
*/
|
|
10853
10802
|
set size(size) {
|
|
10854
|
-
|
|
10855
|
-
this.
|
|
10856
|
-
this._size = newSize;
|
|
10803
|
+
this.handleClasses(size, 'size');
|
|
10804
|
+
this._size = size;
|
|
10857
10805
|
}
|
|
10858
10806
|
get size() {
|
|
10859
10807
|
return this._size;
|
|
@@ -10872,7 +10820,7 @@ class ColorPaletteComponent {
|
|
|
10872
10820
|
return !this.disabled ? this._tabindex : undefined;
|
|
10873
10821
|
}
|
|
10874
10822
|
/**
|
|
10875
|
-
* Disables the ColorPalette. To disable it in reactive forms, see [Forms Support](
|
|
10823
|
+
* Disables the ColorPalette. To disable it in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/colorpalette/forms#managing-the-colorpalette-disabled-state-in-reactive-forms).
|
|
10876
10824
|
*/
|
|
10877
10825
|
disabled = false;
|
|
10878
10826
|
/**
|
|
@@ -10951,7 +10899,7 @@ class ColorPaletteComponent {
|
|
|
10951
10899
|
*/
|
|
10952
10900
|
uniqueId = guid();
|
|
10953
10901
|
selection;
|
|
10954
|
-
_size =
|
|
10902
|
+
_size = undefined;
|
|
10955
10903
|
_value;
|
|
10956
10904
|
_columns;
|
|
10957
10905
|
_palette;
|
|
@@ -11808,7 +11756,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
11808
11756
|
|
|
11809
11757
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11810
11758
|
/* eslint-disable no-unused-expressions */
|
|
11811
|
-
const DEFAULT_SIZE$5 = 'medium';
|
|
11812
11759
|
/**
|
|
11813
11760
|
* Represents the Kendo UI FlatColorPicker component for Angular.
|
|
11814
11761
|
*
|
|
@@ -11879,7 +11826,7 @@ class FlatColorPickerComponent {
|
|
|
11879
11826
|
*/
|
|
11880
11827
|
readonly = false;
|
|
11881
11828
|
/**
|
|
11882
|
-
* Sets the disabled state of the FlatColorPicker. To disable it in reactive forms, see [Forms Support](
|
|
11829
|
+
* Sets the disabled state of the FlatColorPicker. To disable it in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/flatcolorpicker/forms#managing-the-flatcolorpicker-disabled-state-in-reactive-forms).
|
|
11883
11830
|
*
|
|
11884
11831
|
* @default false
|
|
11885
11832
|
*/
|
|
@@ -11974,14 +11921,12 @@ class FlatColorPickerComponent {
|
|
|
11974
11921
|
return this._paletteSettings;
|
|
11975
11922
|
}
|
|
11976
11923
|
/**
|
|
11977
|
-
* Sets the size of the FlatColorPicker internal elements.
|
|
11924
|
+
* Sets the size of the FlatColorPicker internal elements. The default value is set by the Kendo theme.
|
|
11978
11925
|
*
|
|
11979
|
-
* @default 'medium'
|
|
11980
11926
|
*/
|
|
11981
11927
|
set size(size) {
|
|
11982
|
-
|
|
11983
|
-
this.
|
|
11984
|
-
this._size = newSize;
|
|
11928
|
+
this.handleClasses(size, 'size');
|
|
11929
|
+
this._size = size;
|
|
11985
11930
|
}
|
|
11986
11931
|
get size() {
|
|
11987
11932
|
return this._size;
|
|
@@ -12033,7 +11978,7 @@ class FlatColorPickerComponent {
|
|
|
12033
11978
|
dynamicRTLSubscription;
|
|
12034
11979
|
subscriptions = new Subscription();
|
|
12035
11980
|
internalNavigation = false;
|
|
12036
|
-
_size =
|
|
11981
|
+
_size = undefined;
|
|
12037
11982
|
control;
|
|
12038
11983
|
/**
|
|
12039
11984
|
* @hidden
|
|
@@ -12988,9 +12933,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
12988
12933
|
|
|
12989
12934
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
12990
12935
|
const DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
12991
|
-
const DEFAULT_SIZE$4 = 'medium';
|
|
12992
|
-
const DEFAULT_ROUNDED$3 = 'medium';
|
|
12993
|
-
const DEFAULT_FILL_MODE$3 = 'solid';
|
|
12994
12936
|
/**
|
|
12995
12937
|
* @hidden
|
|
12996
12938
|
*/
|
|
@@ -13074,7 +13016,7 @@ class ColorPickerComponent {
|
|
|
13074
13016
|
*/
|
|
13075
13017
|
readonly = false;
|
|
13076
13018
|
/**
|
|
13077
|
-
* Sets the disabled state of the ColorPicker. To disable it in reactive forms, see [Forms Support](
|
|
13019
|
+
* Sets the disabled state of the ColorPicker. To disable it in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/colorpicker/forms#managing-the-colorpicker-disabled-state-in-reactive-forms).
|
|
13078
13020
|
*
|
|
13079
13021
|
* @default false
|
|
13080
13022
|
*/
|
|
@@ -13196,42 +13138,33 @@ class ColorPickerComponent {
|
|
|
13196
13138
|
actionsLayout = 'end';
|
|
13197
13139
|
/**
|
|
13198
13140
|
* The size property specifies the padding of the ColorPicker internal elements
|
|
13199
|
-
* ([see example](
|
|
13200
|
-
*
|
|
13201
|
-
* @default 'medium'
|
|
13141
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/colorpicker/appearance#size)). The default value is set by the Kendo theme.
|
|
13202
13142
|
*/
|
|
13203
13143
|
set size(size) {
|
|
13204
|
-
|
|
13205
|
-
this.
|
|
13206
|
-
this._size = newSize;
|
|
13144
|
+
this.handleClasses(size, 'size');
|
|
13145
|
+
this._size = size;
|
|
13207
13146
|
}
|
|
13208
13147
|
get size() {
|
|
13209
13148
|
return this._size;
|
|
13210
13149
|
}
|
|
13211
13150
|
/**
|
|
13212
13151
|
* The rounded property specifies the border radius of the ColorPicker
|
|
13213
|
-
* ([see example](
|
|
13214
|
-
*
|
|
13215
|
-
* @default 'medium'
|
|
13152
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/colorpicker/appearance#roundness)). The default value is set by the Kendo theme.
|
|
13216
13153
|
*/
|
|
13217
13154
|
set rounded(rounded) {
|
|
13218
|
-
|
|
13219
|
-
this.
|
|
13220
|
-
this._rounded = newRounded;
|
|
13155
|
+
this.handleClasses(rounded, 'rounded');
|
|
13156
|
+
this._rounded = rounded;
|
|
13221
13157
|
}
|
|
13222
13158
|
get rounded() {
|
|
13223
13159
|
return this._rounded;
|
|
13224
13160
|
}
|
|
13225
13161
|
/**
|
|
13226
13162
|
* The fillMode property specifies the background and border styles of the ColorPicker
|
|
13227
|
-
* ([see example](
|
|
13228
|
-
*
|
|
13229
|
-
* @default 'solid'
|
|
13163
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/colorpicker/appearance#fill-mode)). The default value is set by the Kendo theme.
|
|
13230
13164
|
*/
|
|
13231
13165
|
set fillMode(fillMode) {
|
|
13232
|
-
|
|
13233
|
-
this.
|
|
13234
|
-
this._fillMode = newFillMode;
|
|
13166
|
+
this.handleClasses(fillMode, 'fillMode');
|
|
13167
|
+
this._fillMode = fillMode;
|
|
13235
13168
|
}
|
|
13236
13169
|
get fillMode() {
|
|
13237
13170
|
return this._fillMode;
|
|
@@ -13268,7 +13201,7 @@ class ColorPickerComponent {
|
|
|
13268
13201
|
* Fires when the left side of the ColorPicker wrapper is clicked.
|
|
13269
13202
|
* The event is triggered regardless of whether a ColorPicker icon is set or not.
|
|
13270
13203
|
*
|
|
13271
|
-
* The [`ActiveColorClickEvent`](
|
|
13204
|
+
* The [`ActiveColorClickEvent`](https://www.telerik.com/kendo-angular-ui/components/inputs/api/activecolorclickevent) event provides the option to prevent the popup opening.
|
|
13272
13205
|
*/
|
|
13273
13206
|
activeColorClick = new EventEmitter();
|
|
13274
13207
|
/**
|
|
@@ -13365,9 +13298,9 @@ class ColorPickerComponent {
|
|
|
13365
13298
|
_popupSettings = { animate: true };
|
|
13366
13299
|
_paletteSettings = {};
|
|
13367
13300
|
_gradientSettings = { opacity: true, delay: 0 };
|
|
13368
|
-
_size =
|
|
13369
|
-
_rounded =
|
|
13370
|
-
_fillMode =
|
|
13301
|
+
_size = undefined;
|
|
13302
|
+
_rounded = undefined;
|
|
13303
|
+
_fillMode = undefined;
|
|
13371
13304
|
dynamicRTLSubscription;
|
|
13372
13305
|
subscriptions = new Subscription();
|
|
13373
13306
|
popupSubs = new Subscription();
|
|
@@ -13948,7 +13881,6 @@ class ColorPickerComponent {
|
|
|
13948
13881
|
[svgIcon]="arrowDownIcon"
|
|
13949
13882
|
[fillMode]="fillMode"
|
|
13950
13883
|
[disabled]="disabled"
|
|
13951
|
-
rounded="none"
|
|
13952
13884
|
class="k-input-button"
|
|
13953
13885
|
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
13954
13886
|
>
|
|
@@ -14098,7 +14030,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
14098
14030
|
[svgIcon]="arrowDownIcon"
|
|
14099
14031
|
[fillMode]="fillMode"
|
|
14100
14032
|
[disabled]="disabled"
|
|
14101
|
-
rounded="none"
|
|
14102
14033
|
class="k-input-button"
|
|
14103
14034
|
[attr.aria-label]="messageFor('toggleButtonLabel')"
|
|
14104
14035
|
>
|
|
@@ -15129,7 +15060,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
15129
15060
|
type: Output
|
|
15130
15061
|
}] } });
|
|
15131
15062
|
|
|
15132
|
-
const DEFAULT_SIZE$3 = 'medium';
|
|
15133
15063
|
/**
|
|
15134
15064
|
* Represents the directive that renders the Kendo UI RadioButton input component.
|
|
15135
15065
|
* Place the directive on `input type="radio"` HTML elements.
|
|
@@ -15147,19 +15077,16 @@ class RadioButtonDirective {
|
|
|
15147
15077
|
return this.hostElement.nativeElement.disabled;
|
|
15148
15078
|
}
|
|
15149
15079
|
/**
|
|
15150
|
-
* Specifies the `size` of the RadioButton. The `size` property changes the width and height of the RadioButton ([see example](
|
|
15151
|
-
*
|
|
15152
|
-
* @default "medium"
|
|
15080
|
+
* Specifies the `size` of the RadioButton. The `size` property changes the width and height of the RadioButton ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/radiobutton/appearance#size)). The default value is set by the Kendo theme.
|
|
15153
15081
|
*/
|
|
15154
15082
|
set size(size) {
|
|
15155
|
-
|
|
15156
|
-
this.
|
|
15157
|
-
this._size = newSize;
|
|
15083
|
+
this.handleClasses(size, 'size');
|
|
15084
|
+
this._size = size;
|
|
15158
15085
|
}
|
|
15159
15086
|
get size() {
|
|
15160
15087
|
return this._size;
|
|
15161
15088
|
}
|
|
15162
|
-
_size =
|
|
15089
|
+
_size = undefined;
|
|
15163
15090
|
constructor(renderer, hostElement) {
|
|
15164
15091
|
this.renderer = renderer;
|
|
15165
15092
|
this.hostElement = hostElement;
|
|
@@ -15249,7 +15176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
15249
15176
|
|
|
15250
15177
|
/**
|
|
15251
15178
|
* Renders the hovered rating item content.
|
|
15252
|
-
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingHoveredItemTemplate` directive inside the `<kendo-rating>` tag ([see example](
|
|
15179
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingHoveredItemTemplate` directive inside the `<kendo-rating>` tag ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/templates)).
|
|
15253
15180
|
*
|
|
15254
15181
|
* The index of the currently hovered item is available as an implicit context using the `let-index="index"` syntax.
|
|
15255
15182
|
* @example
|
|
@@ -15279,7 +15206,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
15279
15206
|
|
|
15280
15207
|
/**
|
|
15281
15208
|
* Renders the rating item content.
|
|
15282
|
-
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingItemTemplate` directive inside the `<kendo-rating>` tag ([see example](
|
|
15209
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingItemTemplate` directive inside the `<kendo-rating>` tag ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/templates)).
|
|
15283
15210
|
* The index of the current item is available as an implicit context using the `let-index="index"` syntax.
|
|
15284
15211
|
* * @example
|
|
15285
15212
|
* ```html
|
|
@@ -15308,7 +15235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
15308
15235
|
|
|
15309
15236
|
/**
|
|
15310
15237
|
* Renders the selected rating item content.
|
|
15311
|
-
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingSelectedItemTemplate` directive inside the `<kendo-rating>` tag ([see example](
|
|
15238
|
+
* To define an item template, nest an `<ng-template>` tag with the `kendoRatingSelectedItemTemplate` directive inside the `<kendo-rating>` tag ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/templates)).
|
|
15312
15239
|
*
|
|
15313
15240
|
* The index of the currently selected item is available as an implicit context using the `let-index="index"` syntax.
|
|
15314
15241
|
*
|
|
@@ -15356,15 +15283,15 @@ class RatingComponent {
|
|
|
15356
15283
|
hoveredItemTemplate;
|
|
15357
15284
|
selectedItemTemplate;
|
|
15358
15285
|
/**
|
|
15359
|
-
* When `true`, disables the Rating ([see example](
|
|
15286
|
+
* When `true`, disables the Rating ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/disabled)).
|
|
15360
15287
|
|
|
15361
|
-
* To disable the component in reactive forms, see [Forms Support](
|
|
15288
|
+
* To disable the component in reactive forms, see [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/forms#managing-the-rating-disabled-state-in-reactive-forms).
|
|
15362
15289
|
*
|
|
15363
15290
|
* @default false
|
|
15364
15291
|
*/
|
|
15365
15292
|
disabled = false;
|
|
15366
15293
|
/**
|
|
15367
|
-
* When `true`, sets the Rating to read-only ([see example](
|
|
15294
|
+
* When `true`, sets the Rating to read-only ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/readonly)).
|
|
15368
15295
|
|
|
15369
15296
|
*
|
|
15370
15297
|
* @default false
|
|
@@ -15378,7 +15305,7 @@ class RatingComponent {
|
|
|
15378
15305
|
*/
|
|
15379
15306
|
tabindex = 0;
|
|
15380
15307
|
/**
|
|
15381
|
-
* Sets the number of Rating items ([see example](
|
|
15308
|
+
* Sets the number of Rating items ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/items)).
|
|
15382
15309
|
*
|
|
15383
15310
|
* @default 5
|
|
15384
15311
|
*/
|
|
@@ -15395,7 +15322,7 @@ class RatingComponent {
|
|
|
15395
15322
|
return this._value;
|
|
15396
15323
|
}
|
|
15397
15324
|
/**
|
|
15398
|
-
* Sets the selection mode of the Rating ([see example](
|
|
15325
|
+
* Sets the selection mode of the Rating ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/selection)).
|
|
15399
15326
|
*
|
|
15400
15327
|
* @default 'continuous'
|
|
15401
15328
|
*/
|
|
@@ -15407,7 +15334,7 @@ class RatingComponent {
|
|
|
15407
15334
|
return this._selection;
|
|
15408
15335
|
}
|
|
15409
15336
|
/**
|
|
15410
|
-
* Sets the precision of the Rating ([see example](
|
|
15337
|
+
* Sets the precision of the Rating ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/precision)).
|
|
15411
15338
|
*
|
|
15412
15339
|
* @default 'item'
|
|
15413
15340
|
*/
|
|
@@ -15419,19 +15346,19 @@ class RatingComponent {
|
|
|
15419
15346
|
return this._precision;
|
|
15420
15347
|
}
|
|
15421
15348
|
/**
|
|
15422
|
-
* Sets the label text for the Rating. The text renders in a `<span>` element ([see example](
|
|
15349
|
+
* Sets the label text for the Rating. The text renders in a `<span>` element ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/label)).
|
|
15423
15350
|
*/
|
|
15424
15351
|
label;
|
|
15425
15352
|
/**
|
|
15426
|
-
* Sets a custom font icon for the Rating items ([see example](
|
|
15353
|
+
* Sets a custom font icon for the Rating items ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/icon)).
|
|
15427
15354
|
*/
|
|
15428
15355
|
icon;
|
|
15429
15356
|
/**
|
|
15430
|
-
* Sets a custom SVG icon for the selected or hovered state of the Rating items ([see example](
|
|
15357
|
+
* Sets a custom SVG icon for the selected or hovered state of the Rating items ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/icon)).
|
|
15431
15358
|
*/
|
|
15432
15359
|
svgIcon = starIcon;
|
|
15433
15360
|
/**
|
|
15434
|
-
* Sets a custom SVG icon for the default state of the Rating items when not hovered or selected ([see example](
|
|
15361
|
+
* Sets a custom SVG icon for the default state of the Rating items when not hovered or selected ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/rating/icon)).
|
|
15435
15362
|
*/
|
|
15436
15363
|
svgIconOutline = starOutlineIcon;
|
|
15437
15364
|
/**
|
|
@@ -15701,144 +15628,144 @@ class RatingComponent {
|
|
|
15701
15628
|
provide: KendoInput,
|
|
15702
15629
|
useExisting: forwardRef(() => RatingComponent)
|
|
15703
15630
|
}
|
|
15704
|
-
], queries: [{ propertyName: "itemTemplate", first: true, predicate: RatingItemTemplateDirective, descendants: true }, { propertyName: "hoveredItemTemplate", first: true, predicate: RatingHoveredItemTemplateDirective, descendants: true }, { propertyName: "selectedItemTemplate", first: true, predicate: RatingSelectedItemTemplateDirective, descendants: true }], exportAs: ["kendoRating"], ngImport: i0, template: `
|
|
15705
|
-
<span class="k-rating-container">
|
|
15706
|
-
@for (item of ratingItems; track item; let i = $index) {
|
|
15707
|
-
<span
|
|
15708
|
-
class="k-rating-item"
|
|
15709
|
-
[title]="item.title"
|
|
15631
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: RatingItemTemplateDirective, descendants: true }, { propertyName: "hoveredItemTemplate", first: true, predicate: RatingHoveredItemTemplateDirective, descendants: true }, { propertyName: "selectedItemTemplate", first: true, predicate: RatingSelectedItemTemplateDirective, descendants: true }], exportAs: ["kendoRating"], ngImport: i0, template: `
|
|
15632
|
+
<span class="k-rating-container">
|
|
15633
|
+
@for (item of ratingItems; track item; let i = $index) {
|
|
15634
|
+
<span
|
|
15635
|
+
class="k-rating-item"
|
|
15636
|
+
[title]="item.title"
|
|
15710
15637
|
[ngClass]="{
|
|
15711
15638
|
'k-selected': item.selected || item.selectedIndicator,
|
|
15712
15639
|
'k-hover': item.hovered
|
|
15713
15640
|
}"
|
|
15714
|
-
(mouseenter)="onMouseEnter($event)"
|
|
15715
|
-
(mouseout)="onMouseOut()"
|
|
15716
|
-
(click)="changeValue(i, $event)"
|
|
15717
|
-
>
|
|
15718
|
-
@if (!item.half) {
|
|
15719
|
-
@if (!itemTemplate) {
|
|
15720
|
-
@if (!icon) {
|
|
15721
|
-
<kendo-icon-wrapper
|
|
15722
|
-
size="xlarge"
|
|
15723
|
-
[name]="item.selected || item.hovered ? 'star' : 'star-outline'"
|
|
15724
|
-
[svgIcon]="item.selected || item.hovered ? svgIcon : svgIconOutline"
|
|
15725
|
-
>
|
|
15726
|
-
</kendo-icon-wrapper>
|
|
15727
|
-
}
|
|
15728
|
-
@if (icon) {
|
|
15729
|
-
<kendo-icon-wrapper
|
|
15730
|
-
size="xlarge"
|
|
15731
|
-
[name]="item.selected || item.hovered ? icon : icon + '-outline'"
|
|
15732
|
-
>
|
|
15733
|
-
</kendo-icon-wrapper>
|
|
15734
|
-
}
|
|
15735
|
-
}
|
|
15736
|
-
@if (itemTemplate && (!item.selected && !item.hovered)) {
|
|
15737
|
-
<ng-template
|
|
15738
|
-
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15739
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15740
|
-
>
|
|
15741
|
-
</ng-template>
|
|
15742
|
-
}
|
|
15743
|
-
@if (hoveredItemTemplate && item.hovered) {
|
|
15744
|
-
<ng-template
|
|
15745
|
-
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15746
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15747
|
-
>
|
|
15748
|
-
</ng-template>
|
|
15749
|
-
}
|
|
15750
|
-
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15751
|
-
<ng-template
|
|
15752
|
-
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15753
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15754
|
-
>
|
|
15755
|
-
</ng-template>
|
|
15756
|
-
}
|
|
15757
|
-
}
|
|
15758
|
-
@if (item.half) {
|
|
15759
|
-
@if (!itemTemplate) {
|
|
15760
|
-
<span class="k-rating-precision-complement">
|
|
15761
|
-
@if (!icon) {
|
|
15762
|
-
<kendo-icon-wrapper
|
|
15763
|
-
size="xlarge"
|
|
15764
|
-
[name]="'star-outline'"
|
|
15765
|
-
[svgIcon]="svgIconOutline"
|
|
15766
|
-
>
|
|
15767
|
-
</kendo-icon-wrapper>
|
|
15768
|
-
}
|
|
15769
|
-
@if (icon) {
|
|
15770
|
-
<kendo-icon-wrapper
|
|
15771
|
-
size="xlarge"
|
|
15772
|
-
[name]="icon + '-outline'"
|
|
15773
|
-
>
|
|
15774
|
-
</kendo-icon-wrapper>
|
|
15775
|
-
}
|
|
15776
|
-
</span>
|
|
15777
|
-
<span
|
|
15778
|
-
class="k-rating-precision-part"
|
|
15779
|
-
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15780
|
-
>
|
|
15781
|
-
@if (!icon) {
|
|
15782
|
-
<kendo-icon-wrapper
|
|
15783
|
-
size="xlarge"
|
|
15784
|
-
[name]="'star'"
|
|
15785
|
-
[svgIcon]="svgIcon"
|
|
15786
|
-
>
|
|
15787
|
-
</kendo-icon-wrapper>
|
|
15788
|
-
}
|
|
15789
|
-
@if (icon) {
|
|
15790
|
-
<kendo-icon-wrapper
|
|
15791
|
-
size="xlarge"
|
|
15792
|
-
[name]="icon"
|
|
15793
|
-
>
|
|
15794
|
-
</kendo-icon-wrapper>
|
|
15795
|
-
}
|
|
15796
|
-
</span>
|
|
15797
|
-
}
|
|
15798
|
-
<span
|
|
15799
|
-
class="k-rating-precision-complement"
|
|
15800
|
-
>
|
|
15801
|
-
<ng-template
|
|
15802
|
-
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15803
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15804
|
-
>
|
|
15805
|
-
</ng-template>
|
|
15806
|
-
</span>
|
|
15807
|
-
@if (hoveredItemTemplate && item.hovered) {
|
|
15808
|
-
<span
|
|
15809
|
-
class="k-rating-precision-part"
|
|
15810
|
-
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15811
|
-
>
|
|
15812
|
-
<ng-template
|
|
15813
|
-
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15814
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15815
|
-
>
|
|
15816
|
-
</ng-template>
|
|
15817
|
-
</span>
|
|
15818
|
-
}
|
|
15819
|
-
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15820
|
-
<span
|
|
15821
|
-
class="k-rating-precision-part"
|
|
15822
|
-
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15823
|
-
>
|
|
15824
|
-
<ng-template
|
|
15825
|
-
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15826
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15827
|
-
>
|
|
15828
|
-
</ng-template>
|
|
15829
|
-
</span>
|
|
15830
|
-
}
|
|
15831
|
-
<span [style.width.px]="24" [style.height.px]="24" [style.display]="'block'"></span>
|
|
15832
|
-
}
|
|
15833
|
-
</span>
|
|
15834
|
-
}
|
|
15835
|
-
</span>
|
|
15836
|
-
|
|
15837
|
-
@if (label) {
|
|
15838
|
-
<span
|
|
15839
|
-
class="k-rating-label"
|
|
15840
|
-
>{{ label }}</span>
|
|
15841
|
-
}
|
|
15641
|
+
(mouseenter)="onMouseEnter($event)"
|
|
15642
|
+
(mouseout)="onMouseOut()"
|
|
15643
|
+
(click)="changeValue(i, $event)"
|
|
15644
|
+
>
|
|
15645
|
+
@if (!item.half) {
|
|
15646
|
+
@if (!itemTemplate) {
|
|
15647
|
+
@if (!icon) {
|
|
15648
|
+
<kendo-icon-wrapper
|
|
15649
|
+
size="xlarge"
|
|
15650
|
+
[name]="item.selected || item.hovered ? 'star' : 'star-outline'"
|
|
15651
|
+
[svgIcon]="item.selected || item.hovered ? svgIcon : svgIconOutline"
|
|
15652
|
+
>
|
|
15653
|
+
</kendo-icon-wrapper>
|
|
15654
|
+
}
|
|
15655
|
+
@if (icon) {
|
|
15656
|
+
<kendo-icon-wrapper
|
|
15657
|
+
size="xlarge"
|
|
15658
|
+
[name]="item.selected || item.hovered ? icon : icon + '-outline'"
|
|
15659
|
+
>
|
|
15660
|
+
</kendo-icon-wrapper>
|
|
15661
|
+
}
|
|
15662
|
+
}
|
|
15663
|
+
@if (itemTemplate && (!item.selected && !item.hovered)) {
|
|
15664
|
+
<ng-template
|
|
15665
|
+
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15666
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15667
|
+
>
|
|
15668
|
+
</ng-template>
|
|
15669
|
+
}
|
|
15670
|
+
@if (hoveredItemTemplate && item.hovered) {
|
|
15671
|
+
<ng-template
|
|
15672
|
+
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15673
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15674
|
+
>
|
|
15675
|
+
</ng-template>
|
|
15676
|
+
}
|
|
15677
|
+
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15678
|
+
<ng-template
|
|
15679
|
+
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15680
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15681
|
+
>
|
|
15682
|
+
</ng-template>
|
|
15683
|
+
}
|
|
15684
|
+
}
|
|
15685
|
+
@if (item.half) {
|
|
15686
|
+
@if (!itemTemplate) {
|
|
15687
|
+
<span class="k-rating-precision-complement">
|
|
15688
|
+
@if (!icon) {
|
|
15689
|
+
<kendo-icon-wrapper
|
|
15690
|
+
size="xlarge"
|
|
15691
|
+
[name]="'star-outline'"
|
|
15692
|
+
[svgIcon]="svgIconOutline"
|
|
15693
|
+
>
|
|
15694
|
+
</kendo-icon-wrapper>
|
|
15695
|
+
}
|
|
15696
|
+
@if (icon) {
|
|
15697
|
+
<kendo-icon-wrapper
|
|
15698
|
+
size="xlarge"
|
|
15699
|
+
[name]="icon + '-outline'"
|
|
15700
|
+
>
|
|
15701
|
+
</kendo-icon-wrapper>
|
|
15702
|
+
}
|
|
15703
|
+
</span>
|
|
15704
|
+
<span
|
|
15705
|
+
class="k-rating-precision-part"
|
|
15706
|
+
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15707
|
+
>
|
|
15708
|
+
@if (!icon) {
|
|
15709
|
+
<kendo-icon-wrapper
|
|
15710
|
+
size="xlarge"
|
|
15711
|
+
[name]="'star'"
|
|
15712
|
+
[svgIcon]="svgIcon"
|
|
15713
|
+
>
|
|
15714
|
+
</kendo-icon-wrapper>
|
|
15715
|
+
}
|
|
15716
|
+
@if (icon) {
|
|
15717
|
+
<kendo-icon-wrapper
|
|
15718
|
+
size="xlarge"
|
|
15719
|
+
[name]="icon"
|
|
15720
|
+
>
|
|
15721
|
+
</kendo-icon-wrapper>
|
|
15722
|
+
}
|
|
15723
|
+
</span>
|
|
15724
|
+
}
|
|
15725
|
+
<span
|
|
15726
|
+
class="k-rating-precision-complement"
|
|
15727
|
+
>
|
|
15728
|
+
<ng-template
|
|
15729
|
+
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15730
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15731
|
+
>
|
|
15732
|
+
</ng-template>
|
|
15733
|
+
</span>
|
|
15734
|
+
@if (hoveredItemTemplate && item.hovered) {
|
|
15735
|
+
<span
|
|
15736
|
+
class="k-rating-precision-part"
|
|
15737
|
+
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15738
|
+
>
|
|
15739
|
+
<ng-template
|
|
15740
|
+
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15741
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15742
|
+
>
|
|
15743
|
+
</ng-template>
|
|
15744
|
+
</span>
|
|
15745
|
+
}
|
|
15746
|
+
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15747
|
+
<span
|
|
15748
|
+
class="k-rating-precision-part"
|
|
15749
|
+
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15750
|
+
>
|
|
15751
|
+
<ng-template
|
|
15752
|
+
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15753
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15754
|
+
>
|
|
15755
|
+
</ng-template>
|
|
15756
|
+
</span>
|
|
15757
|
+
}
|
|
15758
|
+
<span [style.width.px]="24" [style.height.px]="24" [style.display]="'block'"></span>
|
|
15759
|
+
}
|
|
15760
|
+
</span>
|
|
15761
|
+
}
|
|
15762
|
+
</span>
|
|
15763
|
+
|
|
15764
|
+
@if (label) {
|
|
15765
|
+
<span
|
|
15766
|
+
class="k-rating-label"
|
|
15767
|
+
>{{ label }}</span>
|
|
15768
|
+
}
|
|
15842
15769
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
15843
15770
|
}
|
|
15844
15771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: RatingComponent, decorators: [{
|
|
@@ -15859,144 +15786,144 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
15859
15786
|
}
|
|
15860
15787
|
],
|
|
15861
15788
|
selector: 'kendo-rating',
|
|
15862
|
-
template: `
|
|
15863
|
-
<span class="k-rating-container">
|
|
15864
|
-
@for (item of ratingItems; track item; let i = $index) {
|
|
15865
|
-
<span
|
|
15866
|
-
class="k-rating-item"
|
|
15867
|
-
[title]="item.title"
|
|
15789
|
+
template: `
|
|
15790
|
+
<span class="k-rating-container">
|
|
15791
|
+
@for (item of ratingItems; track item; let i = $index) {
|
|
15792
|
+
<span
|
|
15793
|
+
class="k-rating-item"
|
|
15794
|
+
[title]="item.title"
|
|
15868
15795
|
[ngClass]="{
|
|
15869
15796
|
'k-selected': item.selected || item.selectedIndicator,
|
|
15870
15797
|
'k-hover': item.hovered
|
|
15871
15798
|
}"
|
|
15872
|
-
(mouseenter)="onMouseEnter($event)"
|
|
15873
|
-
(mouseout)="onMouseOut()"
|
|
15874
|
-
(click)="changeValue(i, $event)"
|
|
15875
|
-
>
|
|
15876
|
-
@if (!item.half) {
|
|
15877
|
-
@if (!itemTemplate) {
|
|
15878
|
-
@if (!icon) {
|
|
15879
|
-
<kendo-icon-wrapper
|
|
15880
|
-
size="xlarge"
|
|
15881
|
-
[name]="item.selected || item.hovered ? 'star' : 'star-outline'"
|
|
15882
|
-
[svgIcon]="item.selected || item.hovered ? svgIcon : svgIconOutline"
|
|
15883
|
-
>
|
|
15884
|
-
</kendo-icon-wrapper>
|
|
15885
|
-
}
|
|
15886
|
-
@if (icon) {
|
|
15887
|
-
<kendo-icon-wrapper
|
|
15888
|
-
size="xlarge"
|
|
15889
|
-
[name]="item.selected || item.hovered ? icon : icon + '-outline'"
|
|
15890
|
-
>
|
|
15891
|
-
</kendo-icon-wrapper>
|
|
15892
|
-
}
|
|
15893
|
-
}
|
|
15894
|
-
@if (itemTemplate && (!item.selected && !item.hovered)) {
|
|
15895
|
-
<ng-template
|
|
15896
|
-
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15897
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15898
|
-
>
|
|
15899
|
-
</ng-template>
|
|
15900
|
-
}
|
|
15901
|
-
@if (hoveredItemTemplate && item.hovered) {
|
|
15902
|
-
<ng-template
|
|
15903
|
-
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15904
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15905
|
-
>
|
|
15906
|
-
</ng-template>
|
|
15907
|
-
}
|
|
15908
|
-
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15909
|
-
<ng-template
|
|
15910
|
-
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15911
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15912
|
-
>
|
|
15913
|
-
</ng-template>
|
|
15914
|
-
}
|
|
15915
|
-
}
|
|
15916
|
-
@if (item.half) {
|
|
15917
|
-
@if (!itemTemplate) {
|
|
15918
|
-
<span class="k-rating-precision-complement">
|
|
15919
|
-
@if (!icon) {
|
|
15920
|
-
<kendo-icon-wrapper
|
|
15921
|
-
size="xlarge"
|
|
15922
|
-
[name]="'star-outline'"
|
|
15923
|
-
[svgIcon]="svgIconOutline"
|
|
15924
|
-
>
|
|
15925
|
-
</kendo-icon-wrapper>
|
|
15926
|
-
}
|
|
15927
|
-
@if (icon) {
|
|
15928
|
-
<kendo-icon-wrapper
|
|
15929
|
-
size="xlarge"
|
|
15930
|
-
[name]="icon + '-outline'"
|
|
15931
|
-
>
|
|
15932
|
-
</kendo-icon-wrapper>
|
|
15933
|
-
}
|
|
15934
|
-
</span>
|
|
15935
|
-
<span
|
|
15936
|
-
class="k-rating-precision-part"
|
|
15937
|
-
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15938
|
-
>
|
|
15939
|
-
@if (!icon) {
|
|
15940
|
-
<kendo-icon-wrapper
|
|
15941
|
-
size="xlarge"
|
|
15942
|
-
[name]="'star'"
|
|
15943
|
-
[svgIcon]="svgIcon"
|
|
15944
|
-
>
|
|
15945
|
-
</kendo-icon-wrapper>
|
|
15946
|
-
}
|
|
15947
|
-
@if (icon) {
|
|
15948
|
-
<kendo-icon-wrapper
|
|
15949
|
-
size="xlarge"
|
|
15950
|
-
[name]="icon"
|
|
15951
|
-
>
|
|
15952
|
-
</kendo-icon-wrapper>
|
|
15953
|
-
}
|
|
15954
|
-
</span>
|
|
15955
|
-
}
|
|
15956
|
-
<span
|
|
15957
|
-
class="k-rating-precision-complement"
|
|
15958
|
-
>
|
|
15959
|
-
<ng-template
|
|
15960
|
-
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15961
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15962
|
-
>
|
|
15963
|
-
</ng-template>
|
|
15964
|
-
</span>
|
|
15965
|
-
@if (hoveredItemTemplate && item.hovered) {
|
|
15966
|
-
<span
|
|
15967
|
-
class="k-rating-precision-part"
|
|
15968
|
-
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15969
|
-
>
|
|
15970
|
-
<ng-template
|
|
15971
|
-
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15972
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15973
|
-
>
|
|
15974
|
-
</ng-template>
|
|
15975
|
-
</span>
|
|
15976
|
-
}
|
|
15977
|
-
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15978
|
-
<span
|
|
15979
|
-
class="k-rating-precision-part"
|
|
15980
|
-
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15981
|
-
>
|
|
15982
|
-
<ng-template
|
|
15983
|
-
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15984
|
-
[ngTemplateOutletContext]="{index: i}"
|
|
15985
|
-
>
|
|
15986
|
-
</ng-template>
|
|
15987
|
-
</span>
|
|
15988
|
-
}
|
|
15989
|
-
<span [style.width.px]="24" [style.height.px]="24" [style.display]="'block'"></span>
|
|
15990
|
-
}
|
|
15991
|
-
</span>
|
|
15992
|
-
}
|
|
15993
|
-
</span>
|
|
15994
|
-
|
|
15995
|
-
@if (label) {
|
|
15996
|
-
<span
|
|
15997
|
-
class="k-rating-label"
|
|
15998
|
-
>{{ label }}</span>
|
|
15999
|
-
}
|
|
15799
|
+
(mouseenter)="onMouseEnter($event)"
|
|
15800
|
+
(mouseout)="onMouseOut()"
|
|
15801
|
+
(click)="changeValue(i, $event)"
|
|
15802
|
+
>
|
|
15803
|
+
@if (!item.half) {
|
|
15804
|
+
@if (!itemTemplate) {
|
|
15805
|
+
@if (!icon) {
|
|
15806
|
+
<kendo-icon-wrapper
|
|
15807
|
+
size="xlarge"
|
|
15808
|
+
[name]="item.selected || item.hovered ? 'star' : 'star-outline'"
|
|
15809
|
+
[svgIcon]="item.selected || item.hovered ? svgIcon : svgIconOutline"
|
|
15810
|
+
>
|
|
15811
|
+
</kendo-icon-wrapper>
|
|
15812
|
+
}
|
|
15813
|
+
@if (icon) {
|
|
15814
|
+
<kendo-icon-wrapper
|
|
15815
|
+
size="xlarge"
|
|
15816
|
+
[name]="item.selected || item.hovered ? icon : icon + '-outline'"
|
|
15817
|
+
>
|
|
15818
|
+
</kendo-icon-wrapper>
|
|
15819
|
+
}
|
|
15820
|
+
}
|
|
15821
|
+
@if (itemTemplate && (!item.selected && !item.hovered)) {
|
|
15822
|
+
<ng-template
|
|
15823
|
+
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15824
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15825
|
+
>
|
|
15826
|
+
</ng-template>
|
|
15827
|
+
}
|
|
15828
|
+
@if (hoveredItemTemplate && item.hovered) {
|
|
15829
|
+
<ng-template
|
|
15830
|
+
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15831
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15832
|
+
>
|
|
15833
|
+
</ng-template>
|
|
15834
|
+
}
|
|
15835
|
+
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15836
|
+
<ng-template
|
|
15837
|
+
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15838
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15839
|
+
>
|
|
15840
|
+
</ng-template>
|
|
15841
|
+
}
|
|
15842
|
+
}
|
|
15843
|
+
@if (item.half) {
|
|
15844
|
+
@if (!itemTemplate) {
|
|
15845
|
+
<span class="k-rating-precision-complement">
|
|
15846
|
+
@if (!icon) {
|
|
15847
|
+
<kendo-icon-wrapper
|
|
15848
|
+
size="xlarge"
|
|
15849
|
+
[name]="'star-outline'"
|
|
15850
|
+
[svgIcon]="svgIconOutline"
|
|
15851
|
+
>
|
|
15852
|
+
</kendo-icon-wrapper>
|
|
15853
|
+
}
|
|
15854
|
+
@if (icon) {
|
|
15855
|
+
<kendo-icon-wrapper
|
|
15856
|
+
size="xlarge"
|
|
15857
|
+
[name]="icon + '-outline'"
|
|
15858
|
+
>
|
|
15859
|
+
</kendo-icon-wrapper>
|
|
15860
|
+
}
|
|
15861
|
+
</span>
|
|
15862
|
+
<span
|
|
15863
|
+
class="k-rating-precision-part"
|
|
15864
|
+
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15865
|
+
>
|
|
15866
|
+
@if (!icon) {
|
|
15867
|
+
<kendo-icon-wrapper
|
|
15868
|
+
size="xlarge"
|
|
15869
|
+
[name]="'star'"
|
|
15870
|
+
[svgIcon]="svgIcon"
|
|
15871
|
+
>
|
|
15872
|
+
</kendo-icon-wrapper>
|
|
15873
|
+
}
|
|
15874
|
+
@if (icon) {
|
|
15875
|
+
<kendo-icon-wrapper
|
|
15876
|
+
size="xlarge"
|
|
15877
|
+
[name]="icon"
|
|
15878
|
+
>
|
|
15879
|
+
</kendo-icon-wrapper>
|
|
15880
|
+
}
|
|
15881
|
+
</span>
|
|
15882
|
+
}
|
|
15883
|
+
<span
|
|
15884
|
+
class="k-rating-precision-complement"
|
|
15885
|
+
>
|
|
15886
|
+
<ng-template
|
|
15887
|
+
[ngTemplateOutlet]="itemTemplate?.templateRef"
|
|
15888
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15889
|
+
>
|
|
15890
|
+
</ng-template>
|
|
15891
|
+
</span>
|
|
15892
|
+
@if (hoveredItemTemplate && item.hovered) {
|
|
15893
|
+
<span
|
|
15894
|
+
class="k-rating-precision-part"
|
|
15895
|
+
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15896
|
+
>
|
|
15897
|
+
<ng-template
|
|
15898
|
+
[ngTemplateOutlet]="hoveredItemTemplate?.templateRef"
|
|
15899
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15900
|
+
>
|
|
15901
|
+
</ng-template>
|
|
15902
|
+
</span>
|
|
15903
|
+
}
|
|
15904
|
+
@if (selectedItemTemplate && (item.selected && !item.hovered)) {
|
|
15905
|
+
<span
|
|
15906
|
+
class="k-rating-precision-part"
|
|
15907
|
+
[ngStyle]="{'clipPath': direction === 'rtl' ? 'inset(0 0 0 50%)' : 'inset(0 50% 0 0)'}"
|
|
15908
|
+
>
|
|
15909
|
+
<ng-template
|
|
15910
|
+
[ngTemplateOutlet]="selectedItemTemplate?.templateRef"
|
|
15911
|
+
[ngTemplateOutletContext]="{index: i}"
|
|
15912
|
+
>
|
|
15913
|
+
</ng-template>
|
|
15914
|
+
</span>
|
|
15915
|
+
}
|
|
15916
|
+
<span [style.width.px]="24" [style.height.px]="24" [style.display]="'block'"></span>
|
|
15917
|
+
}
|
|
15918
|
+
</span>
|
|
15919
|
+
}
|
|
15920
|
+
</span>
|
|
15921
|
+
|
|
15922
|
+
@if (label) {
|
|
15923
|
+
<span
|
|
15924
|
+
class="k-rating-label"
|
|
15925
|
+
>{{ label }}</span>
|
|
15926
|
+
}
|
|
16000
15927
|
`,
|
|
16001
15928
|
standalone: true,
|
|
16002
15929
|
imports: [NgClass, IconWrapperComponent, NgTemplateOutlet, NgStyle]
|
|
@@ -16244,16 +16171,13 @@ const noop = () => { };
|
|
|
16244
16171
|
let _id = 0;
|
|
16245
16172
|
const nextId = () => 'k-signature-focusable-' + _id++;
|
|
16246
16173
|
const FOCUSED_CLASS = 'k-focus';
|
|
16247
|
-
const DEFAULT_SIZE$2 = 'medium';
|
|
16248
|
-
const DEFAULT_ROUNDED$2 = 'medium';
|
|
16249
|
-
const DEFAULT_FILL_MODE$2 = 'solid';
|
|
16250
16174
|
const DEFAULT_POPUP_SCALE = 3;
|
|
16251
16175
|
const DEFAULT_EXPORT_SCALE = 2;
|
|
16252
16176
|
const DEFAULT_COLOR = '#000000';
|
|
16253
16177
|
const DEFAULT_BACKGROUND_COLOR = '#ffffff';
|
|
16254
16178
|
const iconsMap = { xIcon, hyperlinkOpenIcon };
|
|
16255
16179
|
/**
|
|
16256
|
-
* Represents the [Kendo UI Signature component for Angular](
|
|
16180
|
+
* Represents the [Kendo UI Signature component for Angular](https://www.telerik.com/kendo-angular-ui/components/inputs/signature).
|
|
16257
16181
|
*
|
|
16258
16182
|
* Use the Signature to let users add a hand-drawn signature to forms.
|
|
16259
16183
|
*
|
|
@@ -16290,7 +16214,7 @@ class SignatureComponent {
|
|
|
16290
16214
|
* Sets the disabled state of the Signature.
|
|
16291
16215
|
*
|
|
16292
16216
|
* Set to `true` to disable the component and prevent any user interaction.
|
|
16293
|
-
* To disable the component in reactive forms, see [Managing the Signature Disabled State in Reactive Forms](
|
|
16217
|
+
* To disable the component in reactive forms, see [Managing the Signature Disabled State in Reactive Forms](https://www.telerik.com/kendo-angular-ui/components/inputs/signature/forms#managing-the-signature-disabled-state-in-reactive-forms).
|
|
16294
16218
|
*
|
|
16295
16219
|
* @default false
|
|
16296
16220
|
*/
|
|
@@ -16344,25 +16268,19 @@ class SignatureComponent {
|
|
|
16344
16268
|
}
|
|
16345
16269
|
/**
|
|
16346
16270
|
* Sets the padding of the Signature internal controls
|
|
16347
|
-
* ([ee example](
|
|
16348
|
-
*
|
|
16349
|
-
* @default 'medium'
|
|
16271
|
+
* ([ee example](https://www.telerik.com/kendo-angular-ui/components/inputs/signature/appearance#size)). The default value is set by the Kendo theme.
|
|
16350
16272
|
*/
|
|
16351
|
-
size
|
|
16273
|
+
size;
|
|
16352
16274
|
/**
|
|
16353
16275
|
* Sets the border radius of the Signature
|
|
16354
|
-
* ([see example](
|
|
16355
|
-
*
|
|
16356
|
-
* @default 'medium'
|
|
16276
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/signature/appearance#rounded-corners)). The default value is set by the Kendo theme.
|
|
16357
16277
|
*/
|
|
16358
|
-
rounded
|
|
16278
|
+
rounded;
|
|
16359
16279
|
/**
|
|
16360
16280
|
* Sets the background and border styles of the Signature
|
|
16361
|
-
* ([see example](
|
|
16362
|
-
*
|
|
16363
|
-
* @default 'solid'
|
|
16281
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/signature/appearance#fill-mode)). The default value is set by the Kendo theme.
|
|
16364
16282
|
*/
|
|
16365
|
-
fillMode
|
|
16283
|
+
fillMode;
|
|
16366
16284
|
/**
|
|
16367
16285
|
* Sets the stroke color of the Signature.
|
|
16368
16286
|
*
|
|
@@ -16755,9 +16673,9 @@ class SignatureComponent {
|
|
|
16755
16673
|
const classList = this.element.nativeElement.classList;
|
|
16756
16674
|
this.hostClasses.forEach(([name]) => classList.remove(name));
|
|
16757
16675
|
this.hostClasses = [
|
|
16758
|
-
[`k-signature-${SIZE_MAP[this.size
|
|
16759
|
-
[`k-input-${this.fillMode
|
|
16760
|
-
[`k-rounded-${ROUNDED_MAP[this.rounded
|
|
16676
|
+
[`k-signature-${SIZE_MAP[this.size]}`, isPresent(this.size)],
|
|
16677
|
+
[`k-input-${this.fillMode}`, isPresent(this.fillMode)],
|
|
16678
|
+
[`k-rounded-${ROUNDED_MAP[this.rounded]}`, isPresent(this.rounded)],
|
|
16761
16679
|
];
|
|
16762
16680
|
this.hostClasses.forEach(([name, enabled]) => classList.toggle(name, enabled));
|
|
16763
16681
|
}
|
|
@@ -17410,7 +17328,7 @@ class TextFieldsBase {
|
|
|
17410
17328
|
*/
|
|
17411
17329
|
title;
|
|
17412
17330
|
/**
|
|
17413
|
-
* Sets the disabled state of the TextArea component. To learn how to disable the component in reactive forms, refer to the article on [Forms Support](
|
|
17331
|
+
* Sets the disabled state of the TextArea component. To learn how to disable the component in reactive forms, refer to the article on [Forms Support](https://www.telerik.com/kendo-angular-ui/components/inputs/textarea/forms#managing-the-textarea-disabled-state-in-reactive-forms).
|
|
17414
17332
|
*
|
|
17415
17333
|
* @default false
|
|
17416
17334
|
*/
|
|
@@ -17543,9 +17461,6 @@ const resizeClasses = {
|
|
|
17543
17461
|
'auto': 'k-resize-none'
|
|
17544
17462
|
};
|
|
17545
17463
|
const FOCUSED = 'k-focus';
|
|
17546
|
-
const DEFAULT_SIZE$1 = 'medium';
|
|
17547
|
-
const DEFAULT_ROUNDED$1 = 'medium';
|
|
17548
|
-
const DEFAULT_FILL_MODE$1 = 'solid';
|
|
17549
17464
|
/**
|
|
17550
17465
|
* Represents the Kendo UI TextArea component for Angular.
|
|
17551
17466
|
*
|
|
@@ -17663,37 +17578,31 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
17663
17578
|
*/
|
|
17664
17579
|
resizable = 'vertical';
|
|
17665
17580
|
/**
|
|
17666
|
-
* Sets the size of the TextArea. Controls the padding of the text area element ([see example](
|
|
17667
|
-
* @default 'medium'
|
|
17581
|
+
* Sets the size of the TextArea. Controls the padding of the text area element ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textarea/appearance#size)). The default value is set by the Kendo theme.
|
|
17668
17582
|
*/
|
|
17669
17583
|
set size(size) {
|
|
17670
|
-
|
|
17671
|
-
this.
|
|
17672
|
-
this._size = newSize;
|
|
17584
|
+
this.handleClasses(size, 'size');
|
|
17585
|
+
this._size = size;
|
|
17673
17586
|
}
|
|
17674
17587
|
get size() {
|
|
17675
17588
|
return this._size;
|
|
17676
17589
|
}
|
|
17677
17590
|
/**
|
|
17678
|
-
* Sets the border radius of the TextArea ([see example](
|
|
17679
|
-
* @default 'medium'
|
|
17591
|
+
* Sets the border radius of the TextArea ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textarea/appearance#roundness)). The default value is set by the Kendo theme.
|
|
17680
17592
|
*/
|
|
17681
17593
|
set rounded(rounded) {
|
|
17682
|
-
|
|
17683
|
-
this.
|
|
17684
|
-
this._rounded = newRounded;
|
|
17594
|
+
this.handleClasses(rounded, 'rounded');
|
|
17595
|
+
this._rounded = rounded;
|
|
17685
17596
|
}
|
|
17686
17597
|
get rounded() {
|
|
17687
17598
|
return this._rounded;
|
|
17688
17599
|
}
|
|
17689
17600
|
/**
|
|
17690
|
-
* Sets the background and border styles of the TextArea ([see example](
|
|
17691
|
-
* @default 'solid'
|
|
17601
|
+
* Sets the background and border styles of the TextArea ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textarea/appearance#fill-mode)). The default value is set by the Kendo theme.
|
|
17692
17602
|
*/
|
|
17693
17603
|
set fillMode(fillMode) {
|
|
17694
|
-
|
|
17695
|
-
this.
|
|
17696
|
-
this._fillMode = newFillMode;
|
|
17604
|
+
this.handleClasses(fillMode, 'fillMode');
|
|
17605
|
+
this._fillMode = fillMode;
|
|
17697
17606
|
}
|
|
17698
17607
|
get fillMode() {
|
|
17699
17608
|
return this._fillMode;
|
|
@@ -17725,7 +17634,7 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
17725
17634
|
*/
|
|
17726
17635
|
onBlur = new EventEmitter();
|
|
17727
17636
|
/**
|
|
17728
|
-
* Fires when the value changes or the TextArea is blurred ([see example](
|
|
17637
|
+
* Fires when the value changes or the TextArea is blurred ([see example](https://www.telerik.com/kendo-angular-ui/components/inputs/textarea/events)).
|
|
17729
17638
|
*
|
|
17730
17639
|
* The event does not fire when the value changes programmatically or through form control binding.
|
|
17731
17640
|
*/
|
|
@@ -17734,9 +17643,9 @@ class TextAreaComponent extends TextFieldsBase {
|
|
|
17734
17643
|
maxResizableHeight;
|
|
17735
17644
|
resizeSubscription;
|
|
17736
17645
|
resizeObserver;
|
|
17737
|
-
_size =
|
|
17738
|
-
_rounded =
|
|
17739
|
-
_fillMode =
|
|
17646
|
+
_size = undefined;
|
|
17647
|
+
_rounded = undefined;
|
|
17648
|
+
_fillMode = undefined;
|
|
17740
17649
|
_adornmentsOrientation = 'horizontal';
|
|
17741
17650
|
_inputAttributes;
|
|
17742
17651
|
parsedAttributes = {};
|
|
@@ -18433,9 +18342,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
18433
18342
|
}]
|
|
18434
18343
|
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
18435
18344
|
|
|
18436
|
-
const DEFAULT_SIZE = 'medium';
|
|
18437
|
-
const DEFAULT_ROUNDED = 'medium';
|
|
18438
|
-
const DEFAULT_FILL_MODE = 'solid';
|
|
18439
18345
|
const DEFAULT_OTPINPUT_LENGTH = 4;
|
|
18440
18346
|
/**
|
|
18441
18347
|
* Represents the Kendo UI OTP Input component for Angular.
|
|
@@ -18563,40 +18469,34 @@ class OTPInputComponent {
|
|
|
18563
18469
|
}
|
|
18564
18470
|
}
|
|
18565
18471
|
/**
|
|
18566
|
-
* Sets the padding of the input fields.
|
|
18567
|
-
*
|
|
18568
|
-
* @default 'medium'
|
|
18472
|
+
* Sets the padding of the input fields. The default value is set by the Kendo theme.
|
|
18569
18473
|
*/
|
|
18570
18474
|
set size(size) {
|
|
18571
|
-
const newSize = size || DEFAULT_SIZE;
|
|
18572
18475
|
const elem = this.hostElement.nativeElement;
|
|
18573
18476
|
this.renderer.removeClass(elem, `k-otp-${SIZE_MAP[this._size]}`);
|
|
18574
|
-
|
|
18575
|
-
|
|
18477
|
+
if (size) {
|
|
18478
|
+
this.renderer.addClass(elem, `k-otp-${SIZE_MAP[size]}`);
|
|
18479
|
+
}
|
|
18480
|
+
this._size = size;
|
|
18576
18481
|
}
|
|
18577
18482
|
get size() {
|
|
18578
18483
|
return this._size;
|
|
18579
18484
|
}
|
|
18580
18485
|
/**
|
|
18581
|
-
* Sets the border radius of the OTP Input.
|
|
18582
|
-
*
|
|
18583
|
-
* @default 'medium'
|
|
18486
|
+
* Sets the border radius of the OTP Input. The default value is set by the Kendo theme.
|
|
18584
18487
|
*/
|
|
18585
18488
|
set rounded(rounded) {
|
|
18586
|
-
this._rounded = rounded
|
|
18489
|
+
this._rounded = rounded;
|
|
18587
18490
|
}
|
|
18588
18491
|
get rounded() {
|
|
18589
18492
|
return this._rounded;
|
|
18590
18493
|
}
|
|
18591
18494
|
/**
|
|
18592
|
-
* Sets the background and border styles of the OTP Input.
|
|
18593
|
-
*
|
|
18594
|
-
* @default 'solid'
|
|
18495
|
+
* Sets the background and border styles of the OTP Input. The default value is set by the Kendo theme.
|
|
18595
18496
|
*/
|
|
18596
18497
|
set fillMode(fillMode) {
|
|
18597
|
-
|
|
18598
|
-
this.
|
|
18599
|
-
this._fillMode = newFillMode;
|
|
18498
|
+
this.setGroupFillMode(fillMode, this._fillMode);
|
|
18499
|
+
this._fillMode = fillMode;
|
|
18600
18500
|
}
|
|
18601
18501
|
get fillMode() {
|
|
18602
18502
|
return this._fillMode;
|
|
@@ -18669,9 +18569,9 @@ class OTPInputComponent {
|
|
|
18669
18569
|
_inputGroups;
|
|
18670
18570
|
separatorPositions = new Set();
|
|
18671
18571
|
_value = null;
|
|
18672
|
-
_size =
|
|
18673
|
-
_rounded =
|
|
18674
|
-
_fillMode =
|
|
18572
|
+
_size = undefined;
|
|
18573
|
+
_rounded = undefined;
|
|
18574
|
+
_fillMode = undefined;
|
|
18675
18575
|
_isFocused = false;
|
|
18676
18576
|
focusChangedProgrammatically = false;
|
|
18677
18577
|
inputFieldValueChanged = false;
|
|
@@ -18708,8 +18608,6 @@ class OTPInputComponent {
|
|
|
18708
18608
|
ngAfterViewInit() {
|
|
18709
18609
|
this.subscriptions.add(this.inputFields.changes.subscribe(this.handleInputChanges.bind(this)));
|
|
18710
18610
|
this.handleInputChanges();
|
|
18711
|
-
this.renderer.addClass(this.hostElement.nativeElement, `k-otp-${SIZE_MAP[this._size]}`);
|
|
18712
|
-
this.setGroupFillMode(this.fillMode);
|
|
18713
18611
|
this.zone.onStable.pipe(take(1)).subscribe(() => {
|
|
18714
18612
|
this.fillInputs(this.value);
|
|
18715
18613
|
});
|
|
@@ -19083,10 +18981,10 @@ class OTPInputComponent {
|
|
|
19083
18981
|
}
|
|
19084
18982
|
setGroupFillMode(fillMode, previousFillMode) {
|
|
19085
18983
|
this.inputGroups?.forEach(element => {
|
|
19086
|
-
if (previousFillMode
|
|
18984
|
+
if (previousFillMode) {
|
|
19087
18985
|
this.renderer.removeClass(element.nativeElement, `k-input-group-${previousFillMode}`);
|
|
19088
18986
|
}
|
|
19089
|
-
if (fillMode
|
|
18987
|
+
if (fillMode) {
|
|
19090
18988
|
this.renderer.addClass(element.nativeElement, `k-input-group-${fillMode}`);
|
|
19091
18989
|
}
|
|
19092
18990
|
});
|
|
@@ -19172,7 +19070,7 @@ class OTPInputComponent {
|
|
|
19172
19070
|
(onFocus)="handleFocus()"
|
|
19173
19071
|
>
|
|
19174
19072
|
@if (spacing) {
|
|
19175
|
-
@for (input of inputsArray; track
|
|
19073
|
+
@for (input of inputsArray; track $index; let i = $index) {
|
|
19176
19074
|
<kendo-textbox
|
|
19177
19075
|
class="k-otp-input"
|
|
19178
19076
|
[class.k-invalid]="isControlInvalid"
|
|
@@ -19249,7 +19147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
19249
19147
|
(onFocus)="handleFocus()"
|
|
19250
19148
|
>
|
|
19251
19149
|
@if (spacing) {
|
|
19252
|
-
@for (input of inputsArray; track
|
|
19150
|
+
@for (input of inputsArray; track $index; let i = $index) {
|
|
19253
19151
|
<kendo-textbox
|
|
19254
19152
|
class="k-otp-input"
|
|
19255
19153
|
[class.k-invalid]="isControlInvalid"
|