@progress/kendo-angular-label 3.1.3 → 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 -107
  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,6 +2,10 @@
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 * as i0 from "@angular/core";
6
+ import * as i1 from "./floating-label.component";
7
+ import * as i2 from "@angular/common";
8
+ import * as i3 from "../shared.module";
5
9
  /**
6
10
  * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
7
11
  * definition for the TextBox directive.
@@ -32,4 +36,7 @@
32
36
  * ```
33
37
  */
34
38
  export declare class FloatingLabelModule {
39
+ 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]>;
41
+ static ɵinj: i0.ɵɵInjectorDeclaration<FloatingLabelModule>;
35
42
  }
@@ -2,3 +2,8 @@
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
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ /// <amd-module name="@progress/kendo-angular-label" />
9
+ export * from './main';
@@ -5,6 +5,7 @@
5
5
  import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { LabelDirective } from './../label.directive';
8
+ import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Represents the [Kendo UI Label component for Angular]({% slug label_basic %}).
10
11
  *
@@ -80,4 +81,6 @@ export declare class LabelComponent implements AfterContentInit {
80
81
  * @hidden
81
82
  */
82
83
  textFor(key: string): string;
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "kendo-label", ["kendoLabel"], { "text": "text"; "for": "for"; "optional": "optional"; }, {}, ["kendoInput"], ["*"]>;
83
86
  }
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ElementRef, Renderer2, NgZone } from '@angular/core';
6
+ import * as i0 from "@angular/core";
6
7
  /**
7
8
  * Represents the [Kendo UI Label directive for Angular]({% slug overview_label %}).
8
9
  * The Label associates a focusable Angular component or an HTML element
@@ -46,7 +47,7 @@ export declare class LabelDirective {
46
47
  for: string | {
47
48
  focus: Function;
48
49
  };
49
- readonly labelFor: string;
50
+ get labelFor(): string;
50
51
  labelClass: boolean;
51
52
  private clickListener;
52
53
  constructor(label: ElementRef<HTMLLabelElement>, renderer: Renderer2, zone: NgZone);
@@ -64,4 +65,6 @@ export declare class LabelDirective {
64
65
  setAriaLabelledby(): void;
65
66
  private getFocusableComponent;
66
67
  private handleClick;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelDirective, never>;
69
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "label[for]", never, { "for": "for"; }, {}, never>;
67
70
  }
@@ -2,6 +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 * as i0 from "@angular/core";
6
+ import * as i1 from "./label.directive";
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";
5
11
  /**
6
12
  * The exported package module.
7
13
  *
@@ -38,4 +44,7 @@
38
44
  * ```
39
45
  */
40
46
  export declare class LabelModule {
47
+ 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]>;
49
+ static ɵinj: i0.ɵɵInjectorDeclaration<LabelModule>;
41
50
  }
@@ -4,6 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { LocalizationService } from '@progress/kendo-angular-l10n';
6
6
  import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
7
8
  /**
8
9
  * Custom component messages override default component messages
9
10
  * ([see example]({% slug label_globalization %}#toc-localization)).
@@ -11,5 +12,7 @@ import { Messages } from './messages';
11
12
  export declare class CustomMessagesComponent extends Messages {
12
13
  protected service: LocalizationService;
13
14
  constructor(service: LocalizationService);
14
- protected readonly override: boolean;
15
+ protected get override(): boolean;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-label-messages, kendo-floatinglabel-messages", never, {}, {}, never, never>;
15
18
  }
@@ -4,10 +4,13 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { LocalizationService } from '@progress/kendo-angular-l10n';
6
6
  import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
7
8
  /**
8
9
  * @hidden
9
10
  */
10
11
  export declare class LocalizedMessagesDirective extends Messages {
11
12
  protected service: LocalizationService;
12
13
  constructor(service: LocalizationService);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, " [kendoLabelLocalizedMessages], [kendoFloatingLabelLocalizedMessages] ", never, {}, {}, never>;
13
16
  }
@@ -3,6 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ComponentMessages } from '@progress/kendo-angular-l10n';
6
+ import * as i0 from "@angular/core";
6
7
  /**
7
8
  * @hidden
8
9
  */
@@ -11,4 +12,6 @@ export declare class Messages extends ComponentMessages {
11
12
  * The optional text.
12
13
  */
13
14
  optional: string;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "kendo-label-messages-base", never, { "optional": "optional"; }, {}, never>;
14
17
  }
@@ -9,3 +9,5 @@ export { FloatingLabelComponent } from './floating-label/floating-label.componen
9
9
  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
+ export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
13
+ export { SharedDirectivesModule } from './shared.module';
package/package.json CHANGED
@@ -1,102 +1,38 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-label",
3
+ "version": "4.0.0-dev.202204131904",
3
4
  "description": "Kendo UI Label for Angular",
4
- "author": "Progress",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
- "version": "3.1.3",
7
- "main": "dist/npm/index.js",
8
- "module": "dist/fesm5/index.js",
9
- "es2015": "dist/fesm2015/index.js",
10
- "esm5": "dist/es/index.js",
11
- "esm2015": "dist/es2015/index.js",
12
- "jsnext:main": "dist/es/index.js",
13
- "typings": "dist/es2015/index.d.ts",
14
- "jsdelivr": "dist/cdn/main.js",
15
- "unpkg": "dist/cdn/main.js",
16
- "sideEffects": false,
17
- "scripts": {
18
- "test": "ci-angular-test",
19
- "test:watch": "jest --watch --env=jsdom",
20
- "test:ci": "ci-angular-test",
21
- "start": "gulp start",
22
- "e2e": "gulp e2e",
23
- "e2e:ci": "ci-angular-e2e",
24
- "lint": "gulp lint && gulp lint-docs",
25
- "api-check": "gulp api-check",
26
- "build-package": "gulp build-package",
27
- "semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post"
6
+ "author": "Progress",
7
+ "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/telerik/kendo-angular-label.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/telerik/kendo-angular"
28
14
  },
29
15
  "keywords": [
16
+ "Angular",
30
17
  "Kendo UI",
31
- "Progress",
32
18
  "Label",
33
- "Angular"
19
+ "Progress"
34
20
  ],
35
- "peerDependencies": {
36
- "@angular/common": "8 - 13",
37
- "@angular/core": "8 - 13",
38
- "@angular/forms": "8 - 13",
39
- "@progress/kendo-angular-common": "^2.0.0",
40
- "@progress/kendo-licensing": "^1.0.2",
41
- "rxjs": "^6.4.0 || ^7.0.0"
21
+ "@progress": {
22
+ "friendlyName": "Label"
42
23
  },
43
24
  "dependencies": {
44
- "@progress/kendo-schematics": "^2.0.0",
45
- "tslib": "^1.9.0"
25
+ "@progress/kendo-schematics": "^3.0.0",
26
+ "tslib": "^2.3.1"
46
27
  },
47
- "devDependencies": {
48
- "@angular-devkit/core": "^8.2.0",
49
- "@angular-devkit/schematics": "^8.2.0",
50
- "@angular/animations": "^8.2.0",
51
- "@angular/common": "^8.2.0",
52
- "@angular/compiler": "^8.2.0",
53
- "@angular/compiler-cli": "^8.2.0",
54
- "@angular/core": "^8.2.0",
55
- "@angular/forms": "^8.2.0",
56
- "@angular/platform-browser": "^8.2.0",
57
- "@angular/platform-browser-dynamic": "^8.2.0",
58
- "@angular/platform-server": "^8.2.0",
59
- "@angular/router": "^8.2.0",
60
- "@progress/kendo-angular-buttons": "^7.0.0",
61
- "@progress/kendo-angular-common": "^2.0.0",
62
- "@progress/kendo-angular-dateinputs": "^6.0.0",
63
- "@progress/kendo-angular-dialog": "^6.0.0",
64
- "@progress/kendo-angular-dropdowns": "^6.0.0",
65
- "@progress/kendo-angular-e2e": "^3.3.0",
66
- "@progress/kendo-angular-inputs": "^8.0.0",
67
- "@progress/kendo-angular-intl": "^3.0.0",
68
- "@progress/kendo-angular-jest-preset": "^2.0.0",
69
- "@progress/kendo-angular-l10n": "^3.0.0",
70
- "@progress/kendo-angular-popup": "^4.0.0",
71
- "@progress/kendo-angular-tasks": "^19.3.1",
72
- "@progress/kendo-angular-treeview": "^5.0.0",
73
- "@progress/kendo-angular-upload": "^7.0.0",
74
- "@progress/kendo-drawing": "^1.6.0",
75
- "@progress/kendo-e2e": "latest",
28
+ "peerDependencies": {
29
+ "@angular/common": "^12.0.0 || ^13.0.0",
30
+ "@angular/core": "^12.0.0 || ^13.0.0",
31
+ "@angular/forms": "^12.0.0 || ^13.0.0",
32
+ "@progress/kendo-angular-common": ">3.0.0-next",
76
33
  "@progress/kendo-licensing": "^1.0.2",
77
- "@progress/kendo-theme-bootstrap": "^5.0.0",
78
- "@progress/kendo-theme-default": "^5.0.0",
79
- "@progress/kendo-theme-material": "^5.0.0",
80
- "@telerik/semantic-prerelease": "^1.0.0",
81
- "@types/jest": "^24.9.0",
82
- "@types/node": "ts3.4",
83
- "@types/zone.js": "0.0.27",
84
- "codelyzer": "^5.0.0",
85
- "core-js": "^2.2.2",
86
- "cz-conventional-changelog": "^1.1.5",
87
- "ghooks": "^1.0.3",
88
- "gulp": "^4.0.0",
89
- "jest": "^24.9.0",
90
- "jest-cli": "^24.9.0",
91
- "jest-environment-jsdom": "^24.9.0",
92
- "jest-junit": "^12.2.0",
93
- "rxjs": "~6.4.0",
94
- "rxjs-tslint-rules": "^4.23.1",
95
- "semantic-release": "^6.3.6",
96
- "tslint": "^5.20.1",
97
- "typescript": "~3.4.5",
98
- "validate-commit-msg": "^1.1.1",
99
- "zone.js": "~0.9.1"
34
+ "@progress/kendo-angular-l10n": ">4.0.0-next",
35
+ "rxjs": "^6.5.3 || ^7.0.0"
100
36
  },
101
37
  "config": {
102
38
  "commitizen": {
@@ -121,27 +57,16 @@
121
57
  "maxSubjectLength": 100
122
58
  }
123
59
  },
124
- "jest": {
125
- "preset": "@progress/kendo-angular-jest-preset"
126
- },
127
- "repository": {
128
- "type": "git",
129
- "url": "https://github.com/telerik/kendo-angular-label.git"
130
- },
131
- "bugs": {
132
- "url": "https://github.com/telerik/kendo-angular"
133
- },
134
- "@progress": {
135
- "friendlyName": "Label"
136
- },
137
- "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
60
+ "schematics": "./schematics/collection.json",
138
61
  "release": {
139
62
  "debug": false,
140
63
  "branchTags": {
141
- "develop": "dev"
64
+ "develop": "dev",
65
+ "ng12-update": "next"
142
66
  },
143
67
  "fallbackTags": {
144
- "dev": "latest"
68
+ "dev": "latest",
69
+ "next": "latest"
145
70
  },
146
71
  "analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
147
72
  "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
@@ -149,9 +74,11 @@
149
74
  "verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
150
75
  "verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
151
76
  },
152
- "schematics": "./schematics/collection.json",
153
- "files": [
154
- "dist",
155
- "schematics"
156
- ]
77
+ "main": "bundles/kendo-angular-label.umd.js",
78
+ "module": "fesm2015/kendo-angular-label.js",
79
+ "es2015": "fesm2015/kendo-angular-label.js",
80
+ "esm2015": "esm2015/kendo-angular-label.js",
81
+ "fesm2015": "fesm2015/kendo-angular-label.js",
82
+ "typings": "kendo-angular-label.d.ts",
83
+ "sideEffects": false
157
84
  }
@@ -1,10 +1,13 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  "use strict";
2
6
  Object.defineProperty(exports, "__esModule", { value: true });
3
7
  const schematics_1 = require("@angular-devkit/schematics");
4
8
  function default_1(options) {
5
- const finalOptions = Object.assign({}, options, { mainNgModule: 'LabelModule', package: 'label' //package name, e.g grid
9
+ const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'LabelModule', package: 'label' //package name, e.g grid
6
10
  });
7
11
  return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
8
12
  }
9
13
  exports.default = default_1;
10
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,qBACX,OAAO,IACV,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE,OAAO,CAAC,wBAAwB;OAC5C,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE,OAAO,CAAC,wBAAwB;OAC5C,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ 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
+ }
File without changes
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):"function"==typeof define&&define.amd?define([,,,,,],e):"object"==typeof exports?exports.KendoAngularLabel=e(require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):t.KendoAngularLabel=e(t.ng.core,t.rxjs,t.KendoAngularCommon,t.ng.common,t.KendoLicensing,t.ng.forms)}(window,(function(t,e,n,r,o,i){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return i})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return p})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return h})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return y})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return v})),n.d(e,"__asyncDelegator",(function(){return m})),n.d(e,"__asyncValues",(function(){return O})),n.d(e,"__makeTemplateObject",(function(){return S})),n.d(e,"__importStar",(function(){return w})),n.d(e,"__importDefault",(function(){return x})),n.d(e,"__classPrivateFieldGet",(function(){return E})),n.d(e,"__classPrivateFieldSet",(function(){return j}));
6
- /*! *****************************************************************************
7
- Copyright (c) Microsoft Corporation.
8
-
9
- Permission to use, copy, modify, and/or distribute this software for any
10
- purpose with or without fee is hereby granted.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
- PERFORMANCE OF THIS SOFTWARE.
19
- ***************************************************************************** */
20
- var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function a(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function d(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}function f(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function v(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){a("next",t)}function c(t){a("throw",t)}function l(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function m(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:o?o(e):e}:o}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function j(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"MessageService",(function(){return j})),n.d(e,"ComponentMessages",(function(){return C})),n.d(e,"L10N_PREFIX",(function(){return I})),n.d(e,"LocalizationService",(function(){return L})),n.d(e,"RTL",(function(){return k}));var r=n(0),o=n(1),i=n(3);function s(t){return"function"==typeof t}var a=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout((function(){throw t}))}var l={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},p=Array.isArray||function(t){return t&&"number"==typeof t.length};function d(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}d.prototype=Object.create(Error.prototype);var f=d,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a,u=-1,c=r?r.length:0;n;)n.remove(this),n=++u<c&&r[u]||null;if(s(o))try{o.call(this)}catch(n){e=!0,t=n instanceof f?b(n.errors):[n]}if(p(i))for(u=-1,c=i.length;++u<c;){var l=i[u];if(null!==(a=l)&&"object"==typeof a)try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof f?t=t.concat(b(n.errors)):t.push(n)}}if(e)throw new f(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),_=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=l;break;case 1:if(!n){i.destination=l;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new g(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new g(i,n,r,o)}return i}return r.__extends(e,t),e.prototype[y]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),g=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==l&&(s((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(_);var v=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new m(t,this.total))},t}(),m=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(_);var O=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.project,this.thisArg))},t}(),S=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(_);function w(){}var x=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new E(t,this.nextOrObserver,this.error,this.complete))},t}(),E=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=w,i._tapError=w,i._tapComplete=w,i._tapError=r||w,i._tapComplete=o||w,s(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||w,i._tapError=n.error||w,i._tapComplete=n.complete||w),i}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(_),j=function(){function t(){this.changes=new i.BehaviorSubject({rtl:void 0})}return t.prototype.notify=function(t){this.changes.next({rtl:t})},t.prototype.get=function(t){},t=Object(r.__decorate)([Object(o.Injectable)()],t)}(),C=function(){function t(){}return Object.defineProperty(t.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some((function(e){return!t[e].isFirstChange()}))&&this.service.notifyChanges()},t.prototype.ngOnInit=function(){var t,e=this;this.subscription=this.service.changes.pipe((t=1,function(e){return e.lift(new v(t))})).subscribe((function(){return e.register(e)}))},t.prototype.register=function(t){var e=this;Object.keys(t).forEach((function(t){return e.service.register(t,e[t],e.override)}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t}(),k=new o.InjectionToken("Kendo UI Right-to-Left token"),I=new o.InjectionToken("Localization key prefix"),L=function(){function t(t,e,n){var r,o,s,a,u,c=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe((a=function(t){var e=t.rtl;return void 0!==e?e:c._rtl},function(t){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new O(a,u))}),(r=function(t){return c._rtl=t},function(t){return t.lift(new x(r,o,s))})).subscribe((function(t){c.dictionary={},c.changes.next({rtl:t})})))}return Object.defineProperty(t.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.get=function(t){var e=this.key(t);return this.dictionary[e]},t.prototype.register=function(t,e,n){void 0===n&&(n=!1);var r=this.key(t),o=e;if(!n){if(this.dictionary.hasOwnProperty(r))return;o=this.defaultValue(r,e)}this.dictionary[r]=o},t.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},t.prototype.key=function(t){return this.prefix+"."+t},t.prototype.defaultValue=function(t,e){if(!this.messageService)return e;var n=this.messageService.get(t);return void 0===n?e:n},t=Object(r.__decorate)([Object(o.Injectable)(),Object(r.__param)(0,Object(o.Inject)(I)),Object(r.__param)(1,Object(o.Optional)()),Object(r.__param)(2,Object(o.Optional)()),Object(r.__param)(2,Object(o.Inject)(k)),Object(r.__metadata)("design:paramtypes",[String,j,Boolean])],t)}()},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),i=n(1),s=n(5),a=function(){function t(t,e,n){var r=this;this.label=t,this.renderer=e,this.zone=n,this.labelClass=!0,this.handleClick=function(){var t=r.getFocusableComponent();t&&(o.isUploadComponent(t)&&t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}return Object.defineProperty(t.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var t=this.getFocusableComponent()||{};return o.isInputElement(t)&&!o.inputElementHasAttr(t,"id")&&this.renderer.setAttribute(t,"id","k-"+s.guid()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return t.clickListener=t.renderer.listen(t.label.nativeElement,"click",t.handleClick)}))},t.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},t.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var t=this.getFocusableComponent();if(t&&t.focusableId){var e=o.getRootElement(this.label.nativeElement).querySelector("#"+t.focusableId);if(!e)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(e,"aria-labelledby",r)}}},t.prototype.getFocusableComponent=function(){var t=this.for;return t&&void 0!==t.focus?t:null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([i.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"labelFor",null),r.__decorate([i.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],t.prototype,"labelClass",void 0),t=r.__decorate([i.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.NgZone])],t)}();e.LabelDirective=a},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUploadComponent=function(t){return t.wrapper&&("KENDO-UPLOAD"===t.wrapper.tagName||"KENDO-FILESELECT"===t.wrapper.tagName)},e.isInputElement=function(t){return t instanceof HTMLElement},e.inputElementHasAttr=function(t,e){return t.hasAttribute(e)},e.getWrappedNativeInput=function(t){return t.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},e.getRootElement=function(t){if(!t)return null;for(var e=t;e.parentElement;)e=e.parentElement;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(18),s=n(9),a=[i.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:[a],exports:[a]})],t)}();e.SharedDirectivesModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"optional",void 0),e}(n(2).ComponentMessages);e.Messages=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=r.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=a},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(10),s=n(7),a=[n(12).FloatingLabelComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[i.CommonModule,s.SharedDirectivesModule]})],t)}();e.FloatingLabelModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(19),a=n(5),u=n(13),c=n(14),l=n(20),p=function(t){return"[object Function]"===Object.prototype.toString.call(t)},d=function(){function t(t,e,n,r){this.elementRef=t,this.renderer=e,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new o.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+a.guid(),this.autoFillStarted=!1,u.validatePackage(c.packageMetadata),this.direction=r.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(t.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validateSetup();var t=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(t),this.setLabelFor(t)},t.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},t.prototype.subscribe=function(t,e,n){if(t[e]instanceof o.EventEmitter){var r=t[e].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},t.prototype.updateState=function(){var t=function(t){return 0!==t&&!1!==t&&(!(!Array.isArray(t)||t.length)||!t)},e=this.formControl;if(e){var n=e.valueAccessor;p(n.isEmpty)?this.empty=n.isEmpty():this.empty=t(e.value),this.invalid=e.invalid&&(e.touched||e.dirty)}else this.empty=p(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():t(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},t.prototype.setAriaLabelledby=function(t){var e=t.focusableId||t.id;if(e){var n=this.elementRef.nativeElement.querySelector("#"+e);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},t.prototype.setLabelFor=function(t){var e=t.focusableId||t.id;if(this.id&&e)this.id=e;else if(this.id)t.focusableId=this.id;else if(e)this.id=e;else{var n="k-"+a.guid();t.focusableId=n,this.id=n}},t.prototype.handleAutofill=function(t){var e=this;this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}))},t.prototype.addHandlers=function(t){var e=this,n=function(t){return function(){e.focused=t,e.updateState(),e.empty&&a.hasObservers(e.positionChange)&&e.positionChange.emit(t?"Out":"In")}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.handleAutofill(t);var r=function(){return e.updateState()};r(),this.subscribe(t,"onValueChange",r)},t.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(o.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([o.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),r.__decorate([o.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"focusedClass",null),r.__decorate([o.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"invalidClass",null),r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"id",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"positionChange",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),r.__decorate([o.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],t.prototype,"formControl",void 0),t=r.__decorate([o.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),r.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,i.LocalizationService])],t)}();e.FloatingLabelComponent=d},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219058,version:"",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"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3),s=n(2),a=n(5),u=n(13),c=n(14),l=n(4),p=n(6),d=function(){function t(t,e,n){this.elementRef=t,this.renderer=e,this.localization=n,this.subscriptions=new i.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return t.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var t=p.getWrappedNativeInput(this.elementRef.nativeElement);if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id","k-"+a.guid()),void(this.control=t);this.control=this.kendoInput}},t.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"})))},t.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],t.prototype,"labelDirective",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),t=r.__decorate([o.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),r.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,s.LocalizationService])],t)}();e.LabelComponent=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.LabelDirective=r.LabelDirective;var o=n(17);e.LabelModule=o.LabelModule;var i=n(11);e.FloatingLabelModule=i.FloatingLabelModule;var s=n(12);e.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(15);e.LabelComponent=a.LabelComponent;var u=n(9);e.CustomMessagesComponent=u.CustomMessagesComponent},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(10),s=n(1),a=n(11),u=n(4),c=n(15),l=[u.LabelDirective,c.LabelComponent],p=function(){function t(){}return t=r.__decorate([s.NgModule({imports:[i.CommonModule,o.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,o.SharedDirectivesModule])})],t)}();e.LabelModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,e=n=r.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=a},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=n(1),i=function(){function t(t,e){this.component=t;var n=function(t){return t instanceof r.Observable||t instanceof o.EventEmitter};n(t.onFocus)&&(this.onFocus=t.onFocus),n(t.autoFillStart)&&(this.autoFillStart=t.autoFillStart),n(t.autoFillEnd)&&(this.autoFillEnd=t.autoFillEnd),n(t.onBlur)&&(this.onBlur=t.onBlur),e?this.onValueChange=e.valueChanges:t.onValueChange&&(this.onValueChange=t.onValueChange)}return Object.defineProperty(t.prototype,"focusableId",{get:function(){var t=this.component;return"focusableId"in t?t.focusableId:"id"in t?t.id:""},set:function(t){var e=this.component;"focusableId"in e?e.focusableId=t:"id"in e&&(e.id=t)},enumerable:!0,configurable:!0}),t}();e.FloatingLabelInputAdapter=i}])}));
package/dist/cdn/main.js DELETED
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.KendoAngularLabel=e(require("tslib"),require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@angular/common"),require("@progress/kendo-licensing"),require("@angular/forms")):t.KendoAngularLabel=e(t.self,t.ng.core,t.rxjs,t.KendoAngularCommon,t.ng.common,t.KendoLicensing,t.ng.forms)}(window,(function(t,e,n,r,o,i,s){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e),n.d(e,"MessageService",(function(){return k})),n.d(e,"ComponentMessages",(function(){return j})),n.d(e,"L10N_PREFIX",(function(){return L})),n.d(e,"LocalizationService",(function(){return w})),n.d(e,"RTL",(function(){return I}));var r=n(0),o=n(1),i=n(3);function s(t){return"function"==typeof t}var a=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout((function(){throw t}))}var l={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},p=Array.isArray||function(t){return t&&"number"==typeof t.length};function d(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}d.prototype=Object.create(Error.prototype);var f=d,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a,u=-1,c=r?r.length:0;n;)n.remove(this),n=++u<c&&r[u]||null;if(s(o))try{o.call(this)}catch(n){e=!0,t=n instanceof f?b(n.errors):[n]}if(p(i))for(u=-1,c=i.length;++u<c;){var l=i[u];if(null!==(a=l)&&"object"==typeof a)try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof f?t=t.concat(b(n.errors)):t.push(n)}}if(e)throw new f(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var o=this._subscriptions;o?o.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function b(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var _="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=l;break;case 1:if(!n){i.destination=l;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new g(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new g(i,n,r,o)}return i}return r.__extends(e,t),e.prototype[_]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),g=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==l&&(s((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=r,a._complete=o,a}return r.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(y);var m=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.total))},t}(),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(y);var E=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new O(t,this.project,this.thisArg))},t}(),O=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(y);function x(){}var C=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.nextOrObserver,this.error,this.complete))},t}(),S=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=x,i._tapError=x,i._tapComplete=x,i._tapError=r||x,i._tapComplete=o||x,s(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||x,i._tapError=n.error||x,i._tapComplete=n.complete||x),i}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(y),k=function(){function t(){this.changes=new i.BehaviorSubject({rtl:void 0})}return t.prototype.notify=function(t){this.changes.next({rtl:t})},t.prototype.get=function(t){},t=Object(r.__decorate)([Object(o.Injectable)()],t)}(),j=function(){function t(){}return Object.defineProperty(t.prototype,"override",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.register(t),Object.keys(t).some((function(e){return!t[e].isFirstChange()}))&&this.service.notifyChanges()},t.prototype.ngOnInit=function(){var t,e=this;this.subscription=this.service.changes.pipe((t=1,function(e){return e.lift(new m(t))})).subscribe((function(){return e.register(e)}))},t.prototype.register=function(t){var e=this;Object.keys(t).forEach((function(t){return e.service.register(t,e[t],e.override)}))},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t}(),I=new o.InjectionToken("Kendo UI Right-to-Left token"),L=new o.InjectionToken("Localization key prefix"),w=function(){function t(t,e,n){var r,o,s,a,u,c=this;this.prefix=t,this.messageService=e,this._rtl=n,this.changes=new i.BehaviorSubject({rtl:this._rtl}),this.dictionary={},e&&(this.subscription=e.changes.pipe((a=function(t){var e=t.rtl;return void 0!==e?e:c._rtl},function(t){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new E(a,u))}),(r=function(t){return c._rtl=t},function(t){return t.lift(new C(r,o,s))})).subscribe((function(t){c.dictionary={},c.changes.next({rtl:t})})))}return Object.defineProperty(t.prototype,"rtl",{get:function(){return this._rtl},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.get=function(t){var e=this.key(t);return this.dictionary[e]},t.prototype.register=function(t,e,n){void 0===n&&(n=!1);var r=this.key(t),o=e;if(!n){if(this.dictionary.hasOwnProperty(r))return;o=this.defaultValue(r,e)}this.dictionary[r]=o},t.prototype.notifyChanges=function(){this.changes.next({rtl:this.rtl})},t.prototype.key=function(t){return this.prefix+"."+t},t.prototype.defaultValue=function(t,e){if(!this.messageService)return e;var n=this.messageService.get(t);return void 0===n?e:n},t=Object(r.__decorate)([Object(o.Injectable)(),Object(r.__param)(0,Object(o.Inject)(L)),Object(r.__param)(1,Object(o.Optional)()),Object(r.__param)(2,Object(o.Optional)()),Object(r.__param)(2,Object(o.Inject)(I)),Object(r.__metadata)("design:paramtypes",[String,k,Boolean])],t)}()},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),i=n(1),s=n(5),a=function(){function t(t,e,n){var r=this;this.label=t,this.renderer=e,this.zone=n,this.labelClass=!0,this.handleClick=function(){var t=r.getFocusableComponent();t&&(o.isUploadComponent(t)&&t.fileSelect.nativeElement.click(),t.focus&&t.focus())}}return Object.defineProperty(t.prototype,"labelFor",{get:function(){if("string"==typeof this.for)return this.for;if(!s.isDocumentAvailable())return null;var t=this.getFocusableComponent()||{};return o.isInputElement(t)&&!o.inputElementHasAttr(t,"id")&&this.renderer.setAttribute(t,"id","k-"+s.guid()),t.focusableId||t.id||null},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setAriaLabelledby(),this.zone.runOutsideAngular((function(){return t.clickListener=t.renderer.listen(t.label.nativeElement,"click",t.handleClick)}))},t.prototype.ngOnDestroy=function(){this.clickListener&&this.clickListener()},t.prototype.setAriaLabelledby=function(){if(s.isDocumentAvailable()){var t=this.getFocusableComponent();if(t&&t.focusableId){var e=o.getRootElement(this.label.nativeElement).querySelector("#"+t.focusableId);if(!e)return;var n=this.label.nativeElement,r=n.id||"k-"+s.guid();n.getAttribute("id")||this.renderer.setAttribute(n,"id",r),this.renderer.setAttribute(e,"aria-labelledby",r)}}},t.prototype.getFocusableComponent=function(){var t=this.for;return t&&void 0!==t.focus?t:null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([i.HostBinding("attr.for"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],t.prototype,"labelFor",null),r.__decorate([i.HostBinding("class.k-label"),r.__metadata("design:type",Boolean)],t.prototype,"labelClass",void 0),t=r.__decorate([i.Directive({selector:"label[for]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,i.NgZone])],t)}();e.LabelDirective=a},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUploadComponent=function(t){return t.wrapper&&("KENDO-UPLOAD"===t.wrapper.tagName||"KENDO-FILESELECT"===t.wrapper.tagName)},e.isInputElement=function(t){return t instanceof HTMLElement},e.inputElementHasAttr=function(t,e){return t.hasAttribute(e)},e.getWrappedNativeInput=function(t){return t.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select")},e.getRootElement=function(t){if(!t)return null;for(var e=t;e.parentElement;)e=e.parentElement;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(18),s=n(9),a=[i.LocalizedMessagesDirective,s.CustomMessagesComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:[a],exports:[a]})],t)}();e.SharedDirectivesModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"optional",void 0),e}(n(2).ComponentMessages);e.Messages=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=r.__decorate([o.Component({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"kendo-label-messages, kendo-floatinglabel-messages",template:""}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=a},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(10),s=n(7),a=[n(12).FloatingLabelComponent],u=function(){function t(){}return t=r.__decorate([o.NgModule({declarations:a.slice(),exports:a.concat([s.SharedDirectivesModule]),imports:[i.CommonModule,s.SharedDirectivesModule]})],t)}();e.FloatingLabelModule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(19),a=n(5),u=n(13),c=n(14),l=n(20),p=function(t){return"[object Function]"===Object.prototype.toString.call(t)},d=function(){function t(t,e,n,r){this.elementRef=t,this.renderer=e,this.changeDetectorRef=n,this.localization=r,this.hostClasses=!0,this.positionChange=new o.EventEmitter,this.focused=!1,this.empty=!0,this.invalid=!1,this.labelId="k-"+a.guid(),this.autoFillStarted=!1,u.validatePackage(c.packageMetadata),this.direction=r.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(t.prototype,"labelPosition",{get:function(){return this.empty?this.focused?"Out":"In":"Out"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validateSetup();var t=new l.FloatingLabelInputAdapter(this.kendoInput||this.formControl.valueAccessor,this.formControl);this.addHandlers(t),this.setLabelFor(t)},t.prototype.ngAfterViewInit=function(){this.kendoInput&&this.setAriaLabelledby(this.kendoInput)},t.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},t.prototype.subscribe=function(t,e,n){if(t[e]instanceof o.EventEmitter){var r=t[e].subscribe(n);this.subscription?this.subscription.add(r):this.subscription=r}},t.prototype.updateState=function(){var t=function(t){return 0!==t&&!1!==t&&(!(!Array.isArray(t)||t.length)||!t)},e=this.formControl;if(e){var n=e.valueAccessor;p(n.isEmpty)?this.empty=n.isEmpty():this.empty=t(e.value),this.invalid=e.invalid&&(e.touched||e.dirty)}else this.empty=p(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():t(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},t.prototype.setAriaLabelledby=function(t){var e=t.focusableId||t.id;if(e){var n=this.elementRef.nativeElement.querySelector("#"+e);this.renderer.setAttribute(n,"aria-labelledby",this.labelId)}},t.prototype.setLabelFor=function(t){var e=t.focusableId||t.id;if(this.id&&e)this.id=e;else if(this.id)t.focusableId=this.id;else if(e)this.id=e;else{var n="k-"+a.guid();t.focusableId=n,this.id=n}},t.prototype.handleAutofill=function(t){var e=this;this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}))},t.prototype.addHandlers=function(t){var e=this,n=function(t){return function(){e.focused=t,e.updateState(),e.empty&&a.hasObservers(e.positionChange)&&e.positionChange.emit(t?"Out":"In")}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.handleAutofill(t);var r=function(){return e.updateState()};r(),this.subscribe(t,"onValueChange",r)},t.prototype.validateSetup=function(){if(this.formControl||this.kendoInput);else if(o.isDevMode())throw new Error("The FloatingLabelComponent requires a Kendo Input component or a forms-bound component to function properly.")},r.__decorate([o.HostBinding("class.k-floating-label-container"),r.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),r.__decorate([o.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"focusedClass",null),r.__decorate([o.HostBinding("class.k-state-invalid"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"invalidClass",null),r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"labelCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"id",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"positionChange",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!1}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),r.__decorate([o.ContentChild(s.NgControl,{static:!1}),r.__metadata("design:type",s.NgControl)],t.prototype,"formControl",void 0),t=r.__decorate([o.Component({selector:"kendo-floatinglabel",exportAs:"kendoFloatingLabel",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.floatinglabel"}],template:'\n <ng-container kendoFloatingLabelLocalizedMessages\n i18n-optional="kendo.floatinglabel.optional|The text for the optional segment of a FloatingLabel component"\n optional="Optional"\n >\n </ng-container>\n <ng-content></ng-content>\n <label *ngIf="text" [ngClass]="labelCssClass" [ngStyle]="labelCssStyle" [for]="id" [attr.id]="labelId" class="k-label">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n '}),r.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef,i.LocalizationService])],t)}();e.FloatingLabelComponent=d},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219058,version:"",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"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3),s=n(2),a=n(5),u=n(13),c=n(14),l=n(4),p=n(6),d=function(){function t(t,e,n){this.elementRef=t,this.renderer=e,this.localization=n,this.subscriptions=new i.Subscription,u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return t.prototype.ngAfterContentInit=function(){if(this.for)this.control=this.for;else{var t=p.getWrappedNativeInput(this.elementRef.nativeElement);if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id","k-"+a.guid()),void(this.control=t);this.control=this.kendoInput}},t.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"})))},t.prototype.ngAfterViewInit=function(){this.labelDirective.setAriaLabelledby()},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(t){return this.localization.get(t)},r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String)],t.prototype,"direction",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],t.prototype,"text",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"for",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],t.prototype,"optional",void 0),r.__decorate([o.ViewChild(l.LabelDirective,{static:!0}),r.__metadata("design:type",l.LabelDirective)],t.prototype,"labelDirective",void 0),r.__decorate([o.ContentChild(a.KendoInput,{static:!0}),r.__metadata("design:type",Object)],t.prototype,"kendoInput",void 0),t=r.__decorate([o.Component({selector:"kendo-label",exportAs:"kendoLabel",providers:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.label"}],template:'\n <ng-container kendoLabelLocalizedMessages\n i18n-optional="kendo.label.optional|The text for the optional segment of a Label component"\n optional="Optional"\n >\n </ng-container>\n <label\n [for]="control"\n [class.k-label-empty]="!text">\n {{ text }}<span *ngIf="optional" class="k-label-optional">({{textFor(\'optional\')}})</span>\n </label>\n <ng-content></ng-content>\n '}),r.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,s.LocalizationService])],t)}();e.LabelComponent=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.LabelDirective=r.LabelDirective;var o=n(17);e.LabelModule=o.LabelModule;var i=n(11);e.FloatingLabelModule=i.FloatingLabelModule;var s=n(12);e.FloatingLabelComponent=s.FloatingLabelComponent;var a=n(15);e.LabelComponent=a.LabelComponent;var u=n(9);e.CustomMessagesComponent=u.CustomMessagesComponent},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(7),i=n(10),s=n(1),a=n(11),u=n(4),c=n(15),l=[u.LabelDirective,c.LabelComponent],p=function(){function t(){}return t=r.__decorate([s.NgModule({imports:[i.CommonModule,o.SharedDirectivesModule],declarations:l.slice(),exports:l.concat([a.FloatingLabelModule,o.SharedDirectivesModule])})],t)}();e.LabelModule=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(2),s=n(8),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return r.__extends(e,t),n=e,e=n=r.__decorate([o.Directive({providers:[{provide:s.Messages,useExisting:o.forwardRef((function(){return n}))}],selector:"\n [kendoLabelLocalizedMessages],\n [kendoFloatingLabelLocalizedMessages]\n "}),r.__metadata("design:paramtypes",[i.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=a},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),o=n(1),i=function(){function t(t,e){this.component=t;var n=function(t){return t instanceof r.Observable||t instanceof o.EventEmitter};n(t.onFocus)&&(this.onFocus=t.onFocus),n(t.autoFillStart)&&(this.autoFillStart=t.autoFillStart),n(t.autoFillEnd)&&(this.autoFillEnd=t.autoFillEnd),n(t.onBlur)&&(this.onBlur=t.onBlur),e?this.onValueChange=e.valueChanges:t.onValueChange&&(this.onValueChange=t.onValueChange)}return Object.defineProperty(t.prototype,"focusableId",{get:function(){var t=this.component;return"focusableId"in t?t.focusableId:"id"in t?t.id:""},set:function(t){var e=this.component;"focusableId"in e?e.focusableId=t:"id"in e&&(e.id=t)},enumerable:!0,configurable:!0}),t}();e.FloatingLabelInputAdapter=i}])}));
@@ -1,58 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Observable } from 'rxjs';
6
- import { EventEmitter } from '@angular/core';
7
- /**
8
- * @hidden
9
- */
10
- var FloatingLabelInputAdapter = /** @class */ (function () {
11
- function FloatingLabelInputAdapter(component, formControl) {
12
- this.component = component;
13
- var isObservableOrEventEmitter = function (event) { return event instanceof Observable || event instanceof EventEmitter; };
14
- if (isObservableOrEventEmitter(component.onFocus)) {
15
- this.onFocus = component.onFocus;
16
- }
17
- if (isObservableOrEventEmitter(component.autoFillStart)) {
18
- this.autoFillStart = component.autoFillStart;
19
- }
20
- if (isObservableOrEventEmitter(component.autoFillEnd)) {
21
- this.autoFillEnd = component.autoFillEnd;
22
- }
23
- if (isObservableOrEventEmitter(component.onBlur)) {
24
- this.onBlur = component.onBlur;
25
- }
26
- if (formControl) {
27
- this.onValueChange = formControl.valueChanges;
28
- }
29
- else if (component.onValueChange) {
30
- this.onValueChange = component.onValueChange;
31
- }
32
- }
33
- Object.defineProperty(FloatingLabelInputAdapter.prototype, "focusableId", {
34
- get: function () {
35
- var component = this.component;
36
- if ('focusableId' in component) {
37
- return component.focusableId;
38
- }
39
- else if ('id' in component) {
40
- return component.id;
41
- }
42
- return "";
43
- },
44
- set: function (value) {
45
- var component = this.component;
46
- if ('focusableId' in component) {
47
- component.focusableId = value;
48
- }
49
- else if ('id' in component) {
50
- component.id = value;
51
- }
52
- },
53
- enumerable: true,
54
- configurable: true
55
- });
56
- return FloatingLabelInputAdapter;
57
- }());
58
- export { FloatingLabelInputAdapter };