@progress/kendo-angular-label 3.0.3 → 3.1.1

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 (67) hide show
  1. package/dist/cdn/js/kendo-angular-label.js +3 -3
  2. package/dist/cdn/main.js +2 -2
  3. package/dist/es/floating-label/floating-label-input-adapter.js +1 -1
  4. package/dist/es/floating-label/floating-label.component.js +39 -4
  5. package/dist/es/floating-label/floating-label.module.js +1 -1
  6. package/dist/es/floating-label/models/label-position.js +4 -0
  7. package/dist/es/index.js +1 -1
  8. package/dist/es/label/label.component.js +1 -1
  9. package/dist/es/label.directive.js +2 -2
  10. package/dist/es/label.module.js +1 -1
  11. package/dist/es/localization/custom-messages.component.js +1 -1
  12. package/dist/es/localization/localized-messages.directive.js +1 -1
  13. package/dist/es/localization/messages.js +1 -1
  14. package/dist/es/main.js +1 -1
  15. package/dist/es/package-metadata.js +2 -2
  16. package/dist/es/shared.module.js +1 -1
  17. package/dist/es/util.js +1 -1
  18. package/dist/es2015/floating-label/floating-label-input-adapter.d.ts +1 -1
  19. package/dist/es2015/floating-label/floating-label-input-adapter.js +1 -1
  20. package/dist/es2015/floating-label/floating-label.component.d.ts +21 -2
  21. package/dist/es2015/floating-label/floating-label.component.js +35 -4
  22. package/dist/es2015/floating-label/floating-label.module.d.ts +1 -1
  23. package/dist/es2015/floating-label/floating-label.module.js +1 -1
  24. package/dist/es2015/floating-label/models/label-position.d.ts +12 -0
  25. package/dist/es2015/floating-label/models/label-position.js +4 -0
  26. package/dist/es2015/index.d.ts +1 -1
  27. package/dist/es2015/index.js +1 -1
  28. package/dist/es2015/index.metadata.json +1 -1
  29. package/dist/es2015/label/label.component.d.ts +1 -1
  30. package/dist/es2015/label/label.component.js +1 -1
  31. package/dist/es2015/label.directive.d.ts +2 -2
  32. package/dist/es2015/label.directive.js +2 -2
  33. package/dist/es2015/label.module.d.ts +1 -1
  34. package/dist/es2015/label.module.js +1 -1
  35. package/dist/es2015/localization/custom-messages.component.d.ts +1 -1
  36. package/dist/es2015/localization/custom-messages.component.js +1 -1
  37. package/dist/es2015/localization/localized-messages.directive.d.ts +1 -1
  38. package/dist/es2015/localization/localized-messages.directive.js +1 -1
  39. package/dist/es2015/localization/messages.d.ts +1 -1
  40. package/dist/es2015/localization/messages.js +1 -1
  41. package/dist/es2015/main.d.ts +2 -1
  42. package/dist/es2015/main.js +1 -1
  43. package/dist/es2015/package-metadata.d.ts +1 -1
  44. package/dist/es2015/package-metadata.js +2 -2
  45. package/dist/es2015/shared.module.d.ts +1 -1
  46. package/dist/es2015/shared.module.js +1 -1
  47. package/dist/es2015/util.d.ts +1 -1
  48. package/dist/es2015/util.js +1 -1
  49. package/dist/fesm2015/index.js +37 -6
  50. package/dist/fesm5/index.js +41 -6
  51. package/dist/npm/floating-label/floating-label-input-adapter.js +1 -1
  52. package/dist/npm/floating-label/floating-label.component.js +37 -2
  53. package/dist/npm/floating-label/floating-label.module.js +1 -1
  54. package/dist/npm/floating-label/models/label-position.js +6 -0
  55. package/dist/npm/index.js +1 -1
  56. package/dist/npm/label/label.component.js +1 -1
  57. package/dist/npm/label.directive.js +2 -2
  58. package/dist/npm/label.module.js +1 -1
  59. package/dist/npm/localization/custom-messages.component.js +1 -1
  60. package/dist/npm/localization/localized-messages.directive.js +1 -1
  61. package/dist/npm/localization/messages.js +1 -1
  62. package/dist/npm/main.js +1 -1
  63. package/dist/npm/package-metadata.js +2 -2
  64. package/dist/npm/shared.module.js +1 -1
  65. package/dist/npm/util.js +1 -1
  66. package/dist/systemjs/kendo-angular-label.js +2 -2
  67. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Observable } from 'rxjs';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Observable } from 'rxjs';
@@ -1,10 +1,11 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { AfterContentInit, ElementRef, OnDestroy, Renderer2, ChangeDetectorRef } from '@angular/core';
5
+ import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, Renderer2, ChangeDetectorRef } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { NgControl } from '@angular/forms';
8
+ import { FloatingLabelPosition } from './models/label-position';
8
9
  /**
9
10
  * Represents the [Kendo UI FloatingLabel component for Angular]({% slug overview_floatinglabel %}).
10
11
  * Provides floating labels to `input` elements.
@@ -35,6 +36,10 @@ export declare class FloatingLabelComponent implements AfterContentInit, OnDestr
35
36
  private renderer;
36
37
  private changeDetectorRef;
37
38
  private localization;
39
+ /**
40
+ * Represents the current floating label position.
41
+ */
42
+ readonly labelPosition: FloatingLabelPosition;
38
43
  hostClasses: boolean;
39
44
  readonly focusedClass: boolean;
40
45
  readonly invalidClass: boolean;
@@ -42,6 +47,16 @@ export declare class FloatingLabelComponent implements AfterContentInit, OnDestr
42
47
  * @hidden
43
48
  */
44
49
  direction: string;
50
+ /**
51
+ * Sets the CSS Styles that will be rendered on the actual label element.
52
+ * Supports the type of values that are supported by [ngStyle]({{ site.data.urls.angular['ngstyleapi'] }}) directive.
53
+ */
54
+ labelCssStyle: any;
55
+ /**
56
+ * Sets the CSS Classes that will be rendered on the actual label element.
57
+ * Supports the type of values that are supported by [ngClass]({{ site.data.urls.angular['ngclassapi'] }}) directive.
58
+ */
59
+ labelCssClass: any;
45
60
  /**
46
61
  * Sets the `id` attribute of the input inside the floating label.
47
62
  */
@@ -57,6 +72,10 @@ export declare class FloatingLabelComponent implements AfterContentInit, OnDestr
57
72
  * The default value is `false`
58
73
  */
59
74
  optional: boolean;
75
+ /**
76
+ * Fires after the floating label position is changed.
77
+ */
78
+ positionChange: EventEmitter<FloatingLabelPosition>;
60
79
  kendoInput: any;
61
80
  formControl: NgControl;
62
81
  /**
@@ -1,12 +1,12 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
- import { ContentChild, Component, ElementRef, EventEmitter, HostBinding, Input, Renderer2, isDevMode, ChangeDetectorRef } from '@angular/core';
6
+ import { ContentChild, Component, ElementRef, EventEmitter, HostBinding, Input, Renderer2, isDevMode, ChangeDetectorRef, Output } from '@angular/core';
7
7
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
8
8
  import { NgControl } from '@angular/forms';
9
- import { guid, KendoInput } from '@progress/kendo-angular-common';
9
+ import { guid, KendoInput, hasObservers } from '@progress/kendo-angular-common';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { packageMetadata } from '../package-metadata';
12
12
  import { FloatingLabelInputAdapter } from './floating-label-input-adapter';
@@ -44,6 +44,10 @@ let FloatingLabelComponent = class FloatingLabelComponent {
44
44
  this.changeDetectorRef = changeDetectorRef;
45
45
  this.localization = localization;
46
46
  this.hostClasses = true;
47
+ /**
48
+ * Fires after the floating label position is changed.
49
+ */
50
+ this.positionChange = new EventEmitter();
47
51
  /**
48
52
  * @hidden
49
53
  */
@@ -65,6 +69,15 @@ let FloatingLabelComponent = class FloatingLabelComponent {
65
69
  this.direction = localization.rtl ? 'rtl' : 'ltr';
66
70
  this.renderer.removeAttribute(this.elementRef.nativeElement, "id");
67
71
  }
72
+ /**
73
+ * Represents the current floating label position.
74
+ */
75
+ get labelPosition() {
76
+ if (!this.empty) {
77
+ return 'Out';
78
+ }
79
+ return this.focused ? 'Out' : 'In';
80
+ }
68
81
  get focusedClass() {
69
82
  return this.focused;
70
83
  }
@@ -188,6 +201,12 @@ let FloatingLabelComponent = class FloatingLabelComponent {
188
201
  const setFocus = (isFocused) => () => {
189
202
  this.focused = isFocused;
190
203
  this.updateState();
204
+ if (!this.empty) {
205
+ return;
206
+ }
207
+ if (hasObservers(this.positionChange)) {
208
+ this.positionChange.emit(isFocused ? 'Out' : 'In');
209
+ }
191
210
  };
192
211
  this.subscribe(control, 'onFocus', setFocus(true));
193
212
  this.subscribe(control, 'onBlur', setFocus(false));
@@ -224,6 +243,14 @@ tslib_1.__decorate([
224
243
  HostBinding('attr.dir'),
225
244
  tslib_1.__metadata("design:type", String)
226
245
  ], FloatingLabelComponent.prototype, "direction", void 0);
246
+ tslib_1.__decorate([
247
+ Input(),
248
+ tslib_1.__metadata("design:type", Object)
249
+ ], FloatingLabelComponent.prototype, "labelCssStyle", void 0);
250
+ tslib_1.__decorate([
251
+ Input(),
252
+ tslib_1.__metadata("design:type", Object)
253
+ ], FloatingLabelComponent.prototype, "labelCssClass", void 0);
227
254
  tslib_1.__decorate([
228
255
  Input(),
229
256
  tslib_1.__metadata("design:type", String)
@@ -236,6 +263,10 @@ tslib_1.__decorate([
236
263
  Input(),
237
264
  tslib_1.__metadata("design:type", Boolean)
238
265
  ], FloatingLabelComponent.prototype, "optional", void 0);
266
+ tslib_1.__decorate([
267
+ Output(),
268
+ tslib_1.__metadata("design:type", EventEmitter)
269
+ ], FloatingLabelComponent.prototype, "positionChange", void 0);
239
270
  tslib_1.__decorate([
240
271
  ContentChild(KendoInput, { static: false }),
241
272
  tslib_1.__metadata("design:type", Object)
@@ -262,7 +293,7 @@ FloatingLabelComponent = tslib_1.__decorate([
262
293
  >
263
294
  </ng-container>
264
295
  <ng-content></ng-content>
265
- <label *ngIf="text" [for]="id" [attr.id]="labelId" class="k-label">
296
+ <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">
266
297
  {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
267
298
  </label>
268
299
  `
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -0,0 +1,12 @@
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
+ /**
6
+ * Represents the possible floating label positions.
7
+ *
8
+ * The possible values are:
9
+ * - `Out`
10
+ * - `In`
11
+ */
12
+ export declare type FloatingLabelPosition = 'Out' | 'In';
@@ -0,0 +1,4 @@
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
+ *-------------------------------------------------------------------------------------------*/
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"LabelDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":35,"character":1},"arguments":[{"selector":"label[for]"}]}],"members":{"for":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"labelFor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":46,"character":5},"arguments":["attr.for"]}]}],"labelClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":64,"character":5},"arguments":["class.k-label"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":68,"character":42,"context":{"typeName":"HTMLLabelElement"},"module":"./label.directive"}]},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":68,"character":79},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":68,"character":104}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAriaLabelledby":[{"__symbolic":"method"}],"getFocusableComponent":[{"__symbolic":"method"}]}},"LabelModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":47,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":48,"character":14},{"__symbolic":"reference","name":"SharedDirectivesModule"}],"declarations":[{"__symbolic":"reference","name":"LabelDirective"},{"__symbolic":"reference","name":"LabelComponent"}],"exports":[{"__symbolic":"reference","name":"LabelDirective"},{"__symbolic":"reference","name":"LabelComponent"},{"__symbolic":"reference","name":"FloatingLabelModule"},{"__symbolic":"reference","name":"SharedDirectivesModule"}]}]}],"members":{}},"FloatingLabelModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FloatingLabelComponent"}],"exports":[{"__symbolic":"reference","name":"FloatingLabelComponent"},{"__symbolic":"reference","name":"SharedDirectivesModule"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":39,"character":14},{"__symbolic":"reference","name":"SharedDirectivesModule"}]}]}],"members":{}},"FloatingLabelComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":49,"character":1},"arguments":[{"selector":"kendo-floatinglabel","exportAs":"kendoFloatingLabel","providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":53,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":55,"character":21},"useValue":"kendo.floatinglabel"}],"template":"\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional=\"kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component\"\n optional=\"Optional\"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf=\"text\" [for]=\"id\" [attr.id]=\"labelId\" class=\"k-label\">\n {{ text }}<span *ngIf=\"optional\" class=\"k-label-optional\">({{textFor('optional')}})</span>\n </label>\n "}]}],"members":{"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":72,"character":5},"arguments":["class.k-floating-label-container"]}]}],"focusedClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":74,"character":5},"arguments":["class.k-state-focused"]}]}],"invalidClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":79,"character":5},"arguments":["class.k-state-invalid"]}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":87,"character":5},"arguments":["attr.dir"]}]}],"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":92,"character":5}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":98,"character":5}}]}],"optional":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":107,"character":5}}]}],"kendoInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":110,"character":5},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-common","name":"KendoInput","line":110,"character":18},{"static":false}]}]}],"formControl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":113,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"NgControl","line":113,"character":18},{"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":140,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":141,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":142,"character":35},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":143,"character":30}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"textFor":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}],"updateState":[{"__symbolic":"method"}],"setAriaLabelledby":[{"__symbolic":"method"}],"setLabelFor":[{"__symbolic":"method"}],"handleAutofill":[{"__symbolic":"method"}],"addHandlers":[{"__symbolic":"method"}],"validateSetup":[{"__symbolic":"method"}]}},"LabelComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":40,"character":1},"arguments":[{"selector":"kendo-label","exportAs":"kendoLabel","providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":44,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":46,"character":21},"useValue":"kendo.label"}],"template":"\n <ng-container kendoLabelLocalizedMessages\n i18n-optional=\"kendo.label.optional|The text for the optional segment of a Label component\"\n optional=\"Optional\"\n >\n </ng-container>\n <label\n [for]=\"control\"\n [class.k-label-empty]=\"!text\">\n {{ text }}<span *ngIf=\"optional\" class=\"k-label-optional\">({{textFor('optional')}})</span>\n </label>\n <ng-content></ng-content>\n "}]}],"members":{"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":68,"character":5},"arguments":["attr.dir"]}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":5}}]}],"for":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":79,"character":5}}]}],"optional":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":5}}]}],"labelDirective":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":91,"character":5},"arguments":[{"__symbolic":"reference","name":"LabelDirective"},{"static":true}]}]}],"kendoInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":94,"character":5},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-common","name":"KendoInput","line":94,"character":18},{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":105,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":106,"character":26},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":107,"character":30}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"textFor":[{"__symbolic":"method"}]}},"CustomMessagesComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Messages"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"Messages"},"useExisting":{"__symbolic":"reference","name":"CustomMessagesComponent"}}],"selector":"kendo-label-messages, kendo-floatinglabel-messages","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":19,"character":35}]}]}},"SharedDirectivesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"LocalizedMessagesDirective"},{"__symbolic":"reference","name":"CustomMessagesComponent"}]],"exports":[[{"__symbolic":"reference","name":"LocalizedMessagesDirective"},{"__symbolic":"reference","name":"CustomMessagesComponent"}]]}]}],"members":{}},"LocalizedMessagesDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Messages"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"Messages"},"useExisting":{"__symbolic":"reference","name":"LocalizedMessagesDirective"}}],"selector":"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":20,"character":35}]}]}},"Messages":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"ComponentMessages","line":6,"character":30},"members":{"optional":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":5}}]}]}}},"origins":{"LabelDirective":"./label.directive","LabelModule":"./label.module","FloatingLabelModule":"./floating-label/floating-label.module","FloatingLabelComponent":"./floating-label/floating-label.component","LabelComponent":"./label/label.component","CustomMessagesComponent":"./localization/custom-messages.component","SharedDirectivesModule":"./shared.module","LocalizedMessagesDirective":"./localization/localized-messages.directive","Messages":"./localization/messages"},"importAs":"@progress/kendo-angular-label"}
1
+ {"__symbolic":"module","version":4,"metadata":{"LabelDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":35,"character":1},"arguments":[{"selector":"label[for]"}]}],"members":{"for":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"labelFor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":46,"character":5},"arguments":["attr.for"]}]}],"labelClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":64,"character":5},"arguments":["class.k-label"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":68,"character":42,"context":{"typeName":"HTMLLabelElement"},"module":"./label.directive"}]},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":68,"character":79},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":68,"character":104}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setAriaLabelledby":[{"__symbolic":"method"}],"getFocusableComponent":[{"__symbolic":"method"}]}},"LabelModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":47,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":48,"character":14},{"__symbolic":"reference","name":"SharedDirectivesModule"}],"declarations":[{"__symbolic":"reference","name":"LabelDirective"},{"__symbolic":"reference","name":"LabelComponent"}],"exports":[{"__symbolic":"reference","name":"LabelDirective"},{"__symbolic":"reference","name":"LabelComponent"},{"__symbolic":"reference","name":"FloatingLabelModule"},{"__symbolic":"reference","name":"SharedDirectivesModule"}]}]}],"members":{}},"FloatingLabelModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":36,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FloatingLabelComponent"}],"exports":[{"__symbolic":"reference","name":"FloatingLabelComponent"},{"__symbolic":"reference","name":"SharedDirectivesModule"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":39,"character":14},{"__symbolic":"reference","name":"SharedDirectivesModule"}]}]}],"members":{}},"FloatingLabelComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":51,"character":1},"arguments":[{"selector":"kendo-floatinglabel","exportAs":"kendoFloatingLabel","providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":55,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":57,"character":21},"useValue":"kendo.floatinglabel"}],"template":"\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional=\"kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component\"\n optional=\"Optional\"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf=\"text\" [ngClass]=\"labelCssClass\" [ngStyle]=\"labelCssStyle\" [for]=\"id\" [attr.id]=\"labelId\" class=\"k-label\">\n {{ text }}<span *ngIf=\"optional\" class=\"k-label-optional\">({{textFor('optional')}})</span>\n </label>\n "}]}],"members":{"hostClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":84,"character":5},"arguments":["class.k-floating-label-container"]}]}],"focusedClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":86,"character":5},"arguments":["class.k-state-focused"]}]}],"invalidClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":91,"character":5},"arguments":["class.k-state-invalid"]}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":99,"character":5},"arguments":["attr.dir"]}]}],"labelCssStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":105,"character":5}}]}],"labelCssClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":112,"character":5}}]}],"id":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":118,"character":5}}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":124,"character":5}}]}],"optional":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":133,"character":5}}]}],"positionChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":139,"character":5}}]}],"kendoInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":142,"character":5},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-common","name":"KendoInput","line":142,"character":18},{"static":false}]}]}],"formControl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":145,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/forms","name":"NgControl","line":145,"character":18},{"static":false}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":172,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":173,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":174,"character":35},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":175,"character":30}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"textFor":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}],"updateState":[{"__symbolic":"method"}],"setAriaLabelledby":[{"__symbolic":"method"}],"setLabelFor":[{"__symbolic":"method"}],"handleAutofill":[{"__symbolic":"method"}],"addHandlers":[{"__symbolic":"method"}],"validateSetup":[{"__symbolic":"method"}]}},"LabelComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":40,"character":1},"arguments":[{"selector":"kendo-label","exportAs":"kendoLabel","providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":44,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":46,"character":21},"useValue":"kendo.label"}],"template":"\n <ng-container kendoLabelLocalizedMessages\n i18n-optional=\"kendo.label.optional|The text for the optional segment of a Label component\"\n optional=\"Optional\"\n >\n </ng-container>\n <label\n [for]=\"control\"\n [class.k-label-empty]=\"!text\">\n {{ text }}<span *ngIf=\"optional\" class=\"k-label-optional\">({{textFor('optional')}})</span>\n </label>\n <ng-content></ng-content>\n "}]}],"members":{"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":68,"character":5},"arguments":["attr.dir"]}]}],"text":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":5}}]}],"for":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":79,"character":5}}]}],"optional":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":5}}]}],"labelDirective":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":91,"character":5},"arguments":[{"__symbolic":"reference","name":"LabelDirective"},{"static":true}]}]}],"kendoInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":94,"character":5},"arguments":[{"__symbolic":"reference","module":"@progress/kendo-angular-common","name":"KendoInput","line":94,"character":18},{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":105,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":106,"character":26},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":107,"character":30}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"textFor":[{"__symbolic":"method"}]}},"CustomMessagesComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Messages"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"Messages"},"useExisting":{"__symbolic":"reference","name":"CustomMessagesComponent"}}],"selector":"kendo-label-messages, kendo-floatinglabel-messages","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":19,"character":35}]}]}},"FloatingLabelPosition":{"__symbolic":"interface"},"SharedDirectivesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[[{"__symbolic":"reference","name":"LocalizedMessagesDirective"},{"__symbolic":"reference","name":"CustomMessagesComponent"}]],"exports":[[{"__symbolic":"reference","name":"LocalizedMessagesDirective"},{"__symbolic":"reference","name":"CustomMessagesComponent"}]]}]}],"members":{}},"LocalizedMessagesDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Messages"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"Messages"},"useExisting":{"__symbolic":"reference","name":"LocalizedMessagesDirective"}}],"selector":"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":20,"character":35}]}]}},"Messages":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"ComponentMessages","line":6,"character":30},"members":{"optional":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":5}}]}]}}},"origins":{"LabelDirective":"./label.directive","LabelModule":"./label.module","FloatingLabelModule":"./floating-label/floating-label.module","FloatingLabelComponent":"./floating-label/floating-label.component","LabelComponent":"./label/label.component","CustomMessagesComponent":"./localization/custom-messages.component","FloatingLabelPosition":"./floating-label/models/label-position","SharedDirectivesModule":"./shared.module","LocalizedMessagesDirective":"./localization/localized-messages.directive","Messages":"./localization/messages"},"importAs":"@progress/kendo-angular-label"}
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ElementRef, Renderer2, NgZone } from '@angular/core';
@@ -25,7 +25,7 @@ import { ElementRef, Renderer2, NgZone } from '@angular/core';
25
25
  * </div>
26
26
  *
27
27
  * <div class="col-xs-12 col-md-6 example-col">
28
- * <label [for]="'input'">Input: </label>
28
+ * <label for="input">Input: </label>
29
29
  * <input id="input" />
30
30
  * </div>
31
31
  * </div>
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -28,7 +28,7 @@ import { isDocumentAvailable, guid } from '@progress/kendo-angular-common';
28
28
  * </div>
29
29
  *
30
30
  * <div class="col-xs-12 col-md-6 example-col">
31
- * <label [for]="'input'">Input: </label>
31
+ * <label for="input">Input: </label>
32
32
  * <input id="input" />
33
33
  * </div>
34
34
  * </div>
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { LocalizationService } from '@progress/kendo-angular-l10n';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ComponentMessages } from '@progress/kendo-angular-l10n';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { LabelDirective } from './label.directive';
@@ -8,3 +8,4 @@ export { FloatingLabelModule } from './floating-label/floating-label.module';
8
8
  export { FloatingLabelComponent } from './floating-label/floating-label.component';
9
9
  export { LabelComponent } from './label/label.component';
10
10
  export { CustomMessagesComponent } from './localization/custom-messages.component';
11
+ export { FloatingLabelPosition } from './floating-label/models/label-position';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { LabelDirective } from './label.directive';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PackageMetadata } from '@progress/kendo-licensing';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-label',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1620214538,
12
+ publishDate: 1635940028,
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
  };
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,10 +1,10 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __metadata } from 'tslib';
6
- import { Input, HostBinding, Directive, ElementRef, Renderer2, NgZone, forwardRef, Component, NgModule, EventEmitter, isDevMode, ContentChild, ChangeDetectorRef, ViewChild } from '@angular/core';
7
- import { isDocumentAvailable, guid, KendoInput } from '@progress/kendo-angular-common';
6
+ import { Input, HostBinding, Directive, ElementRef, Renderer2, NgZone, forwardRef, Component, NgModule, EventEmitter, isDevMode, Output, ContentChild, ChangeDetectorRef, ViewChild } from '@angular/core';
7
+ import { isDocumentAvailable, guid, hasObservers, KendoInput } from '@progress/kendo-angular-common';
8
8
  import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
9
9
  import { CommonModule } from '@angular/common';
10
10
  import { NgControl } from '@angular/forms';
@@ -63,7 +63,7 @@ const getRootElement = (element) => {
63
63
  * </div>
64
64
  *
65
65
  * <div class="col-xs-12 col-md-6 example-col">
66
- * <label [for]="'input'">Input: </label>
66
+ * <label for="input">Input: </label>
67
67
  * <input id="input" />
68
68
  * </div>
69
69
  * </div>
@@ -253,7 +253,7 @@ const packageMetadata = {
253
253
  name: '@progress/kendo-angular-label',
254
254
  productName: 'Kendo UI for Angular',
255
255
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
256
- publishDate: 1620214538,
256
+ publishDate: 1635940028,
257
257
  version: '',
258
258
  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'
259
259
  };
@@ -338,6 +338,10 @@ let FloatingLabelComponent = class FloatingLabelComponent {
338
338
  this.changeDetectorRef = changeDetectorRef;
339
339
  this.localization = localization;
340
340
  this.hostClasses = true;
341
+ /**
342
+ * Fires after the floating label position is changed.
343
+ */
344
+ this.positionChange = new EventEmitter();
341
345
  /**
342
346
  * @hidden
343
347
  */
@@ -359,6 +363,15 @@ let FloatingLabelComponent = class FloatingLabelComponent {
359
363
  this.direction = localization.rtl ? 'rtl' : 'ltr';
360
364
  this.renderer.removeAttribute(this.elementRef.nativeElement, "id");
361
365
  }
366
+ /**
367
+ * Represents the current floating label position.
368
+ */
369
+ get labelPosition() {
370
+ if (!this.empty) {
371
+ return 'Out';
372
+ }
373
+ return this.focused ? 'Out' : 'In';
374
+ }
362
375
  get focusedClass() {
363
376
  return this.focused;
364
377
  }
@@ -482,6 +495,12 @@ let FloatingLabelComponent = class FloatingLabelComponent {
482
495
  const setFocus = (isFocused) => () => {
483
496
  this.focused = isFocused;
484
497
  this.updateState();
498
+ if (!this.empty) {
499
+ return;
500
+ }
501
+ if (hasObservers(this.positionChange)) {
502
+ this.positionChange.emit(isFocused ? 'Out' : 'In');
503
+ }
485
504
  };
486
505
  this.subscribe(control, 'onFocus', setFocus(true));
487
506
  this.subscribe(control, 'onBlur', setFocus(false));
@@ -518,6 +537,14 @@ __decorate([
518
537
  HostBinding('attr.dir'),
519
538
  __metadata("design:type", String)
520
539
  ], FloatingLabelComponent.prototype, "direction", void 0);
540
+ __decorate([
541
+ Input(),
542
+ __metadata("design:type", Object)
543
+ ], FloatingLabelComponent.prototype, "labelCssStyle", void 0);
544
+ __decorate([
545
+ Input(),
546
+ __metadata("design:type", Object)
547
+ ], FloatingLabelComponent.prototype, "labelCssClass", void 0);
521
548
  __decorate([
522
549
  Input(),
523
550
  __metadata("design:type", String)
@@ -530,6 +557,10 @@ __decorate([
530
557
  Input(),
531
558
  __metadata("design:type", Boolean)
532
559
  ], FloatingLabelComponent.prototype, "optional", void 0);
560
+ __decorate([
561
+ Output(),
562
+ __metadata("design:type", EventEmitter)
563
+ ], FloatingLabelComponent.prototype, "positionChange", void 0);
533
564
  __decorate([
534
565
  ContentChild(KendoInput, { static: false }),
535
566
  __metadata("design:type", Object)
@@ -556,7 +587,7 @@ FloatingLabelComponent = __decorate([
556
587
  >
557
588
  </ng-container>
558
589
  <ng-content></ng-content>
559
- <label *ngIf="text" [for]="id" [attr.id]="labelId" class="k-label">
590
+ <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">
560
591
  {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
561
592
  </label>
562
593
  `