@progress/kendo-angular-inputs 17.0.0-develop.9 → 17.0.1-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/checkbox.directive.d.ts +1 -1
- package/checkbox/checked-state.d.ts +1 -1
- package/colorpicker/color-contrast-svg.component.d.ts +1 -1
- package/colorpicker/color-gradient-numeric-label.directive.d.ts +1 -1
- package/colorpicker/color-gradient.component.d.ts +1 -1
- package/colorpicker/color-input.component.d.ts +1 -1
- package/colorpicker/color-palette.component.d.ts +1 -1
- package/colorpicker/colorpicker.component.d.ts +1 -1
- package/colorpicker/contrast-validation.component.d.ts +1 -1
- package/colorpicker/contrast.component.d.ts +1 -1
- package/colorpicker/flatcolorpicker-actions.component.d.ts +1 -1
- package/colorpicker/flatcolorpicker-header.component.d.ts +1 -1
- package/colorpicker/flatcolorpicker.component.d.ts +1 -1
- package/colorpicker/localization/messages.d.ts +1 -1
- package/colorpicker/models/actions-layout.d.ts +1 -1
- package/colorpicker/models/colorpicker-view.d.ts +1 -1
- package/colorpicker/models/output-format.d.ts +1 -1
- package/common/models/fillmode.d.ts +1 -1
- package/common/models/rounded.d.ts +2 -2
- package/common/models/size.d.ts +1 -1
- package/common/models/type.d.ts +1 -1
- package/common/radio-checkbox.base.d.ts +1 -1
- package/common/utils.d.ts +1 -1
- package/{esm2020 → esm2022}/checkbox/checkbox.component.mjs +49 -44
- package/{esm2020 → esm2022}/checkbox/checkbox.directive.mjs +12 -10
- package/{esm2020 → esm2022}/checkbox.module.mjs +4 -4
- package/{esm2020 → esm2022}/colorpicker/color-contrast-svg.component.mjs +13 -7
- package/{esm2020 → esm2022}/colorpicker/color-gradient-numeric-label.directive.mjs +6 -3
- package/{esm2020 → esm2022}/colorpicker/color-gradient.component.mjs +142 -125
- package/{esm2020 → esm2022}/colorpicker/color-input.component.mjs +69 -49
- package/{esm2020 → esm2022}/colorpicker/color-palette.component.mjs +129 -98
- package/{esm2020 → esm2022}/colorpicker/colorpicker.component.mjs +211 -158
- package/{esm2020 → esm2022}/colorpicker/contrast-validation.component.mjs +10 -6
- package/{esm2020 → esm2022}/colorpicker/contrast.component.mjs +9 -6
- package/{esm2020 → esm2022}/colorpicker/events/active-color-click-event.mjs +2 -1
- package/{esm2020 → esm2022}/colorpicker/events/cancel-event.mjs +4 -0
- package/{esm2020 → esm2022}/colorpicker/flatcolorpicker-actions.component.mjs +11 -8
- package/{esm2020 → esm2022}/colorpicker/flatcolorpicker-header.component.mjs +23 -13
- package/{esm2020 → esm2022}/colorpicker/flatcolorpicker.component.mjs +155 -127
- package/{esm2020 → esm2022}/colorpicker/localization/colorgradient-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/colorpicker/localization/colorpalette-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/colorpicker/localization/colorpicker-localization.service.mjs +3 -3
- package/{esm2020 → esm2022}/colorpicker/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/colorpicker/localization/flatcolorpicker-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/colorpicker/localization/localized-colorpicker-messages.directive.mjs +9 -8
- package/esm2022/colorpicker/localization/messages.mjs +183 -0
- package/{esm2020 → esm2022}/colorpicker/services/color-palette.service.mjs +4 -6
- package/{esm2020 → esm2022}/colorpicker/services/flatcolorpicker.service.mjs +3 -3
- package/{esm2020 → esm2022}/colorpicker.module.mjs +4 -4
- package/{esm2020 → esm2022}/common/radio-checkbox.base.mjs +80 -56
- package/{esm2020 → esm2022}/formfield/error.component.mjs +18 -20
- package/{esm2020 → esm2022}/formfield/formfield.component.mjs +67 -55
- package/{esm2020 → esm2022}/formfield/hint.component.mjs +17 -19
- package/{esm2020 → esm2022}/formfield.module.mjs +4 -4
- package/{esm2020 → esm2022}/index.mjs +0 -1
- package/esm2022/inputs.module.mjs +96 -0
- package/{esm2020 → esm2022}/maskedtextbox/maskedtextbox.component.mjs +263 -223
- package/{esm2020 → esm2022}/maskedtextbox/masking.service.mjs +12 -14
- package/{esm2020 → esm2022}/maskedtextbox/parsing/parsers.mjs +1 -0
- package/{esm2020 → esm2022}/maskedtextbox/parsing/result.mjs +3 -0
- package/{esm2020 → esm2022}/maskedtextbox/parsing/stream.mjs +4 -2
- package/{esm2020 → esm2022}/maskedtextbox.module.mjs +7 -7
- package/{esm2020 → esm2022}/numerictextbox/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/numerictextbox/localization/localized-numerictextbox-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/numerictextbox/localization/messages.mjs +11 -3
- package/{esm2020 → esm2022}/numerictextbox/numerictextbox.component.mjs +367 -319
- package/{esm2020 → esm2022}/numerictextbox.module.mjs +7 -7
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/radiobutton/radiobutton.component.mjs +58 -51
- package/{esm2020 → esm2022}/radiobutton/radiobutton.directive.mjs +12 -10
- package/{esm2020 → esm2022}/radiobutton.module.mjs +4 -4
- package/{esm2020 → esm2022}/rangeslider/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/rangeslider/localization/localized-rangeslider-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/rangeslider/localization/messages.mjs +11 -3
- package/{esm2020 → esm2022}/rangeslider/rangeslider-model.mjs +2 -0
- package/{esm2020 → esm2022}/rangeslider/rangeslider.component.mjs +117 -101
- package/{esm2020 → esm2022}/rangeslider.module.mjs +4 -4
- package/{esm2020 → esm2022}/rating/directives/rating-hovered-item.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rating/directives/rating-item.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rating/directives/rating-selected-item.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rating/rating.component.mjs +96 -76
- package/{esm2020 → esm2022}/rating.module.mjs +4 -4
- package/{esm2020 → esm2022}/shared/input-separator.component.mjs +10 -12
- package/{esm2020 → esm2022}/shared/shared-events.directive.mjs +13 -7
- package/{esm2020 → esm2022}/shared/textarea.directive.mjs +66 -52
- package/{esm2020 → esm2022}/signature/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/signature/localization/localized-signature-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/signature/localization/messages.mjs +19 -3
- package/{esm2020 → esm2022}/signature/signature.component.mjs +205 -151
- package/{esm2020 → esm2022}/signature.module.mjs +4 -4
- package/{esm2020 → esm2022}/slider/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/slider/localization/localized-slider-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/slider/localization/messages.mjs +15 -3
- package/{esm2020 → esm2022}/slider/slider-model.mjs +1 -0
- package/{esm2020 → esm2022}/slider/slider.component.mjs +121 -99
- package/{esm2020 → esm2022}/slider.module.mjs +4 -4
- package/{esm2020 → esm2022}/sliders-common/label-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/sliders-common/slider-base.mjs +112 -90
- package/{esm2020 → esm2022}/sliders-common/slider-model.base.mjs +6 -0
- package/{esm2020 → esm2022}/sliders-common/slider-ticks.component.mjs +19 -11
- package/{esm2020 → esm2022}/switch/events/blur-event.mjs +4 -0
- package/{esm2020 → esm2022}/switch/events/focus-event.mjs +4 -0
- package/{esm2020 → esm2022}/switch/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/switch/localization/localized-switch-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/switch/localization/messages.mjs +11 -3
- package/{esm2020 → esm2022}/switch/switch.component.mjs +125 -106
- package/{esm2020 → esm2022}/switch.module.mjs +4 -4
- package/esm2022/text-fields-common/text-fields-base.mjs +150 -0
- package/{esm2020 → esm2022}/textarea/textarea-prefix.component.mjs +12 -14
- package/{esm2020 → esm2022}/textarea/textarea-suffix.component.mjs +12 -14
- package/{esm2020 → esm2022}/textarea/textarea.component.mjs +173 -144
- package/{esm2020 → esm2022}/textarea.module.mjs +7 -7
- package/{esm2020 → esm2022}/textbox/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/textbox/localization/localized-textbox-messages.directive.mjs +9 -8
- package/{esm2020 → esm2022}/textbox/localization/messages.mjs +7 -3
- package/{esm2020 → esm2022}/textbox/textbox-prefix.directive.mjs +8 -7
- package/{esm2020 → esm2022}/textbox/textbox-suffix.directive.mjs +8 -7
- package/{esm2020 → esm2022}/textbox/textbox.component.mjs +286 -204
- package/{esm2020 → esm2022}/textbox/textbox.directive.mjs +36 -33
- package/{esm2020 → esm2022}/textbox.module.mjs +7 -7
- package/{fesm2020 → fesm2022}/progress-kendo-angular-inputs.mjs +3718 -2910
- package/formfield/error.component.d.ts +1 -1
- package/formfield/formfield.component.d.ts +1 -1
- package/formfield/hint.component.d.ts +1 -1
- package/formfield/models/message-align.d.ts +1 -1
- package/formfield/models/orientation.d.ts +1 -1
- package/formfield/models/show-options.d.ts +1 -1
- package/index.d.ts +0 -1
- package/inputs.module.d.ts +1 -1
- package/maskedtextbox/maskedtextbox.component.d.ts +1 -1
- package/maskedtextbox.module.d.ts +1 -1
- package/numerictextbox/localization/messages.d.ts +1 -1
- package/numerictextbox/numerictextbox.component.d.ts +1 -1
- package/numerictextbox.module.d.ts +1 -1
- package/package.json +20 -26
- package/radiobutton/radiobutton.component.d.ts +1 -1
- package/radiobutton/radiobutton.directive.d.ts +1 -1
- package/rangeslider/localization/messages.d.ts +1 -1
- package/rangeslider/rangeslider-model.d.ts +0 -1
- package/rangeslider/rangeslider-value.type.d.ts +1 -1
- package/rangeslider/rangeslider.component.d.ts +1 -1
- package/rating/models/precision.d.ts +1 -1
- package/rating/models/selection.d.ts +1 -1
- package/rating/rating.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +1 -1
- package/shared/input-separator.component.d.ts +1 -1
- package/shared/shared-events.directive.d.ts +1 -1
- package/shared/textarea.directive.d.ts +1 -1
- package/signature/localization/messages.d.ts +1 -1
- package/signature/signature.component.d.ts +1 -1
- package/slider/localization/messages.d.ts +1 -1
- package/slider/slider-model.d.ts +0 -1
- package/slider/slider.component.d.ts +1 -1
- package/sliders-common/slider-base.d.ts +1 -1
- package/sliders-common/slider-ticks.component.d.ts +1 -1
- package/sliders-common/title-callback.d.ts +1 -1
- package/switch/localization/messages.d.ts +1 -1
- package/switch/switch.component.d.ts +1 -1
- package/text-fields-common/text-fields-base.d.ts +1 -1
- package/textarea/models/adornments-orientation.d.ts +1 -1
- package/textarea/models/flow.d.ts +1 -1
- package/textarea/models/resize.d.ts +1 -1
- package/textarea/textarea-prefix.component.d.ts +1 -1
- package/textarea/textarea-suffix.component.d.ts +1 -1
- package/textarea/textarea.component.d.ts +1 -1
- package/textarea.module.d.ts +1 -1
- package/textbox/localization/messages.d.ts +1 -1
- package/textbox/models/icon-show-options.d.ts +1 -1
- package/textbox/textbox-prefix.directive.d.ts +1 -1
- package/textbox/textbox-suffix.directive.d.ts +1 -1
- package/textbox/textbox.component.d.ts +1 -1
- package/textbox/textbox.directive.d.ts +1 -1
- package/textbox.module.d.ts +1 -1
- package/esm2020/colorpicker/localization/messages.mjs +0 -75
- package/esm2020/inputs.module.mjs +0 -96
- package/esm2020/shared.module.mjs +0 -32
- package/esm2020/text-fields-common/text-fields-base.mjs +0 -131
- package/fesm2015/progress-kendo-angular-inputs.mjs +0 -17268
- package/shared.module.d.ts +0 -19
- /package/{esm2020 → esm2022}/checkbox/checked-state.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/events/close-event.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/events/kendo-drag-event.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/events/open-event.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/events.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/actions-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/colorpicker-view.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/gradient-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/hsva.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/output-format.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/palette-presets.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/palette-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/popup-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/rgb.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/rgba.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/table-cell.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models/tile-size.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/models.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/utils/color-parser.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/utils/contrast-curve.mjs +0 -0
- /package/{esm2020 → esm2022}/colorpicker/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/common/dom-utils.mjs +0 -0
- /package/{esm2020 → esm2022}/common/math.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/fillmode.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/rounded.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/size.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/styling-classes.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models/type.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models.mjs +0 -0
- /package/{esm2020 → esm2022}/common/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/formfield/models/message-align.mjs +0 -0
- /package/{esm2020 → esm2022}/formfield/models/orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/formfield/models/show-options.mjs +0 -0
- /package/{esm2020 → esm2022}/maskedtextbox/parsing/combinators.mjs +0 -0
- /package/{esm2020 → esm2022}/numerictextbox/arrow-direction.mjs +0 -0
- /package/{esm2020 → esm2022}/numerictextbox/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/numerictextbox/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-inputs.mjs +0 -0
- /package/{esm2020 → esm2022}/rangeslider/rangeslider-value.type.mjs +0 -0
- /package/{esm2020 → esm2022}/rating/models/precision.mjs +0 -0
- /package/{esm2020 → esm2022}/rating/models/rating-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/rating/models/selection.mjs +0 -0
- /package/{esm2020 → esm2022}/shared/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/signature/events/close-event.mjs +0 -0
- /package/{esm2020 → esm2022}/signature/events/index.mjs +0 -0
- /package/{esm2020 → esm2022}/signature/events/open-event.mjs +0 -0
- /package/{esm2020 → esm2022}/signature/localization/index.mjs +0 -0
- /package/{esm2020 → esm2022}/sliders-common/sliders-util.mjs +0 -0
- /package/{esm2020 → esm2022}/sliders-common/title-callback.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/models/adornments-orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/models/flow.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/models/resize.mjs +0 -0
- /package/{esm2020 → esm2022}/textbox/models/icon-show-options.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/max.validator.mjs +0 -0
- /package/{esm2020 → esm2022}/validators/min.validator.mjs +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Input } from '@angular/core';
|
|
6
|
+
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class ColorPickerMessages extends ComponentMessages {
|
|
12
|
+
/**
|
|
13
|
+
* The aria-label applied to the ColorPalette component when the value is empty.
|
|
14
|
+
*/
|
|
15
|
+
colorPaletteNoColor;
|
|
16
|
+
/**
|
|
17
|
+
* The aria-label applied to the ColorGradient component when the value is empty.
|
|
18
|
+
*/
|
|
19
|
+
colorGradientNoColor;
|
|
20
|
+
/**
|
|
21
|
+
* The aria-label applied to the FlatColorPicker component when the value is empty.
|
|
22
|
+
*/
|
|
23
|
+
flatColorPickerNoColor;
|
|
24
|
+
/**
|
|
25
|
+
* The aria-label applied to the ColorPicker component when the value is empty.
|
|
26
|
+
*/
|
|
27
|
+
colorPickerNoColor;
|
|
28
|
+
/**
|
|
29
|
+
* The title for the gradient color drag handle chooser.
|
|
30
|
+
*/
|
|
31
|
+
colorGradientHandle;
|
|
32
|
+
/**
|
|
33
|
+
* The title for the clear button.
|
|
34
|
+
*/
|
|
35
|
+
clearButton;
|
|
36
|
+
/**
|
|
37
|
+
* The title for the hue slider handle.
|
|
38
|
+
*/
|
|
39
|
+
hueSliderHandle;
|
|
40
|
+
/**
|
|
41
|
+
* The title for the opacity slider handle.
|
|
42
|
+
*/
|
|
43
|
+
opacitySliderHandle;
|
|
44
|
+
/**
|
|
45
|
+
* The placeholder for the HEX color input.
|
|
46
|
+
*/
|
|
47
|
+
hexInputPlaceholder;
|
|
48
|
+
/**
|
|
49
|
+
* The placeholder for the red color input.
|
|
50
|
+
*/
|
|
51
|
+
redInputPlaceholder;
|
|
52
|
+
/**
|
|
53
|
+
* The placeholder for the green color input.
|
|
54
|
+
*/
|
|
55
|
+
greenInputPlaceholder;
|
|
56
|
+
/**
|
|
57
|
+
* The placeholder for the blue color input.
|
|
58
|
+
*/
|
|
59
|
+
blueInputPlaceholder;
|
|
60
|
+
/**
|
|
61
|
+
* The placeholder for the alpha input.
|
|
62
|
+
*/
|
|
63
|
+
alphaInputPlaceholder;
|
|
64
|
+
/**
|
|
65
|
+
* The aria-label attribute of the red color input.
|
|
66
|
+
*/
|
|
67
|
+
redChannelLabel;
|
|
68
|
+
/**
|
|
69
|
+
* The aria-label attribute of the green color input.
|
|
70
|
+
*/
|
|
71
|
+
greenChannelLabel;
|
|
72
|
+
/**
|
|
73
|
+
* The aria-label attribute of the blue color input.
|
|
74
|
+
*/
|
|
75
|
+
blueChannelLabel;
|
|
76
|
+
/**
|
|
77
|
+
* The aria-label attribute of the alpha color input.
|
|
78
|
+
*/
|
|
79
|
+
alphaChannelLabel;
|
|
80
|
+
/**
|
|
81
|
+
* The "Pass" message for the contrast tool.
|
|
82
|
+
*/
|
|
83
|
+
passContrast;
|
|
84
|
+
/**
|
|
85
|
+
* The "Fail" message for the contrast tool.
|
|
86
|
+
*/
|
|
87
|
+
failContrast;
|
|
88
|
+
/**
|
|
89
|
+
* The "Contrast ratio" message for the contrast tool.
|
|
90
|
+
*/
|
|
91
|
+
contrastRatio;
|
|
92
|
+
/**
|
|
93
|
+
* The message for the color preview pane.
|
|
94
|
+
*/
|
|
95
|
+
previewColor;
|
|
96
|
+
/**
|
|
97
|
+
* The message for the selected color pane.
|
|
98
|
+
*/
|
|
99
|
+
revertSelection;
|
|
100
|
+
/**
|
|
101
|
+
* The message for the gradient view button.
|
|
102
|
+
*/
|
|
103
|
+
gradientView;
|
|
104
|
+
/**
|
|
105
|
+
* The message for the palette view button.
|
|
106
|
+
*/
|
|
107
|
+
paletteView;
|
|
108
|
+
/**
|
|
109
|
+
* The message for the input format toggle button.
|
|
110
|
+
*/
|
|
111
|
+
formatButton;
|
|
112
|
+
/**
|
|
113
|
+
* The message for the Apply action button.
|
|
114
|
+
*/
|
|
115
|
+
applyButton;
|
|
116
|
+
/**
|
|
117
|
+
* The message for the Cancel action button.
|
|
118
|
+
*/
|
|
119
|
+
cancelButton;
|
|
120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
121
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerMessages, selector: "kendo-colorpicker-messages-base", inputs: { colorPaletteNoColor: "colorPaletteNoColor", colorGradientNoColor: "colorGradientNoColor", flatColorPickerNoColor: "flatColorPickerNoColor", colorPickerNoColor: "colorPickerNoColor", colorGradientHandle: "colorGradientHandle", clearButton: "clearButton", hueSliderHandle: "hueSliderHandle", opacitySliderHandle: "opacitySliderHandle", hexInputPlaceholder: "hexInputPlaceholder", redInputPlaceholder: "redInputPlaceholder", greenInputPlaceholder: "greenInputPlaceholder", blueInputPlaceholder: "blueInputPlaceholder", alphaInputPlaceholder: "alphaInputPlaceholder", redChannelLabel: "redChannelLabel", greenChannelLabel: "greenChannelLabel", blueChannelLabel: "blueChannelLabel", alphaChannelLabel: "alphaChannelLabel", passContrast: "passContrast", failContrast: "failContrast", contrastRatio: "contrastRatio", previewColor: "previewColor", revertSelection: "revertSelection", gradientView: "gradientView", paletteView: "paletteView", formatButton: "formatButton", applyButton: "applyButton", cancelButton: "cancelButton" }, usesInheritance: true, ngImport: i0 });
|
|
122
|
+
}
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerMessages, decorators: [{
|
|
124
|
+
type: Directive,
|
|
125
|
+
args: [{
|
|
126
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
127
|
+
selector: 'kendo-colorpicker-messages-base'
|
|
128
|
+
}]
|
|
129
|
+
}], propDecorators: { colorPaletteNoColor: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], colorGradientNoColor: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}], flatColorPickerNoColor: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}], colorPickerNoColor: [{
|
|
136
|
+
type: Input
|
|
137
|
+
}], colorGradientHandle: [{
|
|
138
|
+
type: Input
|
|
139
|
+
}], clearButton: [{
|
|
140
|
+
type: Input
|
|
141
|
+
}], hueSliderHandle: [{
|
|
142
|
+
type: Input
|
|
143
|
+
}], opacitySliderHandle: [{
|
|
144
|
+
type: Input
|
|
145
|
+
}], hexInputPlaceholder: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], redInputPlaceholder: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], greenInputPlaceholder: [{
|
|
150
|
+
type: Input
|
|
151
|
+
}], blueInputPlaceholder: [{
|
|
152
|
+
type: Input
|
|
153
|
+
}], alphaInputPlaceholder: [{
|
|
154
|
+
type: Input
|
|
155
|
+
}], redChannelLabel: [{
|
|
156
|
+
type: Input
|
|
157
|
+
}], greenChannelLabel: [{
|
|
158
|
+
type: Input
|
|
159
|
+
}], blueChannelLabel: [{
|
|
160
|
+
type: Input
|
|
161
|
+
}], alphaChannelLabel: [{
|
|
162
|
+
type: Input
|
|
163
|
+
}], passContrast: [{
|
|
164
|
+
type: Input
|
|
165
|
+
}], failContrast: [{
|
|
166
|
+
type: Input
|
|
167
|
+
}], contrastRatio: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], previewColor: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], revertSelection: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], gradientView: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], paletteView: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], formatButton: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], applyButton: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], cancelButton: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}] } });
|
|
@@ -9,9 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class ColorPaletteService {
|
|
12
|
-
|
|
13
|
-
this.colorRows = [];
|
|
14
|
-
}
|
|
12
|
+
colorRows = [];
|
|
15
13
|
setColorMatrix(palette, columns) {
|
|
16
14
|
this.colorRows = [];
|
|
17
15
|
if (!(isPresent(palette) && palette.length)) {
|
|
@@ -59,9 +57,9 @@ export class ColorPaletteService {
|
|
|
59
57
|
}
|
|
60
58
|
return index;
|
|
61
59
|
}
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPaletteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
61
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPaletteService });
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
ColorPaletteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPaletteService });
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPaletteService, decorators: [{
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPaletteService, decorators: [{
|
|
66
64
|
type: Injectable
|
|
67
65
|
}] });
|
|
@@ -31,9 +31,9 @@ export class FlatColorPickerService {
|
|
|
31
31
|
height: tileSize.height ? tileSize.height : tileSize.width
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FlatColorPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FlatColorPickerService });
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
FlatColorPickerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatColorPickerService });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FlatColorPickerService, decorators: [{
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FlatColorPickerService, decorators: [{
|
|
38
38
|
type: Injectable
|
|
39
39
|
}] });
|
|
@@ -19,11 +19,11 @@ import * as i5 from "./colorpicker/color-palette.component";
|
|
|
19
19
|
* definition for the ColorPicker.
|
|
20
20
|
*/
|
|
21
21
|
export class ColorPickerModule {
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerModule, imports: [i1.ColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i3.FlatColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i4.ColorGradientComponent, i2.ColorPickerCustomMessagesComponent, i5.ColorPaletteComponent, i2.ColorPickerCustomMessagesComponent], exports: [i1.ColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i3.FlatColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i4.ColorGradientComponent, i2.ColorPickerCustomMessagesComponent, i5.ColorPaletteComponent, i2.ColorPickerCustomMessagesComponent] });
|
|
24
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerModule, providers: [PopupService, IconsService, ResizeBatchService], imports: [i1.ColorPickerComponent, i3.FlatColorPickerComponent, i4.ColorGradientComponent] });
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, imports: [i1.ColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i3.FlatColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i4.ColorGradientComponent, i2.ColorPickerCustomMessagesComponent, i5.ColorPaletteComponent, i2.ColorPickerCustomMessagesComponent], exports: [i1.ColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i3.FlatColorPickerComponent, i2.ColorPickerCustomMessagesComponent, i4.ColorGradientComponent, i2.ColorPickerCustomMessagesComponent, i5.ColorPaletteComponent, i2.ColorPickerCustomMessagesComponent] });
|
|
25
|
-
ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, providers: [PopupService, IconsService, ResizeBatchService], imports: [KENDO_COLORPICKER, KENDO_FLATCOLORPICKER, KENDO_COLORGRADIENT, KENDO_COLORPALETTE] });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerModule, decorators: [{
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerModule, decorators: [{
|
|
27
27
|
type: NgModule,
|
|
28
28
|
args: [{
|
|
29
29
|
imports: [...KENDO_COLORPICKER, ...KENDO_FLATCOLORPICKER, ...KENDO_COLORGRADIENT, ...KENDO_COLORPALETTE],
|
|
@@ -13,59 +13,36 @@ const DEFAULT_SIZE = 'medium';
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export class RadioCheckBoxBase {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* Fires each time the component gets blurred.
|
|
47
|
-
*
|
|
48
|
-
* > To wire the event programmatically, use the `onBlur` property.
|
|
49
|
-
*/
|
|
50
|
-
this.onBlur = new EventEmitter();
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
this.handleInputBlur = () => {
|
|
55
|
-
this.cdr.markForCheck();
|
|
56
|
-
if (requiresZoneOnBlur(this.control)) {
|
|
57
|
-
this.ngZone.run(() => {
|
|
58
|
-
this.ngTouched();
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
this.focusChangedProgrammatically = false;
|
|
63
|
-
this.parsedAttributes = {};
|
|
64
|
-
this.ngChange = (_) => { };
|
|
65
|
-
this.ngTouched = () => { };
|
|
66
|
-
this._isFocused = false;
|
|
67
|
-
this._size = DEFAULT_SIZE;
|
|
68
|
-
}
|
|
16
|
+
componentType;
|
|
17
|
+
hostElement;
|
|
18
|
+
renderer;
|
|
19
|
+
cdr;
|
|
20
|
+
ngZone;
|
|
21
|
+
injector;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
focusableId = `k-${guid()}`;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the `title` attribute of the `input` element of the component.
|
|
28
|
+
*/
|
|
29
|
+
title;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the `name` attribute for the component.
|
|
32
|
+
*/
|
|
33
|
+
name;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the disabled state of the component.
|
|
36
|
+
*
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
disabled = false;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the `tabindex` of the component.
|
|
42
|
+
*
|
|
43
|
+
* @default 0
|
|
44
|
+
*/
|
|
45
|
+
tabindex = 0;
|
|
69
46
|
/**
|
|
70
47
|
* @hidden
|
|
71
48
|
*/
|
|
@@ -75,6 +52,10 @@ export class RadioCheckBoxBase {
|
|
|
75
52
|
get tabIndex() {
|
|
76
53
|
return this.tabindex;
|
|
77
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Provides a value for the component.
|
|
57
|
+
*/
|
|
58
|
+
value;
|
|
78
59
|
/**
|
|
79
60
|
* The size property specifies the width and height of the component.
|
|
80
61
|
*
|
|
@@ -113,6 +94,18 @@ export class RadioCheckBoxBase {
|
|
|
113
94
|
ngOnInit() {
|
|
114
95
|
this.control = this.injector.get(NgControl, null);
|
|
115
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Fires each time the user focuses the component.
|
|
99
|
+
*
|
|
100
|
+
* > To wire the event programmatically, use the `onFocus` property.
|
|
101
|
+
*/
|
|
102
|
+
onFocus = new EventEmitter();
|
|
103
|
+
/**
|
|
104
|
+
* Fires each time the component gets blurred.
|
|
105
|
+
*
|
|
106
|
+
* > To wire the event programmatically, use the `onBlur` property.
|
|
107
|
+
*/
|
|
108
|
+
onBlur = new EventEmitter();
|
|
116
109
|
/**
|
|
117
110
|
* Focuses the component.
|
|
118
111
|
*/
|
|
@@ -137,6 +130,17 @@ export class RadioCheckBoxBase {
|
|
|
137
130
|
this.isFocused = false;
|
|
138
131
|
this.focusChangedProgrammatically = false;
|
|
139
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* @hidden
|
|
135
|
+
*/
|
|
136
|
+
handleInputBlur = () => {
|
|
137
|
+
this.cdr.markForCheck();
|
|
138
|
+
if (requiresZoneOnBlur(this.control)) {
|
|
139
|
+
this.ngZone.run(() => {
|
|
140
|
+
this.ngTouched();
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
};
|
|
140
144
|
/**
|
|
141
145
|
* @hidden
|
|
142
146
|
*/
|
|
@@ -184,6 +188,10 @@ export class RadioCheckBoxBase {
|
|
|
184
188
|
get isControlInvalid() {
|
|
185
189
|
return this.control && this.control.touched && !this.control.valid;
|
|
186
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Represents the visible `input` element.
|
|
193
|
+
*/
|
|
194
|
+
input;
|
|
187
195
|
/**
|
|
188
196
|
* @hidden
|
|
189
197
|
*/
|
|
@@ -216,7 +224,23 @@ export class RadioCheckBoxBase {
|
|
|
216
224
|
this.cdr.markForCheck();
|
|
217
225
|
this.disabled = isDisabled;
|
|
218
226
|
}
|
|
227
|
+
control;
|
|
228
|
+
focusChangedProgrammatically = false;
|
|
219
229
|
get defaultAttributes() { return null; }
|
|
230
|
+
parsedAttributes = {};
|
|
231
|
+
_inputAttributes;
|
|
232
|
+
ngChange = (_) => { };
|
|
233
|
+
ngTouched = () => { };
|
|
234
|
+
_isFocused = false;
|
|
235
|
+
_size = DEFAULT_SIZE;
|
|
236
|
+
constructor(componentType, hostElement, renderer, cdr, ngZone, injector) {
|
|
237
|
+
this.componentType = componentType;
|
|
238
|
+
this.hostElement = hostElement;
|
|
239
|
+
this.renderer = renderer;
|
|
240
|
+
this.cdr = cdr;
|
|
241
|
+
this.ngZone = ngZone;
|
|
242
|
+
this.injector = injector;
|
|
243
|
+
}
|
|
220
244
|
/**
|
|
221
245
|
* @hidden
|
|
222
246
|
*/
|
|
@@ -237,10 +261,10 @@ export class RadioCheckBoxBase {
|
|
|
237
261
|
setInputAttributes() {
|
|
238
262
|
setHTMLAttributes(this.parsedAttributes, this.renderer, this.input.nativeElement, this.ngZone);
|
|
239
263
|
}
|
|
264
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioCheckBoxBase, deps: [{ token: COMPONENT_TYPE }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RadioCheckBoxBase, selector: "ng-component", inputs: { focusableId: "focusableId", title: "title", name: "name", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", value: "value", size: "size", inputAttributes: "inputAttributes" }, outputs: { onFocus: "focus", onBlur: "blur" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: '', isInline: true });
|
|
240
266
|
}
|
|
241
|
-
|
|
242
|
-
RadioCheckBoxBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RadioCheckBoxBase, selector: "ng-component", inputs: { focusableId: "focusableId", title: "title", name: "name", disabled: "disabled", tabindex: "tabindex", tabIndex: "tabIndex", value: "value", size: "size", inputAttributes: "inputAttributes" }, outputs: { onFocus: "focus", onBlur: "blur" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: '', isInline: true });
|
|
243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RadioCheckBoxBase, decorators: [{
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RadioCheckBoxBase, decorators: [{
|
|
244
268
|
type: Component,
|
|
245
269
|
args: [{
|
|
246
270
|
template: ''
|
|
@@ -10,22 +10,20 @@ let serial = 0;
|
|
|
10
10
|
* a Kendo control or native HTML form-bound component after a validation.
|
|
11
11
|
*/
|
|
12
12
|
export class ErrorComponent {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.roleAttribute = 'alert';
|
|
28
|
-
}
|
|
13
|
+
hostClass = true;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the alignment of the Error message.
|
|
16
|
+
*
|
|
17
|
+
* The possible values are:
|
|
18
|
+
* * (Default) `start`
|
|
19
|
+
* * `end`
|
|
20
|
+
*/
|
|
21
|
+
align = 'start';
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
id = `kendo-error-${serial++}`;
|
|
26
|
+
roleAttribute = 'alert';
|
|
29
27
|
get startClass() {
|
|
30
28
|
return this.align === 'start';
|
|
31
29
|
}
|
|
@@ -35,12 +33,12 @@ export class ErrorComponent {
|
|
|
35
33
|
get idAttribute() {
|
|
36
34
|
return this.id;
|
|
37
35
|
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ErrorComponent, isStandalone: true, selector: "kendo-formerror", inputs: { align: "align" }, host: { properties: { "class.k-form-error": "this.hostClass", "attr.role": "this.roleAttribute", "class.k-text-start": "this.startClass", "class.k-text-end": "this.endClass", "attr.id": "this.idAttribute" } }, ngImport: i0, template: `
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ErrorComponent, isStandalone: true, selector: "kendo-formerror", inputs: { align: "align" }, host: { properties: { "class.k-form-error": "this.hostClass", "attr.role": "this.roleAttribute", "class.k-text-start": "this.startClass", "class.k-text-end": "this.endClass", "attr.id": "this.idAttribute" } }, ngImport: i0, template: `
|
|
41
38
|
<ng-content></ng-content>
|
|
42
39
|
`, isInline: true });
|
|
43
|
-
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
44
42
|
type: Component,
|
|
45
43
|
args: [{
|
|
46
44
|
selector: 'kendo-formerror',
|
|
@@ -19,51 +19,14 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
19
19
|
* Applies styling and behavior rules.
|
|
20
20
|
*/
|
|
21
21
|
export class FormFieldComponent {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
* The possible values are:
|
|
32
|
-
*
|
|
33
|
-
* * (Default) `initial`—Allows displaying hints when the form-bound component state is
|
|
34
|
-
* `valid` or `untouched` and `pristine`.
|
|
35
|
-
* * `always`—Allows full control over the visibility of the hints.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
this.showHints = 'initial';
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the layout orientation of the form field.
|
|
41
|
-
*
|
|
42
|
-
* * The possible values are:
|
|
43
|
-
*
|
|
44
|
-
* * (Default) `vertical`
|
|
45
|
-
* * `horizontal`
|
|
46
|
-
*/
|
|
47
|
-
this.orientation = 'vertical';
|
|
48
|
-
/**
|
|
49
|
-
* Specifies when the Error messages will be shown.
|
|
50
|
-
*
|
|
51
|
-
* The possible values are:
|
|
52
|
-
*
|
|
53
|
-
* * (Default) `initial`—Allows displaying errors when the form-bound component state is
|
|
54
|
-
* `invalid` and `touched` or `dirty`.
|
|
55
|
-
* * `always`—Allows full control over the visibility of the errors.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
this.showErrors = 'initial';
|
|
59
|
-
this.subscriptions = new Subscription();
|
|
60
|
-
this.rtl = false;
|
|
61
|
-
validatePackage(packageMetadata);
|
|
62
|
-
this.subscriptions.add(this.localizationService.changes.subscribe(({ rtl }) => {
|
|
63
|
-
this.rtl = rtl;
|
|
64
|
-
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
22
|
+
renderer;
|
|
23
|
+
localizationService;
|
|
24
|
+
hostElement;
|
|
25
|
+
hostClass = true;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
direction;
|
|
67
30
|
get errorClass() {
|
|
68
31
|
if (!this.control) {
|
|
69
32
|
return false;
|
|
@@ -86,6 +49,42 @@ export class FormFieldComponent {
|
|
|
86
49
|
this.validateFormControl(formControls);
|
|
87
50
|
this.control = formControls.first;
|
|
88
51
|
}
|
|
52
|
+
controlElementRefs;
|
|
53
|
+
kendoInput;
|
|
54
|
+
errorChildren;
|
|
55
|
+
hintChildren;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* Specifies when the Hint messages will be shown.
|
|
59
|
+
*
|
|
60
|
+
* The possible values are:
|
|
61
|
+
*
|
|
62
|
+
* * (Default) `initial`—Allows displaying hints when the form-bound component state is
|
|
63
|
+
* `valid` or `untouched` and `pristine`.
|
|
64
|
+
* * `always`—Allows full control over the visibility of the hints.
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
showHints = 'initial';
|
|
68
|
+
/**
|
|
69
|
+
* Specifies the layout orientation of the form field.
|
|
70
|
+
*
|
|
71
|
+
* * The possible values are:
|
|
72
|
+
*
|
|
73
|
+
* * (Default) `vertical`
|
|
74
|
+
* * `horizontal`
|
|
75
|
+
*/
|
|
76
|
+
orientation = 'vertical';
|
|
77
|
+
/**
|
|
78
|
+
* Specifies when the Error messages will be shown.
|
|
79
|
+
*
|
|
80
|
+
* The possible values are:
|
|
81
|
+
*
|
|
82
|
+
* * (Default) `initial`—Allows displaying errors when the form-bound component state is
|
|
83
|
+
* `invalid` and `touched` or `dirty`.
|
|
84
|
+
* * `always`—Allows full control over the visibility of the errors.
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
showErrors = 'initial';
|
|
89
88
|
/**
|
|
90
89
|
* @hidden
|
|
91
90
|
*/
|
|
@@ -104,6 +103,19 @@ export class FormFieldComponent {
|
|
|
104
103
|
get hasErrors() {
|
|
105
104
|
return this.showErrors === 'always' ? true : this.showErrorsInitial();
|
|
106
105
|
}
|
|
106
|
+
control;
|
|
107
|
+
subscriptions = new Subscription();
|
|
108
|
+
rtl = false;
|
|
109
|
+
constructor(renderer, localizationService, hostElement) {
|
|
110
|
+
this.renderer = renderer;
|
|
111
|
+
this.localizationService = localizationService;
|
|
112
|
+
this.hostElement = hostElement;
|
|
113
|
+
validatePackage(packageMetadata);
|
|
114
|
+
this.subscriptions.add(this.localizationService.changes.subscribe(({ rtl }) => {
|
|
115
|
+
this.rtl = rtl;
|
|
116
|
+
this.direction = this.rtl ? 'rtl' : 'ltr';
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
107
119
|
ngAfterViewInit() {
|
|
108
120
|
this.setDescription();
|
|
109
121
|
}
|
|
@@ -212,15 +224,14 @@ export class FormFieldComponent {
|
|
|
212
224
|
this.subscriptions.add(this.errorChildren.changes.subscribe(() => this.updateDescription()));
|
|
213
225
|
this.subscriptions.add(this.hintChildren.changes.subscribe(() => this.updateDescription()));
|
|
214
226
|
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
], queries: [{ propertyName: "kendoInput", first: true, predicate: KendoInput, descendants: true, static: true }, { propertyName: "formControls", predicate: NgControl, descendants: true }, { propertyName: "controlElementRefs", predicate: NgControl, descendants: true, read: ElementRef }, { propertyName: "errorChildren", predicate: ErrorComponent, descendants: true }, { propertyName: "hintChildren", predicate: HintComponent, descendants: true }], ngImport: i0, template: `
|
|
227
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormFieldComponent, deps: [{ token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
228
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormFieldComponent, isStandalone: true, selector: "kendo-formfield", inputs: { showHints: "showHints", orientation: "orientation", showErrors: "showErrors" }, host: { properties: { "class.k-form-field": "this.hostClass", "attr.dir": "this.direction", "class.k-form-field-error": "this.errorClass", "class.k-form-field-disabled": "this.disabledClass" } }, providers: [
|
|
229
|
+
LocalizationService,
|
|
230
|
+
{
|
|
231
|
+
provide: L10N_PREFIX,
|
|
232
|
+
useValue: 'kendo.formfield'
|
|
233
|
+
}
|
|
234
|
+
], queries: [{ propertyName: "kendoInput", first: true, predicate: KendoInput, descendants: true, static: true }, { propertyName: "formControls", predicate: NgControl, descendants: true }, { propertyName: "controlElementRefs", predicate: NgControl, descendants: true, read: ElementRef }, { propertyName: "errorChildren", predicate: ErrorComponent, descendants: true }, { propertyName: "hintChildren", predicate: HintComponent, descendants: true }], ngImport: i0, template: `
|
|
224
235
|
<ng-content select="label, kendo-label"></ng-content>
|
|
225
236
|
<div class="k-form-field-wrap">
|
|
226
237
|
<ng-content></ng-content>
|
|
@@ -228,7 +239,8 @@ FormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
|
|
|
228
239
|
<ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>
|
|
229
240
|
</div>
|
|
230
241
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
231
|
-
|
|
242
|
+
}
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
232
244
|
type: Component,
|
|
233
245
|
args: [{
|
|
234
246
|
selector: 'kendo-formfield',
|