@progress/kendo-angular-label 3.1.2 → 4.0.0-dev.202204131904

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 (76) hide show
  1. package/bundles/kendo-angular-label.umd.js +5 -0
  2. package/{dist/es2015 → esm2015}/floating-label/floating-label-input-adapter.js +0 -0
  3. package/{dist/es2015 → esm2015}/floating-label/floating-label.component.js +74 -79
  4. package/{dist/es2015 → esm2015}/floating-label/floating-label.module.js +14 -11
  5. package/{dist/es → esm2015}/floating-label/models/label-position.js +1 -0
  6. package/{dist/es2015/shared.module.d.ts → esm2015/kendo-angular-label.js} +2 -3
  7. package/esm2015/label/label.component.js +158 -0
  8. package/{dist/es2015 → esm2015}/label.directive.js +21 -24
  9. package/{dist/es2015 → esm2015}/label.module.js +16 -11
  10. package/esm2015/localization/custom-messages.component.js +41 -0
  11. package/esm2015/localization/localized-messages.directive.js +39 -0
  12. package/esm2015/localization/messages.js +23 -0
  13. package/{dist/es → esm2015}/main.js +2 -0
  14. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  15. package/esm2015/shared.module.js +29 -0
  16. package/{dist/es2015 → esm2015}/util.js +0 -0
  17. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-label.js} +245 -205
  18. package/{dist/es2015/floating-label → floating-label}/floating-label-input-adapter.d.ts +2 -1
  19. package/{dist/es2015/floating-label → floating-label}/floating-label.component.d.ts +6 -3
  20. package/{dist/es2015/floating-label → floating-label}/floating-label.module.d.ts +7 -0
  21. package/{dist/es2015/floating-label → floating-label}/models/label-position.d.ts +0 -0
  22. package/{dist/es2015/floating-label/models/label-position.js → kendo-angular-label.d.ts} +5 -0
  23. package/{dist/es2015/label → label}/label.component.d.ts +3 -0
  24. package/{dist/es2015/label.directive.d.ts → label.directive.d.ts} +4 -1
  25. package/{dist/es2015/label.module.d.ts → label.module.d.ts} +9 -0
  26. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
  27. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
  28. package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
  29. package/{dist/es2015/main.d.ts → main.d.ts} +2 -0
  30. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  31. package/package.json +34 -103
  32. package/schematics/ngAdd/index.js +5 -2
  33. package/schematics/ngAdd/index.js.map +1 -1
  34. package/shared.module.d.ts +15 -0
  35. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  36. package/dist/cdn/js/kendo-angular-label.js +0 -20
  37. package/dist/cdn/main.js +0 -5
  38. package/dist/es/floating-label/floating-label-input-adapter.js +0 -58
  39. package/dist/es/floating-label/floating-label.component.js +0 -312
  40. package/dist/es/floating-label/floating-label.module.js +0 -52
  41. package/dist/es/index.js +0 -11
  42. package/dist/es/label/label.component.js +0 -137
  43. package/dist/es/label.directive.js +0 -140
  44. package/dist/es/label.module.js +0 -63
  45. package/dist/es/localization/custom-messages.component.js +0 -44
  46. package/dist/es/localization/localized-messages.directive.js +0 -35
  47. package/dist/es/localization/messages.js +0 -22
  48. package/dist/es/package-metadata.js +0 -15
  49. package/dist/es/shared.module.js +0 -27
  50. package/dist/es/util.js +0 -33
  51. package/dist/es2015/index.d.ts +0 -11
  52. package/dist/es2015/index.js +0 -11
  53. package/dist/es2015/index.metadata.json +0 -1
  54. package/dist/es2015/label/label.component.js +0 -146
  55. package/dist/es2015/localization/custom-messages.component.js +0 -36
  56. package/dist/es2015/localization/localized-messages.directive.js +0 -34
  57. package/dist/es2015/localization/messages.js +0 -16
  58. package/dist/es2015/main.js +0 -10
  59. package/dist/es2015/shared.module.js +0 -24
  60. package/dist/fesm5/index.js +0 -858
  61. package/dist/npm/floating-label/floating-label-input-adapter.js +0 -60
  62. package/dist/npm/floating-label/floating-label.component.js +0 -314
  63. package/dist/npm/floating-label/floating-label.module.js +0 -54
  64. package/dist/npm/floating-label/models/label-position.js +0 -6
  65. package/dist/npm/index.js +0 -17
  66. package/dist/npm/label/label.component.js +0 -139
  67. package/dist/npm/label.directive.js +0 -142
  68. package/dist/npm/label.module.js +0 -65
  69. package/dist/npm/localization/custom-messages.component.js +0 -46
  70. package/dist/npm/localization/localized-messages.directive.js +0 -37
  71. package/dist/npm/localization/messages.js +0 -24
  72. package/dist/npm/main.js +0 -18
  73. package/dist/npm/package-metadata.js +0 -17
  74. package/dist/npm/shared.module.js +0 -29
  75. package/dist/npm/util.js +0 -35
  76. package/dist/systemjs/kendo-angular-label.js +0 -5
@@ -2,10 +2,12 @@
2
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 { __decorate, __metadata } from 'tslib';
6
- import { Input, HostBinding, Directive, ElementRef, Renderer2, NgZone, forwardRef, Component, NgModule, EventEmitter, isDevMode, Output, ContentChild, ChangeDetectorRef, ViewChild } from '@angular/core';
5
+ import * as i0 from '@angular/core';
6
+ import { Directive, Input, HostBinding, forwardRef, Component, NgModule, EventEmitter, isDevMode, Output, ContentChild, ViewChild } from '@angular/core';
7
7
  import { isDocumentAvailable, guid, hasObservers, KendoInput } from '@progress/kendo-angular-common';
8
+ import * as i1 from '@progress/kendo-angular-l10n';
8
9
  import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
+ import * as i3 from '@angular/common';
9
11
  import { CommonModule } from '@angular/common';
10
12
  import { NgControl } from '@angular/forms';
11
13
  import { validatePackage } from '@progress/kendo-licensing';
@@ -72,7 +74,7 @@ const getRootElement = (element) => {
72
74
  * class AppComponent { }
73
75
  * ```
74
76
  */
75
- let LabelDirective = class LabelDirective {
77
+ class LabelDirective {
76
78
  constructor(label, renderer, zone) {
77
79
  this.label = label;
78
80
  this.renderer = renderer;
@@ -145,69 +147,79 @@ let LabelDirective = class LabelDirective {
145
147
  const target = this.for;
146
148
  return target && target.focus !== undefined ? target : null;
147
149
  }
148
- };
149
- __decorate([
150
- Input(),
151
- __metadata("design:type", Object)
152
- ], LabelDirective.prototype, "for", void 0);
153
- __decorate([
154
- HostBinding('attr.for'),
155
- __metadata("design:type", String),
156
- __metadata("design:paramtypes", [])
157
- ], LabelDirective.prototype, "labelFor", null);
158
- __decorate([
159
- HostBinding('class.k-label'),
160
- __metadata("design:type", Boolean)
161
- ], LabelDirective.prototype, "labelClass", void 0);
162
- LabelDirective = __decorate([
163
- Directive({
164
- selector: 'label[for]' //tslint:disable-line:directive-selector
165
- }),
166
- __metadata("design:paramtypes", [ElementRef, Renderer2, NgZone])
167
- ], LabelDirective);
150
+ }
151
+ LabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
152
+ LabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LabelDirective, selector: "label[for]", inputs: { for: "for" }, host: { properties: { "attr.for": "this.labelFor", "class.k-label": "this.labelClass" } }, ngImport: i0 });
153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelDirective, decorators: [{
154
+ type: Directive,
155
+ args: [{
156
+ // eslint-disable-next-line @angular-eslint/directive-selector
157
+ selector: 'label[for]'
158
+ }]
159
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { for: [{
160
+ type: Input
161
+ }], labelFor: [{
162
+ type: HostBinding,
163
+ args: ['attr.for']
164
+ }], labelClass: [{
165
+ type: HostBinding,
166
+ args: ['class.k-label']
167
+ }] } });
168
168
 
169
169
  /**
170
170
  * @hidden
171
171
  */
172
172
  class Messages extends ComponentMessages {
173
173
  }
174
- __decorate([
175
- Input(),
176
- __metadata("design:type", String)
177
- ], Messages.prototype, "optional", void 0);
174
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
175
+ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Messages, selector: "kendo-label-messages-base", inputs: { optional: "optional" }, usesInheritance: true, ngImport: i0 });
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
177
+ type: Directive,
178
+ args: [{
179
+ // eslint-disable-next-line @angular-eslint/directive-selector
180
+ selector: 'kendo-label-messages-base'
181
+ }]
182
+ }], propDecorators: { optional: [{
183
+ type: Input
184
+ }] } });
178
185
 
179
- var LocalizedMessagesDirective_1;
180
186
  /**
181
187
  * @hidden
182
188
  */
183
- let LocalizedMessagesDirective = LocalizedMessagesDirective_1 = class LocalizedMessagesDirective extends Messages {
189
+ class LocalizedMessagesDirective extends Messages {
184
190
  constructor(service) {
185
191
  super();
186
192
  this.service = service;
187
193
  }
188
- };
189
- LocalizedMessagesDirective = LocalizedMessagesDirective_1 = __decorate([
190
- Directive({
191
- providers: [
192
- {
193
- provide: Messages,
194
- useExisting: forwardRef(() => LocalizedMessagesDirective_1)
195
- }
196
- ],
197
- selector: `
194
+ }
195
+ LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
196
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n ", providers: [
197
+ {
198
+ provide: Messages,
199
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
200
+ }
201
+ ], usesInheritance: true, ngImport: i0 });
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
203
+ type: Directive,
204
+ args: [{
205
+ providers: [
206
+ {
207
+ provide: Messages,
208
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
209
+ }
210
+ ],
211
+ selector: `
198
212
  [kendoLabelLocalizedMessages],
199
213
  [kendoFloatingLabelLocalizedMessages]
200
214
  `
201
- }),
202
- __metadata("design:paramtypes", [LocalizationService])
203
- ], LocalizedMessagesDirective);
215
+ }]
216
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
204
217
 
205
- var CustomMessagesComponent_1;
206
218
  /**
207
219
  * Custom component messages override default component messages
208
220
  * ([see example]({% slug label_globalization %}#toc-localization)).
209
221
  */
210
- let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesComponent extends Messages {
222
+ class CustomMessagesComponent extends Messages {
211
223
  constructor(service) {
212
224
  super();
213
225
  this.service = service;
@@ -215,20 +227,27 @@ let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesCo
215
227
  get override() {
216
228
  return true;
217
229
  }
218
- };
219
- CustomMessagesComponent = CustomMessagesComponent_1 = __decorate([
220
- Component({
221
- providers: [
222
- {
223
- provide: Messages,
224
- useExisting: forwardRef(() => CustomMessagesComponent_1)
225
- }
226
- ],
227
- selector: 'kendo-label-messages, kendo-floatinglabel-messages',
228
- template: ``
229
- }),
230
- __metadata("design:paramtypes", [LocalizationService])
231
- ], CustomMessagesComponent);
230
+ }
231
+ CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
232
+ CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-label-messages, kendo-floatinglabel-messages", providers: [
233
+ {
234
+ provide: Messages,
235
+ useExisting: forwardRef(() => CustomMessagesComponent)
236
+ }
237
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
238
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, decorators: [{
239
+ type: Component,
240
+ args: [{
241
+ providers: [
242
+ {
243
+ provide: Messages,
244
+ useExisting: forwardRef(() => CustomMessagesComponent)
245
+ }
246
+ ],
247
+ selector: 'kendo-label-messages, kendo-floatinglabel-messages',
248
+ template: ``
249
+ }]
250
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
232
251
 
233
252
  const SHARED_DIRECTIVES = [
234
253
  LocalizedMessagesDirective,
@@ -237,14 +256,20 @@ const SHARED_DIRECTIVES = [
237
256
  /**
238
257
  * @hidden
239
258
  */
240
- let SharedDirectivesModule = class SharedDirectivesModule {
241
- };
242
- SharedDirectivesModule = __decorate([
243
- NgModule({
244
- declarations: [SHARED_DIRECTIVES],
245
- exports: [SHARED_DIRECTIVES]
246
- })
247
- ], SharedDirectivesModule);
259
+ class SharedDirectivesModule {
260
+ }
261
+ SharedDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
262
+ SharedDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedDirectivesModule, declarations: [LocalizedMessagesDirective,
263
+ CustomMessagesComponent], exports: [LocalizedMessagesDirective,
264
+ CustomMessagesComponent] });
265
+ SharedDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedDirectivesModule });
266
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedDirectivesModule, decorators: [{
267
+ type: NgModule,
268
+ args: [{
269
+ declarations: [SHARED_DIRECTIVES],
270
+ exports: [SHARED_DIRECTIVES]
271
+ }]
272
+ }] });
248
273
 
249
274
  /**
250
275
  * @hidden
@@ -253,7 +278,7 @@ const packageMetadata = {
253
278
  name: '@progress/kendo-angular-label',
254
279
  productName: 'Kendo UI for Angular',
255
280
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
256
- publishDate: 1642584099,
281
+ publishDate: 1649876656,
257
282
  version: '',
258
283
  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
284
  };
@@ -331,7 +356,7 @@ const isFunction = (x) => Object.prototype.toString.call(x) === '[object Functio
331
356
  *
332
357
  * ```
333
358
  */
334
- let FloatingLabelComponent = class FloatingLabelComponent {
359
+ class FloatingLabelComponent {
335
360
  constructor(elementRef, renderer, changeDetectorRef, localization) {
336
361
  this.elementRef = elementRef;
337
362
  this.renderer = renderer;
@@ -445,10 +470,10 @@ let FloatingLabelComponent = class FloatingLabelComponent {
445
470
  this.kendoInput.isEmpty() : empty(this.kendoInput.value);
446
471
  }
447
472
  if (this.empty) {
448
- this.renderer.addClass(this.elementRef.nativeElement, 'k-state-empty');
473
+ this.renderer.addClass(this.elementRef.nativeElement, 'k-empty');
449
474
  }
450
475
  else {
451
- this.renderer.removeClass(this.elementRef.nativeElement, 'k-state-empty');
476
+ this.renderer.removeClass(this.elementRef.nativeElement, 'k-empty');
452
477
  }
453
478
  this.changeDetectorRef.markForCheck();
454
479
  }
@@ -480,13 +505,13 @@ let FloatingLabelComponent = class FloatingLabelComponent {
480
505
  handleAutofill(control) {
481
506
  this.subscribe(control, 'autoFillStart', () => {
482
507
  this.autoFillStarted = true;
483
- this.renderer.removeClass(this.elementRef.nativeElement, 'k-state-empty');
508
+ this.renderer.removeClass(this.elementRef.nativeElement, 'k-empty');
484
509
  });
485
510
  this.subscribe(control, 'autoFillEnd', () => {
486
511
  if (this.autoFillStarted) {
487
512
  this.autoFillStarted = false;
488
513
  if (this.empty) {
489
- this.renderer.addClass(this.elementRef.nativeElement, 'k-state-empty');
514
+ this.renderer.addClass(this.elementRef.nativeElement, 'k-empty');
490
515
  }
491
516
  }
492
517
  });
@@ -518,69 +543,38 @@ let FloatingLabelComponent = class FloatingLabelComponent {
518
543
  return;
519
544
  }
520
545
  }
521
- };
522
- __decorate([
523
- HostBinding('class.k-floating-label-container'),
524
- __metadata("design:type", Boolean)
525
- ], FloatingLabelComponent.prototype, "hostClasses", void 0);
526
- __decorate([
527
- HostBinding('class.k-state-focused'),
528
- __metadata("design:type", Boolean),
529
- __metadata("design:paramtypes", [])
530
- ], FloatingLabelComponent.prototype, "focusedClass", null);
531
- __decorate([
532
- HostBinding('class.k-state-invalid'),
533
- __metadata("design:type", Boolean),
534
- __metadata("design:paramtypes", [])
535
- ], FloatingLabelComponent.prototype, "invalidClass", null);
536
- __decorate([
537
- HostBinding('attr.dir'),
538
- __metadata("design:type", String)
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);
548
- __decorate([
549
- Input(),
550
- __metadata("design:type", String)
551
- ], FloatingLabelComponent.prototype, "id", void 0);
552
- __decorate([
553
- Input(),
554
- __metadata("design:type", String)
555
- ], FloatingLabelComponent.prototype, "text", void 0);
556
- __decorate([
557
- Input(),
558
- __metadata("design:type", Boolean)
559
- ], FloatingLabelComponent.prototype, "optional", void 0);
560
- __decorate([
561
- Output(),
562
- __metadata("design:type", EventEmitter)
563
- ], FloatingLabelComponent.prototype, "positionChange", void 0);
564
- __decorate([
565
- ContentChild(KendoInput, { static: false }),
566
- __metadata("design:type", Object)
567
- ], FloatingLabelComponent.prototype, "kendoInput", void 0);
568
- __decorate([
569
- ContentChild(NgControl, { static: false }),
570
- __metadata("design:type", NgControl)
571
- ], FloatingLabelComponent.prototype, "formControl", void 0);
572
- FloatingLabelComponent = __decorate([
573
- Component({
574
- selector: 'kendo-floatinglabel',
575
- exportAs: 'kendoFloatingLabel',
576
- providers: [
577
- LocalizationService,
578
- {
579
- provide: L10N_PREFIX,
580
- useValue: 'kendo.floatinglabel'
581
- }
582
- ],
583
- template: `
546
+ }
547
+ FloatingLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
548
+ FloatingLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FloatingLabelComponent, selector: "kendo-floatinglabel", inputs: { labelCssStyle: "labelCssStyle", labelCssClass: "labelCssClass", id: "id", text: "text", optional: "optional" }, outputs: { positionChange: "positionChange" }, host: { properties: { "class.k-floating-label-container": "this.hostClasses", "class.k-focus": "this.focusedClass", "class.k-state-invalid": "this.invalidClass", "attr.dir": "this.direction" } }, providers: [
549
+ LocalizationService,
550
+ {
551
+ provide: L10N_PREFIX,
552
+ useValue: 'kendo.floatinglabel'
553
+ }
554
+ ], queries: [{ propertyName: "kendoInput", first: true, predicate: KendoInput, descendants: true }, { propertyName: "formControl", first: true, predicate: NgControl, descendants: true }], exportAs: ["kendoFloatingLabel"], ngImport: i0, template: `
555
+ <ng-container kendoFloatingLabelLocalizedMessages
556
+ i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"
557
+ optional="Optional"
558
+ >
559
+ </ng-container>
560
+ <ng-content></ng-content>
561
+ <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">
562
+ {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
563
+ </label>
564
+ `, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n " }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
565
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingLabelComponent, decorators: [{
566
+ type: Component,
567
+ args: [{
568
+ selector: 'kendo-floatinglabel',
569
+ exportAs: 'kendoFloatingLabel',
570
+ providers: [
571
+ LocalizationService,
572
+ {
573
+ provide: L10N_PREFIX,
574
+ useValue: 'kendo.floatinglabel'
575
+ }
576
+ ],
577
+ template: `
584
578
  <ng-container kendoFloatingLabelLocalizedMessages
585
579
  i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"
586
580
  optional="Optional"
@@ -591,14 +585,40 @@ FloatingLabelComponent = __decorate([
591
585
  {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
592
586
  </label>
593
587
  `
594
- }),
595
- __metadata("design:paramtypes", [ElementRef,
596
- Renderer2,
597
- ChangeDetectorRef,
598
- LocalizationService])
599
- ], FloatingLabelComponent);
588
+ }]
589
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
590
+ type: HostBinding,
591
+ args: ['class.k-floating-label-container']
592
+ }], focusedClass: [{
593
+ type: HostBinding,
594
+ args: ['class.k-focus']
595
+ }], invalidClass: [{
596
+ type: HostBinding,
597
+ args: ['class.k-state-invalid']
598
+ }], direction: [{
599
+ type: HostBinding,
600
+ args: ['attr.dir']
601
+ }], labelCssStyle: [{
602
+ type: Input
603
+ }], labelCssClass: [{
604
+ type: Input
605
+ }], id: [{
606
+ type: Input
607
+ }], text: [{
608
+ type: Input
609
+ }], optional: [{
610
+ type: Input
611
+ }], positionChange: [{
612
+ type: Output
613
+ }], kendoInput: [{
614
+ type: ContentChild,
615
+ args: [KendoInput, { static: false }]
616
+ }], formControl: [{
617
+ type: ContentChild,
618
+ args: [NgControl, { static: false }]
619
+ }] } });
600
620
 
601
- const COMPONENT_DIRECTIVES = [FloatingLabelComponent];
621
+ const COMPONENT_DIRECTIVES$1 = [FloatingLabelComponent];
602
622
  /**
603
623
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
604
624
  * definition for the TextBox directive.
@@ -628,15 +648,19 @@ const COMPONENT_DIRECTIVES = [FloatingLabelComponent];
628
648
  *
629
649
  * ```
630
650
  */
631
- let FloatingLabelModule = class FloatingLabelModule {
632
- };
633
- FloatingLabelModule = __decorate([
634
- NgModule({
635
- declarations: [...COMPONENT_DIRECTIVES],
636
- exports: [...COMPONENT_DIRECTIVES, SharedDirectivesModule],
637
- imports: [CommonModule, SharedDirectivesModule]
638
- })
639
- ], FloatingLabelModule);
651
+ class FloatingLabelModule {
652
+ }
653
+ FloatingLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
654
+ FloatingLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingLabelModule, declarations: [FloatingLabelComponent], imports: [CommonModule, SharedDirectivesModule], exports: [FloatingLabelComponent, SharedDirectivesModule] });
655
+ FloatingLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingLabelModule, imports: [[CommonModule, SharedDirectivesModule], SharedDirectivesModule] });
656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FloatingLabelModule, decorators: [{
657
+ type: NgModule,
658
+ args: [{
659
+ declarations: [...COMPONENT_DIRECTIVES$1],
660
+ exports: [...COMPONENT_DIRECTIVES$1, SharedDirectivesModule],
661
+ imports: [CommonModule, SharedDirectivesModule]
662
+ }]
663
+ }] });
640
664
 
641
665
  /**
642
666
  * Represents the [Kendo UI Label component for Angular]({% slug label_basic %}).
@@ -660,7 +684,7 @@ FloatingLabelModule = __decorate([
660
684
  *
661
685
  * ```
662
686
  */
663
- let LabelComponent = class LabelComponent {
687
+ class LabelComponent {
664
688
  constructor(elementRef, renderer, localization) {
665
689
  this.elementRef = elementRef;
666
690
  this.renderer = renderer;
@@ -716,43 +740,40 @@ let LabelComponent = class LabelComponent {
716
740
  textFor(key) {
717
741
  return this.localization.get(key);
718
742
  }
719
- };
720
- __decorate([
721
- HostBinding('attr.dir'),
722
- __metadata("design:type", String)
723
- ], LabelComponent.prototype, "direction", void 0);
724
- __decorate([
725
- Input(),
726
- __metadata("design:type", String)
727
- ], LabelComponent.prototype, "text", void 0);
728
- __decorate([
729
- Input(),
730
- __metadata("design:type", Object)
731
- ], LabelComponent.prototype, "for", void 0);
732
- __decorate([
733
- Input(),
734
- __metadata("design:type", Boolean)
735
- ], LabelComponent.prototype, "optional", void 0);
736
- __decorate([
737
- ViewChild(LabelDirective, { static: true }),
738
- __metadata("design:type", LabelDirective)
739
- ], LabelComponent.prototype, "labelDirective", void 0);
740
- __decorate([
741
- ContentChild(KendoInput, { static: true }),
742
- __metadata("design:type", Object)
743
- ], LabelComponent.prototype, "kendoInput", void 0);
744
- LabelComponent = __decorate([
745
- Component({
746
- selector: 'kendo-label',
747
- exportAs: 'kendoLabel',
748
- providers: [
749
- LocalizationService,
750
- {
751
- provide: L10N_PREFIX,
752
- useValue: 'kendo.label'
753
- }
754
- ],
755
- template: `
743
+ }
744
+ LabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
745
+ LabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LabelComponent, selector: "kendo-label", inputs: { text: "text", for: "for", optional: "optional" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
746
+ LocalizationService,
747
+ {
748
+ provide: L10N_PREFIX,
749
+ useValue: 'kendo.label'
750
+ }
751
+ ], queries: [{ propertyName: "kendoInput", first: true, predicate: KendoInput, descendants: true, static: true }], viewQueries: [{ propertyName: "labelDirective", first: true, predicate: LabelDirective, descendants: true, static: true }], exportAs: ["kendoLabel"], ngImport: i0, template: `
752
+ <ng-container kendoLabelLocalizedMessages
753
+ i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"
754
+ optional="Optional"
755
+ >
756
+ </ng-container>
757
+ <label
758
+ [for]="control"
759
+ [class.k-label-empty]="!text">
760
+ {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
761
+ </label>
762
+ <ng-content></ng-content>
763
+ `, isInline: true, directives: [{ type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n " }, { type: LabelDirective, selector: "label[for]", inputs: ["for"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
764
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelComponent, decorators: [{
765
+ type: Component,
766
+ args: [{
767
+ selector: 'kendo-label',
768
+ exportAs: 'kendoLabel',
769
+ providers: [
770
+ LocalizationService,
771
+ {
772
+ provide: L10N_PREFIX,
773
+ useValue: 'kendo.label'
774
+ }
775
+ ],
776
+ template: `
756
777
  <ng-container kendoLabelLocalizedMessages
757
778
  i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"
758
779
  optional="Optional"
@@ -765,13 +786,25 @@ LabelComponent = __decorate([
765
786
  </label>
766
787
  <ng-content></ng-content>
767
788
  `
768
- }),
769
- __metadata("design:paramtypes", [ElementRef,
770
- Renderer2,
771
- LocalizationService])
772
- ], LabelComponent);
789
+ }]
790
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { direction: [{
791
+ type: HostBinding,
792
+ args: ['attr.dir']
793
+ }], text: [{
794
+ type: Input
795
+ }], for: [{
796
+ type: Input
797
+ }], optional: [{
798
+ type: Input
799
+ }], labelDirective: [{
800
+ type: ViewChild,
801
+ args: [LabelDirective, { static: true }]
802
+ }], kendoInput: [{
803
+ type: ContentChild,
804
+ args: [KendoInput, { static: true }]
805
+ }] } });
773
806
 
774
- const COMPONENT_DIRECTIVES$1 = [
807
+ const COMPONENT_DIRECTIVES = [
775
808
  LabelDirective,
776
809
  LabelComponent
777
810
  ];
@@ -810,18 +843,25 @@ const COMPONENT_DIRECTIVES$1 = [
810
843
  *
811
844
  * ```
812
845
  */
813
- let LabelModule = class LabelModule {
814
- };
815
- LabelModule = __decorate([
816
- NgModule({
817
- imports: [CommonModule, SharedDirectivesModule],
818
- declarations: [...COMPONENT_DIRECTIVES$1],
819
- exports: [...COMPONENT_DIRECTIVES$1, FloatingLabelModule, SharedDirectivesModule]
820
- })
821
- ], LabelModule);
846
+ class LabelModule {
847
+ }
848
+ LabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
849
+ LabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelModule, declarations: [LabelDirective,
850
+ LabelComponent], imports: [CommonModule, SharedDirectivesModule], exports: [LabelDirective,
851
+ LabelComponent, FloatingLabelModule, SharedDirectivesModule] });
852
+ LabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelModule, imports: [[CommonModule, SharedDirectivesModule], FloatingLabelModule, SharedDirectivesModule] });
853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelModule, decorators: [{
854
+ type: NgModule,
855
+ args: [{
856
+ imports: [CommonModule, SharedDirectivesModule],
857
+ declarations: [...COMPONENT_DIRECTIVES],
858
+ exports: [...COMPONENT_DIRECTIVES, FloatingLabelModule, SharedDirectivesModule]
859
+ }]
860
+ }] });
822
861
 
823
862
  /**
824
863
  * Generated bundle index. Do not edit.
825
864
  */
826
865
 
827
- export { LocalizedMessagesDirective, Messages, SharedDirectivesModule, LabelDirective, LabelModule, FloatingLabelModule, FloatingLabelComponent, LabelComponent, CustomMessagesComponent };
866
+ export { CustomMessagesComponent, FloatingLabelComponent, FloatingLabelModule, LabelComponent, LabelDirective, LabelModule, LocalizedMessagesDirective, SharedDirectivesModule };
867
+
@@ -15,6 +15,7 @@ export declare class FloatingLabelInputAdapter {
15
15
  autoFillStart: Observable<any> | EventEmitter<any>;
16
16
  autoFillEnd: Observable<any> | EventEmitter<any>;
17
17
  onValueChange: Observable<any> | EventEmitter<any>;
18
- focusableId: string;
18
+ get focusableId(): string;
19
+ set focusableId(value: string);
19
20
  constructor(component: any, formControl?: NgControl);
20
21
  }
@@ -6,6 +6,7 @@ import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, Renderer2, Chang
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { NgControl } from '@angular/forms';
8
8
  import { FloatingLabelPosition } from './models/label-position';
9
+ import * as i0 from "@angular/core";
9
10
  /**
10
11
  * Represents the [Kendo UI FloatingLabel component for Angular]({% slug overview_floatinglabel %}).
11
12
  * Provides floating labels to `input` elements.
@@ -39,10 +40,10 @@ export declare class FloatingLabelComponent implements AfterContentInit, OnDestr
39
40
  /**
40
41
  * Represents the current floating label position.
41
42
  */
42
- readonly labelPosition: FloatingLabelPosition;
43
+ get labelPosition(): FloatingLabelPosition;
43
44
  hostClasses: boolean;
44
- readonly focusedClass: boolean;
45
- readonly invalidClass: boolean;
45
+ get focusedClass(): boolean;
46
+ get invalidClass(): boolean;
46
47
  /**
47
48
  * @hidden
48
49
  */
@@ -117,4 +118,6 @@ export declare class FloatingLabelComponent implements AfterContentInit, OnDestr
117
118
  private handleAutofill;
118
119
  private addHandlers;
119
120
  private validateSetup;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<FloatingLabelComponent, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<FloatingLabelComponent, "kendo-floatinglabel", ["kendoFloatingLabel"], { "labelCssStyle": "labelCssStyle"; "labelCssClass": "labelCssClass"; "id": "id"; "text": "text"; "optional": "optional"; }, { "positionChange": "positionChange"; }, ["kendoInput", "formControl"], ["*"]>;
120
123
  }