@progress/kendo-angular-inputs 18.1.0-develop.2 → 18.1.0-develop.20
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/adaptiveness/adaptive-close-button.component.d.ts +20 -0
- package/colorpicker/adaptiveness/adaptive-renderer.component.d.ts +38 -0
- package/colorpicker/color-gradient-text-label.directive.d.ts +19 -0
- package/colorpicker/color-gradient.component.d.ts +19 -1
- package/colorpicker/color-input.component.d.ts +15 -3
- package/colorpicker/color-palette.component.d.ts +16 -6
- package/colorpicker/colorpicker.component.d.ts +55 -8
- package/colorpicker/flatcolorpicker-actions.component.d.ts +3 -1
- package/colorpicker/flatcolorpicker-header.component.d.ts +3 -1
- package/colorpicker/flatcolorpicker.component.d.ts +19 -1
- package/colorpicker/localization/messages.d.ts +9 -1
- package/colorpicker/models/adaptive-mode.d.ts +23 -0
- package/common/utils.d.ts +4 -0
- package/directives.d.ts +7 -1
- package/esm2022/colorpicker/adaptiveness/adaptive-close-button.component.mjs +62 -0
- package/esm2022/colorpicker/adaptiveness/adaptive-renderer.component.mjs +205 -0
- package/esm2022/colorpicker/color-gradient-text-label.directive.mjs +34 -0
- package/esm2022/colorpicker/color-gradient.component.mjs +75 -17
- package/esm2022/colorpicker/color-input.component.mjs +56 -23
- package/esm2022/colorpicker/color-palette.component.mjs +45 -15
- package/esm2022/colorpicker/colorpicker.component.mjs +182 -41
- package/esm2022/colorpicker/flatcolorpicker-actions.component.mjs +22 -7
- package/esm2022/colorpicker/flatcolorpicker-header.component.mjs +8 -3
- package/esm2022/colorpicker/flatcolorpicker.component.mjs +72 -17
- package/esm2022/colorpicker/localization/messages.mjs +13 -1
- package/esm2022/colorpicker/models/adaptive-mode.mjs +27 -0
- package/esm2022/colorpicker/services/flatcolorpicker.service.mjs +3 -3
- package/esm2022/colorpicker.module.mjs +3 -2
- package/esm2022/common/utils.mjs +4 -0
- package/esm2022/directives.mjs +10 -0
- package/esm2022/index.mjs +3 -0
- package/esm2022/inputs.module.mjs +6 -3
- package/esm2022/otpinput/localization/custom-messages.component.mjs +43 -0
- package/esm2022/otpinput/localization/localized-textbox-messages.directive.mjs +39 -0
- package/esm2022/otpinput/localization/messages.mjs +34 -0
- package/esm2022/otpinput/models/otpinput-type.mjs +5 -0
- package/esm2022/otpinput/models/separator-icon.mjs +5 -0
- package/esm2022/otpinput/otpinput-separator.component.mjs +83 -0
- package/esm2022/otpinput/otpinput.component.mjs +930 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-inputs.mjs +2694 -956
- package/index.d.ts +4 -0
- package/inputs.module.d.ts +3 -1
- package/otpinput/localization/custom-messages.component.d.ts +17 -0
- package/otpinput/localization/localized-textbox-messages.directive.d.ts +16 -0
- package/otpinput/localization/messages.d.ts +24 -0
- package/otpinput/models/otpinput-type.d.ts +10 -0
- package/otpinput/models/separator-icon.d.ts +12 -0
- package/otpinput/otpinput-separator.component.d.ts +25 -0
- package/otpinput/otpinput.component.d.ts +284 -0
- package/package.json +12 -10
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Component, HostBinding, Input } from "@angular/core";
|
|
6
|
+
import { NgClass, NgIf } from "@angular/common";
|
|
7
|
+
import { IconWrapperComponent } from "@progress/kendo-angular-icons";
|
|
8
|
+
import { isPresent } from "@progress/kendo-angular-common";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export class OTPInputSeparatorComponent {
|
|
14
|
+
set separator(otpSeparator) {
|
|
15
|
+
this._separator = otpSeparator;
|
|
16
|
+
this.clearSeparator();
|
|
17
|
+
if (!isPresent(otpSeparator)) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (typeof otpSeparator === 'string') {
|
|
21
|
+
this.hasText = true;
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (typeof otpSeparator.value !== 'string') {
|
|
25
|
+
this.hasSVGIcon = otpSeparator?.type === 'svgIcon';
|
|
26
|
+
this.separatorSVGIcon = otpSeparator.value;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.hasIconClass = otpSeparator?.type === 'iconClass';
|
|
30
|
+
this.hasFontIcon = otpSeparator?.type === 'fontIcon';
|
|
31
|
+
this.separatorIconString = otpSeparator.value;
|
|
32
|
+
}
|
|
33
|
+
get separator() {
|
|
34
|
+
return this._separator;
|
|
35
|
+
}
|
|
36
|
+
wrapperClass = true;
|
|
37
|
+
hasText;
|
|
38
|
+
hasIconClass;
|
|
39
|
+
hasSVGIcon;
|
|
40
|
+
hasFontIcon;
|
|
41
|
+
separatorIconString;
|
|
42
|
+
separatorSVGIcon;
|
|
43
|
+
_separator;
|
|
44
|
+
clearSeparator() {
|
|
45
|
+
this.hasText = false;
|
|
46
|
+
this.hasFontIcon = false;
|
|
47
|
+
this.hasIconClass = false;
|
|
48
|
+
this.hasSVGIcon = false;
|
|
49
|
+
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OTPInputSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: OTPInputSeparatorComponent, isStandalone: true, selector: "kendo-otpinput-separator", inputs: { separator: "separator" }, host: { properties: { "class.k-otp-separator": "this.wrapperClass" } }, exportAs: ["kendoOTPInputSeparator"], ngImport: i0, template: `
|
|
52
|
+
<ng-container *ngIf="hasText">{{this.separator}}</ng-container>
|
|
53
|
+
<span *ngIf="hasIconClass" [ngClass]="separatorIconString"></span>
|
|
54
|
+
<kendo-icon-wrapper
|
|
55
|
+
*ngIf="hasFontIcon || hasSVGIcon"
|
|
56
|
+
[name]="separatorIconString"
|
|
57
|
+
[svgIcon]="separatorSVGIcon"
|
|
58
|
+
></kendo-icon-wrapper>
|
|
59
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OTPInputSeparatorComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{
|
|
64
|
+
exportAs: 'kendoOTPInputSeparator',
|
|
65
|
+
selector: 'kendo-otpinput-separator',
|
|
66
|
+
template: `
|
|
67
|
+
<ng-container *ngIf="hasText">{{this.separator}}</ng-container>
|
|
68
|
+
<span *ngIf="hasIconClass" [ngClass]="separatorIconString"></span>
|
|
69
|
+
<kendo-icon-wrapper
|
|
70
|
+
*ngIf="hasFontIcon || hasSVGIcon"
|
|
71
|
+
[name]="separatorIconString"
|
|
72
|
+
[svgIcon]="separatorSVGIcon"
|
|
73
|
+
></kendo-icon-wrapper>
|
|
74
|
+
`,
|
|
75
|
+
standalone: true,
|
|
76
|
+
imports: [NgIf, NgClass, IconWrapperComponent]
|
|
77
|
+
}]
|
|
78
|
+
}], propDecorators: { separator: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], wrapperClass: [{
|
|
81
|
+
type: HostBinding,
|
|
82
|
+
args: ['class.k-otp-separator']
|
|
83
|
+
}] } });
|