@progress/kendo-angular-inputs 13.2.1-develop.11 → 13.2.1-develop.13
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/LICENSE.md +11 -0
- package/NOTICE.txt +654 -0
- package/README.md +184 -0
- package/checkbox/checkbox.directive.d.ts +52 -0
- package/checkbox.module.d.ts +43 -0
- package/colorpicker/color-contrast-svg.component.d.ts +29 -0
- package/colorpicker/color-gradient-numeric-label.directive.d.ts +20 -0
- package/colorpicker/color-gradient.component.d.ts +281 -0
- package/colorpicker/color-input.component.d.ts +95 -0
- package/colorpicker/color-palette.component.d.ts +221 -0
- package/colorpicker/colorpicker.component.d.ts +383 -0
- package/colorpicker/constants.d.ts +41 -0
- package/colorpicker/contrast-validation.component.d.ts +24 -0
- package/colorpicker/contrast.component.d.ts +25 -0
- package/colorpicker/events/active-color-click-event.d.ts +53 -0
- package/colorpicker/events/cancel-event.d.ts +15 -0
- package/colorpicker/events/close-event.d.ts +10 -0
- package/colorpicker/events/kendo-drag-event.d.ts +21 -0
- package/colorpicker/events/open-event.d.ts +10 -0
- package/colorpicker/events.d.ts +8 -0
- package/colorpicker/flatcolorpicker-actions.component.d.ts +24 -0
- package/colorpicker/flatcolorpicker-header.component.d.ts +43 -0
- package/colorpicker/flatcolorpicker.component.d.ts +267 -0
- package/colorpicker/focus-on-dom-ready.directive.d.ts +18 -0
- package/colorpicker/localization/colorgradient-localization.service.d.ts +17 -0
- package/colorpicker/localization/colorpalette-localization.service.d.ts +17 -0
- package/colorpicker/localization/colorpicker-localization.service.d.ts +14 -0
- package/colorpicker/localization/custom-messages.component.d.ts +17 -0
- package/colorpicker/localization/flatcolorpicker-localization.service.d.ts +17 -0
- package/colorpicker/localization/localized-colorpicker-messages.directive.d.ts +16 -0
- package/colorpicker/localization/messages.d.ts +121 -0
- package/colorpicker/models/actions-layout.d.ts +8 -0
- package/colorpicker/models/colorpicker-view.d.ts +8 -0
- package/colorpicker/models/gradient-settings.d.ts +35 -0
- package/colorpicker/models/hsva.d.ts +13 -0
- package/colorpicker/models/output-format.d.ts +8 -0
- package/colorpicker/models/palette-presets.d.ts +61 -0
- package/colorpicker/models/palette-settings.d.ts +33 -0
- package/colorpicker/models/popup-settings.d.ts +18 -0
- package/colorpicker/models/rgb.d.ts +12 -0
- package/colorpicker/models/rgba.d.ts +13 -0
- package/colorpicker/models/table-cell.d.ts +11 -0
- package/colorpicker/models/tile-size.d.ts +11 -0
- package/colorpicker/models.d.ts +16 -0
- package/colorpicker/services/color-palette.service.d.ts +19 -0
- package/colorpicker/services/flatcolorpicker.service.d.ts +15 -0
- package/colorpicker/utils/color-parser.d.ts +77 -0
- package/colorpicker/utils/contrast-curve.d.ts +37 -0
- package/colorpicker/utils.d.ts +6 -0
- package/colorpicker.module.d.ts +35 -0
- package/common/dom-utils.d.ts +25 -0
- package/common/math.d.ts +36 -0
- package/common/models/fillmode.d.ts +9 -0
- package/common/models/rounded.d.ts +14 -0
- package/common/models/size.d.ts +9 -0
- package/common/models/styling-classes.d.ts +11 -0
- package/common/models.d.ts +8 -0
- package/common/utils.d.ts +56 -0
- package/esm2020/checkbox/checkbox.directive.mjs +94 -0
- package/esm2020/checkbox.module.mjs +52 -0
- package/esm2020/colorpicker/color-contrast-svg.component.mjs +97 -0
- package/esm2020/colorpicker/color-gradient-numeric-label.directive.mjs +31 -0
- package/esm2020/colorpicker/color-gradient.component.mjs +1003 -0
- package/esm2020/colorpicker/color-input.component.mjs +433 -0
- package/esm2020/colorpicker/color-palette.component.mjs +553 -0
- package/esm2020/colorpicker/colorpicker.component.mjs +1086 -0
- package/esm2020/colorpicker/constants.mjs +40 -0
- package/esm2020/colorpicker/contrast-validation.component.mjs +72 -0
- package/esm2020/colorpicker/contrast.component.mjs +100 -0
- package/esm2020/colorpicker/events/active-color-click-event.mjs +58 -0
- package/esm2020/colorpicker/events/cancel-event.mjs +14 -0
- package/esm2020/colorpicker/events/close-event.mjs +10 -0
- package/esm2020/colorpicker/events/kendo-drag-event.mjs +5 -0
- package/esm2020/colorpicker/events/open-event.mjs +10 -0
- package/esm2020/colorpicker/events.mjs +8 -0
- package/esm2020/colorpicker/flatcolorpicker-actions.component.mjs +93 -0
- package/esm2020/colorpicker/flatcolorpicker-header.component.mjs +217 -0
- package/esm2020/colorpicker/flatcolorpicker.component.mjs +829 -0
- package/esm2020/colorpicker/focus-on-dom-ready.directive.mjs +29 -0
- package/esm2020/colorpicker/localization/colorgradient-localization.service.mjs +45 -0
- package/esm2020/colorpicker/localization/colorpalette-localization.service.mjs +45 -0
- package/esm2020/colorpicker/localization/colorpicker-localization.service.mjs +31 -0
- package/esm2020/colorpicker/localization/custom-messages.component.mjs +41 -0
- package/esm2020/colorpicker/localization/flatcolorpicker-localization.service.mjs +45 -0
- package/esm2020/colorpicker/localization/localized-colorpicker-messages.directive.mjs +37 -0
- package/esm2020/colorpicker/localization/messages.mjs +75 -0
- package/esm2020/colorpicker/models/actions-layout.mjs +5 -0
- package/esm2020/colorpicker/models/colorpicker-view.mjs +5 -0
- package/esm2020/colorpicker/models/gradient-settings.mjs +5 -0
- package/esm2020/colorpicker/models/hsva.mjs +5 -0
- package/esm2020/colorpicker/models/output-format.mjs +5 -0
- package/esm2020/colorpicker/models/palette-presets.mjs +62 -0
- package/esm2020/colorpicker/models/palette-settings.mjs +5 -0
- package/esm2020/colorpicker/models/popup-settings.mjs +5 -0
- package/esm2020/colorpicker/models/rgb.mjs +5 -0
- package/esm2020/colorpicker/models/rgba.mjs +5 -0
- package/esm2020/colorpicker/models/table-cell.mjs +5 -0
- package/esm2020/colorpicker/models/tile-size.mjs +6 -0
- package/esm2020/colorpicker/models.mjs +16 -0
- package/esm2020/colorpicker/services/color-palette.service.mjs +67 -0
- package/esm2020/colorpicker/services/flatcolorpicker.service.mjs +39 -0
- package/esm2020/colorpicker/utils/color-parser.mjs +164 -0
- package/esm2020/colorpicker/utils/contrast-curve.mjs +85 -0
- package/esm2020/colorpicker/utils.mjs +6 -0
- package/esm2020/colorpicker.module.mjs +104 -0
- package/esm2020/common/dom-utils.mjs +36 -0
- package/esm2020/common/math.mjs +65 -0
- package/esm2020/common/models/fillmode.mjs +5 -0
- package/esm2020/common/models/rounded.mjs +5 -0
- package/esm2020/common/models/size.mjs +5 -0
- package/esm2020/common/models/styling-classes.mjs +5 -0
- package/esm2020/common/models.mjs +8 -0
- package/esm2020/common/utils.mjs +81 -0
- package/esm2020/formfield/error.component.mjs +68 -0
- package/esm2020/formfield/formfield.component.mjs +284 -0
- package/esm2020/formfield/hint.component.mjs +63 -0
- package/esm2020/formfield/models/message-align.mjs +5 -0
- package/esm2020/formfield/models/orientation.mjs +5 -0
- package/esm2020/formfield/models/show-options.mjs +5 -0
- package/esm2020/formfield.module.mjs +54 -0
- package/esm2020/index.mjs +66 -0
- package/esm2020/inputs.module.mjs +98 -0
- package/esm2020/maskedtextbox/maskedtextbox.component.mjs +711 -0
- package/esm2020/maskedtextbox/masking.service.mjs +191 -0
- package/esm2020/maskedtextbox/parsing/combinators.mjs +28 -0
- package/esm2020/maskedtextbox/parsing/parsers.mjs +147 -0
- package/esm2020/maskedtextbox/parsing/result.mjs +41 -0
- package/esm2020/maskedtextbox/parsing/stream.mjs +41 -0
- package/esm2020/maskedtextbox.module.mjs +53 -0
- package/esm2020/numerictextbox/arrow-direction.mjs +13 -0
- package/esm2020/numerictextbox/constants.mjs +28 -0
- package/esm2020/numerictextbox/localization/custom-messages.component.mjs +41 -0
- package/esm2020/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs +37 -0
- package/esm2020/numerictextbox/localization/messages.mjs +25 -0
- package/esm2020/numerictextbox/numerictextbox.component.mjs +1105 -0
- package/esm2020/numerictextbox/utils.mjs +92 -0
- package/esm2020/numerictextbox.module.mjs +66 -0
- package/esm2020/package-metadata.mjs +15 -0
- package/esm2020/progress-kendo-angular-inputs.mjs +8 -0
- package/esm2020/radiobutton/radiobutton.directive.mjs +76 -0
- package/esm2020/radiobutton.module.mjs +52 -0
- package/esm2020/rangeslider/localization/custom-messages.component.mjs +41 -0
- package/esm2020/rangeslider/localization/localized-rangeslider-messages.directive.mjs +37 -0
- package/esm2020/rangeslider/localization/messages.mjs +25 -0
- package/esm2020/rangeslider/rangeslider-model.mjs +52 -0
- package/esm2020/rangeslider/rangeslider-value.type.mjs +5 -0
- package/esm2020/rangeslider/rangeslider.component.mjs +605 -0
- package/esm2020/rangeslider.module.mjs +71 -0
- package/esm2020/shared/input-separator.component.mjs +41 -0
- package/esm2020/shared/textarea.directive.mjs +260 -0
- package/esm2020/shared/utils.mjs +13 -0
- package/esm2020/shared.module.mjs +32 -0
- package/esm2020/signature/events/close-event.mjs +10 -0
- package/esm2020/signature/events/index.mjs +6 -0
- package/esm2020/signature/events/open-event.mjs +10 -0
- package/esm2020/signature/localization/custom-messages.component.mjs +41 -0
- package/esm2020/signature/localization/index.mjs +7 -0
- package/esm2020/signature/localization/localized-signature-messages.directive.mjs +37 -0
- package/esm2020/signature/localization/messages.mjs +29 -0
- package/esm2020/signature/signature.component.mjs +906 -0
- package/esm2020/signature.module.mjs +79 -0
- package/esm2020/slider/localization/custom-messages.component.mjs +41 -0
- package/esm2020/slider/localization/localized-slider-messages.directive.mjs +37 -0
- package/esm2020/slider/localization/messages.mjs +27 -0
- package/esm2020/slider/slider-model.mjs +34 -0
- package/esm2020/slider/slider.component.mjs +646 -0
- package/esm2020/slider.module.mjs +73 -0
- package/esm2020/sliders-common/label-template.directive.mjs +45 -0
- package/esm2020/sliders-common/slider-base.mjs +255 -0
- package/esm2020/sliders-common/slider-model.base.mjs +93 -0
- package/esm2020/sliders-common/slider-ticks.component.mjs +125 -0
- package/esm2020/sliders-common/sliders-common.module.mjs +42 -0
- package/esm2020/sliders-common/sliders-util.mjs +219 -0
- package/esm2020/sliders-common/title-callback.mjs +5 -0
- package/esm2020/switch/events/blur-event.mjs +9 -0
- package/esm2020/switch/events/focus-event.mjs +9 -0
- package/esm2020/switch/localization/custom-messages.component.mjs +41 -0
- package/esm2020/switch/localization/localized-switch-messages.directive.mjs +37 -0
- package/esm2020/switch/localization/messages.mjs +25 -0
- package/esm2020/switch/switch.component.mjs +577 -0
- package/esm2020/switch.module.mjs +68 -0
- package/esm2020/text-fields-common/text-fields-base.mjs +128 -0
- package/esm2020/textarea/models/flow.mjs +5 -0
- package/esm2020/textarea/models/resize.mjs +5 -0
- package/esm2020/textarea/textarea-suffix.component.mjs +40 -0
- package/esm2020/textarea/textarea.component.mjs +604 -0
- package/esm2020/textarea.module.mjs +68 -0
- package/esm2020/textbox/localization/custom-messages.component.mjs +41 -0
- package/esm2020/textbox/localization/localized-textbox-messages.directive.mjs +37 -0
- package/esm2020/textbox/localization/messages.mjs +23 -0
- package/esm2020/textbox/models/icon-show-options.mjs +5 -0
- package/esm2020/textbox/textbox-prefix.directive.mjs +38 -0
- package/esm2020/textbox/textbox-suffix.directive.mjs +37 -0
- package/esm2020/textbox/textbox.component.mjs +849 -0
- package/esm2020/textbox/textbox.directive.mjs +121 -0
- package/esm2020/textbox.module.mjs +89 -0
- package/esm2020/validators/max.validator.mjs +21 -0
- package/esm2020/validators/min.validator.mjs +21 -0
- package/fesm2015/progress-kendo-angular-inputs.mjs +15090 -0
- package/fesm2020/progress-kendo-angular-inputs.mjs +15055 -0
- package/formfield/error.component.d.ts +31 -0
- package/formfield/formfield.component.d.ts +98 -0
- package/formfield/hint.component.d.ts +29 -0
- package/formfield/models/message-align.d.ts +8 -0
- package/formfield/models/orientation.d.ts +9 -0
- package/formfield/models/show-options.d.ts +16 -0
- package/formfield.module.d.ts +45 -0
- package/index.d.ts +76 -0
- package/inputs.module.d.ts +55 -0
- package/maskedtextbox/maskedtextbox.component.d.ts +315 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/parsing/combinators.d.ts +13 -0
- package/maskedtextbox/parsing/parsers.d.ts +51 -0
- package/maskedtextbox/parsing/result.d.ts +27 -0
- package/maskedtextbox/parsing/stream.d.ts +26 -0
- package/maskedtextbox.module.d.ts +44 -0
- package/numerictextbox/arrow-direction.d.ts +12 -0
- package/numerictextbox/constants.d.ts +28 -0
- package/numerictextbox/localization/custom-messages.component.d.ts +17 -0
- package/numerictextbox/localization/localized-numerictextbox-messages.directive.d.ts +16 -0
- package/numerictextbox/localization/messages.d.ts +21 -0
- package/numerictextbox/numerictextbox.component.d.ts +364 -0
- package/numerictextbox/utils.d.ts +44 -0
- package/numerictextbox.module.d.ts +47 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +74 -0
- package/progress-kendo-angular-inputs.d.ts +9 -0
- package/radiobutton/radiobutton.directive.d.ts +38 -0
- package/radiobutton.module.d.ts +43 -0
- package/rangeslider/localization/custom-messages.component.d.ts +17 -0
- package/rangeslider/localization/localized-rangeslider-messages.directive.d.ts +16 -0
- package/rangeslider/localization/messages.d.ts +21 -0
- package/rangeslider/rangeslider-model.d.ts +15 -0
- package/rangeslider/rangeslider-value.type.d.ts +9 -0
- package/rangeslider/rangeslider.component.d.ts +139 -0
- package/rangeslider.module.d.ts +48 -0
- package/schematics/collection.json +12 -0
- package/schematics/ngAdd/index.js +11 -0
- package/schematics/ngAdd/schema.json +28 -0
- package/shared/input-separator.component.d.ts +28 -0
- package/shared/textarea.directive.d.ts +99 -0
- package/shared/utils.d.ts +10 -0
- package/shared.module.d.ts +19 -0
- package/signature/events/close-event.d.ts +10 -0
- package/signature/events/index.d.ts +6 -0
- package/signature/events/open-event.d.ts +10 -0
- package/signature/localization/custom-messages.component.d.ts +17 -0
- package/signature/localization/index.d.ts +7 -0
- package/signature/localization/localized-signature-messages.directive.d.ts +16 -0
- package/signature/localization/messages.d.ts +29 -0
- package/signature/signature.component.d.ts +364 -0
- package/signature.module.d.ts +48 -0
- package/slider/localization/custom-messages.component.d.ts +17 -0
- package/slider/localization/localized-slider-messages.directive.d.ts +16 -0
- package/slider/localization/messages.d.ts +25 -0
- package/slider/slider-model.d.ts +14 -0
- package/slider/slider.component.d.ts +175 -0
- package/slider.module.d.ts +50 -0
- package/sliders-common/label-template.directive.d.ts +36 -0
- package/sliders-common/slider-base.d.ts +141 -0
- package/sliders-common/slider-model.base.d.ts +26 -0
- package/sliders-common/slider-ticks.component.d.ts +26 -0
- package/sliders-common/sliders-common.module.d.ts +17 -0
- package/sliders-common/sliders-util.d.ts +119 -0
- package/sliders-common/title-callback.d.ts +10 -0
- package/switch/events/blur-event.d.ts +13 -0
- package/switch/events/focus-event.d.ts +13 -0
- package/switch/localization/custom-messages.component.d.ts +17 -0
- package/switch/localization/localized-switch-messages.directive.d.ts +16 -0
- package/switch/localization/messages.d.ts +21 -0
- package/switch/switch.component.d.ts +216 -0
- package/switch.module.d.ts +46 -0
- package/text-fields-common/text-fields-base.d.ts +91 -0
- package/textarea/models/flow.d.ts +12 -0
- package/textarea/models/resize.d.ts +16 -0
- package/textarea/textarea-suffix.component.d.ts +26 -0
- package/textarea/textarea.component.d.ts +225 -0
- package/textarea.module.d.ts +48 -0
- package/textbox/localization/custom-messages.component.d.ts +17 -0
- package/textbox/localization/localized-textbox-messages.directive.d.ts +16 -0
- package/textbox/localization/messages.d.ts +17 -0
- package/textbox/models/icon-show-options.d.ts +13 -0
- package/textbox/textbox-prefix.directive.d.ts +29 -0
- package/textbox/textbox-suffix.directive.d.ts +28 -0
- package/textbox/textbox.component.d.ts +376 -0
- package/textbox/textbox.directive.d.ts +59 -0
- package/textbox.module.d.ts +53 -0
- package/validators/max.validator.d.ts +8 -0
- package/validators/min.validator.d.ts +8 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ElementRef, Renderer2, EventEmitter, OnInit, OnDestroy, ChangeDetectorRef, NgZone, Injector, AfterViewInit } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
7
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import { Subscription } from "rxjs";
|
|
9
|
+
import { InputRounded, InputSize } from '../common/models';
|
|
10
|
+
import { SwitchFocusEvent } from './events/focus-event';
|
|
11
|
+
import { SwitchBlurEvent } from './events/blur-event';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* Represents the [Kendo UI Switch component for Angular]({% slug overview_switch %}).
|
|
15
|
+
*/
|
|
16
|
+
export declare class SwitchComponent implements ControlValueAccessor, OnInit, OnDestroy, AfterViewInit {
|
|
17
|
+
private renderer;
|
|
18
|
+
private hostElement;
|
|
19
|
+
private localizationService;
|
|
20
|
+
private injector;
|
|
21
|
+
private changeDetector;
|
|
22
|
+
private ngZone;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
get focusableId(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Changes the **On** label so that it can be localized ([see example]({% slug labels_switch %})).
|
|
29
|
+
*/
|
|
30
|
+
onLabel: string;
|
|
31
|
+
/**
|
|
32
|
+
* Changes the **Off** label so that it can be localized ([see example]({% slug labels_switch %})).
|
|
33
|
+
*/
|
|
34
|
+
offLabel: string;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the value of the Switch when it is initially displayed.
|
|
37
|
+
*/
|
|
38
|
+
set checked(value: boolean);
|
|
39
|
+
get checked(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Determines whether the Switch is disabled ([see example]({% slug disabled_switch %})).
|
|
42
|
+
*/
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Determines whether the Switch is in its read-only state ([see example]({% slug readonly_switch %})).
|
|
46
|
+
*/
|
|
47
|
+
readonly: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the Switch.
|
|
50
|
+
*/
|
|
51
|
+
tabindex: number;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the width and height of the Switch.
|
|
54
|
+
*
|
|
55
|
+
* The possible values are:
|
|
56
|
+
* * `small`
|
|
57
|
+
* * `medium` (default)
|
|
58
|
+
* * `large`
|
|
59
|
+
* * `none`
|
|
60
|
+
*/
|
|
61
|
+
set size(size: InputSize);
|
|
62
|
+
get size(): InputSize;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies the border radius of the Switch thumb.
|
|
65
|
+
*
|
|
66
|
+
* The possible values are:
|
|
67
|
+
* * `full` (default)
|
|
68
|
+
* * `small`
|
|
69
|
+
* * `medium`
|
|
70
|
+
* * `large`
|
|
71
|
+
* * `none`
|
|
72
|
+
*/
|
|
73
|
+
set thumbRounded(thumbRounded: InputRounded);
|
|
74
|
+
get thumbRounded(): InputRounded;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the border radius of the Switch track.
|
|
77
|
+
*
|
|
78
|
+
* The possible values are:
|
|
79
|
+
* * `full` (default)
|
|
80
|
+
* * `small`
|
|
81
|
+
* * `medium`
|
|
82
|
+
* * `large`
|
|
83
|
+
* * `none`
|
|
84
|
+
*/
|
|
85
|
+
set trackRounded(trackRounded: InputRounded);
|
|
86
|
+
get trackRounded(): InputRounded;
|
|
87
|
+
/**
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
set tabIndex(tabIndex: number);
|
|
91
|
+
get tabIndex(): number;
|
|
92
|
+
/**
|
|
93
|
+
* Fires each time the Switch component is focused as a result of user interaction.
|
|
94
|
+
*/
|
|
95
|
+
onFocus: EventEmitter<SwitchFocusEvent>;
|
|
96
|
+
/**
|
|
97
|
+
* Fires each time the Switch component is blurred as a result of user interaction.
|
|
98
|
+
*/
|
|
99
|
+
onBlur: EventEmitter<SwitchBlurEvent>;
|
|
100
|
+
/**
|
|
101
|
+
* Fires each time the user selects a new value.
|
|
102
|
+
*/
|
|
103
|
+
valueChange: EventEmitter<any>;
|
|
104
|
+
direction: string;
|
|
105
|
+
get ieClass(): boolean;
|
|
106
|
+
hostRole: string;
|
|
107
|
+
get hostId(): string;
|
|
108
|
+
get ariaChecked(): boolean;
|
|
109
|
+
get ariaInvalid(): boolean;
|
|
110
|
+
get hostTabIndex(): number;
|
|
111
|
+
get ariaDisabled(): boolean;
|
|
112
|
+
get ariaReadonly(): boolean;
|
|
113
|
+
hostClasses: boolean;
|
|
114
|
+
get disabledClass(): boolean;
|
|
115
|
+
track: any;
|
|
116
|
+
thumb: any;
|
|
117
|
+
/**
|
|
118
|
+
* @hidden
|
|
119
|
+
*/
|
|
120
|
+
initialized: boolean;
|
|
121
|
+
protected localizationChangeSubscription: Subscription;
|
|
122
|
+
protected isFocused: boolean;
|
|
123
|
+
protected control: NgControl;
|
|
124
|
+
private domSubscriptions;
|
|
125
|
+
private _checked;
|
|
126
|
+
private _size;
|
|
127
|
+
private _trackRounded;
|
|
128
|
+
private _thumbRounded;
|
|
129
|
+
constructor(renderer: Renderer2, hostElement: ElementRef, localizationService: LocalizationService, injector: Injector, changeDetector: ChangeDetectorRef, ngZone: NgZone);
|
|
130
|
+
/**
|
|
131
|
+
* @hidden
|
|
132
|
+
*/
|
|
133
|
+
get onLabelMessage(): string;
|
|
134
|
+
/**
|
|
135
|
+
* @hidden
|
|
136
|
+
*/
|
|
137
|
+
get offLabelMessage(): string;
|
|
138
|
+
protected ngChange: Function;
|
|
139
|
+
protected ngTouched: Function;
|
|
140
|
+
protected get isEnabled(): boolean;
|
|
141
|
+
ngOnInit(): void;
|
|
142
|
+
ngAfterViewInit(): void;
|
|
143
|
+
ngOnDestroy(): void;
|
|
144
|
+
/**
|
|
145
|
+
* Focuses the Switch.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```ts-no-run
|
|
149
|
+
* _@Component({
|
|
150
|
+
* selector: 'my-app',
|
|
151
|
+
* template: `
|
|
152
|
+
* <button (click)="switch.focus()">Focus</button>
|
|
153
|
+
* <kendo-switch #switch></kendo-switch>
|
|
154
|
+
* `
|
|
155
|
+
* })
|
|
156
|
+
* class AppComponent { }
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
focus(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Blurs the Switch.
|
|
162
|
+
*/
|
|
163
|
+
blur(): void;
|
|
164
|
+
/**
|
|
165
|
+
* @hidden
|
|
166
|
+
* Called when the status of the component changes to or from `disabled`.
|
|
167
|
+
* Depending on the value, it enables or disables the appropriate DOM element.
|
|
168
|
+
*/
|
|
169
|
+
setDisabledState(isDisabled: boolean): void;
|
|
170
|
+
/**
|
|
171
|
+
* @hidden
|
|
172
|
+
*/
|
|
173
|
+
handleFocus: (event: FocusEvent) => void;
|
|
174
|
+
/**
|
|
175
|
+
* @hidden
|
|
176
|
+
*/
|
|
177
|
+
handleBlur: (event: FocusEvent) => void;
|
|
178
|
+
/**
|
|
179
|
+
* @hidden
|
|
180
|
+
*/
|
|
181
|
+
get isControlInvalid(): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* @hidden
|
|
184
|
+
*/
|
|
185
|
+
writeValue(value: boolean): void;
|
|
186
|
+
/**
|
|
187
|
+
* @hidden
|
|
188
|
+
*/
|
|
189
|
+
registerOnChange(fn: () => any): void;
|
|
190
|
+
/**
|
|
191
|
+
* @hidden
|
|
192
|
+
*/
|
|
193
|
+
registerOnTouched(fn: () => any): void;
|
|
194
|
+
/**
|
|
195
|
+
* @hidden
|
|
196
|
+
*/
|
|
197
|
+
keyDownHandler(e: any): void;
|
|
198
|
+
/**
|
|
199
|
+
* @hidden
|
|
200
|
+
*/
|
|
201
|
+
clickHandler(): void;
|
|
202
|
+
/**
|
|
203
|
+
* @hidden
|
|
204
|
+
* Used by the FloatingLabel to determine if the component is empty.
|
|
205
|
+
*/
|
|
206
|
+
isEmpty(): boolean;
|
|
207
|
+
private changeValue;
|
|
208
|
+
private set focused(value);
|
|
209
|
+
private attachHostHandlers;
|
|
210
|
+
private setHostClasses;
|
|
211
|
+
private handleClasses;
|
|
212
|
+
private handleTrackClasses;
|
|
213
|
+
private handleThumbClasses;
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
215
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "kendo-switch", ["kendoSwitch"], { "focusableId": "focusableId"; "onLabel": "onLabel"; "offLabel": "offLabel"; "checked": "checked"; "disabled": "disabled"; "readonly": "readonly"; "tabindex": "tabindex"; "size": "size"; "thumbRounded": "thumbRounded"; "trackRounded": "trackRounded"; "tabIndex": "tabIndex"; }, { "onFocus": "focus"; "onBlur": "blur"; "valueChange": "valueChange"; }, never, never>;
|
|
216
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./switch/switch.component";
|
|
7
|
+
import * as i2 from "./switch/localization/custom-messages.component";
|
|
8
|
+
import * as i3 from "./switch/localization/localized-switch-messages.directive";
|
|
9
|
+
import * as i4 from "@angular/common";
|
|
10
|
+
import * as i5 from "@progress/kendo-angular-common";
|
|
11
|
+
/**
|
|
12
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
13
|
+
* definition for the Switch component.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* ```ts-no-run
|
|
18
|
+
* // Import the Switch module
|
|
19
|
+
* import { SwitchModule } from '@progress/kendo-angular-inputs';
|
|
20
|
+
*
|
|
21
|
+
* // The browser platform with a compiler
|
|
22
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
23
|
+
*
|
|
24
|
+
* import { NgModule } from '@angular/core';
|
|
25
|
+
*
|
|
26
|
+
* // Import the app component
|
|
27
|
+
* import { AppComponent } from './app.component';
|
|
28
|
+
*
|
|
29
|
+
* // Define the app module
|
|
30
|
+
* _@NgModule({
|
|
31
|
+
* declarations: [AppComponent], // declare app component
|
|
32
|
+
* imports: [BrowserModule, SwitchModule], // import Switch module
|
|
33
|
+
* bootstrap: [AppComponent]
|
|
34
|
+
* })
|
|
35
|
+
* export class AppModule {}
|
|
36
|
+
*
|
|
37
|
+
* // Compile and launch the module
|
|
38
|
+
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class SwitchModule {
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchModule, never>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SwitchModule, [typeof i1.SwitchComponent, typeof i2.SwitchCustomMessagesComponent, typeof i3.LocalizedSwitchMessagesDirective], [typeof i4.CommonModule, typeof i5.EventsModule, typeof i5.ResizeSensorModule], [typeof i1.SwitchComponent, typeof i2.SwitchCustomMessagesComponent, typeof i3.LocalizedSwitchMessagesDirective]>;
|
|
45
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SwitchModule>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import { NgControl } from '@angular/forms';
|
|
7
|
+
import { ElementRef, EventEmitter, NgZone, Renderer2, ChangeDetectorRef, Injector } from '@angular/core';
|
|
8
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare abstract class TextFieldsBase {
|
|
14
|
+
protected localizationService: LocalizationService;
|
|
15
|
+
protected ngZone: NgZone;
|
|
16
|
+
protected changeDetector: ChangeDetectorRef;
|
|
17
|
+
protected renderer: Renderer2;
|
|
18
|
+
protected injector: Injector;
|
|
19
|
+
protected hostElement: ElementRef;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the `title` attribute of the internal textarea input element of the component.
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the disabled state of the TextArea component.
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the read-only state of the TextArea component.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
readonly: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Provides a value for the TextArea component.
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
/**
|
|
41
|
+
* Determines whether the whole value will be selected when the TextArea is clicked. Defaults to `false`.
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
selectOnFocus: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The hint, which is displayed when the Textarea is empty.
|
|
48
|
+
*/
|
|
49
|
+
placeholder: string;
|
|
50
|
+
/**
|
|
51
|
+
* Fires each time the user focuses the internal textarea element of the component.
|
|
52
|
+
* This event is useful when you need to distinguish between focusing the textarea element and focusing one of its adornments.
|
|
53
|
+
*/
|
|
54
|
+
inputFocus: EventEmitter<any>;
|
|
55
|
+
/**
|
|
56
|
+
* Fires each time the internal textarea element gets blurred.
|
|
57
|
+
* This event is useful when adornments are used, in order to distinguish between blurring the textarea element and blurring the whole TextArea component.
|
|
58
|
+
*/
|
|
59
|
+
inputBlur: EventEmitter<any>;
|
|
60
|
+
/**
|
|
61
|
+
* Represents the visible textarea element of the component.
|
|
62
|
+
*/
|
|
63
|
+
input: ElementRef;
|
|
64
|
+
get disabledClass(): boolean;
|
|
65
|
+
direction: string;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
protected control: NgControl;
|
|
70
|
+
protected subscriptions: Subscription;
|
|
71
|
+
protected _isFocused: boolean;
|
|
72
|
+
protected focusChangedProgrammatically: boolean;
|
|
73
|
+
constructor(localizationService: LocalizationService, ngZone: NgZone, changeDetector: ChangeDetectorRef, renderer: Renderer2, injector: Injector, hostElement: ElementRef);
|
|
74
|
+
ngOnDestroy(): void;
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
handleInputBlur: () => void;
|
|
79
|
+
/**
|
|
80
|
+
* @hidden
|
|
81
|
+
* Called when the status of the component changes to or from `disabled`.
|
|
82
|
+
* Depending on the value, it enables or disables the appropriate DOM element.
|
|
83
|
+
*
|
|
84
|
+
* @param isDisabled
|
|
85
|
+
*/
|
|
86
|
+
setDisabledState(isDisabled: boolean): void;
|
|
87
|
+
ngChange: Function;
|
|
88
|
+
ngTouched: Function;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextFieldsBase, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldsBase, "kendo-textfield-base", never, { "title": "title"; "disabled": "disabled"; "readonly": "readonly"; "value": "value"; "selectOnFocus": "selectOnFocus"; "placeholder": "placeholder"; }, { "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, never, never>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the flow direction of the TextArea sections.
|
|
7
|
+
*
|
|
8
|
+
* The possible values are:
|
|
9
|
+
* * `vertical`(Default) —TextArea sections are placed from top to bottom.
|
|
10
|
+
* * `horizontal`—TextArea sections are placed from left to right in `ltr`, and from right to left in `rtl` mode.
|
|
11
|
+
*/
|
|
12
|
+
export declare type TextAreaFlow = 'horizontal' | 'vertical';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Specifies if the TextArea should auto resize, resize directions or none resize.
|
|
7
|
+
*
|
|
8
|
+
* The possible values are:
|
|
9
|
+
* * `vertical`(Default)—The TextArea component can be resized in vertical direction.
|
|
10
|
+
* * `auto`—Specifies whether the TextArea component will adjust its height automatically, based on the content.
|
|
11
|
+
* * `horizontal`—The TextArea component can be resized in horizontal direction.
|
|
12
|
+
* * `both`—The TextArea component can be resized in both - horizontal and vertical directions.
|
|
13
|
+
* * `none`—The TextArea cannot be resized.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare type TextAreaResize = 'auto' | 'vertical' | 'horizontal' | 'both' | 'none';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Specifies the adornments in the suffix container ([see example]({% slug textarea_adornments %})).
|
|
8
|
+
* ```ts-no-run
|
|
9
|
+
* _@Component({
|
|
10
|
+
* selector: 'my-app',
|
|
11
|
+
* template: `
|
|
12
|
+
* <kendo-textarea>
|
|
13
|
+
* <kendo-textarea-suffix>
|
|
14
|
+
* <button kendoButton look="clear" icon="image"></button>
|
|
15
|
+
* </kendo-textarea-suffix>
|
|
16
|
+
* </kendo-textarea>
|
|
17
|
+
* `
|
|
18
|
+
* })
|
|
19
|
+
* class AppComponent {}
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class TextAreaSuffixComponent {
|
|
23
|
+
hostClass: boolean;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaSuffixComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaSuffixComponent, "kendo-textarea-suffix", ["kendoTextAreaSuffix"], {}, {}, never, ["*"]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ElementRef, EventEmitter, NgZone, Renderer2, ChangeDetectorRef, Injector } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
+
import { TextFieldsBase } from '../text-fields-common/text-fields-base';
|
|
9
|
+
import { TextAreaFlow } from './models/flow';
|
|
10
|
+
import { TextAreaResize } from './models/resize';
|
|
11
|
+
import { InputRounded, InputFillMode, InputSize } from '../common/models';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* Represents the [Kendo UI TextArea component for Angular]({% slug overview_textarea %}).
|
|
15
|
+
*/
|
|
16
|
+
export declare class TextAreaComponent extends TextFieldsBase implements ControlValueAccessor {
|
|
17
|
+
protected localizationService: LocalizationService;
|
|
18
|
+
protected ngZone: NgZone;
|
|
19
|
+
protected changeDetector: ChangeDetectorRef;
|
|
20
|
+
protected renderer: Renderer2;
|
|
21
|
+
protected injector: Injector;
|
|
22
|
+
protected hostElement: ElementRef;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
focusableId: string;
|
|
27
|
+
hostClasses: boolean;
|
|
28
|
+
get flowCol(): boolean;
|
|
29
|
+
get flowRow(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the flow direction of the TextArea sections. This property is useful when adornments are used, in order to specify
|
|
32
|
+
* their position in relation to the textarea element.
|
|
33
|
+
*
|
|
34
|
+
* The possible values are:
|
|
35
|
+
* * `vertical`(Default) —TextArea sections are placed from top to bottom.
|
|
36
|
+
* * `horizontal`—TextArea sections are placed from left to right in `ltr`, and from right to left in `rtl` mode.
|
|
37
|
+
*/
|
|
38
|
+
flow: TextAreaFlow;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the visible height of the textarea element in lines.
|
|
41
|
+
*/
|
|
42
|
+
rows: number;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the visible width of the textarea element (in average character width).
|
|
45
|
+
*/
|
|
46
|
+
cols: number;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the maximum number of characters that the user can enter in the TextArea component.
|
|
49
|
+
*/
|
|
50
|
+
maxlength: number;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
53
|
+
*/
|
|
54
|
+
tabindex: number;
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*/
|
|
58
|
+
set tabIndex(tabIndex: number);
|
|
59
|
+
get tabIndex(): number;
|
|
60
|
+
/**
|
|
61
|
+
* Configures the resize behavior of the TextArea.
|
|
62
|
+
*
|
|
63
|
+
* The possible values are:
|
|
64
|
+
* * `vertical`(Default)—The TextArea component can be resized only vertically.
|
|
65
|
+
* * `horizontal`—The TextArea component can be resized only horizontally.
|
|
66
|
+
* * `both`—The TextArea component can be resized in both (horizontal and vertical) directions.
|
|
67
|
+
* * `auto`—Specifies whether the TextArea component will adjust its height automatically, based on the content.
|
|
68
|
+
* * `none`—The TextArea cannot be resized.
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
resizable: TextAreaResize;
|
|
72
|
+
/**
|
|
73
|
+
* The size property specifies the padding of the internal textarea element
|
|
74
|
+
* ([see example]({% slug appearance_textarea %}#toc-size)).
|
|
75
|
+
*
|
|
76
|
+
* The possible values are:
|
|
77
|
+
* * `small`
|
|
78
|
+
* * `medium` (default)
|
|
79
|
+
* * `large`
|
|
80
|
+
* * `none`
|
|
81
|
+
*/
|
|
82
|
+
set size(size: InputSize);
|
|
83
|
+
get size(): InputSize;
|
|
84
|
+
/**
|
|
85
|
+
* The rounded property specifies the border radius of the TextArea
|
|
86
|
+
* ([see example]({% slug appearance_textarea %}#toc-rounded)).
|
|
87
|
+
*
|
|
88
|
+
* The possible values are:
|
|
89
|
+
* * `small`
|
|
90
|
+
* * `medium` (default)
|
|
91
|
+
* * `large`
|
|
92
|
+
* * `none`
|
|
93
|
+
*/
|
|
94
|
+
set rounded(rounded: InputRounded);
|
|
95
|
+
get rounded(): InputRounded;
|
|
96
|
+
/**
|
|
97
|
+
* The fillMode property specifies the background and border styles of the TextArea
|
|
98
|
+
* ([see example]({% slug appearance_textarea %}#toc-fillMode)).
|
|
99
|
+
*
|
|
100
|
+
* The possible values are:
|
|
101
|
+
* * `flat`
|
|
102
|
+
* * `solid` (default)
|
|
103
|
+
* * `outline`
|
|
104
|
+
* * `none`
|
|
105
|
+
*/
|
|
106
|
+
set fillMode(fillMode: InputFillMode);
|
|
107
|
+
get fillMode(): InputFillMode;
|
|
108
|
+
/**
|
|
109
|
+
* Fires each time the user focuses the TextArea component.
|
|
110
|
+
*
|
|
111
|
+
* > To wire the event programmatically, use the `onFocus` property.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* _@Component({
|
|
116
|
+
* selector: 'my-app',
|
|
117
|
+
* template: `
|
|
118
|
+
* <kendo-textarea (focus)="handleFocus()"></kendo-textarea>
|
|
119
|
+
* `
|
|
120
|
+
* })
|
|
121
|
+
* class AppComponent {
|
|
122
|
+
* public handleFocus(): void {
|
|
123
|
+
* console.log('Component is focused');
|
|
124
|
+
* }
|
|
125
|
+
* }
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
onFocus: EventEmitter<any>;
|
|
129
|
+
/**
|
|
130
|
+
* Fires each time the TextArea component gets blurred.
|
|
131
|
+
*
|
|
132
|
+
* > To wire the event programmatically, use the `onBlur` property.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* _@Component({
|
|
137
|
+
* selector: 'my-app',
|
|
138
|
+
* template: `
|
|
139
|
+
* <kendo-textarea (blur)="handleBlur()"></kendo-textarea>
|
|
140
|
+
* `
|
|
141
|
+
* })
|
|
142
|
+
* class AppComponent {
|
|
143
|
+
* public handleBlur(): void {
|
|
144
|
+
* console.log('Component is blurred');
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
onBlur: EventEmitter<any>;
|
|
150
|
+
/**
|
|
151
|
+
* Fires each time the value is changed or the component is blurred
|
|
152
|
+
* ([see example]({% slug overview_textarea %}#toc-events)).
|
|
153
|
+
* When the component value is changed programmatically or via its form control binding, the valueChange event is not emitted.
|
|
154
|
+
*/
|
|
155
|
+
valueChange: EventEmitter<any>;
|
|
156
|
+
private initialHeight;
|
|
157
|
+
private resizeSubscription;
|
|
158
|
+
private _size;
|
|
159
|
+
private _rounded;
|
|
160
|
+
private _fillMode;
|
|
161
|
+
constructor(localizationService: LocalizationService, ngZone: NgZone, changeDetector: ChangeDetectorRef, renderer: Renderer2, injector: Injector, hostElement: ElementRef);
|
|
162
|
+
ngAfterViewInit(): void;
|
|
163
|
+
ngOnInit(): void;
|
|
164
|
+
ngOnChanges(changes: any): void;
|
|
165
|
+
/**
|
|
166
|
+
* @hidden
|
|
167
|
+
*/
|
|
168
|
+
writeValue(value: string): void;
|
|
169
|
+
/**
|
|
170
|
+
* @hidden
|
|
171
|
+
*/
|
|
172
|
+
registerOnChange(fn: () => any): void;
|
|
173
|
+
/**
|
|
174
|
+
* @hidden
|
|
175
|
+
*/
|
|
176
|
+
registerOnTouched(fn: () => any): void;
|
|
177
|
+
updateValue(value: string): void;
|
|
178
|
+
ngOnDestroy(): void;
|
|
179
|
+
/**
|
|
180
|
+
* @hidden
|
|
181
|
+
*/
|
|
182
|
+
get resizableClass(): string;
|
|
183
|
+
/**
|
|
184
|
+
* @hidden
|
|
185
|
+
*/
|
|
186
|
+
get isControlInvalid(): boolean;
|
|
187
|
+
/**
|
|
188
|
+
* @hidden
|
|
189
|
+
*/
|
|
190
|
+
handleInput: (ev: any) => void;
|
|
191
|
+
/**
|
|
192
|
+
* @hidden
|
|
193
|
+
*/
|
|
194
|
+
handleInputFocus: () => void;
|
|
195
|
+
/**
|
|
196
|
+
* Focuses the TextArea component.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```ts
|
|
200
|
+
* _@Component({
|
|
201
|
+
* selector: 'my-app',
|
|
202
|
+
* template: `
|
|
203
|
+
* <button (click)="textarea.focus()">Focus the textarea</button>
|
|
204
|
+
* <kendo-textarea #textarea></kendo-textarea>
|
|
205
|
+
* `
|
|
206
|
+
* })
|
|
207
|
+
* class AppComponent { }
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
focus(): void;
|
|
211
|
+
/**
|
|
212
|
+
* Blurs the TextArea component.
|
|
213
|
+
*/
|
|
214
|
+
blur(): void;
|
|
215
|
+
private resize;
|
|
216
|
+
private get isFocused();
|
|
217
|
+
private set isFocused(value);
|
|
218
|
+
private handleBlur;
|
|
219
|
+
private setSelection;
|
|
220
|
+
private selectAll;
|
|
221
|
+
private handleClasses;
|
|
222
|
+
private handleFlow;
|
|
223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, never>;
|
|
224
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "kendo-textarea", ["kendoTextArea"], { "focusableId": "focusableId"; "flow": "flow"; "rows": "rows"; "cols": "cols"; "maxlength": "maxlength"; "tabindex": "tabindex"; "tabIndex": "tabIndex"; "resizable": "resizable"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; }, { "onFocus": "focus"; "onBlur": "blur"; "valueChange": "valueChange"; }, never, ["kendo-textarea-suffix"]>;
|
|
225
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./textarea/textarea.component";
|
|
7
|
+
import * as i2 from "./textarea/textarea-suffix.component";
|
|
8
|
+
import * as i3 from "@angular/common";
|
|
9
|
+
import * as i4 from "@progress/kendo-angular-common";
|
|
10
|
+
import * as i5 from "./shared.module";
|
|
11
|
+
import * as i6 from "./shared/input-separator.component";
|
|
12
|
+
import * as i7 from "./shared/textarea.directive";
|
|
13
|
+
/**
|
|
14
|
+
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
15
|
+
* definition for the TextArea component.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```ts-no-run
|
|
20
|
+
* // Import the TextArea module
|
|
21
|
+
* import { TextAreaModule } from '@progress/kendo-angular-inputs';
|
|
22
|
+
*
|
|
23
|
+
* // The browser platform with a compiler
|
|
24
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
25
|
+
*
|
|
26
|
+
* import { NgModule } from '@angular/core';
|
|
27
|
+
*
|
|
28
|
+
* // Import the app component
|
|
29
|
+
* import { AppComponent } from './app.component';
|
|
30
|
+
*
|
|
31
|
+
* // Define the app module
|
|
32
|
+
* _@NgModule({
|
|
33
|
+
* declarations: [AppComponent], // declare app component
|
|
34
|
+
* imports: [BrowserModule, TextAreaModule], // import TextArea module
|
|
35
|
+
* bootstrap: [AppComponent]
|
|
36
|
+
* })
|
|
37
|
+
* export class AppModule {}
|
|
38
|
+
*
|
|
39
|
+
* // Compile and launch the module
|
|
40
|
+
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare class TextAreaModule {
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaModule, never>;
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TextAreaModule, [typeof i1.TextAreaComponent, typeof i2.TextAreaSuffixComponent], [typeof i3.CommonModule, typeof i4.EventsModule, typeof i5.SharedModule], [typeof i1.TextAreaComponent, typeof i4.EventsModule, typeof i2.TextAreaSuffixComponent, typeof i6.InputSeparatorComponent, typeof i7.TextAreaDirective]>;
|
|
47
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TextAreaModule>;
|
|
48
|
+
}
|