@progress/kendo-angular-inputs 11.0.0-develop.94 → 11.0.0-develop.96
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
|
@@ -10,17 +10,20 @@ import { take, filter, concatMap, startWith, takeUntil, skip, debounceTime, thro
|
|
|
10
10
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import * as i3 from '@progress/kendo-angular-common';
|
|
13
|
-
import { Keys, guid, hasObservers, anyChanged, isDocumentAvailable, KendoInput, isChanged, DraggableModule, EventsModule, ResizeSensorModule, PreventableEvent, findFocusableChild, closest as closest$1 } from '@progress/kendo-angular-common';
|
|
13
|
+
import { Keys, guid, hasObservers, anyChanged, isDocumentAvailable, KendoInput, isChanged, DraggableModule, EventsModule, ResizeSensorModule, PreventableEvent, findFocusableChild, parseCSSClassNames, closest as closest$1 } from '@progress/kendo-angular-common';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
|
+
import { caretAltUpIcon, caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, checkIcon, exclamationCircleIcon, xIcon, caretAltExpandIcon, xCircleIcon, dropletSlashIcon, dropletSliderIcon, paletteIcon, hyperlinkOpenIcon } from '@progress/kendo-svg-icons';
|
|
16
|
+
import * as i2 from '@progress/kendo-angular-buttons';
|
|
17
|
+
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
15
18
|
import * as i1$1 from '@angular/common';
|
|
16
19
|
import { CommonModule } from '@angular/common';
|
|
17
20
|
import { browser, mobileOS, detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
|
|
18
21
|
import * as i1$2 from '@progress/kendo-angular-intl';
|
|
22
|
+
import * as i2$1 from '@progress/kendo-angular-icons';
|
|
23
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
19
24
|
import * as i1$3 from '@progress/kendo-angular-popup';
|
|
20
25
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
21
26
|
import { parseColor as parseColor$1, Color, namedColors } from '@progress/kendo-drawing';
|
|
22
|
-
import * as i2 from '@progress/kendo-angular-buttons';
|
|
23
|
-
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
24
27
|
import * as i3$1 from '@progress/kendo-angular-dialog';
|
|
25
28
|
import { DialogsModule } from '@progress/kendo-angular-dialog';
|
|
26
29
|
import { SignaturePad } from '@progress/kendo-inputs-common';
|
|
@@ -535,7 +538,7 @@ const packageMetadata = {
|
|
|
535
538
|
name: '@progress/kendo-angular-inputs',
|
|
536
539
|
productName: 'Kendo UI for Angular',
|
|
537
540
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
538
|
-
publishDate:
|
|
541
|
+
publishDate: 1673446165,
|
|
539
542
|
version: '',
|
|
540
543
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
541
544
|
};
|
|
@@ -989,6 +992,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
989
992
|
}]
|
|
990
993
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
991
994
|
|
|
995
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
992
996
|
const PRESSED$1 = 'k-pressed';
|
|
993
997
|
/**
|
|
994
998
|
* Represents the [Kendo UI Slider component for Angular]({% slug overview_slider %}).
|
|
@@ -1021,13 +1025,29 @@ class SliderComponent extends SliderBase {
|
|
|
1021
1025
|
* The component can use either NgModel or the `value` binding but not both of them at the same time.
|
|
1022
1026
|
*/
|
|
1023
1027
|
this.value = this.min;
|
|
1028
|
+
/**
|
|
1029
|
+
* @hidden
|
|
1030
|
+
*/
|
|
1031
|
+
this.arrowUpIcon = caretAltUpIcon;
|
|
1032
|
+
/**
|
|
1033
|
+
* @hidden
|
|
1034
|
+
*/
|
|
1035
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
1036
|
+
/**
|
|
1037
|
+
* @hidden
|
|
1038
|
+
*/
|
|
1039
|
+
this.arrowLeftIcon = caretAltLeftIcon;
|
|
1040
|
+
/**
|
|
1041
|
+
* @hidden
|
|
1042
|
+
*/
|
|
1043
|
+
this.arrowRightIcon = caretAltRightIcon;
|
|
1024
1044
|
this.focusChangedProgrammatically = false;
|
|
1025
1045
|
/**
|
|
1026
1046
|
* @hidden
|
|
1027
1047
|
*/
|
|
1028
1048
|
this.onWrapClick = (args) => {
|
|
1029
1049
|
const target = args.target;
|
|
1030
|
-
if (!this.isDisabled && !(
|
|
1050
|
+
if (!this.isDisabled && !(target.closest('.k-button'))) {
|
|
1031
1051
|
const value = eventValue(args, this.track.nativeElement, this.getProps());
|
|
1032
1052
|
this.changeValue(value);
|
|
1033
1053
|
}
|
|
@@ -1362,7 +1382,7 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
1362
1382
|
{ provide: L10N_PREFIX, useValue: 'kendo.slider' },
|
|
1363
1383
|
{ multi: true, provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => SliderComponent) },
|
|
1364
1384
|
{ provide: KendoInput, useExisting: forwardRef(() => SliderComponent) }
|
|
1365
|
-
], 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: `
|
|
1385
|
+
], 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: `
|
|
1366
1386
|
<ng-container kendoSliderLocalizedMessages
|
|
1367
1387
|
i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."
|
|
1368
1388
|
increment="increment"
|
|
@@ -1377,16 +1397,19 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
1377
1397
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
1378
1398
|
[kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
|
|
1379
1399
|
>
|
|
1380
|
-
<button
|
|
1381
|
-
|
|
1400
|
+
<button
|
|
1401
|
+
kendoButton
|
|
1402
|
+
#decreaseButton
|
|
1403
|
+
*ngIf="showButtons"
|
|
1404
|
+
type="button"
|
|
1405
|
+
rounded="full"
|
|
1406
|
+
[icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
|
|
1407
|
+
[svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
|
|
1408
|
+
class="k-button-decrease"
|
|
1382
1409
|
[title]="decrementMessage"
|
|
1383
1410
|
[attr.tabindex]="-1"
|
|
1384
|
-
role="presentation"
|
|
1385
|
-
|
|
1386
|
-
[class.k-i-caret-alt-left]="!vertical"
|
|
1387
|
-
[class.k-i-caret-alt-down]="vertical">
|
|
1388
|
-
</span>
|
|
1389
|
-
</button>
|
|
1411
|
+
role="presentation"
|
|
1412
|
+
></button>
|
|
1390
1413
|
<div class="k-slider-track-wrap">
|
|
1391
1414
|
<ul kendoSliderTicks
|
|
1392
1415
|
#ticks
|
|
@@ -1425,21 +1448,24 @@ SliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
1425
1448
|
></span>
|
|
1426
1449
|
</div>
|
|
1427
1450
|
</div>
|
|
1428
|
-
<button
|
|
1429
|
-
|
|
1451
|
+
<button
|
|
1452
|
+
kendoButton
|
|
1453
|
+
#increaseButton
|
|
1454
|
+
*ngIf="showButtons"
|
|
1455
|
+
type="button"
|
|
1456
|
+
rounded="full"
|
|
1457
|
+
[icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
|
|
1458
|
+
[svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
|
|
1459
|
+
class="k-button-increase"
|
|
1430
1460
|
[title]="incrementMessage"
|
|
1431
1461
|
(click)="$event.preventDefault()"
|
|
1432
1462
|
[attr.tabindex]="-1"
|
|
1433
1463
|
[attr.aria-label]="currentValue"
|
|
1434
|
-
role="presentation"
|
|
1435
|
-
|
|
1436
|
-
[class.k-i-caret-alt-right]="!vertical"
|
|
1437
|
-
[class.k-i-caret-alt-up]="vertical">
|
|
1438
|
-
</span>
|
|
1439
|
-
</button>
|
|
1464
|
+
role="presentation"
|
|
1465
|
+
></button>
|
|
1440
1466
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
1441
1467
|
</div>
|
|
1442
|
-
`, isInline: true, components: [{ type: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
1468
|
+
`, 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: SliderTicksComponent, selector: "[kendoSliderTicks]", inputs: ["tickTitle", "vertical", "step", "largeStep", "min", "max", "labelTemplate"] }, { type: i3.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], directives: [{ type: LocalizedSliderMessagesDirective, selector: "[kendoSliderLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }] });
|
|
1443
1469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderComponent, decorators: [{
|
|
1444
1470
|
type: Component,
|
|
1445
1471
|
args: [{
|
|
@@ -1466,16 +1492,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1466
1492
|
[class.k-slider-bottomright]="tickPlacement === 'after'"
|
|
1467
1493
|
[kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"
|
|
1468
1494
|
>
|
|
1469
|
-
<button
|
|
1470
|
-
|
|
1495
|
+
<button
|
|
1496
|
+
kendoButton
|
|
1497
|
+
#decreaseButton
|
|
1498
|
+
*ngIf="showButtons"
|
|
1499
|
+
type="button"
|
|
1500
|
+
rounded="full"
|
|
1501
|
+
[icon]="!vertical ? 'caret-alt-left' : 'caret-alt-down'"
|
|
1502
|
+
[svgIcon]="!vertical ? arrowLeftIcon : arrowDownIcon"
|
|
1503
|
+
class="k-button-decrease"
|
|
1471
1504
|
[title]="decrementMessage"
|
|
1472
1505
|
[attr.tabindex]="-1"
|
|
1473
|
-
role="presentation"
|
|
1474
|
-
|
|
1475
|
-
[class.k-i-caret-alt-left]="!vertical"
|
|
1476
|
-
[class.k-i-caret-alt-down]="vertical">
|
|
1477
|
-
</span>
|
|
1478
|
-
</button>
|
|
1506
|
+
role="presentation"
|
|
1507
|
+
></button>
|
|
1479
1508
|
<div class="k-slider-track-wrap">
|
|
1480
1509
|
<ul kendoSliderTicks
|
|
1481
1510
|
#ticks
|
|
@@ -1514,18 +1543,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1514
1543
|
></span>
|
|
1515
1544
|
</div>
|
|
1516
1545
|
</div>
|
|
1517
|
-
<button
|
|
1518
|
-
|
|
1546
|
+
<button
|
|
1547
|
+
kendoButton
|
|
1548
|
+
#increaseButton
|
|
1549
|
+
*ngIf="showButtons"
|
|
1550
|
+
type="button"
|
|
1551
|
+
rounded="full"
|
|
1552
|
+
[icon]="!vertical ? 'caret-alt-right' : 'caret-alt-up'"
|
|
1553
|
+
[svgIcon]="!vertical ? arrowRightIcon : arrowUpIcon"
|
|
1554
|
+
class="k-button-increase"
|
|
1519
1555
|
[title]="incrementMessage"
|
|
1520
1556
|
(click)="$event.preventDefault()"
|
|
1521
1557
|
[attr.tabindex]="-1"
|
|
1522
1558
|
[attr.aria-label]="currentValue"
|
|
1523
|
-
role="presentation"
|
|
1524
|
-
|
|
1525
|
-
[class.k-i-caret-alt-right]="!vertical"
|
|
1526
|
-
[class.k-i-caret-alt-up]="vertical">
|
|
1527
|
-
</span>
|
|
1528
|
-
</button>
|
|
1559
|
+
role="presentation"
|
|
1560
|
+
></button>
|
|
1529
1561
|
<kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>
|
|
1530
1562
|
</div>
|
|
1531
1563
|
`
|
|
@@ -1551,10 +1583,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1551
1583
|
args: ['draghandle', { static: true }]
|
|
1552
1584
|
}], decreaseButton: [{
|
|
1553
1585
|
type: ViewChild,
|
|
1554
|
-
args: ['decreaseButton', {
|
|
1586
|
+
args: ['decreaseButton', { read: ElementRef }]
|
|
1555
1587
|
}], increaseButton: [{
|
|
1556
1588
|
type: ViewChild,
|
|
1557
|
-
args: ['increaseButton', {
|
|
1589
|
+
args: ['increaseButton', { read: ElementRef }]
|
|
1558
1590
|
}] } });
|
|
1559
1591
|
|
|
1560
1592
|
/**
|
|
@@ -3398,6 +3430,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3398
3430
|
}]
|
|
3399
3431
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
3400
3432
|
|
|
3433
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3401
3434
|
const PARSABLE_OPTIONS = ['min', 'max', 'step', 'decimals'];
|
|
3402
3435
|
const PARSABLE_DEFAULTS = {
|
|
3403
3436
|
decimals: null,
|
|
@@ -3504,6 +3537,14 @@ class NumericTextBoxComponent {
|
|
|
3504
3537
|
*/
|
|
3505
3538
|
this.arrowDirection = ArrowDirection.None;
|
|
3506
3539
|
this.hostClasses = true;
|
|
3540
|
+
/**
|
|
3541
|
+
* @hidden
|
|
3542
|
+
*/
|
|
3543
|
+
this.arrowUpIcon = caretAltUpIcon;
|
|
3544
|
+
/**
|
|
3545
|
+
* @hidden
|
|
3546
|
+
*/
|
|
3547
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
3507
3548
|
this.inputValue = '';
|
|
3508
3549
|
this.minValidateFn = noop$1;
|
|
3509
3550
|
this.maxValidateFn = noop$1;
|
|
@@ -4281,12 +4322,17 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4281
4322
|
[attr.aria-hidden]="true"
|
|
4282
4323
|
[attr.aria-label]="incrementTitle"
|
|
4283
4324
|
[title]="incrementTitle"
|
|
4284
|
-
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4285
4325
|
class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4326
|
+
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4286
4327
|
tabindex="-1"
|
|
4287
4328
|
>
|
|
4288
|
-
<
|
|
4289
|
-
|
|
4329
|
+
<kendo-icon-wrapper
|
|
4330
|
+
name="caret-alt-up"
|
|
4331
|
+
innerCssClass="k-button-icon"
|
|
4332
|
+
[svgIcon]="arrowUpIcon"
|
|
4333
|
+
>
|
|
4334
|
+
</kendo-icon-wrapper>
|
|
4335
|
+
</button>
|
|
4290
4336
|
<button
|
|
4291
4337
|
type="button"
|
|
4292
4338
|
[kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
|
|
@@ -4296,11 +4342,16 @@ NumericTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4296
4342
|
[class.k-active]="arrowDirection === ArrowDirection.Down"
|
|
4297
4343
|
class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4298
4344
|
tabindex="-1"
|
|
4299
|
-
|
|
4300
|
-
<
|
|
4301
|
-
|
|
4345
|
+
>
|
|
4346
|
+
<kendo-icon-wrapper
|
|
4347
|
+
name="caret-alt-down"
|
|
4348
|
+
innerCssClass="k-button-icon"
|
|
4349
|
+
[svgIcon]="arrowDownIcon"
|
|
4350
|
+
>
|
|
4351
|
+
</kendo-icon-wrapper>
|
|
4352
|
+
</button>
|
|
4302
4353
|
</span>
|
|
4303
|
-
`, isInline: true, directives: [{ type: LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4354
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: LocalizedNumericTextBoxMessagesDirective, selector: "[kendoNumericTextBoxLocalizedMessages]" }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4304
4355
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxComponent, decorators: [{
|
|
4305
4356
|
type: Component,
|
|
4306
4357
|
args: [{
|
|
@@ -4357,12 +4408,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4357
4408
|
[attr.aria-hidden]="true"
|
|
4358
4409
|
[attr.aria-label]="incrementTitle"
|
|
4359
4410
|
[title]="incrementTitle"
|
|
4360
|
-
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4361
4411
|
class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4412
|
+
[class.k-active]="arrowDirection === ArrowDirection.Up"
|
|
4362
4413
|
tabindex="-1"
|
|
4363
4414
|
>
|
|
4364
|
-
<
|
|
4365
|
-
|
|
4415
|
+
<kendo-icon-wrapper
|
|
4416
|
+
name="caret-alt-up"
|
|
4417
|
+
innerCssClass="k-button-icon"
|
|
4418
|
+
[svgIcon]="arrowUpIcon"
|
|
4419
|
+
>
|
|
4420
|
+
</kendo-icon-wrapper>
|
|
4421
|
+
</button>
|
|
4366
4422
|
<button
|
|
4367
4423
|
type="button"
|
|
4368
4424
|
[kendoEventsOutsideAngular]="{ mousedown: decreasePress }"
|
|
@@ -4372,9 +4428,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4372
4428
|
[class.k-active]="arrowDirection === ArrowDirection.Down"
|
|
4373
4429
|
class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"
|
|
4374
4430
|
tabindex="-1"
|
|
4375
|
-
|
|
4376
|
-
<
|
|
4377
|
-
|
|
4431
|
+
>
|
|
4432
|
+
<kendo-icon-wrapper
|
|
4433
|
+
name="caret-alt-down"
|
|
4434
|
+
innerCssClass="k-button-icon"
|
|
4435
|
+
[svgIcon]="arrowDownIcon"
|
|
4436
|
+
>
|
|
4437
|
+
</kendo-icon-wrapper>
|
|
4438
|
+
</button>
|
|
4378
4439
|
</span>
|
|
4379
4440
|
`
|
|
4380
4441
|
}]
|
|
@@ -5704,11 +5765,11 @@ class SliderModule {
|
|
|
5704
5765
|
SliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5705
5766
|
SliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, declarations: [SliderComponent,
|
|
5706
5767
|
SliderCustomMessagesComponent,
|
|
5707
|
-
LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule], exports: [SliderComponent,
|
|
5768
|
+
LocalizedSliderMessagesDirective], imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule], exports: [SliderComponent,
|
|
5708
5769
|
SliderCustomMessagesComponent,
|
|
5709
5770
|
LabelTemplateDirective,
|
|
5710
5771
|
LocalizedSliderMessagesDirective] });
|
|
5711
|
-
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, imports: [[CommonModule, SlidersCommonModule]] });
|
|
5772
|
+
SliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, imports: [[CommonModule, SlidersCommonModule, IconsModule, ButtonModule]] });
|
|
5712
5773
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SliderModule, decorators: [{
|
|
5713
5774
|
type: NgModule,
|
|
5714
5775
|
args: [{
|
|
@@ -5723,7 +5784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5723
5784
|
LabelTemplateDirective,
|
|
5724
5785
|
LocalizedSliderMessagesDirective
|
|
5725
5786
|
],
|
|
5726
|
-
imports: [CommonModule, SlidersCommonModule]
|
|
5787
|
+
imports: [CommonModule, SlidersCommonModule, IconsModule, ButtonModule]
|
|
5727
5788
|
}]
|
|
5728
5789
|
}] });
|
|
5729
5790
|
|
|
@@ -5946,9 +6007,9 @@ class NumericTextBoxModule {
|
|
|
5946
6007
|
NumericTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5947
6008
|
NumericTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, declarations: [LocalizedNumericTextBoxMessagesDirective,
|
|
5948
6009
|
NumericTextBoxComponent,
|
|
5949
|
-
NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule], exports: [NumericTextBoxComponent,
|
|
6010
|
+
NumericTextBoxCustomMessagesComponent], imports: [CommonModule, EventsModule, IconsModule], exports: [NumericTextBoxComponent,
|
|
5950
6011
|
NumericTextBoxCustomMessagesComponent] });
|
|
5951
|
-
NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule, EventsModule]] });
|
|
6012
|
+
NumericTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, imports: [[CommonModule, EventsModule, IconsModule]] });
|
|
5952
6013
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericTextBoxModule, decorators: [{
|
|
5953
6014
|
type: NgModule,
|
|
5954
6015
|
args: [{
|
|
@@ -5961,7 +6022,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5961
6022
|
NumericTextBoxComponent,
|
|
5962
6023
|
NumericTextBoxCustomMessagesComponent
|
|
5963
6024
|
],
|
|
5964
|
-
imports: [CommonModule, EventsModule]
|
|
6025
|
+
imports: [CommonModule, EventsModule, IconsModule]
|
|
5965
6026
|
}]
|
|
5966
6027
|
}] });
|
|
5967
6028
|
|
|
@@ -6141,10 +6202,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
6141
6202
|
}]
|
|
6142
6203
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
6143
6204
|
|
|
6205
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6144
6206
|
const FOCUSED$1 = 'k-focus';
|
|
6145
6207
|
const DEFAULT_SIZE$5 = 'medium';
|
|
6146
6208
|
const DEFAULT_ROUNDED$4 = 'medium';
|
|
6147
6209
|
const DEFAULT_FILL_MODE$3 = 'solid';
|
|
6210
|
+
const iconsMap$1 = { checkIcon, exclamationCircleIcon, xIcon };
|
|
6148
6211
|
class TextBoxComponent {
|
|
6149
6212
|
constructor(localizationService, ngZone, changeDetector, renderer, injector, hostElement) {
|
|
6150
6213
|
this.localizationService = localizationService;
|
|
@@ -6478,6 +6541,12 @@ class TextBoxComponent {
|
|
|
6478
6541
|
this.subscriptions.unsubscribe();
|
|
6479
6542
|
}
|
|
6480
6543
|
}
|
|
6544
|
+
/**
|
|
6545
|
+
* @hidden
|
|
6546
|
+
*/
|
|
6547
|
+
svgIcon(name) {
|
|
6548
|
+
return iconsMap$1[name];
|
|
6549
|
+
}
|
|
6481
6550
|
/**
|
|
6482
6551
|
* Focuses the TextBox.
|
|
6483
6552
|
*
|
|
@@ -6604,25 +6673,49 @@ class TextBoxComponent {
|
|
|
6604
6673
|
* @hidden
|
|
6605
6674
|
*/
|
|
6606
6675
|
get successIconClasses() {
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6676
|
+
if (!this.successIcon) {
|
|
6677
|
+
return `check`;
|
|
6678
|
+
}
|
|
6679
|
+
}
|
|
6680
|
+
/**
|
|
6681
|
+
* @hidden
|
|
6682
|
+
*/
|
|
6683
|
+
get customSuccessIconClasses() {
|
|
6684
|
+
if (this.successIcon) {
|
|
6685
|
+
return this.successIcon;
|
|
6686
|
+
}
|
|
6610
6687
|
}
|
|
6611
6688
|
/**
|
|
6612
6689
|
* @hidden
|
|
6613
6690
|
*/
|
|
6614
6691
|
get errorIconClasses() {
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6692
|
+
if (!this.errorIcon) {
|
|
6693
|
+
return `exclamation-circle`;
|
|
6694
|
+
}
|
|
6618
6695
|
}
|
|
6619
6696
|
/**
|
|
6620
6697
|
* @hidden
|
|
6621
6698
|
*/
|
|
6622
|
-
get
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6699
|
+
get customIconClasses() {
|
|
6700
|
+
if (this.errorIcon) {
|
|
6701
|
+
return this.errorIcon;
|
|
6702
|
+
}
|
|
6703
|
+
}
|
|
6704
|
+
/**
|
|
6705
|
+
* @hidden
|
|
6706
|
+
*/
|
|
6707
|
+
get customClearButtonClasses() {
|
|
6708
|
+
if (this.clearButtonIcon) {
|
|
6709
|
+
return this.clearButtonIcon;
|
|
6710
|
+
}
|
|
6711
|
+
}
|
|
6712
|
+
/**
|
|
6713
|
+
* @hidden
|
|
6714
|
+
*/
|
|
6715
|
+
get clearButtonClass() {
|
|
6716
|
+
if (!this.clearButtonIcon) {
|
|
6717
|
+
return 'x';
|
|
6718
|
+
}
|
|
6626
6719
|
}
|
|
6627
6720
|
/**
|
|
6628
6721
|
* @hidden
|
|
@@ -6743,17 +6836,36 @@ TextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
6743
6836
|
[title]="clearTitle()"
|
|
6744
6837
|
(keydown.enter)="clearValue($event)"
|
|
6745
6838
|
(keydown.space)="clearValue($event)">
|
|
6746
|
-
<
|
|
6839
|
+
<kendo-icon-wrapper
|
|
6840
|
+
[name]="clearButtonClass"
|
|
6841
|
+
[customFontClass]="customClearButtonClasses"
|
|
6842
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
6843
|
+
>
|
|
6844
|
+
</kendo-icon-wrapper>
|
|
6747
6845
|
</span>
|
|
6748
|
-
<
|
|
6749
|
-
|
|
6846
|
+
<kendo-icon-wrapper
|
|
6847
|
+
*ngIf="hasErrors"
|
|
6848
|
+
innerCssClass="k-input-validation-icon"
|
|
6849
|
+
[name]="errorIconClasses"
|
|
6850
|
+
[customFontClass]="customIconClasses"
|
|
6851
|
+
[svgIcon]="svgIcon('exclamationCircleIcon')"
|
|
6852
|
+
>
|
|
6853
|
+
</kendo-icon-wrapper>
|
|
6854
|
+
<kendo-icon-wrapper
|
|
6855
|
+
*ngIf="isSuccessful"
|
|
6856
|
+
innerCssClass="k-input-validation-icon"
|
|
6857
|
+
[name]="successIconClasses"
|
|
6858
|
+
[customFontClass]="customSuccessIconClasses"
|
|
6859
|
+
[svgIcon]="svgIcon('checkIcon')"
|
|
6860
|
+
>
|
|
6861
|
+
</kendo-icon-wrapper>
|
|
6750
6862
|
<span class="k-input-suffix">
|
|
6751
6863
|
<ng-template
|
|
6752
6864
|
*ngIf="suffixTemplate"
|
|
6753
6865
|
[ngTemplateOutlet]="suffixTemplate?.templateRef">
|
|
6754
6866
|
</ng-template>
|
|
6755
6867
|
</span>
|
|
6756
|
-
`, isInline: true, directives: [{ type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }
|
|
6868
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
6757
6869
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxComponent, decorators: [{
|
|
6758
6870
|
type: Component,
|
|
6759
6871
|
args: [{
|
|
@@ -6807,10 +6919,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
6807
6919
|
[title]="clearTitle()"
|
|
6808
6920
|
(keydown.enter)="clearValue($event)"
|
|
6809
6921
|
(keydown.space)="clearValue($event)">
|
|
6810
|
-
<
|
|
6922
|
+
<kendo-icon-wrapper
|
|
6923
|
+
[name]="clearButtonClass"
|
|
6924
|
+
[customFontClass]="customClearButtonClasses"
|
|
6925
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
6926
|
+
>
|
|
6927
|
+
</kendo-icon-wrapper>
|
|
6811
6928
|
</span>
|
|
6812
|
-
<
|
|
6813
|
-
|
|
6929
|
+
<kendo-icon-wrapper
|
|
6930
|
+
*ngIf="hasErrors"
|
|
6931
|
+
innerCssClass="k-input-validation-icon"
|
|
6932
|
+
[name]="errorIconClasses"
|
|
6933
|
+
[customFontClass]="customIconClasses"
|
|
6934
|
+
[svgIcon]="svgIcon('exclamationCircleIcon')"
|
|
6935
|
+
>
|
|
6936
|
+
</kendo-icon-wrapper>
|
|
6937
|
+
<kendo-icon-wrapper
|
|
6938
|
+
*ngIf="isSuccessful"
|
|
6939
|
+
innerCssClass="k-input-validation-icon"
|
|
6940
|
+
[name]="successIconClasses"
|
|
6941
|
+
[customFontClass]="customSuccessIconClasses"
|
|
6942
|
+
[svgIcon]="svgIcon('checkIcon')"
|
|
6943
|
+
>
|
|
6944
|
+
</kendo-icon-wrapper>
|
|
6814
6945
|
<span class="k-input-suffix">
|
|
6815
6946
|
<ng-template
|
|
6816
6947
|
*ngIf="suffixTemplate"
|
|
@@ -7025,14 +7156,14 @@ TextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
7025
7156
|
TextBoxSuffixTemplateDirective,
|
|
7026
7157
|
TextBoxPrefixTemplateDirective,
|
|
7027
7158
|
TextBoxCustomMessagesComponent,
|
|
7028
|
-
LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule], exports: [TextBoxDirective,
|
|
7159
|
+
LocalizedTextBoxMessagesDirective], imports: [CommonModule, EventsModule, SharedModule, IconsModule], exports: [TextBoxDirective,
|
|
7029
7160
|
TextBoxComponent,
|
|
7030
7161
|
TextBoxSuffixTemplateDirective,
|
|
7031
7162
|
TextBoxPrefixTemplateDirective,
|
|
7032
7163
|
EventsModule,
|
|
7033
7164
|
TextBoxCustomMessagesComponent,
|
|
7034
7165
|
LocalizedTextBoxMessagesDirective, InputSeparatorComponent, TextAreaDirective] });
|
|
7035
|
-
TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, imports: [[CommonModule, EventsModule, SharedModule], EventsModule] });
|
|
7166
|
+
TextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, imports: [[CommonModule, EventsModule, SharedModule, IconsModule], EventsModule] });
|
|
7036
7167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TextBoxModule, decorators: [{
|
|
7037
7168
|
type: NgModule,
|
|
7038
7169
|
args: [{
|
|
@@ -7054,7 +7185,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
7054
7185
|
LocalizedTextBoxMessagesDirective,
|
|
7055
7186
|
SHARED_DIRECTIVES
|
|
7056
7187
|
],
|
|
7057
|
-
imports: [CommonModule, EventsModule, SharedModule]
|
|
7188
|
+
imports: [CommonModule, EventsModule, SharedModule, IconsModule]
|
|
7058
7189
|
}]
|
|
7059
7190
|
}] });
|
|
7060
7191
|
|
|
@@ -8419,6 +8550,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
8419
8550
|
type: Input
|
|
8420
8551
|
}] } });
|
|
8421
8552
|
|
|
8553
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8422
8554
|
/**
|
|
8423
8555
|
* @hidden
|
|
8424
8556
|
*/
|
|
@@ -8460,6 +8592,10 @@ class ColorInputComponent {
|
|
|
8460
8592
|
* The rgba inputs values.
|
|
8461
8593
|
*/
|
|
8462
8594
|
this.rgba = {};
|
|
8595
|
+
/**
|
|
8596
|
+
* @hidden
|
|
8597
|
+
*/
|
|
8598
|
+
this.caretAltExpandIcon = caretAltExpandIcon;
|
|
8463
8599
|
this.subscriptions = new Subscription();
|
|
8464
8600
|
}
|
|
8465
8601
|
/**
|
|
@@ -8546,17 +8682,21 @@ class ColorInputComponent {
|
|
|
8546
8682
|
}
|
|
8547
8683
|
}
|
|
8548
8684
|
ColorInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8549
|
-
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorInputComponent, selector: "kendo-colorinput", inputs: { focusableId: "focusableId", formatView: "formatView", tabindex: "tabindex", value: "value", opacity: "opacity", disabled: "disabled", readonly: "readonly" }, outputs: { valueChange: "valueChange", tabOut: "tabOut" }, host: { properties: { "class.k-colorgradient-inputs": "this.colorInputClass", "class.k-hstack": "this.colorInputClass" } }, viewQueries: [{ propertyName: "opacityInput", first: true, predicate: ["opacityInput"], descendants: true }, { propertyName: "hexInput", first: true, predicate: ["hexInput"], descendants: true }, { propertyName: "blueInput", first: true, predicate: ["blueInput"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
8685
|
+
ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorInputComponent, selector: "kendo-colorinput", inputs: { focusableId: "focusableId", formatView: "formatView", tabindex: "tabindex", value: "value", opacity: "opacity", disabled: "disabled", readonly: "readonly" }, outputs: { valueChange: "valueChange", tabOut: "tabOut" }, host: { properties: { "class.k-colorgradient-inputs": "this.colorInputClass", "class.k-hstack": "this.colorInputClass" } }, viewQueries: [{ propertyName: "opacityInput", first: true, predicate: ["opacityInput"], descendants: true }, { propertyName: "hexInput", first: true, predicate: ["hexInput"], descendants: true }, { propertyName: "blueInput", first: true, predicate: ["blueInput"], descendants: true }, { propertyName: "toggleFormatButton", first: true, predicate: ["toggleFormatButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
|
|
8550
8686
|
<div class="k-vstack">
|
|
8551
|
-
<button
|
|
8552
|
-
|
|
8687
|
+
<button
|
|
8688
|
+
kendoButton
|
|
8689
|
+
type="button"
|
|
8690
|
+
fillMode="flat"
|
|
8691
|
+
#toggleFormatButton
|
|
8692
|
+
icon="caret-alt-expand"
|
|
8693
|
+
[svgIcon]="caretAltExpandIcon"
|
|
8694
|
+
class="k-colorgradient-toggle-mode"
|
|
8553
8695
|
[attr.aria-label]="formatButtonTitle"
|
|
8554
8696
|
[attr.title]="formatButtonTitle"
|
|
8555
8697
|
[disabled]="disabled"
|
|
8556
8698
|
[tabindex]="tabindex.toString()"
|
|
8557
|
-
type="button"
|
|
8558
8699
|
>
|
|
8559
|
-
<span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
|
|
8560
8700
|
</button>
|
|
8561
8701
|
</div>
|
|
8562
8702
|
<div *ngIf="formatView === 'hex'" class="k-vstack">
|
|
@@ -8659,22 +8799,26 @@ ColorInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
8659
8799
|
<label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>
|
|
8660
8800
|
</div>
|
|
8661
8801
|
</ng-container>
|
|
8662
|
-
`, isInline: true, components: [{ type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
|
|
8802
|
+
`, 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: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: NumericLabelDirective, selector: "[kendoAdditionalNumericLabel]", inputs: ["kendoAdditionalNumericLabel", "localizationService"] }] });
|
|
8663
8803
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorInputComponent, decorators: [{
|
|
8664
8804
|
type: Component,
|
|
8665
8805
|
args: [{
|
|
8666
8806
|
selector: 'kendo-colorinput',
|
|
8667
8807
|
template: `
|
|
8668
8808
|
<div class="k-vstack">
|
|
8669
|
-
<button
|
|
8670
|
-
|
|
8809
|
+
<button
|
|
8810
|
+
kendoButton
|
|
8811
|
+
type="button"
|
|
8812
|
+
fillMode="flat"
|
|
8813
|
+
#toggleFormatButton
|
|
8814
|
+
icon="caret-alt-expand"
|
|
8815
|
+
[svgIcon]="caretAltExpandIcon"
|
|
8816
|
+
class="k-colorgradient-toggle-mode"
|
|
8671
8817
|
[attr.aria-label]="formatButtonTitle"
|
|
8672
8818
|
[attr.title]="formatButtonTitle"
|
|
8673
8819
|
[disabled]="disabled"
|
|
8674
8820
|
[tabindex]="tabindex.toString()"
|
|
8675
|
-
type="button"
|
|
8676
8821
|
>
|
|
8677
|
-
<span class="k-button-icon k-icon k-i-caret-alt-expand"></span>
|
|
8678
8822
|
</button>
|
|
8679
8823
|
</div>
|
|
8680
8824
|
<div *ngIf="formatView === 'hex'" class="k-vstack">
|
|
@@ -8814,7 +8958,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
8814
8958
|
args: ['blueInput']
|
|
8815
8959
|
}], toggleFormatButton: [{
|
|
8816
8960
|
type: ViewChild,
|
|
8817
|
-
args: ['toggleFormatButton', { static: false }]
|
|
8961
|
+
args: ['toggleFormatButton', { static: false, read: ElementRef }]
|
|
8818
8962
|
}] } });
|
|
8819
8963
|
|
|
8820
8964
|
/**
|
|
@@ -8909,6 +9053,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
8909
9053
|
class ContrastValidationComponent {
|
|
8910
9054
|
constructor(localization) {
|
|
8911
9055
|
this.localization = localization;
|
|
9056
|
+
this.checkIcon = checkIcon;
|
|
9057
|
+
this.xCircleIcon = xCircleIcon;
|
|
8912
9058
|
}
|
|
8913
9059
|
get passMessage() {
|
|
8914
9060
|
return this.localization.get('passContrast');
|
|
@@ -8927,14 +9073,14 @@ ContrastValidationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
8927
9073
|
<ng-container *ngIf="value">
|
|
8928
9074
|
<span class="k-contrast-validation k-text-success" *ngIf="pass">
|
|
8929
9075
|
{{passMessage}}
|
|
8930
|
-
<
|
|
9076
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
8931
9077
|
</span>
|
|
8932
9078
|
<span class="k-contrast-validation k-text-error" *ngIf="!pass">
|
|
8933
9079
|
{{failMessage}}
|
|
8934
|
-
<
|
|
9080
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
8935
9081
|
</span>
|
|
8936
9082
|
</ng-container>
|
|
8937
|
-
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9083
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
8938
9084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastValidationComponent, decorators: [{
|
|
8939
9085
|
type: Component,
|
|
8940
9086
|
args: [{
|
|
@@ -8945,11 +9091,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
8945
9091
|
<ng-container *ngIf="value">
|
|
8946
9092
|
<span class="k-contrast-validation k-text-success" *ngIf="pass">
|
|
8947
9093
|
{{passMessage}}
|
|
8948
|
-
<
|
|
9094
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
8949
9095
|
</span>
|
|
8950
9096
|
<span class="k-contrast-validation k-text-error" *ngIf="!pass">
|
|
8951
9097
|
{{failMessage}}
|
|
8952
|
-
<
|
|
9098
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
8953
9099
|
</span>
|
|
8954
9100
|
</ng-container>
|
|
8955
9101
|
`
|
|
@@ -8968,6 +9114,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
8968
9114
|
class ContrastComponent {
|
|
8969
9115
|
constructor(localization) {
|
|
8970
9116
|
this.localization = localization;
|
|
9117
|
+
this.checkIcon = checkIcon;
|
|
9118
|
+
this.xCircleIcon = xCircleIcon;
|
|
8971
9119
|
}
|
|
8972
9120
|
get formatedRatio() {
|
|
8973
9121
|
return this.contrastRatio.toFixed(2);
|
|
@@ -8992,11 +9140,11 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
8992
9140
|
<span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
|
|
8993
9141
|
<ng-container *ngIf="value">
|
|
8994
9142
|
<span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
|
|
8995
|
-
<
|
|
8996
|
-
<
|
|
9143
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9144
|
+
<kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
8997
9145
|
</span>
|
|
8998
9146
|
<span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
|
|
8999
|
-
<
|
|
9147
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
9000
9148
|
</span>
|
|
9001
9149
|
</ng-container>
|
|
9002
9150
|
</div>
|
|
@@ -9010,7 +9158,7 @@ ContrastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
9010
9158
|
[value]="value"
|
|
9011
9159
|
[pass]="satisfiesAAACondition">
|
|
9012
9160
|
</div>
|
|
9013
|
-
`, isInline: true, components: [{ type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9161
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: ContrastValidationComponent, selector: "[kendoContrastValidation]", inputs: ["type", "pass", "value"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9014
9162
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContrastComponent, decorators: [{
|
|
9015
9163
|
type: Component,
|
|
9016
9164
|
args: [{
|
|
@@ -9021,11 +9169,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
9021
9169
|
<span class="k-contrast-ratio-text">{{contrastRatioText}}</span>
|
|
9022
9170
|
<ng-container *ngIf="value">
|
|
9023
9171
|
<span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">
|
|
9024
|
-
<
|
|
9025
|
-
<
|
|
9172
|
+
<kendo-icon-wrapper name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9173
|
+
<kendo-icon-wrapper *ngIf="satisfiesAAACondition" name="check" [svgIcon]="checkIcon"></kendo-icon-wrapper>
|
|
9026
9174
|
</span>
|
|
9027
9175
|
<span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">
|
|
9028
|
-
<
|
|
9176
|
+
<kendo-icon-wrapper name="x" [svgIcon]="xCircleIcon"></kendo-icon-wrapper>
|
|
9029
9177
|
</span>
|
|
9030
9178
|
</ng-container>
|
|
9031
9179
|
</div>
|
|
@@ -9145,6 +9293,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
9145
9293
|
}]
|
|
9146
9294
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
9147
9295
|
|
|
9296
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9148
9297
|
let serial$3 = 0;
|
|
9149
9298
|
/**
|
|
9150
9299
|
* The ColorGradient component enables smooth color transitions and provides options for selecting specific colors over the drag handle.
|
|
@@ -9236,6 +9385,10 @@ class ColorGradientComponent {
|
|
|
9236
9385
|
* @hidden
|
|
9237
9386
|
*/
|
|
9238
9387
|
this.internalNavigation = false;
|
|
9388
|
+
/**
|
|
9389
|
+
* @hidden
|
|
9390
|
+
*/
|
|
9391
|
+
this.dropletSlashIcon = dropletSlashIcon;
|
|
9239
9392
|
this._tabindex = 0;
|
|
9240
9393
|
this.listeners = [];
|
|
9241
9394
|
this.hueSliderTouched = false;
|
|
@@ -9781,18 +9934,23 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
9781
9934
|
</svg>
|
|
9782
9935
|
</div>
|
|
9783
9936
|
<div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
|
|
9784
|
-
|
|
9937
|
+
|
|
9938
|
+
<button
|
|
9939
|
+
kendoButton
|
|
9785
9940
|
*ngIf="clearButton"
|
|
9786
|
-
|
|
9941
|
+
class="k-clear-color"
|
|
9942
|
+
fillMode="flat"
|
|
9943
|
+
icon="droplet-slash"
|
|
9944
|
+
[svgIcon]="dropletSlashIcon"
|
|
9787
9945
|
(click)="reset()"
|
|
9788
9946
|
(keydown.enter)="reset()"
|
|
9789
9947
|
(keydown.space)="reset()"
|
|
9790
9948
|
[attr.aria-label]="clearButtonTitle"
|
|
9791
9949
|
[attr.title]="clearButtonTitle"
|
|
9792
9950
|
[tabindex]="innerTabIndex.toString()"
|
|
9793
|
-
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
9794
|
-
|
|
9795
|
-
</
|
|
9951
|
+
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
9952
|
+
>
|
|
9953
|
+
</button>
|
|
9796
9954
|
<kendo-slider
|
|
9797
9955
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
9798
9956
|
[style.height.px]="clearButton ? '140' : null"
|
|
@@ -9852,7 +10010,7 @@ ColorGradientComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
9852
10010
|
[value]="value"
|
|
9853
10011
|
[ratio]="contrastTool">
|
|
9854
10012
|
</div>
|
|
9855
|
-
`, isInline: true, components: [{ type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { type: SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { type: ColorInputComponent, selector: "kendo-colorinput", inputs: ["focusableId", "formatView", "tabindex", "value", "opacity", "disabled", "readonly"], outputs: ["valueChange", "tabOut"] }, { type: ContrastComponent, selector: "[kendoContrastTool]", inputs: ["value", "ratio"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
10013
|
+
`, isInline: true, components: [{ type: ColorContrastSvgComponent, selector: "[kendoColorContrastSvg]", inputs: ["wrapper", "hsva", "backgroundColor"] }, { 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: SliderComponent, selector: "kendo-slider", inputs: ["focusableId", "dragHandleTitle", "incrementTitle", "animate", "decrementTitle", "showButtons", "value", "tabIndex"], exportAs: ["kendoSlider"] }, { type: ColorInputComponent, selector: "kendo-colorinput", inputs: ["focusableId", "formatView", "tabindex", "value", "opacity", "disabled", "readonly"], outputs: ["valueChange", "tabOut"] }, { type: ContrastComponent, selector: "[kendoContrastTool]", inputs: ["value", "ratio"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i3.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
9856
10014
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorGradientComponent, decorators: [{
|
|
9857
10015
|
type: Component,
|
|
9858
10016
|
args: [{
|
|
@@ -9951,18 +10109,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
9951
10109
|
</svg>
|
|
9952
10110
|
</div>
|
|
9953
10111
|
<div class="k-hsv-controls k-hstack {{ clearButton ? 'k-sliders-wrap-clearable' : '' }}">
|
|
9954
|
-
|
|
10112
|
+
|
|
10113
|
+
<button
|
|
10114
|
+
kendoButton
|
|
9955
10115
|
*ngIf="clearButton"
|
|
9956
|
-
|
|
10116
|
+
class="k-clear-color"
|
|
10117
|
+
fillMode="flat"
|
|
10118
|
+
icon="droplet-slash"
|
|
10119
|
+
[svgIcon]="dropletSlashIcon"
|
|
9957
10120
|
(click)="reset()"
|
|
9958
10121
|
(keydown.enter)="reset()"
|
|
9959
10122
|
(keydown.space)="reset()"
|
|
9960
10123
|
[attr.aria-label]="clearButtonTitle"
|
|
9961
10124
|
[attr.title]="clearButtonTitle"
|
|
9962
10125
|
[tabindex]="innerTabIndex.toString()"
|
|
9963
|
-
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
9964
|
-
|
|
9965
|
-
</
|
|
10126
|
+
[style]="'position: absolute; top: 0; left: 50%; transform: translateX(-50%);'"
|
|
10127
|
+
>
|
|
10128
|
+
</button>
|
|
9966
10129
|
<kendo-slider
|
|
9967
10130
|
[ngClass]="{'k-align-self-end': clearButton}"
|
|
9968
10131
|
[style.height.px]="clearButton ? '140' : null"
|
|
@@ -10733,18 +10896,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10733
10896
|
args: ['blur']
|
|
10734
10897
|
}] } });
|
|
10735
10898
|
|
|
10899
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10736
10900
|
/**
|
|
10737
10901
|
* @hidden
|
|
10738
10902
|
*/
|
|
10739
10903
|
class FlatColorPickerHeaderComponent {
|
|
10740
|
-
constructor(localizationService) {
|
|
10904
|
+
constructor(localizationService, renderer) {
|
|
10741
10905
|
this.localizationService = localizationService;
|
|
10906
|
+
this.renderer = renderer;
|
|
10742
10907
|
this.hostClasses = true;
|
|
10743
10908
|
this.innerTabIndex = -1;
|
|
10744
10909
|
this.viewChange = new EventEmitter();
|
|
10745
10910
|
this.valuePaneClick = new EventEmitter();
|
|
10746
10911
|
this.clearButtonClick = new EventEmitter();
|
|
10747
10912
|
this.tabOut = new EventEmitter();
|
|
10913
|
+
this.dropletSliderIcon = dropletSliderIcon;
|
|
10914
|
+
this.paletteIcon = paletteIcon;
|
|
10915
|
+
this.dropletSlashIcon = dropletSlashIcon;
|
|
10916
|
+
}
|
|
10917
|
+
ngAfterViewInit() {
|
|
10918
|
+
if (this.viewButtonsCollection.length > 0) {
|
|
10919
|
+
this.viewButtonsCollection.forEach((button) => {
|
|
10920
|
+
const buttonElem = button.nativeElement;
|
|
10921
|
+
const isViewActive = buttonElem.getAttribute('aria-pressed') === 'true';
|
|
10922
|
+
if (isViewActive) {
|
|
10923
|
+
this.renderer.addClass(buttonElem, 'k-selected');
|
|
10924
|
+
}
|
|
10925
|
+
});
|
|
10926
|
+
}
|
|
10748
10927
|
}
|
|
10749
10928
|
onViewButtonClick(view) {
|
|
10750
10929
|
this.activeView = view;
|
|
@@ -10754,7 +10933,10 @@ class FlatColorPickerHeaderComponent {
|
|
|
10754
10933
|
return this.views && this.views.indexOf('gradient') >= 0 && this.views.indexOf('palette') >= 0;
|
|
10755
10934
|
}
|
|
10756
10935
|
getViewButtonIcon(view) {
|
|
10757
|
-
return view === 'gradient' ? '
|
|
10936
|
+
return view === 'gradient' ? 'color-canvas' : 'palette';
|
|
10937
|
+
}
|
|
10938
|
+
getViewButtonsSVGIcon(view) {
|
|
10939
|
+
return view === 'gradient' ? this.dropletSliderIcon : this.paletteIcon;
|
|
10758
10940
|
}
|
|
10759
10941
|
getText(text) {
|
|
10760
10942
|
return this.localizationService.get(text);
|
|
@@ -10766,42 +10948,46 @@ class FlatColorPickerHeaderComponent {
|
|
|
10766
10948
|
}
|
|
10767
10949
|
}
|
|
10768
10950
|
}
|
|
10769
|
-
FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10951
|
+
FlatColorPickerHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
10770
10952
|
FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FlatColorPickerHeaderComponent, selector: "[kendoFlatColorPickerHeader]", inputs: { clearButton: "clearButton", activeView: "activeView", views: "views", preview: "preview", innerTabIndex: "innerTabIndex", value: "value", selection: "selection" }, outputs: { viewChange: "viewChange", valuePaneClick: "valuePaneClick", clearButtonClick: "clearButtonClick", tabOut: "tabOut" }, host: { properties: { "class.k-coloreditor-header": "this.hostClasses", "class.k-hstack": "this.hostClasses" } }, viewQueries: [{ propertyName: "clearButtonElement", first: true, predicate: ["clearButton"], descendants: true, read: ElementRef }, { propertyName: "viewButtonsCollection", predicate: ["viewButtons"], descendants: true, read: ElementRef }], ngImport: i0, template: `
|
|
10771
10953
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
10772
10954
|
<div
|
|
10773
10955
|
*ngIf="viewButtons"
|
|
10774
10956
|
class="k-button-group k-button-group-flat">
|
|
10775
|
-
<button
|
|
10776
|
-
|
|
10957
|
+
<button
|
|
10958
|
+
*ngFor="let view of views; let i = index;"
|
|
10959
|
+
kendoButton
|
|
10777
10960
|
type="button"
|
|
10961
|
+
#viewButtons
|
|
10962
|
+
fillMode="flat"
|
|
10778
10963
|
[tabindex]="innerTabIndex.toString()"
|
|
10779
10964
|
(click)="onViewButtonClick(view)"
|
|
10965
|
+
[icon]="getViewButtonIcon(view)"
|
|
10966
|
+
[svgIcon]="getViewButtonsSVGIcon(view)"
|
|
10780
10967
|
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
10781
10968
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
10782
10969
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
10783
10970
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
10784
10971
|
[attr.aria-pressed]="activeView === view"
|
|
10785
10972
|
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
10786
|
-
<span
|
|
10787
|
-
class="k-button-icon k-icon"
|
|
10788
|
-
[ngClass]="getViewButtonIcon(view)">
|
|
10789
|
-
</span>
|
|
10790
10973
|
</button>
|
|
10791
10974
|
</div>
|
|
10792
10975
|
</div>
|
|
10793
10976
|
<div class="k-spacer"></div>
|
|
10794
10977
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
10795
10978
|
<button
|
|
10979
|
+
kendoButton
|
|
10980
|
+
type="button"
|
|
10796
10981
|
[tabindex]="innerTabIndex.toString()"
|
|
10797
10982
|
*ngIf="clearButton"
|
|
10798
10983
|
#clearButton
|
|
10799
|
-
|
|
10800
|
-
|
|
10984
|
+
fillMode="flat"
|
|
10985
|
+
icon="reset-color"
|
|
10986
|
+
[svgIcon]="dropletSlashIcon"
|
|
10987
|
+
class="k-coloreditor-reset"
|
|
10801
10988
|
[attr.aria-label]="getText('clearButton')"
|
|
10802
10989
|
[attr.title]="getText('clearButton')"
|
|
10803
10990
|
(click)="clearButtonClick.emit()">
|
|
10804
|
-
<span class="k-button-icon k-icon k-i-droplet-slash"></span>
|
|
10805
10991
|
</button>
|
|
10806
10992
|
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
10807
10993
|
<span
|
|
@@ -10816,7 +11002,7 @@ FlatColorPickerHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
|
10816
11002
|
</span>
|
|
10817
11003
|
</div>
|
|
10818
11004
|
</div>
|
|
10819
|
-
`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
11005
|
+
`, 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"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
10820
11006
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FlatColorPickerHeaderComponent, decorators: [{
|
|
10821
11007
|
type: Component,
|
|
10822
11008
|
args: [{
|
|
@@ -10827,36 +11013,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10827
11013
|
<div
|
|
10828
11014
|
*ngIf="viewButtons"
|
|
10829
11015
|
class="k-button-group k-button-group-flat">
|
|
10830
|
-
<button
|
|
10831
|
-
|
|
11016
|
+
<button
|
|
11017
|
+
*ngFor="let view of views; let i = index;"
|
|
11018
|
+
kendoButton
|
|
10832
11019
|
type="button"
|
|
11020
|
+
#viewButtons
|
|
11021
|
+
fillMode="flat"
|
|
10833
11022
|
[tabindex]="innerTabIndex.toString()"
|
|
10834
11023
|
(click)="onViewButtonClick(view)"
|
|
11024
|
+
[icon]="getViewButtonIcon(view)"
|
|
11025
|
+
[svgIcon]="getViewButtonsSVGIcon(view)"
|
|
10835
11026
|
(keydown.shift.tab)="onHeaderTabOut($event, i)"
|
|
10836
11027
|
class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"
|
|
10837
11028
|
[attr.title]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
10838
11029
|
[attr.aria-label]="getText(view === 'gradient' ? 'gradientView' : 'paletteView')"
|
|
10839
11030
|
[attr.aria-pressed]="activeView === view"
|
|
10840
11031
|
[ngClass]="activeView === view ? 'k-selected' : ''">
|
|
10841
|
-
<span
|
|
10842
|
-
class="k-button-icon k-icon"
|
|
10843
|
-
[ngClass]="getViewButtonIcon(view)">
|
|
10844
|
-
</span>
|
|
10845
11032
|
</button>
|
|
10846
11033
|
</div>
|
|
10847
11034
|
</div>
|
|
10848
11035
|
<div class="k-spacer"></div>
|
|
10849
11036
|
<div class="k-coloreditor-header-actions k-hstack">
|
|
10850
11037
|
<button
|
|
11038
|
+
kendoButton
|
|
11039
|
+
type="button"
|
|
10851
11040
|
[tabindex]="innerTabIndex.toString()"
|
|
10852
11041
|
*ngIf="clearButton"
|
|
10853
11042
|
#clearButton
|
|
10854
|
-
|
|
10855
|
-
|
|
11043
|
+
fillMode="flat"
|
|
11044
|
+
icon="reset-color"
|
|
11045
|
+
[svgIcon]="dropletSlashIcon"
|
|
11046
|
+
class="k-coloreditor-reset"
|
|
10856
11047
|
[attr.aria-label]="getText('clearButton')"
|
|
10857
11048
|
[attr.title]="getText('clearButton')"
|
|
10858
11049
|
(click)="clearButtonClick.emit()">
|
|
10859
|
-
<span class="k-button-icon k-icon k-i-droplet-slash"></span>
|
|
10860
11050
|
</button>
|
|
10861
11051
|
<div class="k-coloreditor-preview k-vstack" *ngIf="preview" aria-hidden="true">
|
|
10862
11052
|
<span
|
|
@@ -10873,7 +11063,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10873
11063
|
</div>
|
|
10874
11064
|
`
|
|
10875
11065
|
}]
|
|
10876
|
-
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
|
|
11066
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.Renderer2 }]; }, propDecorators: { hostClasses: [{
|
|
10877
11067
|
type: HostBinding,
|
|
10878
11068
|
args: ['class.k-coloreditor-header']
|
|
10879
11069
|
}, {
|
|
@@ -11767,6 +11957,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11767
11957
|
args: ['footer']
|
|
11768
11958
|
}] } });
|
|
11769
11959
|
|
|
11960
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11770
11961
|
const DOM_FOCUS_EVENTS = ['focus', 'blur'];
|
|
11771
11962
|
const DEFAULT_SIZE$3 = 'medium';
|
|
11772
11963
|
const DEFAULT_ROUNDED$2 = 'medium';
|
|
@@ -11892,6 +12083,10 @@ class ColorPickerComponent {
|
|
|
11892
12083
|
* Indicates whether the ColorPicker wrapper is focused.
|
|
11893
12084
|
*/
|
|
11894
12085
|
this.isFocused = false;
|
|
12086
|
+
/**
|
|
12087
|
+
* @hidden
|
|
12088
|
+
*/
|
|
12089
|
+
this.arrowDownIcon = caretAltDownIcon;
|
|
11895
12090
|
this._tabindex = 0;
|
|
11896
12091
|
this._popupSettings = { animate: true };
|
|
11897
12092
|
this._paletteSettings = {};
|
|
@@ -11973,6 +12168,19 @@ class ColorPickerComponent {
|
|
|
11973
12168
|
get gradientSettings() {
|
|
11974
12169
|
return this._gradientSettings;
|
|
11975
12170
|
}
|
|
12171
|
+
/**
|
|
12172
|
+
* Defines an SVGIcon to be rendered within the button.
|
|
12173
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
12174
|
+
*/
|
|
12175
|
+
set svgIcon(icon) {
|
|
12176
|
+
if (isDevMode() && icon && this.icon && this.iconClass) {
|
|
12177
|
+
throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
|
|
12178
|
+
}
|
|
12179
|
+
this._svgIcon = icon;
|
|
12180
|
+
}
|
|
12181
|
+
get svgIcon() {
|
|
12182
|
+
return this._svgIcon;
|
|
12183
|
+
}
|
|
11976
12184
|
/**
|
|
11977
12185
|
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
11978
12186
|
*
|
|
@@ -12050,13 +12258,24 @@ class ColorPickerComponent {
|
|
|
12050
12258
|
/**
|
|
12051
12259
|
* @hidden
|
|
12052
12260
|
*/
|
|
12053
|
-
get
|
|
12261
|
+
get customIconStyles() {
|
|
12054
12262
|
if (this.iconClass) {
|
|
12055
|
-
|
|
12263
|
+
let parsedIconClass = '';
|
|
12264
|
+
parseCSSClassNames(this.iconClass).forEach(iconClass => {
|
|
12265
|
+
parsedIconClass += iconClass + ' ';
|
|
12266
|
+
});
|
|
12267
|
+
return parsedIconClass.slice(0, -1);
|
|
12056
12268
|
}
|
|
12057
|
-
|
|
12058
|
-
|
|
12269
|
+
return '';
|
|
12270
|
+
}
|
|
12271
|
+
/**
|
|
12272
|
+
* @hidden
|
|
12273
|
+
*/
|
|
12274
|
+
get iconStyles() {
|
|
12275
|
+
if (this.icon && !this.iconClass) {
|
|
12276
|
+
return `${this.icon}`;
|
|
12059
12277
|
}
|
|
12278
|
+
return '';
|
|
12060
12279
|
}
|
|
12061
12280
|
ngOnInit() {
|
|
12062
12281
|
const defaultPreset = (this.format !== 'name') ? DEFAULT_PRESET$1 : DEFAULT_ACCESSIBLE_PRESET$1;
|
|
@@ -12434,7 +12653,7 @@ class ColorPickerComponent {
|
|
|
12434
12653
|
}
|
|
12435
12654
|
}
|
|
12436
12655
|
ColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i1$3.PopupService }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
12437
|
-
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: { views: "views", view: "view", activeView: "activeView", readonly: "readonly", disabled: "disabled", format: "format", value: "value", popupSettings: "popupSettings", paletteSettings: "paletteSettings", gradientSettings: "gradientSettings", icon: "icon", iconClass: "iconClass", clearButton: "clearButton", tabindex: "tabindex", preview: "preview", actionsLayout: "actionsLayout", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", cancel: "cancel", activeColorClick: "activeColorClick", activeViewChange: "activeViewChange" }, host: { properties: { "class.k-colorpicker": "this.hostClasses", "class.k-icon-picker": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-focus": "this.focusedClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-haspopup": "this.hasPopup", "attr.aria-invalid": "this.isControlInvalid" } }, providers: [{
|
|
12656
|
+
ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: { views: "views", view: "view", activeView: "activeView", readonly: "readonly", disabled: "disabled", format: "format", value: "value", popupSettings: "popupSettings", paletteSettings: "paletteSettings", gradientSettings: "gradientSettings", icon: "icon", iconClass: "iconClass", svgIcon: "svgIcon", clearButton: "clearButton", tabindex: "tabindex", preview: "preview", actionsLayout: "actionsLayout", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", open: "open", close: "close", onFocus: "focus", onBlur: "blur", cancel: "cancel", activeColorClick: "activeColorClick", activeViewChange: "activeViewChange" }, host: { properties: { "class.k-colorpicker": "this.hostClasses", "class.k-icon-picker": "this.hostClasses", "class.k-picker": "this.hostClasses", "class.k-focus": "this.focusedClass", "attr.aria-disabled": "this.disabledClass", "class.k-disabled": "this.disabledClass", "attr.aria-readonly": "this.ariaReadonly", "attr.aria-expanded": "this.ariaExpanded", "attr.tabindex": "this.hostTabindex", "attr.dir": "this.direction", "attr.role": "this.role", "attr.aria-haspopup": "this.hasPopup", "attr.aria-invalid": "this.isControlInvalid" } }, providers: [{
|
|
12438
12657
|
multi: true,
|
|
12439
12658
|
provide: NG_VALUE_ACCESSOR,
|
|
12440
12659
|
useExisting: forwardRef(() => ColorPickerComponent)
|
|
@@ -12505,18 +12724,30 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
12505
12724
|
<span #activeColor class="k-input-inner">
|
|
12506
12725
|
<span
|
|
12507
12726
|
class="k-value-icon k-color-preview"
|
|
12508
|
-
[ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}"
|
|
12509
|
-
|
|
12727
|
+
[ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
|
|
12728
|
+
>
|
|
12729
|
+
<kendo-icon-wrapper
|
|
12730
|
+
*ngIf="iconClass || icon"
|
|
12731
|
+
[name]="iconStyles"
|
|
12732
|
+
innerCssClass="k-color-preview-icon"
|
|
12733
|
+
[customFontClass]="customIconStyles"
|
|
12734
|
+
[svgIcon]="svgIcon"
|
|
12735
|
+
>
|
|
12736
|
+
</kendo-icon-wrapper>
|
|
12510
12737
|
<span class="k-color-preview-mask" [style.background-color]="value"></span>
|
|
12511
12738
|
</span>
|
|
12739
|
+
|
|
12512
12740
|
</span>
|
|
12513
12741
|
<button
|
|
12742
|
+
kendoButton
|
|
12514
12743
|
tabindex="-1"
|
|
12515
12744
|
type="button"
|
|
12516
12745
|
role="none"
|
|
12746
|
+
icon="caret-alt-down"
|
|
12747
|
+
[svgIcon]="arrowDownIcon"
|
|
12517
12748
|
aria-hidden="true"
|
|
12518
|
-
class="k-input-button
|
|
12519
|
-
|
|
12749
|
+
class="k-input-button"
|
|
12750
|
+
>
|
|
12520
12751
|
</button>
|
|
12521
12752
|
<ng-template #popupTemplate>
|
|
12522
12753
|
<kendo-flatcolorpicker
|
|
@@ -12539,7 +12770,7 @@ ColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
12539
12770
|
</kendo-flatcolorpicker>
|
|
12540
12771
|
</ng-template>
|
|
12541
12772
|
<ng-container #container></ng-container>
|
|
12542
|
-
`, isInline: true, components: [{ type: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12773
|
+
`, isInline: true, components: [{ type: i2$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { 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: FlatColorPickerComponent, selector: "kendo-flatcolorpicker", inputs: ["readonly", "disabled", "format", "value", "tabindex", "clearButton", "preview", "actionsLayout", "activeView", "views", "gradientSettings", "paletteSettings"], outputs: ["valueChange", "cancel", "activeViewChange", "actionButtonClick"], exportAs: ["kendoFlatColorPicker"] }], directives: [{ type: LocalizedColorPickerMessagesDirective, selector: "[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]" }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
12543
12774
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerComponent, decorators: [{
|
|
12544
12775
|
type: Component,
|
|
12545
12776
|
args: [{
|
|
@@ -12616,18 +12847,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12616
12847
|
<span #activeColor class="k-input-inner">
|
|
12617
12848
|
<span
|
|
12618
12849
|
class="k-value-icon k-color-preview"
|
|
12619
|
-
[ngClass]="{'k-icon-color-preview': iconStyles, 'k-no-color': !value}"
|
|
12620
|
-
|
|
12850
|
+
[ngClass]="{'k-icon-color-preview': customIconStyles || iconStyles, 'k-no-color': !value}"
|
|
12851
|
+
>
|
|
12852
|
+
<kendo-icon-wrapper
|
|
12853
|
+
*ngIf="iconClass || icon"
|
|
12854
|
+
[name]="iconStyles"
|
|
12855
|
+
innerCssClass="k-color-preview-icon"
|
|
12856
|
+
[customFontClass]="customIconStyles"
|
|
12857
|
+
[svgIcon]="svgIcon"
|
|
12858
|
+
>
|
|
12859
|
+
</kendo-icon-wrapper>
|
|
12621
12860
|
<span class="k-color-preview-mask" [style.background-color]="value"></span>
|
|
12622
12861
|
</span>
|
|
12862
|
+
|
|
12623
12863
|
</span>
|
|
12624
12864
|
<button
|
|
12865
|
+
kendoButton
|
|
12625
12866
|
tabindex="-1"
|
|
12626
12867
|
type="button"
|
|
12627
12868
|
role="none"
|
|
12869
|
+
icon="caret-alt-down"
|
|
12870
|
+
[svgIcon]="arrowDownIcon"
|
|
12628
12871
|
aria-hidden="true"
|
|
12629
|
-
class="k-input-button
|
|
12630
|
-
|
|
12872
|
+
class="k-input-button"
|
|
12873
|
+
>
|
|
12631
12874
|
</button>
|
|
12632
12875
|
<ng-template #popupTemplate>
|
|
12633
12876
|
<kendo-flatcolorpicker
|
|
@@ -12715,6 +12958,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12715
12958
|
type: Input
|
|
12716
12959
|
}], iconClass: [{
|
|
12717
12960
|
type: Input
|
|
12961
|
+
}], svgIcon: [{
|
|
12962
|
+
type: Input
|
|
12718
12963
|
}], clearButton: [{
|
|
12719
12964
|
type: Input
|
|
12720
12965
|
}], tabindex: [{
|
|
@@ -12859,7 +13104,9 @@ ColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
12859
13104
|
NumericTextBoxModule,
|
|
12860
13105
|
CommonModule,
|
|
12861
13106
|
PopupModule,
|
|
12862
|
-
DraggableModule
|
|
13107
|
+
DraggableModule,
|
|
13108
|
+
ButtonModule,
|
|
13109
|
+
IconsModule], exports: [ColorPickerComponent,
|
|
12863
13110
|
ColorPaletteComponent,
|
|
12864
13111
|
ColorGradientComponent,
|
|
12865
13112
|
FlatColorPickerComponent,
|
|
@@ -12870,7 +13117,9 @@ ColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
|
|
|
12870
13117
|
NumericTextBoxModule,
|
|
12871
13118
|
CommonModule,
|
|
12872
13119
|
PopupModule,
|
|
12873
|
-
DraggableModule
|
|
13120
|
+
DraggableModule,
|
|
13121
|
+
ButtonModule,
|
|
13122
|
+
IconsModule
|
|
12874
13123
|
]] });
|
|
12875
13124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerModule, decorators: [{
|
|
12876
13125
|
type: NgModule,
|
|
@@ -12885,7 +13134,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12885
13134
|
NumericTextBoxModule,
|
|
12886
13135
|
CommonModule,
|
|
12887
13136
|
PopupModule,
|
|
12888
|
-
DraggableModule
|
|
13137
|
+
DraggableModule,
|
|
13138
|
+
ButtonModule,
|
|
13139
|
+
IconsModule
|
|
12889
13140
|
]
|
|
12890
13141
|
}]
|
|
12891
13142
|
}] });
|
|
@@ -13677,6 +13928,7 @@ const DEFAULT_POPUP_SCALE = 3;
|
|
|
13677
13928
|
const DEFAULT_EXPORT_SCALE = 2;
|
|
13678
13929
|
const DEFAULT_COLOR = '#000000';
|
|
13679
13930
|
const DEFAULT_BACKGROUND_COLOR = '#ffffff';
|
|
13931
|
+
const iconsMap = { xIcon, hyperlinkOpenIcon };
|
|
13680
13932
|
/**
|
|
13681
13933
|
* Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
|
|
13682
13934
|
*
|
|
@@ -13837,6 +14089,12 @@ class SignatureComponent {
|
|
|
13837
14089
|
get value() {
|
|
13838
14090
|
return this._value;
|
|
13839
14091
|
}
|
|
14092
|
+
/**
|
|
14093
|
+
* @hidden
|
|
14094
|
+
*/
|
|
14095
|
+
svgIcon(name) {
|
|
14096
|
+
return iconsMap[name];
|
|
14097
|
+
}
|
|
13840
14098
|
/**
|
|
13841
14099
|
* Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
|
|
13842
14100
|
*
|
|
@@ -13922,6 +14180,9 @@ class SignatureComponent {
|
|
|
13922
14180
|
get showClear() {
|
|
13923
14181
|
return !(this.isEmpty || this.isDrawing || this.readonly || this.disabled);
|
|
13924
14182
|
}
|
|
14183
|
+
/**
|
|
14184
|
+
* @hidden
|
|
14185
|
+
*/
|
|
13925
14186
|
get focused() {
|
|
13926
14187
|
return this.isFocused;
|
|
13927
14188
|
}
|
|
@@ -14247,6 +14508,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14247
14508
|
kendoButton
|
|
14248
14509
|
class="k-signature-action k-signature-maximize"
|
|
14249
14510
|
icon="hyperlink-open"
|
|
14511
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14250
14512
|
fillMode="flat"
|
|
14251
14513
|
[size]="size"
|
|
14252
14514
|
(click)="onMaximize()"
|
|
@@ -14258,6 +14520,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14258
14520
|
kendoButton
|
|
14259
14521
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
14260
14522
|
icon="hyperlink-open"
|
|
14523
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14261
14524
|
fillMode="flat"
|
|
14262
14525
|
[size]="size"
|
|
14263
14526
|
(click)="onMinimize()"
|
|
@@ -14282,6 +14545,7 @@ SignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
14282
14545
|
kendoButton
|
|
14283
14546
|
class="k-signature-action k-signature-clear"
|
|
14284
14547
|
icon="close"
|
|
14548
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
14285
14549
|
fillMode="flat"
|
|
14286
14550
|
[size]="size"
|
|
14287
14551
|
[attr.aria-label]="clearTitle"
|
|
@@ -14348,6 +14612,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
14348
14612
|
kendoButton
|
|
14349
14613
|
class="k-signature-action k-signature-maximize"
|
|
14350
14614
|
icon="hyperlink-open"
|
|
14615
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14351
14616
|
fillMode="flat"
|
|
14352
14617
|
[size]="size"
|
|
14353
14618
|
(click)="onMaximize()"
|
|
@@ -14359,6 +14624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
14359
14624
|
kendoButton
|
|
14360
14625
|
class="k-signature-action k-signature-minimize k-rotate-180"
|
|
14361
14626
|
icon="hyperlink-open"
|
|
14627
|
+
[svgIcon]="svgIcon('hyperlinkOpenIcon')"
|
|
14362
14628
|
fillMode="flat"
|
|
14363
14629
|
[size]="size"
|
|
14364
14630
|
(click)="onMinimize()"
|
|
@@ -14383,6 +14649,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
14383
14649
|
kendoButton
|
|
14384
14650
|
class="k-signature-action k-signature-clear"
|
|
14385
14651
|
icon="close"
|
|
14652
|
+
[svgIcon]="svgIcon('xIcon')"
|
|
14386
14653
|
fillMode="flat"
|
|
14387
14654
|
[size]="size"
|
|
14388
14655
|
[attr.aria-label]="clearTitle"
|
|
@@ -14539,12 +14806,14 @@ SignatureModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
14539
14806
|
SignatureCustomMessagesComponent,
|
|
14540
14807
|
LocalizedSignatureMessagesDirective], imports: [ButtonModule,
|
|
14541
14808
|
CommonModule,
|
|
14542
|
-
DialogsModule
|
|
14809
|
+
DialogsModule,
|
|
14810
|
+
IconsModule], exports: [SignatureComponent,
|
|
14543
14811
|
SignatureCustomMessagesComponent] });
|
|
14544
14812
|
SignatureModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, imports: [[
|
|
14545
14813
|
ButtonModule,
|
|
14546
14814
|
CommonModule,
|
|
14547
|
-
DialogsModule
|
|
14815
|
+
DialogsModule,
|
|
14816
|
+
IconsModule
|
|
14548
14817
|
]] });
|
|
14549
14818
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SignatureModule, decorators: [{
|
|
14550
14819
|
type: NgModule,
|
|
@@ -14561,7 +14830,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
14561
14830
|
imports: [
|
|
14562
14831
|
ButtonModule,
|
|
14563
14832
|
CommonModule,
|
|
14564
|
-
DialogsModule
|
|
14833
|
+
DialogsModule,
|
|
14834
|
+
IconsModule
|
|
14565
14835
|
]
|
|
14566
14836
|
}]
|
|
14567
14837
|
}] });
|