@progress/kendo-angular-inputs 9.0.5-dev.202208101035 → 9.1.0-sig.202208231615
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/bundles/kendo-angular-inputs.umd.js +1 -1
- package/common/utils.d.ts +21 -0
- package/esm2015/common/utils.js +16 -6
- package/esm2015/inputs.module.js +7 -3
- package/esm2015/main.js +4 -0
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/signature/events/close-event.js +10 -0
- package/esm2015/signature/events/index.js +6 -0
- package/esm2015/signature/events/open-event.js +10 -0
- package/esm2015/signature/localization/custom-messages.component.js +40 -0
- package/esm2015/signature/localization/index.js +7 -0
- package/esm2015/signature/localization/localized-signature-messages.directive.js +36 -0
- package/esm2015/signature/localization/messages.js +27 -0
- package/esm2015/signature/signature.component.js +711 -0
- package/esm2015/signature.module.js +64 -0
- package/fesm2015/kendo-angular-inputs.js +917 -57
- package/inputs.module.d.ts +2 -1
- package/main.d.ts +4 -0
- package/package.json +6 -4
- package/signature/events/close-event.d.ts +10 -0
- package/signature/events/index.d.ts +6 -0
- package/signature/events/open-event.d.ts +10 -0
- package/signature/localization/custom-messages.component.d.ts +17 -0
- package/signature/localization/index.d.ts +7 -0
- package/signature/localization/localized-signature-messages.directive.d.ts +16 -0
- package/signature/localization/messages.d.ts +25 -0
- package/signature/signature.component.d.ts +307 -0
- package/signature.module.d.ts +46 -0
package/common/utils.d.ts
CHANGED
|
@@ -27,6 +27,27 @@ export declare const requiresZoneOnBlur: (ngControl: any) => any;
|
|
|
27
27
|
* @param max The inclusive upper bound number.
|
|
28
28
|
*/
|
|
29
29
|
export declare const fitIntoBounds: (contender: number, min: number, max: number) => number;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare const SIZE_MAP: {
|
|
34
|
+
small: string;
|
|
35
|
+
medium: string;
|
|
36
|
+
large: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
export declare const ROUNDED_MAP: {
|
|
42
|
+
small: string;
|
|
43
|
+
medium: string;
|
|
44
|
+
large: string;
|
|
45
|
+
full: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
export declare const isNone: (style: string) => boolean;
|
|
30
51
|
/**
|
|
31
52
|
* @hidden
|
|
32
53
|
*
|
package/esm2015/common/utils.js
CHANGED
|
@@ -32,17 +32,27 @@ export const fitIntoBounds = (contender, min, max) => {
|
|
|
32
32
|
}
|
|
33
33
|
return contender <= min ? min : contender >= max ? max : contender;
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export const SIZE_MAP = {
|
|
36
39
|
small: 'sm',
|
|
37
40
|
medium: 'md',
|
|
38
41
|
large: 'lg'
|
|
39
42
|
};
|
|
40
|
-
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
export const ROUNDED_MAP = {
|
|
41
47
|
small: 'sm',
|
|
42
48
|
medium: 'md',
|
|
43
49
|
large: 'lg',
|
|
44
50
|
full: 'full'
|
|
45
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export const isNone = (style) => style === 'none';
|
|
46
56
|
/**
|
|
47
57
|
* @hidden
|
|
48
58
|
*
|
|
@@ -52,13 +62,13 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
|
|
|
52
62
|
switch (stylingOption) {
|
|
53
63
|
case 'size':
|
|
54
64
|
return {
|
|
55
|
-
toRemove: `k-${componentType}-${
|
|
56
|
-
toAdd: newValue !== 'none' ? `k-${componentType}-${
|
|
65
|
+
toRemove: `k-${componentType}-${SIZE_MAP[previousValue]}`,
|
|
66
|
+
toAdd: newValue !== 'none' ? `k-${componentType}-${SIZE_MAP[newValue]}` : ''
|
|
57
67
|
};
|
|
58
68
|
case 'rounded':
|
|
59
69
|
return {
|
|
60
|
-
toRemove: `k-rounded-${
|
|
61
|
-
toAdd: newValue !== 'none' ? `k-rounded-${
|
|
70
|
+
toRemove: `k-rounded-${ROUNDED_MAP[previousValue]}`,
|
|
71
|
+
toAdd: newValue !== 'none' ? `k-rounded-${ROUNDED_MAP[newValue]}` : ''
|
|
62
72
|
};
|
|
63
73
|
case 'fillMode':
|
|
64
74
|
return {
|
package/esm2015/inputs.module.js
CHANGED
|
@@ -15,6 +15,7 @@ import { ColorPickerModule } from './colorpicker.module';
|
|
|
15
15
|
import { CheckBoxModule } from './checkbox.module';
|
|
16
16
|
import { RadioButtonModule } from './radiobutton.module';
|
|
17
17
|
import { FormFieldModule } from './formfield.module';
|
|
18
|
+
import { SignatureModule } from './signature.module';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
/**
|
|
20
21
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
@@ -61,7 +62,8 @@ InputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
61
62
|
ColorPickerModule,
|
|
62
63
|
CheckBoxModule,
|
|
63
64
|
RadioButtonModule,
|
|
64
|
-
FormFieldModule
|
|
65
|
+
FormFieldModule,
|
|
66
|
+
SignatureModule] });
|
|
65
67
|
InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputsModule, imports: [[CommonModule], TextAreaModule,
|
|
66
68
|
TextBoxModule,
|
|
67
69
|
SliderModule,
|
|
@@ -72,7 +74,8 @@ InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
|
72
74
|
ColorPickerModule,
|
|
73
75
|
CheckBoxModule,
|
|
74
76
|
RadioButtonModule,
|
|
75
|
-
FormFieldModule
|
|
77
|
+
FormFieldModule,
|
|
78
|
+
SignatureModule] });
|
|
76
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputsModule, decorators: [{
|
|
77
80
|
type: NgModule,
|
|
78
81
|
args: [{
|
|
@@ -87,7 +90,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
87
90
|
ColorPickerModule,
|
|
88
91
|
CheckBoxModule,
|
|
89
92
|
RadioButtonModule,
|
|
90
|
-
FormFieldModule
|
|
93
|
+
FormFieldModule,
|
|
94
|
+
SignatureModule
|
|
91
95
|
],
|
|
92
96
|
imports: [CommonModule]
|
|
93
97
|
}]
|
package/esm2015/main.js
CHANGED
|
@@ -57,3 +57,7 @@ export { RangeSliderCustomMessagesComponent } from './rangeslider/localization/c
|
|
|
57
57
|
export { SwitchCustomMessagesComponent } from './switch/localization/custom-messages.component';
|
|
58
58
|
export { TextBoxCustomMessagesComponent } from './textbox/localization/custom-messages.component';
|
|
59
59
|
export { ColorPickerCustomMessagesComponent } from './colorpicker/localization/custom-messages.component';
|
|
60
|
+
export { SignatureComponent } from './signature/signature.component';
|
|
61
|
+
export { SignatureModule } from './signature.module';
|
|
62
|
+
export { SignatureOpenEvent, SignatureCloseEvent } from './signature/events';
|
|
63
|
+
export { SignatureCustomMessagesComponent, LocalizedSignatureMessagesDirective, SignatureMessages } from './signature/localization';
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-inputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1661271463,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the `close` event of the Signature component.
|
|
8
|
+
*/
|
|
9
|
+
export class SignatureCloseEvent extends PreventableEvent {
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export * from './close-event';
|
|
6
|
+
export * from './open-event';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the `open` event of the Signature component.
|
|
8
|
+
*/
|
|
9
|
+
export class SignatureOpenEvent extends PreventableEvent {
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 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, forwardRef } from '@angular/core';
|
|
6
|
+
import { SignatureMessages } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
+
/**
|
|
10
|
+
* Custom component messages override default component messages.
|
|
11
|
+
*/
|
|
12
|
+
export class SignatureCustomMessagesComponent extends SignatureMessages {
|
|
13
|
+
constructor(service) {
|
|
14
|
+
super();
|
|
15
|
+
this.service = service;
|
|
16
|
+
}
|
|
17
|
+
get override() {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
SignatureCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
SignatureCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SignatureCustomMessagesComponent, selector: "kendo-signature-messages", providers: [
|
|
23
|
+
{
|
|
24
|
+
provide: SignatureMessages,
|
|
25
|
+
useExisting: forwardRef(() => SignatureCustomMessagesComponent)
|
|
26
|
+
}
|
|
27
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureCustomMessagesComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{
|
|
31
|
+
providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: SignatureMessages,
|
|
34
|
+
useExisting: forwardRef(() => SignatureCustomMessagesComponent)
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
selector: 'kendo-signature-messages',
|
|
38
|
+
template: ``
|
|
39
|
+
}]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export { SignatureCustomMessagesComponent } from './custom-messages.component';
|
|
6
|
+
export { LocalizedSignatureMessagesDirective } from './localized-signature-messages.directive';
|
|
7
|
+
export { SignatureMessages } from './messages';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, forwardRef } from '@angular/core';
|
|
6
|
+
import { SignatureMessages } from './messages';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export class LocalizedSignatureMessagesDirective extends SignatureMessages {
|
|
13
|
+
constructor(service) {
|
|
14
|
+
super();
|
|
15
|
+
this.service = service;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
LocalizedSignatureMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSignatureMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
LocalizedSignatureMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedSignatureMessagesDirective, selector: "[kendoSignatureLocalizedMessages]", providers: [
|
|
20
|
+
{
|
|
21
|
+
provide: SignatureMessages,
|
|
22
|
+
useExisting: forwardRef(() => LocalizedSignatureMessagesDirective)
|
|
23
|
+
}
|
|
24
|
+
], usesInheritance: true, ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSignatureMessagesDirective, decorators: [{
|
|
26
|
+
type: Directive,
|
|
27
|
+
args: [{
|
|
28
|
+
providers: [
|
|
29
|
+
{
|
|
30
|
+
provide: SignatureMessages,
|
|
31
|
+
useExisting: forwardRef(() => LocalizedSignatureMessagesDirective)
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
selector: '[kendoSignatureLocalizedMessages]'
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive, Input } from '@angular/core';
|
|
6
|
+
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class SignatureMessages extends ComponentMessages {
|
|
12
|
+
}
|
|
13
|
+
SignatureMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
SignatureMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SignatureMessages, selector: "kendo-signature-messages-base", inputs: { clear: "clear", minimize: "minimize", maximize: "maximize" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SignatureMessages, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
19
|
+
selector: 'kendo-signature-messages-base'
|
|
20
|
+
}]
|
|
21
|
+
}], propDecorators: { clear: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}], minimize: [{
|
|
24
|
+
type: Input
|
|
25
|
+
}], maximize: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}] } });
|