@progress/kendo-angular-inputs 11.0.0-develop.95 → 11.0.0-develop.97
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/colorpicker/color-gradient.component.d.ts +5 -0
- package/colorpicker/color-input.component.d.ts +5 -0
- package/colorpicker/colorpicker.component.d.ts +18 -4
- package/colorpicker/contrast-validation.component.d.ts +3 -0
- package/colorpicker/contrast.component.d.ts +3 -0
- package/colorpicker/flatcolorpicker-header.component.d.ts +10 -3
- package/colorpicker.module.d.ts +3 -1
- package/esm2020/colorpicker/color-gradient.component.mjs +34 -17
- package/esm2020/colorpicker/color-input.component.mjs +29 -14
- package/esm2020/colorpicker/colorpicker.component.mjs +77 -18
- package/esm2020/colorpicker/contrast-validation.component.mjs +10 -6
- package/esm2020/colorpicker/contrast.component.mjs +13 -9
- package/esm2020/colorpicker/flatcolorpicker-header.component.mjs +54 -25
- package/esm2020/colorpicker.module.mjs +11 -3
- package/esm2020/numerictextbox/numerictextbox.component.mjs +47 -16
- package/esm2020/numerictextbox.module.mjs +4 -3
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/signature/signature.component.mjs +17 -0
- package/esm2020/signature.module.mjs +7 -3
- package/esm2020/slider/slider.component.mjs +73 -42
- package/esm2020/slider.module.mjs +5 -3
- package/esm2020/textbox/textbox.component.mjs +92 -20
- package/esm2020/textbox.module.mjs +4 -3
- package/fesm2015/progress-kendo-angular-inputs.mjs +427 -157
- package/fesm2020/progress-kendo-angular-inputs.mjs +427 -157
- package/numerictextbox/numerictextbox.component.d.ts +9 -0
- package/numerictextbox.module.d.ts +2 -1
- package/package.json +9 -8
- package/schematics/ngAdd/index.js +4 -2
- package/signature/signature.component.d.ts +8 -0
- package/signature.module.d.ts +2 -1
- package/slider/slider.component.d.ts +17 -0
- package/slider.module.d.ts +4 -2
- package/textbox/textbox.component.d.ts +18 -1
- package/textbox.module.d.ts +4 -3
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { Renderer2, Component, ElementRef, Input, ViewChild, forwardRef, NgZone, Injector, ChangeDetectorRef } from '@angular/core';
|
|
6
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
8
|
import { fromEvent, interval, merge } from 'rxjs';
|
|
@@ -10,16 +11,18 @@ import { trimValue } from '../sliders-common/sliders-util';
|
|
|
10
11
|
import { SliderModel } from './slider-model';
|
|
11
12
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
13
|
import { areSame, isPresent, requiresZoneOnBlur } from '../common/utils';
|
|
13
|
-
import {
|
|
14
|
+
import { eventValue, decreaseValueToStep, increaseValueToStep } from '../sliders-common/sliders-util';
|
|
14
15
|
import { invokeElementMethod } from '../common/dom-utils';
|
|
15
16
|
import { guid, isDocumentAvailable, hasObservers, KendoInput, anyChanged, Keys } from '@progress/kendo-angular-common';
|
|
16
17
|
import { SliderBase } from '../sliders-common/slider-base';
|
|
18
|
+
import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
|
|
17
19
|
import * as i0 from "@angular/core";
|
|
18
20
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
19
|
-
import * as i2 from "
|
|
20
|
-
import * as i3 from "
|
|
21
|
-
import * as i4 from "
|
|
22
|
-
import * as i5 from "
|
|
21
|
+
import * as i2 from "@progress/kendo-angular-buttons";
|
|
22
|
+
import * as i3 from "../sliders-common/slider-ticks.component";
|
|
23
|
+
import * as i4 from "@progress/kendo-angular-common";
|
|
24
|
+
import * as i5 from "./localization/localized-slider-messages.directive";
|
|
25
|
+
import * as i6 from "@angular/common";
|
|
23
26
|
const PRESSED = 'k-pressed';
|
|
24
27
|
/**
|
|
25
28
|
* Represents the [Kendo UI Slider component for Angular]({% slug overview_slider %}).
|
|
@@ -52,13 +55,29 @@ export class SliderComponent extends SliderBase {
|
|
|
52
55
|
* The component can use either NgModel or the `value` binding but not both of them at the same time.
|
|
53
56
|
*/
|
|
54
57
|
this.value = this.min;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
this.arrowUpIcon = caretAltUpIcon;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
this.arrowLeftIcon = caretAltLeftIcon;
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
*/
|
|
73
|
+
this.arrowRightIcon = caretAltRightIcon;
|
|
55
74
|
this.focusChangedProgrammatically = false;
|
|
56
75
|
/**
|
|
57
76
|
* @hidden
|
|
58
77
|
*/
|
|
59
78
|
this.onWrapClick = (args) => {
|
|
60
79
|
const target = args.target;
|
|
61
|
-
if (!this.isDisabled && !(
|
|
80
|
+
if (!this.isDisabled && !(target.closest('.k-button'))) {
|
|
62
81
|
const value = eventValue(args, this.track.nativeElement, this.getProps());
|
|
63
82
|
this.changeValue(value);
|
|
64
83
|
}
|
|
@@ -393,7 +412,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
393
412
|
{ provide: L10N_PREFIX, useValue: 'kendo.slider' },
|
|
394
413
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent) },
|
|
395
414
|
{ provide: KendoInput, useExisting: forwardRef(() => SliderComponent) }
|
|
396
|
-
], viewQueries: [{ propertyName: "draghandle", first: true, predicate: ["draghandle"], descendants: true, static: true }, { propertyName: "decreaseButton", first: true, predicate: ["decreaseButton"], descendants: true }, { propertyName: "increaseButton", first: true, predicate: ["increaseButton"], descendants: true }], exportAs: ["kendoSlider"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
415
|
+
], viewQueries: [{ propertyName: "draghandle", first: true, predicate: ["draghandle"], descendants: true, static: true }, { propertyName: "decreaseButton", first: true, predicate: ["decreaseButton"], descendants: true, read: ElementRef }, { propertyName: "increaseButton", first: true, predicate: ["increaseButton"], descendants: true, read: ElementRef }], exportAs: ["kendoSlider"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
397
416
|
<ng-container kendoSliderLocalizedMessages
|
|
398
417
|
i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."
|
|
399
418
|
increment="increment"
|
|
@@ -408,16 +427,19 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
408
427
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
409
428
|
[kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
|
|
410
429
|
>
|
|
411
|
-
<button
|
|
412
|
-
|
|
430
|
+
<button
|
|
431
|
+
kendoButton
|
|
432
|
+
#decreaseButton
|
|
433
|
+
*ngIf="showButtons"
|
|
434
|
+
type="button"
|
|
435
|
+
rounded="full"
|
|
436
|
+
[icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
|
|
437
|
+
[svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
|
|
438
|
+
class="k-button-decrease"
|
|
413
439
|
[title]="decrementMessage"
|
|
414
440
|
[attr.tabindex]="-1"
|
|
415
|
-
role="presentation"
|
|
416
|
-
|
|
417
|
-
[class.k-i-caret-alt-left]="!vertical"
|
|
418
|
-
[class.k-i-caret-alt-down]="vertical">
|
|
419
|
-
</span>
|
|
420
|
-
</button>
|
|
441
|
+
role="presentation"
|
|
442
|
+
></button>
|
|
421
443
|
<div class="k-slider-track-wrap">
|
|
422
444
|
<ul kendoSliderTicks
|
|
423
445
|
#ticks
|
|
@@ -456,21 +478,24 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
456
478
|
></span>
|
|
457
479
|
</div>
|
|
458
480
|
</div>
|
|
459
|
-
<button
|
|
460
|
-
|
|
481
|
+
<button
|
|
482
|
+
kendoButton
|
|
483
|
+
#increaseButton
|
|
484
|
+
*ngIf="showButtons"
|
|
485
|
+
type="button"
|
|
486
|
+
rounded="full"
|
|
487
|
+
[icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
|
|
488
|
+
[svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
|
|
489
|
+
class="k-button-increase"
|
|
461
490
|
[title]="incrementMessage"
|
|
462
491
|
(click)="$event.preventDefault()"
|
|
463
492
|
[attr.tabindex]="-1"
|
|
464
493
|
[attr.aria-label]="currentValue"
|
|
465
|
-
role="presentation"
|
|
466
|
-
|
|
467
|
-
[class.k-i-caret-alt-right]="!vertical"
|
|
468
|
-
[class.k-i-caret-alt-up]="vertical">
|
|
469
|
-
</span>
|
|
470
|
-
</button>
|
|
494
|
+
role="presentation"
|
|
495
|
+
></button>
|
|
471
496
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
472
497
|
</div>
|
|
473
|
-
`, isInline: true, components: [{ type: i2.SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type:
|
|
498
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i4.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: i5.LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i4.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
474
499
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderComponent, decorators: [{
|
|
475
500
|
type: Component,
|
|
476
501
|
args: [{
|
|
@@ -497,16 +522,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
497
522
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
498
523
|
[kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
|
|
499
524
|
>
|
|
500
|
-
<button
|
|
501
|
-
|
|
525
|
+
<button
|
|
526
|
+
kendoButton
|
|
527
|
+
#decreaseButton
|
|
528
|
+
*ngIf="showButtons"
|
|
529
|
+
type="button"
|
|
530
|
+
rounded="full"
|
|
531
|
+
[icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
|
|
532
|
+
[svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
|
|
533
|
+
class="k-button-decrease"
|
|
502
534
|
[title]="decrementMessage"
|
|
503
535
|
[attr.tabindex]="-1"
|
|
504
|
-
role="presentation"
|
|
505
|
-
|
|
506
|
-
[class.k-i-caret-alt-left]="!vertical"
|
|
507
|
-
[class.k-i-caret-alt-down]="vertical">
|
|
508
|
-
</span>
|
|
509
|
-
</button>
|
|
536
|
+
role="presentation"
|
|
537
|
+
></button>
|
|
510
538
|
<div class="k-slider-track-wrap">
|
|
511
539
|
<ul kendoSliderTicks
|
|
512
540
|
#ticks
|
|
@@ -545,18 +573,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
545
573
|
></span>
|
|
546
574
|
</div>
|
|
547
575
|
</div>
|
|
548
|
-
<button
|
|
549
|
-
|
|
576
|
+
<button
|
|
577
|
+
kendoButton
|
|
578
|
+
#increaseButton
|
|
579
|
+
*ngIf="showButtons"
|
|
580
|
+
type="button"
|
|
581
|
+
rounded="full"
|
|
582
|
+
[icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
|
|
583
|
+
[svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
|
|
584
|
+
class="k-button-increase"
|
|
550
585
|
[title]="incrementMessage"
|
|
551
586
|
(click)="$event.preventDefault()"
|
|
552
587
|
[attr.tabindex]="-1"
|
|
553
588
|
[attr.aria-label]="currentValue"
|
|
554
|
-
role="presentation"
|
|
555
|
-
|
|
556
|
-
[class.k-i-caret-alt-right]="!vertical"
|
|
557
|
-
[class.k-i-caret-alt-up]="vertical">
|
|
558
|
-
</span>
|
|
559
|
-
</button>
|
|
589
|
+
role="presentation"
|
|
590
|
+
></button>
|
|
560
591
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
561
592
|
</div>
|
|
562
593
|
`
|
|
@@ -582,8 +613,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
582
613
|
args: ['draghandle', { static: true }]
|
|
583
614
|
}], decreaseButton: [{
|
|
584
615
|
type: ViewChild,
|
|
585
|
-
args: ['decreaseButton', {
|
|
616
|
+
args: ['decreaseButton', { read: ElementRef }]
|
|
586
617
|
}], increaseButton: [{
|
|
587
618
|
type: ViewChild,
|
|
588
|
-
args: ['increaseButton', {
|
|
619
|
+
args: ['increaseButton', { read: ElementRef }]
|
|
589
620
|
}] } });
|
|
@@ -9,6 +9,8 @@ import { SlidersCommonModule } from './sliders-common/sliders-common.module';
|
|
|
9
9
|
import { LocalizedSliderMessagesDirective } from './slider/localization/localized-slider-messages.directive';
|
|
10
10
|
import { SliderCustomMessagesComponent } from './slider/localization/custom-messages.component';
|
|
11
11
|
import { LabelTemplateDirective } from './sliders-common/label-template.directive';
|
|
12
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
13
|
+
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
15
|
/**
|
|
14
16
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
@@ -47,11 +49,11 @@ export class SliderModule {
|
|
|
47
49
|
SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
50
|
SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, declarations: [SliderComponent,
|
|
49
51
|
SliderCustomMessagesComponent,
|
|
50
|
-
LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule], exports: [SliderComponent,
|
|
52
|
+
LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule], exports: [SliderComponent,
|
|
51
53
|
SliderCustomMessagesComponent,
|
|
52
54
|
LabelTemplateDirective,
|
|
53
55
|
LocalizedSliderMessagesDirective] });
|
|
54
|
-
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, imports: [[CommonModule, SlidersCommonModule]] });
|
|
56
|
+
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, imports: [[CommonModule, SlidersCommonModule, IconsModule, ButtonModule]] });
|
|
55
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, decorators: [{
|
|
56
58
|
type: NgModule,
|
|
57
59
|
args: [{
|
|
@@ -66,6 +68,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
66
68
|
LabelTemplateDirective,
|
|
67
69
|
LocalizedSliderMessagesDirective
|
|
68
70
|
],
|
|
69
|
-
imports: [CommonModule, SlidersCommonModule]
|
|
71
|
+
imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule]
|
|
70
72
|
}]
|
|
71
73
|
}] });
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
6
|
import { isJapanese } from './../shared/utils';
|
|
6
7
|
import { closest } from './../common/dom-utils';
|
|
7
8
|
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
@@ -15,15 +16,18 @@ import { TextBoxSuffixTemplateDirective } from './textbox-suffix.directive';
|
|
|
15
16
|
import { TextBoxPrefixTemplateDirective } from './textbox-prefix.directive';
|
|
16
17
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
17
18
|
import { isSafari } from '../shared/utils';
|
|
19
|
+
import { checkIcon, exclamationCircleIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
18
20
|
import * as i0 from "@angular/core";
|
|
19
21
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
20
|
-
import * as i2 from "
|
|
21
|
-
import * as i3 from "
|
|
22
|
-
import * as i4 from "@
|
|
22
|
+
import * as i2 from "@progress/kendo-angular-icons";
|
|
23
|
+
import * as i3 from "./localization/localized-textbox-messages.directive";
|
|
24
|
+
import * as i4 from "@angular/common";
|
|
25
|
+
import * as i5 from "@progress/kendo-angular-common";
|
|
23
26
|
const FOCUSED = 'k-focus';
|
|
24
27
|
const DEFAULT_SIZE = 'medium';
|
|
25
28
|
const DEFAULT_ROUNDED = 'medium';
|
|
26
29
|
const DEFAULT_FILL_MODE = 'solid';
|
|
30
|
+
const iconsMap = { checkIcon, exclamationCircleIcon, xIcon };
|
|
27
31
|
export class TextBoxComponent {
|
|
28
32
|
constructor(localizationService, ngZone, changeDetector, renderer, injector, hostElement) {
|
|
29
33
|
this.localizationService = localizationService;
|
|
@@ -357,6 +361,12 @@ export class TextBoxComponent {
|
|
|
357
361
|
this.subscriptions.unsubscribe();
|
|
358
362
|
}
|
|
359
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* @hidden
|
|
366
|
+
*/
|
|
367
|
+
svgIcon(name) {
|
|
368
|
+
return iconsMap[name];
|
|
369
|
+
}
|
|
360
370
|
/**
|
|
361
371
|
* Focuses the TextBox.
|
|
362
372
|
*
|
|
@@ -483,25 +493,49 @@ export class TextBoxComponent {
|
|
|
483
493
|
* @hidden
|
|
484
494
|
*/
|
|
485
495
|
get successIconClasses() {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
496
|
+
if (!this.successIcon) {
|
|
497
|
+
return `check`;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* @hidden
|
|
502
|
+
*/
|
|
503
|
+
get customSuccessIconClasses() {
|
|
504
|
+
if (this.successIcon) {
|
|
505
|
+
return this.successIcon;
|
|
506
|
+
}
|
|
489
507
|
}
|
|
490
508
|
/**
|
|
491
509
|
* @hidden
|
|
492
510
|
*/
|
|
493
511
|
get errorIconClasses() {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
512
|
+
if (!this.errorIcon) {
|
|
513
|
+
return `exclamation-circle`;
|
|
514
|
+
}
|
|
497
515
|
}
|
|
498
516
|
/**
|
|
499
517
|
* @hidden
|
|
500
518
|
*/
|
|
501
|
-
get
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
519
|
+
get customIconClasses() {
|
|
520
|
+
if (this.errorIcon) {
|
|
521
|
+
return this.errorIcon;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* @hidden
|
|
526
|
+
*/
|
|
527
|
+
get customClearButtonClasses() {
|
|
528
|
+
if (this.clearButtonIcon) {
|
|
529
|
+
return this.clearButtonIcon;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* @hidden
|
|
534
|
+
*/
|
|
535
|
+
get clearButtonClass() {
|
|
536
|
+
if (!this.clearButtonIcon) {
|
|
537
|
+
return 'x';
|
|
538
|
+
}
|
|
505
539
|
}
|
|
506
540
|
/**
|
|
507
541
|
* @hidden
|
|
@@ -622,17 +656,36 @@ TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
622
656
|
[title]="clearTitle()"
|
|
623
657
|
(keydown.enter)="clearValue($event)"
|
|
624
658
|
(keydown.space)="clearValue($event)">
|
|
625
|
-
<
|
|
659
|
+
<kendo-icon-wrapper
|
|
660
|
+
[name]="clearButtonClass"
|
|
661
|
+
[customFontClass]="customClearButtonClasses"
|
|
662
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
663
|
+
>
|
|
664
|
+
</kendo-icon-wrapper>
|
|
626
665
|
</span>
|
|
627
|
-
<
|
|
628
|
-
|
|
666
|
+
<kendo-icon-wrapper
|
|
667
|
+
*ngIf="hasErrors"
|
|
668
|
+
innerCssClass="k-input-validation-icon"
|
|
669
|
+
[name]="errorIconClasses"
|
|
670
|
+
[customFontClass]="customIconClasses"
|
|
671
|
+
[svgIcon]="svgIcon('exclamationCircleIcon')"
|
|
672
|
+
>
|
|
673
|
+
</kendo-icon-wrapper>
|
|
674
|
+
<kendo-icon-wrapper
|
|
675
|
+
*ngIf="isSuccessful"
|
|
676
|
+
innerCssClass="k-input-validation-icon"
|
|
677
|
+
[name]="successIconClasses"
|
|
678
|
+
[customFontClass]="customSuccessIconClasses"
|
|
679
|
+
[svgIcon]="svgIcon('checkIcon')"
|
|
680
|
+
>
|
|
681
|
+
</kendo-icon-wrapper>
|
|
629
682
|
<span class="k-input-suffix">
|
|
630
683
|
<ng-template
|
|
631
684
|
*ngIf="suffixTemplate"
|
|
632
685
|
[ngTemplateOutlet]="suffixTemplate?.templateRef">
|
|
633
686
|
</ng-template>
|
|
634
687
|
</span>
|
|
635
|
-
`, isInline: true,
|
|
688
|
+
`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]" }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
636
689
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxComponent, decorators: [{
|
|
637
690
|
type: Component,
|
|
638
691
|
args: [{
|
|
@@ -686,10 +739,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
686
739
|
[title]="clearTitle()"
|
|
687
740
|
(keydown.enter)="clearValue($event)"
|
|
688
741
|
(keydown.space)="clearValue($event)">
|
|
689
|
-
<
|
|
742
|
+
<kendo-icon-wrapper
|
|
743
|
+
[name]="clearButtonClass"
|
|
744
|
+
[customFontClass]="customClearButtonClasses"
|
|
745
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
746
|
+
>
|
|
747
|
+
</kendo-icon-wrapper>
|
|
690
748
|
</span>
|
|
691
|
-
<
|
|
692
|
-
|
|
749
|
+
<kendo-icon-wrapper
|
|
750
|
+
*ngIf="hasErrors"
|
|
751
|
+
innerCssClass="k-input-validation-icon"
|
|
752
|
+
[name]="errorIconClasses"
|
|
753
|
+
[customFontClass]="customIconClasses"
|
|
754
|
+
[svgIcon]="svgIcon('exclamationCircleIcon')"
|
|
755
|
+
>
|
|
756
|
+
</kendo-icon-wrapper>
|
|
757
|
+
<kendo-icon-wrapper
|
|
758
|
+
*ngIf="isSuccessful"
|
|
759
|
+
innerCssClass="k-input-validation-icon"
|
|
760
|
+
[name]="successIconClasses"
|
|
761
|
+
[customFontClass]="customSuccessIconClasses"
|
|
762
|
+
[svgIcon]="svgIcon('checkIcon')"
|
|
763
|
+
>
|
|
764
|
+
</kendo-icon-wrapper>
|
|
693
765
|
<span class="k-input-suffix">
|
|
694
766
|
<ng-template
|
|
695
767
|
*ngIf="suffixTemplate"
|
|
@@ -12,6 +12,7 @@ import { TextBoxPrefixTemplateDirective } from './textbox/textbox-prefix.directi
|
|
|
12
12
|
import { TextBoxCustomMessagesComponent } from './textbox/localization/custom-messages.component';
|
|
13
13
|
import { LocalizedTextBoxMessagesDirective } from './textbox/localization/localized-textbox-messages.directive';
|
|
14
14
|
import { SharedModule, SHARED_DIRECTIVES } from './shared.module';
|
|
15
|
+
import { IconsModule } from "@progress/kendo-angular-icons";
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
import * as i1 from "./shared/input-separator.component";
|
|
17
18
|
import * as i2 from "./shared/textarea.directive";
|
|
@@ -54,14 +55,14 @@ TextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
54
55
|
TextBoxSuffixTemplateDirective,
|
|
55
56
|
TextBoxPrefixTemplateDirective,
|
|
56
57
|
TextBoxCustomMessagesComponent,
|
|
57
|
-
LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule], exports: [TextBoxDirective,
|
|
58
|
+
LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule, IconsModule], exports: [TextBoxDirective,
|
|
58
59
|
TextBoxComponent,
|
|
59
60
|
TextBoxSuffixTemplateDirective,
|
|
60
61
|
TextBoxPrefixTemplateDirective,
|
|
61
62
|
EventsModule,
|
|
62
63
|
TextBoxCustomMessagesComponent,
|
|
63
64
|
LocalizedTextBoxMessagesDirective, i1.InputSeparatorComponent, i2.TextAreaDirective] });
|
|
64
|
-
TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, imports: [[CommonModule, EventsModule, SharedModule], EventsModule] });
|
|
65
|
+
TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, imports: [[CommonModule, EventsModule, SharedModule, IconsModule], EventsModule] });
|
|
65
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, decorators: [{
|
|
66
67
|
type: NgModule,
|
|
67
68
|
args: [{
|
|
@@ -83,6 +84,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
83
84
|
LocalizedTextBoxMessagesDirective,
|
|
84
85
|
SHARED_DIRECTIVES
|
|
85
86
|
],
|
|
86
|
-
imports: [CommonModule, EventsModule, SharedModule]
|
|
87
|
+
imports: [CommonModule, EventsModule, SharedModule, IconsModule]
|
|
87
88
|
}]
|
|
88
89
|
}] });
|