@progress/kendo-angular-inputs 9.0.0-next.202202161022 → 9.0.0-next.202203171314

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.
Files changed (52) hide show
  1. package/bundles/kendo-angular-inputs.umd.js +1 -1
  2. package/colorpicker/color-gradient.component.d.ts +5 -1
  3. package/colorpicker/models/tile-size.d.ts +2 -2
  4. package/common/models/size.d.ts +0 -6
  5. package/esm2015/colorpicker/color-contrast-svg.component.js +1 -0
  6. package/esm2015/colorpicker/color-gradient.component.js +39 -20
  7. package/esm2015/colorpicker/color-palette.component.js +2 -2
  8. package/esm2015/colorpicker/contrast-validation.component.js +1 -0
  9. package/esm2015/colorpicker/contrast.component.js +1 -0
  10. package/esm2015/colorpicker/flatcolorpicker-actions.component.js +1 -0
  11. package/esm2015/colorpicker/flatcolorpicker-header.component.js +1 -0
  12. package/esm2015/colorpicker/flatcolorpicker.component.js +4 -9
  13. package/esm2015/colorpicker/localization/custom-messages.component.js +2 -2
  14. package/esm2015/colorpicker/localization/localized-colorpicker-messages.directive.js +2 -2
  15. package/esm2015/colorpicker/localization/messages.js +1 -0
  16. package/esm2015/colorpicker/models/tile-size.js +1 -0
  17. package/esm2015/main.js +0 -1
  18. package/esm2015/maskedtextbox/maskedtextbox.component.js +4 -4
  19. package/esm2015/maskedtextbox/parsing/result.js +1 -0
  20. package/esm2015/numerictextbox/localization/custom-messages.component.js +2 -2
  21. package/esm2015/numerictextbox/localization/localized-numerictextbox-messages.directive.js +2 -2
  22. package/esm2015/numerictextbox/localization/messages.js +1 -0
  23. package/esm2015/package-metadata.js +1 -1
  24. package/esm2015/rangeslider/localization/custom-messages.component.js +2 -2
  25. package/esm2015/rangeslider/localization/localized-rangeslider-messages.directive.js +2 -2
  26. package/esm2015/rangeslider/localization/messages.js +1 -0
  27. package/esm2015/rangeslider/rangeslider.component.js +3 -0
  28. package/esm2015/shared/textarea.directive.js +10 -1
  29. package/esm2015/shared/utils.js +3 -2
  30. package/esm2015/slider/localization/custom-messages.component.js +2 -2
  31. package/esm2015/slider/localization/localized-slider-messages.directive.js +2 -2
  32. package/esm2015/slider/localization/messages.js +1 -0
  33. package/esm2015/sliders-common/slider-base.js +2 -2
  34. package/esm2015/sliders-common/title-callback.js +5 -0
  35. package/esm2015/switch/localization/custom-messages.component.js +2 -2
  36. package/esm2015/switch/localization/localized-switch-messages.directive.js +2 -2
  37. package/esm2015/switch/localization/messages.js +1 -0
  38. package/esm2015/textarea/textarea-suffix.component.js +1 -2
  39. package/esm2015/textarea/textarea.component.js +6 -12
  40. package/esm2015/textbox/localization/custom-messages.component.js +2 -2
  41. package/esm2015/textbox/localization/localized-textbox-messages.directive.js +2 -2
  42. package/esm2015/textbox/localization/messages.js +1 -0
  43. package/esm2015/textbox/textbox-suffix.directive.js +0 -1
  44. package/esm2015/textbox/textbox.component.js +7 -1
  45. package/esm2015/textbox/textbox.directive.js +10 -1
  46. package/fesm2015/kendo-angular-inputs.js +130 -82
  47. package/main.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/sliders-common/slider-base.d.ts +2 -1
  50. package/sliders-common/title-callback.d.ts +10 -0
  51. package/textarea/textarea-suffix.component.d.ts +1 -2
  52. package/textbox/textbox-suffix.directive.d.ts +0 -1
@@ -80,11 +80,11 @@ export class SliderBase {
80
80
  /**
81
81
  * Fires each time the user focuses the component.
82
82
  */
83
- this.onFocus = new EventEmitter(); //eslint-disable-line no-output-rename
83
+ this.onFocus = new EventEmitter();
84
84
  /**
85
85
  * Fires each time the component is blurred.
86
86
  */
87
- this.onBlur = new EventEmitter(); //eslint-disable-line no-output-rename
87
+ this.onBlur = new EventEmitter();
88
88
  /**
89
89
  * Fires each time the user selects a new value.
90
90
  */
@@ -0,0 +1,5 @@
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 {};
@@ -22,7 +22,7 @@ SwitchCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.
22
22
  SwitchCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SwitchCustomMessagesComponent, selector: "kendo-switch-messages", providers: [
23
23
  {
24
24
  provide: Messages,
25
- useExisting: forwardRef(() => SwitchCustomMessagesComponent) // eslint-disable-line no-forward-ref
25
+ useExisting: forwardRef(() => SwitchCustomMessagesComponent)
26
26
  }
27
27
  ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
28
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SwitchCustomMessagesComponent, decorators: [{
@@ -31,7 +31,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
31
31
  providers: [
32
32
  {
33
33
  provide: Messages,
34
- useExisting: forwardRef(() => SwitchCustomMessagesComponent) // eslint-disable-line no-forward-ref
34
+ useExisting: forwardRef(() => SwitchCustomMessagesComponent)
35
35
  }
36
36
  ],
37
37
  selector: 'kendo-switch-messages',
@@ -19,7 +19,7 @@ LocalizedSwitchMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "
19
19
  LocalizedSwitchMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedSwitchMessagesDirective, selector: "[kendoSwitchLocalizedMessages]", providers: [
20
20
  {
21
21
  provide: Messages,
22
- useExisting: forwardRef(() => LocalizedSwitchMessagesDirective) // eslint-disable-line no-forward-ref
22
+ useExisting: forwardRef(() => LocalizedSwitchMessagesDirective)
23
23
  }
24
24
  ], usesInheritance: true, ngImport: i0 });
25
25
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedSwitchMessagesDirective, decorators: [{
@@ -28,7 +28,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
28
28
  providers: [
29
29
  {
30
30
  provide: Messages,
31
- useExisting: forwardRef(() => LocalizedSwitchMessagesDirective) // eslint-disable-line no-forward-ref
31
+ useExisting: forwardRef(() => LocalizedSwitchMessagesDirective)
32
32
  }
33
33
  ],
34
34
  selector: '[kendoSwitchLocalizedMessages]'
@@ -15,6 +15,7 @@ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
15
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
+ // eslint-disable-next-line @angular-eslint/directive-selector
18
19
  selector: 'kendo-switch-messages-base'
19
20
  }]
20
21
  }], propDecorators: { on: [{
@@ -5,8 +5,7 @@
5
5
  import { Component, HostBinding } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
- * Specifies the adornments in the suffix container ([see example]({% slug textarea_adornments %}).
9
- * @example
8
+ * Specifies the adornments in the suffix container ([see example]({% slug textarea_adornments %})).
10
9
  * ```ts-no-run
11
10
  * _@Component({
12
11
  * selector: 'my-app',
@@ -299,11 +299,11 @@ export class TextAreaComponent extends TextFieldsBase {
299
299
  }
300
300
  if (changes.resizable) {
301
301
  if (this.resizable === 'auto') {
302
+ this.renderer.removeClass(element, '\!k-overflow-y-auto');
302
303
  this.initialHeight = element.offsetHeight;
303
304
  }
304
305
  else {
305
- this.renderer.setStyle(element, 'overflow-y', 'auto');
306
- this.renderer.setStyle(element, 'resize', 'both');
306
+ this.renderer.addClass(element, '\!k-overflow-y-auto');
307
307
  element.style.height = `${this.initialHeight}px`;
308
308
  }
309
309
  }
@@ -400,7 +400,6 @@ export class TextAreaComponent extends TextFieldsBase {
400
400
  return;
401
401
  }
402
402
  const element = this.input.nativeElement;
403
- this.renderer.setStyle(element, 'overflow-y', 'hidden');
404
403
  this.renderer.setStyle(element, 'height', `${this.initialHeight}px`);
405
404
  const scrollHeight = element.scrollHeight;
406
405
  if (scrollHeight > this.initialHeight) {
@@ -455,9 +454,9 @@ export class TextAreaComponent extends TextFieldsBase {
455
454
  const hostElement = this.hostElement.nativeElement;
456
455
  const element = this.input.nativeElement;
457
456
  const suffix = hostElement.children[1];
458
- this.renderer.setStyle(element, 'flex', isVertical ? 'none' : '1');
457
+ this.renderer[isVertical ? 'addClass' : 'removeClass'](element, '\!k-flex-none');
459
458
  if (suffix) {
460
- this.renderer.setStyle(suffix, 'align-items', isVertical ? 'center' : 'start');
459
+ this.renderer[isVertical ? 'removeClass' : 'addClass'](suffix, '\!k-align-items-start');
461
460
  }
462
461
  }
463
462
  }
@@ -495,7 +494,7 @@ TextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
495
494
  input: handleInput}">
496
495
  </textarea>
497
496
  <ng-content select="kendo-textarea-suffix"></ng-content>
498
- `, isInline: true, styles: ["\n :host {\n display: inline-flex;\n }\n "], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
497
+ `, isInline: true, directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
499
498
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextAreaComponent, decorators: [{
500
499
  type: Component,
501
500
  args: [{
@@ -535,12 +534,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
535
534
  input: handleInput}">
536
535
  </textarea>
537
536
  <ng-content select="kendo-textarea-suffix"></ng-content>
538
- `,
539
- styles: [`
540
- :host {
541
- display: inline-flex;
542
- }
543
- `]
537
+ `
544
538
  }]
545
539
  }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: i0.ElementRef }]; }, propDecorators: { focusableId: [{
546
540
  type: Input
@@ -22,7 +22,7 @@ TextBoxCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12
22
22
  TextBoxCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TextBoxCustomMessagesComponent, selector: "kendo-textbox-messages", providers: [
23
23
  {
24
24
  provide: TextBoxMessages,
25
- useExisting: forwardRef(() => TextBoxCustomMessagesComponent) // eslint-disable-line no-forward-ref
25
+ useExisting: forwardRef(() => TextBoxCustomMessagesComponent)
26
26
  }
27
27
  ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
28
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextBoxCustomMessagesComponent, decorators: [{
@@ -31,7 +31,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
31
31
  providers: [
32
32
  {
33
33
  provide: TextBoxMessages,
34
- useExisting: forwardRef(() => TextBoxCustomMessagesComponent) // eslint-disable-line no-forward-ref
34
+ useExisting: forwardRef(() => TextBoxCustomMessagesComponent)
35
35
  }
36
36
  ],
37
37
  selector: 'kendo-textbox-messages',
@@ -19,7 +19,7 @@ LocalizedTextBoxMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion:
19
19
  LocalizedTextBoxMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedTextBoxMessagesDirective, selector: "[kendoTextBoxLocalizedMessages]", providers: [
20
20
  {
21
21
  provide: TextBoxMessages,
22
- useExisting: forwardRef(() => LocalizedTextBoxMessagesDirective) // eslint-disable-line no-forward-ref
22
+ useExisting: forwardRef(() => LocalizedTextBoxMessagesDirective)
23
23
  }
24
24
  ], usesInheritance: true, ngImport: i0 });
25
25
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedTextBoxMessagesDirective, decorators: [{
@@ -28,7 +28,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
28
28
  providers: [
29
29
  {
30
30
  provide: TextBoxMessages,
31
- useExisting: forwardRef(() => LocalizedTextBoxMessagesDirective) // eslint-disable-line no-forward-ref
31
+ useExisting: forwardRef(() => LocalizedTextBoxMessagesDirective)
32
32
  }
33
33
  ],
34
34
  selector: '[kendoTextBoxLocalizedMessages]'
@@ -15,6 +15,7 @@ TextBoxMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", versio
15
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextBoxMessages, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
+ // eslint-disable-next-line @angular-eslint/directive-selector
18
19
  selector: 'kendo-textbox-messages-base'
19
20
  }]
20
21
  }], propDecorators: { clear: [{
@@ -6,7 +6,6 @@ import { Directive, Optional } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Specifies the adornments in the suffix container ([see examples]({% slug adornments_textbox %}#toc-suffixadornments)).
9
- * @example
10
9
  * ```ts-no-run
11
10
  * _@Component({
12
11
  * selector: 'my-app',
@@ -205,8 +205,14 @@ export class TextBoxComponent {
205
205
  * @hidden
206
206
  */
207
207
  this.handleInput = (ev) => {
208
- let incomingValue = isSafari(navigator.userAgent) && isJapanese(ev.target.value) ? ev.data : ev.target.value;
208
+ const target = ev.target;
209
+ const isBrowserSafari = isSafari(navigator.userAgent);
210
+ const incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
211
+ const [caretStart, caretEnd] = [target.selectionStart, target.selectionEnd];
209
212
  this.updateValue(incomingValue);
213
+ if (isBrowserSafari) {
214
+ target.setSelectionRange(caretStart, caretEnd);
215
+ }
210
216
  };
211
217
  this.ngChange = (_) => { };
212
218
  this.ngTouched = () => { };
@@ -88,7 +88,7 @@ export class TextBoxDirective {
88
88
  }
89
89
  }
90
90
  TextBoxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextBoxDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
91
- TextBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TextBoxDirective, selector: "input[kendoTextBox]", inputs: { value: "value" }, host: { properties: { "class.k-textbox": "this.hostClasses", "class.k-input": "this.hostClasses" } }, providers: [{
91
+ TextBoxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TextBoxDirective, selector: "input[kendoTextBox]", inputs: { value: "value" }, host: { properties: { "class.k-textbox": "this.hostClasses", "class.k-input": "this.hostClasses", "class.k-input-md": "this.hostClasses", "class.k-rounded-md": "this.hostClasses", "class.k-input-solid": "this.hostClasses" } }, providers: [{
92
92
  provide: KendoInput,
93
93
  useExisting: forwardRef(() => TextBoxDirective)
94
94
  }], ngImport: i0 });
@@ -107,6 +107,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
107
107
  }, {
108
108
  type: HostBinding,
109
109
  args: ['class.k-input']
110
+ }, {
111
+ type: HostBinding,
112
+ args: ['class.k-input-md']
113
+ }, {
114
+ type: HostBinding,
115
+ args: ['class.k-rounded-md']
116
+ }, {
117
+ type: HostBinding,
118
+ args: ['class.k-input-solid']
110
119
  }], value: [{
111
120
  type: Input
112
121
  }] } });