@anglr/common 22.0.0-beta.20241115045223 → 22.0.0-beta.20250123101933

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 (343) hide show
  1. package/changelog.md +106 -1
  2. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +5 -4
  3. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
  4. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +4 -4
  5. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
  6. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +4 -4
  7. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
  8. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +4 -4
  9. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -1
  10. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +4 -5
  11. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js.map +1 -1
  12. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -4
  13. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -1
  14. package/es2022/forms/src/directives/hasError/hasError.directive.js +3 -4
  15. package/es2022/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  16. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +5 -5
  17. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js.map +1 -1
  18. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +5 -5
  19. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js.map +1 -1
  20. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +4 -4
  21. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js.map +1 -1
  22. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +5 -5
  23. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js.map +1 -1
  24. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +3 -4
  25. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js.map +1 -1
  26. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -4
  27. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js.map +1 -1
  28. package/es2022/forms/src/misc/utils.js +2 -1
  29. package/es2022/forms/src/misc/utils.js.map +1 -1
  30. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +14 -9
  31. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
  32. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +4 -4
  33. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js.map +1 -1
  34. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +4 -4
  35. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js.map +1 -1
  36. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js +5 -13
  37. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js.map +1 -1
  38. package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  39. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js +5 -5
  40. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -1
  41. package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  42. package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  43. package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  44. package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  45. package/es2022/forms/src/modules/hasError.module.js +4 -4
  46. package/es2022/forms/src/modules/numberInput.module.js +7 -7
  47. package/es2022/forms/src/modules/numberInput.module.js.map +1 -1
  48. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +5 -4
  49. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js.map +1 -1
  50. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  51. package/es2022/forms/src/services/submitted/submitted.service.js +3 -3
  52. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +4 -4
  53. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js.map +1 -1
  54. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +4 -4
  55. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js.map +1 -1
  56. package/es2022/hotkeys/src/services/appHotkeys.service.js +3 -3
  57. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +10 -7
  58. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
  59. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +12 -7
  60. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -1
  61. package/es2022/material/src/components/titledDialog/titledDialog.component.js +9 -6
  62. package/es2022/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  63. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -4
  64. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
  65. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -4
  66. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map +1 -1
  67. package/es2022/material/src/modules/confirmationDialog.module.js +6 -15
  68. package/es2022/material/src/modules/confirmationDialog.module.js.map +1 -1
  69. package/es2022/material/src/modules/debugDataCopyClick.module.js +4 -4
  70. package/es2022/material/src/modules/movableTitledDialog.module.js +7 -8
  71. package/es2022/material/src/modules/movableTitledDialog.module.js.map +1 -1
  72. package/es2022/material/src/modules/titledDialog.module.js +5 -16
  73. package/es2022/material/src/modules/titledDialog.module.js.map +1 -1
  74. package/es2022/material/src/services/titledDialog/titledDialog.service.js +3 -3
  75. package/es2022/router/src/services/routing/dataRouter.js +3 -3
  76. package/es2022/router/src/services/routing/dataRouterData.js +3 -3
  77. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +6 -6
  78. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js.map +1 -1
  79. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +4 -4
  80. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js.map +1 -1
  81. package/es2022/src/decorators/asSignal/asSignal.decorator.js.map +1 -1
  82. package/es2022/src/decorators/componentDisplay/componentDisplay.decorator.js.map +1 -1
  83. package/es2022/src/decorators/componentDisplayBlock/componentDisplayBlock.decorator.js.map +1 -1
  84. package/es2022/src/decorators/componentDisplayFlex/componentDisplayFlex.decorator.js.map +1 -1
  85. package/es2022/src/decorators/componentHostStyle/componentHostStyle.decorator.js.map +1 -1
  86. package/es2022/src/decorators/scrollableContent/scrollableContent.decorator.js.map +1 -1
  87. package/es2022/src/decorators/typeProvider/typeProvider.decorator.js +0 -1
  88. package/es2022/src/decorators/typeProvider/typeProvider.decorator.js.map +1 -1
  89. package/es2022/src/decorators/withFullscreenContentCssClass/withFullscreenContentCssClass.decorator.js.map +1 -1
  90. package/es2022/src/directives/bodyRender/bodyRender.directive.js +3 -4
  91. package/es2022/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  92. package/es2022/src/directives/clickOutside/clickOutside.directive.js +4 -5
  93. package/es2022/src/directives/clickOutside/clickOutside.directive.js.map +1 -1
  94. package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js +3 -4
  95. package/es2022/src/directives/ellipsisTooltip/ellipsisTooltip.directive.js.map +1 -1
  96. package/es2022/src/directives/goBack/goBack.directive.js +3 -4
  97. package/es2022/src/directives/goBack/goBack.directive.js.map +1 -1
  98. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -4
  99. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  100. package/es2022/src/directives/positionTo/positionTo.directive.js +4 -5
  101. package/es2022/src/directives/positionTo/positionTo.directive.js.map +1 -1
  102. package/es2022/src/index.js +2 -1
  103. package/es2022/src/index.js.map +1 -1
  104. package/es2022/src/modules/castPipes/modules/castPipes.module.js +5 -5
  105. package/es2022/src/modules/castPipes/modules/castPipes.module.js.map +1 -1
  106. package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  107. package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  108. package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  109. package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  110. package/es2022/src/modules/commonDynamic.module.js +4 -4
  111. package/es2022/src/modules/commonLocalize.module.js +7 -7
  112. package/es2022/src/modules/commonLocalize.module.js.map +1 -1
  113. package/es2022/src/modules/commonUtils.module.js +9 -9
  114. package/es2022/src/modules/commonUtils.module.js.map +1 -1
  115. package/es2022/src/modules/debugData/components/debugData/debugData.component.js +4 -4
  116. package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
  117. package/es2022/src/modules/debugData/modules/debugData.module.js +4 -4
  118. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  119. package/es2022/src/modules/file/components/file/file.component.js +119 -0
  120. package/es2022/src/modules/file/components/file/file.component.js.map +1 -0
  121. package/es2022/src/modules/file/components/fileInput/fileInput.component.js +62 -0
  122. package/es2022/src/modules/file/components/fileInput/fileInput.component.js.map +1 -0
  123. package/es2022/src/modules/file/components/index.js +4 -0
  124. package/es2022/src/modules/file/components/index.js.map +1 -0
  125. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js +59 -0
  126. package/es2022/src/modules/file/components/uploadButton/uploadButton.component.js.map +1 -0
  127. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js +153 -0
  128. package/es2022/src/modules/file/directive/fileInput/fileInput.directive.js.map +1 -0
  129. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.context.js +2 -0
  130. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.context.js.map +1 -0
  131. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js +23 -0
  132. package/es2022/src/modules/file/directive/fileTemplate/fileTemplate.directive.js.map +1 -0
  133. package/es2022/src/modules/file/directive/index.js +4 -0
  134. package/es2022/src/modules/file/directive/index.js.map +1 -0
  135. package/es2022/src/modules/file/index.js +6 -0
  136. package/es2022/src/modules/file/index.js.map +1 -0
  137. package/es2022/src/modules/file/interfaces/fileVisual/fileVisual.interface.js +2 -0
  138. package/es2022/src/modules/file/interfaces/fileVisual/fileVisual.interface.js.map +1 -0
  139. package/es2022/src/modules/file/interfaces/index.js +2 -0
  140. package/es2022/src/modules/file/interfaces/index.js.map +1 -0
  141. package/es2022/src/modules/file/misc/tokens.js +6 -0
  142. package/es2022/src/modules/file/misc/tokens.js.map +1 -0
  143. package/es2022/src/modules/file/modules/file.module.js +40 -0
  144. package/es2022/src/modules/file/modules/file.module.js.map +1 -0
  145. package/es2022/src/modules/file/modules/index.js +2 -0
  146. package/es2022/src/modules/file/modules/index.js.map +1 -0
  147. package/es2022/src/modules/logger/components/console/console.component.js +5 -5
  148. package/es2022/src/modules/logger/components/console/console.component.js.map +1 -1
  149. package/es2022/src/modules/logger/services/console/consoleComponent.service.js +3 -3
  150. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +3 -3
  151. package/es2022/src/modules/logger/services/logger/logger.service.js +3 -3
  152. package/es2022/src/modules/logger/services/rest/restSink.options.js +3 -3
  153. package/es2022/src/modules/logger/types/loggerOptions.js +3 -3
  154. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +9 -7
  155. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  156. package/es2022/src/modules/multiButton/modules/multiButton.module.js +5 -9
  157. package/es2022/src/modules/multiButton/modules/multiButton.module.js.map +1 -1
  158. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +9 -6
  159. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js.map +1 -1
  160. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +4 -4
  161. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  162. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +4 -4
  163. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
  164. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +7 -15
  165. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  166. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  167. package/es2022/src/modules/progressIndicator/services/progressIndicatorOptions.js.map +1 -1
  168. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +7 -5
  169. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
  170. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +5 -5
  171. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  172. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  173. package/es2022/src/modules/tooltip/modules/tooltip.module.js +6 -10
  174. package/es2022/src/modules/tooltip/modules/tooltip.module.js.map +1 -1
  175. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +3 -4
  176. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js.map +1 -1
  177. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +4 -5
  178. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js.map +1 -1
  179. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +8 -9
  180. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js.map +1 -1
  181. package/es2022/src/pipes/isNaN/isNaN.pipe.js +3 -4
  182. package/es2022/src/pipes/isNaN/isNaN.pipe.js.map +1 -1
  183. package/es2022/src/pipes/isPresent/isPresent.pipe.js +3 -4
  184. package/es2022/src/pipes/isPresent/isPresent.pipe.js.map +1 -1
  185. package/es2022/src/pipes/keys/keys.pipe.js +4 -4
  186. package/es2022/src/pipes/keys/keys.pipe.js.map +1 -1
  187. package/es2022/src/pipes/localize/localize.pipe.js +4 -5
  188. package/es2022/src/pipes/localize/localize.pipe.js.map +1 -1
  189. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +5 -5
  190. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -1
  191. package/es2022/src/pipes/numeral/numeral.pipe.js +4 -4
  192. package/es2022/src/pipes/numeral/numeral.pipe.js.map +1 -1
  193. package/es2022/src/pipes/trimText/trimText.pipe.js +4 -4
  194. package/es2022/src/pipes/trimText/trimText.pipe.js.map +1 -1
  195. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +4 -4
  196. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js.map +1 -1
  197. package/es2022/src/services/cookies/cookies.service.js +3 -3
  198. package/es2022/src/services/notifications/defaultNotifications.service.js +3 -3
  199. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  200. package/es2022/src/services/statusCode/statusCode.service.js +3 -3
  201. package/es2022/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  202. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  203. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  204. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  205. package/floating-ui/src/services/floatingUiDomPosition.service.d.ts.map +1 -1
  206. package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.d.ts.map +1 -1
  207. package/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.d.ts.map +1 -1
  208. package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.d.ts.map +1 -1
  209. package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.html +1 -1
  210. package/forms/src/directives/groupHasError/groupHasError.directive.d.ts.map +1 -1
  211. package/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.d.ts.map +1 -1
  212. package/forms/src/directives/hasError/hasError.directive.d.ts.map +1 -1
  213. package/forms/src/directives/numberInput/maxValueNumberValidator.directive.d.ts +1 -1
  214. package/forms/src/directives/numberInput/minValueNumberValidator.directive.d.ts +1 -1
  215. package/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.d.ts +1 -1
  216. package/forms/src/directives/numberInput/numberInputValidator.directive.d.ts +1 -1
  217. package/forms/src/directives/requiredClass/requiredClass.directive.d.ts.map +1 -1
  218. package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts.map +1 -1
  219. package/forms/src/misc/utils.d.ts.map +1 -1
  220. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts +1 -1
  221. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts.map +1 -1
  222. package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.html +4 -3
  223. package/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.d.ts +1 -1
  224. package/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.d.ts +1 -1
  225. package/forms/src/modules/errorMessage/modules/errorMessage.module.d.ts +1 -3
  226. package/forms/src/modules/errorMessage/modules/errorMessage.module.d.ts.map +1 -1
  227. package/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.d.ts +1 -1
  228. package/forms/src/modules/formPipes/modules/formPipes.module.d.ts +1 -1
  229. package/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.d.ts +1 -1
  230. package/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.d.ts +1 -1
  231. package/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.d.ts +1 -1
  232. package/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.d.ts +1 -1
  233. package/forms/src/modules/numberInput.module.d.ts +1 -1
  234. package/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.d.ts.map +1 -1
  235. package/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.d.ts.map +1 -1
  236. package/hotkeys/src/components/cheatSheet/cheatSheet.component.d.ts.map +1 -1
  237. package/material/src/components/confirmationDialog/confirmationDialog.component.d.ts +1 -1
  238. package/material/src/components/confirmationDialog/confirmationDialog.component.d.ts.map +1 -1
  239. package/material/src/components/movableTitledDialog/movableTitledDialog.component.d.ts +1 -1
  240. package/material/src/components/movableTitledDialog/movableTitledDialog.component.d.ts.map +1 -1
  241. package/material/src/components/movableTitledDialog/movableTitledDialog.component.html +1 -1
  242. package/material/src/components/titledDialog/titledDialog.component.d.ts +1 -1
  243. package/material/src/components/titledDialog/titledDialog.component.d.ts.map +1 -1
  244. package/material/src/components/titledDialog/titledDialog.component.html +2 -2
  245. package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts.map +1 -1
  246. package/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.d.ts.map +1 -1
  247. package/material/src/modules/confirmationDialog.module.d.ts +4 -6
  248. package/material/src/modules/confirmationDialog.module.d.ts.map +1 -1
  249. package/material/src/modules/movableTitledDialog.module.d.ts +5 -5
  250. package/material/src/modules/movableTitledDialog.module.d.ts.map +1 -1
  251. package/material/src/modules/titledDialog.module.d.ts +2 -4
  252. package/material/src/modules/titledDialog.module.d.ts.map +1 -1
  253. package/package.json +44 -44
  254. package/router/src/decorators/moduleRoutes.decorator.d.ts.map +1 -1
  255. package/src/components/collapsibleIcon/collapsibleIcon.component.d.ts.map +1 -1
  256. package/src/components/collapsibleTitle/collapsibleTitle.component.d.ts.map +1 -1
  257. package/src/decorators/typeProvider/typeProvider.decorator.d.ts.map +1 -1
  258. package/src/directives/bodyRender/bodyRender.directive.d.ts.map +1 -1
  259. package/src/directives/clickOutside/clickOutside.directive.d.ts +3 -3
  260. package/src/directives/clickOutside/clickOutside.directive.d.ts.map +1 -1
  261. package/src/directives/ellipsisTooltip/ellipsisTooltip.directive.d.ts.map +1 -1
  262. package/src/directives/goBack/goBack.directive.d.ts.map +1 -1
  263. package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
  264. package/src/directives/positionTo/positionTo.directive.d.ts +3 -3
  265. package/src/directives/positionTo/positionTo.directive.d.ts.map +1 -1
  266. package/src/index.d.ts +2 -1
  267. package/src/index.d.ts.map +1 -1
  268. package/src/modules/castPipes/modules/castPipes.module.d.ts +1 -1
  269. package/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.d.ts +1 -1
  270. package/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.d.ts +1 -1
  271. package/src/modules/castPipes/pipes/asRequired/asRequired.pipe.d.ts +1 -1
  272. package/src/modules/castPipes/pipes/castType/castType.pipe.d.ts +1 -1
  273. package/src/modules/commonLocalize.module.d.ts +1 -1
  274. package/src/modules/commonUtils.module.d.ts +1 -1
  275. package/src/modules/debugData/components/debugData/debugData.component.d.ts.map +1 -1
  276. package/src/modules/file/components/file/file.component.css +16 -0
  277. package/src/modules/file/components/file/file.component.d.ts +85 -0
  278. package/src/modules/file/components/file/file.component.d.ts.map +1 -0
  279. package/src/modules/file/components/file/file.component.html +14 -0
  280. package/src/modules/file/components/fileInput/fileInput.component.css +27 -0
  281. package/src/modules/file/components/fileInput/fileInput.component.d.ts +37 -0
  282. package/src/modules/file/components/fileInput/fileInput.component.d.ts.map +1 -0
  283. package/src/modules/file/components/fileInput/fileInput.component.html +7 -0
  284. package/src/modules/file/components/index.d.ts +4 -0
  285. package/src/modules/file/components/index.d.ts.map +1 -0
  286. package/src/modules/file/components/uploadButton/uploadButton.component.css +52 -0
  287. package/src/modules/file/components/uploadButton/uploadButton.component.d.ts +36 -0
  288. package/src/modules/file/components/uploadButton/uploadButton.component.d.ts.map +1 -0
  289. package/src/modules/file/components/uploadButton/uploadButton.component.html +16 -0
  290. package/src/modules/file/directive/fileInput/fileInput.directive.d.ts +69 -0
  291. package/src/modules/file/directive/fileInput/fileInput.directive.d.ts.map +1 -0
  292. package/src/modules/file/directive/fileTemplate/fileTemplate.context.d.ts +30 -0
  293. package/src/modules/file/directive/fileTemplate/fileTemplate.context.d.ts.map +1 -0
  294. package/src/modules/file/directive/fileTemplate/fileTemplate.directive.d.ts +14 -0
  295. package/src/modules/file/directive/fileTemplate/fileTemplate.directive.d.ts.map +1 -0
  296. package/src/modules/file/directive/index.d.ts +4 -0
  297. package/src/modules/file/directive/index.d.ts.map +1 -0
  298. package/src/modules/file/index.d.ts +6 -0
  299. package/src/modules/file/index.d.ts.map +1 -0
  300. package/src/modules/file/interfaces/fileVisual/fileVisual.interface.d.ts +12 -0
  301. package/src/modules/file/interfaces/fileVisual/fileVisual.interface.d.ts.map +1 -0
  302. package/src/modules/file/interfaces/index.d.ts +2 -0
  303. package/src/modules/file/interfaces/index.d.ts.map +1 -0
  304. package/src/modules/file/misc/tokens.d.ts +7 -0
  305. package/src/modules/file/misc/tokens.d.ts.map +1 -0
  306. package/src/modules/file/modules/file.module.d.ts +15 -0
  307. package/src/modules/file/modules/file.module.d.ts.map +1 -0
  308. package/src/modules/file/modules/index.d.ts +2 -0
  309. package/src/modules/file/modules/index.d.ts.map +1 -0
  310. package/src/modules/logger/components/console/console.component.d.ts +3 -3
  311. package/src/modules/logger/components/console/console.component.d.ts.map +1 -1
  312. package/src/modules/multiButton/components/multiButton/multiButton.component.d.ts +1 -1
  313. package/src/modules/multiButton/components/multiButton/multiButton.component.d.ts.map +1 -1
  314. package/src/modules/multiButton/components/multiButton/multiButton.component.html +1 -1
  315. package/src/modules/multiButton/modules/multiButton.module.d.ts +1 -2
  316. package/src/modules/multiButton/modules/multiButton.module.d.ts.map +1 -1
  317. package/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.d.ts +1 -1
  318. package/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.d.ts.map +1 -1
  319. package/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.html +4 -1
  320. package/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.d.ts +1 -1
  321. package/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.d.ts.map +1 -1
  322. package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts +1 -3
  323. package/src/modules/progressIndicator/modules/progressIndicator.module.d.ts.map +1 -1
  324. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +1 -1
  325. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -1
  326. package/src/modules/tooltip/components/tooltip/tooltip.component.html +13 -5
  327. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -1
  328. package/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.d.ts +1 -1
  329. package/src/modules/tooltip/modules/tooltip.module.d.ts +4 -5
  330. package/src/modules/tooltip/modules/tooltip.module.d.ts.map +1 -1
  331. package/src/pipes/displayProperties/displayProperties.pipe.d.ts.map +1 -1
  332. package/src/pipes/firstUppercase/firstUppercase.pipe.d.ts +4 -4
  333. package/src/pipes/firstUppercase/firstUppercase.pipe.d.ts.map +1 -1
  334. package/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.d.ts +8 -8
  335. package/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.d.ts.map +1 -1
  336. package/src/pipes/isNaN/isNaN.pipe.d.ts.map +1 -1
  337. package/src/pipes/isPresent/isPresent.pipe.d.ts.map +1 -1
  338. package/src/pipes/localize/localize.pipe.d.ts +3 -3
  339. package/src/pipes/localize/localize.pipe.d.ts.map +1 -1
  340. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts +3 -3
  341. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts.map +1 -1
  342. package/version.bak +1 -1
  343. package/lerna.json +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"maxValueNumberValidator.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/maxValueNumberValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAA2B,MAAM,eAAe,CAAC;AAClH,OAAO,EAAC,aAAa,EAA4D,MAAM,gBAAgB,CAAC;AACxG,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;;AAEjD;;GAEG;AACH,MAAM,oBAAoB,GAC1B;IACI,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;IAC/D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,gCAAgC;IA2BzC,iEAAiE;IACjE,YAAmC,QAAgB;QAdnD;;WAEG;QACK,iBAAY,GAAY,KAAK,CAAC;QAalC,IAAI,KAAK,CAAC;QAEV,IAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,EACpG,CAAC;YACG,KAAK,GAAG,IAAI,CAAC;QACjB,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED,kGAAkG;IAE3F,WAAW,CAAC,OAAsB;QAErC,IAAG,CAAC,IAAI,CAAC,YAAY,EACrB,CAAC;YACG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;YAEzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,UAAU,IAAI,OAAO,EACzB,CAAC;YACG,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAS,IAAI,CAAC,QAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzG,CAAC;IACL,CAAC;IAED,kGAAkG;IAElG;;;;OAIG;IACI,QAAQ,CAAC,OAAwB;QAEpC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;8GAnEQ,gCAAgC,kBA4BlB,UAAU;kGA5BxB,gCAAgC,2KAF9B,CAAC,oBAAoB,CAAC;;2FAExB,gCAAgC;kBAL5C,SAAS;mBACV;oBACI,QAAQ,EAAE,gHAAgH;oBAC1H,SAAS,EAAE,CAAC,oBAAoB,CAAC;iBACpC;;0BA6BgB,SAAS;2BAAC,UAAU;yCAH1B,QAAQ;sBADd,KAAK","sourcesContent":["import {ExistingProvider, Input, forwardRef, Directive, Attribute, OnChanges, SimpleChanges} from '@angular/core';\nimport {NG_VALIDATORS, AbstractControl, Validator, ValidatorFn, ValidationErrors} from '@angular/forms';\nimport {isBlank, isPresent} from '@jscrpt/common';\n\nimport {Validators} from '../../misc/validators';\n\n/**\n * Validator that is injected with directive MaxValueNumberValidatorDirective\n */\nconst MAX_NUMBER_VALIDATOR = <ExistingProvider>\n{\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxValueNumberValidatorDirective),\n multi: true\n};\n\n/**\n * Directive injecting checking for number max value validator\n */\n@Directive(\n{\n selector: 'input[number][maxValue][formControlName],input[number][maxValue][formControl],input[number][maxValue][ngModel]',\n providers: [MAX_NUMBER_VALIDATOR]\n})\nexport class MaxValueNumberValidatorDirective implements Validator, OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Current max value that is allowed\n */\n private _maxValue: number|null;\n\n /**\n * Function used for validations\n */\n private _validator: ValidatorFn;\n\n /**\n * Indication whether validator was initialized\n */\n private _initialized: boolean = false;\n\n //######################### public properties - inputs #########################\n\n /**\n * Bound max value that is allowed, which overrides value set to attribute maxValue\n */\n @Input()\n public maxValue?: number;\n\n //######################### constructor #########################\n constructor(@Attribute('maxValue') maxValue: string)\n {\n let value;\n\n if(isBlank(maxValue) || maxValue.length < 1 || isNaN(value = parseFloat(maxValue.replace(',', '.'))))\n {\n value = null;\n }\n\n this._maxValue = value;\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(!this._initialized)\n {\n this._initialized = true;\n\n this._validator = Validators.max(this._maxValue);\n }\n\n if ('maxValue' in changes)\n {\n this._validator = Validators.max(isPresent(this.maxValue) ? <number>this.maxValue! : this._maxValue);\n }\n }\n\n //######################### public methods - implementation of Validator #########################\n\n /**\n * Validates input and returns validation result\n * @param control - Control that is being validated\n * @returns validation results\n */\n public validate(control: AbstractControl): ValidationErrors|null\n {\n return this._validator(control);\n }\n}"]}
1
+ {"version":3,"file":"maxValueNumberValidator.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/maxValueNumberValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAA2B,MAAM,eAAe,CAAC;AAClH,OAAO,EAAC,aAAa,EAA4D,MAAM,gBAAgB,CAAC;AACxG,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;;AAEjD;;GAEG;AACH,MAAM,oBAAoB,G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,gCAAgC;kBAL5C,SAAS;mBACV;oBACI,QAAQ,EAAE,gHAAgH;oBAC1H,SAAS,EAAE,CAAC,oBAAoB,CAAC;iBACpC;;0BA6BgB,SAAS;2BAAC,UAAU;yCAH1B,QAAQ;sBADd,KAAK","sourcesContent":["import {ExistingProvider, Input, forwardRef, Directive, Attribute, OnChanges, SimpleChanges} from '@angular/core';\nimport {NG_VALIDATORS, AbstractControl, Validator, ValidatorFn, ValidationErrors} from '@angular/forms';\nimport {isBlank, isPresent} from '@jscrpt/common';\n\nimport {Validators} from '../../misc/validators';\n\n/**\n * Validator that is injected with directive MaxValueNumberValidatorDirective\n */\nconst MAX_NUMBER_VALIDATOR = <ExistingProvider>\n{\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxValueNumberValidatorDirective),\n multi: true,\n};\n\n/**\n * Directive injecting checking for number max value validator\n */\n@Directive(\n{\n selector: 'input[number][maxValue][formControlName],input[number][maxValue][formControl],input[number][maxValue][ngModel]',\n providers: [MAX_NUMBER_VALIDATOR],\n})\nexport class MaxValueNumberValidatorDirective implements Validator, OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Current max value that is allowed\n */\n private _maxValue: number|null;\n\n /**\n * Function used for validations\n */\n private _validator: ValidatorFn;\n\n /**\n * Indication whether validator was initialized\n */\n private _initialized: boolean = false;\n\n //######################### public properties - inputs #########################\n\n /**\n * Bound max value that is allowed, which overrides value set to attribute maxValue\n */\n @Input()\n public maxValue?: number;\n\n //######################### constructor #########################\n constructor(@Attribute('maxValue') maxValue: string)\n {\n let value;\n\n if(isBlank(maxValue) || maxValue.length < 1 || isNaN(value = parseFloat(maxValue.replace(',', '.'))))\n {\n value = null;\n }\n\n this._maxValue = value;\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(!this._initialized)\n {\n this._initialized = true;\n\n this._validator = Validators.max(this._maxValue);\n }\n\n if ('maxValue' in changes)\n {\n this._validator = Validators.max(isPresent(this.maxValue) ? <number>this.maxValue! : this._maxValue);\n }\n }\n\n //######################### public methods - implementation of Validator #########################\n\n /**\n * Validates input and returns validation result\n * @param control - Control that is being validated\n * @returns validation results\n */\n public validate(control: AbstractControl): ValidationErrors|null\n {\n return this._validator(control);\n }\n}"]}
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
9
9
  const MIN_NUMBER_VALIDATOR = {
10
10
  provide: NG_VALIDATORS,
11
11
  useExisting: forwardRef(() => MinValueNumberValidatorDirective),
12
- multi: true
12
+ multi: true,
13
13
  };
14
14
  /**
15
15
  * Directive injecting checking for number min value validator
@@ -46,14 +46,14 @@ 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: "18.0.1", ngImport: i0, type: MinValueNumberValidatorDirective, deps: [{ token: 'minValue', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
50
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", 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 }); }
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 }); }
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: MinValueNumberValidatorDirective, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.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]',
56
- providers: [MIN_NUMBER_VALIDATOR]
56
+ providers: [MIN_NUMBER_VALIDATOR],
57
57
  }]
58
58
  }], ctorParameters: () => [{ type: undefined, decorators: [{
59
59
  type: Attribute,
@@ -1 +1 @@
1
- {"version":3,"file":"minValueNumberValidator.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/minValueNumberValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAA6C,MAAM,eAAe,CAAC;AAClH,OAAO,EAAC,aAAa,EAA4D,MAAM,gBAAgB,CAAC;AACxG,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;;AAEjD;;GAEG;AACH,MAAM,oBAAoB,GAC1B;IACI,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC;IAC/D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,gCAAgC;IA0BzC,iEAAiE;IACjE,YAAmC,QAAgB;QAbnD;;WAEG;QACK,iBAAY,GAAY,KAAK,CAAC;QAYlC,IAAI,KAAK,CAAC;QAEV,IAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,EACpG,CAAC;YACG,KAAK,GAAG,IAAI,CAAC;QACjB,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED,kGAAkG;IAE3F,WAAW,CAAC,OAAsB;QAErC,IAAG,CAAC,IAAI,CAAC,YAAY,EACrB,CAAC;YACG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;YAEzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,UAAU,IAAI,OAAO,EACzB,CAAC;YACG,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAS,IAAI,CAAC,QAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzG,CAAC;IACL,CAAC;IAED,kGAAkG;IAElG;;;;OAIG;IACI,QAAQ,CAAC,OAAwB;QAEpC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;8GAlEQ,gCAAgC,kBA2BlB,UAAU;kGA3BxB,gCAAgC,2KAF9B,CAAC,oBAAoB,CAAC;;2FAExB,gCAAgC;kBAL5C,SAAS;mBACV;oBACI,QAAQ,EAAE,gHAAgH;oBAC1H,SAAS,EAAE,CAAC,oBAAoB,CAAC;iBACpC;;0BA4BgB,SAAS;2BAAC,UAAU;yCAH1B,QAAQ;sBADd,KAAK","sourcesContent":["import {forwardRef, Directive, Attribute, Input, ExistingProvider, OnChanges, SimpleChanges} from '@angular/core';\nimport {NG_VALIDATORS, AbstractControl, Validator, ValidatorFn, ValidationErrors} from '@angular/forms';\nimport {isBlank, isPresent} from '@jscrpt/common';\n\nimport {Validators} from '../../misc/validators';\n\n/**\n * Validator that is injected with directive MinValueNumberValidatorDirective\n */\nconst MIN_NUMBER_VALIDATOR = <ExistingProvider>\n{\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinValueNumberValidatorDirective),\n multi: true\n};\n\n/**\n * Directive injecting checking for number min value validator\n */\n@Directive(\n{\n selector: 'input[number][minValue][formControlName],input[number][minValue][formControl],input[number][minValue][ngModel]',\n providers: [MIN_NUMBER_VALIDATOR]\n})\nexport class MinValueNumberValidatorDirective implements Validator, OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Current min value that is allowed\n */\n private _minValue: number|null;\n\n /**\n * Function used for validations\n */\n private _validator: ValidatorFn;\n\n /**\n * Indication whether validator was initialized\n */\n private _initialized: boolean = false;\n\n //######################### public properties - inputs #########################\n /**\n * Bound min value that is allowed, which overrides value set to attribute minValue\n */\n @Input()\n public minValue?: number;\n\n //######################### constructor #########################\n constructor(@Attribute('minValue') minValue: string)\n {\n let value;\n\n if(isBlank(minValue) || minValue.length < 1 || isNaN(value = parseFloat(minValue.replace(',', '.'))))\n {\n value = null;\n }\n\n this._minValue = value;\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(!this._initialized)\n {\n this._initialized = true;\n\n this._validator = Validators.min(this._minValue);\n }\n\n if ('minValue' in changes)\n {\n this._validator = Validators.min(isPresent(this.minValue) ? <number>this.minValue! : this._minValue);\n }\n }\n\n //######################### public methods - implementation of Validator #########################\n\n /**\n * Validates input and returns validation result\n * @param control - Control that is being validated\n * @returns validation results\n */\n public validate(control: AbstractControl): ValidationErrors|null\n {\n return this._validator(control);\n }\n}"]}
1
+ {"version":3,"file":"minValueNumberValidator.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/minValueNumberValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAA6C,MAAM,eAAe,CAAC;AAClH,OAAO,EAAC,aAAa,EAA4D,MAAM,gBAAgB,CAAC;AACxG,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAC,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kBA2BlB,UAAU;kGA3BxB,gCAAgC,+LAF9B,CAAC,oBAAoB,CAAC;;2FAExB,gCAAgC;kBAL5C,SAAS;mBACV;oBACI,QAAQ,EAAE,gHAAgH;oBAC1H,SAAS,EAAE,CAAC,oBAAoB,CAAC;iBACpC;;0BA4BgB,SAAS;2BAAC,UAAU;yCAH1B,QAAQ;sBADd,KAAK","sourcesContent":["import {forwardRef, Directive, Attribute, Input, ExistingProvider, OnChanges, SimpleChanges} from '@angular/core';\nimport {NG_VALIDATORS, AbstractControl, Validator, ValidatorFn, ValidationErrors} from '@angular/forms';\nimport {isBlank, isPresent} from '@jscrpt/common';\n\nimport {Validators} from '../../misc/validators';\n\n/**\n * Validator that is injected with directive MinValueNumberValidatorDirective\n */\nconst MIN_NUMBER_VALIDATOR = <ExistingProvider>\n{\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinValueNumberValidatorDirective),\n multi: true,\n};\n\n/**\n * Directive injecting checking for number min value validator\n */\n@Directive(\n{\n selector: 'input[number][minValue][formControlName],input[number][minValue][formControl],input[number][minValue][ngModel]',\n providers: [MIN_NUMBER_VALIDATOR],\n})\nexport class MinValueNumberValidatorDirective implements Validator, OnChanges\n{\n //######################### private fields #########################\n\n /**\n * Current min value that is allowed\n */\n private _minValue: number|null;\n\n /**\n * Function used for validations\n */\n private _validator: ValidatorFn;\n\n /**\n * Indication whether validator was initialized\n */\n private _initialized: boolean = false;\n\n //######################### public properties - inputs #########################\n /**\n * Bound min value that is allowed, which overrides value set to attribute minValue\n */\n @Input()\n public minValue?: number;\n\n //######################### constructor #########################\n constructor(@Attribute('minValue') minValue: string)\n {\n let value;\n\n if(isBlank(minValue) || minValue.length < 1 || isNaN(value = parseFloat(minValue.replace(',', '.'))))\n {\n value = null;\n }\n\n this._minValue = value;\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(!this._initialized)\n {\n this._initialized = true;\n\n this._validator = Validators.min(this._minValue);\n }\n\n if ('minValue' in changes)\n {\n this._validator = Validators.min(isPresent(this.minValue) ? <number>this.minValue! : this._minValue);\n }\n }\n\n //######################### public methods - implementation of Validator #########################\n\n /**\n * Validates input and returns validation result\n * @param control - Control that is being validated\n * @returns validation results\n */\n public validate(control: AbstractControl): ValidationErrors|null\n {\n return this._validator(control);\n }\n}"]}
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  const NUMBER_INPUT_VALUE_ACCESSOR = {
9
9
  provide: NG_VALUE_ACCESSOR,
10
10
  useExisting: forwardRef(() => NumberInputControlValueAccessor),
11
- multi: true
11
+ multi: true,
12
12
  };
13
13
  /**
14
14
  * Value accessor for getting and setting values for number inputs
@@ -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: "18.0.1", 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: "18.0.1", 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()" }, properties: { "disabled": "disabled" } }, providers: [NUMBER_INPUT_VALUE_ACCESSOR], ngImport: i0 }); }
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 }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: NumberInputControlValueAccessor, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.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]',
@@ -1 +1 @@
1
- {"version":3,"file":"numberInputControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/numberInputControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAoB,UAAU,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAC,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAEvC;;GAEG;AACH,MAAM,2BAA2B,GACjC;IACI,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;IAC9D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAaH,MAAM,OAAO,+BAA+B;IAgBxC,iEAAiE;IACjE,YAAoB,SAAoB,EAAU,WAAuB;QAArD,cAAS,GAAT,SAAS,CAAW;QAAU,gBAAW,GAAX,WAAW,CAAY;QAfzE,uEAAuE;QAEhE,aAAQ,GAAG,CAAC,CAAM,EAAE,EAAE,GAAE,CAAC,CAAC;QAEjC;;WAEG;QACI,cAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAE5B;;WAEG;QACI,aAAQ,GAAY,KAAK,CAAC;IAKjC,CAAC;IAED,6GAA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cesContent":["import {Directive, ExistingProvider, forwardRef, Renderer2, ElementRef} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';\nimport {isBlank} from '@jscrpt/common';\n\n/**\n * Value accessor provider for number inputs\n */\nconst NUMBER_INPUT_VALUE_ACCESSOR = <ExistingProvider>\n{\n provide: NG_VALUE_ACCESSOR, \n useExisting: forwardRef(() => NumberInputControlValueAccessor), \n multi: true\n};\n\n/**\n * Value accessor for getting and setting values for number inputs\n */\n@Directive(\n{\n selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',\n providers: [NUMBER_INPUT_VALUE_ACCESSOR],\n host: \n {\n '(change)': 'onChange($event.target.value)',\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()',\n '[disabled]': 'disabled',\n }\n})\nexport class NumberInputControlValueAccessor implements ControlValueAccessor\n{\n //######################### public properties #########################\n \n public onChange = (_: any) => {};\n \n /**\n * Method that is called when picker was touched\n */\n public onTouched = () => {};\n\n /**\n * Indication whether is number input disabled\n */\n public disabled: boolean = false;\n \n //######################### constructor #########################\n constructor(private _renderer: Renderer2, private _elementRef: ElementRef)\n {\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * @inheritdoc\n */\n public writeValue(value: any): void\n {\n this._renderer.setProperty(this._elementRef.nativeElement, 'value', value);\n }\n\n /**\n * @inheritdoc\n */\n public registerOnChange(fn: (data: any) => any): void\n {\n this.onChange = (value: string) => \n { \n if(isBlank(value) || value == '')\n {\n fn(null);\n \n return;\n }\n \n //removing all spaces\n value = value.replace(/\\s+/g, '');\n \n if(!/^[+-]?\\d+(?:[,.]\\d+)?$/g.test(value))\n {\n fn(NaN);\n \n return;\n }\n \n fn(parseFloat(value.replace(',', '.'))); \n };\n }\n\n /**\n * @inheritdoc\n */\n public registerOnTouched(fn: () => any): void\n {\n this.onTouched = fn;\n }\n\n /**\n * @inheritdoc\n */\n public setDisabledState?(isDisabled: boolean): void\n {\n this.disabled = isDisabled;\n }\n}\n"]}
1
+ {"version":3,"file":"numberInputControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/numberInputControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAoB,UAAU,EAAE,SAAS,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAC,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAEvC;;GAEG;AACH,MAAM,2BAA2B,GACjC;IACI,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;IAC9D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAaH,MAAM,OAAO,+BAA+B;IAgBxC,iEAAiE;IACjE,YAAoB,SAAoB,EAAU,WAAuB;QAArD,cAAS,GAAT,SAAS,CAAW;QAAU,gBAAW,GAAX,WAAW,CAAY;QAfzE,uEAAuE;QAEhE,aAAQ,GAAG,CAAC,CAAM,EAAE,EAAE,GAAE,CAAC,CAAC;QAEjC;;WAEG;QACI,cAAS,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QAE5B;;WAEG;QACI,aAAQ,GAAY,KAAK,CAAC;IAKjC,CAAC;IAED,6GAA6G;IAE7G;;OAEG;IACI,UAAU,CAAC,KAAU;QAExB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACI,gBAAgB,CAAC,EAAsB;QAE1C,IAAI,CAAC,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE;YAE9B,IAAG,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE,EAChC,CAAC;gBACG,EAAE,CAAC,IAAI,CAAC,CAAC;gBAET,OAAO;YACX,CAAC;YAED,qBAAqB;YACrB,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAElC,IAAG,CAAC,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,EACzC,CAAC;gBACG,EAAE,CAAC,GAAG,CAAC,CAAC;gBAER,OAAO;YACX,CAAC;YAED,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC;IACN,CAAC;IAED;;OAEG;IACI,iBAAiB,CAAC,EAAa;QAElC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,gBAAgB,CAAE,UAAmB;QAExC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC;IAC/B,CAAC;8GAzEQ,+BAA+B;kGAA/B,+BAA+B,4SAT7B,CAAC,2BAA2B,CAAC;;2FAS/B,+BAA+B;kBAZ3C,SAAS;mBACV;oBACI,QAAQ,EAAE,kFAAkF;oBAC5F,SAAS,EAAE,CAAC,2BAA2B,CAAC;oBACxC,IAAI,EACJ;wBACI,UAAU,EAAE,+BAA+B;wBAC3C,SAAS,EAAE,+BAA+B;wBAC1C,QAAQ,EAAE,aAAa;wBACvB,YAAY,EAAE,UAAU;qBAC3B;iBACJ","sourcesContent":["import {Directive, ExistingProvider, forwardRef, Renderer2, ElementRef} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';\nimport {isBlank} from '@jscrpt/common';\n\n/**\n * Value accessor provider for number inputs\n */\nconst NUMBER_INPUT_VALUE_ACCESSOR = <ExistingProvider>\n{\n provide: NG_VALUE_ACCESSOR, \n useExisting: forwardRef(() => NumberInputControlValueAccessor), \n multi: true,\n};\n\n/**\n * Value accessor for getting and setting values for number inputs\n */\n@Directive(\n{\n selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',\n providers: [NUMBER_INPUT_VALUE_ACCESSOR],\n host: \n {\n '(change)': 'onChange($event.target.value)',\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()',\n '[disabled]': 'disabled',\n }\n})\nexport class NumberInputControlValueAccessor implements ControlValueAccessor\n{\n //######################### public properties #########################\n \n public onChange = (_: any) => {};\n \n /**\n * Method that is called when picker was touched\n */\n public onTouched = () => {};\n\n /**\n * Indication whether is number input disabled\n */\n public disabled: boolean = false;\n \n //######################### constructor #########################\n constructor(private _renderer: Renderer2, private _elementRef: ElementRef)\n {\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * @inheritdoc\n */\n public writeValue(value: any): void\n {\n this._renderer.setProperty(this._elementRef.nativeElement, 'value', value);\n }\n\n /**\n * @inheritdoc\n */\n public registerOnChange(fn: (data: any) => any): void\n {\n this.onChange = (value: string) => \n { \n if(isBlank(value) || value == '')\n {\n fn(null);\n \n return;\n }\n \n //removing all spaces\n value = value.replace(/\\s+/g, '');\n \n if(!/^[+-]?\\d+(?:[,.]\\d+)?$/g.test(value))\n {\n fn(NaN);\n \n return;\n }\n \n fn(parseFloat(value.replace(',', '.'))); \n };\n }\n\n /**\n * @inheritdoc\n */\n public registerOnTouched(fn: () => any): void\n {\n this.onTouched = fn;\n }\n\n /**\n * @inheritdoc\n */\n public setDisabledState?(isDisabled: boolean): void\n {\n this.disabled = isDisabled;\n }\n}\n"]}
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  const NUMBER_VALIDATOR = {
9
9
  provide: NG_VALIDATORS,
10
10
  useExisting: forwardRef(() => NumberInputValidatorDirective),
11
- multi: true
11
+ multi: true,
12
12
  };
13
13
  /**
14
14
  * Is number directive injecting checking for number validator
@@ -23,14 +23,14 @@ 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: "18.0.1", ngImport: i0, type: NumberInputValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
27
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: NumberInputValidatorDirective, 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: "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 }); }
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: NumberInputValidatorDirective, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.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]',
33
- providers: [NUMBER_VALIDATOR]
33
+ providers: [NUMBER_VALIDATOR],
34
34
  }]
35
35
  }] });
36
36
  //# sourceMappingURL=numberInputValidator.directive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"numberInputValidator.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/numberInputValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,aAAa,EAA+C,MAAM,gBAAgB,CAAC;AAE3F,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;;AAEjD;;GAEG;AACH,MAAM,gBAAgB,GACtB;IACI,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;IAC5D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,6BAA6B;IAEtC,kGAAkG;IAElG;;;;OAIG;IACI,QAAQ,CAAC,OAAwB;QAEpC,OAAO,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;8GAZQ,6BAA6B;kGAA7B,6BAA6B,2GAF3B,CAAC,gBAAgB,CAAC;;2FAEpB,6BAA6B;kBALzC,SAAS;mBACV;oBACI,QAAQ,EAAE,kFAAkF;oBAC5F,SAAS,EAAE,CAAC,gBAAgB,CAAC;iBAChC","sourcesContent":["import {ExistingProvider, forwardRef, Directive} from '@angular/core';\nimport {NG_VALIDATORS, AbstractControl, Validator, ValidationErrors} from '@angular/forms';\n\nimport {Validators} from '../../misc/validators';\n\n/**\n * Validator that is injected with directive NumberInputValidatorDirective\n */\nconst NUMBER_VALIDATOR = <ExistingProvider>\n{\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NumberInputValidatorDirective),\n multi: true\n};\n\n/**\n * Is number directive injecting checking for number validator\n */\n@Directive(\n{\n selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',\n providers: [NUMBER_VALIDATOR]\n})\nexport class NumberInputValidatorDirective implements Validator\n{\n //######################### public methods - implementation of Validator #########################\n\n /**\n * Validates input and returns validation result\n * @param control - Control that is being validated\n * @returns validation results\n */\n public validate(control: AbstractControl): ValidationErrors|null\n {\n return Validators.number(control);\n }\n}"]}
1
+ {"version":3,"file":"numberInputValidator.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/numberInput/numberInputValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,aAAa,EAA+C,MAAM,gBAAgB,CAAC;AAE3F,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;;AAEjD;;GAEG;AACH,MAAM,gBAAgB,GACtB;IACI,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;IAC5D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,6BAA6B;IAEtC,kGAAkG;IAElG;;;;OAIG;IACI,QAAQ,CAAC,OAAwB;QAEpC,OAAO,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;8GAZQ,6BAA6B;kGAA7B,6BAA6B,+HAF3B,CAAC,gBAAgB,CAAC;;2FAEpB,6BAA6B;kBALzC,SAAS;mBACV;oBACI,QAAQ,EAAE,kFAAkF;oBAC5F,SAAS,EAAE,CAAC,gBAAgB,CAAC;iBAChC","sourcesContent":["import {ExistingProvider, forwardRef, Directive} from '@angular/core';\nimport {NG_VALIDATORS, AbstractControl, Validator, ValidationErrors} from '@angular/forms';\n\nimport {Validators} from '../../misc/validators';\n\n/**\n * Validator that is injected with directive NumberInputValidatorDirective\n */\nconst NUMBER_VALIDATOR = <ExistingProvider>\n{\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NumberInputValidatorDirective),\n multi: true,\n};\n\n/**\n * Is number directive injecting checking for number validator\n */\n@Directive(\n{\n selector: 'input[number][formControlName],input[number][formControl],input[number][ngModel]',\n providers: [NUMBER_VALIDATOR],\n})\nexport class NumberInputValidatorDirective implements Validator\n{\n //######################### public methods - implementation of Validator #########################\n\n /**\n * Validates input and returns validation result\n * @param control - Control that is being validated\n * @returns validation results\n */\n public validate(control: AbstractControl): ValidationErrors|null\n {\n return Validators.number(control);\n }\n}"]}
@@ -44,14 +44,13 @@ 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: "18.0.1", 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: "18.0.1", 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: "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 }); }
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: RequiredClassDirective, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: RequiredClassDirective, decorators: [{
51
51
  type: Directive,
52
52
  args: [{
53
53
  selector: '[requiredClass][formControlName],[requiredClass][formControl]',
54
- standalone: true,
55
54
  }]
56
55
  }], ctorParameters: () => [{ type: i1.FormControlDirective, decorators: [{
57
56
  type: Optional
@@ -1 +1 @@
1
- {"version":3,"file":"requiredClass.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/requiredClass/requiredClass.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAiB,SAAS,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAE,eAAe,EAA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,UAAU,EAAE,IAAI;iBACnB;;0BAsBgB,QAAQ;;0BACR,QAAQ;0FAJd,aAAa;sBADnB,KAAK;uBAAC,EAAC,SAAS,EAAE,sBAAsB,EAAC","sourcesContent":["import {Directive, Optional, AfterViewInit, Renderer2, Input, ElementRef} from '@angular/core';\nimport {FormControlDirective, FormControlName, FormControl, Validators} from '@angular/forms';\n\n/**\n * Transforms empty class name to default class name 'required'\n */\nfunction requiredClassTransform(value: string): string\n{\n return value || 'required';\n}\n\n/**\n * Required class directive adds required class to element if it has required validator\n */\n@Directive(\n{\n selector: '[requiredClass][formControlName],[requiredClass][formControl]',\n standalone: true,\n})\nexport class RequiredClassDirective implements AfterViewInit\n{\n //######################### protected properties #########################\n\n /**\n * Gets control which was assigned to this element\n */\n protected get control(): FormControl\n {\n return (this._formControl && this._formControl.control) || (this._formControlName && this._formControlName.control);\n }\n\n //######################### public properties - inputs #########################\n\n /**\n * Name of required css class that should be applied\n */\n @Input({transform: requiredClassTransform})\n public requiredClass: string = 'required';\n\n //######################### constructor #########################\n constructor(@Optional() protected _formControl: FormControlDirective,\n @Optional() protected _formControlName: FormControlName,\n protected _renderer: Renderer2,\n protected _element: ElementRef<HTMLElement>,)\n {\n }\n\n //######################### public methods - implementation of AfterViewInit #########################\n \n /**\n * Called when view was initialized\n */\n public ngAfterViewInit(): void\n {\n const required = this.control?.hasValidator(Validators.required);\n\n if(required)\n {\n this._renderer.addClass(this._element.nativeElement, this.requiredClass);\n }\n else\n {\n this._renderer.removeClass(this._element.nativeElement, this.requiredClass);\n }\n }\n}"]}
1
+ {"version":3,"file":"requiredClass.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/requiredClass/requiredClass.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAiB,SAAS,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,oBAAoB,EAAE,eAAe,EAAe,UAAU,EAAC,MAAM,g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;;0BACR,QAAQ;0FAJd,aAAa;sBADnB,KAAK;uBAAC,EAAC,SAAS,EAAE,sBAAsB,EAAC","sourcesContent":["import {Directive, Optional, AfterViewInit, Renderer2, Input, ElementRef} from '@angular/core';\nimport {FormControlDirective, FormControlName, FormControl, Validators} from '@angular/forms';\n\n/**\n * Transforms empty class name to default class name 'required'\n */\nfunction requiredClassTransform(value: string): string\n{\n return value || 'required';\n}\n\n/**\n * Required class directive adds required class to element if it has required validator\n */\n@Directive(\n{\n selector: '[requiredClass][formControlName],[requiredClass][formControl]',\n})\nexport class RequiredClassDirective implements AfterViewInit\n{\n //######################### protected properties #########################\n\n /**\n * Gets control which was assigned to this element\n */\n protected get control(): FormControl\n {\n return (this._formControl && this._formControl.control) || (this._formControlName && this._formControlName.control);\n }\n\n //######################### public properties - inputs #########################\n\n /**\n * Name of required css class that should be applied\n */\n @Input({transform: requiredClassTransform})\n public requiredClass: string = 'required';\n\n //######################### constructor #########################\n constructor(@Optional() protected _formControl: FormControlDirective,\n @Optional() protected _formControlName: FormControlName,\n protected _renderer: Renderer2,\n protected _element: ElementRef<HTMLElement>,)\n {\n }\n\n //######################### public methods - implementation of AfterViewInit #########################\n \n /**\n * Called when view was initialized\n */\n public ngAfterViewInit(): void\n {\n const required = this.control?.hasValidator(Validators.required);\n\n if(required)\n {\n this._renderer.addClass(this._element.nativeElement, this.requiredClass);\n }\n else\n {\n this._renderer.removeClass(this._element.nativeElement, this.requiredClass);\n }\n }\n}"]}
@@ -10,14 +10,13 @@ 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: "18.0.1", 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: "18.0.1", type: ValidationErrorsContainerDirective, isStandalone: true, selector: "[validationErrorsContainer]", ngImport: i0 }); }
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 }); }
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ValidationErrorsContainerDirective, decorators: [{
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ValidationErrorsContainerDirective, decorators: [{
17
17
  type: Directive,
18
18
  args: [{
19
19
  selector: '[validationErrorsContainer]',
20
- standalone: true,
21
20
  }]
22
21
  }], ctorParameters: () => [{ type: i1.ValidationErrorsContainerView, decorators: [{
23
22
  type: SkipSelf
@@ -1 +1 @@
1
- {"version":3,"file":"validationErrorsContainer.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAEpE,OAAO,EAAC,6BAA6B,EAAC,MAAM,0CAA0C,CAAC;;;AAEvF;;GAEG;AAMH,MAAM,OAAO,kCAAkC;IAE3C,iEAAiE;IACjE,YAAwB,aAA4C,EACxD,aAA+B;QAEvC,aAAa,CAAC,aAAa,GAAG,aAAa,CAAC;IAChD,CAAC;8GAPQ,kCAAkC;kGAAlC,kCAAkC;;2FAAlC,kCAAkC;kBAL9C,SAAS;mBACV;oBACI,QAAQ,EAAE,6BAA6B;oBACvC,UAAU,EAAE,IAAI;iBACnB;;0BAIgB,QAAQ","sourcesContent":["import {Directive, SkipSelf, ViewContainerRef} from '@angular/core';\n\nimport {ValidationErrorsContainerView} from '../../misc/validationErrorsContainerView';\n\n/**\n * Directive that sets view container for validation errors for current element\n */\n@Directive(\n{\n selector: '[validationErrorsContainer]',\n standalone: true,\n})\nexport class ValidationErrorsContainerDirective\n{\n //######################### constructor #########################\n constructor(@SkipSelf() containerView: ValidationErrorsContainerView,\n viewContainer: ViewContainerRef,)\n {\n containerView.viewContainer = viewContainer;\n }\n}"]}
1
+ {"version":3,"file":"validationErrorsContainer.directive.js","sourceRoot":"","sources":["../../../../../forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAEpE,OAAO,EAAC,6BAA6B,EAAC,MAAM,0CAA0C,CAAC;;;AAEvF;;GAEG;AAKH,MAAM,OAAO,kCAAkC;IAE3C,iEAAiE;IACjE,YAAwB,aAA4C,EACxD,aAA+B;QAEvC,aAAa,CAAC,aAAa,GAAG,aAAa,CAAC;IAChD,CAAC;8GAPQ,kCAAkC;kGAAlC,kCAAkC;;2FAAlC,kCAAkC;kBAJ9C,SAAS;mBACV;oBACI,QAAQ,EAAE,6BAA6B;iBAC1C;;0BAIgB,QAAQ","sourcesContent":["import {Directive, SkipSelf, ViewContainerRef} from '@angular/core';\n\nimport {ValidationErrorsContainerView} from '../../misc/validationErrorsContainerView';\n\n/**\n * Directive that sets view container for validation errors for current element\n */\n@Directive(\n{\n selector: '[validationErrorsContainer]',\n})\nexport class ValidationErrorsContainerDirective\n{\n //######################### constructor #########################\n constructor(@SkipSelf() containerView: ValidationErrorsContainerView,\n viewContainer: ViewContainerRef,)\n {\n containerView.viewContainer = viewContainer;\n }\n}"]}
@@ -1,4 +1,5 @@
1
- import { deserializeFromUrlQuery, extend, isJsObject } from '@jscrpt/common';
1
+ import { deserializeFromUrlQuery, isJsObject } from '@jscrpt/common';
2
+ import { extend } from '@jscrpt/common/extend';
2
3
  /**
3
4
  * Gets indication whether controls have errors, with custom indication of submitted
4
5
  * @param form - Form containing controls
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../forms/src/misc/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,uBAAuB,EAAc,MAAM,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,IAAsB,EAAE,QAAkB,EAAE,YAAqB,KAAK;IAEjG,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,IAAI,gBAAgB,GAAG,KAAK,CAAC;IAE7B,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EACvC,CAAC;QACG,IAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAC9B,CAAC;YACG,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,cAAc,GAAG,cAAc,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QACrE,gBAAgB,GAAG,gBAAgB,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5E,CAAC;IAED,OAAO,cAAc,IAAI,CAAC,gBAAgB,IAAI,SAAS,CAAC,CAAC;AAC7D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAsB,EAAE,OAAe,EAAE,SAAmB,EAAE,EAAE,YAAqB,KAAK;IAExH,IAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAC1B,CAAC;QACG,OAAO,IAAI,CAAC;IAChB,CAAC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iBAAiB,CAAU,YAAqB,EAAE,WAAmB,EAAE,OAAqD;IAExI,IACA,CAAC;QACG,OAAO,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,uBAAuB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IACrF,CAAC;IACD,OAAM,CAAC,EACP,CAAC;QACG,OAAO,CAAC,IAAI,CAAC,wDAAwD,GAAG,CAAC,CAAC,CAAC;QAE3E,OAAO,YAAY,CAAC;IACxB,CAAC;AACL,CAAC","sourcesContent":["import {NgForm, FormGroup} from '@angular/forms';\nimport {deserializeFromUrlQuery, Dictionary, extend, isJsObject} from '@jscrpt/common';\n\n/**\n * Gets indication whether controls have errors, with custom indication of submitted\n * @param form - Form containing controls\n * @param controls - Array of controls names to be checked for errors\n * @param submitted - Indication whether form was submitted\n */\nexport function hasErrorCustom(form: NgForm|FormGroup, controls: string[], submitted: boolean = false): boolean\n{\n let conditionValid = false;\n let conditionChanged = false;\n\n for(let x = 0; x < controls.length; x++)\n {\n if(!form.controls[controls[x]])\n {\n return false;\n }\n\n conditionValid = conditionValid || !form.controls[controls[x]].valid;\n conditionChanged = conditionChanged || form.controls[controls[x]].dirty;\n }\n\n return conditionValid && (conditionChanged || submitted);\n}\n\n/**\n * Gets indication whether hide alerts or not for control, with custom indication of submitted\n * @param form - Form containing controls\n * @param control - Controls name that will be checked\n * @param errors - Array of validation errors to be checked for existance\n * @param submitted - Indication whether form was submitted\n */\nexport function alertHiddenCustom(form: NgForm|FormGroup, control: string, errors: string[] = [], submitted: boolean = false): boolean\n{\n if(!form.controls[control])\n {\n return true;\n }\n\n let requestedErrors = false;\n\n errors.forEach(errorType =>\n {\n requestedErrors = requestedErrors || (!!form.controls[control].errors && !!(<{[key: string]: any}>form.controls[control].errors)[errorType]);\n });\n\n return form.controls[control].valid || !requestedErrors || (!form.controls[control].dirty && !submitted);\n}\n\n/**\n * Gets indication whether controls have errors\n * @param form - Form containing controls\n * @param controls - Array of controls names to be checked for errors\n */\nexport function hasError(form: NgForm, controls: string[]): boolean\n{\n let conditionValid = false;\n let conditionChanged = false;\n\n for(let x = 0; x < controls.length; x++)\n {\n if(!form.controls[controls[x]])\n {\n return false;\n }\n\n conditionValid = conditionValid || !form.controls[controls[x]].valid;\n conditionChanged = conditionChanged || form.controls[controls[x]].dirty;\n }\n\n return conditionValid && (conditionChanged || form.submitted);\n}\n\n/**\n * Gets indication whether hide alerts or not for control\n * @param form - Form containing controls\n * @param control - Controls name that will be checked\n * @param errors - Array of validation errors to be checked for existance\n */\nexport function alertHidden(form: NgForm, control: string, errors: string[] = []): boolean\n{\n if(!form.controls[control])\n {\n return true;\n }\n\n let requestedErrors = false;\n\n errors.forEach(errorType =>\n {\n requestedErrors = requestedErrors || (!!form.controls[control].errors && !!(<{[key: string]: any}>form.controls[control].errors)[errorType]);\n });\n\n return form.controls[control].valid || !requestedErrors || (!form.controls[control].dirty && !form.submitted);\n}\n\n/**\n * Prepares object for form builder, wraps each property in array\n * @param value - Object which properties will be wrapped to array\n */\nexport function prepareForFormBuilder(value: Dictionary<any>): Dictionary\n{\n const result: Dictionary = {};\n\n Object.keys(value).forEach(prop =>\n {\n const val = value[prop];\n\n //recursively wrap nested object properties\n if(isJsObject(val) && !Array.isArray(val))\n {\n result[prop] = prepareForFormBuilder(val);\n }\n else\n {\n result[prop] = [val];\n }\n });\n\n return result;\n}\n\n/**\n * Reads filter value from encoded string\n * @param defaultValue - Default value of filter, which is overriden by values from filterValue\n * @param filterValue - Encoded string containing filter value\n * @param reviver - A function that transforms the results. This function is called for each member of the object.\n */\nexport function readEncodedFilter<TFilter>(defaultValue: TFilter, filterValue: string, reviver?: (this: any, key: string, value: any) => any): TFilter\n{\n try\n {\n return extend(true, defaultValue, deserializeFromUrlQuery(filterValue, reviver));\n }\n catch(e)\n {\n console.warn('Failed to deserialize filter from encoded string! Exc:' + e);\n\n return defaultValue;\n }\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../forms/src/misc/ut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EACP,CAAC;QACG,OAAO,CAAC,IAAI,CAAC,wDAAwD,GAAG,CAAC,CAAC,CAAC;QAE3E,OAAO,YAAY,CAAC;IACxB,CAAC;AACL,CAAC","sourcesContent":["import {NgForm, FormGroup} from '@angular/forms';\nimport {deserializeFromUrlQuery, Dictionary, isJsObject} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\n\n/**\n * Gets indication whether controls have errors, with custom indication of submitted\n * @param form - Form containing controls\n * @param controls - Array of controls names to be checked for errors\n * @param submitted - Indication whether form was submitted\n */\nexport function hasErrorCustom(form: NgForm|FormGroup, controls: string[], submitted: boolean = false): boolean\n{\n let conditionValid = false;\n let conditionChanged = false;\n\n for(let x = 0; x < controls.length; x++)\n {\n if(!form.controls[controls[x]])\n {\n return false;\n }\n\n conditionValid = conditionValid || !form.controls[controls[x]].valid;\n conditionChanged = conditionChanged || form.controls[controls[x]].dirty;\n }\n\n return conditionValid && (conditionChanged || submitted);\n}\n\n/**\n * Gets indication whether hide alerts or not for control, with custom indication of submitted\n * @param form - Form containing controls\n * @param control - Controls name that will be checked\n * @param errors - Array of validation errors to be checked for existance\n * @param submitted - Indication whether form was submitted\n */\nexport function alertHiddenCustom(form: NgForm|FormGroup, control: string, errors: string[] = [], submitted: boolean = false): boolean\n{\n if(!form.controls[control])\n {\n return true;\n }\n\n let requestedErrors = false;\n\n errors.forEach(errorType =>\n {\n requestedErrors = requestedErrors || (!!form.controls[control].errors && !!(<{[key: string]: any}>form.controls[control].errors)[errorType]);\n });\n\n return form.controls[control].valid || !requestedErrors || (!form.controls[control].dirty && !submitted);\n}\n\n/**\n * Gets indication whether controls have errors\n * @param form - Form containing controls\n * @param controls - Array of controls names to be checked for errors\n */\nexport function hasError(form: NgForm, controls: string[]): boolean\n{\n let conditionValid = false;\n let conditionChanged = false;\n\n for(let x = 0; x < controls.length; x++)\n {\n if(!form.controls[controls[x]])\n {\n return false;\n }\n\n conditionValid = conditionValid || !form.controls[controls[x]].valid;\n conditionChanged = conditionChanged || form.controls[controls[x]].dirty;\n }\n\n return conditionValid && (conditionChanged || form.submitted);\n}\n\n/**\n * Gets indication whether hide alerts or not for control\n * @param form - Form containing controls\n * @param control - Controls name that will be checked\n * @param errors - Array of validation errors to be checked for existance\n */\nexport function alertHidden(form: NgForm, control: string, errors: string[] = []): boolean\n{\n if(!form.controls[control])\n {\n return true;\n }\n\n let requestedErrors = false;\n\n errors.forEach(errorType =>\n {\n requestedErrors = requestedErrors || (!!form.controls[control].errors && !!(<{[key: string]: any}>form.controls[control].errors)[errorType]);\n });\n\n return form.controls[control].valid || !requestedErrors || (!form.controls[control].dirty && !form.submitted);\n}\n\n/**\n * Prepares object for form builder, wraps each property in array\n * @param value - Object which properties will be wrapped to array\n */\nexport function prepareForFormBuilder(value: Dictionary<any>): Dictionary\n{\n const result: Dictionary = {};\n\n Object.keys(value).forEach(prop =>\n {\n const val = value[prop];\n\n //recursively wrap nested object properties\n if(isJsObject(val) && !Array.isArray(val))\n {\n result[prop] = prepareForFormBuilder(val);\n }\n else\n {\n result[prop] = [val];\n }\n });\n\n return result;\n}\n\n/**\n * Reads filter value from encoded string\n * @param defaultValue - Default value of filter, which is overriden by values from filterValue\n * @param filterValue - Encoded string containing filter value\n * @param reviver - A function that transforms the results. This function is called for each member of the object.\n */\nexport function readEncodedFilter<TFilter>(defaultValue: TFilter, filterValue: string, reviver?: (this: any, key: string, value: any) => any): TFilter\n{\n try\n {\n return extend(true, defaultValue, deserializeFromUrlQuery(filterValue, reviver));\n }\n catch(e)\n {\n console.warn('Failed to deserialize filter from encoded string! Exc:' + e);\n\n return defaultValue;\n }\n}\n"]}
@@ -1,14 +1,13 @@
1
1
  import { Component, ChangeDetectionStrategy, Optional, ChangeDetectorRef, Input, ContentChild } from '@angular/core';
2
+ import { NgClass, NgTemplateOutlet } from '@angular/common';
2
3
  import { FormGroupDirective, FormGroupName } from '@angular/forms';
4
+ import { KeysPipe } from '@anglr/common';
3
5
  import { slideInOutTrigger } from '@anglr/animations';
4
6
  import { Subscription } from 'rxjs';
5
- import { GroupErrorsTemplateDirective } from '../../directives';
7
+ import { ErrorMessageDirective, GroupErrorsTemplateDirective } from '../../directives';
8
+ import { WithErrorMessagePipe } from '../../pipes';
6
9
  import * as i0 from "@angular/core";
7
10
  import * as i1 from "@angular/forms";
8
- import * as i2 from "@angular/common";
9
- import * as i3 from "../../directives/errorMessage/errorMessage.directive";
10
- import * as i4 from "../../../../../../src/pipes/keys/keys.pipe";
11
- import * as i5 from "../../pipes/withErrorMessage/withErrorMessage.pipe";
12
11
  /**
13
12
  * Component used for rendering from group errors
14
13
  */
@@ -54,12 +53,18 @@ export class GroupErrorsComponent {
54
53
  this._initSubscriptions?.unsubscribe();
55
54
  this._initSubscriptions = null;
56
55
  }
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: GroupErrorsComponent, deps: [{ token: i1.FormGroupDirective, optional: true }, { token: i1.FormGroupName, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
58
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", 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\" @slideInOut></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>", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.ErrorMessageDirective, selector: "[errorMessage]", inputs: ["errorMessage", "errors"], exportAs: ["errorMessage"] }, { kind: "pipe", type: i4.KeysPipe, name: "keys" }, { kind: "pipe", type: i5.WithErrorMessagePipe, name: "withErrorMessage" }], animations: [slideInOutTrigger], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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 }); }
59
58
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: GroupErrorsComponent, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupErrorsComponent, decorators: [{
61
60
  type: Component,
62
- args: [{ selector: 'form-group-errors', 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<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>" }]
61
+ args: [{ selector: 'form-group-errors', imports: [
62
+ NgClass,
63
+ KeysPipe,
64
+ NgTemplateOutlet,
65
+ WithErrorMessagePipe,
66
+ 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" }]
63
68
  }], ctorParameters: () => [{ type: i1.FormGroupDirective, decorators: [{
64
69
  type: Optional
65
70
  }] }, { 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,EAA+B,kBAAkB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,4BAA4B,EAAC,MAAM,kBAAkB,CAAC;;;;;;;AAE9D;;GAEG;AAQH,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,iIA2Cf,4BAA4B,gDC5D9C,sfAMe,irBDQC,CAAC,iBAAiB,CAAC;;2FAGtB,oBAAoB;kBAPhC,SAAS;+BAEI,mBAAmB,cAEjB,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 {FormControlStatus, FormGroup, FormGroupDirective, FormGroupName} from '@angular/forms';\nimport {slideInOutTrigger} from '@anglr/animations';\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 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<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>"]}
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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,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"]}
@@ -50,14 +50,14 @@ 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: "18.0.1", 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: "18.0.1", type: ErrorMessageDirective, 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: "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 }); }
55
55
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessageDirective, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageDirective, decorators: [{
57
57
  type: Directive,
58
58
  args: [{
59
59
  selector: '[errorMessage]',
60
- exportAs: 'errorMessage'
60
+ exportAs: 'errorMessage',
61
61
  }]
62
62
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: undefined, decorators: [{
63
63
  type: Inject,
@@ -1 +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,yBAAyB,CAAC;;AAElE;;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,CAAC;YACG,IAAI,CAAC,YAAY,EAAE,CAAC;QACxB,CAAC;IACL,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,kBAAkB,EAAE,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,CAAC;YACG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,SAAS,GAAG,EAAE,CAAC;YAE3C,OAAO;QACX,CAAC;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;8GAzEQ,qBAAqB,4CAyBV,mBAAmB,aACnB,yBAAyB;kGA1BpC,qBAAqB;;2FAArB,qBAAqB;kBALjC,SAAS;mBACV;oBACI,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,cAAc;iBAC3B;;0BA0BgB,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,yBAAyB;yCAXtC,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/tokens';\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}"]}
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,yBAAyB,CAAC;;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AyBV,mBAAmB,aACnB,yBAAyB;kGA1BpC,qBAAqB;;2FAArB,qBAAqB;kBALjC,SAAS;mBACV;oBACI,QAAQ,EAAE,gBAAgB;oBAC1B,QAAQ,EAAE,cAAc;iBAC3B;;0BA0BgB,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,yBAAyB;yCAXtC,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/tokens';\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}"]}
@@ -15,13 +15,13 @@ 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: "18.0.1", ngImport: i0, type: GroupErrorsTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.1", type: GroupErrorsTemplateDirective, selector: "[formGroupError]", ngImport: i0 }); }
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 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: GroupErrorsTemplateDirective, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: GroupErrorsTemplateDirective, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
- selector: '[formGroupError]'
24
+ selector: '[formGroupError]',
25
25
  }]
26
26
  }], ctorParameters: () => [{ type: i0.TemplateRef }] });
27
27
  //# sourceMappingURL=groupErrorsTemplate.directive.js.map
@@ -1 +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;8GAfQ,4BAA4B;kGAA5B,4BAA4B;;2FAA5B,4BAA4B;kBAJxC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;iBAC/B","sourcesContent":["import {Directive, TemplateRef} from '@angular/core';\n\nimport {GroupErrorsTemplateContext} from './groupErrorsTemplate.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}"]}
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;8GAfQ,4BAA4B;kGAA5B,4BAA4B;;2FAA5B,4BAA4B;kBAJxC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;iBAC/B","sourcesContent":["import {Directive, TemplateRef} from '@angular/core';\n\nimport {GroupErrorsTemplateContext} from './groupErrorsTemplate.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}"]}
@@ -1,6 +1,4 @@
1
1
  import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { CommonUtilsModule } from '@anglr/common';
4
2
  import { GroupErrorsComponent } from '../components';
5
3
  import { ErrorMessageDirective, GroupErrorsTemplateDirective } from '../directives';
6
4
  import { WithErrorMessagePipe } from '../pipes';
@@ -9,26 +7,20 @@ import * as i0 from "@angular/core";
9
7
  * Module for error message directives, pipes and components
10
8
  */
11
9
  export class ErrorMessageModule {
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
13
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessageModule, declarations: [WithErrorMessagePipe,
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,
14
12
  ErrorMessageDirective,
15
13
  GroupErrorsTemplateDirective,
16
- GroupErrorsComponent], imports: [CommonModule,
17
- CommonUtilsModule], exports: [WithErrorMessagePipe,
14
+ GroupErrorsComponent], exports: [WithErrorMessagePipe,
18
15
  ErrorMessageDirective,
19
16
  GroupErrorsTemplateDirective,
20
17
  GroupErrorsComponent] }); }
21
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessageModule, imports: [CommonModule,
22
- CommonUtilsModule] }); }
18
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageModule }); }
23
19
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: ErrorMessageModule, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: ErrorMessageModule, decorators: [{
25
21
  type: NgModule,
26
22
  args: [{
27
23
  imports: [
28
- CommonModule,
29
- CommonUtilsModule,
30
- ],
31
- declarations: [
32
24
  WithErrorMessagePipe,
33
25
  ErrorMessageDirective,
34
26
  GroupErrorsTemplateDirective,
@@ -1 +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;8GAAlB,kBAAkB;+GAAlB,kBAAkB,iBAbvB,oBAAoB;YACpB,qBAAqB;YACrB,4BAA4B;YAC5B,oBAAoB,aARpB,YAAY;YACZ,iBAAiB,aAWjB,oBAAoB;YACpB,qBAAqB;YACrB,4BAA4B;YAC5B,oBAAoB;+GAGf,kBAAkB,YAlBvB,YAAY;YACZ,iBAAiB;;2FAiBZ,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"]}
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;AAEvC,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;AAkBH,MAAM,OAAO,kBAAkB;8GAAlB,kBAAkB;+GAAlB,kBAAkB,YAbvB,oBAAoB;YACpB,qBAAqB;YACrB,4BAA4B;YAC5B,oBAAoB,aAIpB,oBAAoB;YACpB,qBAAqB;YACrB,4BAA4B;YAC5B,oBAAoB;+GAGf,kBAAkB;;2FAAlB,kBAAkB;kBAjB9B,QAAQ;mBACT;oBACI,OAAO,EACP;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';\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 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"]}
@@ -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: "18.0.1", ngImport: i0, type: WithErrorMessagePipe, deps: [{ token: VALIDATION_ERROR_MESSAGES }], target: i0.ɵɵFactoryTarget.Pipe }); }
24
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: WithErrorMessagePipe, name: "withErrorMessage" }); }
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" }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: WithErrorMessagePipe, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: WithErrorMessagePipe, decorators: [{
27
27
  type: Pipe,
28
28
  args: [{ name: 'withErrorMessage' }]
29
29
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -5,20 +5,20 @@ 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: "18.0.1", ngImport: i0, type: FormPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
9
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.1", ngImport: i0, type: FormPipesModule, declarations: [AsFormArrayPipe,
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,
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: "18.0.1", ngImport: i0, type: FormPipesModule }); }
16
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormPipesModule }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: FormPipesModule, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: FormPipesModule, decorators: [{
19
19
  type: NgModule,
20
20
  args: [{
21
- declarations: [
21
+ imports: [
22
22
  AsFormArrayPipe,
23
23
  AsFormControlPipe,
24
24
  AsFormGroupPipe,
@@ -1 +1 @@
1
- {"version":3,"file":"formPipes.module.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/modules/formPipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;;AAE7F;;GAEG;AAkBH,MAAM,OAAO,eAAe;8GAAf,eAAe;+GAAf,eAAe,iBAbpB,eAAe;YACf,iBAAiB;YACjB,eAAe;YACf,cAAc,aAId,eAAe;YACf,iBAAiB;YACjB,eAAe;YACf,cAAc;+GAGT,eAAe;;2FAAf,eAAe;kBAjB3B,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;oBACD,OAAO,EACP;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {AsFormArrayPipe, AsFormControlPipe, AsFormGroupPipe, GetControlPipe} from '../pipes';\n\n/**\n * Module that holds form util pipes\n */\n@NgModule(\n{\n declarations:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ],\n exports:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ]\n})\nexport class FormPipesModule\n{\n}"]}
1
+ {"version":3,"file":"formPipes.module.js","sourceRoot":"","sources":["../../../../../../forms/src/modules/formPipes/modules/formPipes.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAC,MAAM,UAAU,CAAC;;AAE7F;;GAEG;AAkBH,MAAM,OAAO,eAAe;8GAAf,eAAe;+GAAf,eAAe,YAbpB,eAAe;YACf,iBAAiB;YACjB,eAAe;YACf,cAAc,aAId,eAAe;YACf,iBAAiB;YACjB,eAAe;YACf,cAAc;+GAGT,eAAe;;2FAAf,eAAe;kBAjB3B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;oBACD,OAAO,EACP;wBACI,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,cAAc;qBACjB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {AsFormArrayPipe, AsFormControlPipe, AsFormGroupPipe, GetControlPipe} from '../pipes';\n\n/**\n * Module that holds form util pipes\n */\n@NgModule(\n{\n imports:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ],\n exports:\n [\n AsFormArrayPipe,\n AsFormControlPipe,\n AsFormGroupPipe,\n GetControlPipe,\n ]\n})\nexport class FormPipesModule\n{\n}"]}