@anglr/common 11.3.0-beta.20220302043135 → 11.3.0-beta.20220412124216

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 (377) hide show
  1. package/changelog.md +71 -0
  2. package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
  3. package/es2015/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  4. package/es2015/forms/src/directives/hasError/hasError.directive.js +3 -3
  5. package/es2015/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  6. package/es2015/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  7. package/es2015/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  8. package/es2015/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  9. package/es2015/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  10. package/es2015/forms/src/index.js +1 -0
  11. package/es2015/forms/src/index.js.map +1 -1
  12. package/es2015/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +74 -0
  13. package/es2015/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -0
  14. package/es2015/forms/src/modules/errorMessage/components/index.js +2 -0
  15. package/es2015/forms/src/modules/errorMessage/components/index.js.map +1 -0
  16. package/es2015/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +75 -0
  17. package/es2015/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js.map +1 -0
  18. package/es2015/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorTemplate.context.js +2 -0
  19. package/es2015/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorTemplate.context.js.map +1 -0
  20. package/es2015/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +27 -0
  21. package/es2015/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js.map +1 -0
  22. package/es2015/forms/src/modules/errorMessage/directives/index.js +4 -0
  23. package/es2015/forms/src/modules/errorMessage/directives/index.js.map +1 -0
  24. package/es2015/forms/src/modules/errorMessage/index.js +5 -0
  25. package/es2015/forms/src/modules/errorMessage/index.js.map +1 -0
  26. package/es2015/forms/src/modules/errorMessage/modules/errorMessage.module.js +47 -0
  27. package/es2015/forms/src/modules/errorMessage/modules/errorMessage.module.js.map +1 -0
  28. package/es2015/forms/src/modules/errorMessage/modules/index.js +2 -0
  29. package/es2015/forms/src/modules/errorMessage/modules/index.js.map +1 -0
  30. package/es2015/forms/src/modules/errorMessage/pipes/index.js +2 -0
  31. package/es2015/forms/src/modules/errorMessage/pipes/index.js.map +1 -0
  32. package/es2015/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +33 -0
  33. package/es2015/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js.map +1 -0
  34. package/es2015/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  35. package/es2015/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  36. package/es2015/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  37. package/es2015/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  38. package/es2015/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  39. package/es2015/forms/src/modules/hasError.module.js +4 -4
  40. package/es2015/forms/src/modules/numberInput.module.js +4 -4
  41. package/es2015/forms/src/modules/requiredClass.module.js +4 -4
  42. package/es2015/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  43. package/es2015/forms/src/services/submitted/submitted.service.js +3 -3
  44. package/es2015/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  45. package/es2015/hotkeys/src/services/appHotkeys.service.js +3 -3
  46. package/es2015/material/src/components/confirmationDialog/confirmationDialog.component.js +4 -4
  47. package/es2015/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
  48. package/es2015/material/src/components/movableTitledDialog/movableTitledDialog.component.js +18 -0
  49. package/es2015/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -0
  50. package/es2015/material/src/components/titledDialog/titledDialog.component.js +7 -4
  51. package/es2015/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  52. package/es2015/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -3
  53. package/es2015/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  54. package/es2015/material/src/index.js +5 -2
  55. package/es2015/material/src/index.js.map +1 -1
  56. package/es2015/material/src/misc/interfaces/titledDialog.interface.js +1 -5
  57. package/es2015/material/src/misc/interfaces/titledDialog.interface.js.map +1 -1
  58. package/es2015/material/src/misc/tokens.js +4 -0
  59. package/es2015/material/src/misc/tokens.js.map +1 -1
  60. package/es2015/material/src/modules/confirmationDialog.module.js +4 -4
  61. package/es2015/material/src/modules/debugDataCopyClick.module.js +4 -4
  62. package/es2015/material/src/modules/movableTitledDialog.module.js +37 -0
  63. package/es2015/material/src/modules/movableTitledDialog.module.js.map +1 -0
  64. package/es2015/material/src/modules/titledDialog.module.js +4 -4
  65. package/es2015/material/src/services/titledDialog/titledDialog.service.js +15 -8
  66. package/es2015/material/src/services/titledDialog/titledDialog.service.js.map +1 -1
  67. package/es2015/material/src/services/titledDialog/titledDialogService.options.js +19 -0
  68. package/es2015/material/src/services/titledDialog/titledDialogService.options.js.map +1 -0
  69. package/es2015/moment/src/modules/moment.module.js +4 -4
  70. package/es2015/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
  71. package/es2015/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
  72. package/es2015/numeral/src/modules/numeral.module.js +4 -4
  73. package/es2015/numeral/src/pipes/numeral.pipe.js +3 -3
  74. package/es2015/positions/src/modules/positions/directives/positionTo/positionTo.directive.js +3 -3
  75. package/es2015/positions/src/modules/positions/modules/positions.module.js +4 -4
  76. package/es2015/positions/src/modules/tooltip/components/tooltip/tooltip.component.js +3 -3
  77. package/es2015/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.js +3 -3
  78. package/es2015/positions/src/modules/tooltip/modules/tooltip.module.js +4 -4
  79. package/es2015/router/src/services/routing/dataRouter.js +3 -3
  80. package/es2015/router/src/services/routing/dataRouterData.js +3 -3
  81. package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  82. package/es2015/src/index.js +1 -0
  83. package/es2015/src/index.js.map +1 -1
  84. package/es2015/src/modules/castPipes/modules/castPipes.module.js +4 -4
  85. package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  86. package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  87. package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  88. package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  89. package/es2015/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js +3 -3
  90. package/es2015/src/modules/clickOutside/modules/clickOutside.module.js +4 -4
  91. package/es2015/src/modules/commonDynamic.module.js +4 -4
  92. package/es2015/src/modules/commonLocalize.module.js +4 -4
  93. package/es2015/src/modules/commonUtils.module.js +11 -7
  94. package/es2015/src/modules/commonUtils.module.js.map +1 -1
  95. package/es2015/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  96. package/es2015/src/modules/debugData/modules/debugData.module.js +4 -4
  97. package/es2015/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  98. package/es2015/src/modules/goBack/directives/goBack/goBack.directive.js +3 -3
  99. package/es2015/src/modules/goBack/modules/goBack.module.js +4 -4
  100. package/es2015/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  101. package/es2015/src/modules/multiButton/modules/multiButton.module.js +4 -4
  102. package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js +3 -3
  103. package/es2015/src/modules/position/modules/position.module.js +4 -4
  104. package/es2015/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  105. package/es2015/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  106. package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js +3 -3
  107. package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  108. package/es2015/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  109. package/es2015/src/modules/tooltip/components/index.js +2 -0
  110. package/es2015/src/modules/tooltip/components/index.js.map +1 -0
  111. package/es2015/src/modules/tooltip/components/tooltip/tooltip.component.js +102 -0
  112. package/es2015/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -0
  113. package/es2015/src/modules/tooltip/directives/index.js +3 -0
  114. package/es2015/src/modules/tooltip/directives/index.js.map +1 -0
  115. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js +248 -0
  116. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -0
  117. package/es2015/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +20 -0
  118. package/es2015/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -0
  119. package/es2015/src/modules/tooltip/index.js +6 -0
  120. package/es2015/src/modules/tooltip/index.js.map +1 -0
  121. package/es2015/src/modules/tooltip/misc/tokens.js +6 -0
  122. package/es2015/src/modules/tooltip/misc/tokens.js.map +1 -0
  123. package/es2015/src/modules/tooltip/misc/tooltip.interface.js +2 -0
  124. package/es2015/src/modules/tooltip/misc/tooltip.interface.js.map +1 -0
  125. package/es2015/src/modules/tooltip/modules/index.js +2 -0
  126. package/es2015/src/modules/tooltip/modules/index.js.map +1 -0
  127. package/es2015/src/modules/tooltip/modules/tooltip.module.js +36 -0
  128. package/es2015/src/modules/tooltip/modules/tooltip.module.js.map +1 -0
  129. package/es2015/src/pipes/index.js +1 -0
  130. package/es2015/src/pipes/index.js.map +1 -1
  131. package/es2015/src/pipes/isNaN/isNaN.pipe.js +3 -3
  132. package/es2015/src/pipes/isPresent/isPresent.pipe.js +3 -3
  133. package/es2015/src/pipes/keys/keys.pipe.js +25 -0
  134. package/es2015/src/pipes/keys/keys.pipe.js.map +1 -0
  135. package/es2015/src/pipes/localize/localize.pipe.js +3 -3
  136. package/es2015/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  137. package/es2015/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  138. package/es2015/src/services/cookies/cookies.service.js +3 -3
  139. package/es2015/src/services/notifications/defaultNotifications.service.js +3 -3
  140. package/es2015/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  141. package/es2015/src/services/statusCode/statusCode.service.js +3 -3
  142. package/es2015/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  143. package/es2015/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  144. package/es2015/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  145. package/es2015/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  146. package/es2015/structured-log/src/components/console/console.component.js +3 -3
  147. package/es2015/structured-log/src/modules/consoleLog.module.js +4 -4
  148. package/es2015/structured-log/src/services/console/consoleComponentSink.service.js +3 -3
  149. package/es2015/structured-log/src/services/console/consoleSinkConfig.service.js +3 -3
  150. package/es2015/structured-log/src/services/logger.service.js +3 -3
  151. package/es2015/structured-log/src/services/rest/restSink.service.js +3 -3
  152. package/es2015/structured-log/src/services/rest/restSinkConfig.service.js +3 -3
  153. package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
  154. package/es2020/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  155. package/es2020/forms/src/directives/hasError/hasError.directive.js +3 -3
  156. package/es2020/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  157. package/es2020/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  158. package/es2020/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  159. package/es2020/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  160. package/es2020/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  161. package/es2020/forms/src/index.js +1 -0
  162. package/es2020/forms/src/index.js.map +1 -1
  163. package/es2020/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +72 -0
  164. package/es2020/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -0
  165. package/es2020/forms/src/modules/errorMessage/components/index.js +2 -0
  166. package/es2020/forms/src/modules/errorMessage/components/index.js.map +1 -0
  167. package/es2020/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +74 -0
  168. package/es2020/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js.map +1 -0
  169. package/es2020/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorTemplate.context.js +2 -0
  170. package/es2020/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorTemplate.context.js.map +1 -0
  171. package/es2020/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +27 -0
  172. package/es2020/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js.map +1 -0
  173. package/es2020/forms/src/modules/errorMessage/directives/index.js +4 -0
  174. package/es2020/forms/src/modules/errorMessage/directives/index.js.map +1 -0
  175. package/es2020/forms/src/modules/errorMessage/index.js +5 -0
  176. package/es2020/forms/src/modules/errorMessage/index.js.map +1 -0
  177. package/es2020/forms/src/modules/errorMessage/modules/errorMessage.module.js +47 -0
  178. package/es2020/forms/src/modules/errorMessage/modules/errorMessage.module.js.map +1 -0
  179. package/es2020/forms/src/modules/errorMessage/modules/index.js +2 -0
  180. package/es2020/forms/src/modules/errorMessage/modules/index.js.map +1 -0
  181. package/es2020/forms/src/modules/errorMessage/pipes/index.js +2 -0
  182. package/es2020/forms/src/modules/errorMessage/pipes/index.js.map +1 -0
  183. package/es2020/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +33 -0
  184. package/es2020/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js.map +1 -0
  185. package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  186. package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  187. package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  188. package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  189. package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  190. package/es2020/forms/src/modules/hasError.module.js +4 -4
  191. package/es2020/forms/src/modules/numberInput.module.js +4 -4
  192. package/es2020/forms/src/modules/requiredClass.module.js +4 -4
  193. package/es2020/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  194. package/es2020/forms/src/services/submitted/submitted.service.js +3 -3
  195. package/es2020/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  196. package/es2020/hotkeys/src/services/appHotkeys.service.js +3 -3
  197. package/es2020/material/src/components/confirmationDialog/confirmationDialog.component.js +4 -4
  198. package/es2020/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
  199. package/es2020/material/src/components/movableTitledDialog/movableTitledDialog.component.js +18 -0
  200. package/es2020/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -0
  201. package/es2020/material/src/components/titledDialog/titledDialog.component.js +7 -4
  202. package/es2020/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  203. package/es2020/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -3
  204. package/es2020/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  205. package/es2020/material/src/index.js +5 -2
  206. package/es2020/material/src/index.js.map +1 -1
  207. package/es2020/material/src/misc/interfaces/titledDialog.interface.js +1 -5
  208. package/es2020/material/src/misc/interfaces/titledDialog.interface.js.map +1 -1
  209. package/es2020/material/src/misc/tokens.js +4 -0
  210. package/es2020/material/src/misc/tokens.js.map +1 -1
  211. package/es2020/material/src/modules/confirmationDialog.module.js +4 -4
  212. package/es2020/material/src/modules/debugDataCopyClick.module.js +4 -4
  213. package/es2020/material/src/modules/movableTitledDialog.module.js +37 -0
  214. package/es2020/material/src/modules/movableTitledDialog.module.js.map +1 -0
  215. package/es2020/material/src/modules/titledDialog.module.js +4 -4
  216. package/es2020/material/src/services/titledDialog/titledDialog.service.js +15 -8
  217. package/es2020/material/src/services/titledDialog/titledDialog.service.js.map +1 -1
  218. package/es2020/material/src/services/titledDialog/titledDialogService.options.js +19 -0
  219. package/es2020/material/src/services/titledDialog/titledDialogService.options.js.map +1 -0
  220. package/es2020/moment/src/modules/moment.module.js +4 -4
  221. package/es2020/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
  222. package/es2020/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
  223. package/es2020/numeral/src/modules/numeral.module.js +4 -4
  224. package/es2020/numeral/src/pipes/numeral.pipe.js +3 -3
  225. package/es2020/positions/src/modules/positions/directives/positionTo/positionTo.directive.js +3 -3
  226. package/es2020/positions/src/modules/positions/modules/positions.module.js +4 -4
  227. package/es2020/positions/src/modules/tooltip/components/tooltip/tooltip.component.js +3 -3
  228. package/es2020/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.js +3 -3
  229. package/es2020/positions/src/modules/tooltip/modules/tooltip.module.js +4 -4
  230. package/es2020/router/src/services/routing/dataRouter.js +3 -3
  231. package/es2020/router/src/services/routing/dataRouterData.js +3 -3
  232. package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  233. package/es2020/src/index.js +1 -0
  234. package/es2020/src/index.js.map +1 -1
  235. package/es2020/src/modules/castPipes/modules/castPipes.module.js +4 -4
  236. package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  237. package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  238. package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  239. package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  240. package/es2020/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js +3 -3
  241. package/es2020/src/modules/clickOutside/modules/clickOutside.module.js +4 -4
  242. package/es2020/src/modules/commonDynamic.module.js +4 -4
  243. package/es2020/src/modules/commonLocalize.module.js +4 -4
  244. package/es2020/src/modules/commonUtils.module.js +11 -7
  245. package/es2020/src/modules/commonUtils.module.js.map +1 -1
  246. package/es2020/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  247. package/es2020/src/modules/debugData/modules/debugData.module.js +4 -4
  248. package/es2020/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  249. package/es2020/src/modules/goBack/directives/goBack/goBack.directive.js +3 -3
  250. package/es2020/src/modules/goBack/modules/goBack.module.js +4 -4
  251. package/es2020/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  252. package/es2020/src/modules/multiButton/modules/multiButton.module.js +4 -4
  253. package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js +3 -3
  254. package/es2020/src/modules/position/modules/position.module.js +4 -4
  255. package/es2020/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  256. package/es2020/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  257. package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js +3 -3
  258. package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  259. package/es2020/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  260. package/es2020/src/modules/tooltip/components/index.js +2 -0
  261. package/es2020/src/modules/tooltip/components/index.js.map +1 -0
  262. package/es2020/src/modules/tooltip/components/tooltip/tooltip.component.js +102 -0
  263. package/es2020/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -0
  264. package/es2020/src/modules/tooltip/directives/index.js +3 -0
  265. package/es2020/src/modules/tooltip/directives/index.js.map +1 -0
  266. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js +247 -0
  267. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -0
  268. package/es2020/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +20 -0
  269. package/es2020/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -0
  270. package/es2020/src/modules/tooltip/index.js +6 -0
  271. package/es2020/src/modules/tooltip/index.js.map +1 -0
  272. package/es2020/src/modules/tooltip/misc/tokens.js +6 -0
  273. package/es2020/src/modules/tooltip/misc/tokens.js.map +1 -0
  274. package/es2020/src/modules/tooltip/misc/tooltip.interface.js +2 -0
  275. package/es2020/src/modules/tooltip/misc/tooltip.interface.js.map +1 -0
  276. package/es2020/src/modules/tooltip/modules/index.js +2 -0
  277. package/es2020/src/modules/tooltip/modules/index.js.map +1 -0
  278. package/es2020/src/modules/tooltip/modules/tooltip.module.js +36 -0
  279. package/es2020/src/modules/tooltip/modules/tooltip.module.js.map +1 -0
  280. package/es2020/src/pipes/index.js +1 -0
  281. package/es2020/src/pipes/index.js.map +1 -1
  282. package/es2020/src/pipes/isNaN/isNaN.pipe.js +3 -3
  283. package/es2020/src/pipes/isPresent/isPresent.pipe.js +3 -3
  284. package/es2020/src/pipes/keys/keys.pipe.js +25 -0
  285. package/es2020/src/pipes/keys/keys.pipe.js.map +1 -0
  286. package/es2020/src/pipes/localize/localize.pipe.js +3 -3
  287. package/es2020/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  288. package/es2020/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  289. package/es2020/src/services/cookies/cookies.service.js +3 -3
  290. package/es2020/src/services/notifications/defaultNotifications.service.js +3 -3
  291. package/es2020/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  292. package/es2020/src/services/statusCode/statusCode.service.js +3 -3
  293. package/es2020/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  294. package/es2020/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  295. package/es2020/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  296. package/es2020/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  297. package/es2020/structured-log/src/components/console/console.component.js +3 -3
  298. package/es2020/structured-log/src/modules/consoleLog.module.js +4 -4
  299. package/es2020/structured-log/src/services/console/consoleComponentSink.service.js +3 -3
  300. package/es2020/structured-log/src/services/console/consoleSinkConfig.service.js +3 -3
  301. package/es2020/structured-log/src/services/logger.service.js +3 -3
  302. package/es2020/structured-log/src/services/rest/restSink.service.js +3 -3
  303. package/es2020/structured-log/src/services/rest/restSinkConfig.service.js +3 -3
  304. package/forms/src/index.d.ts +1 -0
  305. package/forms/src/index.d.ts.map +1 -1
  306. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts +50 -0
  307. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts.map +1 -0
  308. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.html +7 -0
  309. package/forms/src/modules/errorMessage/components/index.d.ts +2 -0
  310. package/forms/src/modules/errorMessage/components/index.d.ts.map +1 -0
  311. package/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.d.ts +41 -0
  312. package/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.d.ts.map +1 -0
  313. package/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorTemplate.context.d.ts +27 -0
  314. package/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorTemplate.context.d.ts.map +1 -0
  315. package/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.d.ts +17 -0
  316. package/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.d.ts.map +1 -0
  317. package/forms/src/modules/errorMessage/directives/index.d.ts +4 -0
  318. package/forms/src/modules/errorMessage/directives/index.d.ts.map +1 -0
  319. package/forms/src/modules/errorMessage/index.d.ts +5 -0
  320. package/forms/src/modules/errorMessage/index.d.ts.map +1 -0
  321. package/forms/src/modules/errorMessage/modules/errorMessage.module.d.ts +16 -0
  322. package/forms/src/modules/errorMessage/modules/errorMessage.module.d.ts.map +1 -0
  323. package/forms/src/modules/errorMessage/modules/index.d.ts +2 -0
  324. package/forms/src/modules/errorMessage/modules/index.d.ts.map +1 -0
  325. package/forms/src/modules/errorMessage/pipes/index.d.ts +2 -0
  326. package/forms/src/modules/errorMessage/pipes/index.d.ts.map +1 -0
  327. package/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.d.ts +18 -0
  328. package/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.d.ts.map +1 -0
  329. package/material/src/components/movableTitledDialog/movableTitledDialog.component.d.ts +10 -0
  330. package/material/src/components/movableTitledDialog/movableTitledDialog.component.d.ts.map +1 -0
  331. package/material/src/components/movableTitledDialog/movableTitledDialog.component.html +14 -0
  332. package/material/src/components/titledDialog/titledDialog.component.d.ts +3 -0
  333. package/material/src/components/titledDialog/titledDialog.component.d.ts.map +1 -1
  334. package/material/src/index.d.ts +6 -2
  335. package/material/src/index.d.ts.map +1 -1
  336. package/material/src/misc/interfaces/titledDialog.interface.d.ts +1 -5
  337. package/material/src/misc/interfaces/titledDialog.interface.d.ts.map +1 -1
  338. package/material/src/misc/tokens.d.ts +4 -0
  339. package/material/src/misc/tokens.d.ts.map +1 -1
  340. package/material/src/modules/movableTitledDialog.module.d.ts +14 -0
  341. package/material/src/modules/movableTitledDialog.module.d.ts.map +1 -0
  342. package/material/src/services/titledDialog/titledDialog.service.d.ts +5 -3
  343. package/material/src/services/titledDialog/titledDialog.service.d.ts.map +1 -1
  344. package/material/src/services/titledDialog/titledDialogService.options.d.ts +12 -0
  345. package/material/src/services/titledDialog/titledDialogService.options.d.ts.map +1 -0
  346. package/package.json +1 -1
  347. package/src/index.d.ts +1 -0
  348. package/src/index.d.ts.map +1 -1
  349. package/src/modules/commonUtils.module.d.ts +2 -1
  350. package/src/modules/commonUtils.module.d.ts.map +1 -1
  351. package/src/modules/tooltip/components/index.d.ts +2 -0
  352. package/src/modules/tooltip/components/index.d.ts.map +1 -0
  353. package/src/modules/tooltip/components/tooltip/tooltip.component.css +10 -0
  354. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +63 -0
  355. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -0
  356. package/src/modules/tooltip/components/tooltip/tooltip.component.html +6 -0
  357. package/src/modules/tooltip/directives/index.d.ts +3 -0
  358. package/src/modules/tooltip/directives/index.d.ts.map +1 -0
  359. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts +113 -0
  360. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -0
  361. package/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.d.ts +12 -0
  362. package/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.d.ts.map +1 -0
  363. package/src/modules/tooltip/index.d.ts +6 -0
  364. package/src/modules/tooltip/index.d.ts.map +1 -0
  365. package/src/modules/tooltip/misc/tokens.d.ts +7 -0
  366. package/src/modules/tooltip/misc/tokens.d.ts.map +1 -0
  367. package/src/modules/tooltip/misc/tooltip.interface.d.ts +63 -0
  368. package/src/modules/tooltip/misc/tooltip.interface.d.ts.map +1 -0
  369. package/src/modules/tooltip/modules/index.d.ts +2 -0
  370. package/src/modules/tooltip/modules/index.d.ts.map +1 -0
  371. package/src/modules/tooltip/modules/tooltip.module.d.ts +14 -0
  372. package/src/modules/tooltip/modules/tooltip.module.d.ts.map +1 -0
  373. package/src/pipes/index.d.ts +1 -0
  374. package/src/pipes/index.d.ts.map +1 -1
  375. package/src/pipes/keys/keys.pipe.d.ts +16 -0
  376. package/src/pipes/keys/keys.pipe.d.ts.map +1 -0
  377. package/version.bak +1 -1
package/changelog.md CHANGED
@@ -1,5 +1,76 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 11.3.0 (2022-04-12)
4
+
5
+ ### Features
6
+
7
+ - new `KeysPipe` pipe, that gets object keys/property names
8
+ - updated `CommonUtilsModule`
9
+ - added `KeysPipe` to this module
10
+ - new **Tooltip** module (based on `Position` service)
11
+ - new `TooltipModule` module for rendering tooltips
12
+ - **exports**
13
+ - `TooltipDirective` directive
14
+ - `TooltipTemplateDirective` directive
15
+ - new `TooltipDirective` directive used for rendering tooltip
16
+ - **inputs**
17
+ - `tooltip` tooltip text that is displayed, or any data that could be passed to template
18
+ - `allowHtml` indication whether are html tags allowed in tooltip text
19
+ - `tooltipTemplate` instance of tooltip template that is used for rendering
20
+ - `tooltipOptions` options used for displaying tooltip
21
+ - `tooltipVisible` gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this
22
+ - **content**
23
+ - child `TooltipTemplateDirective` instance of template from element content, used for rendering
24
+ - new `TooltipTemplateDirective` directive used for obtaining custom tooltip template
25
+ - new `TooltipComponent` component used for displaying tooltip content
26
+ - implementation of `TooltipRenderer`
27
+ - new `TOOLTIP_OPTIONS` injection token used for injecting tooltip options
28
+ - new `TooltipRenderer` interface, that represents component that is used for rendering tooltip
29
+ - property `data` data that are rendered in tooltip
30
+ - property `template` template used for rendering tooltip
31
+ - property `allowHtml` indication whether are html tags allowed in tooltip text
32
+ - property `cssClass` css class that is applied to tooltip renderer component
33
+ - method `registerHoverEvents` registers handlers that allows reaction to entering or leaving tooltip
34
+ - method `invalidateVisuals` explicitly runs invalidation of content (change detection)
35
+ - new `TooltipOptions` interface, that represents options used for tooltip directive
36
+ - property `delay` delay for displaying of tooltip on hover
37
+ - property `position` position where should tooltip appear relative to its parent
38
+ - property `allowSelection` allows selection of text in tooltip
39
+ - property `tooltipCssClass` css class that is applied to tooltip renderer component
40
+ - property `stopPropagation` indication whether stop propagation of "hover" event
41
+ - property `tooltipRenderer` type of tooltip renderer that is used for rendering tooltip
42
+ - *subpackage* `@anglr/common/material`
43
+ - **TITLED DIALOG**
44
+ - new `TitledDialogServiceOptions` class that represents, options for `TitledDialogService`
45
+ - `titledDialogComponent` property, type of component used for rendering titled dialog
46
+ - updated `TitledDialogService` service
47
+ - now using `TitledDialogServiceOptions`, using type of component for dialog from options
48
+ - new `MovableTitledDialogComponent` component, that is used as wrapper for material dialog enhanced with title, which is movable
49
+ - new `MovableTitledDialogModule` module for components for displaying movable titled dialog
50
+ - *subpackage* `@anglr/common/forms`
51
+ - new `ErrorMessageModule` module for error message directives, pipes and components
52
+ - added `WithErrorMessagePipe` pipe to this module
53
+ - added `GroupErrorsTemplateDirective` directive to this module
54
+ - added `ErrorMessageDirective` directive to this module
55
+ - added `GroupErrorsComponent` directive to this module
56
+ - new `WithErrorMessagePipe` pipe, that filters array of errors with messages
57
+ - new `GroupErrorsTemplateContext` interface, that is context passed to template of group error
58
+ - `$implicit` name/code of error
59
+ - `last` indication whether rendered error is last
60
+ - `first` indication whether rendered error is first
61
+ - `index` index of currently rendered item
62
+ - `errors` object storing all errors for form group
63
+ - new `GroupErrorsTemplateDirective` directive, that obtains template for displaying form group error
64
+ - new `ErrorMessageDirective` directive, that is used for displaying form error message
65
+ - **inputs**
66
+ - `errorMessage` name/code of error message to be displayed
67
+ - `errors` object storing all errors
68
+ - new `GroupErrorsComponent` component, that is used for rendering from group errors
69
+ - **inputs**
70
+ - `cssClass` css classes that are applied to default rendered divs
71
+ - **content**
72
+ - child `GroupErrorsTemplateDirective` custom template for rendering form group error
73
+
3
74
  ## Version 11.2.0 (2022-03-01)
4
75
 
5
76
  ### Bug Fixes
@@ -210,9 +210,9 @@ export class FloatingUiDomPosition {
210
210
  }
211
211
  }
212
212
  }
213
- FloatingUiDomPosition.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FloatingUiDomPosition, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
214
- FloatingUiDomPosition.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FloatingUiDomPosition });
215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FloatingUiDomPosition, decorators: [{
213
+ FloatingUiDomPosition.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: FloatingUiDomPosition, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
214
+ FloatingUiDomPosition.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: FloatingUiDomPosition });
215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: FloatingUiDomPosition, decorators: [{
216
216
  type: Injectable
217
217
  }] });
218
218
  /**
@@ -61,9 +61,9 @@ export class GroupHasErrorDirective {
61
61
  }
62
62
  }
63
63
  }
64
- GroupHasErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GroupHasErrorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
65
- GroupHasErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: GroupHasErrorDirective, selector: "[groupHasError]", ngImport: i0 });
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: GroupHasErrorDirective, decorators: [{
64
+ GroupHasErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: GroupHasErrorDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
65
+ GroupHasErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: GroupHasErrorDirective, selector: "[groupHasError]", ngImport: i0 });
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: GroupHasErrorDirective, decorators: [{
67
67
  type: Directive,
68
68
  args: [{
69
69
  selector: '[groupHasError]'
@@ -130,15 +130,15 @@ export class HasErrorDirective {
130
130
  });
131
131
  }
132
132
  }
133
- HasErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HasErrorDirective, deps: [{ token: i0.ElementRef }, { token: i1.ValidationErrorRendererFactory }, { 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: STRING_LOCALIZATION }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
134
- HasErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: HasErrorDirective, selector: "[hasError]", inputs: { errorMessages: "errorMessages" }, ngImport: i0 });
133
+ HasErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HasErrorDirective, deps: [{ token: i0.ElementRef }, { token: i1.ValidationErrorRendererFactory }, { 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: STRING_LOCALIZATION }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
134
+ HasErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: HasErrorDirective, selector: "[hasError]", inputs: { errorMessages: "errorMessages" }, ngImport: i0 });
135
135
  __decorate([
136
136
  BindThis,
137
137
  __metadata("design:type", Function),
138
138
  __metadata("design:paramtypes", [Function, Function, Boolean]),
139
139
  __metadata("design:returntype", void 0)
140
140
  ], HasErrorDirective.prototype, "_isSubmittedOrDirty", null);
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HasErrorDirective, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: HasErrorDirective, decorators: [{
142
142
  type: Directive,
143
143
  args: [{
144
144
  selector: '[hasError]'
@@ -47,9 +47,9 @@ export class MaxValueNumberValidatorDirective {
47
47
  return this._validator(control);
48
48
  }
49
49
  }
50
- MaxValueNumberValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: MaxValueNumberValidatorDirective, deps: [{ token: 'maxValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
51
- MaxValueNumberValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: MaxValueNumberValidatorDirective, selector: "input[number][maxValue][formControlName],input[number][maxValue][formControl],input[number][maxValue][ngModel]", inputs: { maxValue: "maxValue" }, providers: [MAX_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: MaxValueNumberValidatorDirective, decorators: [{
50
+ MaxValueNumberValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: MaxValueNumberValidatorDirective, deps: [{ token: 'maxValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
51
+ MaxValueNumberValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: MaxValueNumberValidatorDirective, selector: "input[number][maxValue][formControlName],input[number][maxValue][formControl],input[number][maxValue][ngModel]", inputs: { maxValue: "maxValue" }, providers: [MAX_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", 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]',
@@ -47,9 +47,9 @@ export class MinValueNumberValidatorDirective {
47
47
  return this._validator(control);
48
48
  }
49
49
  }
50
- MinValueNumberValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: MinValueNumberValidatorDirective, deps: [{ token: 'minValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
51
- MinValueNumberValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: MinValueNumberValidatorDirective, selector: "input[number][minValue][formControlName],input[number][minValue][formControl],input[number][minValue][ngModel]", inputs: { minValue: "minValue" }, providers: [MIN_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: MinValueNumberValidatorDirective, decorators: [{
50
+ MinValueNumberValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: MinValueNumberValidatorDirective, deps: [{ token: 'minValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
51
+ MinValueNumberValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: MinValueNumberValidatorDirective, selector: "input[number][minValue][formControlName],input[number][minValue][formControl],input[number][minValue][ngModel]", inputs: { minValue: "minValue" }, providers: [MIN_NUMBER_VALIDATOR], usesOnChanges: true, ngImport: i0 });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", 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]',
@@ -57,9 +57,9 @@ export class NumberInputControlValueAccessor {
57
57
  this.onTouched = fn;
58
58
  }
59
59
  }
60
- NumberInputControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: NumberInputControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
61
- NumberInputControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: NumberInputControlValueAccessor, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [NUMBER_INPUT_VALUE_ACCESSOR], ngImport: i0 });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: NumberInputControlValueAccessor, decorators: [{
60
+ NumberInputControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NumberInputControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
61
+ NumberInputControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: NumberInputControlValueAccessor, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [NUMBER_INPUT_VALUE_ACCESSOR], ngImport: i0 });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NumberInputControlValueAccessor, decorators: [{
63
63
  type: Directive,
64
64
  args: [{
65
65
  selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',
@@ -24,9 +24,9 @@ export class NumberInputValidatorDirective {
24
24
  return Validators.number(control);
25
25
  }
26
26
  }
27
- NumberInputValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: NumberInputValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
28
- NumberInputValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: NumberInputValidatorDirective, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", providers: [NUMBER_VALIDATOR], ngImport: i0 });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: NumberInputValidatorDirective, decorators: [{
27
+ NumberInputValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NumberInputValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
28
+ NumberInputValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: NumberInputValidatorDirective, selector: "input[number][formControlName],input[number][formControl],input[number][ngModel]", providers: [NUMBER_VALIDATOR], ngImport: i0 });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: NumberInputValidatorDirective, decorators: [{
30
30
  type: Directive,
31
31
  args: [{
32
32
  selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',
@@ -38,9 +38,9 @@ export class RequiredClassDirective {
38
38
  }
39
39
  }
40
40
  }
41
- RequiredClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RequiredClassDirective, deps: [{ token: i1.FormControlDirective, optional: true }, { token: i1.FormControlName, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
42
- RequiredClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: RequiredClassDirective, selector: "[requiredClass]", host: { properties: { "class.required": "this.required" } }, ngImport: i0 });
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: RequiredClassDirective, decorators: [{
41
+ RequiredClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: RequiredClassDirective, deps: [{ token: i1.FormControlDirective, optional: true }, { token: i1.FormControlName, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
42
+ RequiredClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: RequiredClassDirective, selector: "[requiredClass]", host: { properties: { "class.required": "this.required" } }, ngImport: i0 });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: RequiredClassDirective, decorators: [{
44
44
  type: Directive,
45
45
  args: [{
46
46
  selector: '[requiredClass]'
@@ -17,5 +17,6 @@ export * from './modules/numberInput.module';
17
17
  export * from './modules/hasError.module';
18
18
  export * from './modules/requiredClass.module';
19
19
  export * from './modules/formPipes';
20
+ export * from './modules/errorMessage';
20
21
  export * from './misc/formModel';
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './directives/numberInput/maxValueNumberValidator.directive';\nexport * from './directives/numberInput/minValueNumberValidator.directive';\nexport * from './directives/numberInput/numberInputValidator.directive';\nexport * from './directives/numberInput/numberInputControlValueAccessor.directive';\nexport * from './directives/hasError/hasError.directive';\nexport * from './directives/groupHasError/groupHasError.directive';\nexport * from './directives/requiredClass/requiredClass.directive';\nexport * from './services/submitted/submitted.service';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.interface';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.service';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.interface';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.service';\nexport * from './misc/validators';\nexport * from './misc/utils';\nexport * from './misc/types';\nexport * from './modules/numberInput.module';\nexport * from './modules/hasError.module';\nexport * from './modules/requiredClass.module';\nexport * from './modules/formPipes';\nexport * from './misc/formModel';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../forms/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './directives/numberInput/maxValueNumberValidator.directive';\nexport * from './directives/numberInput/minValueNumberValidator.directive';\nexport * from './directives/numberInput/numberInputValidator.directive';\nexport * from './directives/numberInput/numberInputControlValueAccessor.directive';\nexport * from './directives/hasError/hasError.directive';\nexport * from './directives/groupHasError/groupHasError.directive';\nexport * from './directives/requiredClass/requiredClass.directive';\nexport * from './services/submitted/submitted.service';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.interface';\nexport * from './services/errorMessagesExtractor/errorMessagesExtractor.service';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.interface';\nexport * from './services/validationErrorRenderer/validationErrorRenderer.service';\nexport * from './misc/validators';\nexport * from './misc/utils';\nexport * from './misc/types';\nexport * from './modules/numberInput.module';\nexport * from './modules/hasError.module';\nexport * from './modules/requiredClass.module';\nexport * from './modules/formPipes';\nexport * from './modules/errorMessage';\nexport * from './misc/formModel';\n"]}
@@ -0,0 +1,74 @@
1
+ import { Component, ChangeDetectionStrategy, Optional, ChangeDetectorRef, Input, ContentChild } from '@angular/core';
2
+ import { FormGroupDirective, FormGroupName } from '@angular/forms';
3
+ import { Subscription } from 'rxjs';
4
+ import { GroupErrorsTemplateDirective } from '../../directives';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/forms";
7
+ import * as i2 from "@angular/common";
8
+ import * as i3 from "../../directives/errorMessage/errorMessage.directive";
9
+ import * as i4 from "../../pipes/withErrorMessage/withErrorMessage.pipe";
10
+ import * as i5 from "../../../../../../src/pipes/keys/keys.pipe";
11
+ /**
12
+ * Component used for rendering from group errors
13
+ */
14
+ export class GroupErrorsComponent {
15
+ //######################### constructor #########################
16
+ constructor(formGroupDirective, formGroupName, _changeDetector) {
17
+ this.formGroupDirective = formGroupDirective;
18
+ this.formGroupName = formGroupName;
19
+ this._changeDetector = _changeDetector;
20
+ /**
21
+ * Subscriptions created during initialization
22
+ */
23
+ this._initSubscriptions = new Subscription();
24
+ if (!this.formGroupDirective && !this.formGroupName) {
25
+ throw new Error('There is no parent formGroup or formGroupName directive');
26
+ }
27
+ }
28
+ //######################### public properties - template bindings #########################
29
+ /**
30
+ * Gets instance of currently used form group
31
+ * @internal
32
+ */
33
+ get formGroup() {
34
+ var _a, _b, _c, _d;
35
+ return ((_a = this._formGroup) !== null && _a !== void 0 ? _a : (this._formGroup = (_c = (_b = this.formGroupDirective) === null || _b === void 0 ? void 0 : _b.form) !== null && _c !== void 0 ? _c : (_d = this.formGroupName) === null || _d === void 0 ? void 0 : _d.control));
36
+ }
37
+ //######################### public methods - implementation of OnInit #########################
38
+ /**
39
+ * Initialize component
40
+ */
41
+ ngOnInit() {
42
+ this._initSubscriptions.add(this.formGroup.statusChanges.subscribe(state => {
43
+ if (this._lastState != state || state == 'INVALID') {
44
+ this._lastState = state;
45
+ this._changeDetector.detectChanges();
46
+ }
47
+ }));
48
+ }
49
+ //######################### public methods - implementation of OnDestroy #########################
50
+ /**
51
+ * Called when component is destroyed
52
+ */
53
+ ngOnDestroy() {
54
+ var _a;
55
+ (_a = this._initSubscriptions) === null || _a === void 0 ? void 0 : _a.unsubscribe();
56
+ this._initSubscriptions = null;
57
+ }
58
+ }
59
+ GroupErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: GroupErrorsComponent, deps: [{ token: i1.FormGroupDirective, optional: true }, { token: i1.FormGroupName, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
60
+ GroupErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: GroupErrorsComponent, 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\"></div>\n</ng-template>\n\n<ng-container *ngFor=\"let errorName of formGroup.errors | keys | withErrorMessage; let first=first; let last=last; let index=index\">\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, first, last, index, errors: formGroup.errors}\"></ng-container>\n</ng-container>", directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage", "errors"], exportAs: ["errorMessage"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "withErrorMessage": i4.WithErrorMessagePipe, "keys": i5.KeysPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: GroupErrorsComponent, decorators: [{
62
+ type: Component,
63
+ args: [{ selector: 'form-group-errors', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultTemplate let-errorName>\n <div [ngClass]=\"cssClass\" [errorMessage]=\"errorName\" [errors]=\"formGroup.errors\"></div>\n</ng-template>\n\n<ng-container *ngFor=\"let errorName of formGroup.errors | keys | withErrorMessage; let first=first; let last=last; let index=index\">\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, first, last, index, errors: formGroup.errors}\"></ng-container>\n</ng-container>" }]
64
+ }], ctorParameters: function () { return [{ type: i1.FormGroupDirective, decorators: [{
65
+ type: Optional
66
+ }] }, { type: i1.FormGroupName, decorators: [{
67
+ type: Optional
68
+ }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { cssClass: [{
69
+ type: Input
70
+ }], template: [{
71
+ type: ContentChild,
72
+ args: [GroupErrorsTemplateDirective]
73
+ }] } });
74
+ //# sourceMappingURL=groupErrors.component.js.map
@@ -0,0 +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,EAA+B,kBAAkB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,4BAA4B,EAAC,MAAM,kBAAkB,CAAC;;;;;;;AAE9D;;GAEG;AAOH,MAAM,OAAO,oBAAoB;IA8C7B,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;YACI,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;SAC9E;IACL,CAAC;IApCD,2FAA2F;IAE3F;;;OAGG;IACH,IAAW,SAAS;;QAEhB,OAAO,OAAC,IAAI,CAAC,UAAU,oCAAf,IAAI,CAAC,UAAU,GAAM,MAAA,MAAA,IAAI,CAAC,kBAAkB,0CAAE,IAAI,mCAAI,MAAA,IAAI,CAAC,aAAa,0CAAE,OAAO,EAAE,CAAC;IAChG,CAAC;IA6BD,+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;gBACI,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBACxB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;aACxC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;;QAEd,MAAA,IAAI,CAAC,kBAAkB,0CAAE,WAAW,EAAE,CAAC;QACvC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;IACnC,CAAC;;iHAnFQ,oBAAoB;qGAApB,oBAAoB,iIA2Cf,4BAA4B,gDC1D9C,0eAMe;2FDSF,oBAAoB;kBANhC,SAAS;+BAEI,mBAAmB,mBAEZ,uBAAuB,CAAC,MAAM;;0BAiDlC,QAAQ;;0BACR,QAAQ;4EAZd,QAAQ;sBADd,KAAK;gBASC,QAAQ;sBADd,YAAY;uBAAC,4BAA4B","sourcesContent":["import {Component, ChangeDetectionStrategy, Optional, OnInit, OnDestroy, ChangeDetectorRef, Input, ContentChild} from '@angular/core';\nimport {FormControlStatus, FormGroup, FormGroupDirective, FormGroupName} from '@angular/forms';\nimport {Subscription} from 'rxjs';\n\nimport {GroupErrorsTemplateDirective} from '../../directives';\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 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\"></div>\n</ng-template>\n\n<ng-container *ngFor=\"let errorName of formGroup.errors | keys | withErrorMessage; let first=first; let last=last; let index=index\">\n <ng-container *ngTemplateOutlet=\"template?.template ?? defaultTemplate; context: {$implicit: errorName, first, last, index, errors: formGroup.errors}\"></ng-container>\n</ng-container>"]}
@@ -0,0 +1,2 @@
1
+ export * from './groupErrors/groupErrors.component';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/errorMessage/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC","sourcesContent":["export * from './groupErrors/groupErrors.component';\n"]}
@@ -0,0 +1,75 @@
1
+ import { Directive, ElementRef, Inject, Input } from '@angular/core';
2
+ import { STRING_LOCALIZATION } from '@anglr/common';
3
+ import { isBlank, nameof } from '@jscrpt/common';
4
+ import { Subscription } from 'rxjs';
5
+ import { VALIDATION_ERROR_MESSAGES } from '../../../../misc/types';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Directive used for displaying form error message
9
+ */
10
+ export class ErrorMessageDirective {
11
+ //######################### constructor #########################
12
+ constructor(_element, _localization, _errorMessages) {
13
+ this._element = _element;
14
+ this._localization = _localization;
15
+ this._errorMessages = _errorMessages;
16
+ //######################### protected properties #########################
17
+ /**
18
+ * Subscriptions created during initialization
19
+ */
20
+ this._initSubscriptions = new Subscription();
21
+ this._initSubscriptions.add(this._localization.textsChange.subscribe(() => this._showMessage()));
22
+ }
23
+ //######################### public methods - implementation of OnChanges #########################
24
+ /**
25
+ * Called when input value changes
26
+ */
27
+ ngOnChanges(changes) {
28
+ if (nameof('errorName') in changes) {
29
+ this._showMessage();
30
+ }
31
+ }
32
+ //######################### public methods - implementation of OnDestroy #########################
33
+ /**
34
+ * Called when component is destroyed
35
+ */
36
+ ngOnDestroy() {
37
+ var _a;
38
+ (_a = this._initSubscriptions) === null || _a === void 0 ? void 0 : _a.unsubscribe();
39
+ this._initSubscriptions = null;
40
+ }
41
+ //######################### protected methods #########################
42
+ /**
43
+ * Shows message inside of element
44
+ */
45
+ _showMessage() {
46
+ if (isBlank(this.errorName)) {
47
+ this._element.nativeElement.innerHTML = '';
48
+ return;
49
+ }
50
+ const errorMessage = this._errorMessages[this.errorName];
51
+ const message = this._localization.get(errorMessage, this.errors);
52
+ this._element.nativeElement.innerHTML = message;
53
+ }
54
+ }
55
+ ErrorMessageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ErrorMessageDirective, deps: [{ token: i0.ElementRef }, { token: STRING_LOCALIZATION }, { token: VALIDATION_ERROR_MESSAGES }], target: i0.ɵɵFactoryTarget.Directive });
56
+ ErrorMessageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: { errorName: ["errorMessage", "errorName"], errors: "errors" }, exportAs: ["errorMessage"], usesOnChanges: true, ngImport: i0 });
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ErrorMessageDirective, decorators: [{
58
+ type: Directive,
59
+ args: [{
60
+ selector: '[errorMessage]',
61
+ exportAs: 'errorMessage'
62
+ }]
63
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
64
+ type: Inject,
65
+ args: [STRING_LOCALIZATION]
66
+ }] }, { type: undefined, decorators: [{
67
+ type: Inject,
68
+ args: [VALIDATION_ERROR_MESSAGES]
69
+ }] }]; }, propDecorators: { errorName: [{
70
+ type: Input,
71
+ args: ['errorMessage']
72
+ }], errors: [{
73
+ type: Input
74
+ }] } });
75
+ //# sourceMappingURL=errorMessage.directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorMessage.directive.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAsC,MAAM,eAAe,CAAC;AACxG,OAAO,EAAqB,mBAAmB,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAa,OAAO,EAAE,MAAM,EAAmB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,yBAAyB,EAAC,MAAM,wBAAwB,CAAC;;AAEjE;;GAEG;AAMH,MAAM,OAAO,qBAAqB;IAuB9B,iEAAiE;IACjE,YAAsB,QAAiC,EACJ,aAAiC,EAC3B,cAAgC;QAFnE,aAAQ,GAAR,QAAQ,CAAyB;QACJ,kBAAa,GAAb,aAAa,CAAoB;QAC3B,mBAAc,GAAd,cAAc,CAAkB;QAxBzF,0EAA0E;QAE1E;;WAEG;QACO,uBAAkB,GAAiB,IAAI,YAAY,EAAE,CAAC;QAqB5D,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IACrG,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW,CAAC,OAAsB;QAErC,IAAG,MAAM,CAAwB,WAAW,CAAC,IAAI,OAAO,EACxD;YACI,IAAI,CAAC,YAAY,EAAE,CAAC;SACvB;IACL,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;;QAEd,MAAA,IAAI,CAAC,kBAAkB,0CAAE,WAAW,EAAE,CAAC;QACvC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;IACnC,CAAC;IAED,uEAAuE;IAEvE;;OAEG;IACO,YAAY;QAElB,IAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAC1B;YACI,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,SAAS,GAAG,EAAE,CAAC;YAE3C,OAAO;SACV;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzD,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAElE,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC;IACpD,CAAC;;kHAzEQ,qBAAqB,4CAyBV,mBAAmB,aACnB,yBAAyB;sGA1BpC,qBAAqB;2FAArB,qBAAqB;kBALjC,SAAS;mBACV;oBACI,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,cAAc;iBAC3B;;0BA0BgB,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,yBAAyB;4CAXtC,SAAS;sBADf,KAAK;uBAAC,cAAc;gBAOd,MAAM;sBADZ,KAAK","sourcesContent":["import {Directive, ElementRef, Inject, Input, OnChanges, OnDestroy, SimpleChanges} from '@angular/core';\nimport {StringLocalization, STRING_LOCALIZATION} from '@anglr/common';\nimport {Dictionary, isBlank, nameof, StringDictionary} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {VALIDATION_ERROR_MESSAGES} from '../../../../misc/types';\n\n/**\n * Directive used for displaying form error message\n */\n@Directive(\n{\n selector: '[errorMessage]',\n exportAs: 'errorMessage'\n})\nexport class ErrorMessageDirective implements OnChanges, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subscriptions created during initialization\n */\n protected _initSubscriptions: Subscription = new Subscription();\n\n //######################### public properties - inputs #########################\n\n /**\n * Name/code of error message to be displayed\n */\n @Input('errorMessage')\n public errorName: string;\n\n /**\n * Object storing all errors\n */\n @Input()\n public errors: Dictionary;\n\n //######################### constructor #########################\n constructor(protected _element: ElementRef<HTMLElement>,\n @Inject(STRING_LOCALIZATION) protected _localization: StringLocalization,\n @Inject(VALIDATION_ERROR_MESSAGES) protected _errorMessages: StringDictionary,)\n {\n this._initSubscriptions.add(this._localization.textsChange.subscribe(() => this._showMessage()));\n }\n\n //######################### public methods - implementation of OnChanges #########################\n \n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(nameof<ErrorMessageDirective>('errorName') in changes)\n {\n this._showMessage();\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 //######################### protected methods #########################\n\n /**\n * Shows message inside of element\n */\n protected _showMessage(): void\n {\n if(isBlank(this.errorName))\n {\n this._element.nativeElement.innerHTML = '';\n\n return;\n }\n\n const errorMessage = this._errorMessages[this.errorName];\n const message = this._localization.get(errorMessage, this.errors);\n\n this._element.nativeElement.innerHTML = message;\n }\n}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=groupErrorTemplate.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groupErrorTemplate.context.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorTemplate.context.ts"],"names":[],"mappings":"","sourcesContent":["import {Dictionary} from '@jscrpt/common';\n\n/**\n * Context passed to template of group error\n */\nexport interface GroupErrorsTemplateContext\n{\n /**\n * Name/code of error\n */\n $implicit: string;\n\n /**\n * Indication whether rendered error is last\n */\n last: boolean;\n\n /**\n * Indication whether rendered error is first\n */\n first: boolean;\n\n /**\n * Index of currently rendered item\n */\n index: number;\n\n /**\n * Object storing all errors for form group\n */\n errors: Dictionary;\n}"]}
@@ -0,0 +1,27 @@
1
+ import { Directive, TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Obtains template for displaying form group error
5
+ */
6
+ export class GroupErrorsTemplateDirective {
7
+ //######################### constructor #########################
8
+ constructor(template) {
9
+ this.template = template;
10
+ }
11
+ //######################### ng language server #########################
12
+ /**
13
+ * Allows typechecking for template
14
+ */
15
+ static ngTemplateContextGuard(_dir, _ctx) {
16
+ return true;
17
+ }
18
+ }
19
+ GroupErrorsTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: GroupErrorsTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
20
+ GroupErrorsTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: GroupErrorsTemplateDirective, selector: "[formGroupError]", ngImport: i0 });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: GroupErrorsTemplateDirective, decorators: [{
22
+ type: Directive,
23
+ args: [{
24
+ selector: '[formGroupError]'
25
+ }]
26
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
27
+ //# sourceMappingURL=groupErrorsTemplate.directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groupErrorsTemplate.directive.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;;AAIrD;;GAEG;AAKH,MAAM,OAAO,4BAA4B;IAErC,iEAAiE;IACjE,YAAmB,QAAiD;QAAjD,aAAQ,GAAR,QAAQ,CAAyC;IAEpE,CAAC;IAED,wEAAwE;IAExE;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAAkC,EAAE,IAAa;QAE3E,OAAO,IAAI,CAAC;IAChB,CAAC;;yHAfQ,4BAA4B;6GAA5B,4BAA4B;2FAA5B,4BAA4B;kBAJxC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;iBAC/B","sourcesContent":["import {Directive, TemplateRef} from '@angular/core';\n\nimport {GroupErrorsTemplateContext} from './groupErrorTemplate.context';\n\n/**\n * Obtains template for displaying form group error\n */\n@Directive(\n{\n selector: '[formGroupError]'\n})\nexport class GroupErrorsTemplateDirective\n{\n //######################### constructor #########################\n constructor(public template: TemplateRef<GroupErrorsTemplateContext>)\n {\n }\n\n //######################### ng language server #########################\n \n /**\n * Allows typechecking for template\n */\n static ngTemplateContextGuard(_dir: GroupErrorsTemplateDirective, _ctx: unknown): _ctx is GroupErrorsTemplateContext\n {\n return true;\n }\n}"]}
@@ -0,0 +1,4 @@
1
+ export * from './errorMessage/errorMessage.directive';
2
+ export * from './groupErrorsTemplate/groupErrorsTemplate.directive';
3
+ export * from './groupErrorsTemplate/groupErrorTemplate.context';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/errorMessage/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,kDAAkD,CAAC","sourcesContent":["export * from './errorMessage/errorMessage.directive';\nexport * from './groupErrorsTemplate/groupErrorsTemplate.directive';\nexport * from './groupErrorsTemplate/groupErrorTemplate.context';\n"]}
@@ -0,0 +1,5 @@
1
+ export * from './components';
2
+ export * from './directives';
3
+ export * from './modules';
4
+ export * from './pipes';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../forms/src/modules/errorMessage/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","sourcesContent":["export * from './components';\nexport * from './directives';\nexport * from './modules';\nexport * from './pipes';\n"]}
@@ -0,0 +1,47 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { CommonUtilsModule } from '@anglr/common';
4
+ import { GroupErrorsComponent } from '../components';
5
+ import { ErrorMessageDirective, GroupErrorsTemplateDirective } from '../directives';
6
+ import { WithErrorMessagePipe } from '../pipes';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Module for error message directives, pipes and components
10
+ */
11
+ export class ErrorMessageModule {
12
+ }
13
+ ErrorMessageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ErrorMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
14
+ ErrorMessageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ErrorMessageModule, declarations: [WithErrorMessagePipe,
15
+ ErrorMessageDirective,
16
+ GroupErrorsTemplateDirective,
17
+ GroupErrorsComponent], imports: [CommonModule,
18
+ CommonUtilsModule], exports: [WithErrorMessagePipe,
19
+ ErrorMessageDirective,
20
+ GroupErrorsTemplateDirective,
21
+ GroupErrorsComponent] });
22
+ ErrorMessageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ErrorMessageModule, imports: [[
23
+ CommonModule,
24
+ CommonUtilsModule,
25
+ ]] });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: ErrorMessageModule, decorators: [{
27
+ type: NgModule,
28
+ args: [{
29
+ imports: [
30
+ CommonModule,
31
+ CommonUtilsModule,
32
+ ],
33
+ declarations: [
34
+ WithErrorMessagePipe,
35
+ ErrorMessageDirective,
36
+ GroupErrorsTemplateDirective,
37
+ GroupErrorsComponent,
38
+ ],
39
+ exports: [
40
+ WithErrorMessagePipe,
41
+ ErrorMessageDirective,
42
+ GroupErrorsTemplateDirective,
43
+ GroupErrorsComponent,
44
+ ]
45
+ }]
46
+ }] });
47
+ //# sourceMappingURL=errorMessage.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorMessage.module.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/errorMessage/modules/errorMessage.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAEhD,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,qBAAqB,EAAE,4BAA4B,EAAC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAC,oBAAoB,EAAC,MAAM,UAAU,CAAC;;AAE9C;;GAEG;AAuBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAbvB,oBAAoB;QACpB,qBAAqB;QACrB,4BAA4B;QAC5B,oBAAoB,aARpB,YAAY;QACZ,iBAAiB,aAWjB,oBAAoB;QACpB,qBAAqB;QACrB,4BAA4B;QAC5B,oBAAoB;gHAGf,kBAAkB,YAnB3B;YACI,YAAY;YACZ,iBAAiB;SACpB;2FAgBQ,kBAAkB;kBAtB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,iBAAiB;qBACpB;oBACD,YAAY,EACZ;wBACI,oBAAoB;wBACpB,qBAAqB;wBACrB,4BAA4B;wBAC5B,oBAAoB;qBACvB;oBACD,OAAO,EACP;wBACI,oBAAoB;wBACpB,qBAAqB;wBACrB,4BAA4B;wBAC5B,oBAAoB;qBACvB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {CommonUtilsModule} from '@anglr/common';\n\nimport {GroupErrorsComponent} from '../components';\nimport {ErrorMessageDirective, GroupErrorsTemplateDirective} from '../directives';\nimport {WithErrorMessagePipe} from '../pipes';\n\n/**\n * Module for error message directives, pipes and components\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n CommonUtilsModule,\n ],\n declarations:\n [\n WithErrorMessagePipe,\n ErrorMessageDirective,\n GroupErrorsTemplateDirective,\n GroupErrorsComponent,\n ],\n exports:\n [\n WithErrorMessagePipe,\n ErrorMessageDirective,\n GroupErrorsTemplateDirective,\n GroupErrorsComponent,\n ]\n})\nexport class ErrorMessageModule\n{\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './errorMessage.module';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/errorMessage/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './errorMessage.module';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './withErrorMessage/withErrorMessage.pipe';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/errorMessage/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC","sourcesContent":["export * from './withErrorMessage/withErrorMessage.pipe';\n"]}
@@ -0,0 +1,33 @@
1
+ import { Inject, Pipe } from '@angular/core';
2
+ import { VALIDATION_ERROR_MESSAGES } from '../../../../misc/types';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Filters array of errors with messages
6
+ */
7
+ export class WithErrorMessagePipe {
8
+ //######################### constructor #########################
9
+ constructor(_errorMessages) {
10
+ this._errorMessages = _errorMessages;
11
+ }
12
+ //######################### public methods - implementation of PipeTransform #########################
13
+ /**
14
+ * Filters array of errors with messages
15
+ * @param value - Array of error names
16
+ */
17
+ transform(value) {
18
+ if (!(value === null || value === void 0 ? void 0 : value.length)) {
19
+ return value;
20
+ }
21
+ return value.filter(itm => this._errorMessages[itm]);
22
+ }
23
+ }
24
+ WithErrorMessagePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: WithErrorMessagePipe, deps: [{ token: VALIDATION_ERROR_MESSAGES }], target: i0.ɵɵFactoryTarget.Pipe });
25
+ WithErrorMessagePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: WithErrorMessagePipe, name: "withErrorMessage" });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: WithErrorMessagePipe, decorators: [{
27
+ type: Pipe,
28
+ args: [{ name: 'withErrorMessage' }]
29
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
30
+ type: Inject,
31
+ args: [VALIDATION_ERROR_MESSAGES]
32
+ }] }]; } });
33
+ //# sourceMappingURL=withErrorMessage.pipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withErrorMessage.pipe.js","sourceRoot":"","sources":["../../../../../../../forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAC,yBAAyB,EAAC,MAAM,wBAAwB,CAAC;;AAEjE;;GAEG;AAEH,MAAM,OAAO,oBAAoB;IAE7B,iEAAiE;IACjE,YAAyD,cAAgC;QAAhC,mBAAc,GAAd,cAAc,CAAkB;IAEzF,CAAC;IAED,sGAAsG;IAEtG;;;OAGG;IACI,SAAS,CAAC,KAAe;QAE5B,IAAG,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAA,EACjB;YACI,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD,CAAC;;iHArBQ,oBAAoB,kBAGT,yBAAyB;+GAHpC,oBAAoB;2FAApB,oBAAoB;kBADhC,IAAI;mBAAC,EAAC,IAAI,EAAE,kBAAkB,EAAC;;0BAIf,MAAM;2BAAC,yBAAyB","sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {StringDictionary} from '@jscrpt/common';\n\nimport {VALIDATION_ERROR_MESSAGES} from '../../../../misc/types';\n\n/**\n * Filters array of errors with messages\n */\n@Pipe({name: 'withErrorMessage'})\nexport class WithErrorMessagePipe implements PipeTransform\n{\n //######################### constructor #########################\n constructor(@Inject(VALIDATION_ERROR_MESSAGES) protected _errorMessages: StringDictionary)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Filters array of errors with messages\n * @param value - Array of error names\n */\n public transform(value: string[]): string[]\n {\n if(!value?.length)\n {\n return value;\n }\n\n return value.filter(itm => this._errorMessages[itm]);\n }\n}"]}