@anglr/common 14.2.0-beta.20221025042231 → 14.2.0

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 (218) hide show
  1. package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
  2. package/es2015/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +3 -3
  3. package/es2015/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +3 -3
  4. package/es2015/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +3 -3
  5. package/es2015/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  6. package/es2015/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -3
  7. package/es2015/forms/src/directives/hasError/hasError.directive.js +3 -3
  8. package/es2015/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  9. package/es2015/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  10. package/es2015/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  11. package/es2015/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  12. package/es2015/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  13. package/es2015/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  14. package/es2015/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -3
  15. package/es2015/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -3
  16. package/es2015/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +3 -3
  17. package/es2015/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -3
  18. package/es2015/forms/src/modules/errorMessage/modules/errorMessage.module.js +4 -4
  19. package/es2015/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  20. package/es2015/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  21. package/es2015/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  22. package/es2015/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  23. package/es2015/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  24. package/es2015/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  25. package/es2015/forms/src/modules/hasError.module.js +4 -4
  26. package/es2015/forms/src/modules/numberInput.module.js +4 -4
  27. package/es2015/forms/src/modules/requiredClass.module.js +4 -4
  28. package/es2015/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  29. package/es2015/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  30. package/es2015/forms/src/services/submitted/submitted.service.js +3 -3
  31. package/es2015/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  32. package/es2015/hotkeys/src/services/appHotkeys.service.js +3 -3
  33. package/es2015/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -3
  34. package/es2015/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
  35. package/es2015/material/src/components/titledDialog/titledDialog.component.js +3 -3
  36. package/es2015/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -3
  37. package/es2015/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  38. package/es2015/material/src/modules/confirmationDialog.module.js +4 -4
  39. package/es2015/material/src/modules/debugDataCopyClick.module.js +4 -4
  40. package/es2015/material/src/modules/movableTitledDialog.module.js +4 -4
  41. package/es2015/material/src/modules/titledDialog.module.js +4 -4
  42. package/es2015/material/src/services/titledDialog/titledDialog.service.js +3 -3
  43. package/es2015/moment/src/modules/moment.module.js +4 -4
  44. package/es2015/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
  45. package/es2015/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
  46. package/es2015/numeral/src/modules/numeral.module.js +4 -4
  47. package/es2015/numeral/src/pipes/numeral.pipe.js +3 -3
  48. package/es2015/router/src/services/routing/dataRouter.js +3 -3
  49. package/es2015/router/src/services/routing/dataRouterData.js +3 -3
  50. package/es2015/src/directives/bodyRender/bodyRender.directive.js +3 -3
  51. package/es2015/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  52. package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  53. package/es2015/src/modules/castPipes/modules/castPipes.module.js +4 -4
  54. package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  55. package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  56. package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  57. package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  58. package/es2015/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js +3 -3
  59. package/es2015/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js.map +1 -1
  60. package/es2015/src/modules/clickOutside/modules/clickOutside.module.js +4 -4
  61. package/es2015/src/modules/commonDynamic.module.js +4 -4
  62. package/es2015/src/modules/commonLocalize.module.js +4 -4
  63. package/es2015/src/modules/commonUtils.module.js +4 -4
  64. package/es2015/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  65. package/es2015/src/modules/debugData/modules/debugData.module.js +4 -4
  66. package/es2015/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  67. package/es2015/src/modules/goBack/directives/goBack/goBack.directive.js +3 -3
  68. package/es2015/src/modules/goBack/modules/goBack.module.js +4 -4
  69. package/es2015/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  70. package/es2015/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  71. package/es2015/src/modules/multiButton/modules/multiButton.module.js +4 -4
  72. package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js +3 -3
  73. package/es2015/src/modules/position/modules/position.module.js +4 -4
  74. package/es2015/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  75. package/es2015/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  76. package/es2015/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  77. package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js +3 -3
  78. package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  79. package/es2015/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  80. package/es2015/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
  81. package/es2015/src/modules/tooltip/components/tooltip/tooltip.component.js +3 -3
  82. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js +3 -3
  83. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  84. package/es2015/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  85. package/es2015/src/modules/tooltip/modules/tooltip.module.js +4 -4
  86. package/es2015/src/pipes/isNaN/isNaN.pipe.js +3 -3
  87. package/es2015/src/pipes/isPresent/isPresent.pipe.js +3 -3
  88. package/es2015/src/pipes/keys/keys.pipe.js +3 -3
  89. package/es2015/src/pipes/localize/localize.pipe.js +3 -3
  90. package/es2015/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  91. package/es2015/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  92. package/es2015/src/services/cookies/cookies.service.js +3 -3
  93. package/es2015/src/services/cookies/cookies.service.js.map +1 -1
  94. package/es2015/src/services/notifications/defaultNotifications.service.js +3 -3
  95. package/es2015/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  96. package/es2015/src/services/statusCode/statusCode.service.js +3 -3
  97. package/es2015/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  98. package/es2015/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  99. package/es2015/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  100. package/es2015/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  101. package/es2015/structured-log/src/components/console/console.component.js +3 -3
  102. package/es2015/structured-log/src/modules/consoleLog.module.js +4 -4
  103. package/es2015/structured-log/src/services/console/consoleComponentSink.service.js +3 -3
  104. package/es2015/structured-log/src/services/console/consoleSinkConfig.service.js +3 -3
  105. package/es2015/structured-log/src/services/logger.service.js +3 -3
  106. package/es2015/structured-log/src/services/rest/restSink.service.js +3 -3
  107. package/es2015/structured-log/src/services/rest/restSink.service.js.map +1 -1
  108. package/es2015/structured-log/src/services/rest/restSinkConfig.service.js +3 -3
  109. package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
  110. package/es2020/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +3 -3
  111. package/es2020/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +3 -3
  112. package/es2020/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +3 -3
  113. package/es2020/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  114. package/es2020/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -3
  115. package/es2020/forms/src/directives/hasError/hasError.directive.js +3 -3
  116. package/es2020/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  117. package/es2020/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  118. package/es2020/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  119. package/es2020/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  120. package/es2020/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  121. package/es2020/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  122. package/es2020/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -3
  123. package/es2020/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -3
  124. package/es2020/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +3 -3
  125. package/es2020/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -3
  126. package/es2020/forms/src/modules/errorMessage/modules/errorMessage.module.js +4 -4
  127. package/es2020/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  128. package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  129. package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  130. package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  131. package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  132. package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  133. package/es2020/forms/src/modules/hasError.module.js +4 -4
  134. package/es2020/forms/src/modules/numberInput.module.js +4 -4
  135. package/es2020/forms/src/modules/requiredClass.module.js +4 -4
  136. package/es2020/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  137. package/es2020/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  138. package/es2020/forms/src/services/submitted/submitted.service.js +3 -3
  139. package/es2020/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  140. package/es2020/hotkeys/src/services/appHotkeys.service.js +3 -3
  141. package/es2020/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -3
  142. package/es2020/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
  143. package/es2020/material/src/components/titledDialog/titledDialog.component.js +3 -3
  144. package/es2020/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -3
  145. package/es2020/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  146. package/es2020/material/src/modules/confirmationDialog.module.js +4 -4
  147. package/es2020/material/src/modules/debugDataCopyClick.module.js +4 -4
  148. package/es2020/material/src/modules/movableTitledDialog.module.js +4 -4
  149. package/es2020/material/src/modules/titledDialog.module.js +4 -4
  150. package/es2020/material/src/services/titledDialog/titledDialog.service.js +3 -3
  151. package/es2020/moment/src/modules/moment.module.js +4 -4
  152. package/es2020/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
  153. package/es2020/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
  154. package/es2020/numeral/src/modules/numeral.module.js +4 -4
  155. package/es2020/numeral/src/pipes/numeral.pipe.js +3 -3
  156. package/es2020/router/src/services/routing/dataRouter.js +3 -3
  157. package/es2020/router/src/services/routing/dataRouterData.js +3 -3
  158. package/es2020/src/directives/bodyRender/bodyRender.directive.js +3 -3
  159. package/es2020/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  160. package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  161. package/es2020/src/modules/castPipes/modules/castPipes.module.js +4 -4
  162. package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  163. package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  164. package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  165. package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  166. package/es2020/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js +3 -3
  167. package/es2020/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js.map +1 -1
  168. package/es2020/src/modules/clickOutside/modules/clickOutside.module.js +4 -4
  169. package/es2020/src/modules/commonDynamic.module.js +4 -4
  170. package/es2020/src/modules/commonLocalize.module.js +4 -4
  171. package/es2020/src/modules/commonUtils.module.js +4 -4
  172. package/es2020/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  173. package/es2020/src/modules/debugData/modules/debugData.module.js +4 -4
  174. package/es2020/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  175. package/es2020/src/modules/goBack/directives/goBack/goBack.directive.js +3 -3
  176. package/es2020/src/modules/goBack/modules/goBack.module.js +4 -4
  177. package/es2020/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  178. package/es2020/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  179. package/es2020/src/modules/multiButton/modules/multiButton.module.js +4 -4
  180. package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js +3 -3
  181. package/es2020/src/modules/position/modules/position.module.js +4 -4
  182. package/es2020/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  183. package/es2020/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  184. package/es2020/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  185. package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js +3 -3
  186. package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  187. package/es2020/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  188. package/es2020/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
  189. package/es2020/src/modules/tooltip/components/tooltip/tooltip.component.js +3 -3
  190. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js +3 -3
  191. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  192. package/es2020/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  193. package/es2020/src/modules/tooltip/modules/tooltip.module.js +4 -4
  194. package/es2020/src/pipes/isNaN/isNaN.pipe.js +3 -3
  195. package/es2020/src/pipes/isPresent/isPresent.pipe.js +3 -3
  196. package/es2020/src/pipes/keys/keys.pipe.js +3 -3
  197. package/es2020/src/pipes/localize/localize.pipe.js +3 -3
  198. package/es2020/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  199. package/es2020/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  200. package/es2020/src/services/cookies/cookies.service.js +3 -3
  201. package/es2020/src/services/cookies/cookies.service.js.map +1 -1
  202. package/es2020/src/services/notifications/defaultNotifications.service.js +3 -3
  203. package/es2020/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  204. package/es2020/src/services/statusCode/statusCode.service.js +3 -3
  205. package/es2020/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  206. package/es2020/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  207. package/es2020/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  208. package/es2020/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  209. package/es2020/structured-log/src/components/console/console.component.js +3 -3
  210. package/es2020/structured-log/src/modules/consoleLog.module.js +4 -4
  211. package/es2020/structured-log/src/services/console/consoleComponentSink.service.js +3 -3
  212. package/es2020/structured-log/src/services/console/consoleSinkConfig.service.js +3 -3
  213. package/es2020/structured-log/src/services/logger.service.js +3 -3
  214. package/es2020/structured-log/src/services/rest/restSink.service.js +3 -3
  215. package/es2020/structured-log/src/services/rest/restSink.service.js.map +1 -1
  216. package/es2020/structured-log/src/services/rest/restSinkConfig.service.js +3 -3
  217. package/package.json +1 -1
  218. package/version.bak +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/directives/tooltip/tooltip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,YAAY,EAAE,SAAS,EAAE,UAAU,EAAmB,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAwB,QAAQ,EAAiB,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACtN,OAAO,EAAC,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,eAAe,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAE5E,OAAO,EA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C;YACV,CAAC,CAAC,CAAC;YAEvD,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC;SACvD;IACL,CAAC;;6GAhVQ,gBAAgB,oIAmGL,QAAQ,aACR,QAAQ,aACI,eAAe;iGArGtC,gBAAgB,oVA2FX,wBAAwB;2FA3F7B,gBAAgB;kBAJ5B,SAAS;mBACV;oBACI,QAAQ,EAAE,WAAW;iBACxB;wKAoGsD,QAAQ;0BAA9C,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,QAAQ;;0BACf,QAAQ;;0BAAI,MAAM;2BAAC,eAAe;4CAnDxC,OAAO;sBADb,KAAK;gBAOC,SAAS;sBADf,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBAOK,cAAc;sBADxB,KAAK;gBAiBC,cAAc;sBADpB,KAAK;gBASC,oBAAoB;sBAD1B,YAAY;uBAAC,wBAAwB;gBA6D/B,UAAU;sBADhB,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;gBA2B/B,SAAS;sBADf,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {ComponentRef, ContentChild, Directive, ElementRef, EmbeddedViewRef, HostListener, Inject, Injector, Input, OnChanges, OnDestroy, Optional, SimpleChanges, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {AnimationBuilder, AnimationFactory} from '@angular/animations';\nimport {DOCUMENT} from '@angular/common';\nimport {fadeInAnimation, fadeOutAnimation} from '@anglr/animations';\nimport {extend, isBlank, isPresent, nameof} from '@jscrpt/common';\n\nimport {TooltipComponent} from '../../components/tooltip/tooltip.component';\nimport {TooltipOptions, TooltipRenderer} from '../../misc/tooltip.interface';\nimport {TOOLTIP_OPTIONS} from '../../misc/tokens';\nimport {applyPositionResult, Position, PositionOffset, PositionPlacement} from '../../../../services/position';\nimport {TooltipTemplateDirective} from '../tooltipTemplate/tooltipTemplate.directive';\nimport {TooltipTemplateContext} from '../tooltipTemplate/tooltipTemplate.context';\nimport {POSITION} from '../../../../types/tokens';\n\n/**\n * Default options for tooltip\n */\nconst defaultOptions: TooltipOptions =\n{\n delay: 200,\n position:\n {\n offset: PositionOffset.MouseEnter,\n placement: PositionPlacement.TopStart\n },\n allowSelection: false,\n tooltipRenderer: TooltipComponent,\n tooltipCssClass: null,\n stopPropagation: false,\n enterAnimation: fadeInAnimation,\n exitAnimation: fadeOutAnimation,\n};\n\n/**\n * Directive used for rendering tooltip\n */\n@Directive(\n{\n selector: '[tooltip]'\n})\nexport class TooltipDirective<TData = any> implements OnChanges, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of component used for rendering tooltip\n */\n protected _tooltipComponent?: ComponentRef<TooltipRenderer<TData>>;\n\n /**\n * Instance of HTML element for tooltip renderer\n */\n protected _tooltipElement?: HTMLElement;\n\n /**\n * Animation factory used for enter animation of tooltip\n */\n protected _enterAnimation: AnimationFactory;\n\n /**\n * Animation factory used for exit animation of tooltip\n */\n protected _exitAnimation: AnimationFactory;\n\n /**\n * Instance of options provided for this tooltip\n */\n protected _options: TooltipOptions;\n\n /**\n * Indication whether there is active show tooltip request\n */\n protected _showRequest: boolean = false;\n\n /**\n * Indication whether keep open tooltip component\n */\n protected _keepOpen: boolean = false;\n\n /**\n * Timeout that is used for handling mouse move\n */\n protected _timeout: number|null = null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Tooltip text that is displayed, or any data that could be passed to template\n */\n @Input()\n public tooltip?: TData;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n @Input()\n public allowHtml: boolean = false;\n\n /**\n * Instance of tooltip template that is used for rendering\n */\n @Input()\n public template?: TemplateRef<TooltipTemplateContext<TData>>;\n\n /**\n * Options used for displaying tooltip\n */\n @Input()\n public get tooltipOptions(): Partial<TooltipOptions>\n {\n return this._options;\n }\n public set tooltipOptions(value: Partial<TooltipOptions>)\n {\n this._options = extend(true, {}, this._options, value);\n\n this._enterAnimation = this._animationsPlayer.build(this._options.enterAnimation);\n this._exitAnimation = this._animationsPlayer.build(this._options.exitAnimation);\n }\n\n /**\n * Gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this\n */\n @Input()\n public tooltipVisible?: boolean;\n\n //######################### public properties - children #########################\n\n /**\n * Instance of template from element content, used for rendering\n */\n @ContentChild(TooltipTemplateDirective)\n public tooltipTemplateChild?: TooltipTemplateDirective;\n\n //######################### constructor #########################\n constructor(protected _viewContainerRef: ViewContainerRef,\n protected _injector: Injector,\n protected _element: ElementRef<HTMLElement>,\n protected _animationsPlayer: AnimationBuilder,\n @Inject(DOCUMENT) protected _document: Document,\n @Inject(POSITION) protected _position: Position,\n @Optional() @Inject(TOOLTIP_OPTIONS) options?: Partial<TooltipOptions>,)\n {\n this._options = extend(true, {}, defaultOptions, options);\n\n this._enterAnimation = this._animationsPlayer.build(this._options.enterAnimation);\n this._exitAnimation = this._animationsPlayer.build(this._options.exitAnimation);\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<TooltipDirective>('tooltipVisible') in changes)\n {\n if(this.tooltipVisible)\n {\n this._showTooltip();\n }\n else\n {\n this._hideTooltip();\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 if(this._timeout)\n {\n clearTimeout(this._timeout);\n }\n\n this._destroyTooltip();\n }\n\n //######################### public methods - host #########################\n\n /**\n * Handles mouse leave event, hover ends\n * @param event - Mouse event that occured\n * @internal\n */\n @HostListener('mouseleave', ['$event'])\n public mouseLeave(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n if(isBlank(this.tooltipVisible))\n {\n setTimeout(() =>\n {\n if(!this._keepOpen)\n {\n this._showRequest = false;\n this._hideTooltip();\n }\n }, 10);\n }\n }\n\n /**\n * Handles mouse move event, displaying tooltip\n * @param event - Mouse event that occured\n * @internal\n */\n @HostListener('mousemove', ['$event'])\n public mouseMove(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n this._showRequest = true;\n\n //do nothing if tooltip is visible\n if(this._tooltipComponent || isPresent(this.tooltipVisible))\n {\n return;\n }\n\n if(isPresent(this._timeout))\n {\n clearTimeout(this._timeout);\n }\n\n this._timeout = setTimeout(() =>\n {\n this._timeout = null;\n\n if(this._showRequest)\n {\n this._showTooltip(event);\n\n this._showRequest = false;\n }\n }, this._options.delay) as any;\n }\n\n //######################### protected methods #########################\n\n /**\n * Shows tooltip\n * @param event - Mouse event\n */\n protected _showTooltip(event?: MouseEvent): void\n {\n this._createTooltip();\n\n //if element was not created do nothing\n if(!this._tooltipElement)\n {\n return;\n }\n\n this._showData();\n\n this._position.placeElement(this._tooltipElement,\n this._element.nativeElement,\n {\n placement: this._options.position.placement,\n offset: this._options.position.offset,\n flip: true,\n mouseEvent: event,\n autoUpdate: false\n })\n .toPromise()\n .then(result => applyPositionResult(result));\n }\n\n /**\n * Hides tooltip\n */\n protected _hideTooltip(): void\n {\n this._destroyTooltip();\n }\n\n /**\n * Destroys tooltip component\n */\n protected _destroyTooltip(): void\n {\n if(this._tooltipComponent)\n {\n const component = this._tooltipComponent;\n const element = this._tooltipElement;\n\n const exitAnimation = this._exitAnimation.create(element);\n\n exitAnimation.onDone(() =>\n {\n component.destroy();\n exitAnimation.destroy();\n });\n \n this._tooltipComponent = undefined;\n this._tooltipElement = undefined;\n\n exitAnimation.play();\n }\n }\n\n /**\n * Creates tooltip renderer component\n */\n protected _createTooltip(): void\n {\n // 0. Destroys tooltip if it exists\n this._destroyTooltip();\n\n // 1. Create a component reference from the component\n this._tooltipComponent = this._viewContainerRef\n .createComponent(this._options.tooltipRenderer,\n {\n injector: this._injector\n });\n\n // 3. Get DOM element from component\n this._tooltipElement = (this._tooltipComponent.hostView as EmbeddedViewRef<any>)\n .rootNodes[0] as HTMLElement;\n\n // 4. Append DOM element to the body\n this._document.body.appendChild(this._tooltipElement);\n this._enterAnimation.create(this._tooltipElement).play();\n }\n\n /**\n * Sets data to tooltip component and shows them\n */\n protected _showData(): void\n {\n if(this._tooltipComponent)\n {\n this._tooltipComponent.instance.allowHtml = this.allowHtml;\n this._tooltipComponent.instance.data = this.tooltip;\n this._tooltipComponent.instance.template = this.template ?? this.tooltipTemplateChild?.template;\n this._tooltipComponent.instance.cssClass = this._options.tooltipCssClass;\n\n this._tooltipComponent.instance.registerHoverEvents(() =>\n {\n if(this._options.allowSelection)\n {\n this._keepOpen = true;\n this._showRequest = false;\n }\n },\n () =>\n {\n setTimeout(() =>\n {\n this._keepOpen = false;\n\n if(!this._showRequest)\n {\n this._hideTooltip();\n }\n\n this._showRequest = false;\n }, 5);\n });\n\n this._tooltipComponent.instance.invalidateVisuals();\n }\n }\n\n //######################### ng language server #########################\n \n /**\n * Custom input type for `tooltip` input\n */\n public static ngAcceptInputType_tooltip: any;\n}"]}
1
+ {"version":3,"file":"tooltip.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/directives/tooltip/tooltip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,YAAY,EAAE,SAAS,EAAE,UAAU,EAAmB,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAwB,QAAQ,EAAiB,WAAW,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACtN,OAAO,EAAC,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,eAAe,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAE5E,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC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CAAC,QAAQ,CAAC,iBAAiB,EAAE,CAAC;SACvD;IACL,CAAC;;6GAhVQ,gBAAgB,oIAmGL,QAAQ,aACR,QAAQ,aACI,eAAe;iGArGtC,gBAAgB,oVA2FX,wBAAwB;2FA3F7B,gBAAgB;kBAJ5B,SAAS;mBACV;oBACI,QAAQ,EAAE,WAAW;iBACxB;;0BAoGgB,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,QAAQ;;0BACf,QAAQ;;0BAAI,MAAM;2BAAC,eAAe;4CAnDxC,OAAO;sBADb,KAAK;gBAOC,SAAS;sBADf,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBAOK,cAAc;sBADxB,KAAK;gBAiBC,cAAc;sBADpB,KAAK;gBASC,oBAAoB;sBAD1B,YAAY;uBAAC,wBAAwB;gBA6D/B,UAAU;sBADhB,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;gBA2B/B,SAAS;sBADf,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC","sourcesContent":["import {ComponentRef, ContentChild, Directive, ElementRef, EmbeddedViewRef, HostListener, Inject, Injector, Input, OnChanges, OnDestroy, Optional, SimpleChanges, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {AnimationBuilder, AnimationFactory} from '@angular/animations';\nimport {DOCUMENT} from '@angular/common';\nimport {fadeInAnimation, fadeOutAnimation} from '@anglr/animations';\nimport {extend, isBlank, isPresent, nameof} from '@jscrpt/common';\n\nimport {TooltipComponent} from '../../components/tooltip/tooltip.component';\nimport {TooltipOptions, TooltipRenderer} from '../../misc/tooltip.interface';\nimport {TOOLTIP_OPTIONS} from '../../misc/tokens';\nimport {applyPositionResult, Position, PositionOffset, PositionPlacement} from '../../../../services/position';\nimport {TooltipTemplateDirective} from '../tooltipTemplate/tooltipTemplate.directive';\nimport {TooltipTemplateContext} from '../tooltipTemplate/tooltipTemplate.context';\nimport {POSITION} from '../../../../types/tokens';\n\n/**\n * Default options for tooltip\n */\nconst defaultOptions: TooltipOptions =\n{\n delay: 200,\n position:\n {\n offset: PositionOffset.MouseEnter,\n placement: PositionPlacement.TopStart\n },\n allowSelection: false,\n tooltipRenderer: TooltipComponent,\n tooltipCssClass: null,\n stopPropagation: false,\n enterAnimation: fadeInAnimation,\n exitAnimation: fadeOutAnimation,\n};\n\n/**\n * Directive used for rendering tooltip\n */\n@Directive(\n{\n selector: '[tooltip]'\n})\nexport class TooltipDirective<TData = any> implements OnChanges, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of component used for rendering tooltip\n */\n protected _tooltipComponent?: ComponentRef<TooltipRenderer<TData>>;\n\n /**\n * Instance of HTML element for tooltip renderer\n */\n protected _tooltipElement?: HTMLElement;\n\n /**\n * Animation factory used for enter animation of tooltip\n */\n protected _enterAnimation: AnimationFactory;\n\n /**\n * Animation factory used for exit animation of tooltip\n */\n protected _exitAnimation: AnimationFactory;\n\n /**\n * Instance of options provided for this tooltip\n */\n protected _options: TooltipOptions;\n\n /**\n * Indication whether there is active show tooltip request\n */\n protected _showRequest: boolean = false;\n\n /**\n * Indication whether keep open tooltip component\n */\n protected _keepOpen: boolean = false;\n\n /**\n * Timeout that is used for handling mouse move\n */\n protected _timeout: number|null = null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Tooltip text that is displayed, or any data that could be passed to template\n */\n @Input()\n public tooltip?: TData;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n @Input()\n public allowHtml: boolean = false;\n\n /**\n * Instance of tooltip template that is used for rendering\n */\n @Input()\n public template?: TemplateRef<TooltipTemplateContext<TData>>;\n\n /**\n * Options used for displaying tooltip\n */\n @Input()\n public get tooltipOptions(): Partial<TooltipOptions>\n {\n return this._options;\n }\n public set tooltipOptions(value: Partial<TooltipOptions>)\n {\n this._options = extend(true, {}, this._options, value);\n\n this._enterAnimation = this._animationsPlayer.build(this._options.enterAnimation);\n this._exitAnimation = this._animationsPlayer.build(this._options.exitAnimation);\n }\n\n /**\n * Gets or sets indication whether is tooltip visible, if has boolean value, mouse events cant override this\n */\n @Input()\n public tooltipVisible?: boolean;\n\n //######################### public properties - children #########################\n\n /**\n * Instance of template from element content, used for rendering\n */\n @ContentChild(TooltipTemplateDirective)\n public tooltipTemplateChild?: TooltipTemplateDirective;\n\n //######################### constructor #########################\n constructor(protected _viewContainerRef: ViewContainerRef,\n protected _injector: Injector,\n protected _element: ElementRef<HTMLElement>,\n protected _animationsPlayer: AnimationBuilder,\n @Inject(DOCUMENT) protected _document: Document,\n @Inject(POSITION) protected _position: Position,\n @Optional() @Inject(TOOLTIP_OPTIONS) options?: Partial<TooltipOptions>,)\n {\n this._options = extend(true, {}, defaultOptions, options);\n\n this._enterAnimation = this._animationsPlayer.build(this._options.enterAnimation);\n this._exitAnimation = this._animationsPlayer.build(this._options.exitAnimation);\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<TooltipDirective>('tooltipVisible') in changes)\n {\n if(this.tooltipVisible)\n {\n this._showTooltip();\n }\n else\n {\n this._hideTooltip();\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 if(this._timeout)\n {\n clearTimeout(this._timeout);\n }\n\n this._destroyTooltip();\n }\n\n //######################### public methods - host #########################\n\n /**\n * Handles mouse leave event, hover ends\n * @param event - Mouse event that occured\n * @internal\n */\n @HostListener('mouseleave', ['$event'])\n public mouseLeave(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n if(isBlank(this.tooltipVisible))\n {\n setTimeout(() =>\n {\n if(!this._keepOpen)\n {\n this._showRequest = false;\n this._hideTooltip();\n }\n }, 10);\n }\n }\n\n /**\n * Handles mouse move event, displaying tooltip\n * @param event - Mouse event that occured\n * @internal\n */\n @HostListener('mousemove', ['$event'])\n public mouseMove(event: MouseEvent): void\n {\n if(this._options.stopPropagation)\n {\n event.stopPropagation();\n }\n\n this._showRequest = true;\n\n //do nothing if tooltip is visible\n if(this._tooltipComponent || isPresent(this.tooltipVisible))\n {\n return;\n }\n\n if(isPresent(this._timeout))\n {\n clearTimeout(this._timeout);\n }\n\n this._timeout = setTimeout(() =>\n {\n this._timeout = null;\n\n if(this._showRequest)\n {\n this._showTooltip(event);\n\n this._showRequest = false;\n }\n }, this._options.delay) as any;\n }\n\n //######################### protected methods #########################\n\n /**\n * Shows tooltip\n * @param event - Mouse event\n */\n protected _showTooltip(event?: MouseEvent): void\n {\n this._createTooltip();\n\n //if element was not created do nothing\n if(!this._tooltipElement)\n {\n return;\n }\n\n this._showData();\n\n this._position.placeElement(this._tooltipElement,\n this._element.nativeElement,\n {\n placement: this._options.position.placement,\n offset: this._options.position.offset,\n flip: true,\n mouseEvent: event,\n autoUpdate: false\n })\n .toPromise()\n .then(result => applyPositionResult(result));\n }\n\n /**\n * Hides tooltip\n */\n protected _hideTooltip(): void\n {\n this._destroyTooltip();\n }\n\n /**\n * Destroys tooltip component\n */\n protected _destroyTooltip(): void\n {\n if(this._tooltipComponent)\n {\n const component = this._tooltipComponent;\n const element = this._tooltipElement;\n\n const exitAnimation = this._exitAnimation.create(element);\n\n exitAnimation.onDone(() =>\n {\n component.destroy();\n exitAnimation.destroy();\n });\n \n this._tooltipComponent = undefined;\n this._tooltipElement = undefined;\n\n exitAnimation.play();\n }\n }\n\n /**\n * Creates tooltip renderer component\n */\n protected _createTooltip(): void\n {\n // 0. Destroys tooltip if it exists\n this._destroyTooltip();\n\n // 1. Create a component reference from the component\n this._tooltipComponent = this._viewContainerRef\n .createComponent(this._options.tooltipRenderer,\n {\n injector: this._injector\n });\n\n // 3. Get DOM element from component\n this._tooltipElement = (this._tooltipComponent.hostView as EmbeddedViewRef<any>)\n .rootNodes[0] as HTMLElement;\n\n // 4. Append DOM element to the body\n this._document.body.appendChild(this._tooltipElement);\n this._enterAnimation.create(this._tooltipElement).play();\n }\n\n /**\n * Sets data to tooltip component and shows them\n */\n protected _showData(): void\n {\n if(this._tooltipComponent)\n {\n this._tooltipComponent.instance.allowHtml = this.allowHtml;\n this._tooltipComponent.instance.data = this.tooltip;\n this._tooltipComponent.instance.template = this.template ?? this.tooltipTemplateChild?.template;\n this._tooltipComponent.instance.cssClass = this._options.tooltipCssClass;\n\n this._tooltipComponent.instance.registerHoverEvents(() =>\n {\n if(this._options.allowSelection)\n {\n this._keepOpen = true;\n this._showRequest = false;\n }\n },\n () =>\n {\n setTimeout(() =>\n {\n this._keepOpen = false;\n\n if(!this._showRequest)\n {\n this._hideTooltip();\n }\n\n this._showRequest = false;\n }, 5);\n });\n\n this._tooltipComponent.instance.invalidateVisuals();\n }\n }\n\n //######################### ng language server #########################\n \n /**\n * Custom input type for `tooltip` input\n */\n public static ngAcceptInputType_tooltip: any;\n}"]}
@@ -16,9 +16,9 @@ export class TooltipTemplateDirective {
16
16
  return true;
17
17
  }
18
18
  }
19
- TooltipTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TooltipTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
20
- TooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0", type: TooltipTemplateDirective, selector: "[tooltipTemplate]", ngImport: i0 });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TooltipTemplateDirective, decorators: [{
19
+ TooltipTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TooltipTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
20
+ TooltipTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TooltipTemplateDirective, selector: "[tooltipTemplate]", ngImport: i0 });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TooltipTemplateDirective, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
24
  selector: '[tooltipTemplate]'
@@ -8,13 +8,13 @@ import * as i0 from "@angular/core";
8
8
  */
9
9
  export class TooltipModule {
10
10
  }
11
- TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12
- TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective,
11
+ TooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12
+ TooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective,
13
13
  TooltipTemplateDirective,
14
14
  TooltipComponent], imports: [CommonModule], exports: [TooltipDirective,
15
15
  TooltipTemplateDirective] });
16
- TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TooltipModule, imports: [CommonModule] });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: TooltipModule, decorators: [{
16
+ TooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TooltipModule, imports: [CommonModule] });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TooltipModule, decorators: [{
18
18
  type: NgModule,
19
19
  args: [{
20
20
  imports: [
@@ -13,9 +13,9 @@ export class IsNaNPipe {
13
13
  return isNaN(value);
14
14
  }
15
15
  }
16
- IsNaNPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IsNaNPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
17
- IsNaNPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: IsNaNPipe, name: "isNaN" });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IsNaNPipe, decorators: [{
16
+ IsNaNPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: IsNaNPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
17
+ IsNaNPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: IsNaNPipe, name: "isNaN" });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: IsNaNPipe, decorators: [{
19
19
  type: Pipe,
20
20
  args: [{
21
21
  name: 'isNaN'
@@ -14,9 +14,9 @@ export class IsPresentPipe {
14
14
  return isPresent(value);
15
15
  }
16
16
  }
17
- IsPresentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
18
- IsPresentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: IsPresentPipe, name: "isPresent" });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IsPresentPipe, decorators: [{
17
+ IsPresentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: IsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
18
+ IsPresentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: IsPresentPipe, name: "isPresent" });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: IsPresentPipe, decorators: [{
20
20
  type: Pipe,
21
21
  args: [{
22
22
  name: 'isPresent'
@@ -16,9 +16,9 @@ export class KeysPipe {
16
16
  return Object.keys(value);
17
17
  }
18
18
  }
19
- KeysPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
- KeysPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: KeysPipe, name: "keys" });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: KeysPipe, decorators: [{
19
+ KeysPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
+ KeysPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: KeysPipe, name: "keys" });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KeysPipe, decorators: [{
22
22
  type: Pipe,
23
23
  args: [{ name: 'keys' }]
24
24
  }] });
@@ -43,9 +43,9 @@ export class LocalizePipe {
43
43
  }
44
44
  }
45
45
  }
46
- LocalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalizePipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
47
- LocalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: LocalizePipe, name: "localize", pure: false });
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalizePipe, decorators: [{
46
+ LocalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LocalizePipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
47
+ LocalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: LocalizePipe, name: "localize", pure: false });
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LocalizePipe, decorators: [{
49
49
  type: Pipe,
50
50
  args: [{
51
51
  name: 'localize',
@@ -34,9 +34,9 @@ export class MergeCssClassesPipe {
34
34
  return result;
35
35
  }
36
36
  }
37
- MergeCssClassesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MergeCssClassesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
38
- MergeCssClassesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: MergeCssClassesPipe, name: "mergeCssClasses" });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MergeCssClassesPipe, decorators: [{
37
+ MergeCssClassesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MergeCssClassesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
38
+ MergeCssClassesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: MergeCssClassesPipe, name: "mergeCssClasses" });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MergeCssClassesPipe, decorators: [{
40
40
  type: Pipe,
41
41
  args: [{ name: 'mergeCssClasses' }]
42
42
  }] });
@@ -17,9 +17,9 @@ export class UrlEncodePipe {
17
17
  return serializeToUrlQuery(value);
18
18
  }
19
19
  }
20
- UrlEncodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UrlEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
21
- UrlEncodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: UrlEncodePipe, name: "urlEncode" });
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UrlEncodePipe, decorators: [{
20
+ UrlEncodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UrlEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
21
+ UrlEncodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: UrlEncodePipe, name: "urlEncode" });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UrlEncodePipe, decorators: [{
23
23
  type: Pipe,
24
24
  args: [{ name: 'urlEncode' }]
25
25
  }] });
@@ -89,9 +89,9 @@ export class CookieService {
89
89
  }
90
90
  }
91
91
  }
92
- CookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CookieService, deps: [{ token: PLATFORM_ID }, { token: HTTP_REQUEST_COOKIE_HEADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
93
- CookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CookieService, providedIn: 'root' });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CookieService, decorators: [{
92
+ CookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CookieService, deps: [{ token: PLATFORM_ID }, { token: HTTP_REQUEST_COOKIE_HEADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
93
+ CookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CookieService, providedIn: 'root' });
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CookieService, decorators: [{
95
95
  type: Injectable,
96
96
  args: [{ providedIn: 'root' }]
97
97
  }], ctorParameters: function () { return [{ type: Object, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.service.js","sourceRoot":"","sources":["../../../../src/services/cookies/cookies.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC;;AAE9D;;GAEG;AAEH,MAAM,OAAO,aAAa;IAStB,iEAAiE;IACjE,YAAiC,UAAkB,EACiB,cAAsB;QAAtB,mBAAc,GAAd,cAAc,CAAQ;QAT1F,oEAAoE;QAEpE;;WAEG;QACK,eAAU,GAAY,KAAK,CAAC;QAMhC,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;IAED,oEAAoE;IAEpE;;;;;;OAMG;IACI,SAAS,CAAC,IAAY,EAAE,iBAA2B;QAEtD,IAAG,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EACnD;YACI,OAAO,IAAI,CAAC;SACf;QAED,IAA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F,SAAS,IAAI,UAAU,GAAG,SAAS,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC;SAC3D;QAED,IAAI,IAAI,EACR;YACI,SAAS,IAAI,OAAO,GAAG,IAAI,GAAG,GAAG,CAAC;SACrC;QAED,IAAI,MAAM,EACV;YACI,SAAS,IAAI,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC;SACzC;QAED,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CAAC,IAAY,EAAE,IAAa,EAAE,MAAe;QAE5D,IAAG,CAAC,IAAI,CAAC,UAAU,EACnB;YACI,OAAO;SACV;QAED,uBAAuB;QACvB,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EACxB;YACI,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SAC9C;IACL,CAAC;;0GAlHQ,aAAa,kBAUF,WAAW,aACC,0BAA0B;8GAXjD,aAAa,cADD,MAAM;2FAClB,aAAa;kBADzB,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;0DAWiB,MAAM;0BAAtC,MAAM;2BAAC,WAAW;;0BAClB,QAAQ;;0BAAI,MAAM;2BAAC,0BAA0B","sourcesContent":["import {PLATFORM_ID, Inject, Optional, Injectable} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\nimport {isBlank} from '@jscrpt/common';\n\nimport {HTTP_REQUEST_COOKIE_HEADER} from '../../types/tokens';\n\n/**\n * Class that is used as wrapper for working with cookies\n */\n@Injectable({providedIn: 'root'})\nexport class CookieService\n{\n //######################### private fields #########################\n\n /**\n * Indication that current code is running in browser\n */\n private _isBrowser: boolean = false;\n\n //######################### constructor #########################\n constructor(@Inject(PLATFORM_ID) platformId: Object,\n @Optional() @Inject(HTTP_REQUEST_COOKIE_HEADER) private _serverCookies: string)\n {\n this._isBrowser = isPlatformBrowser(platformId);\n }\n\n //######################### public methods #########################\n\n /**\n * Retrieves a single cookie by it's name\n *\n * @param name - Identification of the Cookie\n * @param skipSerialization - Indication whether skip deserialization from json string\n * @returns The Cookie's value\n */\n public getCookie(name: string, skipSerialization?: boolean): any\n {\n if(!this._isBrowser && isBlank(this._serverCookies))\n {\n return null;\n }\n\n name = encodeURIComponent(name);\n \n const regexp = new RegExp('(?:^' + name + '|;\\\\s*' + name + ')=(.*?)(?:;|$)', 'g');\n let result;\n\n if(isBlank(this._serverCookies))\n {\n result = regexp.exec(document.cookie);\n }\n else\n {\n result = regexp.exec(this._serverCookies);\n }\n\n if(result === null)\n {\n return null;\n }\n\n const val = decodeURIComponent(result[1]);\n\n return skipSerialization ? val : JSON.parse(val);\n }\n\n /**\n * Save the Cookie\n *\n * @param name - Cookie's identification\n * @param value - Cookie's value\n * @param expires - Cookie's expiration date in days from now. If it's undefined the cookie is a session Cookie\n * @param path - Path relative to the domain where the cookie should be avaiable. Default /\n * @param domain - Domain where the cookie should be avaiable. Default current domain\n * @param skipSerialization - Indication whether skip serialization to json string\n */\n public setCookie(name: string, value: any, expires?: number, path?: string, domain?: string, skipSerialization?: boolean): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n const val = skipSerialization ? value : JSON.stringify(value);\n let cookieStr = encodeURIComponent(name) + '=' + encodeURIComponent(val) + ';';\n\n if (expires)\n {\n const dtExpires = new Date(new Date().getTime() + expires * 1000 * 60 * 60 * 24);\n cookieStr += 'expires=' + dtExpires.toUTCString() + ';';\n }\n \n if (path)\n {\n cookieStr += 'path=' + path + ';';\n }\n \n if (domain)\n {\n cookieStr += 'domain=' + domain + ';';\n }\n\n document.cookie = cookieStr;\n }\n\n /**\n * Removes specified Cookie\n *\n * @param name - Cookie's identification\n * @param path - Path relative to the domain where the cookie should be avaiable. Default /\n * @param domain - Domain where the cookie should be avaiable. Default current domain\n */\n public deleteCookie(name: string, path?: string, domain?: string): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n // If the cookie exists\n if (this.getCookie(name))\n {\n this.setCookie(name, '', -1, path, domain);\n }\n }\n}"]}
1
+ {"version":3,"file":"cookies.service.js","sourceRoot":"","sources":["../../../../src/services/cookies/cookies.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC;;AAE9D;;GAEG;AAEH,MAAM,OAAO,aAAa;IAStB,iEAAiE;IACjE,YAAiC,UAAkB,EACiB,cAAsB;QAAtB,mBAAc,GAAd,cAAc,CAAQ;QAT1F,oEAAoE;QAEpE;;WAEG;QACK,eAAU,GAAY,KAAK,CAAC;QAMhC,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;IAED,oEAAoE;IAEpE;;;;;;OAMG;IACI,SAAS,CAAC,IAAY,EAAE,iBAA2B;QAEtD,IAAG,CAAC,IAAI,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EACnD;YACI,OAAO,IAAI,CAAC;SACf;QAED,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAEhC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,GAAG,gBAAgB,EAAE,GAAG,CAAC,CAAC;QACnF,IAAI,MAAM,CAAC;QAEX,IAAG,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAC/B;YACI,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACzC;aAED;YACI,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CA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U,EACnB;YACI,OAAO;SACV;QAED,uBAAuB;QACvB,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EACxB;YACI,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SAC9C;IACL,CAAC;;0GAlHQ,aAAa,kBAUF,WAAW,aACC,0BAA0B;8GAXjD,aAAa,cADD,MAAM;2FAClB,aAAa;kBADzB,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;0BAWf,MAAM;2BAAC,WAAW;;0BAClB,QAAQ;;0BAAI,MAAM;2BAAC,0BAA0B","sourcesContent":["import {PLATFORM_ID, Inject, Optional, Injectable} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\nimport {isBlank} from '@jscrpt/common';\n\nimport {HTTP_REQUEST_COOKIE_HEADER} from '../../types/tokens';\n\n/**\n * Class that is used as wrapper for working with cookies\n */\n@Injectable({providedIn: 'root'})\nexport class CookieService\n{\n //######################### private fields #########################\n\n /**\n * Indication that current code is running in browser\n */\n private _isBrowser: boolean = false;\n\n //######################### constructor #########################\n constructor(@Inject(PLATFORM_ID) platformId: Object,\n @Optional() @Inject(HTTP_REQUEST_COOKIE_HEADER) private _serverCookies: string)\n {\n this._isBrowser = isPlatformBrowser(platformId);\n }\n\n //######################### public methods #########################\n\n /**\n * Retrieves a single cookie by it's name\n *\n * @param name - Identification of the Cookie\n * @param skipSerialization - Indication whether skip deserialization from json string\n * @returns The Cookie's value\n */\n public getCookie(name: string, skipSerialization?: boolean): any\n {\n if(!this._isBrowser && isBlank(this._serverCookies))\n {\n return null;\n }\n\n name = encodeURIComponent(name);\n \n const regexp = new RegExp('(?:^' + name + '|;\\\\s*' + name + ')=(.*?)(?:;|$)', 'g');\n let result;\n\n if(isBlank(this._serverCookies))\n {\n result = regexp.exec(document.cookie);\n }\n else\n {\n result = regexp.exec(this._serverCookies);\n }\n\n if(result === null)\n {\n return null;\n }\n\n const val = decodeURIComponent(result[1]);\n\n return skipSerialization ? val : JSON.parse(val);\n }\n\n /**\n * Save the Cookie\n *\n * @param name - Cookie's identification\n * @param value - Cookie's value\n * @param expires - Cookie's expiration date in days from now. If it's undefined the cookie is a session Cookie\n * @param path - Path relative to the domain where the cookie should be avaiable. Default /\n * @param domain - Domain where the cookie should be avaiable. Default current domain\n * @param skipSerialization - Indication whether skip serialization to json string\n */\n public setCookie(name: string, value: any, expires?: number, path?: string, domain?: string, skipSerialization?: boolean): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n const val = skipSerialization ? value : JSON.stringify(value);\n let cookieStr = encodeURIComponent(name) + '=' + encodeURIComponent(val) + ';';\n\n if (expires)\n {\n const dtExpires = new Date(new Date().getTime() + expires * 1000 * 60 * 60 * 24);\n cookieStr += 'expires=' + dtExpires.toUTCString() + ';';\n }\n \n if (path)\n {\n cookieStr += 'path=' + path + ';';\n }\n \n if (domain)\n {\n cookieStr += 'domain=' + domain + ';';\n }\n\n document.cookie = cookieStr;\n }\n\n /**\n * Removes specified Cookie\n *\n * @param name - Cookie's identification\n * @param path - Path relative to the domain where the cookie should be avaiable. Default /\n * @param domain - Domain where the cookie should be avaiable. Default current domain\n */\n public deleteCookie(name: string, path?: string, domain?: string): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n // If the cookie exists\n if (this.getCookie(name))\n {\n this.setCookie(name, '', -1, path, domain);\n }\n }\n}"]}
@@ -178,9 +178,9 @@ export class DefaultNotificationsService {
178
178
  return this;
179
179
  }
180
180
  }
181
- DefaultNotificationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultNotificationsService, deps: [{ token: i1.NotificationsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
182
- DefaultNotificationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultNotificationsService });
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultNotificationsService, decorators: [{
181
+ DefaultNotificationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DefaultNotificationsService, deps: [{ token: i1.NotificationsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
182
+ DefaultNotificationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DefaultNotificationsService });
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DefaultNotificationsService, decorators: [{
184
184
  type: Injectable
185
185
  }], ctorParameters: function () { return [{ type: i1.NotificationsOptions, decorators: [{
186
186
  type: Optional
@@ -35,9 +35,9 @@ export class CookiePermanentStorageService {
35
35
  this._cookies.deleteCookie(name, '/');
36
36
  }
37
37
  }
38
- CookiePermanentStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CookiePermanentStorageService, deps: [{ token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
39
- CookiePermanentStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CookiePermanentStorageService });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: CookiePermanentStorageService, decorators: [{
38
+ CookiePermanentStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CookiePermanentStorageService, deps: [{ token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
39
+ CookiePermanentStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CookiePermanentStorageService });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CookiePermanentStorageService, decorators: [{
41
41
  type: Injectable
42
42
  }], ctorParameters: function () { return [{ type: i1.CookieService }]; } });
43
43
  //# sourceMappingURL=cookiePermanentStorage.service.js.map
@@ -20,9 +20,9 @@ export class StatusCodeService {
20
20
  this._statusCode = code;
21
21
  }
22
22
  }
23
- StatusCodeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StatusCodeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
24
- StatusCodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StatusCodeService, providedIn: 'root' });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: StatusCodeService, decorators: [{
23
+ StatusCodeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StatusCodeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
24
+ StatusCodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StatusCodeService, providedIn: 'root' });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: StatusCodeService, decorators: [{
26
26
  type: Injectable,
27
27
  args: [{ providedIn: 'root' }]
28
28
  }] });
@@ -35,9 +35,9 @@ export class NoStringLocalizationService {
35
35
  return key;
36
36
  }
37
37
  }
38
- NoStringLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NoStringLocalizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
- NoStringLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NoStringLocalizationService });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NoStringLocalizationService, decorators: [{
38
+ NoStringLocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: NoStringLocalizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
+ NoStringLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: NoStringLocalizationService });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: NoStringLocalizationService, decorators: [{
41
41
  type: Injectable
42
42
  }] });
43
43
  //# sourceMappingURL=noStringLocalization.service.js.map
@@ -35,9 +35,9 @@ export class MemoryTemporaryStorageService {
35
35
  delete this._memory[name];
36
36
  }
37
37
  }
38
- MemoryTemporaryStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MemoryTemporaryStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
- MemoryTemporaryStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MemoryTemporaryStorageService });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MemoryTemporaryStorageService, decorators: [{
38
+ MemoryTemporaryStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MemoryTemporaryStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
39
+ MemoryTemporaryStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MemoryTemporaryStorageService });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MemoryTemporaryStorageService, decorators: [{
41
41
  type: Injectable
42
42
  }] });
43
43
  //# sourceMappingURL=memoryTemporaryStorage.service.js.map
@@ -41,9 +41,9 @@ export class LocalPermanentStorageService {
41
41
  store.remove(name);
42
42
  }
43
43
  }
44
- LocalPermanentStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalPermanentStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
45
- LocalPermanentStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalPermanentStorageService });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LocalPermanentStorageService, decorators: [{
44
+ LocalPermanentStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LocalPermanentStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
45
+ LocalPermanentStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LocalPermanentStorageService });
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LocalPermanentStorageService, decorators: [{
47
47
  type: Injectable
48
48
  }], ctorParameters: function () { return []; } });
49
49
  //# sourceMappingURL=localPermanentStorage.service.js.map
@@ -29,9 +29,9 @@ export class SessionTemporaryStorageService {
29
29
  store.remove(name);
30
30
  }
31
31
  }
32
- SessionTemporaryStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SessionTemporaryStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
33
- SessionTemporaryStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SessionTemporaryStorageService });
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SessionTemporaryStorageService, decorators: [{
32
+ SessionTemporaryStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SessionTemporaryStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
33
+ SessionTemporaryStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SessionTemporaryStorageService });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SessionTemporaryStorageService, decorators: [{
35
35
  type: Injectable
36
36
  }] });
37
37
  //# sourceMappingURL=sessionTemporaryStorage.service.js.map
@@ -83,9 +83,9 @@ export class ConsoleComponent {
83
83
  }
84
84
  }
85
85
  }
86
- ConsoleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleComponent, deps: [{ token: CONSOLE_COMPONENT_SINK_SERVICE }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
87
- ConsoleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ConsoleComponent, selector: "console", ngImport: i0, template: "<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log?.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>", styles: [":host\n{\n display: flex;\n flex-direction: column;\n position: absolute;\n width: 100%;\n height: 50%;\n}\n\n.console-data\n{\n background-color: #000000c7;\n border: none;\n border-bottom: 1px solid #AAA;\n border-radius: 0;\n color: #EEE;\n flex: 1;\n min-height: 0;\n min-width: 0;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.console-filter\n{\n align-self: stretch;\n}\n\n.console-filter input\n{\n width: 100%;\n background-color: #000000c7;\n color: #FFF;\n border: none;\n border-bottom: 1px solid #AAA;\n padding: 0 4px;\n}\n\n.copy-icon,\n.clear-icon\n{\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 14px;\n}\n\n.copy-icon\n{\n margin-right: 20px;\n}\n\n.clear-icon div:hover,\n.copy-icon div:hover\n{\n color: #31A1FF;\n cursor: pointer;\n}\n\n.console-log\n{\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n display: flex;\n flex-direction: row;\n}\n\n.console-log.error,\n.console-log.fatal\n{\n color: #FF3131;\n}\n\n.console-log.warning\n{\n color: #FFC531;\n}\n\n.console-log.debug,\n.console-log.verbose\n{\n color: #31A1FF;\n}\n\n.console-log-icon\n{\n color: #FFF;\n font-weight: bold;\n margin: 2px 4px 0;\n}\n\n.console-log-icon.fa-angle-down\n{\n margin: 3px 3px 0 2px;\n}\n\n.console-log-text\n{\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.console-log-text.expanded\n{\n white-space: pre;\n text-overflow: initial;\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleComponent, decorators: [{
86
+ ConsoleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleComponent, deps: [{ token: CONSOLE_COMPONENT_SINK_SERVICE }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
87
+ ConsoleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ConsoleComponent, selector: "console", ngImport: i0, template: "<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log?.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>", styles: [":host\n{\n display: flex;\n flex-direction: column;\n position: absolute;\n width: 100%;\n height: 50%;\n}\n\n.console-data\n{\n background-color: #000000c7;\n border: none;\n border-bottom: 1px solid #AAA;\n border-radius: 0;\n color: #EEE;\n flex: 1;\n min-height: 0;\n min-width: 0;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.console-filter\n{\n align-self: stretch;\n}\n\n.console-filter input\n{\n width: 100%;\n background-color: #000000c7;\n color: #FFF;\n border: none;\n border-bottom: 1px solid #AAA;\n padding: 0 4px;\n}\n\n.copy-icon,\n.clear-icon\n{\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 14px;\n}\n\n.copy-icon\n{\n margin-right: 20px;\n}\n\n.clear-icon div:hover,\n.copy-icon div:hover\n{\n color: #31A1FF;\n cursor: pointer;\n}\n\n.console-log\n{\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n display: flex;\n flex-direction: row;\n}\n\n.console-log.error,\n.console-log.fatal\n{\n color: #FF3131;\n}\n\n.console-log.warning\n{\n color: #FFC531;\n}\n\n.console-log.debug,\n.console-log.verbose\n{\n color: #31A1FF;\n}\n\n.console-log-icon\n{\n color: #FFF;\n font-weight: bold;\n margin: 2px 4px 0;\n}\n\n.console-log-icon.fa-angle-down\n{\n margin: 3px 3px 0 2px;\n}\n\n.console-log-text\n{\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.console-log-text.expanded\n{\n white-space: pre;\n text-overflow: initial;\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleComponent, decorators: [{
89
89
  type: Component,
90
90
  args: [{ selector: 'console', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log?.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>", styles: [":host\n{\n display: flex;\n flex-direction: column;\n position: absolute;\n width: 100%;\n height: 50%;\n}\n\n.console-data\n{\n background-color: #000000c7;\n border: none;\n border-bottom: 1px solid #AAA;\n border-radius: 0;\n color: #EEE;\n flex: 1;\n min-height: 0;\n min-width: 0;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.console-filter\n{\n align-self: stretch;\n}\n\n.console-filter input\n{\n width: 100%;\n background-color: #000000c7;\n color: #FFF;\n border: none;\n border-bottom: 1px solid #AAA;\n padding: 0 4px;\n}\n\n.copy-icon,\n.clear-icon\n{\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 14px;\n}\n\n.copy-icon\n{\n margin-right: 20px;\n}\n\n.clear-icon div:hover,\n.copy-icon div:hover\n{\n color: #31A1FF;\n cursor: pointer;\n}\n\n.console-log\n{\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n display: flex;\n flex-direction: row;\n}\n\n.console-log.error,\n.console-log.fatal\n{\n color: #FF3131;\n}\n\n.console-log.warning\n{\n color: #FFC531;\n}\n\n.console-log.debug,\n.console-log.verbose\n{\n color: #31A1FF;\n}\n\n.console-log-icon\n{\n color: #FFF;\n font-weight: bold;\n margin: 2px 4px 0;\n}\n\n.console-log-icon.fa-angle-down\n{\n margin: 3px 3px 0 2px;\n}\n\n.console-log-text\n{\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.console-log-text.expanded\n{\n white-space: pre;\n text-overflow: initial;\n}"] }]
91
91
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -22,10 +22,10 @@ export class ConsoleLogModule {
22
22
  };
23
23
  }
24
24
  }
25
- ConsoleLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
- ConsoleLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: ConsoleLogModule, declarations: [ConsoleComponent], imports: [CommonModule], exports: [ConsoleComponent] });
27
- ConsoleLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleLogModule, imports: [CommonModule] });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleLogModule, decorators: [{
25
+ ConsoleLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
+ ConsoleLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: ConsoleLogModule, declarations: [ConsoleComponent], imports: [CommonModule], exports: [ConsoleComponent] });
27
+ ConsoleLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleLogModule, imports: [CommonModule] });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleLogModule, decorators: [{
29
29
  type: NgModule,
30
30
  args: [{
31
31
  imports: [
@@ -88,9 +88,9 @@ export class ConsoleComponentSinkService {
88
88
  }
89
89
  }
90
90
  }
91
- ConsoleComponentSinkService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleComponentSinkService, deps: [{ token: i1.ConsoleSinkConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
92
- ConsoleComponentSinkService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleComponentSinkService });
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleComponentSinkService, decorators: [{
91
+ ConsoleComponentSinkService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleComponentSinkService, deps: [{ token: i1.ConsoleSinkConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
92
+ ConsoleComponentSinkService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleComponentSinkService });
93
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleComponentSinkService, decorators: [{
94
94
  type: Injectable
95
95
  }], ctorParameters: function () { return [{ type: i1.ConsoleSinkConfigService }]; } });
96
96
  //# sourceMappingURL=consoleComponentSink.service.js.map
@@ -29,9 +29,9 @@ export class ConsoleSinkConfigService {
29
29
  }
30
30
  }
31
31
  }
32
- ConsoleSinkConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleSinkConfigService, deps: [{ token: Injector }, { token: Injector }], target: i0.ɵɵFactoryTarget.Injectable });
33
- ConsoleSinkConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleSinkConfigService, providedIn: 'root', useFactory: () => new ConsoleSinkConfigService() });
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ConsoleSinkConfigService, decorators: [{
32
+ ConsoleSinkConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleSinkConfigService, deps: [{ token: Injector }, { token: Injector }], target: i0.ɵɵFactoryTarget.Injectable });
33
+ ConsoleSinkConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleSinkConfigService, providedIn: 'root', useFactory: () => new ConsoleSinkConfigService() });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConsoleSinkConfigService, decorators: [{
35
35
  type: Injectable,
36
36
  args: [{ providedIn: 'root', useFactory: () => new ConsoleSinkConfigService() }]
37
37
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -33,9 +33,9 @@ export class LoggerService {
33
33
  this._logger.verbose(errorOrMessageTemplate, properties);
34
34
  }
35
35
  }
36
- LoggerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LoggerService, deps: [{ token: LOGGER_SINKS }], target: i0.ɵɵFactoryTarget.Injectable });
37
- LoggerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LoggerService });
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: LoggerService, decorators: [{
36
+ LoggerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoggerService, deps: [{ token: LOGGER_SINKS }], target: i0.ɵɵFactoryTarget.Injectable });
37
+ LoggerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoggerService });
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoggerService, decorators: [{
39
39
  type: Injectable
40
40
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
41
41
  type: Inject,
@@ -104,9 +104,9 @@ export class RestSinkService {
104
104
  }
105
105
  }
106
106
  }
107
- RestSinkService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: RestSinkService, deps: [{ token: i1.RestSinkConfigService }, { token: APP_STABLE }, { token: LOGGER_REST_CLIENT }], target: i0.ɵɵFactoryTarget.Injectable });
108
- RestSinkService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: RestSinkService });
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: RestSinkService, decorators: [{
107
+ RestSinkService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkService, deps: [{ token: i1.RestSinkConfigService }, { token: APP_STABLE }, { token: LOGGER_REST_CLIENT }], target: i0.ɵɵFactoryTarget.Injectable });
108
+ RestSinkService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkService });
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkService, decorators: [{
110
110
  type: Injectable
111
111
  }], ctorParameters: function () { return [{ type: i1.RestSinkConfigService }, { type: Promise, decorators: [{
112
112
  type: Inject,
@@ -1 +1 @@
1
- {"version":3,"file":"restSink.service.js","sourceRoot":"","sources":["../../../../../structured-log/src/services/rest/restSink.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAiB,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAC,M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IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,qEAAqE;IAErE;;OAEG;IACK,gBAAgB,CAAC,CAAW;QAEhC,MAAM,uBAAuB,GAAS,CAAC,CAAC,eAAgB,CAAC;QAEzD,IAAG,uBAAuB,CAAC,WAAW,IAAI,uBAAuB,CAAC,WAAW,CAAC,SAAS,IAAI,uBAAuB,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAC/I;YACI,uBAAuB,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;SACjE;IACL,CAAC;;4GA7IQ,eAAe,uDAqBJ,UAAU,aACV,kBAAkB;gHAtB7B,eAAe;2FAAf,eAAe;kBAD3B,UAAU;8FAsBmC,OAAO;0BAApC,MAAM;2BAAC,UAAU;;0BACjB,MAAM;2BAAC,kBAAkB","sourcesContent":["import {Injectable, Inject} from '@angular/core';\nimport {APP_STABLE} from '@anglr/common';\nimport {isPresent} from '@jscrpt/common';\nimport {Sink, LogEvent, LogEventLevel} from 'structured-log';\n\nimport {toText, isEnabled} from '../../misc/utils';\nimport {RestSinkConfigService} from './restSinkConfig.service';\nimport {LOGGER_REST_CLIENT} from '../../types/tokens';\nimport {LoggerRestClient, RestLog} from '../../types/logger.interface';\n\n/**\n * Sink that is used for storing logs using REST\n */\n@Injectable()\nexport class RestSinkService implements Sink\n{\n //######################### private fields #########################\n\n /**\n * Indication that prototype of MessageTemplate was updated\n */\n private _prototypeUpdated: boolean = false;\n\n /**\n * Array of unflushed logs\n */\n private _logs: RestLog[] = [];\n\n /**\n * Interval timer id\n */\n private _timer: number;\n\n //######################### constructor #########################\n constructor(private _configSvc: RestSinkConfigService,\n @Inject(APP_STABLE) isStable: Promise<void>,\n @Inject(LOGGER_REST_CLIENT) private _restClient: LoggerRestClient)\n {\n isStable.then(() =>\n {\n this._timer = setInterval(() =>\n {\n this.flush();\n }, this._configSvc.secondsToFlushAfter * 1000) as any;\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if(isPresent(this._timer))\n {\n clearInterval(this._timer);\n }\n\n this.flush();\n }\n\n //######################### public methods - implementation of Sink #########################\n\n /**\n * Emits events into log\n * @param events - Events to be emitted\n */\n public emit(events: LogEvent[]): void\n {\n if(!events || !events.length)\n {\n return;\n }\n\n let forceFlush = false;\n\n events.forEach(e =>\n {\n if(!this._prototypeUpdated)\n {\n this._updatePrototype(e);\n\n this._prototypeUpdated = true;\n }\n\n if (!isEnabled(this._configSvc.restrictToLevel, e.level))\n {\n return;\n }\n\n const logLevel = LogEventLevel[e.level].toUpperCase();\n const timestamp = e.timestamp;\n const message = e.messageTemplate.render(e.properties);\n\n this._logs.push(\n {\n logLevel,\n message,\n timestamp\n });\n\n if (isEnabled(this._configSvc.immediateFlushMinLevel, e.level))\n {\n forceFlush = true;\n }\n });\n\n //flush if number of records is bigger than max or flush is required\n if(forceFlush || this._logs.length >= this._configSvc.flushAfterNumberOfLogs)\n {\n this.flush();\n }\n }\n\n /**\n * Flushes logs\n */\n public flush(): Promise<void>\n {\n let promise: Promise<void>;\n\n //no logs available\n if(!this._logs.length)\n {\n return Promise.resolve(null);\n }\n\n try\n {\n promise = this._restClient.log(this._logs).toPromise();\n }\n catch(e)\n {\n console.log(e);\n }\n\n this._logs = [];\n\n return promise ?? Promise.resolve(null);\n }\n\n //######################### private methods #########################\n\n /**\n * Updates prototype of MessageTemplate\n */\n private _updatePrototype(e: LogEvent): void\n {\n const messageTemplateInstance = (<any>e.messageTemplate);\n\n if(messageTemplateInstance.constructor && messageTemplateInstance.constructor.prototype && messageTemplateInstance.constructor.prototype.toText)\n {\n messageTemplateInstance.constructor.prototype.toText = toText;\n }\n }\n}"]}
1
+ {"version":3,"file":"restSink.service.js","sourceRoot":"","sources":["../../../../../structured-log/src/services/rest/restSink.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACjD,OA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OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SAClB;QAED,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAEhB,OAAO,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,qEAAqE;IAErE;;OAEG;IACK,gBAAgB,CAAC,CAAW;QAEhC,MAAM,uBAAuB,GAAS,CAAC,CAAC,eAAgB,CAAC;QAEzD,IAAG,uBAAuB,CAAC,WAAW,IAAI,uBAAuB,CAAC,WAAW,CAAC,SAAS,IAAI,uBAAuB,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAC/I;YACI,uBAAuB,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;SACjE;IACL,CAAC;;4GA7IQ,eAAe,uDAqBJ,UAAU,aACV,kBAAkB;gHAtB7B,eAAe;2FAAf,eAAe;kBAD3B,UAAU;;0BAsBM,MAAM;2BAAC,UAAU;;0BACjB,MAAM;2BAAC,kBAAkB","sourcesContent":["import {Injectable, Inject} from '@angular/core';\nimport {APP_STABLE} from '@anglr/common';\nimport {isPresent} from '@jscrpt/common';\nimport {Sink, LogEvent, LogEventLevel} from 'structured-log';\n\nimport {toText, isEnabled} from '../../misc/utils';\nimport {RestSinkConfigService} from './restSinkConfig.service';\nimport {LOGGER_REST_CLIENT} from '../../types/tokens';\nimport {LoggerRestClient, RestLog} from '../../types/logger.interface';\n\n/**\n * Sink that is used for storing logs using REST\n */\n@Injectable()\nexport class RestSinkService implements Sink\n{\n //######################### private fields #########################\n\n /**\n * Indication that prototype of MessageTemplate was updated\n */\n private _prototypeUpdated: boolean = false;\n\n /**\n * Array of unflushed logs\n */\n private _logs: RestLog[] = [];\n\n /**\n * Interval timer id\n */\n private _timer: number;\n\n //######################### constructor #########################\n constructor(private _configSvc: RestSinkConfigService,\n @Inject(APP_STABLE) isStable: Promise<void>,\n @Inject(LOGGER_REST_CLIENT) private _restClient: LoggerRestClient)\n {\n isStable.then(() =>\n {\n this._timer = setInterval(() =>\n {\n this.flush();\n }, this._configSvc.secondsToFlushAfter * 1000) as any;\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if(isPresent(this._timer))\n {\n clearInterval(this._timer);\n }\n\n this.flush();\n }\n\n //######################### public methods - implementation of Sink #########################\n\n /**\n * Emits events into log\n * @param events - Events to be emitted\n */\n public emit(events: LogEvent[]): void\n {\n if(!events || !events.length)\n {\n return;\n }\n\n let forceFlush = false;\n\n events.forEach(e =>\n {\n if(!this._prototypeUpdated)\n {\n this._updatePrototype(e);\n\n this._prototypeUpdated = true;\n }\n\n if (!isEnabled(this._configSvc.restrictToLevel, e.level))\n {\n return;\n }\n\n const logLevel = LogEventLevel[e.level].toUpperCase();\n const timestamp = e.timestamp;\n const message = e.messageTemplate.render(e.properties);\n\n this._logs.push(\n {\n logLevel,\n message,\n timestamp\n });\n\n if (isEnabled(this._configSvc.immediateFlushMinLevel, e.level))\n {\n forceFlush = true;\n }\n });\n\n //flush if number of records is bigger than max or flush is required\n if(forceFlush || this._logs.length >= this._configSvc.flushAfterNumberOfLogs)\n {\n this.flush();\n }\n }\n\n /**\n * Flushes logs\n */\n public flush(): Promise<void>\n {\n let promise: Promise<void>;\n\n //no logs available\n if(!this._logs.length)\n {\n return Promise.resolve(null);\n }\n\n try\n {\n promise = this._restClient.log(this._logs).toPromise();\n }\n catch(e)\n {\n console.log(e);\n }\n\n this._logs = [];\n\n return promise ?? Promise.resolve(null);\n }\n\n //######################### private methods #########################\n\n /**\n * Updates prototype of MessageTemplate\n */\n private _updatePrototype(e: LogEvent): void\n {\n const messageTemplateInstance = (<any>e.messageTemplate);\n\n if(messageTemplateInstance.constructor && messageTemplateInstance.constructor.prototype && messageTemplateInstance.constructor.prototype.toText)\n {\n messageTemplateInstance.constructor.prototype.toText = toText;\n }\n }\n}"]}
@@ -34,9 +34,9 @@ export class RestSinkConfigService {
34
34
  }
35
35
  }
36
36
  }
37
- RestSinkConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: RestSinkConfigService, deps: [{ token: Injector }, { token: Injector }, { token: Injector }, { token: Injector }], target: i0.ɵɵFactoryTarget.Injectable });
38
- RestSinkConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: RestSinkConfigService, providedIn: 'root', useFactory: () => new RestSinkConfigService() });
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: RestSinkConfigService, decorators: [{
37
+ RestSinkConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkConfigService, deps: [{ token: Injector }, { token: Injector }, { token: Injector }, { token: Injector }], target: i0.ɵɵFactoryTarget.Injectable });
38
+ RestSinkConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkConfigService, providedIn: 'root', useFactory: () => new RestSinkConfigService() });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkConfigService, decorators: [{
40
40
  type: Injectable,
41
41
  args: [{ providedIn: 'root', useFactory: () => new RestSinkConfigService() }]
42
42
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -211,9 +211,9 @@ export class FloatingUiDomPosition {
211
211
  }
212
212
  }
213
213
  }
214
- FloatingUiDomPosition.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: FloatingUiDomPosition, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
215
- FloatingUiDomPosition.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: FloatingUiDomPosition });
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: FloatingUiDomPosition, decorators: [{
214
+ FloatingUiDomPosition.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FloatingUiDomPosition, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
215
+ FloatingUiDomPosition.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FloatingUiDomPosition });
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FloatingUiDomPosition, decorators: [{
217
217
  type: Injectable
218
218
  }] });
219
219
  /**
@@ -25,12 +25,12 @@ export class DefaultValidationErrorsComponent {
25
25
  this._changeDetector.detectChanges();
26
26
  }
27
27
  }
28
- DefaultValidationErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultValidationErrorsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
29
- DefaultValidationErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: DefaultValidationErrorsComponent, selector: "default-validation-errors", host: { properties: { "@animateChildren": "this.animate" } }, ngImport: i0, template: "<div [ngClass]=\"options?.wrapperDivClass\" *ngIf=\"errors?.errorMessages?.length\" @slideInOut>\n <div *ngFor=\"let error of errors?.errorMessages\">{{error}}</div>\n</div>", styles: [":host\n{\n display: contents;\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
28
+ DefaultValidationErrorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DefaultValidationErrorsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
29
+ DefaultValidationErrorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: DefaultValidationErrorsComponent, selector: "default-validation-errors", host: { properties: { "@animateChildren": "this.animate" } }, ngImport: i0, template: "<div [ngClass]=\"options?.wrapperDivClass\" *ngIf=\"errors?.errorMessages?.length\" @slideInOut>\n <div *ngFor=\"let error of errors?.errorMessages\">{{error}}</div>\n</div>", styles: [":host\n{\n display: contents;\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
30
30
  slideInOutTrigger,
31
31
  animateChildrenTrigger
32
32
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DefaultValidationErrorsComponent, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DefaultValidationErrorsComponent, decorators: [{
34
34
  type: Component,
35
35
  args: [{ selector: 'default-validation-errors', animations: [
36
36
  slideInOutTrigger,