@progress/kendo-angular-inputs 7.5.1 → 8.0.0-dev.202112211528
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/dist/cdn/js/kendo-angular-inputs.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/checkbox/checkbox.directive.js +79 -3
- package/dist/es/colorpicker/color-contrast-svg.component.js +95 -0
- package/dist/es/colorpicker/color-gradient.component.js +109 -81
- package/dist/es/colorpicker/color-input.component.js +39 -18
- package/dist/es/colorpicker/color-palette.component.js +28 -18
- package/dist/es/colorpicker/colorpicker.component.js +279 -80
- package/dist/es/colorpicker/constants.js +12 -0
- package/dist/es/colorpicker/contrast-validation.component.js +8 -6
- package/dist/es/colorpicker/contrast.component.js +6 -8
- package/dist/es/colorpicker/{models → events}/active-color-click-event.js +0 -0
- package/dist/es/colorpicker/events/cancel-event.js +19 -0
- package/dist/es/colorpicker/events/close-event.js +17 -0
- package/dist/es/colorpicker/{models → events}/kendo-drag-event.js +0 -0
- package/dist/es/colorpicker/events/open-event.js +17 -0
- package/dist/es/colorpicker/events.js +8 -0
- package/dist/es/colorpicker/flatcolorpicker-actions.component.js +50 -0
- package/dist/es/colorpicker/flatcolorpicker-header.component.js +94 -0
- package/dist/es/colorpicker/flatcolorpicker.component.js +553 -0
- package/dist/es/colorpicker/localization/colorgradient-localization.service.js +7 -7
- package/dist/es/colorpicker/localization/colorpalette-localization.service.js +7 -7
- package/dist/es/colorpicker/localization/custom-messages.component.js +1 -1
- package/dist/es/colorpicker/localization/flatcolorpicker-localization.service.js +34 -0
- package/dist/es/colorpicker/localization/localized-colorpicker-messages.directive.js +1 -1
- package/dist/es/colorpicker/localization/messages.js +36 -0
- package/dist/es/colorpicker/models/{color-picker-view.js → actions-layout.js} +0 -0
- package/dist/{es2015/colorpicker/models/color-picker-view.js → es/colorpicker/models/colorpicker-view.js} +0 -0
- package/dist/es/colorpicker/{utils → models}/palette-presets.js +0 -0
- package/dist/es/colorpicker/models.js +1 -2
- package/dist/es/colorpicker/services/flatcolorpicker.service.js +41 -0
- package/dist/es/colorpicker/utils/color-parser.js +18 -5
- package/dist/es/colorpicker/utils/contrast-curve.js +91 -0
- package/dist/es/colorpicker/utils.js +1 -1
- package/dist/es/colorpicker.module.js +9 -1
- package/dist/es/common/models/fillmode.js +4 -0
- package/dist/es/common/models/rounded.js +4 -0
- package/dist/es/common/models/size.js +4 -0
- package/dist/es/common/models/styling-classes.js +4 -0
- package/dist/{es2015/colorpicker/models/kendo-drag-event.js → es/common/models.js} +0 -0
- package/dist/es/common/utils.js +37 -0
- package/dist/es/index.js +5 -0
- package/dist/es/main.js +4 -2
- package/dist/es/maskedtextbox/maskedtextbox.component.js +101 -6
- package/dist/es/numerictextbox/numerictextbox.component.js +116 -20
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/radiobutton.directive.js +52 -3
- package/dist/es/shared/textarea.directive.js +3 -2
- package/dist/es/shared/utils.js +23 -0
- package/dist/es/switch/switch.component.js +167 -21
- package/dist/es/text-fields-common/text-fields-base.js +1 -1
- package/dist/es/textarea/textarea.component.js +101 -5
- package/dist/es/textbox/textbox.component.js +111 -12
- package/dist/es/textbox/textbox.directive.js +3 -2
- package/dist/es/textbox.module.js +0 -3
- package/dist/es2015/checkbox/checkbox.directive.d.ts +31 -0
- package/dist/es2015/checkbox/checkbox.directive.js +68 -10
- package/dist/es2015/colorpicker/color-contrast-svg.component.d.ts +26 -0
- package/dist/es2015/colorpicker/color-contrast-svg.component.js +97 -0
- package/dist/es2015/colorpicker/color-gradient.component.d.ts +32 -43
- package/dist/es2015/colorpicker/color-gradient.component.js +126 -93
- package/dist/es2015/colorpicker/color-input.component.d.ts +11 -4
- package/dist/es2015/colorpicker/color-input.component.js +52 -32
- package/dist/es2015/colorpicker/color-palette.component.d.ts +8 -3
- package/dist/es2015/colorpicker/color-palette.component.js +28 -18
- package/dist/es2015/colorpicker/colorpicker.component.d.ts +127 -25
- package/dist/es2015/colorpicker/colorpicker.component.js +305 -125
- package/dist/es2015/colorpicker/constants.d.ts +12 -0
- package/dist/es2015/colorpicker/constants.js +12 -0
- package/dist/es2015/colorpicker/contrast-validation.component.d.ts +1 -1
- package/dist/es2015/colorpicker/contrast-validation.component.js +16 -12
- package/dist/es2015/colorpicker/contrast.component.d.ts +1 -3
- package/dist/es2015/colorpicker/contrast.component.js +17 -17
- package/dist/es2015/colorpicker/{models → events}/active-color-click-event.d.ts +0 -0
- package/dist/es2015/colorpicker/{models → events}/active-color-click-event.js +0 -0
- package/dist/es2015/colorpicker/events/cancel-event.d.ts +15 -0
- package/dist/es2015/colorpicker/events/cancel-event.js +14 -0
- package/dist/es2015/colorpicker/events/close-event.d.ts +10 -0
- package/dist/es2015/colorpicker/events/close-event.js +10 -0
- package/dist/es2015/colorpicker/{models → events}/kendo-drag-event.d.ts +0 -0
- package/dist/es2015/colorpicker/events/kendo-drag-event.js +4 -0
- package/dist/es2015/colorpicker/events/open-event.d.ts +10 -0
- package/dist/es2015/colorpicker/events/open-event.js +10 -0
- package/dist/es2015/colorpicker/events.d.ts +8 -0
- package/dist/es2015/colorpicker/events.js +8 -0
- package/dist/es2015/colorpicker/flatcolorpicker-actions.component.d.ts +18 -0
- package/dist/es2015/colorpicker/flatcolorpicker-actions.component.js +60 -0
- package/dist/es2015/colorpicker/flatcolorpicker-header.component.d.ts +30 -0
- package/dist/es2015/colorpicker/flatcolorpicker-header.component.js +131 -0
- package/dist/es2015/colorpicker/flatcolorpicker.component.d.ts +214 -0
- package/dist/es2015/colorpicker/flatcolorpicker.component.js +593 -0
- package/dist/es2015/colorpicker/localization/colorgradient-localization.service.d.ts +3 -3
- package/dist/es2015/colorpicker/localization/colorgradient-localization.service.js +7 -7
- package/dist/es2015/colorpicker/localization/colorpalette-localization.service.d.ts +3 -3
- package/dist/es2015/colorpicker/localization/colorpalette-localization.service.js +7 -7
- package/dist/es2015/colorpicker/localization/custom-messages.component.js +1 -1
- package/dist/es2015/colorpicker/localization/flatcolorpicker-localization.service.d.ts +14 -0
- package/dist/es2015/colorpicker/localization/flatcolorpicker-localization.service.js +31 -0
- package/dist/es2015/colorpicker/localization/localized-colorpicker-messages.directive.js +1 -1
- package/dist/es2015/colorpicker/localization/messages.d.ts +36 -0
- package/dist/es2015/colorpicker/localization/messages.js +36 -0
- package/dist/es2015/colorpicker/models/actions-layout.d.ts +8 -0
- package/dist/es2015/colorpicker/models/actions-layout.js +4 -0
- package/dist/es2015/colorpicker/models/colorpicker-view.d.ts +8 -0
- package/dist/es2015/colorpicker/models/colorpicker-view.js +4 -0
- package/dist/es2015/colorpicker/models/gradient-settings.d.ts +4 -3
- package/dist/es2015/colorpicker/models/output-format.d.ts +0 -5
- package/dist/es2015/colorpicker/{utils → models}/palette-presets.d.ts +0 -0
- package/dist/es2015/colorpicker/{utils → models}/palette-presets.js +0 -0
- package/dist/es2015/colorpicker/models/palette-settings.d.ts +2 -3
- package/dist/es2015/colorpicker/models/tile-size.d.ts +1 -5
- package/dist/es2015/colorpicker/models.d.ts +10 -10
- package/dist/es2015/colorpicker/models.js +1 -2
- package/dist/es2015/colorpicker/services/flatcolorpicker.service.d.ts +12 -0
- package/dist/es2015/colorpicker/services/flatcolorpicker.service.js +38 -0
- package/dist/es2015/colorpicker/utils/color-parser.d.ts +8 -2
- package/dist/es2015/colorpicker/utils/color-parser.js +15 -5
- package/dist/es2015/colorpicker/utils/contrast-curve.d.ts +37 -0
- package/dist/es2015/colorpicker/utils/contrast-curve.js +85 -0
- package/dist/es2015/colorpicker/utils.d.ts +1 -1
- package/dist/es2015/colorpicker/utils.js +1 -1
- package/dist/es2015/colorpicker.module.js +9 -1
- package/dist/es2015/{colorpicker/models/color-picker-view.d.ts → common/models/fillmode.d.ts} +5 -5
- package/dist/es2015/common/models/fillmode.js +4 -0
- package/dist/es2015/common/models/rounded.d.ts +23 -0
- package/dist/es2015/common/models/rounded.js +4 -0
- package/dist/es2015/common/models/size.d.ts +14 -0
- package/dist/es2015/common/models/size.js +4 -0
- package/dist/es2015/common/models/styling-classes.d.ts +11 -0
- package/dist/es2015/common/models/styling-classes.js +4 -0
- package/dist/es2015/common/models.d.ts +8 -0
- package/dist/es2015/common/models.js +4 -0
- package/dist/es2015/common/utils.d.ts +7 -0
- package/dist/es2015/common/utils.js +37 -0
- package/dist/es2015/index.d.ts +5 -0
- package/dist/es2015/index.js +5 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/main.d.ts +5 -2
- package/dist/es2015/main.js +4 -2
- package/dist/es2015/maskedtextbox/maskedtextbox.component.d.ts +39 -1
- package/dist/es2015/maskedtextbox/maskedtextbox.component.js +88 -6
- package/dist/es2015/numerictextbox/numerictextbox.component.d.ts +39 -2
- package/dist/es2015/numerictextbox/numerictextbox.component.js +124 -40
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/radiobutton/radiobutton.directive.d.ts +18 -0
- package/dist/es2015/radiobutton/radiobutton.directive.js +46 -11
- package/dist/es2015/shared/textarea.directive.d.ts +1 -1
- package/dist/es2015/shared/textarea.directive.js +3 -2
- package/dist/es2015/shared/utils.d.ts +16 -0
- package/dist/es2015/shared/utils.js +23 -0
- package/dist/es2015/switch/switch.component.d.ts +48 -5
- package/dist/es2015/switch/switch.component.js +166 -24
- package/dist/es2015/text-fields-common/text-fields-base.js +1 -1
- package/dist/es2015/textarea/textarea.component.d.ts +39 -1
- package/dist/es2015/textarea/textarea.component.js +89 -5
- package/dist/es2015/textbox/textbox.component.d.ts +40 -1
- package/dist/es2015/textbox/textbox.component.js +99 -12
- package/dist/es2015/textbox/textbox.directive.d.ts +1 -1
- package/dist/es2015/textbox/textbox.directive.js +3 -2
- package/dist/es2015/textbox.module.js +0 -3
- package/dist/fesm2015/index.js +3118 -1477
- package/dist/fesm5/index.js +3040 -1387
- package/dist/npm/checkbox/checkbox.directive.js +78 -2
- package/dist/npm/colorpicker/color-contrast-svg.component.js +97 -0
- package/dist/npm/colorpicker/color-gradient.component.js +109 -81
- package/dist/npm/colorpicker/color-input.component.js +38 -17
- package/dist/npm/colorpicker/color-palette.component.js +29 -19
- package/dist/npm/colorpicker/colorpicker.component.js +285 -86
- package/dist/npm/colorpicker/constants.js +12 -0
- package/dist/npm/colorpicker/contrast-validation.component.js +8 -6
- package/dist/npm/colorpicker/contrast.component.js +6 -8
- package/dist/npm/colorpicker/{models → events}/active-color-click-event.js +0 -0
- package/dist/npm/colorpicker/events/cancel-event.js +21 -0
- package/dist/npm/colorpicker/events/close-event.js +19 -0
- package/dist/npm/colorpicker/{models → events}/kendo-drag-event.js +0 -0
- package/dist/npm/colorpicker/events/open-event.js +19 -0
- package/dist/npm/colorpicker/events.js +11 -0
- package/dist/npm/colorpicker/flatcolorpicker-actions.component.js +52 -0
- package/dist/npm/colorpicker/flatcolorpicker-header.component.js +96 -0
- package/dist/npm/colorpicker/flatcolorpicker.component.js +555 -0
- package/dist/npm/colorpicker/localization/colorgradient-localization.service.js +7 -7
- package/dist/npm/colorpicker/localization/colorpalette-localization.service.js +7 -7
- package/dist/npm/colorpicker/localization/custom-messages.component.js +1 -1
- package/dist/npm/colorpicker/localization/flatcolorpicker-localization.service.js +36 -0
- package/dist/npm/colorpicker/localization/localized-colorpicker-messages.directive.js +1 -1
- package/dist/npm/colorpicker/localization/messages.js +36 -0
- package/dist/npm/colorpicker/models/{color-picker-view.js → actions-layout.js} +0 -0
- package/dist/npm/colorpicker/models/colorpicker-view.js +6 -0
- package/dist/npm/colorpicker/{utils → models}/palette-presets.js +0 -0
- package/dist/npm/colorpicker/models.js +1 -2
- package/dist/npm/colorpicker/services/flatcolorpicker.service.js +43 -0
- package/dist/npm/colorpicker/utils/color-parser.js +18 -5
- package/dist/npm/colorpicker/utils/contrast-curve.js +93 -0
- package/dist/npm/colorpicker/utils.js +1 -1
- package/dist/npm/colorpicker.module.js +9 -1
- package/dist/npm/common/models/fillmode.js +6 -0
- package/dist/npm/common/models/rounded.js +6 -0
- package/dist/npm/common/models/size.js +6 -0
- package/dist/npm/common/models/styling-classes.js +6 -0
- package/dist/npm/common/models.js +6 -0
- package/dist/npm/common/utils.js +37 -0
- package/dist/npm/index.js +10 -0
- package/dist/npm/main.js +7 -4
- package/dist/npm/maskedtextbox/maskedtextbox.component.js +100 -5
- package/dist/npm/numerictextbox/numerictextbox.component.js +115 -19
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/radiobutton.directive.js +51 -2
- package/dist/npm/shared/textarea.directive.js +3 -2
- package/dist/npm/shared/utils.js +25 -0
- package/dist/npm/switch/switch.component.js +166 -20
- package/dist/npm/text-fields-common/text-fields-base.js +1 -1
- package/dist/npm/textarea/textarea.component.js +100 -4
- package/dist/npm/textbox/textbox.component.js +113 -14
- package/dist/npm/textbox/textbox.directive.js +3 -2
- package/dist/npm/textbox.module.js +0 -3
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +15 -12
- package/dist/es/colorpicker/models/preventable-event.js +0 -29
- package/dist/es/textbox/floating-label-input-adapter.js +0 -58
- package/dist/es/textbox/textbox-container.component.js +0 -224
- package/dist/es2015/colorpicker/models/preventable-event.d.ts +0 -21
- package/dist/es2015/colorpicker/models/preventable-event.js +0 -27
- package/dist/es2015/textbox/floating-label-input-adapter.d.ts +0 -20
- package/dist/es2015/textbox/floating-label-input-adapter.js +0 -52
- package/dist/es2015/textbox/textbox-container.component.d.ts +0 -59
- package/dist/es2015/textbox/textbox-container.component.js +0 -209
- package/dist/npm/colorpicker/models/preventable-event.js +0 -31
- package/dist/npm/textbox/floating-label-input-adapter.js +0 -60
- package/dist/npm/textbox/textbox-container.component.js +0 -226
package/dist/es2015/main.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export { RangeSliderComponent } from './rangeslider/rangeslider.component';
|
|
|
7
7
|
export { RangeSliderValue } from './rangeslider/rangeslider-value.type';
|
|
8
8
|
export { LabelTemplateDirective } from './sliders-common/label-template.directive';
|
|
9
9
|
export { SwitchComponent } from './switch/switch.component';
|
|
10
|
-
export { TextBoxContainerComponent } from './textbox/textbox-container.component';
|
|
11
10
|
export { TextBoxDirective } from './textbox/textbox.directive';
|
|
12
11
|
export { TextAreaDirective } from './shared/textarea.directive';
|
|
13
12
|
export { NumericTextBoxComponent } from './numerictextbox/numerictextbox.component';
|
|
@@ -22,6 +21,7 @@ export { NumericTextBoxModule } from './numerictextbox.module';
|
|
|
22
21
|
export { MaskedTextBoxModule } from './maskedtextbox.module';
|
|
23
22
|
export { TextBoxModule } from './textbox.module';
|
|
24
23
|
export { TextAreaModule } from './textarea.module';
|
|
24
|
+
export { InputRounded, CheckBoxRounded, InputFillMode, InputSize } from './common/models';
|
|
25
25
|
export { ColorPickerComponent } from './colorpicker/colorpicker.component';
|
|
26
26
|
export { ColorPaletteComponent } from './colorpicker/color-palette.component';
|
|
27
27
|
export { ColorGradientComponent } from './colorpicker/color-gradient.component';
|
|
@@ -30,9 +30,12 @@ export { PopupSettings } from './colorpicker/models';
|
|
|
30
30
|
export { TileSize } from './colorpicker/models';
|
|
31
31
|
export { PaletteSettings } from './colorpicker/models';
|
|
32
32
|
export { OutputFormat } from './colorpicker/models';
|
|
33
|
-
export
|
|
33
|
+
export * from './colorpicker/events';
|
|
34
34
|
export { ColorPickerView } from './colorpicker/models';
|
|
35
35
|
export { GradientSettings } from './colorpicker/models';
|
|
36
|
+
export { FlatColorPickerComponent } from './colorpicker/flatcolorpicker.component';
|
|
37
|
+
export { ColorPickerActionsLayout } from './colorpicker/models/actions-layout';
|
|
38
|
+
export { ColorPickerCancelEvent } from './colorpicker/events';
|
|
36
39
|
export { CheckBoxDirective } from './checkbox/checkbox.directive';
|
|
37
40
|
export { RadioButtonDirective } from './radiobutton/radiobutton.directive';
|
|
38
41
|
export { HintComponent } from './formfield/hint.component';
|
package/dist/es2015/main.js
CHANGED
|
@@ -6,7 +6,6 @@ export { SliderComponent } from './slider/slider.component';
|
|
|
6
6
|
export { RangeSliderComponent } from './rangeslider/rangeslider.component';
|
|
7
7
|
export { LabelTemplateDirective } from './sliders-common/label-template.directive';
|
|
8
8
|
export { SwitchComponent } from './switch/switch.component';
|
|
9
|
-
export { TextBoxContainerComponent } from './textbox/textbox-container.component';
|
|
10
9
|
export { TextBoxDirective } from './textbox/textbox.directive';
|
|
11
10
|
export { TextAreaDirective } from './shared/textarea.directive';
|
|
12
11
|
export { NumericTextBoxComponent } from './numerictextbox/numerictextbox.component';
|
|
@@ -21,11 +20,14 @@ export { NumericTextBoxModule } from './numerictextbox.module';
|
|
|
21
20
|
export { MaskedTextBoxModule } from './maskedtextbox.module';
|
|
22
21
|
export { TextBoxModule } from './textbox.module';
|
|
23
22
|
export { TextAreaModule } from './textarea.module';
|
|
23
|
+
// All ColorPicker Components
|
|
24
24
|
export { ColorPickerComponent } from './colorpicker/colorpicker.component';
|
|
25
25
|
export { ColorPaletteComponent } from './colorpicker/color-palette.component';
|
|
26
26
|
export { ColorGradientComponent } from './colorpicker/color-gradient.component';
|
|
27
27
|
export { ColorPickerModule } from './colorpicker.module';
|
|
28
|
-
export
|
|
28
|
+
export * from './colorpicker/events';
|
|
29
|
+
export { FlatColorPickerComponent } from './colorpicker/flatcolorpicker.component';
|
|
30
|
+
export { ColorPickerCancelEvent } from './colorpicker/events';
|
|
29
31
|
export { CheckBoxDirective } from './checkbox/checkbox.directive';
|
|
30
32
|
export { RadioButtonDirective } from './radiobutton/radiobutton.directive';
|
|
31
33
|
export { HintComponent } from './formfield/hint.component';
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
import { ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges, NgZone, Injector, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
7
7
|
import { MaskingService } from './masking.service';
|
|
8
|
+
import { InputSize } from '../common/models';
|
|
9
|
+
import { InputRounded } from '../common/models/rounded';
|
|
10
|
+
import { InputFillMode } from '../common/models/fillmode';
|
|
8
11
|
/**
|
|
9
12
|
* Represents the [Kendo UI MaskedTextBox component for Angular]({% slug overview_maskedtextbox %}).
|
|
10
13
|
*
|
|
@@ -50,6 +53,36 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
50
53
|
* Sets the title of the `input` element.
|
|
51
54
|
*/
|
|
52
55
|
title: string;
|
|
56
|
+
/**
|
|
57
|
+
* The size property specifies the font size and line height of the MaskedTextBox
|
|
58
|
+
* ([see example]({% slug appearance_maskedtextbox %}#toc-size)).
|
|
59
|
+
* The possible values are:
|
|
60
|
+
* * `'small'`
|
|
61
|
+
* * `'medium'` (default)
|
|
62
|
+
* * `'large'`
|
|
63
|
+
* * `null`
|
|
64
|
+
*/
|
|
65
|
+
size: InputSize;
|
|
66
|
+
/**
|
|
67
|
+
* The rounded property specifies the border radius of the MaskedTextBox
|
|
68
|
+
* ([see example]({% slug appearance_maskedtextbox %}#toc-rounded)).
|
|
69
|
+
* The possible values are:
|
|
70
|
+
* * `'small'`
|
|
71
|
+
* * `'medium'` (default)
|
|
72
|
+
* * `'large'`
|
|
73
|
+
* * `null`
|
|
74
|
+
*/
|
|
75
|
+
rounded: InputRounded;
|
|
76
|
+
/**
|
|
77
|
+
* The fillMode property specifies the background and border styles of the MaskedTexBox
|
|
78
|
+
* ([see example]({% slug appearance_maskedtextbox %}#toc-fillMode)).
|
|
79
|
+
* The possible values are:
|
|
80
|
+
* * `flat`
|
|
81
|
+
* * `solid` (default)
|
|
82
|
+
* * `outline`
|
|
83
|
+
* * `null`
|
|
84
|
+
*/
|
|
85
|
+
fillMode: InputFillMode;
|
|
53
86
|
direction: string;
|
|
54
87
|
hostClasses: boolean;
|
|
55
88
|
readonly hostDisabledClass: boolean;
|
|
@@ -162,11 +195,15 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
162
195
|
private isPasted;
|
|
163
196
|
private selection;
|
|
164
197
|
private control;
|
|
198
|
+
private _size;
|
|
199
|
+
private _rounded;
|
|
200
|
+
private _fillMode;
|
|
165
201
|
constructor(service: MaskingService, renderer: Renderer2, hostElement: ElementRef, ngZone: NgZone, injector: Injector, changeDetector: ChangeDetectorRef, rtl: boolean);
|
|
166
202
|
ngOnInit(): void;
|
|
203
|
+
ngAfterViewInit(): void;
|
|
167
204
|
/**
|
|
168
205
|
* @hidden
|
|
169
|
-
* Used by the
|
|
206
|
+
* Used by the FloatingLabel to determine if the MaskedTextBox is empty.
|
|
170
207
|
*/
|
|
171
208
|
isEmpty(): boolean;
|
|
172
209
|
/**
|
|
@@ -258,4 +295,5 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
258
295
|
private setFocusSelection;
|
|
259
296
|
private focused;
|
|
260
297
|
private normalizeValue;
|
|
298
|
+
private handleClasses;
|
|
261
299
|
}
|
|
@@ -12,9 +12,9 @@ import { packageMetadata } from '../package-metadata';
|
|
|
12
12
|
import { MaskingService } from './masking.service';
|
|
13
13
|
import { isChanged, anyChanged, guid, hasObservers, KendoInput } from '@progress/kendo-angular-common';
|
|
14
14
|
import { invokeElementMethod } from '../common/dom-utils';
|
|
15
|
-
import { requiresZoneOnBlur, isPresent } from '../common/utils';
|
|
15
|
+
import { requiresZoneOnBlur, isPresent, getStylingClasses } from '../common/utils';
|
|
16
16
|
const resolvedPromise = Promise.resolve(null);
|
|
17
|
-
const FOCUSED = 'k-
|
|
17
|
+
const FOCUSED = 'k-focus';
|
|
18
18
|
/**
|
|
19
19
|
* Represents the [Kendo UI MaskedTextBox component for Angular]({% slug overview_maskedtextbox %}).
|
|
20
20
|
*
|
|
@@ -147,6 +147,9 @@ let MaskedTextBoxComponent = MaskedTextBoxComponent_1 = class MaskedTextBoxCompo
|
|
|
147
147
|
};
|
|
148
148
|
this.isPasted = false;
|
|
149
149
|
this.selection = [0, 0];
|
|
150
|
+
this._size = 'medium';
|
|
151
|
+
this._rounded = 'medium';
|
|
152
|
+
this._fillMode = 'solid';
|
|
150
153
|
/**
|
|
151
154
|
* @hidden
|
|
152
155
|
*/
|
|
@@ -199,6 +202,54 @@ let MaskedTextBoxComponent = MaskedTextBoxComponent_1 = class MaskedTextBoxCompo
|
|
|
199
202
|
this.direction = rtl ? 'rtl' : 'ltr';
|
|
200
203
|
this.updateService();
|
|
201
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* The size property specifies the font size and line height of the MaskedTextBox
|
|
207
|
+
* ([see example]({% slug appearance_maskedtextbox %}#toc-size)).
|
|
208
|
+
* The possible values are:
|
|
209
|
+
* * `'small'`
|
|
210
|
+
* * `'medium'` (default)
|
|
211
|
+
* * `'large'`
|
|
212
|
+
* * `null`
|
|
213
|
+
*/
|
|
214
|
+
set size(size) {
|
|
215
|
+
this.handleClasses(size, 'size');
|
|
216
|
+
this._size = size;
|
|
217
|
+
}
|
|
218
|
+
get size() {
|
|
219
|
+
return this._size;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* The rounded property specifies the border radius of the MaskedTextBox
|
|
223
|
+
* ([see example]({% slug appearance_maskedtextbox %}#toc-rounded)).
|
|
224
|
+
* The possible values are:
|
|
225
|
+
* * `'small'`
|
|
226
|
+
* * `'medium'` (default)
|
|
227
|
+
* * `'large'`
|
|
228
|
+
* * `null`
|
|
229
|
+
*/
|
|
230
|
+
set rounded(rounded) {
|
|
231
|
+
this.handleClasses(rounded, 'rounded');
|
|
232
|
+
this._rounded = rounded;
|
|
233
|
+
}
|
|
234
|
+
get rounded() {
|
|
235
|
+
return this._rounded;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* The fillMode property specifies the background and border styles of the MaskedTexBox
|
|
239
|
+
* ([see example]({% slug appearance_maskedtextbox %}#toc-fillMode)).
|
|
240
|
+
* The possible values are:
|
|
241
|
+
* * `flat`
|
|
242
|
+
* * `solid` (default)
|
|
243
|
+
* * `outline`
|
|
244
|
+
* * `null`
|
|
245
|
+
*/
|
|
246
|
+
set fillMode(fillMode) {
|
|
247
|
+
this.handleClasses(fillMode, 'fillMode');
|
|
248
|
+
this._fillMode = fillMode;
|
|
249
|
+
}
|
|
250
|
+
get fillMode() {
|
|
251
|
+
return this._fillMode;
|
|
252
|
+
}
|
|
202
253
|
get hostDisabledClass() {
|
|
203
254
|
return this.disabled;
|
|
204
255
|
}
|
|
@@ -226,9 +277,15 @@ let MaskedTextBoxComponent = MaskedTextBoxComponent_1 = class MaskedTextBoxCompo
|
|
|
226
277
|
}
|
|
227
278
|
this.control = this.injector.get(NgControl, null);
|
|
228
279
|
}
|
|
280
|
+
ngAfterViewInit() {
|
|
281
|
+
const stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
282
|
+
stylingInputs.forEach(input => {
|
|
283
|
+
this.handleClasses(this[input], input);
|
|
284
|
+
});
|
|
285
|
+
}
|
|
229
286
|
/**
|
|
230
287
|
* @hidden
|
|
231
|
-
* Used by the
|
|
288
|
+
* Used by the FloatingLabel to determine if the MaskedTextBox is empty.
|
|
232
289
|
*/
|
|
233
290
|
isEmpty() {
|
|
234
291
|
if (this.input) {
|
|
@@ -467,6 +524,16 @@ let MaskedTextBoxComponent = MaskedTextBoxComponent_1 = class MaskedTextBoxCompo
|
|
|
467
524
|
}
|
|
468
525
|
return present ? value : '';
|
|
469
526
|
}
|
|
527
|
+
handleClasses(value, input) {
|
|
528
|
+
const elem = this.hostElement.nativeElement;
|
|
529
|
+
const classes = getStylingClasses('input', input, this[input], value);
|
|
530
|
+
if (classes.toRemove) {
|
|
531
|
+
this.renderer.removeClass(elem, classes.toRemove);
|
|
532
|
+
}
|
|
533
|
+
if (classes.toAdd) {
|
|
534
|
+
this.renderer.addClass(elem, classes.toAdd);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
470
537
|
};
|
|
471
538
|
tslib_1.__decorate([
|
|
472
539
|
Input(),
|
|
@@ -484,17 +551,32 @@ tslib_1.__decorate([
|
|
|
484
551
|
Input(),
|
|
485
552
|
tslib_1.__metadata("design:type", String)
|
|
486
553
|
], MaskedTextBoxComponent.prototype, "title", void 0);
|
|
554
|
+
tslib_1.__decorate([
|
|
555
|
+
Input(),
|
|
556
|
+
tslib_1.__metadata("design:type", String),
|
|
557
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
558
|
+
], MaskedTextBoxComponent.prototype, "size", null);
|
|
559
|
+
tslib_1.__decorate([
|
|
560
|
+
Input(),
|
|
561
|
+
tslib_1.__metadata("design:type", String),
|
|
562
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
563
|
+
], MaskedTextBoxComponent.prototype, "rounded", null);
|
|
564
|
+
tslib_1.__decorate([
|
|
565
|
+
Input(),
|
|
566
|
+
tslib_1.__metadata("design:type", String),
|
|
567
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
568
|
+
], MaskedTextBoxComponent.prototype, "fillMode", null);
|
|
487
569
|
tslib_1.__decorate([
|
|
488
570
|
HostBinding('attr.dir'),
|
|
489
571
|
tslib_1.__metadata("design:type", String)
|
|
490
572
|
], MaskedTextBoxComponent.prototype, "direction", void 0);
|
|
491
573
|
tslib_1.__decorate([
|
|
492
|
-
HostBinding('class.k-
|
|
574
|
+
HostBinding('class.k-input'),
|
|
493
575
|
HostBinding('class.k-maskedtextbox'),
|
|
494
576
|
tslib_1.__metadata("design:type", Boolean)
|
|
495
577
|
], MaskedTextBoxComponent.prototype, "hostClasses", void 0);
|
|
496
578
|
tslib_1.__decorate([
|
|
497
|
-
HostBinding('class.k-
|
|
579
|
+
HostBinding('class.k-disabled'),
|
|
498
580
|
tslib_1.__metadata("design:type", Boolean),
|
|
499
581
|
tslib_1.__metadata("design:paramtypes", [])
|
|
500
582
|
], MaskedTextBoxComponent.prototype, "hostDisabledClass", null);
|
|
@@ -596,7 +678,7 @@ MaskedTextBoxComponent = MaskedTextBoxComponent_1 = tslib_1.__decorate([
|
|
|
596
678
|
autocorrect="off"
|
|
597
679
|
autocapitalize="off"
|
|
598
680
|
spellcheck="false"
|
|
599
|
-
class="k-
|
|
681
|
+
class="k-input-inner"
|
|
600
682
|
[id]="focusableId"
|
|
601
683
|
[tabindex]="tabIndex"
|
|
602
684
|
[attr.title]="title"
|
|
@@ -8,6 +8,7 @@ import { IntlService, NumberFormatOptions } from '@progress/kendo-angular-intl';
|
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { ArrowDirection } from './arrow-direction';
|
|
10
10
|
import { Subscription } from 'rxjs';
|
|
11
|
+
import { InputSize, InputRounded, InputFillMode } from '../common/models';
|
|
11
12
|
/**
|
|
12
13
|
* Represents the [Kendo UI NumericTextBox component for Angular]({% slug overview_numerictextbox %}).
|
|
13
14
|
*/
|
|
@@ -111,6 +112,36 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
|
|
|
111
112
|
* The `maxlength` restriction is not applied to the length of the formatted value when the component is not focused.
|
|
112
113
|
*/
|
|
113
114
|
maxlength: number;
|
|
115
|
+
/**
|
|
116
|
+
* The size property specifies the font size and line height of the NumericTextBox
|
|
117
|
+
* ([see example]({% slug appearance_numerictextbox %}#toc-size)).
|
|
118
|
+
* The possible values are:
|
|
119
|
+
* * `'small'`
|
|
120
|
+
* * `'medium'` (default)
|
|
121
|
+
* * `'large'`
|
|
122
|
+
* * `null`
|
|
123
|
+
*/
|
|
124
|
+
size: InputSize;
|
|
125
|
+
/**
|
|
126
|
+
* The rounded property specifies the border radius of the NumericTextBox
|
|
127
|
+
* ([see example]({% slug appearance_numerictextbox %}#toc-rounded)).
|
|
128
|
+
* The possible values are:
|
|
129
|
+
* * `'small'`
|
|
130
|
+
* * `'medium'` (default)
|
|
131
|
+
* * `'large'`
|
|
132
|
+
* * `null`
|
|
133
|
+
*/
|
|
134
|
+
rounded: InputRounded;
|
|
135
|
+
/**
|
|
136
|
+
* The fillMode property specifies the background and border styles of the NumericTextBox
|
|
137
|
+
* ([see example]({% slug appearance_numerictextbox %}#toc-fillMode)).
|
|
138
|
+
* The possible values are:
|
|
139
|
+
* * `'flat'`
|
|
140
|
+
* * `'solid'` (default)
|
|
141
|
+
* * `'outline'`
|
|
142
|
+
* * `null`
|
|
143
|
+
*/
|
|
144
|
+
fillMode: InputFillMode;
|
|
114
145
|
/**
|
|
115
146
|
* Fires each time the user selects a new value ([see example]({% slug overview_numerictextbox %}#toc-events)).
|
|
116
147
|
*/
|
|
@@ -127,7 +158,6 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
|
|
|
127
158
|
* @hidden
|
|
128
159
|
*/
|
|
129
160
|
numericInput: ElementRef;
|
|
130
|
-
numericWrap: ElementRef;
|
|
131
161
|
direction: string;
|
|
132
162
|
/**
|
|
133
163
|
* @hidden
|
|
@@ -137,7 +167,8 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
|
|
|
137
167
|
* @hidden
|
|
138
168
|
*/
|
|
139
169
|
arrowDirection: ArrowDirection;
|
|
140
|
-
readonly
|
|
170
|
+
readonly disableClass: boolean;
|
|
171
|
+
hostClasses: boolean;
|
|
141
172
|
protected subscriptions: Subscription;
|
|
142
173
|
protected inputValue: string;
|
|
143
174
|
protected spinTimeout: number;
|
|
@@ -151,11 +182,16 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
|
|
|
151
182
|
protected control: NgControl;
|
|
152
183
|
protected isPasted: boolean;
|
|
153
184
|
protected mouseDown: boolean;
|
|
185
|
+
private _size;
|
|
186
|
+
private _rounded;
|
|
187
|
+
private _fillMode;
|
|
154
188
|
private ngChange;
|
|
155
189
|
private ngTouched;
|
|
156
190
|
private ngValidatorChange;
|
|
191
|
+
private domEvents;
|
|
157
192
|
constructor(intl: IntlService, renderer: Renderer2, localizationService: LocalizationService, injector: Injector, ngZone: NgZone, changeDetector: ChangeDetectorRef, hostElement: ElementRef);
|
|
158
193
|
ngOnInit(): void;
|
|
194
|
+
ngAfterViewInit(): void;
|
|
159
195
|
/**
|
|
160
196
|
* @hidden
|
|
161
197
|
*/
|
|
@@ -301,4 +337,5 @@ export declare class NumericTextBoxComponent implements ControlValueAccessor, On
|
|
|
301
337
|
private selectCaret;
|
|
302
338
|
private numberOfLeadingZeroes;
|
|
303
339
|
private adjustSignificantChars;
|
|
340
|
+
private handleClasses;
|
|
304
341
|
}
|
|
@@ -6,7 +6,7 @@ import * as tslib_1 from "tslib";
|
|
|
6
6
|
var NumericTextBoxComponent_1;
|
|
7
7
|
import { Component, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, ViewChild, forwardRef, isDevMode, NgZone, ChangeDetectorRef, Injector } from '@angular/core';
|
|
8
8
|
import { anyChanged, hasObservers, Keys, guid, KendoInput } from '@progress/kendo-angular-common';
|
|
9
|
-
import { areSame, requiresZoneOnBlur } from '../common/utils';
|
|
9
|
+
import { areSame, getStylingClasses, requiresZoneOnBlur } from '../common/utils';
|
|
10
10
|
import { invokeElementMethod } from '../common/dom-utils';
|
|
11
11
|
import { add, toFixedPrecision, limitPrecision } from '../common/math';
|
|
12
12
|
import { createMaxValidator } from '../validators/max.validator';
|
|
@@ -27,8 +27,7 @@ const PARSABLE_DEFAULTS = {
|
|
|
27
27
|
min: null,
|
|
28
28
|
step: 1
|
|
29
29
|
};
|
|
30
|
-
const FOCUSED = 'k-
|
|
31
|
-
const FORMATTED_VALUE = 'k-formatted-value';
|
|
30
|
+
const FOCUSED = 'k-focus';
|
|
32
31
|
/**
|
|
33
32
|
* Represents the [Kendo UI NumericTextBox component for Angular]({% slug overview_numerictextbox %}).
|
|
34
33
|
*/
|
|
@@ -123,15 +122,20 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
123
122
|
* @hidden
|
|
124
123
|
*/
|
|
125
124
|
this.arrowDirection = ArrowDirection.None;
|
|
125
|
+
this.hostClasses = true;
|
|
126
126
|
this.inputValue = '';
|
|
127
127
|
this.minValidateFn = noop;
|
|
128
128
|
this.maxValidateFn = noop;
|
|
129
129
|
this._format = "n2";
|
|
130
130
|
this.isPasted = false;
|
|
131
131
|
this.mouseDown = false;
|
|
132
|
+
this._size = 'medium';
|
|
133
|
+
this._rounded = 'medium';
|
|
134
|
+
this._fillMode = 'solid';
|
|
132
135
|
this.ngChange = noop;
|
|
133
136
|
this.ngTouched = noop;
|
|
134
137
|
this.ngValidatorChange = noop;
|
|
138
|
+
this.domEvents = [];
|
|
135
139
|
/**
|
|
136
140
|
* @hidden
|
|
137
141
|
*/
|
|
@@ -317,8 +321,56 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
317
321
|
get tabIndex() {
|
|
318
322
|
return this.tabindex;
|
|
319
323
|
}
|
|
320
|
-
|
|
321
|
-
|
|
324
|
+
/**
|
|
325
|
+
* The size property specifies the font size and line height of the NumericTextBox
|
|
326
|
+
* ([see example]({% slug appearance_numerictextbox %}#toc-size)).
|
|
327
|
+
* The possible values are:
|
|
328
|
+
* * `'small'`
|
|
329
|
+
* * `'medium'` (default)
|
|
330
|
+
* * `'large'`
|
|
331
|
+
* * `null`
|
|
332
|
+
*/
|
|
333
|
+
set size(size) {
|
|
334
|
+
this.handleClasses(size, 'size');
|
|
335
|
+
this._size = size;
|
|
336
|
+
}
|
|
337
|
+
get size() {
|
|
338
|
+
return this._size;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* The rounded property specifies the border radius of the NumericTextBox
|
|
342
|
+
* ([see example]({% slug appearance_numerictextbox %}#toc-rounded)).
|
|
343
|
+
* The possible values are:
|
|
344
|
+
* * `'small'`
|
|
345
|
+
* * `'medium'` (default)
|
|
346
|
+
* * `'large'`
|
|
347
|
+
* * `null`
|
|
348
|
+
*/
|
|
349
|
+
set rounded(rounded) {
|
|
350
|
+
this.handleClasses(rounded, 'rounded');
|
|
351
|
+
this._rounded = rounded;
|
|
352
|
+
}
|
|
353
|
+
get rounded() {
|
|
354
|
+
return this._rounded;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* The fillMode property specifies the background and border styles of the NumericTextBox
|
|
358
|
+
* ([see example]({% slug appearance_numerictextbox %}#toc-fillMode)).
|
|
359
|
+
* The possible values are:
|
|
360
|
+
* * `'flat'`
|
|
361
|
+
* * `'solid'` (default)
|
|
362
|
+
* * `'outline'`
|
|
363
|
+
* * `null`
|
|
364
|
+
*/
|
|
365
|
+
set fillMode(fillMode) {
|
|
366
|
+
this.handleClasses(fillMode, 'fillMode');
|
|
367
|
+
this._fillMode = fillMode;
|
|
368
|
+
}
|
|
369
|
+
get fillMode() {
|
|
370
|
+
return this._fillMode;
|
|
371
|
+
}
|
|
372
|
+
get disableClass() {
|
|
373
|
+
return this.disabled;
|
|
322
374
|
}
|
|
323
375
|
ngOnInit() {
|
|
324
376
|
this.subscriptions = this.localizationService
|
|
@@ -331,6 +383,16 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
331
383
|
this.renderer.removeAttribute(this.hostElement.nativeElement, "tabindex");
|
|
332
384
|
}
|
|
333
385
|
this.control = this.injector.get(NgControl, null);
|
|
386
|
+
this.ngZone.runOutsideAngular(() => {
|
|
387
|
+
this.domEvents.push(this.renderer.listen(this.hostElement.nativeElement, 'mousewheel', this.handleWheel.bind(this)));
|
|
388
|
+
this.domEvents.push(this.renderer.listen(this.hostElement.nativeElement, 'DOMMouseScroll', this.handleWheel.bind(this)));
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
ngAfterViewInit() {
|
|
392
|
+
const stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
393
|
+
stylingInputs.forEach(input => {
|
|
394
|
+
this.handleClasses(this[input], input);
|
|
395
|
+
});
|
|
334
396
|
}
|
|
335
397
|
/**
|
|
336
398
|
* @hidden
|
|
@@ -364,6 +426,7 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
364
426
|
this.subscriptions.unsubscribe();
|
|
365
427
|
}
|
|
366
428
|
clearTimeout(this.spinTimeout);
|
|
429
|
+
this.domEvents.forEach(unbindHandler => unbindHandler());
|
|
367
430
|
}
|
|
368
431
|
/**
|
|
369
432
|
* @hidden
|
|
@@ -469,18 +532,13 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
469
532
|
return this.decimals !== null && this.decimals >= 0;
|
|
470
533
|
}
|
|
471
534
|
set focused(value) {
|
|
472
|
-
if (this.isFocused !== value && this.
|
|
473
|
-
const wrap = this.
|
|
474
|
-
const input = this.numericInput.nativeElement;
|
|
535
|
+
if (this.isFocused !== value && this.hostElement) {
|
|
536
|
+
const wrap = this.hostElement.nativeElement;
|
|
475
537
|
if (value) {
|
|
476
538
|
this.renderer.addClass(wrap, FOCUSED);
|
|
477
|
-
if (!this.isDisabled) {
|
|
478
|
-
this.renderer.removeClass(input, FORMATTED_VALUE);
|
|
479
|
-
}
|
|
480
539
|
}
|
|
481
540
|
else {
|
|
482
541
|
this.renderer.removeClass(wrap, FOCUSED);
|
|
483
|
-
this.renderer.addClass(input, FORMATTED_VALUE);
|
|
484
542
|
}
|
|
485
543
|
this.isFocused = value;
|
|
486
544
|
}
|
|
@@ -771,6 +829,16 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
771
829
|
}
|
|
772
830
|
return significantChars;
|
|
773
831
|
}
|
|
832
|
+
handleClasses(value, input) {
|
|
833
|
+
const elem = this.hostElement.nativeElement;
|
|
834
|
+
const classes = getStylingClasses('input', input, this[input], value);
|
|
835
|
+
if (classes.toRemove) {
|
|
836
|
+
this.renderer.removeClass(elem, classes.toRemove);
|
|
837
|
+
}
|
|
838
|
+
if (classes.toAdd) {
|
|
839
|
+
this.renderer.addClass(elem, classes.toAdd);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
774
842
|
};
|
|
775
843
|
tslib_1.__decorate([
|
|
776
844
|
Input(),
|
|
@@ -850,6 +918,21 @@ tslib_1.__decorate([
|
|
|
850
918
|
Input(),
|
|
851
919
|
tslib_1.__metadata("design:type", Number)
|
|
852
920
|
], NumericTextBoxComponent.prototype, "maxlength", void 0);
|
|
921
|
+
tslib_1.__decorate([
|
|
922
|
+
Input(),
|
|
923
|
+
tslib_1.__metadata("design:type", String),
|
|
924
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
925
|
+
], NumericTextBoxComponent.prototype, "size", null);
|
|
926
|
+
tslib_1.__decorate([
|
|
927
|
+
Input(),
|
|
928
|
+
tslib_1.__metadata("design:type", String),
|
|
929
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
930
|
+
], NumericTextBoxComponent.prototype, "rounded", null);
|
|
931
|
+
tslib_1.__decorate([
|
|
932
|
+
Input(),
|
|
933
|
+
tslib_1.__metadata("design:type", String),
|
|
934
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
935
|
+
], NumericTextBoxComponent.prototype, "fillMode", null);
|
|
853
936
|
tslib_1.__decorate([
|
|
854
937
|
Output(),
|
|
855
938
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
@@ -866,20 +949,20 @@ tslib_1.__decorate([
|
|
|
866
949
|
ViewChild('numericInput', { static: true }),
|
|
867
950
|
tslib_1.__metadata("design:type", ElementRef)
|
|
868
951
|
], NumericTextBoxComponent.prototype, "numericInput", void 0);
|
|
869
|
-
tslib_1.__decorate([
|
|
870
|
-
ViewChild('numericWrap', { static: true }),
|
|
871
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
872
|
-
], NumericTextBoxComponent.prototype, "numericWrap", void 0);
|
|
873
952
|
tslib_1.__decorate([
|
|
874
953
|
HostBinding('attr.dir'),
|
|
875
954
|
tslib_1.__metadata("design:type", String)
|
|
876
955
|
], NumericTextBoxComponent.prototype, "direction", void 0);
|
|
877
956
|
tslib_1.__decorate([
|
|
878
|
-
HostBinding('class.k-
|
|
879
|
-
HostBinding('class.k-numerictextbox'),
|
|
957
|
+
HostBinding('class.k-disabled'),
|
|
880
958
|
tslib_1.__metadata("design:type", Boolean),
|
|
881
959
|
tslib_1.__metadata("design:paramtypes", [])
|
|
882
|
-
], NumericTextBoxComponent.prototype, "
|
|
960
|
+
], NumericTextBoxComponent.prototype, "disableClass", null);
|
|
961
|
+
tslib_1.__decorate([
|
|
962
|
+
HostBinding('class.k-input'),
|
|
963
|
+
HostBinding('class.k-numerictextbox'),
|
|
964
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
965
|
+
], NumericTextBoxComponent.prototype, "hostClasses", void 0);
|
|
883
966
|
NumericTextBoxComponent = NumericTextBoxComponent_1 = tslib_1.__decorate([
|
|
884
967
|
Component({
|
|
885
968
|
exportAs: 'kendoNumericTextBox',
|
|
@@ -899,14 +982,9 @@ NumericTextBoxComponent = NumericTextBoxComponent_1 = tslib_1.__decorate([
|
|
|
899
982
|
decrement="Decrease value"
|
|
900
983
|
>
|
|
901
984
|
</ng-container>
|
|
902
|
-
<span
|
|
903
|
-
class="k-numeric-wrap"
|
|
904
|
-
[class.k-state-disabled]="disabled"
|
|
905
|
-
[kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"
|
|
906
|
-
#numericWrap>
|
|
907
985
|
<input
|
|
908
986
|
role="spinbutton"
|
|
909
|
-
class="k-input
|
|
987
|
+
class="k-input-inner"
|
|
910
988
|
autocomplete="off"
|
|
911
989
|
autocorrect="off"
|
|
912
990
|
[id]="focusableId"
|
|
@@ -929,29 +1007,35 @@ NumericTextBoxComponent = NumericTextBoxComponent_1 = tslib_1.__decorate([
|
|
|
929
1007
|
paste: handlePaste
|
|
930
1008
|
}"
|
|
931
1009
|
#numericInput />
|
|
932
|
-
<span
|
|
933
|
-
|
|
934
|
-
|
|
1010
|
+
<span
|
|
1011
|
+
class="k-input-spinner k-spin-button" *ngIf="spinners"
|
|
1012
|
+
[kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"
|
|
1013
|
+
>
|
|
1014
|
+
<button
|
|
1015
|
+
type="button"
|
|
935
1016
|
[kendoEventsOutsideAngular]="{ mousedown: increasePress }"
|
|
1017
|
+
[attr.aria-hidden]="true"
|
|
936
1018
|
[attr.aria-label]="incrementTitle"
|
|
937
1019
|
[title]="incrementTitle"
|
|
938
|
-
[class.k-
|
|
939
|
-
class="k-
|
|
1020
|
+
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
1021
|
+
class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
|
|
1022
|
+
tabindex="-1"
|
|
940
1023
|
>
|
|
941
|
-
<span class="k-icon k-i-arrow-n"></span>
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1024
|
+
<span class="k-button-icon k-icon k-i-arrow-n"></span>
|
|
1025
|
+
</button>
|
|
1026
|
+
<button
|
|
1027
|
+
type="button"
|
|
945
1028
|
[kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
|
|
1029
|
+
[attr.aria-hidden]="true"
|
|
946
1030
|
[attr.aria-label]="decrementTitle"
|
|
947
1031
|
[title]="decrementTitle"
|
|
948
|
-
[class.k-
|
|
949
|
-
class="k-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
1032
|
+
[class.k-active]="arrowDirection === ArrowDirection.Down"
|
|
1033
|
+
class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
|
|
1034
|
+
tabindex="-1"
|
|
1035
|
+
>
|
|
1036
|
+
<span class="k-button-icon k-icon k-i-arrow-s"></span>
|
|
1037
|
+
</button>
|
|
953
1038
|
</span>
|
|
954
|
-
</span>
|
|
955
1039
|
`
|
|
956
1040
|
}),
|
|
957
1041
|
tslib_1.__metadata("design:paramtypes", [IntlService,
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-inputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1640100237,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
6
|
+
import { InputSize } from '../common/models';
|
|
5
7
|
/**
|
|
6
8
|
* Represents the directive that renders the [Kendo UI RadioButton]({% slug overview_checkbox %}) input component.
|
|
7
9
|
* The directive is placed on input type="radio" elements.
|
|
@@ -12,5 +14,21 @@
|
|
|
12
14
|
* ```
|
|
13
15
|
*/
|
|
14
16
|
export declare class RadioButtonDirective {
|
|
17
|
+
private renderer;
|
|
18
|
+
private hostElement;
|
|
15
19
|
kendoClass: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The size property specifies the width and height of the RadioButton
|
|
22
|
+
* ([see example]({% slug appearance_radiobuttondirective %}#toc-size)).
|
|
23
|
+
* The possible values are:
|
|
24
|
+
* * `'small'`
|
|
25
|
+
* * `'medium'` (default)
|
|
26
|
+
* * `'large'`
|
|
27
|
+
* * `null`
|
|
28
|
+
*/
|
|
29
|
+
size: InputSize;
|
|
30
|
+
private _size;
|
|
31
|
+
constructor(renderer: Renderer2, hostElement: ElementRef);
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
private handleClasses;
|
|
16
34
|
}
|