@progress/kendo-angular-inputs 8.0.0 → 8.0.2-dev.202201241505
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-inputs.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/colorpicker/color-input.component.js +1 -1
- package/dist/es/colorpicker/colorpicker.component.js +12 -10
- package/dist/es/colorpicker/flatcolorpicker-actions.component.js +1 -1
- package/dist/es/colorpicker/flatcolorpicker-header.component.js +1 -1
- package/dist/es/index.js +0 -2
- package/dist/es/main.js +2 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/colorpicker/color-input.component.js +1 -0
- package/dist/es2015/colorpicker/colorpicker.component.d.ts +0 -4
- package/dist/es2015/colorpicker/colorpicker.component.js +12 -11
- package/dist/es2015/colorpicker/flatcolorpicker-actions.component.js +2 -0
- package/dist/es2015/colorpicker/flatcolorpicker-header.component.js +2 -0
- package/dist/es2015/index.d.ts +0 -2
- package/dist/es2015/index.js +0 -2
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/main.d.ts +2 -0
- package/dist/es2015/main.js +2 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +19 -13
- package/dist/fesm5/index.js +17 -15
- package/dist/npm/colorpicker/color-input.component.js +1 -1
- package/dist/npm/colorpicker/colorpicker.component.js +12 -10
- package/dist/npm/colorpicker/flatcolorpicker-actions.component.js +1 -1
- package/dist/npm/colorpicker/flatcolorpicker-header.component.js +1 -1
- package/dist/npm/index.js +0 -4
- package/dist/npm/main.js +4 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +1 -1
package/dist/es2015/main.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export { NumericTextBoxModule } from './numerictextbox.module';
|
|
|
21
21
|
export { MaskedTextBoxModule } from './maskedtextbox.module';
|
|
22
22
|
export { TextBoxModule } from './textbox.module';
|
|
23
23
|
export { TextAreaModule } from './textarea.module';
|
|
24
|
+
export { CheckBoxModule } from './checkbox.module';
|
|
25
|
+
export { RadioButtonModule } from './radiobutton.module';
|
|
24
26
|
export { InputRounded, CheckBoxRounded, InputFillMode, InputSize } from './common/models';
|
|
25
27
|
export { ColorPickerComponent } from './colorpicker/colorpicker.component';
|
|
26
28
|
export { ColorPaletteComponent } from './colorpicker/color-palette.component';
|
package/dist/es2015/main.js
CHANGED
|
@@ -20,6 +20,8 @@ export { NumericTextBoxModule } from './numerictextbox.module';
|
|
|
20
20
|
export { MaskedTextBoxModule } from './maskedtextbox.module';
|
|
21
21
|
export { TextBoxModule } from './textbox.module';
|
|
22
22
|
export { TextAreaModule } from './textarea.module';
|
|
23
|
+
export { CheckBoxModule } from './checkbox.module';
|
|
24
|
+
export { RadioButtonModule } from './radiobutton.module';
|
|
23
25
|
// All ColorPicker Components
|
|
24
26
|
export { ColorPickerComponent } from './colorpicker/colorpicker.component';
|
|
25
27
|
export { ColorPaletteComponent } from './colorpicker/color-palette.component';
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-inputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1643036475,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -481,7 +481,7 @@ const packageMetadata = {
|
|
|
481
481
|
name: '@progress/kendo-angular-inputs',
|
|
482
482
|
productName: 'Kendo UI for Angular',
|
|
483
483
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
484
|
-
publishDate:
|
|
484
|
+
publishDate: 1643036475,
|
|
485
485
|
version: '',
|
|
486
486
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
487
487
|
};
|
|
@@ -8098,6 +8098,7 @@ ColorInputComponent = __decorate([
|
|
|
8098
8098
|
class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
8099
8099
|
[attr.aria-label]="formatButtonTitle"
|
|
8100
8100
|
[attr.title]="formatButtonTitle"
|
|
8101
|
+
type="button"
|
|
8101
8102
|
>
|
|
8102
8103
|
<span class="k-button-icon k-icon k-i-arrows-kpi"></span>
|
|
8103
8104
|
</button>
|
|
@@ -9558,6 +9559,7 @@ FlatColorPickerHeaderComponent = __decorate([
|
|
|
9558
9559
|
<div *ngIf="viewButtons" class="k-button-group k-button-group-flat">
|
|
9559
9560
|
<button *ngFor="let view of views"
|
|
9560
9561
|
#viewButtons
|
|
9562
|
+
type="button"
|
|
9561
9563
|
(click)="onViewButtonClick(view)"
|
|
9562
9564
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
9563
9565
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
@@ -9576,6 +9578,7 @@ FlatColorPickerHeaderComponent = __decorate([
|
|
|
9576
9578
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
9577
9579
|
<button *ngIf="clearButton"
|
|
9578
9580
|
#clearButton
|
|
9581
|
+
type="button"
|
|
9579
9582
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
|
|
9580
9583
|
[attr.aria-label]="getText('clearButton')"
|
|
9581
9584
|
[attr.title]="getText('clearButton')"
|
|
@@ -9642,11 +9645,13 @@ FlatColorPickerActionButtonsComponent = __decorate([
|
|
|
9642
9645
|
class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
|
|
9643
9646
|
[attr.title]="getText('cancelButton')"
|
|
9644
9647
|
(click)="onActionButtonClick('cancel', $event)"
|
|
9648
|
+
type="button"
|
|
9645
9649
|
>{{getText('cancelButton')}}</button>
|
|
9646
9650
|
<button #last
|
|
9647
9651
|
class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"
|
|
9648
9652
|
[attr.title]="getText('applyButton')"
|
|
9649
9653
|
(click)="onActionButtonClick('apply', $event)"
|
|
9654
|
+
type="button"
|
|
9650
9655
|
>{{getText('applyButton')}}</button>
|
|
9651
9656
|
`
|
|
9652
9657
|
}),
|
|
@@ -10614,12 +10619,6 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10614
10619
|
this.isFocused = false;
|
|
10615
10620
|
});
|
|
10616
10621
|
}
|
|
10617
|
-
/**
|
|
10618
|
-
* @hidden
|
|
10619
|
-
*/
|
|
10620
|
-
arrowButtonMouseDown(ev) {
|
|
10621
|
-
ev.preventDefault();
|
|
10622
|
-
}
|
|
10623
10622
|
/**
|
|
10624
10623
|
* Clears the value of the ColorPicker.
|
|
10625
10624
|
*/
|
|
@@ -10641,6 +10640,7 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10641
10640
|
if (this.disabled || this.readonly) {
|
|
10642
10641
|
return;
|
|
10643
10642
|
}
|
|
10643
|
+
this.cdr.markForCheck();
|
|
10644
10644
|
this.closePopup();
|
|
10645
10645
|
open = isPresent(open) ? open : !this.isOpen;
|
|
10646
10646
|
if (open) {
|
|
@@ -10775,7 +10775,8 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10775
10775
|
focusFirstElement() {
|
|
10776
10776
|
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
10777
10777
|
if (this.flatColorPicker) {
|
|
10778
|
-
const
|
|
10778
|
+
const gradient = this.flatColorPicker.gradient;
|
|
10779
|
+
const elementToFocus = gradient ? gradient.gradientDragHandle :
|
|
10779
10780
|
this.flatColorPicker.palette.host;
|
|
10780
10781
|
elementToFocus.nativeElement.focus();
|
|
10781
10782
|
}
|
|
@@ -10813,7 +10814,8 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10813
10814
|
}
|
|
10814
10815
|
get firstFocusableElement() {
|
|
10815
10816
|
if (!this.flatColorPicker.header || (this.views.length <= 1 && !this.flatColorPicker.clearButton)) {
|
|
10816
|
-
|
|
10817
|
+
const gradient = this.flatColorPicker.gradient;
|
|
10818
|
+
return gradient ? gradient.gradientDragHandle : this.flatColorPicker.palette.host;
|
|
10817
10819
|
}
|
|
10818
10820
|
return this.views.length > 1 ? this.flatColorPicker.header.viewButtonsCollection.toArray()[0] : this.flatColorPicker.header.clearButtonElement;
|
|
10819
10821
|
}
|
|
@@ -10824,7 +10826,12 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10824
10826
|
if (this.flatColorPicker.palette) {
|
|
10825
10827
|
return this.flatColorPicker.palette.host;
|
|
10826
10828
|
}
|
|
10827
|
-
|
|
10829
|
+
const gradient = this.flatColorPicker.gradient;
|
|
10830
|
+
const inputs = gradient && gradient.inputs;
|
|
10831
|
+
if (gradient && inputs && inputs.formatView === 'hex') {
|
|
10832
|
+
return inputs.hexInput;
|
|
10833
|
+
}
|
|
10834
|
+
return this.gradientSettings.opacity ? inputs.opacityInput.numericInput : inputs.blueInput;
|
|
10828
10835
|
}
|
|
10829
10836
|
handleDomEvents(action, events) {
|
|
10830
10837
|
const hostElement = this.host.nativeElement;
|
|
@@ -11111,9 +11118,8 @@ ColorPickerComponent = ColorPickerComponent_1 = __decorate([
|
|
|
11111
11118
|
</span>
|
|
11112
11119
|
</span>
|
|
11113
11120
|
<button
|
|
11114
|
-
#arrowButton
|
|
11115
11121
|
tabindex="-1"
|
|
11116
|
-
|
|
11122
|
+
type="button"
|
|
11117
11123
|
class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">
|
|
11118
11124
|
<span class="k-button-icon k-icon k-i-arrow-s"></span>
|
|
11119
11125
|
</button>
|
|
@@ -12293,4 +12299,4 @@ InputsModule = __decorate([
|
|
|
12293
12299
|
* Generated bundle index. Do not edit.
|
|
12294
12300
|
*/
|
|
12295
12301
|
|
|
12296
|
-
export {
|
|
12302
|
+
export { ColorContrastSvgComponent, ColorInputComponent, ContrastValidationComponent, ContrastComponent, FlatColorPickerActionButtonsComponent, FlatColorPickerHeaderComponent, FocusOnDomReadyDirective, ColorGradientLocalizationService, ColorPaletteLocalizationService, ColorPickerLocalizationService, ColorPickerCustomMessagesComponent, FlatColorPickerLocalizationService, ColorPickerMessages, ColorPaletteService, FlatColorPickerService, MaskingService, NumericTextBoxMessages, RangeSliderCustomMessagesComponent, RangeSliderMessages, SHARED_DIRECTIVES, SliderCustomMessagesComponent, SliderMessages, SliderBase, SlidersCommonModule, SwitchCustomMessagesComponent, Messages, TextFieldsBase, TextBoxCustomMessagesComponent, TextBoxMessages, SliderComponent, RangeSliderComponent, LabelTemplateDirective, SwitchComponent, TextBoxDirective, TextAreaDirective, NumericTextBoxComponent, NumericTextBoxCustomMessagesComponent, MaskedTextBoxComponent, InputsModule, SliderTicksComponent, SliderModule, RangeSliderModule, SwitchModule, NumericTextBoxModule, MaskedTextBoxModule, TextBoxModule, TextAreaModule, CheckBoxModule, RadioButtonModule, ColorPickerComponent, ColorPaletteComponent, ColorGradientComponent, ColorPickerModule, FlatColorPickerComponent, ColorPickerCancelEvent, CheckBoxDirective, RadioButtonDirective, HintComponent, ErrorComponent, FormFieldComponent, FormFieldModule, TextBoxComponent, TextBoxPrefixTemplateDirective, TextBoxSuffixTemplateDirective, TextAreaComponent, TextAreaSuffixComponent, InputSeparatorComponent, SharedModule, LocalizedColorPickerMessagesDirective, LocalizedNumericTextBoxMessagesDirective, LocalizedTextBoxMessagesDirective, LocalizedSliderMessagesDirective, LocalizedRangeSliderMessagesDirective, LocalizedSwitchMessagesDirective, ColorPickerCloseEvent, ColorPickerOpenEvent, ActiveColorClickEvent };
|
package/dist/fesm5/index.js
CHANGED
|
@@ -514,7 +514,7 @@ var packageMetadata = {
|
|
|
514
514
|
name: '@progress/kendo-angular-inputs',
|
|
515
515
|
productName: 'Kendo UI for Angular',
|
|
516
516
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
517
|
-
publishDate:
|
|
517
|
+
publishDate: 1643036475,
|
|
518
518
|
version: '',
|
|
519
519
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
520
520
|
};
|
|
@@ -8323,7 +8323,7 @@ var ColorInputComponent = /** @class */ (function () {
|
|
|
8323
8323
|
ColorInputComponent = __decorate([
|
|
8324
8324
|
Component({
|
|
8325
8325
|
selector: 'kendo-colorinput',
|
|
8326
|
-
template: "\n <div class=\"k-vstack\">\n <button #toggleFormatButton\n class=\"k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.aria-label]=\"formatButtonTitle\"\n [attr.title]=\"formatButtonTitle\"\n >\n <span class=\"k-button-icon k-icon k-i-arrows-kpi\"></span>\n </button>\n </div>\n <div *ngIf=\"formatView === 'hex'\" class=\"k-vstack\">\n <input\n #hexInput\n [id]=\"focusableId\"\n class=\"k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [value]=\"hex || ''\"\n (blur)=\"handleHexInputBlur()\"\n (input)=\"handleHexValueChange(hexInput.value)\"\n />\n <label [for]=\"focusableId\" class=\"k-colorgradient-input-label\">HEX</label>\n </div>\n <ng-container *ngIf=\"formatView === 'rgba'\">\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #red\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.r\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"red.focusableId\" class=\"k-colorgradient-input-label\">R</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #green\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.g\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"green.focusableId\" class=\"k-colorgradient-input-label\">G</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #blue\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.b\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"blue.focusableId\" class=\"k-colorgradient-input-label\">B</label>\n </div>\n <div class=\"k-vstack\" *ngIf=\"opacity\">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"1\"\n [(value)]=\"rgba.a\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [step]=\"0.01\"\n [format]=\"'n2'\"\n [decimals]=\"2\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"alpha.focusableId\" class=\"k-colorgradient-input-label\">A</label>\n </div>\n </ng-container>\n "
|
|
8326
|
+
template: "\n <div class=\"k-vstack\">\n <button #toggleFormatButton\n class=\"k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.aria-label]=\"formatButtonTitle\"\n [attr.title]=\"formatButtonTitle\"\n type=\"button\"\n >\n <span class=\"k-button-icon k-icon k-i-arrows-kpi\"></span>\n </button>\n </div>\n <div *ngIf=\"formatView === 'hex'\" class=\"k-vstack\">\n <input\n #hexInput\n [id]=\"focusableId\"\n class=\"k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [value]=\"hex || ''\"\n (blur)=\"handleHexInputBlur()\"\n (input)=\"handleHexValueChange(hexInput.value)\"\n />\n <label [for]=\"focusableId\" class=\"k-colorgradient-input-label\">HEX</label>\n </div>\n <ng-container *ngIf=\"formatView === 'rgba'\">\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #red\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.r\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"red.focusableId\" class=\"k-colorgradient-input-label\">R</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #green\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.g\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"green.focusableId\" class=\"k-colorgradient-input-label\">G</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #blue\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.b\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"blue.focusableId\" class=\"k-colorgradient-input-label\">B</label>\n </div>\n <div class=\"k-vstack\" *ngIf=\"opacity\">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"1\"\n [(value)]=\"rgba.a\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [step]=\"0.01\"\n [format]=\"'n2'\"\n [decimals]=\"2\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"alpha.focusableId\" class=\"k-colorgradient-input-label\">A</label>\n </div>\n </ng-container>\n "
|
|
8327
8327
|
}),
|
|
8328
8328
|
__metadata("design:paramtypes", [ElementRef,
|
|
8329
8329
|
Renderer2,
|
|
@@ -9652,7 +9652,7 @@ var FlatColorPickerHeaderComponent = /** @class */ (function () {
|
|
|
9652
9652
|
FlatColorPickerHeaderComponent = __decorate([
|
|
9653
9653
|
Component({
|
|
9654
9654
|
selector: '[kendoFlatColorPickerHeader]',
|
|
9655
|
-
template: "\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <div *ngIf=\"viewButtons\" class=\"k-button-group k-button-group-flat\">\n <button *ngFor=\"let view of views\"\n #viewButtons\n (click)=\"onViewButtonClick(view)\"\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.title]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-label]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-pressed]=\"activeView === view\"\n [ngClass]=\"activeView === view ? 'k-state-selected' : ''\"\n >\n <span\n class=\"k-button-icon k-icon\"\n [ngClass]=\"getViewButtonIcon(view)\">\n </span>\n </button>\n </div>\n </div>\n <div class=\"k-spacer\"></div>\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <button *ngIf=\"clearButton\"\n #clearButton\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset\"\n [attr.aria-label]=\"getText('clearButton')\"\n [attr.title]=\"getText('clearButton')\"\n (click)=\"clearButtonClick.emit()\">\n <span class=\"k-button-icon k-icon k-i-reset-color\"></span>\n </button>\n <div class=\"k-coloreditor-preview k-vstack\" *ngIf=\"preview\">\n <span\n class=\"k-coloreditor-preview-color k-color-preview\"\n [attr.title]=\"getText('previewColor')\"\n [style.background-color]=\"selection\">\n </span>\n <span class=\"k-coloreditor-current-color k-color-preview\"\n [style.background-color]=\"value\"\n [attr.title]=\"getText('revertSelection')\"\n (click)=\"valuePaneClick.emit($event)\">\n </span>\n </div>\n </div>\n "
|
|
9655
|
+
template: "\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <div *ngIf=\"viewButtons\" class=\"k-button-group k-button-group-flat\">\n <button *ngFor=\"let view of views\"\n #viewButtons\n type=\"button\"\n (click)=\"onViewButtonClick(view)\"\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.title]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-label]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-pressed]=\"activeView === view\"\n [ngClass]=\"activeView === view ? 'k-state-selected' : ''\"\n >\n <span\n class=\"k-button-icon k-icon\"\n [ngClass]=\"getViewButtonIcon(view)\">\n </span>\n </button>\n </div>\n </div>\n <div class=\"k-spacer\"></div>\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <button *ngIf=\"clearButton\"\n #clearButton\n type=\"button\"\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset\"\n [attr.aria-label]=\"getText('clearButton')\"\n [attr.title]=\"getText('clearButton')\"\n (click)=\"clearButtonClick.emit()\">\n <span class=\"k-button-icon k-icon k-i-reset-color\"></span>\n </button>\n <div class=\"k-coloreditor-preview k-vstack\" *ngIf=\"preview\">\n <span\n class=\"k-coloreditor-preview-color k-color-preview\"\n [attr.title]=\"getText('previewColor')\"\n [style.background-color]=\"selection\">\n </span>\n <span class=\"k-coloreditor-current-color k-color-preview\"\n [style.background-color]=\"value\"\n [attr.title]=\"getText('revertSelection')\"\n (click)=\"valuePaneClick.emit($event)\">\n </span>\n </div>\n </div>\n "
|
|
9656
9656
|
}),
|
|
9657
9657
|
__metadata("design:paramtypes", [LocalizationService])
|
|
9658
9658
|
], FlatColorPickerHeaderComponent);
|
|
@@ -9695,7 +9695,7 @@ var FlatColorPickerActionButtonsComponent = /** @class */ (function () {
|
|
|
9695
9695
|
FlatColorPickerActionButtonsComponent = __decorate([
|
|
9696
9696
|
Component({
|
|
9697
9697
|
selector: '[kendoFlatColorPickerActionButtons]',
|
|
9698
|
-
template: "\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n >{{getText('applyButton')}}</button>\n "
|
|
9698
|
+
template: "\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n type=\"button\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n type=\"button\"\n >{{getText('applyButton')}}</button>\n "
|
|
9699
9699
|
}),
|
|
9700
9700
|
__metadata("design:paramtypes", [LocalizationService])
|
|
9701
9701
|
], FlatColorPickerActionButtonsComponent);
|
|
@@ -10693,12 +10693,6 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10693
10693
|
_this.isFocused = false;
|
|
10694
10694
|
});
|
|
10695
10695
|
};
|
|
10696
|
-
/**
|
|
10697
|
-
* @hidden
|
|
10698
|
-
*/
|
|
10699
|
-
ColorPickerComponent.prototype.arrowButtonMouseDown = function (ev) {
|
|
10700
|
-
ev.preventDefault();
|
|
10701
|
-
};
|
|
10702
10696
|
/**
|
|
10703
10697
|
* Clears the value of the ColorPicker.
|
|
10704
10698
|
*/
|
|
@@ -10720,6 +10714,7 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10720
10714
|
if (this.disabled || this.readonly) {
|
|
10721
10715
|
return;
|
|
10722
10716
|
}
|
|
10717
|
+
this.cdr.markForCheck();
|
|
10723
10718
|
this.closePopup();
|
|
10724
10719
|
open = isPresent(open) ? open : !this.isOpen;
|
|
10725
10720
|
if (open) {
|
|
@@ -10857,7 +10852,8 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10857
10852
|
var _this = this;
|
|
10858
10853
|
this.ngZone.onStable.pipe(take(1)).subscribe(function () {
|
|
10859
10854
|
if (_this.flatColorPicker) {
|
|
10860
|
-
var
|
|
10855
|
+
var gradient = _this.flatColorPicker.gradient;
|
|
10856
|
+
var elementToFocus = gradient ? gradient.gradientDragHandle :
|
|
10861
10857
|
_this.flatColorPicker.palette.host;
|
|
10862
10858
|
elementToFocus.nativeElement.focus();
|
|
10863
10859
|
}
|
|
@@ -10897,7 +10893,8 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10897
10893
|
Object.defineProperty(ColorPickerComponent.prototype, "firstFocusableElement", {
|
|
10898
10894
|
get: function () {
|
|
10899
10895
|
if (!this.flatColorPicker.header || (this.views.length <= 1 && !this.flatColorPicker.clearButton)) {
|
|
10900
|
-
|
|
10896
|
+
var gradient = this.flatColorPicker.gradient;
|
|
10897
|
+
return gradient ? gradient.gradientDragHandle : this.flatColorPicker.palette.host;
|
|
10901
10898
|
}
|
|
10902
10899
|
return this.views.length > 1 ? this.flatColorPicker.header.viewButtonsCollection.toArray()[0] : this.flatColorPicker.header.clearButtonElement;
|
|
10903
10900
|
},
|
|
@@ -10912,7 +10909,12 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10912
10909
|
if (this.flatColorPicker.palette) {
|
|
10913
10910
|
return this.flatColorPicker.palette.host;
|
|
10914
10911
|
}
|
|
10915
|
-
|
|
10912
|
+
var gradient = this.flatColorPicker.gradient;
|
|
10913
|
+
var inputs = gradient && gradient.inputs;
|
|
10914
|
+
if (gradient && inputs && inputs.formatView === 'hex') {
|
|
10915
|
+
return inputs.hexInput;
|
|
10916
|
+
}
|
|
10917
|
+
return this.gradientSettings.opacity ? inputs.opacityInput.numericInput : inputs.blueInput;
|
|
10916
10918
|
},
|
|
10917
10919
|
enumerable: true,
|
|
10918
10920
|
configurable: true
|
|
@@ -11160,7 +11162,7 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
11160
11162
|
useValue: 'kendo.colorpicker'
|
|
11161
11163
|
}
|
|
11162
11164
|
],
|
|
11163
|
-
template: "\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor=\"kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.\"\n colorPickerNoColor=\"Colorpicker no color chosen\"\n i18n-flatColorPickerNoColor=\"kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.colorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.colorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.colorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.colorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.colorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.colorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.colorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.colorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <span #activeColor class=\"k-input-inner\">\n <span\n class=\"k-value-icon k-color-preview\"\n [ngClass]=\"{'k-icon-color-preview': iconStyles, 'k-no-color': !value}\">\n <span *ngIf=\"iconClass || icon\" class=\"k-color-preview-icon k-icon\" [ngClass]=\"iconStyles\"></span>\n <span class=\"k-color-preview-mask\" [style.background-color]=\"value\"></span>\n </span>\n </span>\n <button\n
|
|
11165
|
+
template: "\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor=\"kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.\"\n colorPickerNoColor=\"Colorpicker no color chosen\"\n i18n-flatColorPickerNoColor=\"kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.colorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.colorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.colorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.colorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.colorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.colorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.colorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.colorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <span #activeColor class=\"k-input-inner\">\n <span\n class=\"k-value-icon k-color-preview\"\n [ngClass]=\"{'k-icon-color-preview': iconStyles, 'k-no-color': !value}\">\n <span *ngIf=\"iconClass || icon\" class=\"k-color-preview-icon k-icon\" [ngClass]=\"iconStyles\"></span>\n <span class=\"k-color-preview-mask\" [style.background-color]=\"value\"></span>\n </span>\n </span>\n <button\n tabindex=\"-1\"\n type=\"button\"\n class=\"k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button\">\n <span class=\"k-button-icon k-icon k-i-arrow-s\"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]=\"value\"\n [format]=\"format\"\n [views]=\"views\"\n [activeView]=\"activeView\"\n [actionsLayout]=\"actionsLayout\"\n [preview]=\"preview\"\n [gradientSettings]=\"gradientSettings\"\n [paletteSettings]=\"paletteSettings\"\n [clearButton]=\"clearButton\"\n (cancel)=\"handleCancelEvent($event)\"\n (focusout)=\"handlePopupBlur($event)\"\n (valueChange)=\"handleValueChange($event)\"\n (keydown)=\"handlePopupKeyDown($event)\"\n (activeViewChange)=\"activeViewChange.emit($event)\"\n (actionButtonClick)=\"togglePopup()\">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n "
|
|
11164
11166
|
}),
|
|
11165
11167
|
__metadata("design:paramtypes", [ElementRef,
|
|
11166
11168
|
PopupService,
|
|
@@ -12402,4 +12404,4 @@ var InputsModule = /** @class */ (function () {
|
|
|
12402
12404
|
* Generated bundle index. Do not edit.
|
|
12403
12405
|
*/
|
|
12404
12406
|
|
|
12405
|
-
export {
|
|
12407
|
+
export { ColorContrastSvgComponent, ColorInputComponent, ContrastValidationComponent, ContrastComponent, FlatColorPickerActionButtonsComponent, FlatColorPickerHeaderComponent, FocusOnDomReadyDirective, ColorGradientLocalizationService, ColorPaletteLocalizationService, ColorPickerLocalizationService, ColorPickerCustomMessagesComponent, FlatColorPickerLocalizationService, ColorPickerMessages, ColorPaletteService, FlatColorPickerService, MaskingService, NumericTextBoxMessages, RangeSliderCustomMessagesComponent, RangeSliderMessages, SHARED_DIRECTIVES, SliderCustomMessagesComponent, SliderMessages, SliderBase, SlidersCommonModule, SwitchCustomMessagesComponent, Messages, TextFieldsBase, TextBoxCustomMessagesComponent, TextBoxMessages, SliderComponent, RangeSliderComponent, LabelTemplateDirective, SwitchComponent, TextBoxDirective, TextAreaDirective, NumericTextBoxComponent, NumericTextBoxCustomMessagesComponent, MaskedTextBoxComponent, InputsModule, SliderTicksComponent, SliderModule, RangeSliderModule, SwitchModule, NumericTextBoxModule, MaskedTextBoxModule, TextBoxModule, TextAreaModule, CheckBoxModule, RadioButtonModule, ColorPickerComponent, ColorPaletteComponent, ColorGradientComponent, ColorPickerModule, FlatColorPickerComponent, ColorPickerCancelEvent, CheckBoxDirective, RadioButtonDirective, HintComponent, ErrorComponent, FormFieldComponent, FormFieldModule, TextBoxComponent, TextBoxPrefixTemplateDirective, TextBoxSuffixTemplateDirective, TextAreaComponent, TextAreaSuffixComponent, InputSeparatorComponent, SharedModule, LocalizedColorPickerMessagesDirective, LocalizedNumericTextBoxMessagesDirective, LocalizedTextBoxMessagesDirective, LocalizedSliderMessagesDirective, LocalizedRangeSliderMessagesDirective, LocalizedSwitchMessagesDirective, ColorPickerCloseEvent, ColorPickerOpenEvent, ActiveColorClickEvent };
|
|
@@ -184,7 +184,7 @@ var ColorInputComponent = /** @class */ (function () {
|
|
|
184
184
|
ColorInputComponent = tslib_1.__decorate([
|
|
185
185
|
core_1.Component({
|
|
186
186
|
selector: 'kendo-colorinput',
|
|
187
|
-
template: "\n <div class=\"k-vstack\">\n <button #toggleFormatButton\n class=\"k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.aria-label]=\"formatButtonTitle\"\n [attr.title]=\"formatButtonTitle\"\n >\n <span class=\"k-button-icon k-icon k-i-arrows-kpi\"></span>\n </button>\n </div>\n <div *ngIf=\"formatView === 'hex'\" class=\"k-vstack\">\n <input\n #hexInput\n [id]=\"focusableId\"\n class=\"k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [value]=\"hex || ''\"\n (blur)=\"handleHexInputBlur()\"\n (input)=\"handleHexValueChange(hexInput.value)\"\n />\n <label [for]=\"focusableId\" class=\"k-colorgradient-input-label\">HEX</label>\n </div>\n <ng-container *ngIf=\"formatView === 'rgba'\">\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #red\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.r\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"red.focusableId\" class=\"k-colorgradient-input-label\">R</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #green\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.g\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"green.focusableId\" class=\"k-colorgradient-input-label\">G</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #blue\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.b\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"blue.focusableId\" class=\"k-colorgradient-input-label\">B</label>\n </div>\n <div class=\"k-vstack\" *ngIf=\"opacity\">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"1\"\n [(value)]=\"rgba.a\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [step]=\"0.01\"\n [format]=\"'n2'\"\n [decimals]=\"2\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"alpha.focusableId\" class=\"k-colorgradient-input-label\">A</label>\n </div>\n </ng-container>\n "
|
|
187
|
+
template: "\n <div class=\"k-vstack\">\n <button #toggleFormatButton\n class=\"k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.aria-label]=\"formatButtonTitle\"\n [attr.title]=\"formatButtonTitle\"\n type=\"button\"\n >\n <span class=\"k-button-icon k-icon k-i-arrows-kpi\"></span>\n </button>\n </div>\n <div *ngIf=\"formatView === 'hex'\" class=\"k-vstack\">\n <input\n #hexInput\n [id]=\"focusableId\"\n class=\"k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [value]=\"hex || ''\"\n (blur)=\"handleHexInputBlur()\"\n (input)=\"handleHexValueChange(hexInput.value)\"\n />\n <label [for]=\"focusableId\" class=\"k-colorgradient-input-label\">HEX</label>\n </div>\n <ng-container *ngIf=\"formatView === 'rgba'\">\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #red\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.r\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"red.focusableId\" class=\"k-colorgradient-input-label\">R</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #green\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.g\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"green.focusableId\" class=\"k-colorgradient-input-label\">G</label>\n </div>\n <div class=\"k-vstack\">\n <kendo-numerictextbox\n #blue\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"255\"\n [(value)]=\"rgba.b\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [format]=\"'n'\"\n [decimals]=\"0\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"blue.focusableId\" class=\"k-colorgradient-input-label\">B</label>\n </div>\n <div class=\"k-vstack\" *ngIf=\"opacity\">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [min]=\"0\"\n [max]=\"1\"\n [(value)]=\"rgba.a\"\n [autoCorrect]=\"true\"\n [spinners]=\"false\"\n [step]=\"0.01\"\n [format]=\"'n2'\"\n [decimals]=\"2\"\n (blur)=\"handleRgbaInputBlur()\"\n (valueChange)=\"handleRgbaValueChange()\">\n </kendo-numerictextbox>\n <label [for]=\"alpha.focusableId\" class=\"k-colorgradient-input-label\">A</label>\n </div>\n </ng-container>\n "
|
|
188
188
|
}),
|
|
189
189
|
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
|
|
190
190
|
core_1.Renderer2,
|
|
@@ -477,12 +477,6 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
477
477
|
_this.isFocused = false;
|
|
478
478
|
});
|
|
479
479
|
};
|
|
480
|
-
/**
|
|
481
|
-
* @hidden
|
|
482
|
-
*/
|
|
483
|
-
ColorPickerComponent.prototype.arrowButtonMouseDown = function (ev) {
|
|
484
|
-
ev.preventDefault();
|
|
485
|
-
};
|
|
486
480
|
/**
|
|
487
481
|
* Clears the value of the ColorPicker.
|
|
488
482
|
*/
|
|
@@ -504,6 +498,7 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
504
498
|
if (this.disabled || this.readonly) {
|
|
505
499
|
return;
|
|
506
500
|
}
|
|
501
|
+
this.cdr.markForCheck();
|
|
507
502
|
this.closePopup();
|
|
508
503
|
open = utils_2.isPresent(open) ? open : !this.isOpen;
|
|
509
504
|
if (open) {
|
|
@@ -641,7 +636,8 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
641
636
|
var _this = this;
|
|
642
637
|
this.ngZone.onStable.pipe(operators_1.take(1)).subscribe(function () {
|
|
643
638
|
if (_this.flatColorPicker) {
|
|
644
|
-
var
|
|
639
|
+
var gradient = _this.flatColorPicker.gradient;
|
|
640
|
+
var elementToFocus = gradient ? gradient.gradientDragHandle :
|
|
645
641
|
_this.flatColorPicker.palette.host;
|
|
646
642
|
elementToFocus.nativeElement.focus();
|
|
647
643
|
}
|
|
@@ -681,7 +677,8 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
681
677
|
Object.defineProperty(ColorPickerComponent.prototype, "firstFocusableElement", {
|
|
682
678
|
get: function () {
|
|
683
679
|
if (!this.flatColorPicker.header || (this.views.length <= 1 && !this.flatColorPicker.clearButton)) {
|
|
684
|
-
|
|
680
|
+
var gradient = this.flatColorPicker.gradient;
|
|
681
|
+
return gradient ? gradient.gradientDragHandle : this.flatColorPicker.palette.host;
|
|
685
682
|
}
|
|
686
683
|
return this.views.length > 1 ? this.flatColorPicker.header.viewButtonsCollection.toArray()[0] : this.flatColorPicker.header.clearButtonElement;
|
|
687
684
|
},
|
|
@@ -696,7 +693,12 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
696
693
|
if (this.flatColorPicker.palette) {
|
|
697
694
|
return this.flatColorPicker.palette.host;
|
|
698
695
|
}
|
|
699
|
-
|
|
696
|
+
var gradient = this.flatColorPicker.gradient;
|
|
697
|
+
var inputs = gradient && gradient.inputs;
|
|
698
|
+
if (gradient && inputs && inputs.formatView === 'hex') {
|
|
699
|
+
return inputs.hexInput;
|
|
700
|
+
}
|
|
701
|
+
return this.gradientSettings.opacity ? inputs.opacityInput.numericInput : inputs.blueInput;
|
|
700
702
|
},
|
|
701
703
|
enumerable: true,
|
|
702
704
|
configurable: true
|
|
@@ -944,7 +946,7 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
944
946
|
useValue: 'kendo.colorpicker'
|
|
945
947
|
}
|
|
946
948
|
],
|
|
947
|
-
template: "\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor=\"kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.\"\n colorPickerNoColor=\"Colorpicker no color chosen\"\n i18n-flatColorPickerNoColor=\"kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.colorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.colorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.colorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.colorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.colorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.colorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.colorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.colorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <span #activeColor class=\"k-input-inner\">\n <span\n class=\"k-value-icon k-color-preview\"\n [ngClass]=\"{'k-icon-color-preview': iconStyles, 'k-no-color': !value}\">\n <span *ngIf=\"iconClass || icon\" class=\"k-color-preview-icon k-icon\" [ngClass]=\"iconStyles\"></span>\n <span class=\"k-color-preview-mask\" [style.background-color]=\"value\"></span>\n </span>\n </span>\n <button\n
|
|
949
|
+
template: "\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor=\"kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty.\"\n colorPickerNoColor=\"Colorpicker no color chosen\"\n i18n-flatColorPickerNoColor=\"kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty.\"\n flatColorPickerNoColor=\"Flatcolorpicker no color chosen\"\n i18n-colorGradientNoColor=\"kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty.\"\n colorGradientNoColor=\"Colorgradient no color chosen\"\n i18n-colorPaletteNoColor=\"kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty.\"\n colorPaletteNoColor=\"Colorpalette no color chosen\"\n i18n-colorGradientHandle=\"kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser.\"\n colorGradientHandle=\"Choose color\"\n i18n-clearButton=\"kendo.colorpicker.clearButton|The title for the clear button.\"\n clearButton=\"Clear value\"\n i18n-hueSliderHandle=\"kendo.colorpicker.hueSliderHandle|The title for the hue slider handle.\"\n hueSliderHandle=\"Set hue\"\n i18n-opacitySliderHandle=\"kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle.\"\n opacitySliderHandle=\"Set opacity\"\n i18n-contrastRatio=\"kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool.\"\n contrastRatio=\"Contrast ratio\"\n i18n-previewColor=\"kendo.colorpicker.previewColor|The message for the color preview pane.\"\n previewColor=\"Color preview\"\n i18n-revertSelection=\"kendo.colorpicker.revertSelection|The message for the selected color pane.\"\n revertSelection=\"Revert selection\"\n i18n-gradientView=\"kendo.colorpicker.gradientView|The message for the gradient view button.\"\n gradientView=\"Gradient view\"\n i18n-paletteView=\"kendo.colorpicker.paletteView|The message for the palette view button.\"\n paletteView=\"Palette view\"\n i18n-formatButton=\"kendo.colorpicker.formatButton|The message for the input format toggle button.\"\n formatButton=\"Change color format\"\n i18n-applyButton=\"kendo.colorpicker.applyButton|The message for the Apply action button.\"\n applyButton=\"Apply\"\n i18n-cancelButton=\"kendo.colorpicker.cancelButton|The message for the Cancel action button.\"\n cancelButton=\"Cancel\">\n </ng-container>\n <span #activeColor class=\"k-input-inner\">\n <span\n class=\"k-value-icon k-color-preview\"\n [ngClass]=\"{'k-icon-color-preview': iconStyles, 'k-no-color': !value}\">\n <span *ngIf=\"iconClass || icon\" class=\"k-color-preview-icon k-icon\" [ngClass]=\"iconStyles\"></span>\n <span class=\"k-color-preview-mask\" [style.background-color]=\"value\"></span>\n </span>\n </span>\n <button\n tabindex=\"-1\"\n type=\"button\"\n class=\"k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button\">\n <span class=\"k-button-icon k-icon k-i-arrow-s\"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]=\"value\"\n [format]=\"format\"\n [views]=\"views\"\n [activeView]=\"activeView\"\n [actionsLayout]=\"actionsLayout\"\n [preview]=\"preview\"\n [gradientSettings]=\"gradientSettings\"\n [paletteSettings]=\"paletteSettings\"\n [clearButton]=\"clearButton\"\n (cancel)=\"handleCancelEvent($event)\"\n (focusout)=\"handlePopupBlur($event)\"\n (valueChange)=\"handleValueChange($event)\"\n (keydown)=\"handlePopupKeyDown($event)\"\n (activeViewChange)=\"activeViewChange.emit($event)\"\n (actionButtonClick)=\"togglePopup()\">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n "
|
|
948
950
|
}),
|
|
949
951
|
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef,
|
|
950
952
|
kendo_angular_popup_1.PopupService,
|
|
@@ -43,7 +43,7 @@ var FlatColorPickerActionButtonsComponent = /** @class */ (function () {
|
|
|
43
43
|
FlatColorPickerActionButtonsComponent = tslib_1.__decorate([
|
|
44
44
|
core_1.Component({
|
|
45
45
|
selector: '[kendoFlatColorPickerActionButtons]',
|
|
46
|
-
template: "\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n >{{getText('applyButton')}}</button>\n "
|
|
46
|
+
template: "\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n type=\"button\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n type=\"button\"\n >{{getText('applyButton')}}</button>\n "
|
|
47
47
|
}),
|
|
48
48
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
|
|
49
49
|
], FlatColorPickerActionButtonsComponent);
|
|
@@ -87,7 +87,7 @@ var FlatColorPickerHeaderComponent = /** @class */ (function () {
|
|
|
87
87
|
FlatColorPickerHeaderComponent = tslib_1.__decorate([
|
|
88
88
|
core_1.Component({
|
|
89
89
|
selector: '[kendoFlatColorPickerHeader]',
|
|
90
|
-
template: "\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <div *ngIf=\"viewButtons\" class=\"k-button-group k-button-group-flat\">\n <button *ngFor=\"let view of views\"\n #viewButtons\n (click)=\"onViewButtonClick(view)\"\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.title]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-label]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-pressed]=\"activeView === view\"\n [ngClass]=\"activeView === view ? 'k-state-selected' : ''\"\n >\n <span\n class=\"k-button-icon k-icon\"\n [ngClass]=\"getViewButtonIcon(view)\">\n </span>\n </button>\n </div>\n </div>\n <div class=\"k-spacer\"></div>\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <button *ngIf=\"clearButton\"\n #clearButton\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset\"\n [attr.aria-label]=\"getText('clearButton')\"\n [attr.title]=\"getText('clearButton')\"\n (click)=\"clearButtonClick.emit()\">\n <span class=\"k-button-icon k-icon k-i-reset-color\"></span>\n </button>\n <div class=\"k-coloreditor-preview k-vstack\" *ngIf=\"preview\">\n <span\n class=\"k-coloreditor-preview-color k-color-preview\"\n [attr.title]=\"getText('previewColor')\"\n [style.background-color]=\"selection\">\n </span>\n <span class=\"k-coloreditor-current-color k-color-preview\"\n [style.background-color]=\"value\"\n [attr.title]=\"getText('revertSelection')\"\n (click)=\"valuePaneClick.emit($event)\">\n </span>\n </div>\n </div>\n "
|
|
90
|
+
template: "\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <div *ngIf=\"viewButtons\" class=\"k-button-group k-button-group-flat\">\n <button *ngFor=\"let view of views\"\n #viewButtons\n type=\"button\"\n (click)=\"onViewButtonClick(view)\"\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button\"\n [attr.title]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-label]=\"getText(view === 'gradient' ? 'gradientView' : 'paletteView')\"\n [attr.aria-pressed]=\"activeView === view\"\n [ngClass]=\"activeView === view ? 'k-state-selected' : ''\"\n >\n <span\n class=\"k-button-icon k-icon\"\n [ngClass]=\"getViewButtonIcon(view)\">\n </span>\n </button>\n </div>\n </div>\n <div class=\"k-spacer\"></div>\n <div class=\"k-coloreditor-header-actions k-hstack\">\n <button *ngIf=\"clearButton\"\n #clearButton\n type=\"button\"\n class=\"k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset\"\n [attr.aria-label]=\"getText('clearButton')\"\n [attr.title]=\"getText('clearButton')\"\n (click)=\"clearButtonClick.emit()\">\n <span class=\"k-button-icon k-icon k-i-reset-color\"></span>\n </button>\n <div class=\"k-coloreditor-preview k-vstack\" *ngIf=\"preview\">\n <span\n class=\"k-coloreditor-preview-color k-color-preview\"\n [attr.title]=\"getText('previewColor')\"\n [style.background-color]=\"selection\">\n </span>\n <span class=\"k-coloreditor-current-color k-color-preview\"\n [style.background-color]=\"value\"\n [attr.title]=\"getText('revertSelection')\"\n (click)=\"valuePaneClick.emit($event)\">\n </span>\n </div>\n </div>\n "
|
|
91
91
|
}),
|
|
92
92
|
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
|
|
93
93
|
], FlatColorPickerHeaderComponent);
|
package/dist/npm/index.js
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
var tslib_1 = require("tslib");
|
|
11
11
|
tslib_1.__exportStar(require("./main"), exports);
|
|
12
|
-
var checkbox_module_1 = require("./checkbox.module");
|
|
13
|
-
exports.CheckBoxModule = checkbox_module_1.CheckBoxModule
|
|
14
12
|
var color_contrast_svg_component_1 = require("./colorpicker/color-contrast-svg.component");
|
|
15
13
|
exports.ColorContrastSvgComponent = color_contrast_svg_component_1.ColorContrastSvgComponent
|
|
16
14
|
var color_input_component_1 = require("./colorpicker/color-input.component");
|
|
@@ -45,8 +43,6 @@ var masking_service_1 = require("./maskedtextbox/masking.service");
|
|
|
45
43
|
exports.MaskingService = masking_service_1.MaskingService
|
|
46
44
|
var messages_2 = require("./numerictextbox/localization/messages");
|
|
47
45
|
exports.NumericTextBoxMessages = messages_2.NumericTextBoxMessages
|
|
48
|
-
var radiobutton_module_1 = require("./radiobutton.module");
|
|
49
|
-
exports.RadioButtonModule = radiobutton_module_1.RadioButtonModule
|
|
50
46
|
var custom_messages_component_2 = require("./rangeslider/localization/custom-messages.component");
|
|
51
47
|
exports.RangeSliderCustomMessagesComponent = custom_messages_component_2.RangeSliderCustomMessagesComponent
|
|
52
48
|
var messages_3 = require("./rangeslider/localization/messages");
|
package/dist/npm/main.js
CHANGED
|
@@ -41,6 +41,10 @@ var textbox_module_1 = require("./textbox.module");
|
|
|
41
41
|
exports.TextBoxModule = textbox_module_1.TextBoxModule;
|
|
42
42
|
var textarea_module_1 = require("./textarea.module");
|
|
43
43
|
exports.TextAreaModule = textarea_module_1.TextAreaModule;
|
|
44
|
+
var checkbox_module_1 = require("./checkbox.module");
|
|
45
|
+
exports.CheckBoxModule = checkbox_module_1.CheckBoxModule;
|
|
46
|
+
var radiobutton_module_1 = require("./radiobutton.module");
|
|
47
|
+
exports.RadioButtonModule = radiobutton_module_1.RadioButtonModule;
|
|
44
48
|
// All ColorPicker Components
|
|
45
49
|
var colorpicker_component_1 = require("./colorpicker/colorpicker.component");
|
|
46
50
|
exports.ColorPickerComponent = colorpicker_component_1.ColorPickerComponent;
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-inputs',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1643036475,
|
|
15
15
|
version: '',
|
|
16
16
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
17
17
|
};
|