@progress/kendo-angular-label 16.5.0 → 16.6.0-develop.2

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,15 +3,14 @@
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 { Directive, Input, HostBinding, forwardRef, Component, NgModule, EventEmitter, isDevMode, Output, ContentChild, ViewChild } from '@angular/core';
6
+ import { Directive, Input, HostBinding, EventEmitter, forwardRef, isDevMode, Component, Output, ContentChild, 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';
10
- import * as i2 from '@angular/common';
11
- import { CommonModule } from '@angular/common';
12
10
  import { NgControl } from '@angular/forms';
13
11
  import { validatePackage } from '@progress/kendo-licensing';
14
12
  import { Observable, Subscription } from 'rxjs';
13
+ import { NgIf, NgClass, NgStyle } from '@angular/common';
15
14
 
16
15
  /**
17
16
  * @hidden
@@ -167,12 +166,13 @@ class LabelDirective {
167
166
  }
168
167
  }
169
168
  LabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
170
- LabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LabelDirective, selector: "label[for]", inputs: { for: "for", labelClass: "labelClass" }, host: { properties: { "attr.for": "this.labelFor", "class.k-label": "this.labelClass" } }, ngImport: i0 });
169
+ LabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", 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 });
171
170
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelDirective, decorators: [{
172
171
  type: Directive,
173
172
  args: [{
174
173
  // eslint-disable-next-line @angular-eslint/directive-selector
175
- selector: 'label[for]'
174
+ selector: 'label[for]',
175
+ standalone: true
176
176
  }]
177
177
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { for: [{
178
178
  type: Input
@@ -186,111 +186,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
186
186
  args: ['class.k-label']
187
187
  }] } });
188
188
 
189
- /**
190
- * @hidden
191
- */
192
- class Messages extends ComponentMessages {
193
- }
194
- Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
195
- Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, selector: "kendo-label-messages-base", inputs: { optional: "optional" }, usesInheritance: true, ngImport: i0 });
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
197
- type: Directive,
198
- args: [{
199
- // eslint-disable-next-line @angular-eslint/directive-selector
200
- selector: 'kendo-label-messages-base'
201
- }]
202
- }], propDecorators: { optional: [{
203
- type: Input
204
- }] } });
205
-
206
- /**
207
- * @hidden
208
- */
209
- class LocalizedMessagesDirective extends Messages {
210
- constructor(service) {
211
- super();
212
- this.service = service;
213
- }
214
- }
215
- LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
216
- LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n ", providers: [
217
- {
218
- provide: Messages,
219
- useExisting: forwardRef(() => LocalizedMessagesDirective)
220
- }
221
- ], usesInheritance: true, ngImport: i0 });
222
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
223
- type: Directive,
224
- args: [{
225
- providers: [
226
- {
227
- provide: Messages,
228
- useExisting: forwardRef(() => LocalizedMessagesDirective)
229
- }
230
- ],
231
- selector: `
232
- [kendoLabelLocalizedMessages],
233
- [kendoFloatingLabelLocalizedMessages]
234
- `
235
- }]
236
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
237
-
238
- /**
239
- * Custom component messages override default component messages
240
- * ([see example](slug:label_globalization#toc-internationalization)).
241
- */
242
- class CustomMessagesComponent extends Messages {
243
- constructor(service) {
244
- super();
245
- this.service = service;
246
- }
247
- get override() {
248
- return true;
249
- }
250
- }
251
- CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
252
- CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, selector: "kendo-label-messages, kendo-floatinglabel-messages", providers: [
253
- {
254
- provide: Messages,
255
- useExisting: forwardRef(() => CustomMessagesComponent)
256
- }
257
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
258
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
259
- type: Component,
260
- args: [{
261
- providers: [
262
- {
263
- provide: Messages,
264
- useExisting: forwardRef(() => CustomMessagesComponent)
265
- }
266
- ],
267
- selector: 'kendo-label-messages, kendo-floatinglabel-messages',
268
- template: ``
269
- }]
270
- }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
271
-
272
- const SHARED_DIRECTIVES = [
273
- LocalizedMessagesDirective,
274
- CustomMessagesComponent
275
- ];
276
- /**
277
- * @hidden
278
- */
279
- class SharedDirectivesModule {
280
- }
281
- SharedDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
282
- SharedDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule, declarations: [LocalizedMessagesDirective,
283
- CustomMessagesComponent], exports: [LocalizedMessagesDirective,
284
- CustomMessagesComponent] });
285
- SharedDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule });
286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule, decorators: [{
287
- type: NgModule,
288
- args: [{
289
- declarations: [SHARED_DIRECTIVES],
290
- exports: [SHARED_DIRECTIVES]
291
- }]
292
- }] });
293
-
294
189
  /**
295
190
  * @hidden
296
191
  */
@@ -298,8 +193,8 @@ const packageMetadata = {
298
193
  name: '@progress/kendo-angular-label',
299
194
  productName: 'Kendo UI for Angular',
300
195
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
301
- publishDate: 1721814095,
302
- version: '16.5.0',
196
+ publishDate: 1721846988,
197
+ version: '16.6.0-develop.2',
303
198
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
304
199
  };
305
200
 
@@ -350,6 +245,56 @@ class FloatingLabelInputAdapter {
350
245
  }
351
246
  }
352
247
 
248
+ /**
249
+ * @hidden
250
+ */
251
+ class Messages extends ComponentMessages {
252
+ }
253
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
254
+ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, selector: "kendo-label-messages-base", inputs: { optional: "optional" }, usesInheritance: true, ngImport: i0 });
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
256
+ type: Directive,
257
+ args: [{
258
+ // eslint-disable-next-line @angular-eslint/directive-selector
259
+ selector: 'kendo-label-messages-base'
260
+ }]
261
+ }], propDecorators: { optional: [{
262
+ type: Input
263
+ }] } });
264
+
265
+ /**
266
+ * @hidden
267
+ */
268
+ class LocalizedMessagesDirective extends Messages {
269
+ constructor(service) {
270
+ super();
271
+ this.service = service;
272
+ }
273
+ }
274
+ LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
275
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n ", providers: [
276
+ {
277
+ provide: Messages,
278
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
279
+ }
280
+ ], usesInheritance: true, ngImport: i0 });
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
282
+ type: Directive,
283
+ args: [{
284
+ providers: [
285
+ {
286
+ provide: Messages,
287
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
288
+ }
289
+ ],
290
+ selector: `
291
+ [kendoLabelLocalizedMessages],
292
+ [kendoFloatingLabelLocalizedMessages]
293
+ `,
294
+ standalone: true
295
+ }]
296
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
297
+
353
298
  const isFunction = (x) => Object.prototype.toString.call(x) === '[object Function]';
354
299
  /**
355
300
  * Represents the [Kendo UI FloatingLabel component for Angular]({% slug overview_floatinglabel %}).
@@ -567,7 +512,7 @@ class FloatingLabelComponent {
567
512
  }
568
513
  }
569
514
  FloatingLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
570
- FloatingLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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-invalid": "this.invalidClass", "attr.dir": "this.direction" } }, providers: [
515
+ FloatingLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [
571
516
  LocalizationService,
572
517
  {
573
518
  provide: L10N_PREFIX,
@@ -583,7 +528,7 @@ FloatingLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
583
528
  <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-floating-label">
584
529
  {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
585
530
  </label>
586
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n " }] });
531
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n " }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
587
532
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelComponent, decorators: [{
588
533
  type: Component,
589
534
  args: [{
@@ -606,7 +551,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
606
551
  <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-floating-label">
607
552
  {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
608
553
  </label>
609
- `
554
+ `,
555
+ standalone: true,
556
+ imports: [LocalizedMessagesDirective, NgIf, NgClass, NgStyle]
610
557
  }]
611
558
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
612
559
  type: HostBinding,
@@ -640,50 +587,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
640
587
  args: [NgControl, { static: false }]
641
588
  }] } });
642
589
 
643
- const COMPONENT_DIRECTIVES$1 = [FloatingLabelComponent];
644
- /**
645
- * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
646
- * definition for the TextBox directive.
647
- *
648
- * @example
649
- *
650
- * ```ts-no-run
651
- *
652
- * // The browser platform with a compiler
653
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
654
- *
655
- * import { NgModule } from '@angular/core';
656
- *
657
- * // Import the app component
658
- * import { AppComponent } from './app.component';
659
- *
660
- * // Define the app module
661
- * _@NgModule({
662
- * declarations: [AppComponent], // declare app component
663
- * imports: [BrowserModule, FloatingLabelModule], // import FloatingLabel module
664
- * bootstrap: [AppComponent]
665
- * })
666
- * export class AppModule {}
667
- *
668
- * // Compile and launch the module
669
- * platformBrowserDynamic().bootstrapModule(AppModule);
670
- *
671
- * ```
672
- */
673
- class FloatingLabelModule {
674
- }
675
- FloatingLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
676
- FloatingLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, declarations: [FloatingLabelComponent], imports: [CommonModule, SharedDirectivesModule], exports: [FloatingLabelComponent, SharedDirectivesModule] });
677
- FloatingLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, imports: [CommonModule, SharedDirectivesModule, SharedDirectivesModule] });
678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, decorators: [{
679
- type: NgModule,
680
- args: [{
681
- declarations: [...COMPONENT_DIRECTIVES$1],
682
- exports: [...COMPONENT_DIRECTIVES$1, SharedDirectivesModule],
683
- imports: [CommonModule, SharedDirectivesModule]
684
- }]
685
- }] });
686
-
687
590
  /**
688
591
  * Represents the [Kendo UI Label component for Angular]({% slug overview_label %}).
689
592
  *
@@ -754,7 +657,7 @@ class LabelComponent {
754
657
  }
755
658
  }
756
659
  LabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
757
- LabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LabelComponent, selector: "kendo-label", inputs: { text: "text", for: "for", optional: "optional", labelCssStyle: "labelCssStyle", labelCssClass: "labelCssClass" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
660
+ LabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [
758
661
  LocalizationService,
759
662
  {
760
663
  provide: L10N_PREFIX,
@@ -775,7 +678,7 @@ LabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version
775
678
  {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
776
679
  </label>
777
680
  <ng-content></ng-content>
778
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n " }, { kind: "directive", type: LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }] });
681
+ `, 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"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
779
682
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelComponent, decorators: [{
780
683
  type: Component,
781
684
  args: [{
@@ -803,7 +706,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
803
706
  {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor('optional')}})</span>
804
707
  </label>
805
708
  <ng-content></ng-content>
806
- `
709
+ `,
710
+ standalone: true,
711
+ imports: [LocalizedMessagesDirective, LabelDirective, NgClass, NgStyle, NgIf]
807
712
  }]
808
713
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.LocalizationService }]; }, propDecorators: { direction: [{
809
714
  type: HostBinding,
@@ -826,10 +731,65 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
826
731
  args: [KendoInput, { static: true }]
827
732
  }] } });
828
733
 
829
- const COMPONENT_DIRECTIVES = [
734
+ /**
735
+ * Custom component messages override default component messages
736
+ * ([see example](slug:label_globalization#toc-internationalization)).
737
+ */
738
+ class CustomMessagesComponent extends Messages {
739
+ constructor(service) {
740
+ super();
741
+ this.service = service;
742
+ }
743
+ get override() {
744
+ return true;
745
+ }
746
+ }
747
+ CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
748
+ CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-label-messages, kendo-floatinglabel-messages", providers: [
749
+ {
750
+ provide: Messages,
751
+ useExisting: forwardRef(() => CustomMessagesComponent)
752
+ }
753
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
755
+ type: Component,
756
+ args: [{
757
+ providers: [
758
+ {
759
+ provide: Messages,
760
+ useExisting: forwardRef(() => CustomMessagesComponent)
761
+ }
762
+ ],
763
+ selector: 'kendo-label-messages, kendo-floatinglabel-messages',
764
+ template: ``,
765
+ standalone: true
766
+ }]
767
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
768
+
769
+ /**
770
+ * Utility array that contains all `Label` related components and directives
771
+ */
772
+ const KENDO_LABEL = [
830
773
  LabelDirective,
831
- LabelComponent
774
+ LabelComponent,
775
+ CustomMessagesComponent
776
+ ];
777
+ /**
778
+ * Utility array that contains all `FloatingLabel` related components and directives
779
+ */
780
+ const KENDO_FLOATINGLABEL = [
781
+ FloatingLabelComponent,
782
+ CustomMessagesComponent
783
+ ];
784
+ /**
785
+ * Utility array that contains all `@progress/kendo-angular-label` related components and directives
786
+ */
787
+ const KENDO_LABELS = [
788
+ ...KENDO_LABEL,
789
+ ...KENDO_FLOATINGLABEL
832
790
  ];
791
+
792
+ //IMPORTANT: NgModule export kept for backwards compatibility
833
793
  /**
834
794
  * The exported package module.
835
795
  *
@@ -868,16 +828,56 @@ const COMPONENT_DIRECTIVES = [
868
828
  class LabelModule {
869
829
  }
870
830
  LabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
871
- LabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: LabelModule, declarations: [LabelDirective,
872
- LabelComponent], imports: [CommonModule, SharedDirectivesModule], exports: [LabelDirective,
873
- LabelComponent, FloatingLabelModule, SharedDirectivesModule] });
874
- LabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelModule, imports: [CommonModule, SharedDirectivesModule, FloatingLabelModule, SharedDirectivesModule] });
831
+ LabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: LabelModule, imports: [LabelDirective, LabelComponent, CustomMessagesComponent, FloatingLabelComponent, CustomMessagesComponent], exports: [LabelDirective, LabelComponent, CustomMessagesComponent, FloatingLabelComponent, CustomMessagesComponent] });
832
+ LabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelModule, imports: [LabelComponent, CustomMessagesComponent, FloatingLabelComponent, CustomMessagesComponent] });
875
833
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LabelModule, decorators: [{
876
834
  type: NgModule,
877
835
  args: [{
878
- imports: [CommonModule, SharedDirectivesModule],
879
- declarations: [...COMPONENT_DIRECTIVES],
880
- exports: [...COMPONENT_DIRECTIVES, FloatingLabelModule, SharedDirectivesModule]
836
+ imports: [...KENDO_LABELS],
837
+ exports: [...KENDO_LABELS]
838
+ }]
839
+ }] });
840
+
841
+ //IMPORTANT: NgModule export kept for backwards compatibility
842
+ /**
843
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
844
+ * definition for the TextBox directive.
845
+ *
846
+ * @example
847
+ *
848
+ * ```ts-no-run
849
+ *
850
+ * // The browser platform with a compiler
851
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
852
+ *
853
+ * import { NgModule } from '@angular/core';
854
+ *
855
+ * // Import the app component
856
+ * import { AppComponent } from './app.component';
857
+ *
858
+ * // Define the app module
859
+ * _@NgModule({
860
+ * declarations: [AppComponent], // declare app component
861
+ * imports: [BrowserModule, FloatingLabelModule], // import FloatingLabel module
862
+ * bootstrap: [AppComponent]
863
+ * })
864
+ * export class AppModule {}
865
+ *
866
+ * // Compile and launch the module
867
+ * platformBrowserDynamic().bootstrapModule(AppModule);
868
+ *
869
+ * ```
870
+ */
871
+ class FloatingLabelModule {
872
+ }
873
+ FloatingLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
874
+ FloatingLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, imports: [FloatingLabelComponent, CustomMessagesComponent], exports: [FloatingLabelComponent, CustomMessagesComponent] });
875
+ FloatingLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, imports: [KENDO_FLOATINGLABEL] });
876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FloatingLabelModule, decorators: [{
877
+ type: NgModule,
878
+ args: [{
879
+ exports: [...KENDO_FLOATINGLABEL],
880
+ imports: [...KENDO_FLOATINGLABEL]
881
881
  }]
882
882
  }] });
883
883
 
@@ -885,5 +885,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
885
885
  * Generated bundle index. Do not edit.
886
886
  */
887
887
 
888
- export { CustomMessagesComponent, FloatingLabelComponent, FloatingLabelModule, LabelComponent, LabelDirective, LabelModule, LocalizedMessagesDirective, SharedDirectivesModule };
888
+ export { CustomMessagesComponent, FloatingLabelComponent, FloatingLabelModule, KENDO_FLOATINGLABEL, KENDO_LABEL, KENDO_LABELS, LabelComponent, LabelDirective, LabelModule, LocalizedMessagesDirective };
889
889
 
@@ -109,5 +109,5 @@ export declare class FloatingLabelComponent implements AfterContentInit, OnDestr
109
109
  private addHandlers;
110
110
  private validateSetup;
111
111
  static ɵfac: i0.ɵɵFactoryDeclaration<FloatingLabelComponent, never>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<FloatingLabelComponent, "kendo-floatinglabel", ["kendoFloatingLabel"], { "labelCssStyle": "labelCssStyle"; "labelCssClass": "labelCssClass"; "id": "id"; "text": "text"; "optional": "optional"; }, { "positionChange": "positionChange"; }, ["kendoInput", "formControl"], ["*"], false, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<FloatingLabelComponent, "kendo-floatinglabel", ["kendoFloatingLabel"], { "labelCssStyle": "labelCssStyle"; "labelCssClass": "labelCssClass"; "id": "id"; "text": "text"; "optional": "optional"; }, { "positionChange": "positionChange"; }, ["kendoInput", "formControl"], ["*"], true, never>;
113
113
  }
@@ -4,8 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "./floating-label.component";
7
- import * as i2 from "@angular/common";
8
- import * as i3 from "../shared.module";
7
+ import * as i2 from "../localization/custom-messages.component";
9
8
  /**
10
9
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
11
10
  * definition for the TextBox directive.
@@ -37,6 +36,6 @@ import * as i3 from "../shared.module";
37
36
  */
38
37
  export declare class FloatingLabelModule {
39
38
  static ɵfac: i0.ɵɵFactoryDeclaration<FloatingLabelModule, never>;
40
- static ɵmod: i0.ɵɵNgModuleDeclaration<FloatingLabelModule, [typeof i1.FloatingLabelComponent], [typeof i2.CommonModule, typeof i3.SharedDirectivesModule], [typeof i1.FloatingLabelComponent, typeof i3.SharedDirectivesModule]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FloatingLabelModule, never, [typeof i1.FloatingLabelComponent, typeof i2.CustomMessagesComponent], [typeof i1.FloatingLabelComponent, typeof i2.CustomMessagesComponent]>;
41
40
  static ɵinj: i0.ɵɵInjectorDeclaration<FloatingLabelModule>;
42
41
  }
package/index.d.ts CHANGED
@@ -10,4 +10,4 @@ export { LabelComponent } from './label/label.component';
10
10
  export { CustomMessagesComponent } from './localization/custom-messages.component';
11
11
  export { FloatingLabelPosition } from './floating-label/models/label-position';
12
12
  export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
13
- export { SharedDirectivesModule } from './shared.module';
13
+ export * from './directives';
@@ -82,5 +82,5 @@ export declare class LabelComponent implements AfterContentInit {
82
82
  */
83
83
  textFor(key: string): string;
84
84
  static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
85
- static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "kendo-label", ["kendoLabel"], { "text": "text"; "for": "for"; "optional": "optional"; "labelCssStyle": "labelCssStyle"; "labelCssClass": "labelCssClass"; }, {}, ["kendoInput"], ["*"], false, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "kendo-label", ["kendoLabel"], { "text": "text"; "for": "for"; "optional": "optional"; "labelCssStyle": "labelCssStyle"; "labelCssClass": "labelCssClass"; }, {}, ["kendoInput"], ["*"], true, never>;
86
86
  }
@@ -71,5 +71,5 @@ export declare class LabelDirective {
71
71
  private getFocusableComponent;
72
72
  private handleClick;
73
73
  static ɵfac: i0.ɵɵFactoryDeclaration<LabelDirective, never>;
74
- static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "label[for]", never, { "for": "for"; "labelClass": "labelClass"; }, {}, never, never, false, never>;
74
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "label[for]", never, { "for": "for"; "labelClass": "labelClass"; }, {}, never, never, true, never>;
75
75
  }
package/label.module.d.ts CHANGED
@@ -5,9 +5,8 @@
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "./label.directive";
7
7
  import * as i2 from "./label/label.component";
8
- import * as i3 from "@angular/common";
9
- import * as i4 from "./shared.module";
10
- import * as i5 from "./floating-label/floating-label.module";
8
+ import * as i3 from "./localization/custom-messages.component";
9
+ import * as i4 from "./floating-label/floating-label.component";
11
10
  /**
12
11
  * The exported package module.
13
12
  *
@@ -45,6 +44,6 @@ import * as i5 from "./floating-label/floating-label.module";
45
44
  */
46
45
  export declare class LabelModule {
47
46
  static ɵfac: i0.ɵɵFactoryDeclaration<LabelModule, never>;
48
- static ɵmod: i0.ɵɵNgModuleDeclaration<LabelModule, [typeof i1.LabelDirective, typeof i2.LabelComponent], [typeof i3.CommonModule, typeof i4.SharedDirectivesModule], [typeof i1.LabelDirective, typeof i2.LabelComponent, typeof i5.FloatingLabelModule, typeof i4.SharedDirectivesModule]>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LabelModule, never, [typeof i1.LabelDirective, typeof i2.LabelComponent, typeof i3.CustomMessagesComponent, typeof i4.FloatingLabelComponent, typeof i3.CustomMessagesComponent], [typeof i1.LabelDirective, typeof i2.LabelComponent, typeof i3.CustomMessagesComponent, typeof i4.FloatingLabelComponent, typeof i3.CustomMessagesComponent]>;
49
48
  static ɵinj: i0.ɵɵInjectorDeclaration<LabelModule>;
50
49
  }
@@ -14,5 +14,5 @@ export declare class CustomMessagesComponent extends Messages {
14
14
  constructor(service: LocalizationService);
15
15
  protected get override(): boolean;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-label-messages, kendo-floatinglabel-messages", never, {}, {}, never, never, false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-label-messages, kendo-floatinglabel-messages", never, {}, {}, never, never, true, never>;
18
18
  }
@@ -12,5 +12,5 @@ export declare class LocalizedMessagesDirective extends Messages {
12
12
  protected service: LocalizationService;
13
13
  constructor(service: LocalizationService);
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, " [kendoLabelLocalizedMessages], [kendoFloatingLabelLocalizedMessages] ", never, {}, {}, never, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, " [kendoLabelLocalizedMessages], [kendoFloatingLabelLocalizedMessages] ", never, {}, {}, never, never, true, never>;
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-label",
3
- "version": "16.5.0",
3
+ "version": "16.6.0-develop.2",
4
4
  "description": "Kendo UI Label for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -24,13 +24,13 @@
24
24
  "@angular/forms": "15 - 18",
25
25
  "@angular/platform-browser": "15 - 18",
26
26
  "@progress/kendo-licensing": "^1.0.2",
27
- "@progress/kendo-angular-common": "16.5.0",
28
- "@progress/kendo-angular-l10n": "16.5.0",
27
+ "@progress/kendo-angular-common": "16.6.0-develop.2",
28
+ "@progress/kendo-angular-l10n": "16.6.0-develop.2",
29
29
  "rxjs": "^6.5.3 || ^7.0.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.3.1",
33
- "@progress/kendo-angular-schematics": "16.5.0"
33
+ "@progress/kendo-angular-schematics": "16.6.0-develop.2"
34
34
  },
35
35
  "schematics": "./schematics/collection.json",
36
36
  "module": "fesm2015/progress-kendo-angular-label.mjs",
@@ -1,29 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { NgModule } from '@angular/core';
6
- import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
7
- import { CustomMessagesComponent } from './localization/custom-messages.component';
8
- import * as i0 from "@angular/core";
9
- const SHARED_DIRECTIVES = [
10
- LocalizedMessagesDirective,
11
- CustomMessagesComponent
12
- ];
13
- /**
14
- * @hidden
15
- */
16
- export class SharedDirectivesModule {
17
- }
18
- SharedDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19
- SharedDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule, declarations: [LocalizedMessagesDirective,
20
- CustomMessagesComponent], exports: [LocalizedMessagesDirective,
21
- CustomMessagesComponent] });
22
- SharedDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedDirectivesModule, decorators: [{
24
- type: NgModule,
25
- args: [{
26
- declarations: [SHARED_DIRECTIVES],
27
- exports: [SHARED_DIRECTIVES]
28
- }]
29
- }] });
@@ -1,15 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "./localization/localized-messages.directive";
7
- import * as i2 from "./localization/custom-messages.component";
8
- /**
9
- * @hidden
10
- */
11
- export declare class SharedDirectivesModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SharedDirectivesModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.LocalizedMessagesDirective, typeof i2.CustomMessagesComponent], never, [typeof i1.LocalizedMessagesDirective, typeof i2.CustomMessagesComponent]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<SharedDirectivesModule>;
15
- }