@progress/kendo-angular-inputs 9.0.5-dev.202208101035 → 9.1.0-sig.202208261245

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.
@@ -15,6 +15,7 @@ import * as i9 from "./colorpicker.module";
15
15
  import * as i10 from "./checkbox.module";
16
16
  import * as i11 from "./radiobutton.module";
17
17
  import * as i12 from "./formfield.module";
18
+ import * as i13 from "./signature.module";
18
19
  /**
19
20
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
20
21
  * definition for the Inputs components.
@@ -49,6 +50,6 @@ import * as i12 from "./formfield.module";
49
50
  */
50
51
  export declare class InputsModule {
51
52
  static ɵfac: i0.ɵɵFactoryDeclaration<InputsModule, never>;
52
- static ɵmod: i0.ɵɵNgModuleDeclaration<InputsModule, never, [typeof i1.CommonModule], [typeof i2.TextAreaModule, typeof i3.TextBoxModule, typeof i4.SliderModule, typeof i5.RangeSliderModule, typeof i6.SwitchModule, typeof i7.NumericTextBoxModule, typeof i8.MaskedTextBoxModule, typeof i9.ColorPickerModule, typeof i10.CheckBoxModule, typeof i11.RadioButtonModule, typeof i12.FormFieldModule]>;
53
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InputsModule, never, [typeof i1.CommonModule], [typeof i2.TextAreaModule, typeof i3.TextBoxModule, typeof i4.SliderModule, typeof i5.RangeSliderModule, typeof i6.SwitchModule, typeof i7.NumericTextBoxModule, typeof i8.MaskedTextBoxModule, typeof i9.ColorPickerModule, typeof i10.CheckBoxModule, typeof i11.RadioButtonModule, typeof i12.FormFieldModule, typeof i13.SignatureModule]>;
53
54
  static ɵinj: i0.ɵɵInjectorDeclaration<InputsModule>;
54
55
  }
package/main.d.ts CHANGED
@@ -67,3 +67,7 @@ export { RangeSliderCustomMessagesComponent } from './rangeslider/localization/c
67
67
  export { SwitchCustomMessagesComponent } from './switch/localization/custom-messages.component';
68
68
  export { TextBoxCustomMessagesComponent } from './textbox/localization/custom-messages.component';
69
69
  export { ColorPickerCustomMessagesComponent } from './colorpicker/localization/custom-messages.component';
70
+ export { SignatureComponent } from './signature/signature.component';
71
+ export { SignatureModule } from './signature.module';
72
+ export { SignatureOpenEvent, SignatureCloseEvent } from './signature/events';
73
+ export { SignatureCustomMessagesComponent, LocalizedSignatureMessagesDirective, SignatureMessages } from './signature/localization';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-inputs",
3
- "version": "9.0.5-dev.202208101035",
3
+ "version": "9.1.0-sig.202208261245",
4
4
  "description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -31,9 +31,10 @@
31
31
  "friendlyName": "Inputs"
32
32
  },
33
33
  "dependencies": {
34
- "@progress/kendo-common": "^0.2.1",
35
- "@progress/kendo-schematics": "^3.0.0",
34
+ "@progress/kendo-common": "^0.2.2",
36
35
  "@progress/kendo-draggable": "^3.0.0",
36
+ "@progress/kendo-inputs-common": "file:../kendo-inputs-common/progress-kendo-inputs-common-0.0.0-semantically-released.tgz",
37
+ "@progress/kendo-schematics": "^3.0.0",
37
38
  "tslib": "^2.3.1"
38
39
  },
39
40
  "peerDependencies": {
@@ -41,11 +42,13 @@
41
42
  "@angular/common": "12 - 14",
42
43
  "@angular/core": "12 - 14",
43
44
  "@angular/forms": "12 - 14",
45
+ "@progress/kendo-angular-buttons": "^8.0.0",
44
46
  "@progress/kendo-angular-common": "^3.0.0",
47
+ "@progress/kendo-angular-dialog": "^7.0.0",
45
48
  "@progress/kendo-angular-intl": "^4.0.0",
46
49
  "@progress/kendo-angular-l10n": "^4.0.0",
47
50
  "@progress/kendo-angular-popup": "^5.0.0",
48
- "@progress/kendo-drawing": "^1.5.12",
51
+ "@progress/kendo-drawing": "^1.17.0",
49
52
  "@progress/kendo-licensing": "^1.0.2",
50
53
  "rxjs": "^6.5.3 || ^7.0.0"
51
54
  },
@@ -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 declare 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 declare class SignatureOpenEvent extends PreventableEvent {
10
+ }
@@ -0,0 +1,17 @@
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 { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { SignatureMessages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Custom component messages override default component messages.
10
+ */
11
+ export declare class SignatureCustomMessagesComponent extends SignatureMessages {
12
+ protected service: LocalizationService;
13
+ constructor(service: LocalizationService);
14
+ protected get override(): boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignatureCustomMessagesComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SignatureCustomMessagesComponent, "kendo-signature-messages", never, {}, {}, never, never>;
17
+ }
@@ -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,16 @@
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 { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { SignatureMessages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class LocalizedSignatureMessagesDirective extends SignatureMessages {
12
+ protected service: LocalizationService;
13
+ constructor(service: LocalizationService);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedSignatureMessagesDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedSignatureMessagesDirective, "[kendoSignatureLocalizedMessages]", never, {}, {}, never>;
16
+ }
@@ -0,0 +1,25 @@
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 { ComponentMessages } from '@progress/kendo-angular-l10n';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare class SignatureMessages extends ComponentMessages {
11
+ /**
12
+ * The title of the Clear button of the Signature.
13
+ */
14
+ clear: string;
15
+ /**
16
+ * The title of the Minimize button of the Signature.
17
+ */
18
+ minimize: string;
19
+ /**
20
+ * The title of the Maximize button of the Signature.
21
+ */
22
+ maximize: string;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignatureMessages, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SignatureMessages, "kendo-signature-messages-base", never, { "clear": "clear"; "minimize": "minimize"; "maximize": "maximize"; }, {}, never>;
25
+ }
@@ -0,0 +1,317 @@
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 { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, Renderer2, SimpleChanges } from '@angular/core';
6
+ import { ControlValueAccessor } from '@angular/forms';
7
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { InputFillMode, InputRounded, InputSize } from '../common/models';
9
+ import { SignatureCloseEvent, SignatureOpenEvent } from './events';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * Represents the [Kendo UI Signature component for Angular]({% slug overview_signature %}).
13
+ *
14
+ * The Signature allows users to add a hand-drawn signature to forms.
15
+ */
16
+ export declare class SignatureComponent implements ControlValueAccessor {
17
+ private element;
18
+ private renderer;
19
+ private ngZone;
20
+ private cd;
21
+ localization: LocalizationService;
22
+ staticHostClasses: boolean;
23
+ direction: string;
24
+ /**
25
+ * Sets the read-only state of the Signature.
26
+ *
27
+ * @default false
28
+ */
29
+ readonly: boolean;
30
+ /**
31
+ * Sets the disabled state of the Signature.
32
+ *
33
+ * @default false
34
+ */
35
+ disabled: boolean;
36
+ /**
37
+ * Sets the width of the signature in pixels.
38
+ *
39
+ * The width can also be set using inline styles and CSS.
40
+ */
41
+ width: number;
42
+ /**
43
+ * The height of the signature in pixels.
44
+ *
45
+ * The height can also be set using inline styles and CSS.
46
+ */
47
+ height: number;
48
+ /**
49
+ * Gets or sets the value of the signature.
50
+ *
51
+ * The value is a Base64-encoded PNG image.
52
+ */
53
+ set value(value: string);
54
+ get value(): string;
55
+ /**
56
+ * Specifies the [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
57
+ *
58
+ * @default 0
59
+ */
60
+ set tabindex(value: number);
61
+ get tabindex(): number;
62
+ /**
63
+ * The size property specifies the padding of the Signature internal controls
64
+ * ([see example]({% slug appearance_signature %}#toc-size)).
65
+ *
66
+ * The possible values are:
67
+ * * `small`
68
+ * * `medium` (default)
69
+ * * `large`
70
+ * * `none`
71
+ */
72
+ size: InputSize;
73
+ /**
74
+ * The rounded property specifies the border radius of the signature
75
+ * ([see example]({% slug appearance_signature %}#toc-rounded)).
76
+ *
77
+ * The possible values are:
78
+ * * `small`
79
+ * * `medium` (default)
80
+ * * `large`
81
+ * * `full`
82
+ * * `none`
83
+ */
84
+ rounded: InputRounded;
85
+ /**
86
+ * The fillMode property specifies the background and border styles of the signature
87
+ * ([see example]({% slug appearance_signature %}#toc-fillMode)).
88
+ *
89
+ * The possible values are:
90
+ * * `flat`
91
+ * * `solid` (default)
92
+ * * `outline`
93
+ * * `none`
94
+ */
95
+ fillMode: InputFillMode;
96
+ /**
97
+ * The stroke color of the signature.
98
+ *
99
+ * Accepts CSS color names and hex values.
100
+ *
101
+ * @default '#000000'
102
+ */
103
+ color: string;
104
+ /**
105
+ * The background color of the signature.
106
+ *
107
+ * Accepts CSS color names and hex values.
108
+ *
109
+ * @default '#ffffff'
110
+ */
111
+ backgroundColor: string;
112
+ /**
113
+ * The stroke width of the signature.
114
+ *
115
+ * @default 1
116
+ */
117
+ strokeWidth: number;
118
+ /**
119
+ * A flag indicating whether to smooth out signature lines.
120
+ *
121
+ * @default false
122
+ */
123
+ smooth: boolean;
124
+ /**
125
+ * A flag indicating if the signature can be maximized.
126
+ *
127
+ * @default true
128
+ */
129
+ maximizable: boolean;
130
+ /**
131
+ * @hidden
132
+ */
133
+ maximized: boolean;
134
+ /**
135
+ * The scale factor for the popup.
136
+ *
137
+ * The Signature width and height will be multiplied by the scale when showing the popup.
138
+ *
139
+ * @default 3
140
+ */
141
+ popupScale: number;
142
+ /**
143
+ * @hidden
144
+ */
145
+ parentLocalization: LocalizationService;
146
+ /**
147
+ * A flag indicating whether the dotted line should be displayed in the background.
148
+ *
149
+ * @default false
150
+ */
151
+ hideLine: boolean;
152
+ /**
153
+ * Fires each time the signature value is changed.
154
+ */
155
+ valueChange: EventEmitter<string>;
156
+ /**
157
+ * Fires each time the popup is about to open.
158
+ * This event is preventable. If you cancel it, the popup will remain closed.
159
+ */
160
+ open: EventEmitter<SignatureOpenEvent>;
161
+ /**
162
+ * Fires each time the popup is about to close.
163
+ * This event is preventable. If you cancel it, the popup will remain open.
164
+ */
165
+ close: EventEmitter<SignatureCloseEvent>;
166
+ /**
167
+ * Fires each time Signature is focused.
168
+ */
169
+ onFocus: EventEmitter<any>;
170
+ /**
171
+ * Fires each time the Signature is blurred.
172
+ */
173
+ onBlur: EventEmitter<any>;
174
+ /**
175
+ * @hidden
176
+ */
177
+ minimize: EventEmitter<void>;
178
+ canvas: ElementRef;
179
+ /**
180
+ * Indicates whether the Signature wrapper is focused.
181
+ */
182
+ isFocused: boolean;
183
+ /**
184
+ * Indicates whether the Signature popup is open.
185
+ */
186
+ isOpen: boolean;
187
+ /**
188
+ * @hidden
189
+ */
190
+ get isEmpty(): boolean;
191
+ /**
192
+ * @hidden
193
+ */
194
+ get clearTitle(): string;
195
+ /**
196
+ * @hidden
197
+ */
198
+ get minimizeTitle(): string;
199
+ /**
200
+ * @hidden
201
+ */
202
+ get maximizeTitle(): string;
203
+ /**
204
+ * @hidden
205
+ */
206
+ get popupWidth(): number;
207
+ /**
208
+ * @hidden
209
+ */
210
+ get popupHeight(): number;
211
+ /**
212
+ * @hidden
213
+ */
214
+ isDrawing: boolean;
215
+ /**
216
+ * @hidden
217
+ */
218
+ get showMaximize(): boolean;
219
+ /**
220
+ * @hidden
221
+ */
222
+ get showMinimize(): boolean;
223
+ /**
224
+ * @hidden
225
+ */
226
+ get showClear(): boolean;
227
+ private get focused();
228
+ private set focused(value);
229
+ private get options();
230
+ private notifyNgTouched;
231
+ private notifyNgChanged;
232
+ private instance;
233
+ private _value;
234
+ private _tabindex;
235
+ private subscriptions;
236
+ private unsubscribe;
237
+ private hostClasses;
238
+ constructor(element: ElementRef, renderer: Renderer2, ngZone: NgZone, cd: ChangeDetectorRef, localization: LocalizationService);
239
+ ngOnInit(): void;
240
+ ngAfterViewInit(): void;
241
+ ngOnChanges(changes: SimpleChanges): void;
242
+ ngOnDestroy(): void;
243
+ /**
244
+ * @hidden
245
+ */
246
+ onClear(): void;
247
+ /**
248
+ * @hidden
249
+ */
250
+ onValueChange(): Promise<void>;
251
+ /**
252
+ * @hidden
253
+ */
254
+ onDialogValueChange(value: string): void;
255
+ /**
256
+ * @hidden
257
+ */
258
+ onDialogClose(): void;
259
+ /**
260
+ * Clears the value of the Signature.
261
+ */
262
+ reset(): void;
263
+ /**
264
+ * Toggles the popup of the Signature.
265
+ * Does not trigger the `open` and `close` events of the component.
266
+ *
267
+ * @param open An optional parameter. Specifies whether the popup will be opened or closed.
268
+ */
269
+ toggle(open?: boolean): void;
270
+ /**
271
+ * @hidden
272
+ */
273
+ onMaximize(): void;
274
+ /**
275
+ * @hidden
276
+ */
277
+ onMinimize(): void;
278
+ private applyHostClasses;
279
+ /**
280
+ * Focuses the wrapper of the Signature.
281
+ */
282
+ focus(): void;
283
+ /**
284
+ * @hidden
285
+ */
286
+ onWrapperFocus(): void;
287
+ /**
288
+ * Blurs the Signature.
289
+ */
290
+ blur(): void;
291
+ /**
292
+ * @hidden
293
+ */
294
+ onWrapperBlur(): void;
295
+ /**
296
+ * @hidden
297
+ */
298
+ onWrapperClick(_event: MouseEvent): void;
299
+ /**
300
+ * @hidden
301
+ */
302
+ writeValue(value: string): void;
303
+ /**
304
+ * @hidden
305
+ */
306
+ registerOnChange(fn: any): void;
307
+ /**
308
+ * @hidden
309
+ */
310
+ registerOnTouched(fn: any): void;
311
+ private onDraw;
312
+ private onDrawEnd;
313
+ private addEventListeners;
314
+ private getMessage;
315
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignatureComponent, never>;
316
+ static ɵcmp: i0.ɵɵComponentDeclaration<SignatureComponent, "kendo-signature", ["kendoSignature"], { "readonly": "readonly"; "disabled": "disabled"; "width": "width"; "height": "height"; "value": "value"; "tabindex": "tabindex"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "color": "color"; "backgroundColor": "backgroundColor"; "strokeWidth": "strokeWidth"; "smooth": "smooth"; "maximizable": "maximizable"; "maximized": "maximized"; "popupScale": "popupScale"; "parentLocalization": "parentLocalization"; "hideLine": "hideLine"; }, { "valueChange": "valueChange"; "open": "open"; "close": "close"; "onFocus": "focus"; "onBlur": "blur"; "minimize": "minimize"; }, never, never>;
317
+ }
@@ -0,0 +1,47 @@
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 * as i0 from "@angular/core";
6
+ import * as i1 from "./signature/signature.component";
7
+ import * as i2 from "./signature/localization/custom-messages.component";
8
+ import * as i3 from "./signature/localization/localized-signature-messages.directive";
9
+ import * as i4 from "@progress/kendo-angular-buttons";
10
+ import * as i5 from "@angular/common";
11
+ import * as i6 from "@progress/kendo-angular-dialog";
12
+ /**
13
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
14
+ * definition for the MaskedTextBox component.
15
+ *
16
+ * @example
17
+ *
18
+ * ```ts-no-run
19
+ * // Import the MaskedTextBox module
20
+ * import { MaskedTextBoxModule } from '@progress/kendo-angular-inputs';
21
+ *
22
+ * // The browser platform with a compiler
23
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
24
+ *
25
+ * import { NgModule } from '@angular/core';
26
+ *
27
+ * // Import the app component
28
+ * import { AppComponent } from './app.component';
29
+ *
30
+ * // Define the app module
31
+ * _@NgModule({
32
+ * declarations: [AppComponent], // declare app component
33
+ * imports: [BrowserModule, MaskedTextBoxModule], // import MaskedTextBox module
34
+ * bootstrap: [AppComponent]
35
+ * })
36
+ * export class AppModule {}
37
+ *
38
+ * // Compile and launch the module
39
+ * platformBrowserDynamic().bootstrapModule(AppModule);
40
+ *
41
+ * ```
42
+ */
43
+ export declare class SignatureModule {
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<SignatureModule, never>;
45
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SignatureModule, [typeof i1.SignatureComponent, typeof i2.SignatureCustomMessagesComponent, typeof i3.LocalizedSignatureMessagesDirective], [typeof i4.ButtonModule, typeof i5.CommonModule, typeof i6.DialogsModule], [typeof i1.SignatureComponent, typeof i2.SignatureCustomMessagesComponent]>;
46
+ static ɵinj: i0.ɵɵInjectorDeclaration<SignatureModule>;
47
+ }