@progress/kendo-angular-label 25.0.0-develop.3 → 25.0.0-develop.30

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.
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
- import { Input, HostBinding, Directive, EventEmitter, signal, forwardRef, isDevMode, ContentChild, Output, ChangeDetectionStrategy, Component, ViewChild, NgModule } from '@angular/core';
6
+ import { signal, Input, HostBinding, Directive, EventEmitter, forwardRef, isDevMode, ContentChild, Output, ChangeDetectionStrategy, Component, ViewChild, NgModule } from '@angular/core';
7
7
  import { isDocumentAvailable, guid, hasObservers, KendoInput } from '@progress/kendo-angular-common';
8
8
  import * as i1 from '@progress/kendo-angular-l10n';
9
9
  import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
@@ -82,7 +82,12 @@ class LabelDirective {
82
82
  * @remarks
83
83
  * This property is related to accessibility.
84
84
  */
85
- for;
85
+ set for(value) {
86
+ this._for.set(value);
87
+ }
88
+ get for() {
89
+ return this._for();
90
+ }
86
91
  get labelFor() {
87
92
  if (typeof this.for === 'string') {
88
93
  return this.for;
@@ -102,6 +107,7 @@ class LabelDirective {
102
107
  */
103
108
  labelClass = true;
104
109
  clickListener;
110
+ _for = signal(null, ...(ngDevMode ? [{ debugName: "_for" }] : []));
105
111
  constructor(label, renderer, zone) {
106
112
  this.label = label;
107
113
  this.renderer = renderer;
@@ -173,10 +179,10 @@ class LabelDirective {
173
179
  component.focus();
174
180
  }
175
181
  };
176
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LabelDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
177
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: LabelDirective, isStandalone: true, selector: "label[for]", inputs: { for: "for", labelClass: "labelClass" }, host: { properties: { "attr.for": "this.labelFor", "class.k-label": "this.labelClass" } }, ngImport: i0 });
182
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LabelDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
183
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: LabelDirective, isStandalone: true, selector: "label[for]", inputs: { for: "for", labelClass: "labelClass" }, host: { properties: { "attr.for": "this.labelFor", "class.k-label": "this.labelClass" } }, ngImport: i0 });
178
184
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LabelDirective, decorators: [{
185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LabelDirective, decorators: [{
180
186
  type: Directive,
181
187
  args: [{
182
188
  selector: 'label[for]',
@@ -202,8 +208,8 @@ const packageMetadata = {
202
208
  productName: 'Kendo UI for Angular',
203
209
  productCode: 'KENDOUIANGULAR',
204
210
  productCodes: ['KENDOUIANGULAR'],
205
- publishDate: 1783692506,
206
- version: '25.0.0-develop.3',
211
+ publishDate: 1786449840,
212
+ version: '25.0.0-develop.30',
207
213
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
208
214
  };
209
215
 
@@ -274,10 +280,10 @@ class Messages extends ComponentMessages {
274
280
  return this._optional();
275
281
  }
276
282
  _optional = signal(undefined, ...(ngDevMode ? [{ debugName: "_optional" }] : []));
277
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
278
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: Messages, isStandalone: true, selector: "kendo-label-messages-base", inputs: { optional: "optional" }, usesInheritance: true, ngImport: i0 });
283
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
284
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: Messages, isStandalone: true, selector: "kendo-label-messages-base", inputs: { optional: "optional" }, usesInheritance: true, ngImport: i0 });
279
285
  }
280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: Messages, decorators: [{
286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: Messages, decorators: [{
281
287
  type: Directive,
282
288
  args: [{
283
289
  selector: 'kendo-label-messages-base'
@@ -295,15 +301,15 @@ class LocalizedMessagesDirective extends Messages {
295
301
  super();
296
302
  this.service = service;
297
303
  }
298
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
299
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n ", providers: [
304
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
305
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.27", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n ", providers: [
300
306
  {
301
307
  provide: Messages,
302
308
  useExisting: forwardRef(() => LocalizedMessagesDirective)
303
309
  }
304
310
  ], usesInheritance: true, ngImport: i0 });
305
311
  }
306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
312
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
307
313
  type: Directive,
308
314
  args: [{
309
315
  providers: [
@@ -457,7 +463,7 @@ class FloatingLabelComponent {
457
463
  _empty = signal(true, ...(ngDevMode ? [{ debugName: "_empty" }] : []));
458
464
  _invalid = signal(false, ...(ngDevMode ? [{ debugName: "_invalid" }] : []));
459
465
  subscription;
460
- autoFillStarted = false;
466
+ autoFillStarted = signal(false, ...(ngDevMode ? [{ debugName: "autoFillStarted" }] : []));
461
467
  constructor(elementRef, renderer, localization, changeDetectorRef) {
462
468
  this.elementRef = elementRef;
463
469
  this.renderer = renderer;
@@ -613,12 +619,12 @@ class FloatingLabelComponent {
613
619
  }
614
620
  handleAutofill(control) {
615
621
  this.subscribe(control, 'autoFillStart', () => {
616
- this.autoFillStarted = true;
622
+ this.autoFillStarted.set(true);
617
623
  this.renderer.removeClass(this.elementRef.nativeElement, 'k-empty');
618
624
  });
619
625
  this.subscribe(control, 'autoFillEnd', () => {
620
626
  if (this.autoFillStarted) {
621
- this.autoFillStarted = false;
627
+ this.autoFillStarted.set(false);
622
628
  if (this.empty) {
623
629
  this.renderer.addClass(this.elementRef.nativeElement, 'k-empty');
624
630
  }
@@ -652,8 +658,8 @@ class FloatingLabelComponent {
652
658
  return;
653
659
  }
654
660
  }
655
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: FloatingLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
656
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: FloatingLabelComponent, isStandalone: true, 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-invalid": "this.invalidClass", "attr.dir": "this.direction" } }, providers: [
661
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: FloatingLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
662
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.27", type: FloatingLabelComponent, isStandalone: true, 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-invalid": "this.invalidClass", "attr.dir": "this.direction" } }, providers: [
657
663
  LocalizationService,
658
664
  {
659
665
  provide: L10N_PREFIX,
@@ -675,7 +681,7 @@ class FloatingLabelComponent {
675
681
  }
676
682
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n " }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
677
683
  }
678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: FloatingLabelComponent, decorators: [{
684
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: FloatingLabelComponent, decorators: [{
679
685
  type: Component,
680
686
  args: [{
681
687
  selector: 'kendo-floatinglabel',
@@ -907,8 +913,8 @@ class LabelComponent {
907
913
  textFor(key) {
908
914
  return this.localization.get(key);
909
915
  }
910
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
911
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: LabelComponent, isStandalone: true, selector: "kendo-label", inputs: { text: "text", for: "for", optional: "optional", labelCssStyle: "labelCssStyle", labelCssClass: "labelCssClass" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
916
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
917
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.27", type: LabelComponent, isStandalone: true, selector: "kendo-label", inputs: { text: "text", for: "for", optional: "optional", labelCssStyle: "labelCssStyle", labelCssClass: "labelCssClass" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
912
918
  LocalizationService,
913
919
  {
914
920
  provide: L10N_PREFIX,
@@ -932,7 +938,7 @@ class LabelComponent {
932
938
  <ng-content></ng-content>
933
939
  `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n " }, { kind: "directive", type: LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
934
940
  }
935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LabelComponent, decorators: [{
941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LabelComponent, decorators: [{
936
942
  type: Component,
937
943
  args: [{
938
944
  selector: 'kendo-label',
@@ -999,15 +1005,15 @@ class CustomMessagesComponent extends Messages {
999
1005
  get override() {
1000
1006
  return true;
1001
1007
  }
1002
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
1003
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-label-messages, kendo-floatinglabel-messages", providers: [
1008
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
1009
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.27", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-label-messages, kendo-floatinglabel-messages", providers: [
1004
1010
  {
1005
1011
  provide: Messages,
1006
1012
  useExisting: forwardRef(() => CustomMessagesComponent)
1007
1013
  }
1008
1014
  ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
1009
1015
  }
1010
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CustomMessagesComponent, decorators: [{
1016
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: CustomMessagesComponent, decorators: [{
1011
1017
  type: Component,
1012
1018
  args: [{
1013
1019
  providers: [
@@ -1083,11 +1089,11 @@ const KENDO_LABELS = [
1083
1089
  * ```
1084
1090
  */
1085
1091
  class LabelModule {
1086
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1087
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: LabelModule, imports: [LabelDirective, LabelComponent, CustomMessagesComponent, FloatingLabelComponent, CustomMessagesComponent], exports: [LabelDirective, LabelComponent, CustomMessagesComponent, FloatingLabelComponent, CustomMessagesComponent] });
1088
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LabelModule });
1092
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1093
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.27", ngImport: i0, type: LabelModule, imports: [LabelDirective, LabelComponent, CustomMessagesComponent, FloatingLabelComponent, CustomMessagesComponent], exports: [LabelDirective, LabelComponent, CustomMessagesComponent, FloatingLabelComponent, CustomMessagesComponent] });
1094
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LabelModule });
1089
1095
  }
1090
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: LabelModule, decorators: [{
1096
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: LabelModule, decorators: [{
1091
1097
  type: NgModule,
1092
1098
  args: [{
1093
1099
  imports: [...KENDO_LABELS],
@@ -1112,11 +1118,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
1112
1118
  * ```
1113
1119
  */
1114
1120
  class FloatingLabelModule {
1115
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: FloatingLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1116
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: FloatingLabelModule, imports: [FloatingLabelComponent, CustomMessagesComponent], exports: [FloatingLabelComponent, CustomMessagesComponent] });
1117
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: FloatingLabelModule });
1121
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: FloatingLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1122
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.27", ngImport: i0, type: FloatingLabelModule, imports: [FloatingLabelComponent, CustomMessagesComponent], exports: [FloatingLabelComponent, CustomMessagesComponent] });
1123
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: FloatingLabelModule });
1118
1124
  }
1119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: FloatingLabelModule, decorators: [{
1125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: FloatingLabelModule, decorators: [{
1120
1126
  type: NgModule,
1121
1127
  args: [{
1122
1128
  exports: [...KENDO_FLOATINGLABEL],
package/index.d.ts CHANGED
@@ -47,7 +47,10 @@ declare class LabelDirective {
47
47
  * @remarks
48
48
  * This property is related to accessibility.
49
49
  */
50
- for: string | {
50
+ set for(value: string | {
51
+ focus: Function;
52
+ });
53
+ get for(): string | {
51
54
  focus: Function;
52
55
  };
53
56
  get labelFor(): string;
@@ -57,6 +60,7 @@ declare class LabelDirective {
57
60
  */
58
61
  labelClass: boolean;
59
62
  private clickListener;
63
+ private _for;
60
64
  constructor(label: ElementRef<HTMLLabelElement>, renderer: Renderer2, zone: NgZone);
61
65
  /**
62
66
  * @hidden
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1783692506,
11
- "version": "25.0.0-develop.3",
10
+ "publishDate": 1786449840,
11
+ "version": "25.0.0-develop.30",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-label",
3
- "version": "25.0.0-develop.3",
3
+ "version": "25.0.0-develop.30",
4
4
  "description": "Kendo UI Label for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,7 +19,7 @@
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
21
  "productCode": "KENDOUIANGULAR",
22
- "publishDate": 1783692506,
22
+ "publishDate": 1786449840,
23
23
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
24
24
  }
25
25
  },
@@ -30,13 +30,13 @@
30
30
  "@angular/forms": "20 - 22",
31
31
  "@angular/platform-browser": "20 - 22",
32
32
  "@progress/kendo-licensing": "^1.11.0",
33
- "@progress/kendo-angular-common": "25.0.0-develop.3",
34
- "@progress/kendo-angular-l10n": "25.0.0-develop.3",
33
+ "@progress/kendo-angular-common": "25.0.0-develop.30",
34
+ "@progress/kendo-angular-l10n": "25.0.0-develop.30",
35
35
  "rxjs": "^6.5.3 || ^7.0.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "tslib": "^2.3.1",
39
- "@progress/kendo-angular-schematics": "25.0.0-develop.3"
39
+ "@progress/kendo-angular-schematics": "25.0.0-develop.30"
40
40
  },
41
41
  "schematics": "./schematics/collection.json",
42
42
  "module": "fesm2022/progress-kendo-angular-label.mjs",