@progress/kendo-angular-inputs 8.0.1-dev.202201201319 → 8.0.2-dev.202201251557
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 +1 -1
- 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/package-metadata.js +1 -1
- package/dist/es/textarea/textarea-suffix.component.js +1 -1
- package/dist/es/textarea/textarea.component.js +17 -3
- 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.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/textarea/textarea-suffix.component.js +1 -1
- package/dist/es2015/textarea/textarea.component.d.ts +1 -0
- package/dist/es2015/textarea/textarea.component.js +18 -7
- package/dist/fesm2015/index.js +37 -20
- package/dist/fesm5/index.js +34 -18
- 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/package-metadata.js +1 -1
- package/dist/npm/textarea/textarea-suffix.component.js +1 -1
- package/dist/npm/textarea/textarea.component.js +17 -3
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +1 -1
|
@@ -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: 1643126009,
|
|
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
|
};
|
|
@@ -44,7 +44,7 @@ let TextAreaSuffixComponent = class TextAreaSuffixComponent {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
tslib_1.__decorate([
|
|
47
|
-
HostBinding('class.k-
|
|
47
|
+
HostBinding('class.k-input-suffix'),
|
|
48
48
|
tslib_1.__metadata("design:type", Boolean)
|
|
49
49
|
], TextAreaSuffixComponent.prototype, "hostClass", void 0);
|
|
50
50
|
TextAreaSuffixComponent = tslib_1.__decorate([
|
|
@@ -268,6 +268,7 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
|
|
|
268
268
|
tabbing = false;
|
|
269
269
|
}
|
|
270
270
|
}));
|
|
271
|
+
this.handleFlow();
|
|
271
272
|
});
|
|
272
273
|
const stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
273
274
|
stylingInputs.forEach(input => {
|
|
@@ -291,6 +292,9 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
|
|
|
291
292
|
ngOnChanges(changes) {
|
|
292
293
|
const hostElement = this.hostElement.nativeElement;
|
|
293
294
|
const element = this.input.nativeElement;
|
|
295
|
+
if (changes.flow) {
|
|
296
|
+
this.handleFlow();
|
|
297
|
+
}
|
|
294
298
|
if (changes.resizable) {
|
|
295
299
|
if (this.resizable === 'auto') {
|
|
296
300
|
this.initialHeight = element.offsetHeight;
|
|
@@ -444,6 +448,16 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
|
|
|
444
448
|
this.renderer.addClass(elem, classes.toAdd);
|
|
445
449
|
}
|
|
446
450
|
}
|
|
451
|
+
handleFlow() {
|
|
452
|
+
const isVertical = this.flow === 'vertical';
|
|
453
|
+
const hostElement = this.hostElement.nativeElement;
|
|
454
|
+
const element = this.input.nativeElement;
|
|
455
|
+
const suffix = hostElement.children[1];
|
|
456
|
+
this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
|
|
457
|
+
if (suffix) {
|
|
458
|
+
this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
|
|
459
|
+
}
|
|
460
|
+
}
|
|
447
461
|
};
|
|
448
462
|
tslib_1.__decorate([
|
|
449
463
|
Input(),
|
|
@@ -455,12 +469,12 @@ tslib_1.__decorate([
|
|
|
455
469
|
tslib_1.__metadata("design:type", Boolean)
|
|
456
470
|
], TextAreaComponent.prototype, "hostClasses", void 0);
|
|
457
471
|
tslib_1.__decorate([
|
|
458
|
-
HostBinding('class
|
|
472
|
+
HostBinding('class.\!k-flex-col'),
|
|
459
473
|
tslib_1.__metadata("design:type", Boolean),
|
|
460
474
|
tslib_1.__metadata("design:paramtypes", [])
|
|
461
475
|
], TextAreaComponent.prototype, "flowCol", null);
|
|
462
476
|
tslib_1.__decorate([
|
|
463
|
-
HostBinding('class
|
|
477
|
+
HostBinding('class.\!k-flex-row'),
|
|
464
478
|
tslib_1.__metadata("design:type", Boolean),
|
|
465
479
|
tslib_1.__metadata("design:paramtypes", [])
|
|
466
480
|
], TextAreaComponent.prototype, "flowRow", null);
|
|
@@ -560,11 +574,8 @@ TextAreaComponent = TextAreaComponent_1 = tslib_1.__decorate([
|
|
|
560
574
|
<ng-content select="kendo-textarea-suffix"></ng-content>
|
|
561
575
|
`,
|
|
562
576
|
styles: [`
|
|
563
|
-
:host
|
|
564
|
-
|
|
565
|
-
}
|
|
566
|
-
:host(.k-flex-row) {
|
|
567
|
-
flex-direction: row !important;
|
|
577
|
+
:host {
|
|
578
|
+
display: inline-flex;
|
|
568
579
|
}
|
|
569
580
|
`]
|
|
570
581
|
}),
|
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: 1643126009,
|
|
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
|
};
|
|
@@ -7039,6 +7039,7 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
|
|
|
7039
7039
|
tabbing = false;
|
|
7040
7040
|
}
|
|
7041
7041
|
}));
|
|
7042
|
+
this.handleFlow();
|
|
7042
7043
|
});
|
|
7043
7044
|
const stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
7044
7045
|
stylingInputs.forEach(input => {
|
|
@@ -7062,6 +7063,9 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
|
|
|
7062
7063
|
ngOnChanges(changes) {
|
|
7063
7064
|
const hostElement = this.hostElement.nativeElement;
|
|
7064
7065
|
const element = this.input.nativeElement;
|
|
7066
|
+
if (changes.flow) {
|
|
7067
|
+
this.handleFlow();
|
|
7068
|
+
}
|
|
7065
7069
|
if (changes.resizable) {
|
|
7066
7070
|
if (this.resizable === 'auto') {
|
|
7067
7071
|
this.initialHeight = element.offsetHeight;
|
|
@@ -7215,6 +7219,16 @@ let TextAreaComponent = TextAreaComponent_1 = class TextAreaComponent extends Te
|
|
|
7215
7219
|
this.renderer.addClass(elem, classes.toAdd);
|
|
7216
7220
|
}
|
|
7217
7221
|
}
|
|
7222
|
+
handleFlow() {
|
|
7223
|
+
const isVertical = this.flow === 'vertical';
|
|
7224
|
+
const hostElement = this.hostElement.nativeElement;
|
|
7225
|
+
const element = this.input.nativeElement;
|
|
7226
|
+
const suffix = hostElement.children[1];
|
|
7227
|
+
this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
|
|
7228
|
+
if (suffix) {
|
|
7229
|
+
this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
|
|
7230
|
+
}
|
|
7231
|
+
}
|
|
7218
7232
|
};
|
|
7219
7233
|
__decorate([
|
|
7220
7234
|
Input(),
|
|
@@ -7226,12 +7240,12 @@ __decorate([
|
|
|
7226
7240
|
__metadata("design:type", Boolean)
|
|
7227
7241
|
], TextAreaComponent.prototype, "hostClasses", void 0);
|
|
7228
7242
|
__decorate([
|
|
7229
|
-
HostBinding('class
|
|
7243
|
+
HostBinding('class.\!k-flex-col'),
|
|
7230
7244
|
__metadata("design:type", Boolean),
|
|
7231
7245
|
__metadata("design:paramtypes", [])
|
|
7232
7246
|
], TextAreaComponent.prototype, "flowCol", null);
|
|
7233
7247
|
__decorate([
|
|
7234
|
-
HostBinding('class
|
|
7248
|
+
HostBinding('class.\!k-flex-row'),
|
|
7235
7249
|
__metadata("design:type", Boolean),
|
|
7236
7250
|
__metadata("design:paramtypes", [])
|
|
7237
7251
|
], TextAreaComponent.prototype, "flowRow", null);
|
|
@@ -7331,11 +7345,8 @@ TextAreaComponent = TextAreaComponent_1 = __decorate([
|
|
|
7331
7345
|
<ng-content select="kendo-textarea-suffix"></ng-content>
|
|
7332
7346
|
`,
|
|
7333
7347
|
styles: [`
|
|
7334
|
-
:host
|
|
7335
|
-
|
|
7336
|
-
}
|
|
7337
|
-
:host(.k-flex-row) {
|
|
7338
|
-
flex-direction: row !important;
|
|
7348
|
+
:host {
|
|
7349
|
+
display: inline-flex;
|
|
7339
7350
|
}
|
|
7340
7351
|
`]
|
|
7341
7352
|
}),
|
|
@@ -7387,7 +7398,7 @@ let TextAreaSuffixComponent = class TextAreaSuffixComponent {
|
|
|
7387
7398
|
}
|
|
7388
7399
|
};
|
|
7389
7400
|
__decorate([
|
|
7390
|
-
HostBinding('class.k-
|
|
7401
|
+
HostBinding('class.k-input-suffix'),
|
|
7391
7402
|
__metadata("design:type", Boolean)
|
|
7392
7403
|
], TextAreaSuffixComponent.prototype, "hostClass", void 0);
|
|
7393
7404
|
TextAreaSuffixComponent = __decorate([
|
|
@@ -8098,6 +8109,7 @@ ColorInputComponent = __decorate([
|
|
|
8098
8109
|
class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
8099
8110
|
[attr.aria-label]="formatButtonTitle"
|
|
8100
8111
|
[attr.title]="formatButtonTitle"
|
|
8112
|
+
type="button"
|
|
8101
8113
|
>
|
|
8102
8114
|
<span class="k-button-icon k-icon k-i-arrows-kpi"></span>
|
|
8103
8115
|
</button>
|
|
@@ -9558,6 +9570,7 @@ FlatColorPickerHeaderComponent = __decorate([
|
|
|
9558
9570
|
<div *ngIf="viewButtons" class="k-button-group k-button-group-flat">
|
|
9559
9571
|
<button *ngFor="let view of views"
|
|
9560
9572
|
#viewButtons
|
|
9573
|
+
type="button"
|
|
9561
9574
|
(click)="onViewButtonClick(view)"
|
|
9562
9575
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
9563
9576
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
@@ -9576,6 +9589,7 @@ FlatColorPickerHeaderComponent = __decorate([
|
|
|
9576
9589
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
9577
9590
|
<button *ngIf="clearButton"
|
|
9578
9591
|
#clearButton
|
|
9592
|
+
type="button"
|
|
9579
9593
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"
|
|
9580
9594
|
[attr.aria-label]="getText('clearButton')"
|
|
9581
9595
|
[attr.title]="getText('clearButton')"
|
|
@@ -9642,11 +9656,13 @@ FlatColorPickerActionButtonsComponent = __decorate([
|
|
|
9642
9656
|
class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"
|
|
9643
9657
|
[attr.title]="getText('cancelButton')"
|
|
9644
9658
|
(click)="onActionButtonClick('cancel', $event)"
|
|
9659
|
+
type="button"
|
|
9645
9660
|
>{{getText('cancelButton')}}</button>
|
|
9646
9661
|
<button #last
|
|
9647
9662
|
class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"
|
|
9648
9663
|
[attr.title]="getText('applyButton')"
|
|
9649
9664
|
(click)="onActionButtonClick('apply', $event)"
|
|
9665
|
+
type="button"
|
|
9650
9666
|
>{{getText('applyButton')}}</button>
|
|
9651
9667
|
`
|
|
9652
9668
|
}),
|
|
@@ -10614,12 +10630,6 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10614
10630
|
this.isFocused = false;
|
|
10615
10631
|
});
|
|
10616
10632
|
}
|
|
10617
|
-
/**
|
|
10618
|
-
* @hidden
|
|
10619
|
-
*/
|
|
10620
|
-
arrowButtonMouseDown(ev) {
|
|
10621
|
-
ev.preventDefault();
|
|
10622
|
-
}
|
|
10623
10633
|
/**
|
|
10624
10634
|
* Clears the value of the ColorPicker.
|
|
10625
10635
|
*/
|
|
@@ -10641,6 +10651,7 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10641
10651
|
if (this.disabled || this.readonly) {
|
|
10642
10652
|
return;
|
|
10643
10653
|
}
|
|
10654
|
+
this.cdr.markForCheck();
|
|
10644
10655
|
this.closePopup();
|
|
10645
10656
|
open = isPresent(open) ? open : !this.isOpen;
|
|
10646
10657
|
if (open) {
|
|
@@ -10775,7 +10786,8 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10775
10786
|
focusFirstElement() {
|
|
10776
10787
|
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
10777
10788
|
if (this.flatColorPicker) {
|
|
10778
|
-
const
|
|
10789
|
+
const gradient = this.flatColorPicker.gradient;
|
|
10790
|
+
const elementToFocus = gradient ? gradient.gradientDragHandle :
|
|
10779
10791
|
this.flatColorPicker.palette.host;
|
|
10780
10792
|
elementToFocus.nativeElement.focus();
|
|
10781
10793
|
}
|
|
@@ -10813,7 +10825,8 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10813
10825
|
}
|
|
10814
10826
|
get firstFocusableElement() {
|
|
10815
10827
|
if (!this.flatColorPicker.header || (this.views.length <= 1 && !this.flatColorPicker.clearButton)) {
|
|
10816
|
-
|
|
10828
|
+
const gradient = this.flatColorPicker.gradient;
|
|
10829
|
+
return gradient ? gradient.gradientDragHandle : this.flatColorPicker.palette.host;
|
|
10817
10830
|
}
|
|
10818
10831
|
return this.views.length > 1 ? this.flatColorPicker.header.viewButtonsCollection.toArray()[0] : this.flatColorPicker.header.clearButtonElement;
|
|
10819
10832
|
}
|
|
@@ -10824,7 +10837,12 @@ let ColorPickerComponent = ColorPickerComponent_1 = class ColorPickerComponent {
|
|
|
10824
10837
|
if (this.flatColorPicker.palette) {
|
|
10825
10838
|
return this.flatColorPicker.palette.host;
|
|
10826
10839
|
}
|
|
10827
|
-
|
|
10840
|
+
const gradient = this.flatColorPicker.gradient;
|
|
10841
|
+
const inputs = gradient && gradient.inputs;
|
|
10842
|
+
if (gradient && inputs && inputs.formatView === 'hex') {
|
|
10843
|
+
return inputs.hexInput;
|
|
10844
|
+
}
|
|
10845
|
+
return this.gradientSettings.opacity ? inputs.opacityInput.numericInput : inputs.blueInput;
|
|
10828
10846
|
}
|
|
10829
10847
|
handleDomEvents(action, events) {
|
|
10830
10848
|
const hostElement = this.host.nativeElement;
|
|
@@ -11111,9 +11129,8 @@ ColorPickerComponent = ColorPickerComponent_1 = __decorate([
|
|
|
11111
11129
|
</span>
|
|
11112
11130
|
</span>
|
|
11113
11131
|
<button
|
|
11114
|
-
#arrowButton
|
|
11115
11132
|
tabindex="-1"
|
|
11116
|
-
|
|
11133
|
+
type="button"
|
|
11117
11134
|
class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">
|
|
11118
11135
|
<span class="k-button-icon k-icon k-i-arrow-s"></span>
|
|
11119
11136
|
</button>
|
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: 1643126009,
|
|
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
|
};
|
|
@@ -7252,6 +7252,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7252
7252
|
tabbing = false;
|
|
7253
7253
|
}
|
|
7254
7254
|
}));
|
|
7255
|
+
_this.handleFlow();
|
|
7255
7256
|
});
|
|
7256
7257
|
var stylingInputs = ['size', 'rounded', 'fillMode'];
|
|
7257
7258
|
stylingInputs.forEach(function (input) {
|
|
@@ -7277,6 +7278,9 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7277
7278
|
TextAreaComponent.prototype.ngOnChanges = function (changes) {
|
|
7278
7279
|
var hostElement = this.hostElement.nativeElement;
|
|
7279
7280
|
var element = this.input.nativeElement;
|
|
7281
|
+
if (changes.flow) {
|
|
7282
|
+
this.handleFlow();
|
|
7283
|
+
}
|
|
7280
7284
|
if (changes.resizable) {
|
|
7281
7285
|
if (this.resizable === 'auto') {
|
|
7282
7286
|
this.initialHeight = element.offsetHeight;
|
|
@@ -7440,6 +7444,16 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7440
7444
|
this.renderer.addClass(elem, classes.toAdd);
|
|
7441
7445
|
}
|
|
7442
7446
|
};
|
|
7447
|
+
TextAreaComponent.prototype.handleFlow = function () {
|
|
7448
|
+
var isVertical = this.flow === 'vertical';
|
|
7449
|
+
var hostElement = this.hostElement.nativeElement;
|
|
7450
|
+
var element = this.input.nativeElement;
|
|
7451
|
+
var suffix = hostElement.children[1];
|
|
7452
|
+
this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
|
|
7453
|
+
if (suffix) {
|
|
7454
|
+
this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
|
|
7455
|
+
}
|
|
7456
|
+
};
|
|
7443
7457
|
var TextAreaComponent_1;
|
|
7444
7458
|
__decorate([
|
|
7445
7459
|
Input(),
|
|
@@ -7451,12 +7465,12 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7451
7465
|
__metadata("design:type", Boolean)
|
|
7452
7466
|
], TextAreaComponent.prototype, "hostClasses", void 0);
|
|
7453
7467
|
__decorate([
|
|
7454
|
-
HostBinding('class
|
|
7468
|
+
HostBinding('class.\!k-flex-col'),
|
|
7455
7469
|
__metadata("design:type", Boolean),
|
|
7456
7470
|
__metadata("design:paramtypes", [])
|
|
7457
7471
|
], TextAreaComponent.prototype, "flowCol", null);
|
|
7458
7472
|
__decorate([
|
|
7459
|
-
HostBinding('class
|
|
7473
|
+
HostBinding('class.\!k-flex-row'),
|
|
7460
7474
|
__metadata("design:type", Boolean),
|
|
7461
7475
|
__metadata("design:paramtypes", [])
|
|
7462
7476
|
], TextAreaComponent.prototype, "flowRow", null);
|
|
@@ -7531,7 +7545,7 @@ var TextAreaComponent = /** @class */ (function (_super) {
|
|
|
7531
7545
|
],
|
|
7532
7546
|
selector: 'kendo-textarea',
|
|
7533
7547
|
template: "\n <textarea\n #input\n [attr.aria-multiline]=\"true\"\n [attr.aria-disabled]=\"disabled ? true : undefined\"\n [attr.aria-readonly]=\"readonly ? true : undefined\"\n class=\"k-input-inner\"\n [ngClass]=\"resizableClass\"\n [id]=\"focusableId\"\n [value]=\"value\"\n [attr.placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly\"\n [attr.rows]=\"rows\"\n [attr.cols]=\"cols\"\n [attr.tabindex]=\"tabIndex\"\n [attr.title]=\"title\"\n [attr.maxlength]=\"maxlength\"\n [kendoEventsOutsideAngular]=\"{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}\">\n </textarea>\n <ng-content select=\"kendo-textarea-suffix\"></ng-content>\n ",
|
|
7534
|
-
styles: ["\n :host
|
|
7548
|
+
styles: ["\n :host {\n display: inline-flex;\n }\n "]
|
|
7535
7549
|
}),
|
|
7536
7550
|
__metadata("design:paramtypes", [LocalizationService,
|
|
7537
7551
|
NgZone,
|
|
@@ -7565,7 +7579,7 @@ var TextAreaSuffixComponent = /** @class */ (function () {
|
|
|
7565
7579
|
this.hostClass = true;
|
|
7566
7580
|
}
|
|
7567
7581
|
__decorate([
|
|
7568
|
-
HostBinding('class.k-
|
|
7582
|
+
HostBinding('class.k-input-suffix'),
|
|
7569
7583
|
__metadata("design:type", Boolean)
|
|
7570
7584
|
], TextAreaSuffixComponent.prototype, "hostClass", void 0);
|
|
7571
7585
|
TextAreaSuffixComponent = __decorate([
|
|
@@ -8323,7 +8337,7 @@ var ColorInputComponent = /** @class */ (function () {
|
|
|
8323
8337
|
ColorInputComponent = __decorate([
|
|
8324
8338
|
Component({
|
|
8325
8339
|
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 "
|
|
8340
|
+
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
8341
|
}),
|
|
8328
8342
|
__metadata("design:paramtypes", [ElementRef,
|
|
8329
8343
|
Renderer2,
|
|
@@ -9652,7 +9666,7 @@ var FlatColorPickerHeaderComponent = /** @class */ (function () {
|
|
|
9652
9666
|
FlatColorPickerHeaderComponent = __decorate([
|
|
9653
9667
|
Component({
|
|
9654
9668
|
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 "
|
|
9669
|
+
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
9670
|
}),
|
|
9657
9671
|
__metadata("design:paramtypes", [LocalizationService])
|
|
9658
9672
|
], FlatColorPickerHeaderComponent);
|
|
@@ -9695,7 +9709,7 @@ var FlatColorPickerActionButtonsComponent = /** @class */ (function () {
|
|
|
9695
9709
|
FlatColorPickerActionButtonsComponent = __decorate([
|
|
9696
9710
|
Component({
|
|
9697
9711
|
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 "
|
|
9712
|
+
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
9713
|
}),
|
|
9700
9714
|
__metadata("design:paramtypes", [LocalizationService])
|
|
9701
9715
|
], FlatColorPickerActionButtonsComponent);
|
|
@@ -10693,12 +10707,6 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10693
10707
|
_this.isFocused = false;
|
|
10694
10708
|
});
|
|
10695
10709
|
};
|
|
10696
|
-
/**
|
|
10697
|
-
* @hidden
|
|
10698
|
-
*/
|
|
10699
|
-
ColorPickerComponent.prototype.arrowButtonMouseDown = function (ev) {
|
|
10700
|
-
ev.preventDefault();
|
|
10701
|
-
};
|
|
10702
10710
|
/**
|
|
10703
10711
|
* Clears the value of the ColorPicker.
|
|
10704
10712
|
*/
|
|
@@ -10720,6 +10728,7 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10720
10728
|
if (this.disabled || this.readonly) {
|
|
10721
10729
|
return;
|
|
10722
10730
|
}
|
|
10731
|
+
this.cdr.markForCheck();
|
|
10723
10732
|
this.closePopup();
|
|
10724
10733
|
open = isPresent(open) ? open : !this.isOpen;
|
|
10725
10734
|
if (open) {
|
|
@@ -10857,7 +10866,8 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10857
10866
|
var _this = this;
|
|
10858
10867
|
this.ngZone.onStable.pipe(take(1)).subscribe(function () {
|
|
10859
10868
|
if (_this.flatColorPicker) {
|
|
10860
|
-
var
|
|
10869
|
+
var gradient = _this.flatColorPicker.gradient;
|
|
10870
|
+
var elementToFocus = gradient ? gradient.gradientDragHandle :
|
|
10861
10871
|
_this.flatColorPicker.palette.host;
|
|
10862
10872
|
elementToFocus.nativeElement.focus();
|
|
10863
10873
|
}
|
|
@@ -10897,7 +10907,8 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10897
10907
|
Object.defineProperty(ColorPickerComponent.prototype, "firstFocusableElement", {
|
|
10898
10908
|
get: function () {
|
|
10899
10909
|
if (!this.flatColorPicker.header || (this.views.length <= 1 && !this.flatColorPicker.clearButton)) {
|
|
10900
|
-
|
|
10910
|
+
var gradient = this.flatColorPicker.gradient;
|
|
10911
|
+
return gradient ? gradient.gradientDragHandle : this.flatColorPicker.palette.host;
|
|
10901
10912
|
}
|
|
10902
10913
|
return this.views.length > 1 ? this.flatColorPicker.header.viewButtonsCollection.toArray()[0] : this.flatColorPicker.header.clearButtonElement;
|
|
10903
10914
|
},
|
|
@@ -10912,7 +10923,12 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
10912
10923
|
if (this.flatColorPicker.palette) {
|
|
10913
10924
|
return this.flatColorPicker.palette.host;
|
|
10914
10925
|
}
|
|
10915
|
-
|
|
10926
|
+
var gradient = this.flatColorPicker.gradient;
|
|
10927
|
+
var inputs = gradient && gradient.inputs;
|
|
10928
|
+
if (gradient && inputs && inputs.formatView === 'hex') {
|
|
10929
|
+
return inputs.hexInput;
|
|
10930
|
+
}
|
|
10931
|
+
return this.gradientSettings.opacity ? inputs.opacityInput.numericInput : inputs.blueInput;
|
|
10916
10932
|
},
|
|
10917
10933
|
enumerable: true,
|
|
10918
10934
|
configurable: true
|
|
@@ -11160,7 +11176,7 @@ var ColorPickerComponent = /** @class */ (function () {
|
|
|
11160
11176
|
useValue: 'kendo.colorpicker'
|
|
11161
11177
|
}
|
|
11162
11178
|
],
|
|
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
|
|
11179
|
+
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
11180
|
}),
|
|
11165
11181
|
__metadata("design:paramtypes", [ElementRef,
|
|
11166
11182
|
PopupService,
|
|
@@ -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);
|