@anglr/common 22.2.0 → 23.0.0-beta.20250825083507

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 (147) hide show
  1. package/changelog.md +23 -0
  2. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
  3. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +6 -21
  4. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
  5. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +3 -3
  6. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +3 -3
  7. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  8. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -3
  9. package/es2022/forms/src/directives/hasError/hasError.directive.js +3 -3
  10. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  11. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  12. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  13. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  14. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  15. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -3
  16. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +4 -5
  17. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
  18. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +3 -3
  19. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -3
  20. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js +4 -4
  21. package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  22. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  23. package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  24. package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  25. package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  26. package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  27. package/es2022/forms/src/modules/hasError.module.js +4 -4
  28. package/es2022/forms/src/modules/numberInput.module.js +4 -4
  29. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  30. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  31. package/es2022/forms/src/services/submitted/submitted.service.js +3 -3
  32. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  33. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +3 -3
  34. package/es2022/hotkeys/src/services/appHotkeys.service.js +3 -3
  35. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -3
  36. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
  37. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -1
  38. package/es2022/material/src/components/titledDialog/titledDialog.component.js +3 -3
  39. package/es2022/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  40. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -3
  41. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  42. package/es2022/material/src/modules/confirmationDialog.module.js +4 -4
  43. package/es2022/material/src/modules/debugDataCopyClick.module.js +4 -4
  44. package/es2022/material/src/modules/movableTitledDialog.module.js +4 -4
  45. package/es2022/material/src/modules/titledDialog.module.js +4 -4
  46. package/es2022/material/src/services/titledDialog/titledDialog.service.js +3 -3
  47. package/es2022/router/src/services/routing/dataRouter.js +3 -3
  48. package/es2022/router/src/services/routing/dataRouterData.js +3 -3
  49. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +3 -3
  50. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +3 -3
  51. package/es2022/src/directives/bodyRender/bodyRender.directive.js +3 -3
  52. package/es2022/src/directives/clickOutside/clickOutside.directive.js +3 -3
  53. package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js +3 -3
  54. package/es2022/src/directives/goBack/goBack.directive.js +3 -3
  55. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  56. package/es2022/src/directives/positionTo/positionTo.directive.js +3 -3
  57. package/es2022/src/modules/castPipes/modules/castPipes.module.js +4 -4
  58. package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  59. package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  60. package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  61. package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  62. package/es2022/src/modules/commonDynamic.module.js +4 -4
  63. package/es2022/src/modules/commonLocalize.module.js +4 -4
  64. package/es2022/src/modules/commonUtils.module.js +4 -4
  65. package/es2022/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  66. package/es2022/src/modules/debugData/modules/debugData.module.js +4 -4
  67. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +4 -4
  68. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js.map +1 -1
  69. package/es2022/src/modules/file/components/file/file.component.js +15 -15
  70. package/es2022/src/modules/file/components/file/file.component.js.map +1 -1
  71. package/es2022/src/modules/file/components/fileInput/fileInput.component.js +9 -9
  72. package/es2022/src/modules/file/components/fileInput/fileInput.component.js.map +1 -1
  73. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js +9 -9
  74. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js.map +1 -1
  75. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js +7 -7
  76. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js.map +1 -1
  77. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js +3 -3
  78. package/es2022/src/modules/file/modules/file.module.js +4 -4
  79. package/es2022/src/modules/logger/components/console/console.component.js +7 -4
  80. package/es2022/src/modules/logger/components/console/console.component.js.map +1 -1
  81. package/es2022/src/modules/logger/components/index.js +0 -1
  82. package/es2022/src/modules/logger/components/index.js.map +1 -1
  83. package/es2022/src/modules/logger/services/console/consoleComponent.service.js +3 -3
  84. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +3 -3
  85. package/es2022/src/modules/logger/services/logger/logger.service.js +3 -3
  86. package/es2022/src/modules/logger/services/rest/restSink.options.js +3 -3
  87. package/es2022/src/modules/logger/types/loggerOptions.js +3 -3
  88. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  89. package/es2022/src/modules/multiButton/modules/multiButton.module.js +4 -4
  90. package/es2022/src/modules/progressIndicator/components/index.js.map +1 -1
  91. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  92. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  93. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +3 -3
  94. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  95. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  96. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +7 -4
  97. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
  98. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +14 -28
  99. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  100. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  101. package/es2022/src/modules/tooltip/misc/tooltip.interface.js.map +1 -1
  102. package/es2022/src/modules/tooltip/modules/tooltip.module.js +4 -4
  103. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +3 -3
  104. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +3 -3
  105. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +3 -3
  106. package/es2022/src/pipes/isNaN/isNaN.pipe.js +3 -3
  107. package/es2022/src/pipes/isPresent/isPresent.pipe.js +3 -3
  108. package/es2022/src/pipes/keys/keys.pipe.js +3 -3
  109. package/es2022/src/pipes/localize/localize.pipe.js +3 -3
  110. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  111. package/es2022/src/pipes/numeral/numeral.pipe.js +3 -3
  112. package/es2022/src/pipes/trimText/trimText.pipe.js +3 -3
  113. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  114. package/es2022/src/services/cookies/cookies.service.js +3 -3
  115. package/es2022/src/services/notifications/defaultNotifications.service.js +3 -3
  116. package/es2022/src/services/notifications/defaultNotifications.service.js.map +1 -1
  117. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  118. package/es2022/src/services/statusCode/statusCode.service.js +3 -3
  119. package/es2022/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  120. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  121. package/es2022/src/utils/index.js.map +1 -1
  122. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  123. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  124. package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.d.ts +0 -4
  125. package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.d.ts.map +1 -1
  126. package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.html +1 -1
  127. package/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.d.ts.map +1 -1
  128. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts.map +1 -1
  129. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.html +1 -1
  130. package/package.json +28 -32
  131. package/router/src/decorators/moduleRoutes.decorator.d.ts.map +1 -1
  132. package/src/directives/clickOutside/clickOutside.directive.d.ts.map +1 -1
  133. package/src/directives/ellipsisTooltip/ellipsisTooltip.directive.d.ts.map +1 -1
  134. package/src/modules/logger/components/console/console.component.d.ts.map +1 -1
  135. package/src/modules/logger/components/index.d.ts +0 -1
  136. package/src/modules/logger/components/index.d.ts.map +1 -1
  137. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +8 -0
  138. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -1
  139. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts +2 -12
  140. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -1
  141. package/src/modules/tooltip/misc/tooltip.interface.d.ts +12 -5
  142. package/src/modules/tooltip/misc/tooltip.interface.d.ts.map +1 -1
  143. package/version.bak +1 -1
  144. package/es2022/src/modules/logger/components/console/console.component.animations.js +0 -31
  145. package/es2022/src/modules/logger/components/console/console.component.animations.js.map +0 -1
  146. package/src/modules/logger/components/console/console.component.animations.d.ts +0 -5
  147. package/src/modules/logger/components/console/console.component.animations.d.ts.map +0 -1
package/changelog.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 23.0.0 (2025-08-25)
4
+
5
+ ### Features
6
+
7
+ - existing animations refactored to css animations
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ - new optional dependency `@css-styles/themes` containing css animations
12
+ - minimal supported version of `@angular` packages is `22.2.0`
13
+ - removed dependency on deprecated `@angular/animations`
14
+ - removed dependency on `@anglr/animations`
15
+ - removed `consoleAnimationTrigger` replaced with new animations API
16
+ - all animations in package reworked to new animations API
17
+ - updated `TooltipRenderer` interface
18
+ - **new properties**
19
+ - `enterAnimation` css class used to animate tooltip component when it is displayed
20
+ - `exitAnimation` css class used to animate tooltip component when it is hidden
21
+ - updated `TooltipOptions` interface
22
+ - **properties**
23
+ - `enterAnimation` updated type to `string`
24
+ - `exitAnimation` updated type to `string`
25
+
3
26
  ## Version 22.2.0 (2025-03-31)
4
27
 
5
28
  ### Features
@@ -233,14 +233,14 @@ let FloatingUiDomPosition = class FloatingUiDomPosition {
233
233
  }
234
234
  }
235
235
  }
236
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FloatingUiDomPosition, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
237
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FloatingUiDomPosition }); }
236
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FloatingUiDomPosition, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
237
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FloatingUiDomPosition }); }
238
238
  };
239
239
  FloatingUiDomPosition = __decorate([
240
240
  TypeProvider({ provide: POSITION, useClass: forwardRef(() => FloatingUiDomPosition) })
241
241
  ], FloatingUiDomPosition);
242
242
  export { FloatingUiDomPosition };
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FloatingUiDomPosition, decorators: [{
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FloatingUiDomPosition, decorators: [{
244
244
  type: Injectable
245
245
  }] });
246
246
  //# sourceMappingURL=floatingUiDomPosition.service.js.map
@@ -1,6 +1,5 @@
1
- import { Component, ChangeDetectionStrategy, ChangeDetectorRef, HostBinding } from '@angular/core';
1
+ import { Component, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
2
2
  import { NgClass } from '@angular/common';
3
- import { slideInOutTrigger, animateChildrenTrigger } from '@anglr/animations';
4
3
  import * as i0 from "@angular/core";
5
4
  /**
6
5
  * Default validation errors component, displaying validation errors
@@ -9,11 +8,6 @@ export class DefaultValidationErrorsComponent {
9
8
  //######################### constructor #########################
10
9
  constructor(_changeDetector) {
11
10
  this._changeDetector = _changeDetector;
12
- //######################### public properties - host #########################
13
- /**
14
- * Enables leave animations for internal stuff
15
- */
16
- this.animate = true;
17
11
  }
18
12
  //######################### public methods - implementation of ValidationErrorsComponent #########################
19
13
  /**
@@ -24,22 +18,13 @@ export class DefaultValidationErrorsComponent {
24
18
  this.options = options;
25
19
  this._changeDetector.detectChanges();
26
20
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultValidationErrorsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.0", type: DefaultValidationErrorsComponent, isStandalone: true, selector: "default-validation-errors", host: { properties: { "@animateChildren": "this.animate" } }, ngImport: i0, template: "@if(errors?.errorMessages?.length)\n{\n <div [ngClass]=\"options?.wrapperDivClass\" @slideInOut>\n @for(error of errors?.errorMessages; track error)\n {\n <div>{{error}}</div>\n }\n </div>\n}", styles: [":host\n{\n display: contents;\n}"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
29
- slideInOutTrigger,
30
- animateChildrenTrigger
31
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DefaultValidationErrorsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0", type: DefaultValidationErrorsComponent, isStandalone: true, selector: "default-validation-errors", ngImport: i0, template: "@if(errors?.errorMessages?.length)\n{\n <div [ngClass]=\"options?.wrapperDivClass\" animate.enter=\"slide-in\" animate.leave=\"slide-out\">\n @for(error of errors?.errorMessages; track error)\n {\n <div>{{error}}</div>\n }\n </div>\n}", styles: [":host\n{\n display: contents;\n}"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
32
23
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultValidationErrorsComponent, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DefaultValidationErrorsComponent, decorators: [{
34
25
  type: Component,
35
26
  args: [{ selector: 'default-validation-errors', imports: [
36
27
  NgClass,
37
- ], animations: [
38
- slideInOutTrigger,
39
- animateChildrenTrigger
40
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if(errors?.errorMessages?.length)\n{\n <div [ngClass]=\"options?.wrapperDivClass\" @slideInOut>\n @for(error of errors?.errorMessages; track error)\n {\n <div>{{error}}</div>\n }\n </div>\n}", styles: [":host\n{\n display: contents;\n}"] }]
41
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { animate: [{
42
- type: HostBinding,
43
- args: ['@animateChildren']
44
- }] } });
28
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if(errors?.errorMessages?.length)\n{\n <div [ngClass]=\"options?.wrapperDivClass\" animate.enter=\"slide-in\" animate.leave=\"slide-out\">\n @for(error of errors?.errorMessages; track error)\n {\n <div>{{error}}</div>\n }\n </div>\n}", styles: [":host\n{\n display: contents;\n}"] }]
29
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] });
45
30
  //# sourceMappingURL=defaultValidationErrors.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultValidationErrors.component.js","sourceRoot":"","sources":["../../../../../forms/src/components/defaultValidationErrors/defaultValidationErrors.component.ts","../../../../../forms/src/components/defaultValidationErrors/defaultValidationErrors.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACjG,OAAO,EAAC,OAAO,EAAC,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAE,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;;AAK5E;;GAEG;AAiBH,MAAM,OAAO,gCAAgC;IAwBzC,iEAAiE;IACjE,YAAsB,eAAkC;QAAlC,oBAAe,GAAf,eAAe,CAAmB;QATxD,8EAA8E;QAE9E;;WAEG;QAEI,YAAO,GAAY,IAAI,CAAC;IAK/B,CAAC;IAED,kHAAkH;IAElH;;OAEG;IACI,IAAI,CAAC,MAA8B,EAAE,OAAgC;QAExE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;8GAxCQ,gCAAgC;kGAAhC,gCAAgC,mJC1B7C,uOAQC,6FDSO,OAAO,sEAGX;YACI,iBAAiB;YACjB,sBAAsB;SACzB;;2FAGQ,gCAAgC;kBAhB5C,SAAS;+BAEI,2BAA2B,WAIrC;wBACI,OAAO;qBACV,cAED;wBACI,iBAAiB;wBACjB,sBAAsB;qBACzB,mBACgB,uBAAuB,CAAC,MAAM;sFAwBxC,OAAO;sBADb,WAAW;uBAAC,kBAAkB","sourcesContent":["import {Component, ChangeDetectionStrategy, ChangeDetectorRef, HostBinding} from '@angular/core';\nimport {NgClass} from '@angular/common';\nimport {slideInOutTrigger, animateChildrenTrigger} from '@anglr/animations';\n\nimport {ValidationErrorsResult} from '../../services/errorMessagesExtractor/errorMessagesExtractor.interface';\nimport {ValidationErrorsComponent, ValidationErrorsOptions} from '../../services/validationErrorRenderer/validationErrorRenderer.interface';\n\n/**\n * Default validation errors component, displaying validation errors\n */\n@Component(\n{\n selector: 'default-validation-errors',\n templateUrl: 'defaultValidationErrors.component.html',\n styleUrl: 'defaultValidationErrors.component.css',\n imports:\n [\n NgClass,\n ],\n animations: \n [\n slideInOutTrigger,\n animateChildrenTrigger\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DefaultValidationErrorsComponent implements ValidationErrorsComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Errors to be shown\n * @internal\n */\n public errors: ValidationErrorsResult;\n \n /**\n * Options used for displaying validation errors\n * @internal\n */\n public options: ValidationErrorsOptions;\n\n //######################### public properties - host #########################\n\n /**\n * Enables leave animations for internal stuff\n */\n @HostBinding('@animateChildren')\n public animate: boolean = true;\n\n //######################### constructor #########################\n constructor(protected _changeDetector: ChangeDetectorRef)\n {\n }\n\n //######################### public methods - implementation of ValidationErrorsComponent #########################\n\n /**\n * @inheritdoc\n */\n public show(errors: ValidationErrorsResult, options: ValidationErrorsOptions): void\n {\n this.errors = errors;\n this.options = options;\n\n this._changeDetector.detectChanges();\n }\n}","@if(errors?.errorMessages?.length)\n{\n <div [ngClass]=\"options?.wrapperDivClass\" @slideInOut>\n @for(error of errors?.errorMessages; track error)\n {\n <div>{{error}}</div>\n }\n </div>\n}"]}
1
+ {"version":3,"file":"defaultValidationErrors.component.js","sourceRoot":"","sources":["../../../../../forms/src/components/defaultValidationErrors/defaultValidationErrors.component.ts","../../../../../forms/src/components/defaultValidationErrors/defaultValidationErrors.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AACpF,OAAO,EAAC,OAAO,EAAC,MAAM,iBAAiB,CAAC;;AAKxC;;GAEG;AAYH,MAAM,OAAO,gCAAgC;IAgBzC,iEAAiE;IACjE,YAAsB,eAAkC;QAAlC,oBAAe,GAAf,eAAe,CAAmB;IAExD,CAAC;IAED,kHAAkH;IAElH;;OAEG;IACI,IAAI,CAAC,MAA8B,EAAE,OAAgC;QAExE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;8GAhCQ,gCAAgC;kGAAhC,gCAAgC,qFCpB7C,kRAQC,6FDQO,OAAO;;2FAIF,gCAAgC;kBAX5C,SAAS;+BAEI,2BAA2B,WAIrC;wBACI,OAAO;qBACV,mBACgB,uBAAuB,CAAC,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, ChangeDetectorRef} from '@angular/core';\nimport {NgClass} from '@angular/common';\n\nimport {ValidationErrorsResult} from '../../services/errorMessagesExtractor/errorMessagesExtractor.interface';\nimport {ValidationErrorsComponent, ValidationErrorsOptions} from '../../services/validationErrorRenderer/validationErrorRenderer.interface';\n\n/**\n * Default validation errors component, displaying validation errors\n */\n@Component(\n{\n selector: 'default-validation-errors',\n templateUrl: 'defaultValidationErrors.component.html',\n styleUrl: 'defaultValidationErrors.component.css',\n imports:\n [\n NgClass,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DefaultValidationErrorsComponent implements ValidationErrorsComponent\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Errors to be shown\n * @internal\n */\n public errors: ValidationErrorsResult;\n\n /**\n * Options used for displaying validation errors\n * @internal\n */\n public options: ValidationErrorsOptions;\n\n //######################### constructor #########################\n constructor(protected _changeDetector: ChangeDetectorRef)\n {\n }\n\n //######################### public methods - implementation of ValidationErrorsComponent #########################\n\n /**\n * @inheritdoc\n */\n public show(errors: ValidationErrorsResult, options: ValidationErrorsOptions): void\n {\n this.errors = errors;\n this.options = options;\n\n this._changeDetector.detectChanges();\n }\n}\n","@if(errors?.errorMessages?.length)\n{\n <div [ngClass]=\"options?.wrapperDivClass\" animate.enter=\"slide-in\" animate.leave=\"slide-out\">\n @for(error of errors?.errorMessages; track error)\n {\n <div>{{error}}</div>\n }\n </div>\n}"]}
@@ -65,10 +65,10 @@ export class DefaultValidationErrorsContainerComponent {
65
65
  this._template.detectChanges();
66
66
  }
67
67
  }
68
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultValidationErrorsContainerComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
69
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: DefaultValidationErrorsContainerComponent, isStandalone: true, selector: "default-validation-errors-container", ngImport: i0, template: '', isInline: true, styles: [":host\n{\n display: contents;\n}"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
68
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DefaultValidationErrorsContainerComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
69
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0", type: DefaultValidationErrorsContainerComponent, isStandalone: true, selector: "default-validation-errors-container", ngImport: i0, template: '', isInline: true, styles: [":host\n{\n display: contents;\n}"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
70
70
  }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: DefaultValidationErrorsContainerComponent, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: DefaultValidationErrorsContainerComponent, decorators: [{
72
72
  type: Component,
73
73
  args: [{ selector: 'default-validation-errors-container', template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host\n{\n display: contents;\n}"] }]
74
74
  }], ctorParameters: () => [{ type: i0.ViewContainerRef }] });
@@ -62,10 +62,10 @@ export class ReservedSpaceValidationErrorsContainerComponent {
62
62
  this._template.detectChanges();
63
63
  }
64
64
  }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ReservedSpaceValidationErrorsContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0", type: ReservedSpaceValidationErrorsContainerComponent, isStandalone: true, selector: "reserved-space-validation-errors-container", viewQueries: [{ propertyName: "viewContainer", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div>\n <ng-container #container/>\n</div>", styles: [":host\n{\n display: contents;\n}"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
65
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ReservedSpaceValidationErrorsContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
66
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0", type: ReservedSpaceValidationErrorsContainerComponent, isStandalone: true, selector: "reserved-space-validation-errors-container", viewQueries: [{ propertyName: "viewContainer", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<div>\n <ng-container #container/>\n</div>", styles: [":host\n{\n display: contents;\n}"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ReservedSpaceValidationErrorsContainerComponent, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ReservedSpaceValidationErrorsContainerComponent, decorators: [{
69
69
  type: Component,
70
70
  args: [{ selector: 'reserved-space-validation-errors-container', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>\n <ng-container #container/>\n</div>", styles: [":host\n{\n display: contents;\n}"] }]
71
71
  }], propDecorators: { viewContainer: [{
@@ -60,10 +60,10 @@ export class GroupHasErrorDirective {
60
60
  this._element.nativeElement.classList.remove(this._options.cssClass);
61
61
  }
62
62
  }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupHasErrorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
64
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: GroupHasErrorDirective, isStandalone: true, selector: "[groupHasError]", ngImport: i0 }); }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupHasErrorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
64
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: GroupHasErrorDirective, isStandalone: true, selector: "[groupHasError]", ngImport: i0 }); }
65
65
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupHasErrorDirective, decorators: [{
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupHasErrorDirective, decorators: [{
67
67
  type: Directive,
68
68
  args: [{
69
69
  selector: '[groupHasError]',
@@ -6,8 +6,8 @@ import * as i0 from "@angular/core";
6
6
  * Directive that is attached to parent element of inputs group and handles css class that is added to this element and registers provider for ValidationErrorsContainerView
7
7
  */
8
8
  export class GroupHasErrorContainerDirective extends GroupHasErrorDirective {
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupHasErrorContainerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
10
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: GroupHasErrorContainerDirective, isStandalone: true, selector: "[groupHasErrorContainer]", providers: [
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupHasErrorContainerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
10
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: GroupHasErrorContainerDirective, isStandalone: true, selector: "[groupHasErrorContainer]", providers: [
11
11
  {
12
12
  provide: GroupHasErrorDirective,
13
13
  useExisting: GroupHasErrorContainerDirective
@@ -15,7 +15,7 @@ export class GroupHasErrorContainerDirective extends GroupHasErrorDirective {
15
15
  ValidationErrorsContainerView
16
16
  ], usesInheritance: true, ngImport: i0 }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupHasErrorContainerDirective, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupHasErrorContainerDirective, decorators: [{
19
19
  type: Directive,
20
20
  args: [{
21
21
  selector: '[groupHasErrorContainer]',
@@ -140,8 +140,8 @@ export class HasErrorDirective {
140
140
  falseAction();
141
141
  }
142
142
  }
143
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HasErrorDirective, deps: [{ token: i1.ValidationErrorRendererFactory }, { token: i0.ViewContainerRef }, { token: i2.GroupHasErrorDirective, optional: true, skipSelf: true }, { token: i3.FormControlDirective, optional: true }, { token: i3.FormControlName, optional: true }, { token: i3.NgModel, optional: true }, { token: i4.SubmittedService, optional: true }, { token: i5.ValidationErrorsContainerView, optional: true }, { token: STRING_LOCALIZATION }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }
144
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: HasErrorDirective, isStandalone: true, selector: "[hasError][formControlName],[hasError][formControl],[hasError][ngModel]", inputs: { errorMessages: "errorMessages", errorsComponent: "errorsComponent", errorsTemplate: "errorsTemplate" }, ngImport: i0 }); }
143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: HasErrorDirective, deps: [{ token: i1.ValidationErrorRendererFactory }, { token: i0.ViewContainerRef }, { token: i2.GroupHasErrorDirective, optional: true, skipSelf: true }, { token: i3.FormControlDirective, optional: true }, { token: i3.FormControlName, optional: true }, { token: i3.NgModel, optional: true }, { token: i4.SubmittedService, optional: true }, { token: i5.ValidationErrorsContainerView, optional: true }, { token: STRING_LOCALIZATION }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }
144
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: HasErrorDirective, isStandalone: true, selector: "[hasError][formControlName],[hasError][formControl],[hasError][ngModel]", inputs: { errorMessages: "errorMessages", errorsComponent: "errorsComponent", errorsTemplate: "errorsTemplate" }, ngImport: i0 }); }
145
145
  }
146
146
  __decorate([
147
147
  BindThis,
@@ -149,7 +149,7 @@ __decorate([
149
149
  __metadata("design:paramtypes", [Function, Function, Boolean]),
150
150
  __metadata("design:returntype", void 0)
151
151
  ], HasErrorDirective.prototype, "isSubmittedOrDirty", null);
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HasErrorDirective, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: HasErrorDirective, decorators: [{
153
153
  type: Directive,
154
154
  args: [{
155
155
  selector: '[hasError][formControlName],[hasError][formControl],[hasError][ngModel]',
@@ -46,10 +46,10 @@ export class MaxValueNumberValidatorDirective {
46
46
  validate(control) {
47
47
  return this._validator(control);
48
48
  }
49
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MaxValueNumberValidatorDirective, deps: [{ token: 'maxValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
50
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: MaxValueNumberValidatorDirective, isStandalone: true, selector: "input[number][maxValue][formControlName],input[number][maxValue][formControl],input[number][maxValue][ngModel]", inputs: { maxValue: "maxValue" }, providers: [MAX_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 }); }
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MaxValueNumberValidatorDirective, deps: [{ token: 'maxValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
50
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: MaxValueNumberValidatorDirective, isStandalone: true, selector: "input[number][maxValue][formControlName],input[number][maxValue][formControl],input[number][maxValue][ngModel]", inputs: { maxValue: "maxValue" }, providers: [MAX_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 }); }
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MaxValueNumberValidatorDirective, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MaxValueNumberValidatorDirective, decorators: [{
53
53
  type: Directive,
54
54
  args: [{
55
55
  selector: 'input[number][maxValue][formControlName],input[number][maxValue][formControl],input[number][maxValue][ngModel]',
@@ -46,10 +46,10 @@ export class MinValueNumberValidatorDirective {
46
46
  validate(control) {
47
47
  return this._validator(control);
48
48
  }
49
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MinValueNumberValidatorDirective, deps: [{ token: 'minValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
50
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: MinValueNumberValidatorDirective, isStandalone: true, selector: "input[number][minValue][formControlName],input[number][minValue][formControl],input[number][minValue][ngModel]", inputs: { minValue: "minValue" }, providers: [MIN_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 }); }
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MinValueNumberValidatorDirective, deps: [{ token: 'minValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
50
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: MinValueNumberValidatorDirective, isStandalone: true, selector: "input[number][minValue][formControlName],input[number][minValue][formControl],input[number][minValue][ngModel]", inputs: { minValue: "minValue" }, providers: [MIN_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 }); }
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: MinValueNumberValidatorDirective, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: MinValueNumberValidatorDirective, decorators: [{
53
53
  type: Directive,
54
54
  args: [{
55
55
  selector: 'input[number][minValue][formControlName],input[number][minValue][formControl],input[number][minValue][ngModel]',
@@ -66,10 +66,10 @@ export class NumberInputControlValueAccessor {
66
66
  setDisabledState(isDisabled) {
67
67
  this.disabled = isDisabled;
68
68
  }
69
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NumberInputControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
70
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: NumberInputControlValueAccessor, isStandalone: true, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "input": "onChange($event.target.value)", "blur": "onTouched()" }, properties: { "disabled": "disabled" } }, providers: [NUMBER_INPUT_VALUE_ACCESSOR], ngImport: i0 }); }
69
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NumberInputControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
70
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: NumberInputControlValueAccessor, isStandalone: true, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "input": "onChange($event.target.value)", "blur": "onTouched()" }, properties: { "disabled": "disabled" } }, providers: [NUMBER_INPUT_VALUE_ACCESSOR], ngImport: i0 }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NumberInputControlValueAccessor, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NumberInputControlValueAccessor, decorators: [{
73
73
  type: Directive,
74
74
  args: [{
75
75
  selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',
@@ -23,10 +23,10 @@ export class NumberInputValidatorDirective {
23
23
  validate(control) {
24
24
  return Validators.number(control);
25
25
  }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NumberInputValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
27
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: NumberInputValidatorDirective, isStandalone: true, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", providers: [NUMBER_VALIDATOR], ngImport: i0 }); }
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NumberInputValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
27
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: NumberInputValidatorDirective, isStandalone: true, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", providers: [NUMBER_VALIDATOR], ngImport: i0 }); }
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: NumberInputValidatorDirective, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: NumberInputValidatorDirective, decorators: [{
30
30
  type: Directive,
31
31
  args: [{
32
32
  selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',
@@ -44,10 +44,10 @@ export class RequiredClassDirective {
44
44
  this._renderer.removeClass(this._element.nativeElement, this.requiredClass);
45
45
  }
46
46
  }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RequiredClassDirective, deps: [{ token: i1.FormControlDirective, optional: true }, { token: i1.FormControlName, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
48
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0", type: RequiredClassDirective, isStandalone: true, selector: "[requiredClass][formControlName],[requiredClass][formControl]", inputs: { requiredClass: ["requiredClass", "requiredClass", requiredClassTransform] }, ngImport: i0 }); }
47
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: RequiredClassDirective, deps: [{ token: i1.FormControlDirective, optional: true }, { token: i1.FormControlName, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
48
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.2.0", type: RequiredClassDirective, isStandalone: true, selector: "[requiredClass][formControlName],[requiredClass][formControl]", inputs: { requiredClass: ["requiredClass", "requiredClass", requiredClassTransform] }, ngImport: i0 }); }
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RequiredClassDirective, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: RequiredClassDirective, decorators: [{
51
51
  type: Directive,
52
52
  args: [{
53
53
  selector: '[requiredClass][formControlName],[requiredClass][formControl]',
@@ -10,10 +10,10 @@ export class ValidationErrorsContainerDirective {
10
10
  constructor(containerView, viewContainer) {
11
11
  containerView.viewContainer = viewContainer;
12
12
  }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ValidationErrorsContainerDirective, deps: [{ token: i1.ValidationErrorsContainerView, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
14
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: ValidationErrorsContainerDirective, isStandalone: true, selector: "[validationErrorsContainer]", ngImport: i0 }); }
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ValidationErrorsContainerDirective, deps: [{ token: i1.ValidationErrorsContainerView, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
14
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: ValidationErrorsContainerDirective, isStandalone: true, selector: "[validationErrorsContainer]", ngImport: i0 }); }
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ValidationErrorsContainerDirective, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ValidationErrorsContainerDirective, decorators: [{
17
17
  type: Directive,
18
18
  args: [{
19
19
  selector: '[validationErrorsContainer]',
@@ -2,7 +2,6 @@ import { Component, ChangeDetectionStrategy, Optional, ChangeDetectorRef, Input,
2
2
  import { NgClass, NgTemplateOutlet } from '@angular/common';
3
3
  import { FormGroupDirective, FormGroupName } from '@angular/forms';
4
4
  import { KeysPipe } from '@anglr/common';
5
- import { slideInOutTrigger } from '@anglr/animations';
6
5
  import { Subscription } from 'rxjs';
7
6
  import { ErrorMessageDirective, GroupErrorsTemplateDirective } from '../../directives';
8
7
  import { WithErrorMessagePipe } from '../../pipes';
@@ -53,10 +52,10 @@ export class GroupErrorsComponent {
53
52
  this._initSubscriptions?.unsubscribe();
54
53
  this._initSubscriptions = null;
55
54
  }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupErrorsComponent, deps: [{ token: i1.FormGroupDirective, optional: true }, { token: i1.FormGroupName, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
57
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.0", type: GroupErrorsComponent, isStandalone: true, selector: "form-group-errors", inputs: { cssClass: "cssClass" }, queries: [{ propertyName: "template", first: true, predicate: GroupErrorsTemplateDirective, descendants: true }], ngImport: i0, template: "<ng-template #defaultTemplate let-errorName>\n <div [ngClass]=\"cssClass\" [errorMessage]=\"errorName\" [errors]=\"formGroup.errors\" @slideInOut></div>\n</ng-template>\n\n@for(errorName of formGroup.errors | keys | withErrorMessage; track errorName)\n{\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, $first, $last, $index, errors: formGroup.errors}\"/>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: KeysPipe, name: "keys" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: WithErrorMessagePipe, name: "withErrorMessage" }, { kind: "directive", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage", "errors"], exportAs: ["errorMessage"] }], animations: [slideInOutTrigger], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
55
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupErrorsComponent, deps: [{ token: i1.FormGroupDirective, optional: true }, { token: i1.FormGroupName, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
56
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0", type: GroupErrorsComponent, isStandalone: true, selector: "form-group-errors", inputs: { cssClass: "cssClass" }, queries: [{ propertyName: "template", first: true, predicate: GroupErrorsTemplateDirective, descendants: true }], ngImport: i0, template: "<ng-template #defaultTemplate let-errorName>\n <div [ngClass]=\"cssClass\" [errorMessage]=\"errorName\" [errors]=\"formGroup.errors\" animate.enter=\"slide-in\" animate.leave=\"slide-out\"></div>\n</ng-template>\n\n@for(errorName of formGroup.errors | keys | withErrorMessage; track errorName)\n{\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, $first, $last, $index, errors: formGroup.errors}\"/>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage", "errors"], exportAs: ["errorMessage"] }, { kind: "pipe", type: KeysPipe, name: "keys" }, { kind: "pipe", type: WithErrorMessagePipe, name: "withErrorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
57
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupErrorsComponent, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupErrorsComponent, decorators: [{
60
59
  type: Component,
61
60
  args: [{ selector: 'form-group-errors', imports: [
62
61
  NgClass,
@@ -64,7 +63,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImpor
64
63
  NgTemplateOutlet,
65
64
  WithErrorMessagePipe,
66
65
  ErrorMessageDirective,
67
- ], animations: [slideInOutTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultTemplate let-errorName>\n <div [ngClass]=\"cssClass\" [errorMessage]=\"errorName\" [errors]=\"formGroup.errors\" @slideInOut></div>\n</ng-template>\n\n@for(errorName of formGroup.errors | keys | withErrorMessage; track errorName)\n{\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, $first, $last, $index, errors: formGroup.errors}\"/>\n}\n" }]
66
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultTemplate let-errorName>\n <div [ngClass]=\"cssClass\" [errorMessage]=\"errorName\" [errors]=\"formGroup.errors\" animate.enter=\"slide-in\" animate.leave=\"slide-out\"></div>\n</ng-template>\n\n@for(errorName of formGroup.errors | keys | withErrorMessage; track errorName)\n{\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, $first, $last, $index, errors: formGroup.errors}\"/>\n}\n" }]
68
67
  }], ctorParameters: () => [{ type: i1.FormGroupDirective, decorators: [{
69
68
  type: Optional
70
69
  }] }, { type: i1.FormGroupName, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"groupErrors.component.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.ts","../../../../../../../forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,QAAQ,EAAqB,iBAAiB,EAAE,KAAK,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACtI,OAAO,EAAC,OAAO,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAA+B,kBAAkB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,qBAAqB,EAAE,4BAA4B,EAAC,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;;;AAEjD;;GAEG;AAgBH,MAAM,OAAO,oBAAoB;IAmB7B,2FAA2F;IAE3F;;;OAGG;IACH,IAAW,SAAS;QAEhB,OAAO,CAAC,IAAI,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,IAAI,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;IAChG,CAAC;IAkBD,iEAAiE;IACjE,YAAkC,kBAAsC,EACtC,aAA4B,EACxC,eAAkC;QAFtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;QACxC,oBAAe,GAAf,eAAe,CAAmB;QAxCxD;;WAEG;QACO,uBAAkB,GAAiB,IAAI,YAAY,EAAE,CAAC;QAuC5D,IAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,aAAa,EAClD,CAAC;YACG,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;QAC/E,CAAC;IACL,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAEvE,IAAG,IAAI,CAAC,UAAU,IAAI,KAAK,IAAI,KAAK,IAAI,SAAS,EACjD,CAAC;gBACG,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBACxB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;YACzC,CAAC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,kBAAkB,EAAE,WAAW,EAAE,CAAC;QACvC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;IACnC,CAAC;8GAnFQ,oBAAoB;kGAApB,oBAAoB,qJA2Cf,4BAA4B,gDCvE9C,0aAQA,4CDWQ,OAAO,+EACP,QAAQ,6CACR,gBAAgB,+IAChB,oBAAoB,yDACpB,qBAAqB,6GAEb,CAAC,iBAAiB,CAAC;;2FAGtB,oBAAoB;kBAfhC,SAAS;+BAEI,mBAAmB,WAG7B;wBACI,OAAO;wBACP,QAAQ;wBACR,gBAAgB;wBAChB,oBAAoB;wBACpB,qBAAqB;qBACxB,cACW,CAAC,iBAAiB,CAAC,mBACd,uBAAuB,CAAC,MAAM;;0BAiDlC,QAAQ;;0BACR,QAAQ;yEAZd,QAAQ;sBADd,KAAK;gBASC,QAAQ;sBADd,YAAY;uBAAC,4BAA4B","sourcesContent":["import {Component, ChangeDetectionStrategy, Optional, OnInit, OnDestroy, ChangeDetectorRef, Input, ContentChild} from '@angular/core';\nimport {NgClass, NgTemplateOutlet} from '@angular/common';\nimport {FormControlStatus, FormGroup, FormGroupDirective, FormGroupName} from '@angular/forms';\nimport {KeysPipe} from '@anglr/common';\nimport {slideInOutTrigger} from '@anglr/animations';\nimport {Subscription} from 'rxjs';\n\nimport {ErrorMessageDirective, GroupErrorsTemplateDirective} from '../../directives';\nimport {WithErrorMessagePipe} from '../../pipes';\n\n/**\n * Component used for rendering from group errors\n */\n@Component(\n{\n selector: 'form-group-errors',\n templateUrl: 'groupErrors.component.html',\n imports:\n [\n NgClass,\n KeysPipe,\n NgTemplateOutlet,\n WithErrorMessagePipe,\n ErrorMessageDirective,\n ],\n animations: [slideInOutTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class GroupErrorsComponent implements OnInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of currently used form group\n */\n protected _formGroup?: FormGroup;\n\n /**\n * Subscriptions created during initialization\n */\n protected _initSubscriptions: Subscription = new Subscription();\n\n /**\n * Last state of form control\n */\n protected _lastState?: FormControlStatus;\n\n //######################### public properties - template bindings #########################\n\n /**\n * Gets instance of currently used form group\n * @internal\n */\n public get formGroup(): FormGroup\n {\n return (this._formGroup ??= (this.formGroupDirective?.form ?? this.formGroupName?.control));\n }\n\n //######################### public properties - inputs #########################\n\n /**\n * Css classes that are applied to default rendered divs\n */\n @Input()\n public cssClass: string;\n\n //######################### public properties - children #########################\n\n /**\n * Custom template for rendering form group error\n */\n @ContentChild(GroupErrorsTemplateDirective)\n public template?: GroupErrorsTemplateDirective;\n\n //######################### constructor #########################\n constructor(@Optional() protected formGroupDirective: FormGroupDirective,\n @Optional() protected formGroupName: FormGroupName,\n protected _changeDetector: ChangeDetectorRef,)\n {\n if(!this.formGroupDirective && !this.formGroupName)\n {\n throw new Error('There is no parent formGroup or formGroupName directive');\n }\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this._initSubscriptions.add(this.formGroup.statusChanges.subscribe(state =>\n {\n if(this._lastState != state || state == 'INVALID')\n {\n this._lastState = state;\n this._changeDetector.detectChanges();\n }\n }));\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._initSubscriptions?.unsubscribe();\n this._initSubscriptions = null;\n }\n}","<ng-template #defaultTemplate let-errorName>\n <div [ngClass]=\"cssClass\" [errorMessage]=\"errorName\" [errors]=\"formGroup.errors\" @slideInOut></div>\n</ng-template>\n\n@for(errorName of formGroup.errors | keys | withErrorMessage; track errorName)\n{\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, $first, $last, $index, errors: formGroup.errors}\"/>\n}\n"]}
1
+ {"version":3,"file":"groupErrors.component.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.ts","../../../../../../../forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,QAAQ,EAAqB,iBAAiB,EAAE,KAAK,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACtI,OAAO,EAAC,OAAO,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAA+B,kBAAkB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,qBAAqB,EAAE,4BAA4B,EAAC,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;;;AAEjD;;GAEG;AAeH,MAAM,OAAO,oBAAoB;IAmB7B,2FAA2F;IAE3F;;;OAGG;IACH,IAAW,SAAS;QAEhB,OAAO,CAAC,IAAI,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,IAAI,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;IAChG,CAAC;IAkBD,iEAAiE;IACjE,YAAkC,kBAAsC,EACtC,aAA4B,EACxC,eAAkC;QAFtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,kBAAa,GAAb,aAAa,CAAe;QACxC,oBAAe,GAAf,eAAe,CAAmB;QAxCxD;;WAEG;QACO,uBAAkB,GAAiB,IAAI,YAAY,EAAE,CAAC;QAuC5D,IAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,aAAa,EAClD,CAAC;YACG,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;QAC/E,CAAC;IACL,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAEvE,IAAG,IAAI,CAAC,UAAU,IAAI,KAAK,IAAI,KAAK,IAAI,SAAS,EACjD,CAAC;gBACG,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBACxB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;YACzC,CAAC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,kBAAkB,EAAE,WAAW,EAAE,CAAC;QACvC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;IACnC,CAAC;8GAnFQ,oBAAoB;kGAApB,oBAAoB,qJA2Cf,4BAA4B,gDCrE9C,qdAQA,4CDUQ,OAAO,oFAEP,gBAAgB,oJAEhB,qBAAqB,sHAHrB,QAAQ,wCAER,oBAAoB;;2FAKf,oBAAoB;kBAdhC,SAAS;+BAEI,mBAAmB,WAG7B;wBACI,OAAO;wBACP,QAAQ;wBACR,gBAAgB;wBAChB,oBAAoB;wBACpB,qBAAqB;qBACxB,mBACgB,uBAAuB,CAAC,MAAM;;0BAiDlC,QAAQ;;0BACR,QAAQ;yEAZd,QAAQ;sBADd,KAAK;gBASC,QAAQ;sBADd,YAAY;uBAAC,4BAA4B","sourcesContent":["import {Component, ChangeDetectionStrategy, Optional, OnInit, OnDestroy, ChangeDetectorRef, Input, ContentChild} from '@angular/core';\nimport {NgClass, NgTemplateOutlet} from '@angular/common';\nimport {FormControlStatus, FormGroup, FormGroupDirective, FormGroupName} from '@angular/forms';\nimport {KeysPipe} from '@anglr/common';\nimport {Subscription} from 'rxjs';\n\nimport {ErrorMessageDirective, GroupErrorsTemplateDirective} from '../../directives';\nimport {WithErrorMessagePipe} from '../../pipes';\n\n/**\n * Component used for rendering from group errors\n */\n@Component(\n{\n selector: 'form-group-errors',\n templateUrl: 'groupErrors.component.html',\n imports:\n [\n NgClass,\n KeysPipe,\n NgTemplateOutlet,\n WithErrorMessagePipe,\n ErrorMessageDirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class GroupErrorsComponent implements OnInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of currently used form group\n */\n protected _formGroup?: FormGroup;\n\n /**\n * Subscriptions created during initialization\n */\n protected _initSubscriptions: Subscription = new Subscription();\n\n /**\n * Last state of form control\n */\n protected _lastState?: FormControlStatus;\n\n //######################### public properties - template bindings #########################\n\n /**\n * Gets instance of currently used form group\n * @internal\n */\n public get formGroup(): FormGroup\n {\n return (this._formGroup ??= (this.formGroupDirective?.form ?? this.formGroupName?.control));\n }\n\n //######################### public properties - inputs #########################\n\n /**\n * Css classes that are applied to default rendered divs\n */\n @Input()\n public cssClass: string;\n\n //######################### public properties - children #########################\n\n /**\n * Custom template for rendering form group error\n */\n @ContentChild(GroupErrorsTemplateDirective)\n public template?: GroupErrorsTemplateDirective;\n\n //######################### constructor #########################\n constructor(@Optional() protected formGroupDirective: FormGroupDirective,\n @Optional() protected formGroupName: FormGroupName,\n protected _changeDetector: ChangeDetectorRef,)\n {\n if(!this.formGroupDirective && !this.formGroupName)\n {\n throw new Error('There is no parent formGroup or formGroupName directive');\n }\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this._initSubscriptions.add(this.formGroup.statusChanges.subscribe(state =>\n {\n if(this._lastState != state || state == 'INVALID')\n {\n this._lastState = state;\n this._changeDetector.detectChanges();\n }\n }));\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._initSubscriptions?.unsubscribe();\n this._initSubscriptions = null;\n }\n}\n","<ng-template #defaultTemplate let-errorName>\n <div [ngClass]=\"cssClass\" [errorMessage]=\"errorName\" [errors]=\"formGroup.errors\" animate.enter=\"slide-in\" animate.leave=\"slide-out\"></div>\n</ng-template>\n\n@for(errorName of formGroup.errors | keys | withErrorMessage; track errorName)\n{\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, $first, $last, $index, errors: formGroup.errors}\"/>\n}\n"]}
@@ -50,10 +50,10 @@ export class ErrorMessageDirective {
50
50
  const message = this._localization.get(errorMessage, this.errors);
51
51
  this._element.nativeElement.innerHTML = message;
52
52
  }
53
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageDirective, deps: [{ token: i0.ElementRef }, { token: STRING_LOCALIZATION }, { token: VALIDATION_ERROR_MESSAGES }], target: i0.ɵɵFactoryTarget.Directive }); }
54
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: ErrorMessageDirective, isStandalone: true, selector: "[errorMessage]", inputs: { errorName: ["errorMessage", "errorName"], errors: "errors" }, exportAs: ["errorMessage"], usesOnChanges: true, ngImport: i0 }); }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ErrorMessageDirective, deps: [{ token: i0.ElementRef }, { token: STRING_LOCALIZATION }, { token: VALIDATION_ERROR_MESSAGES }], target: i0.ɵɵFactoryTarget.Directive }); }
54
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: ErrorMessageDirective, isStandalone: true, selector: "[errorMessage]", inputs: { errorName: ["errorMessage", "errorName"], errors: "errors" }, exportAs: ["errorMessage"], usesOnChanges: true, ngImport: i0 }); }
55
55
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageDirective, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ErrorMessageDirective, decorators: [{
57
57
  type: Directive,
58
58
  args: [{
59
59
  selector: '[errorMessage]',
@@ -15,10 +15,10 @@ export class GroupErrorsTemplateDirective {
15
15
  static ngTemplateContextGuard(_dir, _ctx) {
16
16
  return true;
17
17
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupErrorsTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0", type: GroupErrorsTemplateDirective, isStandalone: true, selector: "[formGroupError]", ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupErrorsTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0", type: GroupErrorsTemplateDirective, isStandalone: true, selector: "[formGroupError]", ngImport: i0 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupErrorsTemplateDirective, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GroupErrorsTemplateDirective, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
24
  selector: '[formGroupError]',
@@ -7,17 +7,17 @@ import * as i0 from "@angular/core";
7
7
  * Module for error message directives, pipes and components
8
8
  */
9
9
  export class ErrorMessageModule {
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
11
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageModule, imports: [WithErrorMessagePipe,
10
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ErrorMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
11
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: ErrorMessageModule, imports: [WithErrorMessagePipe,
12
12
  ErrorMessageDirective,
13
13
  GroupErrorsTemplateDirective,
14
14
  GroupErrorsComponent], exports: [WithErrorMessagePipe,
15
15
  ErrorMessageDirective,
16
16
  GroupErrorsTemplateDirective,
17
17
  GroupErrorsComponent] }); }
18
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageModule }); }
18
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ErrorMessageModule }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageModule, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: ErrorMessageModule, decorators: [{
21
21
  type: NgModule,
22
22
  args: [{
23
23
  imports: [
@@ -20,10 +20,10 @@ export class WithErrorMessagePipe {
20
20
  }
21
21
  return value.filter(itm => this._errorMessages[itm]);
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: WithErrorMessagePipe, deps: [{ token: VALIDATION_ERROR_MESSAGES }], target: i0.ɵɵFactoryTarget.Pipe }); }
24
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: WithErrorMessagePipe, isStandalone: true, name: "withErrorMessage" }); }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: WithErrorMessagePipe, deps: [{ token: VALIDATION_ERROR_MESSAGES }], target: i0.ɵɵFactoryTarget.Pipe }); }
24
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: WithErrorMessagePipe, isStandalone: true, name: "withErrorMessage" }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: WithErrorMessagePipe, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: WithErrorMessagePipe, decorators: [{
27
27
  type: Pipe,
28
28
  args: [{ name: 'withErrorMessage' }]
29
29
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -5,17 +5,17 @@ import * as i0 from "@angular/core";
5
5
  * Module that holds form util pipes
6
6
  */
7
7
  export class FormPipesModule {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: FormPipesModule, imports: [AsFormArrayPipe,
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FormPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: FormPipesModule, imports: [AsFormArrayPipe,
10
10
  AsFormControlPipe,
11
11
  AsFormGroupPipe,
12
12
  GetControlPipe], exports: [AsFormArrayPipe,
13
13
  AsFormControlPipe,
14
14
  AsFormGroupPipe,
15
15
  GetControlPipe] }); }
16
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormPipesModule }); }
16
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FormPipesModule }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormPipesModule, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: FormPipesModule, decorators: [{
19
19
  type: NgModule,
20
20
  args: [{
21
21
  imports: [
@@ -27,10 +27,10 @@ export class AsFormArrayPipe {
27
27
  this._logger?.warn('Failed to cast AbstractControl to FormArray');
28
28
  return null;
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AsFormArrayPipe, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
31
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: AsFormArrayPipe, isStandalone: true, name: "asFormArray" }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: AsFormArrayPipe, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
31
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: AsFormArrayPipe, isStandalone: true, name: "asFormArray" }); }
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AsFormArrayPipe, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: AsFormArrayPipe, decorators: [{
34
34
  type: Pipe,
35
35
  args: [{ name: 'asFormArray' }]
36
36
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -27,10 +27,10 @@ export class AsFormControlPipe {
27
27
  this._logger?.warn('Failed to cast AbstractControl to FormControl');
28
28
  return null;
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AsFormControlPipe, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
31
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: AsFormControlPipe, isStandalone: true, name: "asFormControl" }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: AsFormControlPipe, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
31
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: AsFormControlPipe, isStandalone: true, name: "asFormControl" }); }
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AsFormControlPipe, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: AsFormControlPipe, decorators: [{
34
34
  type: Pipe,
35
35
  args: [{ name: 'asFormControl' }]
36
36
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -27,10 +27,10 @@ export class AsFormGroupPipe {
27
27
  this._logger?.warn('Failed to cast AbstractControl to FormGroup');
28
28
  return null;
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AsFormGroupPipe, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
31
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: AsFormGroupPipe, isStandalone: true, name: "asFormGroup" }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: AsFormGroupPipe, deps: [{ token: LOGGER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
31
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: AsFormGroupPipe, isStandalone: true, name: "asFormGroup" }); }
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: AsFormGroupPipe, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: AsFormGroupPipe, decorators: [{
34
34
  type: Pipe,
35
35
  args: [{ name: 'asFormGroup' }]
36
36
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -21,10 +21,10 @@ export class GetControlPipe {
21
21
  }
22
22
  return value.get(control);
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GetControlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
25
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: GetControlPipe, isStandalone: true, name: "getControl" }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GetControlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
25
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: GetControlPipe, isStandalone: true, name: "getControl" }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GetControlPipe, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: GetControlPipe, decorators: [{
28
28
  type: Pipe,
29
29
  args: [{ name: 'getControl' }]
30
30
  }] });
@@ -7,17 +7,17 @@ import * as i0 from "@angular/core";
7
7
  * Module for input validation directives
8
8
  */
9
9
  export class HasErrorModule {
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HasErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
11
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: HasErrorModule, imports: [HasErrorDirective,
10
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: HasErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
11
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0", ngImport: i0, type: HasErrorModule, imports: [HasErrorDirective,
12
12
  GroupHasErrorDirective,
13
13
  GroupHasErrorContainerDirective,
14
14
  ValidationErrorsContainerDirective], exports: [HasErrorDirective,
15
15
  GroupHasErrorDirective,
16
16
  GroupHasErrorContainerDirective,
17
17
  ValidationErrorsContainerDirective] }); }
18
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HasErrorModule }); }
18
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: HasErrorModule }); }
19
19
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: HasErrorModule, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0", ngImport: i0, type: HasErrorModule, decorators: [{
21
21
  type: NgModule,
22
22
  args: [{
23
23
  imports: [