@anglr/common 14.2.0-beta.20221025042231 → 15.0.0-beta.20221026052356

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 (266) hide show
  1. package/changelog.md +44 -0
  2. package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js +83 -65
  3. package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
  4. package/es2015/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +3 -3
  5. package/es2015/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +3 -3
  6. package/es2015/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +3 -3
  7. package/es2015/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  8. package/es2015/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -3
  9. package/es2015/forms/src/directives/hasError/hasError.directive.js +3 -3
  10. package/es2015/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  11. package/es2015/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  12. package/es2015/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  13. package/es2015/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  14. package/es2015/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  15. package/es2015/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  16. package/es2015/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -3
  17. package/es2015/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -3
  18. package/es2015/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +3 -3
  19. package/es2015/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -3
  20. package/es2015/forms/src/modules/errorMessage/modules/errorMessage.module.js +4 -4
  21. package/es2015/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  22. package/es2015/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  23. package/es2015/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  24. package/es2015/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  25. package/es2015/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  26. package/es2015/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  27. package/es2015/forms/src/modules/hasError.module.js +4 -4
  28. package/es2015/forms/src/modules/numberInput.module.js +4 -4
  29. package/es2015/forms/src/modules/requiredClass.module.js +4 -4
  30. package/es2015/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  31. package/es2015/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  32. package/es2015/forms/src/services/submitted/submitted.service.js +3 -3
  33. package/es2015/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  34. package/es2015/hotkeys/src/services/appHotkeys.service.js +3 -3
  35. package/es2015/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -3
  36. package/es2015/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
  37. package/es2015/material/src/components/titledDialog/titledDialog.component.js +3 -3
  38. package/es2015/material/src/directives/confirmationDialog/confirmationDialog.directive.js +10 -8
  39. package/es2015/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
  40. package/es2015/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  41. package/es2015/material/src/modules/confirmationDialog.module.js +4 -4
  42. package/es2015/material/src/modules/debugDataCopyClick.module.js +4 -4
  43. package/es2015/material/src/modules/movableTitledDialog.module.js +4 -4
  44. package/es2015/material/src/modules/titledDialog.module.js +4 -4
  45. package/es2015/material/src/services/titledDialog/titledDialog.service.js +3 -3
  46. package/es2015/moment/src/modules/moment.module.js +4 -4
  47. package/es2015/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
  48. package/es2015/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
  49. package/es2015/numeral/src/modules/numeral.module.js +4 -4
  50. package/es2015/numeral/src/pipes/numeral.pipe.js +3 -3
  51. package/es2015/router/src/services/routing/dataRouter.js +3 -3
  52. package/es2015/router/src/services/routing/dataRouterData.js +3 -3
  53. package/es2015/src/directives/bodyRender/bodyRender.directive.js +3 -3
  54. package/es2015/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  55. package/es2015/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  56. package/es2015/src/modules/castPipes/modules/castPipes.module.js +4 -4
  57. package/es2015/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  58. package/es2015/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  59. package/es2015/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  60. package/es2015/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  61. package/es2015/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js +3 -3
  62. package/es2015/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js.map +1 -1
  63. package/es2015/src/modules/clickOutside/modules/clickOutside.module.js +4 -4
  64. package/es2015/src/modules/commonDynamic.module.js +4 -4
  65. package/es2015/src/modules/commonLocalize.module.js +4 -4
  66. package/es2015/src/modules/commonUtils.module.js +4 -4
  67. package/es2015/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  68. package/es2015/src/modules/debugData/modules/debugData.module.js +4 -4
  69. package/es2015/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  70. package/es2015/src/modules/goBack/directives/goBack/goBack.directive.js +3 -3
  71. package/es2015/src/modules/goBack/modules/goBack.module.js +4 -4
  72. package/es2015/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  73. package/es2015/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  74. package/es2015/src/modules/multiButton/modules/multiButton.module.js +4 -4
  75. package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js +57 -21
  76. package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js.map +1 -1
  77. package/es2015/src/modules/position/modules/position.module.js +4 -4
  78. package/es2015/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  79. package/es2015/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  80. package/es2015/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  81. package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js +4 -4
  82. package/es2015/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
  83. package/es2015/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  84. package/es2015/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  85. package/es2015/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
  86. package/es2015/src/modules/tooltip/components/tooltip/tooltip.component.js +3 -3
  87. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js +9 -9
  88. package/es2015/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  89. package/es2015/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  90. package/es2015/src/modules/tooltip/modules/tooltip.module.js +4 -4
  91. package/es2015/src/pipes/isNaN/isNaN.pipe.js +3 -3
  92. package/es2015/src/pipes/isPresent/isPresent.pipe.js +3 -3
  93. package/es2015/src/pipes/keys/keys.pipe.js +3 -3
  94. package/es2015/src/pipes/localize/localize.pipe.js +3 -3
  95. package/es2015/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  96. package/es2015/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  97. package/es2015/src/services/cookies/cookies.service.js +3 -3
  98. package/es2015/src/services/cookies/cookies.service.js.map +1 -1
  99. package/es2015/src/services/notifications/defaultNotifications.service.js +3 -3
  100. package/es2015/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  101. package/es2015/src/services/position/position.interface.js.map +1 -1
  102. package/es2015/src/services/position/position.types.js.map +1 -1
  103. package/es2015/src/services/statusCode/statusCode.service.js +3 -3
  104. package/es2015/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  105. package/es2015/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  106. package/es2015/src/utils/index.js +1 -1
  107. package/es2015/src/utils/index.js.map +1 -1
  108. package/es2015/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  109. package/es2015/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  110. package/es2015/structured-log/src/components/console/console.component.js +3 -3
  111. package/es2015/structured-log/src/modules/consoleLog.module.js +4 -4
  112. package/es2015/structured-log/src/services/console/consoleComponentSink.service.js +3 -3
  113. package/es2015/structured-log/src/services/console/consoleSinkConfig.service.js +3 -3
  114. package/es2015/structured-log/src/services/logger.service.js +3 -3
  115. package/es2015/structured-log/src/services/rest/restSink.service.js +7 -5
  116. package/es2015/structured-log/src/services/rest/restSink.service.js.map +1 -1
  117. package/es2015/structured-log/src/services/rest/restSinkConfig.service.js +3 -3
  118. package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js +83 -65
  119. package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
  120. package/es2020/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +3 -3
  121. package/es2020/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +3 -3
  122. package/es2020/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +3 -3
  123. package/es2020/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  124. package/es2020/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -3
  125. package/es2020/forms/src/directives/hasError/hasError.directive.js +3 -3
  126. package/es2020/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  127. package/es2020/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  128. package/es2020/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  129. package/es2020/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  130. package/es2020/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  131. package/es2020/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  132. package/es2020/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -3
  133. package/es2020/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -3
  134. package/es2020/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +3 -3
  135. package/es2020/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -3
  136. package/es2020/forms/src/modules/errorMessage/modules/errorMessage.module.js +4 -4
  137. package/es2020/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  138. package/es2020/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  139. package/es2020/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  140. package/es2020/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  141. package/es2020/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  142. package/es2020/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  143. package/es2020/forms/src/modules/hasError.module.js +4 -4
  144. package/es2020/forms/src/modules/numberInput.module.js +4 -4
  145. package/es2020/forms/src/modules/requiredClass.module.js +4 -4
  146. package/es2020/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  147. package/es2020/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  148. package/es2020/forms/src/services/submitted/submitted.service.js +3 -3
  149. package/es2020/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  150. package/es2020/hotkeys/src/services/appHotkeys.service.js +3 -3
  151. package/es2020/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -3
  152. package/es2020/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
  153. package/es2020/material/src/components/titledDialog/titledDialog.component.js +3 -3
  154. package/es2020/material/src/directives/confirmationDialog/confirmationDialog.directive.js +9 -8
  155. package/es2020/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
  156. package/es2020/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  157. package/es2020/material/src/modules/confirmationDialog.module.js +4 -4
  158. package/es2020/material/src/modules/debugDataCopyClick.module.js +4 -4
  159. package/es2020/material/src/modules/movableTitledDialog.module.js +4 -4
  160. package/es2020/material/src/modules/titledDialog.module.js +4 -4
  161. package/es2020/material/src/services/titledDialog/titledDialog.service.js +3 -3
  162. package/es2020/moment/src/modules/moment.module.js +4 -4
  163. package/es2020/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
  164. package/es2020/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
  165. package/es2020/numeral/src/modules/numeral.module.js +4 -4
  166. package/es2020/numeral/src/pipes/numeral.pipe.js +3 -3
  167. package/es2020/router/src/services/routing/dataRouter.js +3 -3
  168. package/es2020/router/src/services/routing/dataRouterData.js +3 -3
  169. package/es2020/src/directives/bodyRender/bodyRender.directive.js +3 -3
  170. package/es2020/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  171. package/es2020/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  172. package/es2020/src/modules/castPipes/modules/castPipes.module.js +4 -4
  173. package/es2020/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  174. package/es2020/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  175. package/es2020/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  176. package/es2020/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  177. package/es2020/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js +3 -3
  178. package/es2020/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js.map +1 -1
  179. package/es2020/src/modules/clickOutside/modules/clickOutside.module.js +4 -4
  180. package/es2020/src/modules/commonDynamic.module.js +4 -4
  181. package/es2020/src/modules/commonLocalize.module.js +4 -4
  182. package/es2020/src/modules/commonUtils.module.js +4 -4
  183. package/es2020/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  184. package/es2020/src/modules/debugData/modules/debugData.module.js +4 -4
  185. package/es2020/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  186. package/es2020/src/modules/goBack/directives/goBack/goBack.directive.js +3 -3
  187. package/es2020/src/modules/goBack/modules/goBack.module.js +4 -4
  188. package/es2020/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  189. package/es2020/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  190. package/es2020/src/modules/multiButton/modules/multiButton.module.js +4 -4
  191. package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js +58 -21
  192. package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js.map +1 -1
  193. package/es2020/src/modules/position/modules/position.module.js +4 -4
  194. package/es2020/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  195. package/es2020/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  196. package/es2020/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  197. package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js +4 -4
  198. package/es2020/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
  199. package/es2020/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  200. package/es2020/src/modules/progressIndicator/services/progressIndicator.service.js +3 -3
  201. package/es2020/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
  202. package/es2020/src/modules/tooltip/components/tooltip/tooltip.component.js +3 -3
  203. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js +9 -9
  204. package/es2020/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  205. package/es2020/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  206. package/es2020/src/modules/tooltip/modules/tooltip.module.js +4 -4
  207. package/es2020/src/pipes/isNaN/isNaN.pipe.js +3 -3
  208. package/es2020/src/pipes/isPresent/isPresent.pipe.js +3 -3
  209. package/es2020/src/pipes/keys/keys.pipe.js +3 -3
  210. package/es2020/src/pipes/localize/localize.pipe.js +3 -3
  211. package/es2020/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  212. package/es2020/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  213. package/es2020/src/services/cookies/cookies.service.js +3 -3
  214. package/es2020/src/services/cookies/cookies.service.js.map +1 -1
  215. package/es2020/src/services/notifications/defaultNotifications.service.js +3 -3
  216. package/es2020/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  217. package/es2020/src/services/position/position.interface.js.map +1 -1
  218. package/es2020/src/services/position/position.types.js.map +1 -1
  219. package/es2020/src/services/statusCode/statusCode.service.js +3 -3
  220. package/es2020/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  221. package/es2020/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  222. package/es2020/src/utils/index.js +1 -1
  223. package/es2020/src/utils/index.js.map +1 -1
  224. package/es2020/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  225. package/es2020/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  226. package/es2020/structured-log/src/components/console/console.component.js +3 -3
  227. package/es2020/structured-log/src/modules/consoleLog.module.js +4 -4
  228. package/es2020/structured-log/src/services/console/consoleComponentSink.service.js +3 -3
  229. package/es2020/structured-log/src/services/console/consoleSinkConfig.service.js +3 -3
  230. package/es2020/structured-log/src/services/logger.service.js +3 -3
  231. package/es2020/structured-log/src/services/rest/restSink.service.js +6 -5
  232. package/es2020/structured-log/src/services/rest/restSink.service.js.map +1 -1
  233. package/es2020/structured-log/src/services/rest/restSinkConfig.service.js +3 -3
  234. package/floating-ui/src/services/floatingUiDomPosition.service.d.ts.map +1 -1
  235. package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts +4 -4
  236. package/material/src/directives/confirmationDialog/confirmationDialog.directive.d.ts.map +1 -1
  237. package/package.json +31 -28
  238. package/src/modules/position/directives/positionTo/positionTo.directive.d.ts +35 -14
  239. package/src/modules/position/directives/positionTo/positionTo.directive.d.ts.map +1 -1
  240. package/src/modules/progressIndicator/interceptors/progressInterceptor.d.ts.map +1 -1
  241. package/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +1 -1
  242. package/src/services/position/position.interface.d.ts +51 -3
  243. package/src/services/position/position.interface.d.ts.map +1 -1
  244. package/src/services/position/position.types.d.ts +4 -0
  245. package/src/services/position/position.types.d.ts.map +1 -1
  246. package/structured-log/src/services/rest/restSink.service.d.ts.map +1 -1
  247. package/{positions/src/types/positions.typings.d.ts → typings/positions/index.d.ts} +12 -4
  248. package/typings/store/index.d.ts +5 -0
  249. package/{structured-log/src/types/structured-log.typings.d.ts → typings/structured-log/index.d.ts} +49 -13
  250. package/version.bak +1 -1
  251. package/es2015/positions/src/types/positions.typings.js +0 -2
  252. package/es2015/positions/src/types/positions.typings.js.map +0 -1
  253. package/es2015/store/src/types/store.typings.js +0 -2
  254. package/es2015/store/src/types/store.typings.js.map +0 -1
  255. package/es2015/structured-log/src/types/structured-log.typings.js +0 -2
  256. package/es2015/structured-log/src/types/structured-log.typings.js.map +0 -1
  257. package/es2020/positions/src/types/positions.typings.js +0 -2
  258. package/es2020/positions/src/types/positions.typings.js.map +0 -1
  259. package/es2020/store/src/types/store.typings.js +0 -2
  260. package/es2020/store/src/types/store.typings.js.map +0 -1
  261. package/es2020/structured-log/src/types/structured-log.typings.js +0 -2
  262. package/es2020/structured-log/src/types/structured-log.typings.js.map +0 -1
  263. package/positions/src/types/positions.typings.d.ts.map +0 -1
  264. package/store/src/types/store.typings.d.ts +0 -4
  265. package/store/src/types/store.typings.d.ts.map +0 -1
  266. package/structured-log/src/types/structured-log.typings.d.ts.map +0 -1
@@ -2,6 +2,7 @@ import { Injectable, Inject } from '@angular/core';
2
2
  import { APP_STABLE } from '@anglr/common';
3
3
  import { isPresent } from '@jscrpt/common';
4
4
  import { LogEventLevel } from 'structured-log';
5
+ import { lastValueFrom } from 'rxjs';
5
6
  import { toText, isEnabled } from '../../misc/utils';
6
7
  import { RestSinkConfigService } from './restSinkConfig.service';
7
8
  import { LOGGER_REST_CLIENT } from '../../types/tokens';
@@ -27,7 +28,7 @@ export class RestSinkService {
27
28
  isStable.then(() => {
28
29
  this._timer = setInterval(() => {
29
30
  this.flush();
30
- }, this._configSvc.secondsToFlushAfter * 1000);
31
+ }, (this._configSvc.secondsToFlushAfter ?? 0) * 1000);
31
32
  });
32
33
  }
33
34
  //######################### public methods - implementation of OnDestroy #########################
@@ -85,7 +86,7 @@ export class RestSinkService {
85
86
  return Promise.resolve(null);
86
87
  }
87
88
  try {
88
- promise = this._restClient.log(this._logs).toPromise();
89
+ promise = lastValueFrom(this._restClient.log(this._logs));
89
90
  }
90
91
  catch (e) {
91
92
  console.log(e);
@@ -104,9 +105,9 @@ export class RestSinkService {
104
105
  }
105
106
  }
106
107
  }
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: [{
108
+ 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 });
109
+ RestSinkService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkService });
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: RestSinkService, decorators: [{
110
111
  type: Injectable
111
112
  }], ctorParameters: function () { return [{ type: i1.RestSinkConfigService }, { type: Promise, decorators: [{
112
113
  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,MAAM,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,qBAAqB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;;;AAGtD;;GAEG;AAEH,MAAM,OAAO,eAAe;IAmBxB,iEAAiE;IACjE,YAAoB,UAAiC,EACrB,QAAuB,EACP,WAA6B;QAFzD,eAAU,GAAV,UAAU,CAAuB;QAEL,gBAAW,GAAX,WAAW,CAAkB;QApB7E,oEAAoE;QAEpE;;WAEG;QACK,sBAAiB,GAAY,KAAK,CAAC;QAE3C;;WAEG;QACK,UAAK,GAAc,EAAE,CAAC;QAY1B,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE;YAEf,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE;gBAE3B,IAAI,CA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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,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAiB,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAC,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAC,MAAM,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,qBAAqB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;;;AAGtD;;GAEG;AAEH,MAAM,OAAO,eAAe;IAmBxB,iEAAiE;IACjE,YAAoB,UAAiC,EACrB,QAAuB,EACP,WAA6B;QAFzD,eAAU,GAAV,UAAU,CAAuB;QAEL,gBAAW,GAAX,WAAW,CAAkB;QApB7E,oEAAoE;QAEpE;;WAEG;QAC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GA7IQ,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';\nimport {lastValueFrom} from 'rxjs';\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|undefined|null;\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 ?? 0) * 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 = lastValueFrom(this._restClient.log(this._logs));\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: [{
@@ -1 +1 @@
1
- {"version":3,"file":"floatingUiDomPosition.service.d.ts","sourceRoot":"","sources":["floatingUiDomPosition.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAa,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAiE,MAAM,eAAe,CAAC;AAExI,OAAO,EAAkB,SAAS,EAAc,UAAU,EAAe,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;;AAahC;;GAEG;AACH,qBACa,qBAAsB,YAAW,QAAQ;IAIlD;;OAEG;IACI,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC;IAmFrH;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IAQ7E;;;;OAIG;IACH,SAAS,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IAkF/E;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS;yCAlMnD,qBAAqB;6CAArB,qBAAqB;CAyPjC;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAIlC,CAAC"}
1
+ {"version":3,"file":"floatingUiDomPosition.service.d.ts","sourceRoot":"","sources":["floatingUiDomPosition.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAa,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAwG,MAAM,eAAe,CAAC;AAE/K,OAAO,EAAkB,SAAS,EAAc,UAAU,EAAe,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;;AAahC;;GAEG;AACH,qBACa,qBAAsB,YAAW,QAAQ;IAIlD;;OAEG;IACI,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC;IAmFrH;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IAQ7E;;;;OAIG;IACH,SAAS,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IA6G/E;;;OAGG;IACH,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS;yCA7NnD,qBAAqB;6CAArB,qBAAqB;CAoRjC;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAIlC,CAAC"}
@@ -10,7 +10,7 @@ export declare class ConfirmationDialogDirective {
10
10
  /**
11
11
  * Confirmation text that is displayed in dialog
12
12
  */
13
- confirmationText: string;
13
+ confirmationText: string | undefined | null;
14
14
  /**
15
15
  * Title for confirmation dialog
16
16
  */
@@ -18,15 +18,15 @@ export declare class ConfirmationDialogDirective {
18
18
  /**
19
19
  * Text for confirm confirmation button
20
20
  */
21
- confirmationConfirm: string;
21
+ confirmationConfirm: string | undefined | null;
22
22
  /**
23
23
  * Text for cancel confirmation button
24
24
  */
25
- confirmationCancel: string;
25
+ confirmationCancel: string | undefined | null;
26
26
  /**
27
27
  * Object with css classes to be applied to confirmation dialog component
28
28
  */
29
- confirmationCssClasses: ConfirmationDialogCssClasses;
29
+ confirmationCssClasses: ConfirmationDialogCssClasses | undefined | null;
30
30
  /**
31
31
  * Condidition that determines whether display confirmation dialog or skip it and run confirm directly
32
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"confirmationDialog.directive.d.ts","sourceRoot":"","sources":["confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAuB,MAAM,eAAe,CAAC;AAEnF,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AAErF,OAAO,EAA4B,4BAA4B,EAAC,MAAM,oDAAoD,CAAC;;AAE3H;;GAEG;AACH,qBAIa,2BAA2B;IAuDxB,OAAO,CAAC,OAAO;IAnD3B;;OAEG;IAEI,gBAAgB,EAAE,MAAM,CAAa;IAE5C;;OAEG;IAEI,iBAAiB,EAAE,MAAM,CAAkB;IAElD;;OAEG;IAEI,mBAAmB,EAAE,MAAM,CAAa;IAE/C;;OAEG;IAEI,kBAAkB,EAAE,MAAM,CAAa;IAE9C;;OAEG;IAEI,sBAAsB,EAAE,4BAA4B,CAAa;IAExE;;OAEG;IAEI,gBAAgB,EAAE,OAAO,CAAS;IAEzC;;OAEG;IAEI,6BAA6B,EAAE,OAAO,CAAQ;IAIrD;;OAEG;IAEI,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;gBAG1C,OAAO,EAAE,mBAAmB;IAMhD;;OAEG;IAEU,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;yCAjE3C,2BAA2B;2CAA3B,2BAA2B;CAkGvC"}
1
+ {"version":3,"file":"confirmationDialog.directive.d.ts","sourceRoot":"","sources":["confirmationDialog.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAuB,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAC,mBAAmB,EAAC,MAAM,kDAAkD,CAAC;AAErF,OAAO,EAA4B,4BAA4B,EAAC,MAAM,oDAAoD,CAAC;;AAE3H;;GAEG;AACH,qBAIa,2BAA2B;IAuDxB,OAAO,CAAC,OAAO;IAnD3B;;OAEG;IAEI,gBAAgB,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAa;IAE3D;;OAEG;IAEI,iBAAiB,EAAE,MAAM,CAAkB;IAElD;;OAEG;IAEI,mBAAmB,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAa;IAE9D;;OAEG;IAEI,kBAAkB,EAAE,MAAM,GAAC,SAAS,GAAC,IAAI,CAAa;IAE7D;;OAEG;IAEI,sBAAsB,EAAE,4BAA4B,GAAC,SAAS,GAAC,IAAI,CAAa;IAEvF;;OAEG;IAEI,gBAAgB,EAAE,OAAO,CAAS;IAEzC;;OAEG;IAEI,6BAA6B,EAAE,OAAO,CAAQ;IAIrD;;OAEG;IAEI,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;gBAG1C,OAAO,EAAE,mBAAmB;IAMhD;;OAEG;IAEU,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;yCAjE3C,2BAA2B;2CAA3B,2BAA2B;CAkGvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/common",
3
- "version": "14.2.0-beta.20221025042231",
3
+ "version": "15.0.0-beta.20221026052356",
4
4
  "description": "Angular module for common angular stuff",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -94,17 +94,17 @@
94
94
  },
95
95
  "homepage": "https://github.com/ressurectit/ng-common",
96
96
  "peerDependencies": {
97
- "@angular/core": ">=14.0.0",
98
- "@angular/common": ">=14.0.0",
99
- "@angular/forms": ">=14.0.0",
100
- "@angular/router": ">=14.0.0",
101
- "@angular/platform-browser": ">=14.0.0",
102
- "@angular/animations": ">=14.0.0",
103
- "@angular/cdk": ">=14.0.0",
104
- "@angular/material": ">=14.0.0",
97
+ "@angular/core": ">=14.2.0",
98
+ "@angular/common": ">=14.2.0",
99
+ "@angular/forms": ">=14.2.0",
100
+ "@angular/router": ">=14.2.0",
101
+ "@angular/platform-browser": ">=14.2.0",
102
+ "@angular/animations": ">=14.2.0",
103
+ "@angular/cdk": ">=14.2.0",
104
+ "@angular/material": ">=14.2.0",
105
105
  "@anglr/animations": ">=9.1.0",
106
- "rxjs": ">=6.6.7",
107
- "@jscrpt/common": ">=2.2.0",
106
+ "rxjs": ">=7.5.7",
107
+ "@jscrpt/common": ">=3.2.0",
108
108
  "numeral": "^2.0.6",
109
109
  "angular2-hotkeys": "^13.1.0",
110
110
  "store": "^2.0.12",
@@ -112,38 +112,38 @@
112
112
  "moment": "^2.29.1",
113
113
  "date-fns": "^2.27.0",
114
114
  "positions": "^1.6.2",
115
- "@floating-ui/dom": "^0.3.1",
116
- "tslib": "^2.3.1"
115
+ "@floating-ui/dom": "^1.0.3",
116
+ "tslib": "^2.4.0"
117
117
  },
118
118
  "devDependencies": {
119
- "@angular/core": "^14.0.0",
120
- "@angular/common": "^14.0.0",
121
- "@angular/router": "^14.0.0",
122
- "@angular/forms": "^14.0.0",
123
- "@angular/platform-browser": "^14.0.0",
124
- "@angular/animations": "^14.0.0",
125
- "@angular/cdk": "^14.0.0",
126
- "@angular/material": "^14.0.0",
119
+ "@angular/core": "^14.2.0",
120
+ "@angular/common": "^14.2.0",
121
+ "@angular/router": "^14.2.0",
122
+ "@angular/forms": "^14.2.0",
123
+ "@angular/platform-browser": "^14.2.0",
124
+ "@angular/animations": "^14.2.0",
125
+ "@angular/cdk": "^14.2.0",
126
+ "@angular/material": "^14.2.0",
127
127
  "@anglr/animations": "^9.1.0",
128
- "rxjs": "^6.6.7",
129
- "@jscrpt/common": "^2.2.0",
128
+ "rxjs": "^7.5.7",
129
+ "@jscrpt/common": "^3.2.0",
130
130
  "angular2-hotkeys": "^13.1.0",
131
131
  "store": "^2.0.12",
132
132
  "structured-log": "^0.2.0",
133
133
  "moment": "^2.29.1",
134
134
  "date-fns": "^2.27.0",
135
135
  "positions": "^1.6.2",
136
- "@floating-ui/dom": "^0.3.1",
136
+ "@floating-ui/dom": "^1.0.3",
137
137
  "@types/node": "^14.14.31",
138
138
  "@types/numeral": "^2.0.2",
139
139
  "@types/store": "^2.0.2",
140
140
  "@types/mousetrap": "^1.6.8",
141
- "@angular/compiler-cli": "^14.0.0",
142
- "@angular/compiler": "^14.0.0",
143
- "@angular/language-service": "^14.0.0",
141
+ "@angular/compiler-cli": "^14.2.0",
142
+ "@angular/compiler": "^14.2.0",
143
+ "@angular/language-service": "^14.2.0",
144
144
  "@microsoft/api-extractor": "7.19.2",
145
145
  "@microsoft/api-documenter": "7.13.77",
146
- "tslib": "2.3.1",
146
+ "tslib": "2.4.0",
147
147
  "eslint": "7.32.0",
148
148
  "@typescript-eslint/eslint-plugin": "4.33.0",
149
149
  "@typescript-eslint/parser": "4.33.0",
@@ -170,6 +170,9 @@
170
170
  "./styles/*": {
171
171
  "sass": "./styles/*.scss"
172
172
  },
173
+ "./typings/*": {
174
+ "types": "./typings/*/index.d.ts"
175
+ },
173
176
  ".": {
174
177
  "types": "./src/index.d.ts",
175
178
  "esm2020": "./es2020/src/index.js",
@@ -1,43 +1,64 @@
1
- import { ElementRef, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
- import { Position, PositionPlacement } from '../../../../services/position';
1
+ import { ElementRef, OnChanges, SimpleChanges, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { Func1, NoopAction } from '@jscrpt/common';
3
+ import { Position, PositionPlacement, PositionOffsetString, PositionOffsets, PositionArguments, AutoUpdateOptions } from '../../../../services/position';
3
4
  import * as i0 from "@angular/core";
4
5
  /**
5
6
  * Sets position of attached element relative to provided element
6
7
  */
7
- export declare class PositionToDirective implements OnChanges {
8
- protected _target: ElementRef<HTMLElement>;
9
- protected _position: Position;
8
+ export declare class PositionToDirective implements OnChanges, OnDestroy {
9
+ protected target: ElementRef<HTMLElement>;
10
+ protected position: Position;
10
11
  /**
11
12
  * Position placement value
12
13
  */
13
- protected _placement: PositionPlacement | null | undefined;
14
+ protected ɵPlacement: PositionPlacement | undefined | null;
14
15
  /**
15
16
  * Html element which is used as source for positioning
16
17
  */
17
- protected _source: HTMLElement;
18
+ protected ɵSource: HTMLElement | undefined | null;
19
+ /**
20
+ * Method used for disposing auto positioning
21
+ */
22
+ protected dispose: NoopAction | undefined | null;
18
23
  /**
19
24
  * Gets or sets html element which is used as source for positioning
20
25
  */
21
- get source(): HTMLElement;
22
- set source(value: HTMLElement);
26
+ get source(): HTMLElement | undefined | null;
27
+ set source(value: HTMLElement | undefined | null);
23
28
  /**
24
29
  * Gets or sets position placement value
25
30
  */
26
- get placement(): PositionPlacement | null | undefined;
27
- set placement(value: PositionPlacement | null | undefined);
31
+ get placement(): PositionPlacement | undefined | null;
32
+ set placement(value: PositionPlacement | undefined | null);
33
+ /**
34
+ * Offset which allows moving target element along the cross axis of placement, or any chosed direction
35
+ */
36
+ offset: PositionOffsetString | number | PositionOffsets | Func1<number | PositionOffsets, PositionArguments>;
37
+ /**
38
+ * Indication whether set up 'auto updating' of position
39
+ */
40
+ autoUpdate: boolean | AutoUpdateOptions;
28
41
  /**
29
42
  * Occurs when flip occurs during positioning
30
43
  */
31
44
  flip: EventEmitter<void>;
32
- constructor(_target: ElementRef<HTMLElement>, _position: Position);
45
+ /**
46
+ * Occurs when element was positioned
47
+ */
48
+ done: EventEmitter<void>;
49
+ constructor(target: ElementRef<HTMLElement>, position: Position);
33
50
  /**
34
51
  * Called when input value changes
35
52
  */
36
53
  ngOnChanges(changes: SimpleChanges): void;
54
+ /**
55
+ * Called when component is destroyed
56
+ */
57
+ ngOnDestroy(): void;
37
58
  /**
38
59
  * Applies position according to specified parameters to specified elements
39
60
  */
40
- protected _applyPosition(): Promise<void>;
61
+ protected _applyPosition(): void;
41
62
  /**
42
63
  * Custom input type for `placement` input
43
64
  */
@@ -47,6 +68,6 @@ export declare class PositionToDirective implements OnChanges {
47
68
  */
48
69
  static ngAcceptInputType_source: HTMLElement | ElementRef<HTMLElement>;
49
70
  static ɵfac: i0.ɵɵFactoryDeclaration<PositionToDirective, never>;
50
- static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "source": "positionTo"; "placement": "placement"; }, { "flip": "flip"; }, never, never, false>;
71
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "source": "positionTo"; "placement": "placement"; "offset": "offset"; "autoUpdate": "autoUpdate"; }, { "flip": "flip"; "done": "done"; }, never, never, false>;
51
72
  }
52
73
  //# sourceMappingURL=positionTo.directive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"positionTo.directive.d.ts","sourceRoot":"","sources":["positionTo.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAE,aAAa,EAAkB,YAAY,EAAC,MAAM,eAAe,CAAC;AAGnH,OAAO,EAAsB,QAAQ,EAAE,iBAAiB,EAAkB,MAAM,+BAA+B,CAAC;;AAGhH;;GAEG;AACH,qBAIa,mBAAoB,YAAW,SAAS;IAiErC,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IACxB,SAAS,CAAC,SAAS,EAAE,QAAQ;IA9D3D;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,iBAAiB,GAAC,IAAI,GAAC,SAAS,CAAC;IAEvD;;OAEG;IACH,SAAS,CAAC,OAAO,EAAG,WAAW,CAAC;IAIhC;;OAEG;IACH,IACW,MAAM,IAAI,WAAW,CAG/B;IACD,IAAW,MAAM,CAAC,KAAK,EAAE,WAA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@@
1
- {"version":3,"file":"progressInterceptor.d.ts","sourceRoot":"","sources":["progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAC,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,WAAW,EAAoC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAC5H,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAGhC,OAAO,EAAC,wBAAwB,EAAC,MAAM,uCAAuC,CAAC;;AAI/E;;GAEG;AACH,qBACa,mBAAoB,YAAW,eAAe;IAG3C,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,wBAAwB;IAM3D;;;;OAIG;IACI,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;yCAdrF,mBAAmB;6CAAnB,mBAAmB;CAqC/B;AAED;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,aAK3C,CAAC"}
1
+ {"version":3,"file":"progressInterceptor.d.ts","sourceRoot":"","sources":["progressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAC,MAAM,eAAe,CAAC;AACxD,OAAO,EAAC,SAAS,EAAE,eAAe,EAAE,WAAW,EAAoC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAC5H,OAAO,EAAC,UAAU,EAAM,MAAM,MAAM,CAAC;AAErC,OAAO,EAAC,wBAAwB,EAAC,MAAM,uCAAuC,CAAC;;AAI/E;;GAEG;AACH,qBACa,mBAAoB,YAAW,eAAe;IAG3C,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,wBAAwB;IAM3D;;;;OAIG;IACI,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;yCAdrF,mBAAmB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,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAmCzC;;;OAGG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI;IAwBhD;;OAEG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAK9B;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;IAsBjC;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAqBhC;;OAEG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IAsC3B;;OAEG;IACH,OAAc,yBAAyB,EAAE,GAAG,CAAC;yCAtVpC,gBAAgB;2CAAhB,gBAAgB;CAuV5B"}
@@ -1,5 +1,6 @@
1
+ import { Func1 } from '@jscrpt/common';
1
2
  import { Observable } from 'rxjs';
2
- import { PositionOffset, PositionPlacement } from './position.types';
3
+ import { PositionOffsetString, PositionPlacement } from './position.types';
3
4
  /**
4
5
  * Options for autoupdate specific functionality
5
6
  */
@@ -17,6 +18,53 @@ export interface AutoUpdateOptions {
17
18
  */
18
19
  elementResize: boolean;
19
20
  }
21
+ /**
22
+ * Defines object which describes offsets for positioned element
23
+ */
24
+ export interface PositionOffsets {
25
+ /**
26
+ * Distance between positioned and reference element.
27
+ */
28
+ mainAxis?: number;
29
+ /**
30
+ * Skidding between floating and reference element.
31
+ */
32
+ crossAxis?: number;
33
+ /**
34
+ * Works on the same axis as crossAxis but applies only to aligned placements and works logically. The offset is inverted for -end alignments.
35
+ */
36
+ alignmentAxis?: number | null;
37
+ }
38
+ /**
39
+ * Stores positioned element and reference element
40
+ */
41
+ export interface PositionElements<TElement extends Element = Element> {
42
+ /**
43
+ * Reference element against which is object positioned
44
+ */
45
+ reference: TElement;
46
+ /**
47
+ * Element that is positioned
48
+ */
49
+ floating: TElement;
50
+ }
51
+ /**
52
+ * Arguments that are passed during positioning
53
+ */
54
+ export interface PositionArguments<TElement extends Element = Element> {
55
+ /**
56
+ * X coordinate of positioned element
57
+ */
58
+ x: number;
59
+ /**
60
+ * Y coordinate of positioned element
61
+ */
62
+ y: number;
63
+ /**
64
+ * Elements that are being used during positioning
65
+ */
66
+ elements: PositionElements<TElement>;
67
+ }
20
68
  /**
21
69
  * Options that are passed to position service
22
70
  */
@@ -26,9 +74,9 @@ export interface PositionOptions {
26
74
  */
27
75
  placement: PositionPlacement;
28
76
  /**
29
- * Offset which allows moving target element along the cross axis of placement
77
+ * Offset which allows moving target element along the cross axis of placement, or any chosed direction
30
78
  */
31
- offset: PositionOffset;
79
+ offset: PositionOffsetString | number | PositionOffsets | Func1<number | PositionOffsets, PositionArguments>;
32
80
  /**
33
81
  * Indication whether perform flip in case of collision (with view boundaries)
34
82
  */
@@ -1 +1 @@
1
- {"version":3,"file":"position.interface.d.ts","sourceRoot":"","sources":["position.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAE9B;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAI5B;;OAEG;IACH,SAAS,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,OAAO,GAAC,iBAAiB,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,OAAO,GAAG,GAAG;IAE1D;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,CAAC,EAAE,MA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AAE,MAAM,CAAC;IAEV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAI5B;;OAEG;IACH,SAAS,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,oBAAoB,GAAC,MAAM,GAAC,eAAe,GAAC,KAAK,CAAC,MAAM,GAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;IAErG;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,OAAO,GAAC,iBAAiB,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,OAAO,GAAG,GAAG;IAE1D;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IAIrB;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;CAClH"}
@@ -80,4 +80,8 @@ export declare enum PositionOffset {
80
80
  */
81
81
  NegativeFull = 5
82
82
  }
83
+ /**
84
+ * Type that represents available names of position offset
85
+ */
86
+ export declare type PositionOffsetString = keyof typeof PositionOffset;
83
87
  //# sourceMappingURL=position.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"position.types.d.ts","sourceRoot":"","sources":["position.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,iBAAiB;IAEzB;;OAEG;IACH,GAAG,IAAA;IAEH;;OAEG;IACH,QAAQ,IAAA;IAER;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,SAAS,IAAA;IAET;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,KAAK,IAAA;IAEL;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,QAAQ,IAAA;IAER;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,WAAW,KAAA;IAEX;;OAEG;IACH,SAAS,KAAA;CACZ;AAED;;GAEG;AACH,oBAAY,cAAc;IAEtB;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,YAAY,IAAA;IAEZ;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,YAAY,IAAA;CACf"}
1
+ {"version":3,"file":"position.types.d.ts","sourceRoot":"","sources":["position.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,iBAAiB;IAEzB;;OAEG;IACH,GAAG,IAAA;IAEH;;OAEG;IACH,QAAQ,IAAA;IAER;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,SAAS,IAAA;IAET;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,KAAK,IAAA;IAEL;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,QAAQ,IAAA;IAER;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,WAAW,KAAA;IAEX;;OAEG;IACH,SAAS,KAAA;CACZ;AAED;;GAEG;AACH,oBAAY,cAAc;IAEtB;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,YAAY,IAAA;IAEZ;;OAEG;IACH,IAAI,IAAA;IAEJ;;OAEG;IACH,YAAY,IAAA;CACf;AAED;;GAEG;AACH,oBAAY,oBAAoB,GAAG,MAAM,OAAO,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"restSink.service.d.ts","sourceRoot":"","sources":["restSink.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAG7D,OAAO,EAAC,qBAAqB,EAAC,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAC,gBAAgB,EAAU,MAAM,8BAA8B,CAAC;;AAEvE;;GAEG;AACH,qBACa,eAAgB,YAAW,IAAI;IAoB5B,OAAO,CAAC,UAAU;IAEU,OAAO,CAAC,WAAW;IAlB3D;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAkB;IAE3C;;OAEG;IACH,OAAO,CAAC,KAAK,CAAiB;IAE9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAS;gBAGH,UAAU,EAAE,qBAAqB,EACrB,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,EACP,WAAW,EAAE,gBAAgB;IAa7E;;OAEG;IACI,WAAW,IAAI,IAAI;IAY1B;;;OAGG;IACI,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI;IA+CrC;;OAEG;IACI,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA0B7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;yCArIf,eAAe;6CAAf,eAAe;CA8I3B"}
1
+ {"version":3,"file":"restSink.service.d.ts","sourceRoot":"","sources":["restSink.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAgB,MAAM,gBAAgB,CAAC;AAI7D,OAAO,EAAC,qBAAqB,EAAC,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAC,gBAAgB,EAAU,MAAM,8BAA8B,CAAC;;AAEvE;;GAEG;AACH,qBACa,eAAgB,YAAW,IAAI;IAoB5B,OAAO,CAAC,UAAU;IAEU,OAAO,CAAC,WAAW;IAlB3D;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAkB;IAE3C;;OAEG;IACH,OAAO,CAAC,KAAK,CAAiB;IAE9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAwB;gBAGlB,UAAU,EAAE,qBAAqB,EACrB,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,EACP,WAAW,EAAE,gBAAgB;IAa7E;;OAEG;IACI,WAAW,IAAI,IAAI;IAY1B;;;OAGG;IACI,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI;IA+CrC;;OAEG;IACI,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA0B7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;yCArIf,eAAe;6CAAf,eAAe;CA8I3B"}
@@ -1,24 +1,31 @@
1
+ export as namespace Positions;
2
+
1
3
  /**
2
4
  * Coordinates for positioning target
3
5
  */
4
- export interface PositionsCss {
6
+ export interface PositionsCss
7
+ {
5
8
  /**
6
9
  * Top css property
7
10
  */
8
11
  top?: number;
12
+
9
13
  /**
10
14
  * Left css property
11
15
  */
12
16
  left?: number;
13
17
  }
18
+
14
19
  /**
15
20
  * Posible coordinates
16
21
  */
17
- export declare type PositionsCoordinates = 'top left' | 'top center' | 'top right' | 'center left' | 'center center' | 'center right' | 'bottom left' | 'bottom center' | 'bottom right';
22
+ export type PositionsCoordinates = 'top left'|'top center'|'top right'|'center left'|'center center'|'center right'|'bottom left'|'bottom center'|'bottom right';
23
+
18
24
  /**
19
25
  * Description of position function
20
26
  */
21
- export interface PositionsFunc {
27
+ export interface PositionsFunc
28
+ {
22
29
  /**
23
30
  * Computes positions for element relative to target
24
31
  * @param element Element that will be positioned
@@ -28,6 +35,7 @@ export interface PositionsFunc {
28
35
  */
29
36
  (element: HTMLElement, elementCoordinates: PositionsCoordinates, target: HTMLElement, targetCoordinates: PositionsCoordinates): PositionsCss;
30
37
  }
38
+
31
39
  declare const positions: PositionsFunc;
40
+
32
41
  export default positions;
33
- //# sourceMappingURL=positions.typings.d.ts.map
@@ -0,0 +1,5 @@
1
+ interface StoreJsAPI
2
+ {
3
+ // expirePlugin
4
+ set(key: string, value: any, expiration: number): any;
5
+ }