@progress/kendo-angular-inputs 17.0.0-develop.4 → 17.0.0-develop.40
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/README.md +53 -166
- 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 +143 -126
- package/{esm2020 → esm2022}/colorpicker/color-input.component.mjs +70 -50
- package/{esm2020 → esm2022}/colorpicker/color-palette.component.mjs +129 -98
- package/{esm2020 → esm2022}/colorpicker/colorpicker.component.mjs +212 -159
- 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 +24 -14
- 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 +206 -152
- 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 +122 -100
- 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 +3724 -2916
- 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/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
|
@@ -13,37 +13,12 @@ import { SharedInputEventsDirective } from '../shared/shared-events.directive';
|
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
const DEFAULT_ROUNDED = 'medium';
|
|
15
15
|
export class CheckBoxComponent extends RadioCheckBoxBase {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.injector = injector;
|
|
23
|
-
this.hostClass = true;
|
|
24
|
-
/**
|
|
25
|
-
* Fires each time the inner input's checked state is changed.
|
|
26
|
-
* When the state of the component is programmatically changed to `ngModel` or `formControl`
|
|
27
|
-
* through its API or form binding, the `checkedStateChange` event is not triggered because it
|
|
28
|
-
* might cause a mix-up with the built-in mechanisms of the `ngModel` or `formControl` bindings.
|
|
29
|
-
*
|
|
30
|
-
* Used to provide a two-way binding for the `checkedState` property.
|
|
31
|
-
*/
|
|
32
|
-
this.checkedStateChange = new EventEmitter();
|
|
33
|
-
this._rounded = DEFAULT_ROUNDED;
|
|
34
|
-
this._checkedState = false;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
this.handleChange = ($event) => {
|
|
39
|
-
this.ngZone.run(() => {
|
|
40
|
-
this.checkedState = $event && $event.target && $event.target.checked;
|
|
41
|
-
this.checkedStateChange.emit(this.checkedState);
|
|
42
|
-
this.ngChange(this.checkedState);
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
validatePackage(packageMetadata);
|
|
46
|
-
}
|
|
16
|
+
renderer;
|
|
17
|
+
hostElement;
|
|
18
|
+
cdr;
|
|
19
|
+
ngZone;
|
|
20
|
+
injector;
|
|
21
|
+
hostClass = true;
|
|
47
22
|
/**
|
|
48
23
|
* Sets the checked state of the component.
|
|
49
24
|
*
|
|
@@ -79,6 +54,15 @@ export class CheckBoxComponent extends RadioCheckBoxBase {
|
|
|
79
54
|
get rounded() {
|
|
80
55
|
return this._rounded;
|
|
81
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Fires each time the inner input's checked state is changed.
|
|
59
|
+
* When the state of the component is programmatically changed to `ngModel` or `formControl`
|
|
60
|
+
* through its API or form binding, the `checkedStateChange` event is not triggered because it
|
|
61
|
+
* might cause a mix-up with the built-in mechanisms of the `ngModel` or `formControl` bindings.
|
|
62
|
+
*
|
|
63
|
+
* Used to provide a two-way binding for the `checkedState` property.
|
|
64
|
+
*/
|
|
65
|
+
checkedStateChange = new EventEmitter();
|
|
82
66
|
/**
|
|
83
67
|
* @hidden
|
|
84
68
|
*/
|
|
@@ -104,6 +88,17 @@ export class CheckBoxComponent extends RadioCheckBoxBase {
|
|
|
104
88
|
'aria-invalid': this.isControlInvalid
|
|
105
89
|
};
|
|
106
90
|
}
|
|
91
|
+
_rounded = DEFAULT_ROUNDED;
|
|
92
|
+
_checkedState = false;
|
|
93
|
+
constructor(renderer, hostElement, cdr, ngZone, injector) {
|
|
94
|
+
super('checkbox', hostElement, renderer, cdr, ngZone, injector);
|
|
95
|
+
this.renderer = renderer;
|
|
96
|
+
this.hostElement = hostElement;
|
|
97
|
+
this.cdr = cdr;
|
|
98
|
+
this.ngZone = ngZone;
|
|
99
|
+
this.injector = injector;
|
|
100
|
+
validatePackage(packageMetadata);
|
|
101
|
+
}
|
|
107
102
|
ngAfterViewInit() {
|
|
108
103
|
const stylingInputs = ['size', 'rounded'];
|
|
109
104
|
stylingInputs.forEach(input => {
|
|
@@ -111,24 +106,33 @@ export class CheckBoxComponent extends RadioCheckBoxBase {
|
|
|
111
106
|
});
|
|
112
107
|
this.input.nativeElement.indeterminate = this.checkedState === 'indeterminate';
|
|
113
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @hidden
|
|
111
|
+
*/
|
|
112
|
+
handleChange = ($event) => {
|
|
113
|
+
this.ngZone.run(() => {
|
|
114
|
+
this.checkedState = $event && $event.target && $event.target.checked;
|
|
115
|
+
this.checkedStateChange.emit(this.checkedState);
|
|
116
|
+
this.ngChange(this.checkedState);
|
|
117
|
+
});
|
|
118
|
+
};
|
|
114
119
|
/**
|
|
115
120
|
* @hidden
|
|
116
121
|
*/
|
|
117
122
|
writeValue(value) {
|
|
118
123
|
this.checkedState = value;
|
|
119
124
|
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
], exportAs: ["kendoCheckBox"], usesInheritance: true, ngImport: i0, template: `
|
|
125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
126
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CheckBoxComponent, isStandalone: true, selector: "kendo-checkbox", inputs: { checkedState: "checkedState", rounded: "rounded" }, outputs: { checkedStateChange: "checkedStateChange" }, host: { properties: { "class.k-checkbox-wrap": "this.hostClass" } }, providers: [
|
|
127
|
+
LocalizationService,
|
|
128
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.checkbox' },
|
|
129
|
+
{
|
|
130
|
+
provide: NG_VALUE_ACCESSOR,
|
|
131
|
+
useExisting: forwardRef(() => CheckBoxComponent),
|
|
132
|
+
multi: true
|
|
133
|
+
},
|
|
134
|
+
{ provide: KendoInput, useExisting: forwardRef(() => CheckBoxComponent) }
|
|
135
|
+
], exportAs: ["kendoCheckBox"], usesInheritance: true, ngImport: i0, template: `
|
|
132
136
|
<ng-container
|
|
133
137
|
kendoInputSharedEvents
|
|
134
138
|
[hostElement]="hostElement"
|
|
@@ -158,7 +162,8 @@ CheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
158
162
|
/>
|
|
159
163
|
</ng-container>
|
|
160
164
|
`, isInline: true, dependencies: [{ kind: "directive", type: SharedInputEventsDirective, selector: "[kendoInputSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
161
|
-
|
|
165
|
+
}
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxComponent, decorators: [{
|
|
162
167
|
type: Component,
|
|
163
168
|
args: [{
|
|
164
169
|
exportAs: 'kendoCheckBox',
|
|
@@ -17,13 +17,9 @@ const DEFAULT_ROUNDED = 'medium';
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export class CheckBoxDirective {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.kendoClass = true;
|
|
24
|
-
this._size = 'medium';
|
|
25
|
-
this._rounded = 'medium';
|
|
26
|
-
}
|
|
20
|
+
renderer;
|
|
21
|
+
hostElement;
|
|
22
|
+
kendoClass = true;
|
|
27
23
|
/**
|
|
28
24
|
* The size property specifies the width and height of the CheckBox
|
|
29
25
|
* ([see example]({% slug appearance_checkboxdirective %}#toc-size)).
|
|
@@ -60,6 +56,12 @@ export class CheckBoxDirective {
|
|
|
60
56
|
get rounded() {
|
|
61
57
|
return this._rounded;
|
|
62
58
|
}
|
|
59
|
+
_size = 'medium';
|
|
60
|
+
_rounded = 'medium';
|
|
61
|
+
constructor(renderer, hostElement) {
|
|
62
|
+
this.renderer = renderer;
|
|
63
|
+
this.hostElement = hostElement;
|
|
64
|
+
}
|
|
63
65
|
ngAfterViewInit() {
|
|
64
66
|
const stylingInputs = ['size', 'rounded'];
|
|
65
67
|
stylingInputs.forEach(input => {
|
|
@@ -76,10 +78,10 @@ export class CheckBoxDirective {
|
|
|
76
78
|
this.renderer.addClass(elem, classes.toAdd);
|
|
77
79
|
}
|
|
78
80
|
}
|
|
81
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
82
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CheckBoxDirective, isStandalone: true, selector: "input[kendoCheckBox]", inputs: { size: "size", rounded: "rounded" }, host: { properties: { "class.k-checkbox": "this.kendoClass" } }, ngImport: i0 });
|
|
79
83
|
}
|
|
80
|
-
|
|
81
|
-
CheckBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CheckBoxDirective, isStandalone: true, selector: "input[kendoCheckBox]", inputs: { size: "size", rounded: "rounded" }, host: { properties: { "class.k-checkbox": "this.kendoClass" } }, ngImport: i0 });
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CheckBoxDirective, decorators: [{
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxDirective, decorators: [{
|
|
83
85
|
type: Directive,
|
|
84
86
|
args: [{
|
|
85
87
|
selector: 'input[kendoCheckBox]',
|
|
@@ -40,11 +40,11 @@ import * as i2 from "./checkbox/checkbox.directive";
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
export class CheckBoxModule {
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
44
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxModule, imports: [i1.CheckBoxComponent, i2.CheckBoxDirective], exports: [i1.CheckBoxComponent, i2.CheckBoxDirective] });
|
|
45
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxModule });
|
|
43
46
|
}
|
|
44
|
-
|
|
45
|
-
CheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CheckBoxModule, imports: [i1.CheckBoxComponent, i2.CheckBoxDirective], exports: [i1.CheckBoxComponent, i2.CheckBoxDirective] });
|
|
46
|
-
CheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CheckBoxModule, imports: [i1.CheckBoxComponent] });
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CheckBoxModule, decorators: [{
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckBoxModule, decorators: [{
|
|
48
48
|
type: NgModule,
|
|
49
49
|
args: [{
|
|
50
50
|
imports: [...KENDO_CHECKBOX],
|
|
@@ -14,9 +14,15 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export class ColorContrastSvgComponent {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
hostClass = true;
|
|
18
|
+
wrapper;
|
|
19
|
+
hsva;
|
|
20
|
+
backgroundColor;
|
|
21
|
+
paths;
|
|
22
|
+
oldHsva;
|
|
23
|
+
oldH;
|
|
24
|
+
oldA;
|
|
25
|
+
metrics;
|
|
20
26
|
ngAfterViewInit() {
|
|
21
27
|
if (!isDocumentAvailable()) {
|
|
22
28
|
return;
|
|
@@ -71,12 +77,12 @@ export class ColorContrastSvgComponent {
|
|
|
71
77
|
}
|
|
72
78
|
return points;
|
|
73
79
|
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
ColorContrastSvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColorContrastSvgComponent, isStandalone: true, selector: "[kendoColorContrastSvg]", inputs: { wrapper: "wrapper", hsva: "hsva", backgroundColor: "backgroundColor" }, host: { properties: { "class.k-color-contrast-svg": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorContrastSvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorContrastSvgComponent, isStandalone: true, selector: "[kendoColorContrastSvg]", inputs: { wrapper: "wrapper", hsva: "hsva", backgroundColor: "backgroundColor" }, host: { properties: { "class.k-color-contrast-svg": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
77
82
|
<svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>
|
|
78
83
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
79
|
-
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorContrastSvgComponent, decorators: [{
|
|
80
86
|
type: Component,
|
|
81
87
|
args: [{
|
|
82
88
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
@@ -11,6 +11,9 @@ import * as i1 from "./../numerictextbox/numerictextbox.component";
|
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
13
|
export class NumericLabelDirective {
|
|
14
|
+
host;
|
|
15
|
+
kendoAdditionalNumericLabel;
|
|
16
|
+
localizationService;
|
|
14
17
|
constructor(host) {
|
|
15
18
|
this.host = host;
|
|
16
19
|
}
|
|
@@ -18,10 +21,10 @@ export class NumericLabelDirective {
|
|
|
18
21
|
const localizationToken = `${this.kendoAdditionalNumericLabel}ChannelLabel`;
|
|
19
22
|
this.host.numericInput.nativeElement.setAttribute('aria-label', this.localizationService.get(localizationToken));
|
|
20
23
|
}
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericLabelDirective, deps: [{ token: i1.NumericTextBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NumericLabelDirective, isStandalone: true, selector: "[kendoAdditionalNumericLabel]", inputs: { kendoAdditionalNumericLabel: "kendoAdditionalNumericLabel", localizationService: "localizationService" }, ngImport: i0 });
|
|
21
26
|
}
|
|
22
|
-
|
|
23
|
-
NumericLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: NumericLabelDirective, isStandalone: true, selector: "[kendoAdditionalNumericLabel]", inputs: { kendoAdditionalNumericLabel: "kendoAdditionalNumericLabel", localizationService: "localizationService" }, ngImport: i0 });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericLabelDirective, decorators: [{
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericLabelDirective, decorators: [{
|
|
25
28
|
type: Directive,
|
|
26
29
|
args: [{
|
|
27
30
|
selector: '[kendoAdditionalNumericLabel]',
|
|
@@ -32,108 +32,13 @@ let serial = 0;
|
|
|
32
32
|
* The ColorGradient is independently used by `kendo-colorpicker` and can be directly added to the page.
|
|
33
33
|
*/
|
|
34
34
|
export class ColorGradientComponent {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.hostClasses = true;
|
|
43
|
-
this.ariaRole = 'textbox';
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
this.id = `k-colorgradient-${serial++}`;
|
|
48
|
-
/**
|
|
49
|
-
* Defines whether the alpha slider will be displayed.
|
|
50
|
-
*
|
|
51
|
-
* @default true
|
|
52
|
-
*/
|
|
53
|
-
this.opacity = true;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the disabled state of the ColorGradient. To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_colorgradient#toc-managing-the-colorgradient-disabled-state-in-reactive-forms).
|
|
56
|
-
*
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
this.disabled = false;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the read-only state of the ColorGradient.
|
|
62
|
-
*
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
this.readonly = false;
|
|
66
|
-
/**
|
|
67
|
-
* Specifies whether the ColorGradient should display a 'Clear color' button.
|
|
68
|
-
*
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
|
-
this.clearButton = false;
|
|
72
|
-
/**
|
|
73
|
-
* Determines the delay time (in milliseconds) before the value is changed on handle drag. A value of 0 indicates no delay.
|
|
74
|
-
*
|
|
75
|
-
* @default 0
|
|
76
|
-
*/
|
|
77
|
-
this.delay = 0;
|
|
78
|
-
/**
|
|
79
|
-
* Specifies the output format of the ColorGradientComponent.
|
|
80
|
-
* The input value may be in a different format, but it will be parsed into the output `format`
|
|
81
|
-
* after the component processes it.
|
|
82
|
-
*
|
|
83
|
-
* The supported values are:
|
|
84
|
-
* * (Default) `rgba`
|
|
85
|
-
* * `hex`
|
|
86
|
-
*/
|
|
87
|
-
this.format = DEFAULT_OUTPUT_FORMAT;
|
|
88
|
-
/**
|
|
89
|
-
* Fires each time the user selects a new color.
|
|
90
|
-
*/
|
|
91
|
-
this.valueChange = new EventEmitter();
|
|
92
|
-
/**
|
|
93
|
-
* @hidden
|
|
94
|
-
*/
|
|
95
|
-
this.backgroundColor = DEFAULT_GRADIENT_BACKGROUND_COLOR;
|
|
96
|
-
/**
|
|
97
|
-
* @hidden
|
|
98
|
-
*
|
|
99
|
-
* Represents the currently selected `hue`, `saturation`, `value`, and `alpha` values.
|
|
100
|
-
* The values are initially set in `ngOnInit` or in `ngOnChanges` and are
|
|
101
|
-
* updated on moving the drag handle or the sliders.
|
|
102
|
-
*/
|
|
103
|
-
this.hsva = new BehaviorSubject({});
|
|
104
|
-
/**
|
|
105
|
-
* Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys.
|
|
106
|
-
*
|
|
107
|
-
* @default 5
|
|
108
|
-
*/
|
|
109
|
-
this.gradientSliderStep = DRAGHANDLE_MOVE_SPEED;
|
|
110
|
-
/**
|
|
111
|
-
* Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys while holding the shift key.
|
|
112
|
-
*
|
|
113
|
-
* @default 2
|
|
114
|
-
*/
|
|
115
|
-
this.gradientSliderSmallStep = DRAGHANDLE_MOVE_SPEED_SMALL_STEP;
|
|
116
|
-
/**
|
|
117
|
-
* @hidden
|
|
118
|
-
*/
|
|
119
|
-
this.internalNavigation = false;
|
|
120
|
-
/**
|
|
121
|
-
* @hidden
|
|
122
|
-
*/
|
|
123
|
-
this.dropletSlashIcon = dropletSlashIcon;
|
|
124
|
-
this._tabindex = 0;
|
|
125
|
-
this.listeners = [];
|
|
126
|
-
this.hueSliderTouched = false;
|
|
127
|
-
this.alphaSliderTouched = false;
|
|
128
|
-
this.updateValues = new Subject();
|
|
129
|
-
this.hsvHandleCoordinates = { x: 0, y: 0 };
|
|
130
|
-
this.notifyNgChanged = () => { };
|
|
131
|
-
this.notifyNgTouched = () => { };
|
|
132
|
-
validatePackage(packageMetadata);
|
|
133
|
-
this.dynamicRTLSubscription = localizationService.changes.subscribe(({ rtl }) => {
|
|
134
|
-
this.direction = rtl ? 'rtl' : 'ltr';
|
|
135
|
-
});
|
|
136
|
-
}
|
|
35
|
+
host;
|
|
36
|
+
ngZone;
|
|
37
|
+
renderer;
|
|
38
|
+
cdr;
|
|
39
|
+
localizationService;
|
|
40
|
+
injector;
|
|
41
|
+
hostClasses = true;
|
|
137
42
|
get readonlyAttribute() {
|
|
138
43
|
return this.readonly;
|
|
139
44
|
}
|
|
@@ -143,9 +48,11 @@ export class ColorGradientComponent {
|
|
|
143
48
|
get gradientId() {
|
|
144
49
|
return this.id;
|
|
145
50
|
}
|
|
51
|
+
direction;
|
|
146
52
|
get hostTabindex() {
|
|
147
53
|
return this.tabindex?.toString() || '0';
|
|
148
54
|
}
|
|
55
|
+
ariaRole = 'textbox';
|
|
149
56
|
get isControlInvalid() {
|
|
150
57
|
return (this.control?.invalid)?.toString();
|
|
151
58
|
}
|
|
@@ -178,6 +85,40 @@ export class ColorGradientComponent {
|
|
|
178
85
|
focusHandler(ev) {
|
|
179
86
|
this.internalNavigation = ev.target !== this.host.nativeElement;
|
|
180
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
id = `k-colorgradient-${serial++}`;
|
|
92
|
+
/**
|
|
93
|
+
* Defines whether the alpha slider will be displayed.
|
|
94
|
+
*
|
|
95
|
+
* @default true
|
|
96
|
+
*/
|
|
97
|
+
opacity = true;
|
|
98
|
+
/**
|
|
99
|
+
* Sets the disabled state of the ColorGradient. To learn how to disable the component in reactive forms, refer to the article on [Forms Support](slug:formssupport_colorgradient#toc-managing-the-colorgradient-disabled-state-in-reactive-forms).
|
|
100
|
+
*
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
disabled = false;
|
|
104
|
+
/**
|
|
105
|
+
* Sets the read-only state of the ColorGradient.
|
|
106
|
+
*
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
readonly = false;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies whether the ColorGradient should display a 'Clear color' button.
|
|
112
|
+
*
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
clearButton = false;
|
|
116
|
+
/**
|
|
117
|
+
* Determines the delay time (in milliseconds) before the value is changed on handle drag. A value of 0 indicates no delay.
|
|
118
|
+
*
|
|
119
|
+
* @default 0
|
|
120
|
+
*/
|
|
121
|
+
delay = 0;
|
|
181
122
|
/**
|
|
182
123
|
* Specifies the value of the initially selected color.
|
|
183
124
|
*/
|
|
@@ -215,6 +156,32 @@ export class ColorGradientComponent {
|
|
|
215
156
|
get tabindex() {
|
|
216
157
|
return !this.disabled ? this._tabindex : undefined;
|
|
217
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Specifies the output format of the ColorGradientComponent.
|
|
161
|
+
* The input value may be in a different format, but it will be parsed into the output `format`
|
|
162
|
+
* after the component processes it.
|
|
163
|
+
*
|
|
164
|
+
* The supported values are:
|
|
165
|
+
* * (Default) `rgba`
|
|
166
|
+
* * `hex`
|
|
167
|
+
*/
|
|
168
|
+
format = DEFAULT_OUTPUT_FORMAT;
|
|
169
|
+
/**
|
|
170
|
+
* Fires each time the user selects a new color.
|
|
171
|
+
*/
|
|
172
|
+
valueChange = new EventEmitter();
|
|
173
|
+
/**
|
|
174
|
+
* @hidden
|
|
175
|
+
*/
|
|
176
|
+
backgroundColor = DEFAULT_GRADIENT_BACKGROUND_COLOR;
|
|
177
|
+
/**
|
|
178
|
+
* @hidden
|
|
179
|
+
*
|
|
180
|
+
* Represents the currently selected `hue`, `saturation`, `value`, and `alpha` values.
|
|
181
|
+
* The values are initially set in `ngOnInit` or in `ngOnChanges` and are
|
|
182
|
+
* updated on moving the drag handle or the sliders.
|
|
183
|
+
*/
|
|
184
|
+
hsva = new BehaviorSubject({});
|
|
218
185
|
/**
|
|
219
186
|
* Indicates whether the ColorGradient or any of its content is focused.
|
|
220
187
|
*/
|
|
@@ -234,6 +201,41 @@ export class ColorGradientComponent {
|
|
|
234
201
|
}
|
|
235
202
|
return this.hsva.value.a * 100;
|
|
236
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys.
|
|
206
|
+
*
|
|
207
|
+
* @default 5
|
|
208
|
+
*/
|
|
209
|
+
gradientSliderStep = DRAGHANDLE_MOVE_SPEED;
|
|
210
|
+
/**
|
|
211
|
+
* Determines the step (in pixels) when moving the gradient drag handle using the keyboard arrow keys while holding the shift key.
|
|
212
|
+
*
|
|
213
|
+
* @default 2
|
|
214
|
+
*/
|
|
215
|
+
gradientSliderSmallStep = DRAGHANDLE_MOVE_SPEED_SMALL_STEP;
|
|
216
|
+
gradientDragHandle;
|
|
217
|
+
inputs;
|
|
218
|
+
alphaSlider;
|
|
219
|
+
gradientWrapper;
|
|
220
|
+
hsvRectangle;
|
|
221
|
+
/**
|
|
222
|
+
* @hidden
|
|
223
|
+
*/
|
|
224
|
+
internalNavigation = false;
|
|
225
|
+
/**
|
|
226
|
+
* @hidden
|
|
227
|
+
*/
|
|
228
|
+
dropletSlashIcon = dropletSlashIcon;
|
|
229
|
+
_value;
|
|
230
|
+
_tabindex = 0;
|
|
231
|
+
_contrastTool;
|
|
232
|
+
listeners = [];
|
|
233
|
+
hueSliderTouched = false;
|
|
234
|
+
alphaSliderTouched = false;
|
|
235
|
+
updateValues = new Subject();
|
|
236
|
+
changeRequestsSubscription;
|
|
237
|
+
dynamicRTLSubscription;
|
|
238
|
+
hsvHandleCoordinates = { x: 0, y: 0 };
|
|
237
239
|
get gradientRect() {
|
|
238
240
|
return this.gradientWrapper.nativeElement.getBoundingClientRect();
|
|
239
241
|
}
|
|
@@ -255,6 +257,19 @@ export class ColorGradientComponent {
|
|
|
255
257
|
get innerTabIndex() {
|
|
256
258
|
return this.internalNavigation ? 0 : -1;
|
|
257
259
|
}
|
|
260
|
+
control;
|
|
261
|
+
constructor(host, ngZone, renderer, cdr, localizationService, injector) {
|
|
262
|
+
this.host = host;
|
|
263
|
+
this.ngZone = ngZone;
|
|
264
|
+
this.renderer = renderer;
|
|
265
|
+
this.cdr = cdr;
|
|
266
|
+
this.localizationService = localizationService;
|
|
267
|
+
this.injector = injector;
|
|
268
|
+
validatePackage(packageMetadata);
|
|
269
|
+
this.dynamicRTLSubscription = localizationService.changes.subscribe(({ rtl }) => {
|
|
270
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
271
|
+
});
|
|
272
|
+
}
|
|
258
273
|
ngOnInit() {
|
|
259
274
|
this.control = this.injector.get(NgControl, null);
|
|
260
275
|
}
|
|
@@ -476,6 +491,8 @@ export class ColorGradientComponent {
|
|
|
476
491
|
isEmpty() {
|
|
477
492
|
return false;
|
|
478
493
|
}
|
|
494
|
+
notifyNgChanged = () => { };
|
|
495
|
+
notifyNgTouched = () => { };
|
|
479
496
|
moveDragHandle(positionX, positionY) {
|
|
480
497
|
const gradientRect = this.gradientRect;
|
|
481
498
|
const gradientRectWidth = gradientRect.width;
|
|
@@ -573,28 +590,27 @@ export class ColorGradientComponent {
|
|
|
573
590
|
this.changeRequestsSubscription.unsubscribe();
|
|
574
591
|
}
|
|
575
592
|
}
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}
|
|
597
|
-
], viewQueries: [{ propertyName: "gradientDragHandle", first: true, predicate: ["gradientDragHandle"], descendants: true }, { propertyName: "inputs", first: true, predicate: ["inputs"], descendants: true }, { propertyName: "alphaSlider", first: true, predicate: ["alphaSlider"], descendants: true }, { propertyName: "gradientWrapper", first: true, predicate: ["gradientWrapper"], descendants: true }, { propertyName: "hsvRectangle", first: true, predicate: ["hsvRectangle"], descendants: true }], exportAs: ["kendoColorGradient"], usesOnChanges: true, ngImport: i0, template: `
|
|
593
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorGradientComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
594
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorGradientComponent, isStandalone: true, selector: "kendo-colorgradient", inputs: { id: "id", opacity: "opacity", disabled: "disabled", readonly: "readonly", clearButton: "clearButton", delay: "delay", value: "value", contrastTool: "contrastTool", tabindex: "tabindex", format: "format", gradientSliderStep: "gradientSliderStep", gradientSliderSmallStep: "gradientSliderSmallStep" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "keydown.enter": "enterHandler($event)", "keydown.escape": "escapeHandler($event)", "focusin": "focusHandler($event)" }, properties: { "class.k-colorgradient": "this.hostClasses", "attr.aria-readonly": "this.readonlyAttribute", "class.k-disabled": "this.disabledClass", "attr.id": "this.gradientId", "attr.dir": "this.direction", "attr.tabindex": "this.hostTabindex", "attr.role": "this.ariaRole", "attr.aria-invalid": "this.isControlInvalid", "attr.aria-disabled": "this.isDisabled", "class.k-readonly": "this.readonly" } }, providers: [
|
|
595
|
+
{
|
|
596
|
+
multi: true,
|
|
597
|
+
provide: NG_VALUE_ACCESSOR,
|
|
598
|
+
useExisting: forwardRef(() => ColorGradientComponent)
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
provide: KendoInput,
|
|
602
|
+
useExisting: forwardRef(() => ColorGradientComponent)
|
|
603
|
+
},
|
|
604
|
+
ColorGradientLocalizationService,
|
|
605
|
+
{
|
|
606
|
+
provide: LocalizationService,
|
|
607
|
+
useExisting: ColorGradientLocalizationService
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
provide: L10N_PREFIX,
|
|
611
|
+
useValue: 'kendo.colorgradient'
|
|
612
|
+
}
|
|
613
|
+
], viewQueries: [{ propertyName: "gradientDragHandle", first: true, predicate: ["gradientDragHandle"], descendants: true }, { propertyName: "inputs", first: true, predicate: ["inputs"], descendants: true }, { propertyName: "alphaSlider", first: true, predicate: ["alphaSlider"], descendants: true }, { propertyName: "gradientWrapper", first: true, predicate: ["gradientWrapper"], descendants: true }, { propertyName: "hsvRectangle", first: true, predicate: ["hsvRectangle"], descendants: true }], exportAs: ["kendoColorGradient"], usesOnChanges: true, ngImport: i0, template: `
|
|
598
614
|
<ng-container kendoColorGradientLocalizedMessages
|
|
599
615
|
i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."
|
|
600
616
|
colorGradientNoColor="Colorgradient no color chosen"
|
|
@@ -743,8 +759,9 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
743
759
|
[value]="value"
|
|
744
760
|
[ratio]="contrastTool">
|
|
745
761
|
</div>
|
|
746
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
747
|
-
|
|
762
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ColorInputComponent, selector: "kendo-colorinput", inputs: ["focusableId", "formatView", "tabindex", "value", "opacity", "disabled", "readonly"], outputs: ["valueChange", "tabOut"] }, { kind: "component", type: ContrastComponent, selector: "[kendoContrastTool]", inputs: ["value", "ratio"] }] });
|
|
763
|
+
}
|
|
764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorGradientComponent, decorators: [{
|
|
748
765
|
type: Component,
|
|
749
766
|
args: [{
|
|
750
767
|
exportAs: 'kendoColorGradient',
|