@anglr/common 18.2.0-beta.20231109093816 → 18.2.1-beta.20231120095300

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 (205) hide show
  1. package/changelog.md +6 -0
  2. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +3 -3
  3. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
  4. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +3 -3
  5. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
  6. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +3 -3
  7. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
  8. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +3 -3
  9. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -1
  10. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +3 -3
  11. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js.map +1 -1
  12. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +3 -3
  13. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -1
  14. package/es2022/forms/src/directives/hasError/hasError.directive.js +3 -3
  15. package/es2022/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  16. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +3 -3
  17. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js.map +1 -1
  18. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +3 -3
  19. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js.map +1 -1
  20. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +3 -3
  21. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js.map +1 -1
  22. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +3 -3
  23. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js.map +1 -1
  24. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +3 -3
  25. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js.map +1 -1
  26. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +3 -3
  27. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js.map +1 -1
  28. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -3
  29. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
  30. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js +3 -3
  31. package/es2022/forms/src/modules/errorMessage/directives/errorMessage/errorMessage.directive.js.map +1 -1
  32. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js +3 -3
  33. package/es2022/forms/src/modules/errorMessage/directives/groupErrorsTemplate/groupErrorsTemplate.directive.js.map +1 -1
  34. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js +4 -4
  35. package/es2022/forms/src/modules/errorMessage/modules/errorMessage.module.js.map +1 -1
  36. package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js +3 -3
  37. package/es2022/forms/src/modules/errorMessage/pipes/withErrorMessage/withErrorMessage.pipe.js.map +1 -1
  38. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js +4 -4
  39. package/es2022/forms/src/modules/formPipes/modules/formPipes.module.js.map +1 -1
  40. package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js +3 -3
  41. package/es2022/forms/src/modules/formPipes/pipes/asFormArray/asFormArray.pipe.js.map +1 -1
  42. package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js +3 -3
  43. package/es2022/forms/src/modules/formPipes/pipes/asFormControl/asFormControl.pipe.js.map +1 -1
  44. package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js +3 -3
  45. package/es2022/forms/src/modules/formPipes/pipes/asFormGroup/asFormGroup.pipe.js.map +1 -1
  46. package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js +3 -3
  47. package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -1
  48. package/es2022/forms/src/modules/hasError.module.js +4 -4
  49. package/es2022/forms/src/modules/hasError.module.js.map +1 -1
  50. package/es2022/forms/src/modules/numberInput.module.js +4 -4
  51. package/es2022/forms/src/modules/numberInput.module.js.map +1 -1
  52. package/es2022/forms/src/modules/requiredClass.module.js +4 -4
  53. package/es2022/forms/src/modules/requiredClass.module.js.map +1 -1
  54. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +3 -3
  55. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js.map +1 -1
  56. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +3 -3
  57. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js.map +1 -1
  58. package/es2022/forms/src/services/submitted/submitted.service.js +3 -3
  59. package/es2022/forms/src/services/submitted/submitted.service.js.map +1 -1
  60. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +3 -3
  61. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js.map +1 -1
  62. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +3 -3
  63. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js.map +1 -1
  64. package/es2022/hotkeys/src/services/appHotkeys.service.js +3 -3
  65. package/es2022/hotkeys/src/services/appHotkeys.service.js.map +1 -1
  66. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +3 -3
  67. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
  68. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +3 -3
  69. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -1
  70. package/es2022/material/src/components/titledDialog/titledDialog.component.js +3 -3
  71. package/es2022/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  72. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +3 -3
  73. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
  74. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +3 -3
  75. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map +1 -1
  76. package/es2022/material/src/modules/confirmationDialog.module.js +4 -4
  77. package/es2022/material/src/modules/confirmationDialog.module.js.map +1 -1
  78. package/es2022/material/src/modules/debugDataCopyClick.module.js +4 -4
  79. package/es2022/material/src/modules/debugDataCopyClick.module.js.map +1 -1
  80. package/es2022/material/src/modules/movableTitledDialog.module.js +4 -4
  81. package/es2022/material/src/modules/movableTitledDialog.module.js.map +1 -1
  82. package/es2022/material/src/modules/titledDialog.module.js +4 -4
  83. package/es2022/material/src/modules/titledDialog.module.js.map +1 -1
  84. package/es2022/material/src/services/titledDialog/titledDialog.service.js +3 -3
  85. package/es2022/material/src/services/titledDialog/titledDialog.service.js.map +1 -1
  86. package/es2022/moment/src/modules/moment.module.js +4 -4
  87. package/es2022/moment/src/modules/moment.module.js.map +1 -1
  88. package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js +3 -3
  89. package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js.map +1 -1
  90. package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js +3 -3
  91. package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js.map +1 -1
  92. package/es2022/numeral/src/pipes/numeral.pipe.js +3 -3
  93. package/es2022/numeral/src/pipes/numeral.pipe.js.map +1 -1
  94. package/es2022/router/src/services/routing/dataRouter.js +3 -3
  95. package/es2022/router/src/services/routing/dataRouter.js.map +1 -1
  96. package/es2022/router/src/services/routing/dataRouterData.js +3 -3
  97. package/es2022/router/src/services/routing/dataRouterData.js.map +1 -1
  98. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +3 -3
  99. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js.map +1 -1
  100. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +3 -3
  101. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js.map +1 -1
  102. package/es2022/src/directives/bodyRender/bodyRender.directive.js +3 -3
  103. package/es2022/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  104. package/es2022/src/directives/clickOutside/clickOutside.directive.js +3 -3
  105. package/es2022/src/directives/clickOutside/clickOutside.directive.js.map +1 -1
  106. package/es2022/src/directives/goBack/goBack.directive.js +3 -3
  107. package/es2022/src/directives/goBack/goBack.directive.js.map +1 -1
  108. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +3 -3
  109. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  110. package/es2022/src/directives/positionTo/positionTo.directive.js +3 -3
  111. package/es2022/src/directives/positionTo/positionTo.directive.js.map +1 -1
  112. package/es2022/src/modules/castPipes/modules/castPipes.module.js +4 -4
  113. package/es2022/src/modules/castPipes/modules/castPipes.module.js.map +1 -1
  114. package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +3 -3
  115. package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js.map +1 -1
  116. package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js +3 -3
  117. package/es2022/src/modules/castPipes/pipes/asNgClassRequired/asNgClassRequired.pipe.js.map +1 -1
  118. package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js +3 -3
  119. package/es2022/src/modules/castPipes/pipes/asRequired/asRequired.pipe.js.map +1 -1
  120. package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js +3 -3
  121. package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -1
  122. package/es2022/src/modules/commonDynamic.module.js +4 -4
  123. package/es2022/src/modules/commonDynamic.module.js.map +1 -1
  124. package/es2022/src/modules/commonLocalize.module.js +4 -4
  125. package/es2022/src/modules/commonLocalize.module.js.map +1 -1
  126. package/es2022/src/modules/commonUtils.module.js +4 -4
  127. package/es2022/src/modules/commonUtils.module.js.map +1 -1
  128. package/es2022/src/modules/debugData/components/debugData/debugData.component.js +3 -3
  129. package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
  130. package/es2022/src/modules/debugData/modules/debugData.module.js +4 -4
  131. package/es2022/src/modules/debugData/modules/debugData.module.js.map +1 -1
  132. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +3 -3
  133. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js.map +1 -1
  134. package/es2022/src/modules/logger/components/console/console.component.js +3 -3
  135. package/es2022/src/modules/logger/components/console/console.component.js.map +1 -1
  136. package/es2022/src/modules/logger/services/console/consoleComponent.service.js +3 -3
  137. package/es2022/src/modules/logger/services/console/consoleComponent.service.js.map +1 -1
  138. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +3 -3
  139. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js.map +1 -1
  140. package/es2022/src/modules/logger/services/logger/logger.service.js +3 -3
  141. package/es2022/src/modules/logger/services/logger/logger.service.js.map +1 -1
  142. package/es2022/src/modules/logger/services/rest/restSink.options.js +3 -3
  143. package/es2022/src/modules/logger/services/rest/restSink.options.js.map +1 -1
  144. package/es2022/src/modules/logger/types/loggerOptions.js +3 -3
  145. package/es2022/src/modules/logger/types/loggerOptions.js.map +1 -1
  146. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +3 -3
  147. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  148. package/es2022/src/modules/multiButton/modules/multiButton.module.js +4 -4
  149. package/es2022/src/modules/multiButton/modules/multiButton.module.js.map +1 -1
  150. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +3 -3
  151. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js.map +1 -1
  152. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +3 -3
  153. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  154. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +3 -3
  155. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
  156. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +4 -4
  157. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  158. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +7 -12
  159. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
  160. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +3 -3
  161. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
  162. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +3 -3
  163. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  164. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +3 -3
  165. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -1
  166. package/es2022/src/modules/tooltip/modules/tooltip.module.js +4 -4
  167. package/es2022/src/modules/tooltip/modules/tooltip.module.js.map +1 -1
  168. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +3 -3
  169. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js.map +1 -1
  170. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +3 -3
  171. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js.map +1 -1
  172. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +3 -3
  173. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js.map +1 -1
  174. package/es2022/src/pipes/isNaN/isNaN.pipe.js +3 -3
  175. package/es2022/src/pipes/isNaN/isNaN.pipe.js.map +1 -1
  176. package/es2022/src/pipes/isPresent/isPresent.pipe.js +3 -3
  177. package/es2022/src/pipes/isPresent/isPresent.pipe.js.map +1 -1
  178. package/es2022/src/pipes/keys/keys.pipe.js +3 -3
  179. package/es2022/src/pipes/keys/keys.pipe.js.map +1 -1
  180. package/es2022/src/pipes/localize/localize.pipe.js +3 -3
  181. package/es2022/src/pipes/localize/localize.pipe.js.map +1 -1
  182. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +3 -3
  183. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -1
  184. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +3 -3
  185. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js.map +1 -1
  186. package/es2022/src/services/cookies/cookies.service.js +3 -3
  187. package/es2022/src/services/cookies/cookies.service.js.map +1 -1
  188. package/es2022/src/services/notifications/defaultNotifications.service.js +3 -3
  189. package/es2022/src/services/notifications/defaultNotifications.service.js.map +1 -1
  190. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +3 -3
  191. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js.map +1 -1
  192. package/es2022/src/services/statusCode/statusCode.service.js +3 -3
  193. package/es2022/src/services/statusCode/statusCode.service.js.map +1 -1
  194. package/es2022/src/services/stringLocalization/noStringLocalization.service.js +3 -3
  195. package/es2022/src/services/stringLocalization/noStringLocalization.service.js.map +1 -1
  196. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +3 -3
  197. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js.map +1 -1
  198. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +3 -3
  199. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js.map +1 -1
  200. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +3 -3
  201. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js.map +1 -1
  202. package/package.json +1 -1
  203. package/src/modules/progressIndicator/services/progressIndicator.service.d.ts +2 -3
  204. package/src/modules/progressIndicator/services/progressIndicator.service.d.ts.map +1 -1
  205. package/version.bak +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.ts","../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAe,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;;;AAM3H;;GAEG;AACH,MAOa,gBAAgB;IAqCH;IACA;IApCtB,sEAAsE;IAEtE;;OAEG;IACO,OAAO,GAAe,GAAG,EAAE,CAAC,IAAI,CAAC;IAE3C;;OAEG;IACO,OAAO,GAAe,GAAG,EAAE,CAAC,IAAI,CAAC;IAE3C,2GAA2G;IAE3G;;OAEG;IACI,IAAI,CAAuB;IAElC;;OAEG;IACI,QAAQ,CAA4D;IAE3E;;OAEG;IACI,SAAS,GAAY,KAAK,CAAC;IAElC;;OAEG;IACI,QAAQ,CAAwB;IAEvC,iEAAiE;IACjE,YAAsB,cAAiC,EACjC,OAAgC;QADhC,mBAAc,GAAd,cAAc,CAAmB;QACjC,YAAO,GAAP,OAAO,CAAyB;IAEtD,CAAC;IAED,wGAAwG;IAExG;;;;OAIG;IACI,mBAAmB,CAAC,KAAiB,EAAE,KAAiB;QAE3D,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;OAEG;IACI,iBAAiB;QAEpB,IAAG,IAAI,CAAC,QAAQ,EAChB;YACI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC3D;QAED,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;IACxC,CAAC;IAED,8EAA8E;IAE9E;;;OAGG;IAEO,UAAU;QAEhB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED;;;OAGG;IAEO,UAAU;QAEhB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;uGAxFQ,gBAAgB;2FAAhB,gBAAgB,0IChB7B,uRAKc;;SDWD,gBAAgB;2FAAhB,gBAAgB;kBAP5B,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;iIA6ErC,UAAU;sBADnB,YAAY;uBAAC,YAAY;gBAWhB,UAAU;sBADnB,YAAY;uBAAC,YAAY","sourcesContent":["import {Component, ChangeDetectionStrategy, TemplateRef, ChangeDetectorRef, ElementRef, HostListener} from '@angular/core';\nimport {Invalidatable} from '@jscrpt/common';\n\nimport {TooltipTemplateContext} from '../../directives';\nimport {TooltipRenderer} from '../../misc/tooltip.interface';\n\n/**\n * Component used for displaying tooltip content\n */\n@Component(\n{\n selector: 'tooltip-popup',\n templateUrl: 'tooltip.component.html',\n styleUrls: ['tooltip.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TooltipComponent<TData = any> implements TooltipRenderer<TData>, Invalidatable\n{\n //######################### protected fields #########################\n\n /**\n * Called when mouse enter tooltip component, hover\n */\n protected enterFn: () => void = () => null;\n\n /**\n * Called when mouse leaves tooltip component\n */\n protected leaveFn: () => void = () => null;\n\n //######################### public properties - implementation of TooltipRenderer #########################\n\n /**\n * Data that are rendered in tooltip\n */\n public data: TData|null|undefined;\n\n /**\n * Template used for rendering tooltip\n */\n public template: TemplateRef<TooltipTemplateContext<TData>>|null|undefined;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n public allowHtml: boolean = false;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n public cssClass: string|null|undefined;\n\n //######################### constructor #########################\n constructor(protected changeDetector: ChangeDetectorRef,\n protected element: ElementRef<HTMLElement>)\n {\n }\n\n //######################### public methods - implementation of TooltipRenderer #########################\n\n /**\n * Registers handlers that allows reaction to entering or leaving tooltip\n * @param enter - Called when mouse enter tooltip component, hover\n * @param leave - Called when mouse leaves tooltip component\n */\n public registerHoverEvents(enter: () => void, leave: () => void): void\n {\n this.enterFn = enter;\n this.leaveFn = leave;\n }\n\n /**\n * @inheritdoc\n */\n public invalidateVisuals(): void\n {\n if(this.cssClass)\n {\n this.element.nativeElement.classList.add(this.cssClass);\n }\n\n this.changeDetector.detectChanges();\n }\n\n //######################### protected methods - host #########################\n\n /**\n * Handles mouse enter event over tooltip\n * @internal\n */\n @HostListener('mouseenter')\n protected mouseEnter(): void\n {\n this.enterFn();\n }\n\n /**\n * Handles mouse leave event over tooltip\n * @internal\n */\n @HostListener('mouseleave')\n protected mouseLeave(): void\n {\n this.leaveFn();\n }\n}","<div *ngIf=\"!template && !allowHtml\">{{data}}</div>\r\n<div *ngIf=\"!template && allowHtml\" [innerHTML]=\"data\"></div>\r\n\r\n<ng-template [ngIf]=\"template\">\r\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: data}\"></ng-container>\r\n</ng-template>"]}
1
+ {"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.ts","../../../../../../src/modules/tooltip/components/tooltip/tooltip.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAe,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;;;AAM3H;;GAEG;AACH,MAOa,gBAAgB;IAqCH;IACA;IApCtB,sEAAsE;IAEtE;;OAEG;IACO,OAAO,GAAe,GAAG,EAAE,CAAC,IAAI,CAAC;IAE3C;;OAEG;IACO,OAAO,GAAe,GAAG,EAAE,CAAC,IAAI,CAAC;IAE3C,2GAA2G;IAE3G;;OAEG;IACI,IAAI,CAAuB;IAElC;;OAEG;IACI,QAAQ,CAA4D;IAE3E;;OAEG;IACI,SAAS,GAAY,KAAK,CAAC;IAElC;;OAEG;IACI,QAAQ,CAAwB;IAEvC,iEAAiE;IACjE,YAAsB,cAAiC,EACjC,OAAgC;QADhC,mBAAc,GAAd,cAAc,CAAmB;QACjC,YAAO,GAAP,OAAO,CAAyB;IAEtD,CAAC;IAED,wGAAwG;IAExG;;;;OAIG;IACI,mBAAmB,CAAC,KAAiB,EAAE,KAAiB;QAE3D,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,CAAC;IAED;;OAEG;IACI,iBAAiB;QAEpB,IAAG,IAAI,CAAC,QAAQ,EAChB;YACI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC3D;QAED,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;IACxC,CAAC;IAED,8EAA8E;IAE9E;;;OAGG;IAEO,UAAU;QAEhB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED;;;OAGG;IAEO,UAAU;QAEhB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;wGAxFQ,gBAAgB;4FAAhB,gBAAgB,0IChB7B,uRAKc;;SDWD,gBAAgB;4FAAhB,gBAAgB;kBAP5B,SAAS;+BAEI,eAAe,mBAGR,uBAAuB,CAAC,MAAM;iIA6ErC,UAAU;sBADnB,YAAY;uBAAC,YAAY;gBAWhB,UAAU;sBADnB,YAAY;uBAAC,YAAY","sourcesContent":["import {Component, ChangeDetectionStrategy, TemplateRef, ChangeDetectorRef, ElementRef, HostListener} from '@angular/core';\nimport {Invalidatable} from '@jscrpt/common';\n\nimport {TooltipTemplateContext} from '../../directives';\nimport {TooltipRenderer} from '../../misc/tooltip.interface';\n\n/**\n * Component used for displaying tooltip content\n */\n@Component(\n{\n selector: 'tooltip-popup',\n templateUrl: 'tooltip.component.html',\n styleUrls: ['tooltip.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TooltipComponent<TData = any> implements TooltipRenderer<TData>, Invalidatable\n{\n //######################### protected fields #########################\n\n /**\n * Called when mouse enter tooltip component, hover\n */\n protected enterFn: () => void = () => null;\n\n /**\n * Called when mouse leaves tooltip component\n */\n protected leaveFn: () => void = () => null;\n\n //######################### public properties - implementation of TooltipRenderer #########################\n\n /**\n * Data that are rendered in tooltip\n */\n public data: TData|null|undefined;\n\n /**\n * Template used for rendering tooltip\n */\n public template: TemplateRef<TooltipTemplateContext<TData>>|null|undefined;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n public allowHtml: boolean = false;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n public cssClass: string|null|undefined;\n\n //######################### constructor #########################\n constructor(protected changeDetector: ChangeDetectorRef,\n protected element: ElementRef<HTMLElement>)\n {\n }\n\n //######################### public methods - implementation of TooltipRenderer #########################\n\n /**\n * Registers handlers that allows reaction to entering or leaving tooltip\n * @param enter - Called when mouse enter tooltip component, hover\n * @param leave - Called when mouse leaves tooltip component\n */\n public registerHoverEvents(enter: () => void, leave: () => void): void\n {\n this.enterFn = enter;\n this.leaveFn = leave;\n }\n\n /**\n * @inheritdoc\n */\n public invalidateVisuals(): void\n {\n if(this.cssClass)\n {\n this.element.nativeElement.classList.add(this.cssClass);\n }\n\n this.changeDetector.detectChanges();\n }\n\n //######################### protected methods - host #########################\n\n /**\n * Handles mouse enter event over tooltip\n * @internal\n */\n @HostListener('mouseenter')\n protected mouseEnter(): void\n {\n this.enterFn();\n }\n\n /**\n * Handles mouse leave event over tooltip\n * @internal\n */\n @HostListener('mouseleave')\n protected mouseLeave(): void\n {\n this.leaveFn();\n }\n}","<div *ngIf=\"!template && !allowHtml\">{{data}}</div>\r\n<div *ngIf=\"!template && allowHtml\" [innerHTML]=\"data\"></div>\r\n\r\n<ng-template [ngIf]=\"template\">\r\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: data}\"></ng-container>\r\n</ng-template>"]}
@@ -289,11 +289,11 @@ class TooltipDirective {
289
289
  * Custom input type for `tooltip` input
290
290
  */
291
291
  static ngAcceptInputType_tooltip;
292
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ElementRef }, { token: i1.AnimationBuilder }, { token: DOCUMENT }, { token: POSITION }, { token: TOOLTIP_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
293
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TooltipDirective, selector: "[tooltip]", inputs: { tooltip: "tooltip", allowHtml: "allowHtml", template: "template", tooltipOptions: "tooltipOptions", tooltipVisible: "tooltipVisible", containerElement: "containerElement" }, host: { listeners: { "mouseleave": "mouseLeave($event)", "mousemove": "mouseMove($event)" } }, queries: [{ propertyName: "tooltipTemplateChild", first: true, predicate: TooltipTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
292
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ElementRef }, { token: i1.AnimationBuilder }, { token: DOCUMENT }, { token: POSITION }, { token: TOOLTIP_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
293
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TooltipDirective, selector: "[tooltip]", inputs: { tooltip: "tooltip", allowHtml: "allowHtml", template: "template", tooltipOptions: "tooltipOptions", tooltipVisible: "tooltipVisible", containerElement: "containerElement" }, host: { listeners: { "mouseleave": "mouseLeave($event)", "mousemove": "mouseMove($event)" } }, queries: [{ propertyName: "tooltipTemplateChild", first: true, predicate: TooltipTemplateDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
294
294
  }
295
295
  export { TooltipDirective };
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TooltipDirective, decorators: [{
296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipDirective, decorators: [{
297
297
  type: Directive,
298
298
  args: [{
299
299
  selector: '[tooltip]'
@@ -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,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAC,aAAa,EAAC,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAE5E,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAkD,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;AACrI,OAAO,EAAC,wBAAwB,EAAC,MAAM,8CAA8C,CAAC;AAEtF,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;;;AAElD;;GAEG;AACH,MAAM,cA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AAC,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, renderToBody} from '@jscrpt/common';\nimport {lastValueFrom} from 'rxjs';\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, PositionOffsetString, 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: nameof<typeof PositionOffset>('MouseEnter') as PositionOffsetString,\n placement: PositionPlacement.TopStart,\n },\n allowSelection: false,\n tooltipRenderer: TooltipComponent,\n tooltipCssClass: null,\n stopPropagation: false,\n enterAnimation: fadeInAnimation,\n exitAnimation: fadeOutAnimation,\n containerElement: undefined,\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 if(this._options.containerElement && !this.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\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 /**\n * String that defines element in which should be tooltip rendered, if not specified, body is used\n * \n * Allows also css classes to be specified (div.body-box)\n */\n @Input()\n public containerElement: string|undefined|null;\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 if(this._options.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\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 lastValueFrom(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 .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 renderToBody(this._document, this._tooltipElement, this.containerElement);\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,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAC,aAAa,EAAC,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAE5E,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAkD,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;AACrI,OAAO,EAAC,wBAAwB,EAAC,MAAM,8CAA8C,CAAC;AAEtF,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;;;AAElD;;GAEG;AACH,MAAM,cAAc,GACpB;IACI,KAAK,EAAE,GAAG;IACV,QAAQ,EACR;QACI,MAAM,EAAE,MAAM,CAAwB,YAAY,CAAyB;QAC3E,SAAS,EAAE,iBAAiB,CAAC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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, renderToBody} from '@jscrpt/common';\nimport {lastValueFrom} from 'rxjs';\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, PositionOffsetString, 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: nameof<typeof PositionOffset>('MouseEnter') as PositionOffsetString,\n placement: PositionPlacement.TopStart,\n },\n allowSelection: false,\n tooltipRenderer: TooltipComponent,\n tooltipCssClass: null,\n stopPropagation: false,\n enterAnimation: fadeInAnimation,\n exitAnimation: fadeOutAnimation,\n containerElement: undefined,\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 if(this._options.containerElement && !this.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\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 /**\n * String that defines element in which should be tooltip rendered, if not specified, body is used\n * \n * Allows also css classes to be specified (div.body-box)\n */\n @Input()\n public containerElement: string|undefined|null;\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 if(this._options.containerElement)\n {\n this.containerElement = this._options.containerElement;\n }\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 lastValueFrom(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 .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 renderToBody(this._document, this._tooltipElement, this.containerElement);\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,11 +16,11 @@ class TooltipTemplateDirective {
16
16
  static ngTemplateContextGuard(_dir, _ctx) {
17
17
  return true;
18
18
  }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TooltipTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: TooltipTemplateDirective, selector: "[tooltipTemplate]", ngImport: i0 });
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TooltipTemplateDirective, selector: "[tooltipTemplate]", ngImport: i0 });
21
21
  }
22
22
  export { TooltipTemplateDirective };
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TooltipTemplateDirective, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipTemplateDirective, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  selector: '[tooltipTemplate]'
@@ -1 +1 @@
1
- {"version":3,"file":"tooltipTemplate.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;;AAIrD;;GAEG;AACH,MAIa,wBAAwB;IAGd;IADnB,iEAAiE;IACjE,YAAmB,QAAoD;QAApD,aAAQ,GAAR,QAAQ,CAA4C;IAEvE,CAAC;IAED,wEAAwE;IAExE;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAA8B,EAAE,IAAa;QAEvE,OAAO,IAAI,CAAC;IAChB,CAAC;uGAfQ,wBAAwB;2FAAxB,wBAAwB;;SAAxB,wBAAwB;2FAAxB,wBAAwB;kBAJpC,SAAS;mBACV;oBACI,QAAQ,EAAE,mBAAmB;iBAChC","sourcesContent":["import {Directive, TemplateRef} from '@angular/core';\n\nimport {TooltipTemplateContext} from './tooltipTemplate.context';\n\n/**\n * Directive used for obtaining custom tooltip template\n */\n@Directive(\n{\n selector: '[tooltipTemplate]'\n})\nexport class TooltipTemplateDirective<TData = any>\n{\n //######################### constructor #########################\n constructor(public template: TemplateRef<TooltipTemplateContext<TData>>)\n {\n }\n\n //######################### ng language server #########################\n \n /**\n * Allows typechecking for template\n */\n static ngTemplateContextGuard(_dir: TooltipTemplateDirective, _ctx: unknown): _ctx is TooltipTemplateContext\n {\n return true;\n }\n}"]}
1
+ {"version":3,"file":"tooltipTemplate.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;;AAIrD;;GAEG;AACH,MAIa,wBAAwB;IAGd;IADnB,iEAAiE;IACjE,YAAmB,QAAoD;QAApD,aAAQ,GAAR,QAAQ,CAA4C;IAEvE,CAAC;IAED,wEAAwE;IAExE;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAA8B,EAAE,IAAa;QAEvE,OAAO,IAAI,CAAC;IAChB,CAAC;wGAfQ,wBAAwB;4FAAxB,wBAAwB;;SAAxB,wBAAwB;4FAAxB,wBAAwB;kBAJpC,SAAS;mBACV;oBACI,QAAQ,EAAE,mBAAmB;iBAChC","sourcesContent":["import {Directive, TemplateRef} from '@angular/core';\n\nimport {TooltipTemplateContext} from './tooltipTemplate.context';\n\n/**\n * Directive used for obtaining custom tooltip template\n */\n@Directive(\n{\n selector: '[tooltipTemplate]'\n})\nexport class TooltipTemplateDirective<TData = any>\n{\n //######################### constructor #########################\n constructor(public template: TemplateRef<TooltipTemplateContext<TData>>)\n {\n }\n\n //######################### ng language server #########################\n \n /**\n * Allows typechecking for template\n */\n static ngTemplateContextGuard(_dir: TooltipTemplateDirective, _ctx: unknown): _ctx is TooltipTemplateContext\n {\n return true;\n }\n}"]}
@@ -7,15 +7,15 @@ import * as i0 from "@angular/core";
7
7
  * Module for rendering tooltips
8
8
  */
9
9
  class TooltipModule {
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective,
10
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, declarations: [TooltipDirective,
12
12
  TooltipTemplateDirective,
13
13
  TooltipComponent], imports: [CommonModule], exports: [TooltipDirective,
14
14
  TooltipTemplateDirective] });
15
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TooltipModule, imports: [CommonModule] });
15
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, imports: [CommonModule] });
16
16
  }
17
17
  export { TooltipModule };
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: TooltipModule, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, decorators: [{
19
19
  type: NgModule,
20
20
  args: [{
21
21
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.module.js","sourceRoot":"","sources":["../../../../../src/modules/tooltip/modules/tooltip.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAE,wBAAwB,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;;AAE/C;;GAEG;AACH,MAkBa,aAAa;uGAAb,aAAa;wGAAb,aAAa,iBAVlB,gBAAgB;YAChB,wBAAwB;YACxB,gBAAgB,aANhB,YAAY,aAUZ,gBAAgB;YAChB,wBAAwB;wGAGnB,aAAa,YAdlB,YAAY;;SAcP,aAAa;2FAAb,aAAa;kBAlBzB,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;qBACf;oBACD,YAAY,EACZ;wBACI,gBAAgB;wBAChB,wBAAwB;wBACxB,gBAAgB;qBACnB;oBACD,OAAO,EACP;wBACI,gBAAgB;wBAChB,wBAAwB;qBAC3B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {TooltipDirective, TooltipTemplateDirective} from '../directives';\nimport {TooltipComponent} from '../components';\n\n/**\n * Module for rendering tooltips\n */\n@NgModule(\n{\n imports:\n [\n CommonModule\n ],\n declarations:\n [\n TooltipDirective,\n TooltipTemplateDirective,\n TooltipComponent,\n ],\n exports:\n [\n TooltipDirective,\n TooltipTemplateDirective,\n ]\n})\nexport class TooltipModule\n{\n}\n"]}
1
+ {"version":3,"file":"tooltip.module.js","sourceRoot":"","sources":["../../../../../src/modules/tooltip/modules/tooltip.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAE,wBAAwB,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;;AAE/C;;GAEG;AACH,MAkBa,aAAa;wGAAb,aAAa;yGAAb,aAAa,iBAVlB,gBAAgB;YAChB,wBAAwB;YACxB,gBAAgB,aANhB,YAAY,aAUZ,gBAAgB;YAChB,wBAAwB;yGAGnB,aAAa,YAdlB,YAAY;;SAcP,aAAa;4FAAb,aAAa;kBAlBzB,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;qBACf;oBACD,YAAY,EACZ;wBACI,gBAAgB;wBAChB,wBAAwB;wBACxB,gBAAgB;qBACnB;oBACD,OAAO,EACP;wBACI,gBAAgB;wBAChB,wBAAwB;qBAC3B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {TooltipDirective, TooltipTemplateDirective} from '../directives';\nimport {TooltipComponent} from '../components';\n\n/**\n * Module for rendering tooltips\n */\n@NgModule(\n{\n imports:\n [\n CommonModule\n ],\n declarations:\n [\n TooltipDirective,\n TooltipTemplateDirective,\n TooltipComponent,\n ],\n exports:\n [\n TooltipDirective,\n TooltipTemplateDirective,\n ]\n})\nexport class TooltipModule\n{\n}\n"]}
@@ -26,11 +26,11 @@ class DisplayPropertiesSAPipe {
26
26
  return result;
27
27
  }).join(itemSeparator);
28
28
  }
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DisplayPropertiesSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
30
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: DisplayPropertiesSAPipe, isStandalone: true, name: "displayProperties" });
29
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DisplayPropertiesSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
30
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DisplayPropertiesSAPipe, isStandalone: true, name: "displayProperties" });
31
31
  }
32
32
  export { DisplayPropertiesSAPipe };
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DisplayPropertiesSAPipe, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DisplayPropertiesSAPipe, decorators: [{
34
34
  type: Pipe,
35
35
  args: [{
36
36
  name: 'displayProperties',
@@ -1 +1 @@
1
- {"version":3,"file":"displayProperties.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/displayProperties/displayProperties.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,MAKa,uBAAuB;IAEhC;;;;;OAKG;IACI,SAAS,CAAC,KAAoB,EAAE,MAA0B,EAAE,aAAuB,CAAC,GAAG,CAAC,EAAE,gBAAwB,IAAI;QAEzH,IAAG,CAAC,KAAK,EACT;YACI,OAAO,EAAE,CAAC;SACb;QAED,IAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EACxB;YACI,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;SACnB;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAEnB,IAAI,MAAM,GAAW,EAAE,CAAC;YAExB,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EACzC;gBACI,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;aAC5C;YAED,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;YAEzC,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3B,CAAC;uGAjCQ,uBAAuB;qGAAvB,uBAAuB;;SAAvB,uBAAuB;2FAAvB,uBAAuB;kBALnC,IAAI;mBACL;oBACI,IAAI,EAAE,mBAAmB;oBACzB,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Transforms array of objects or object properties into string\n */\n@Pipe(\n{\n name: 'displayProperties',\n standalone: true,\n})\nexport class DisplayPropertiesSAPipe<TItem> implements PipeTransform\n{\n /**\n * Transforms array of objects or object properties into string\n * @param value - Array of objects or object to be converted\n * @param separators - Array of separators, or single separator for properties\n * @param itemSeparator - Separator used for separating items\n */\n public transform(value: TItem|TItem[], values: Array<keyof TItem>, separators: string[] = [' '], itemSeparator: string = ', '): string\n {\n if(!value)\n {\n return '';\n }\n\n if(!Array.isArray(value))\n {\n value = [value];\n }\n\n return value.map(itm =>\n {\n let result: string = '';\n\n for(let x = 0; x < values.length - 1; x++)\n {\n result += itm[values[0]] + separators[0];\n }\n\n result += itm[values[values.length - 1]];\n\n return result;\n }).join(itemSeparator);\n }\n}"]}
1
+ {"version":3,"file":"displayProperties.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/displayProperties/displayProperties.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,MAKa,uBAAuB;IAEhC;;;;;OAKG;IACI,SAAS,CAAC,KAAoB,EAAE,MAA0B,EAAE,aAAuB,CAAC,GAAG,CAAC,EAAE,gBAAwB,IAAI;QAEzH,IAAG,CAAC,KAAK,EACT;YACI,OAAO,EAAE,CAAC;SACb;QAED,IAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EACxB;YACI,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;SACnB;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAEnB,IAAI,MAAM,GAAW,EAAE,CAAC;YAExB,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EACzC;gBACI,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;aAC5C;YAED,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;YAEzC,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC3B,CAAC;wGAjCQ,uBAAuB;sGAAvB,uBAAuB;;SAAvB,uBAAuB;4FAAvB,uBAAuB;kBALnC,IAAI;mBACL;oBACI,IAAI,EAAE,mBAAmB;oBACzB,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Transforms array of objects or object properties into string\n */\n@Pipe(\n{\n name: 'displayProperties',\n standalone: true,\n})\nexport class DisplayPropertiesSAPipe<TItem> implements PipeTransform\n{\n /**\n * Transforms array of objects or object properties into string\n * @param value - Array of objects or object to be converted\n * @param separators - Array of separators, or single separator for properties\n * @param itemSeparator - Separator used for separating items\n */\n public transform(value: TItem|TItem[], values: Array<keyof TItem>, separators: string[] = [' '], itemSeparator: string = ', '): string\n {\n if(!value)\n {\n return '';\n }\n\n if(!Array.isArray(value))\n {\n value = [value];\n }\n\n return value.map(itm =>\n {\n let result: string = '';\n\n for(let x = 0; x < values.length - 1; x++)\n {\n result += itm[values[0]] + separators[0];\n }\n\n result += itm[values[values.length - 1]];\n\n return result;\n }).join(itemSeparator);\n }\n}"]}
@@ -14,11 +14,11 @@ class FirstUppercaseSAPipe {
14
14
  }
15
15
  return value[0].toUpperCase() + value.substring(1);
16
16
  }
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FirstUppercaseSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
18
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: FirstUppercaseSAPipe, isStandalone: true, name: "firstUppercase" });
17
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FirstUppercaseSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
18
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FirstUppercaseSAPipe, isStandalone: true, name: "firstUppercase" });
19
19
  }
20
20
  export { FirstUppercaseSAPipe };
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FirstUppercaseSAPipe, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FirstUppercaseSAPipe, decorators: [{
22
22
  type: Pipe,
23
23
  args: [{
24
24
  name: 'firstUppercase',
@@ -1 +1 @@
1
- {"version":3,"file":"firstUppercase.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/firstUppercase/firstUppercase.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,MAKa,oBAAoB;IAE7B;;;OAGG;IACI,SAAS,CAAC,KAA4B;QAEzC,IAAG,CAAC,KAAK,EACT;YACI,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;uGAdQ,oBAAoB;qGAApB,oBAAoB;;SAApB,oBAAoB;2FAApB,oBAAoB;kBALhC,IAAI;mBACL;oBACI,IAAI,EAAE,gBAAgB;oBACtB,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Converts first letter of text to uppercase\n */\n@Pipe(\n{\n name: 'firstUppercase',\n standalone: true,\n})\nexport class FirstUppercaseSAPipe implements PipeTransform\n{\n /**\n * Converts first letter of text to uppercase\n * @param value - Value to be converted\n */\n public transform(value: string|undefined|null): string|undefined|null \n {\n if(!value)\n {\n return value;\n }\n\n return value[0].toUpperCase() + value.substring(1);\n }\n}"]}
1
+ {"version":3,"file":"firstUppercase.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/firstUppercase/firstUppercase.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,MAKa,oBAAoB;IAE7B;;;OAGG;IACI,SAAS,CAAC,KAA4B;QAEzC,IAAG,CAAC,KAAK,EACT;YACI,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;wGAdQ,oBAAoB;sGAApB,oBAAoB;;SAApB,oBAAoB;4FAApB,oBAAoB;kBALhC,IAAI;mBACL;oBACI,IAAI,EAAE,gBAAgB;oBACtB,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Converts first letter of text to uppercase\n */\n@Pipe(\n{\n name: 'firstUppercase',\n standalone: true,\n})\nexport class FirstUppercaseSAPipe implements PipeTransform\n{\n /**\n * Converts first letter of text to uppercase\n * @param value - Value to be converted\n */\n public transform(value: string|undefined|null): string|undefined|null \n {\n if(!value)\n {\n return value;\n }\n\n return value[0].toUpperCase() + value.substring(1);\n }\n}"]}
@@ -52,11 +52,11 @@ class FirstUppercaseLocalizeSAPipe {
52
52
  ngOnDestroy() {
53
53
  this.localizePipe.ngOnDestroy();
54
54
  }
55
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
56
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, isStandalone: true, name: "firstUppercaseLocalize", pure: false });
55
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
56
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, isStandalone: true, name: "firstUppercaseLocalize", pure: false });
57
57
  }
58
58
  export { FirstUppercaseLocalizeSAPipe };
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, decorators: [{
60
60
  type: Pipe,
61
61
  args: [{
62
62
  name: 'firstUppercaseLocalize',
@@ -1 +1 @@
1
- {"version":3,"file":"firstUppercaseLocalize.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAiB,MAAM,EAAE,iBAAiB,EAAY,MAAM,eAAe,CAAC;AAGxF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBA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BACd;;0BAqBgB,MAAM;2BAAC,mBAAmB","sourcesContent":["import {Pipe, PipeTransform, Inject, ChangeDetectorRef, OnDestroy} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {STRING_LOCALIZATION} from '../../types/tokens';\nimport {StringLocalization} from '../../services/stringLocalization';\nimport {LocalizeSAPipe} from '../localize/localize.pipe';\nimport {FirstUppercaseSAPipe} from '../firstUppercase/firstUppercase.pipe';\n\n/**\n * Localize strings using 'StringLocalization' and converts first letter of text to uppercase\n */\n@Pipe(\n{\n name: 'firstUppercaseLocalize',\n standalone: true,\n pure: false,\n})\nexport class FirstUppercaseLocalizeSAPipe implements PipeTransform, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Localize pipe used for localizing string\n */\n protected localizePipe: LocalizeSAPipe;\n\n /**\n * Pipe used for transforming first letter to uppercase\n */\n protected firstUppercasePipe: FirstUppercaseSAPipe;\n\n /**\n * Subscription for changes of texts\n */\n protected subscription: Subscription|undefined|null;\n\n //######################### constructor #########################\n constructor(@Inject(STRING_LOCALIZATION) protected localizationSvc: StringLocalization,\n protected changeDetector: ChangeDetectorRef,)\n {\n this.localizePipe = new LocalizeSAPipe(localizationSvc, changeDetector);\n this.firstUppercasePipe = new FirstUppercaseSAPipe();\n }\n\n //######################### public methods - PipeTransform #########################\n\n /**\n * Localize strings using 'StringLocalization' and converts first letter of text to uppercase\n * @param value - Value to be converted\n * @param interpolateParams - Optional object storing interpolation parameters\n */\n public transform(value: string|undefined|null, interpolateParams?: Object): string|undefined|null \n {\n return this.firstUppercasePipe.transform(this.localizePipe.transform(value, interpolateParams));\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.subscription = this.localizationSvc.textsChange.subscribe(() => this.changeDetector.markForCheck());\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.localizePipe.ngOnDestroy();\n }\n}"]}
1
+ {"version":3,"file":"firstUppercaseLocalize.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAiB,MAAM,EAAE,iBAAiB,EAAY,MAAM,eAAe,CAAC;AAGxF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAC,oBAAoB,EAAC,MAAM,uCAAuC,CAAC;;AAE3E;;GAEG;AACH,MAMa,4BAA4B;IAoBc;IAC7B;IAnBtB,sEAAsE;IAEtE;;OAEG;IACO,YAAY,CAAiB;IAEvC;;OAEG;IACO,kBAAkB,CAAuB;IAEnD;;OAEG;IACO,YAAY,CAA8B;IAEpD,iEAAiE;IACjE,YAAmD,eAAmC,EAChE,cAAiC;QADJ,oBAAe,GAAf,eAAe,CAAoB;QAChE,mBAAc,GAAd,cAAc,CAAmB;QAEnD,IAAI,CAAC,YAAY,GAAG,IAAI,cAAc,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;QACxE,IAAI,CAAC,kBAAkB,GAAG,IAAI,oBAAoB,EAAE,CAAC;IACzD,CAAC;IAED,oFAAoF;IAEpF;;;;OAIG;IACI,SAAS,CAAC,KAA4B,EAAE,iBAA0B;QAErE,OAAO,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC;IACpG,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC;IAC7G,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IACpC,CAAC;wGAzDQ,4BAA4B,kBAoBjB,mBAAmB;sGApB9B,4BAA4B;;SAA5B,4BAA4B;4FAA5B,4BAA4B;kBANxC,IAAI;mBACL;oBACI,IAAI,EAAE,wBAAwB;oBAC9B,UAAU,EAAE,IAAI;oBAChB,IAAI,EAAE,KAAK;iBACd;;0BAqBgB,MAAM;2BAAC,mBAAmB","sourcesContent":["import {Pipe, PipeTransform, Inject, ChangeDetectorRef, OnDestroy} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {STRING_LOCALIZATION} from '../../types/tokens';\nimport {StringLocalization} from '../../services/stringLocalization';\nimport {LocalizeSAPipe} from '../localize/localize.pipe';\nimport {FirstUppercaseSAPipe} from '../firstUppercase/firstUppercase.pipe';\n\n/**\n * Localize strings using 'StringLocalization' and converts first letter of text to uppercase\n */\n@Pipe(\n{\n name: 'firstUppercaseLocalize',\n standalone: true,\n pure: false,\n})\nexport class FirstUppercaseLocalizeSAPipe implements PipeTransform, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Localize pipe used for localizing string\n */\n protected localizePipe: LocalizeSAPipe;\n\n /**\n * Pipe used for transforming first letter to uppercase\n */\n protected firstUppercasePipe: FirstUppercaseSAPipe;\n\n /**\n * Subscription for changes of texts\n */\n protected subscription: Subscription|undefined|null;\n\n //######################### constructor #########################\n constructor(@Inject(STRING_LOCALIZATION) protected localizationSvc: StringLocalization,\n protected changeDetector: ChangeDetectorRef,)\n {\n this.localizePipe = new LocalizeSAPipe(localizationSvc, changeDetector);\n this.firstUppercasePipe = new FirstUppercaseSAPipe();\n }\n\n //######################### public methods - PipeTransform #########################\n\n /**\n * Localize strings using 'StringLocalization' and converts first letter of text to uppercase\n * @param value - Value to be converted\n * @param interpolateParams - Optional object storing interpolation parameters\n */\n public transform(value: string|undefined|null, interpolateParams?: Object): string|undefined|null \n {\n return this.firstUppercasePipe.transform(this.localizePipe.transform(value, interpolateParams));\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.subscription = this.localizationSvc.textsChange.subscribe(() => this.changeDetector.markForCheck());\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.localizePipe.ngOnDestroy();\n }\n}"]}
@@ -12,11 +12,11 @@ class IsNaNSAPipe {
12
12
  transform(value) {
13
13
  return isNaN(value);
14
14
  }
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IsNaNSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
16
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: IsNaNSAPipe, isStandalone: true, name: "isNaN" });
15
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsNaNSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
16
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IsNaNSAPipe, isStandalone: true, name: "isNaN" });
17
17
  }
18
18
  export { IsNaNSAPipe };
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IsNaNSAPipe, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsNaNSAPipe, decorators: [{
20
20
  type: Pipe,
21
21
  args: [{
22
22
  name: 'isNaN',
@@ -1 +1 @@
1
- {"version":3,"file":"isNaN.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/isNaN/isNaN.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,MAKa,WAAW;IAEpB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAU;QAEvB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;uGAXQ,WAAW;qGAAX,WAAW;;SAAX,WAAW;2FAAX,WAAW;kBALvB,IAAI;mBACL;oBACI,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Returns true if object is NaN\n */\n@Pipe(\n{\n name: 'isNaN',\n standalone: true\n})\nexport class IsNaNSAPipe implements PipeTransform\n{\n //######################### public methods #########################\n\n /**\n * Checks whether is value NaN\n * @param value - Value to be checked\n */\n public transform(value: any): boolean\n {\n return isNaN(value);\n }\n}"]}
1
+ {"version":3,"file":"isNaN.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/isNaN/isNaN.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;;AAElD;;GAEG;AACH,MAKa,WAAW;IAEpB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAU;QAEvB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;wGAXQ,WAAW;sGAAX,WAAW;;SAAX,WAAW;4FAAX,WAAW;kBALvB,IAAI;mBACL;oBACI,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * Returns true if object is NaN\n */\n@Pipe(\n{\n name: 'isNaN',\n standalone: true\n})\nexport class IsNaNSAPipe implements PipeTransform\n{\n //######################### public methods #########################\n\n /**\n * Checks whether is value NaN\n * @param value - Value to be checked\n */\n public transform(value: any): boolean\n {\n return isNaN(value);\n }\n}"]}
@@ -13,11 +13,11 @@ class IsPresentSAPipe {
13
13
  transform(value) {
14
14
  return isPresent(value);
15
15
  }
16
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IsPresentSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
17
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: IsPresentSAPipe, isStandalone: true, name: "isPresent" });
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsPresentSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
17
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IsPresentSAPipe, isStandalone: true, name: "isPresent" });
18
18
  }
19
19
  export { IsPresentSAPipe };
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IsPresentSAPipe, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsPresentSAPipe, decorators: [{
21
21
  type: Pipe,
22
22
  args: [{
23
23
  name: 'isPresent',
@@ -1 +1 @@
1
- {"version":3,"file":"isPresent.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/isPresent/isPresent.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;;AAEzC;;GAEG;AACH,MAKa,eAAe;IAExB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAc;QAE3B,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;uGAXQ,eAAe;qGAAf,eAAe;;SAAf,eAAe;2FAAf,eAAe;kBAL3B,IAAI;mBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\n\n/**\n * Returns true if object is different from null or undefined\n */\n@Pipe(\n{\n name: 'isPresent',\n standalone: true,\n})\nexport class IsPresentSAPipe implements PipeTransform\n{\n //######################### public methods #########################\n\n /**\n * Checks whether is value different from null or undefined\n * @param value - Value to be checked\n */\n public transform(value: unknown): boolean\n {\n return isPresent(value);\n }\n}"]}
1
+ {"version":3,"file":"isPresent.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/isPresent/isPresent.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;;AAEzC;;GAEG;AACH,MAKa,eAAe;IAExB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAc;QAE3B,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;wGAXQ,eAAe;sGAAf,eAAe;;SAAf,eAAe;4FAAf,eAAe;kBAL3B,IAAI;mBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\n\n/**\n * Returns true if object is different from null or undefined\n */\n@Pipe(\n{\n name: 'isPresent',\n standalone: true,\n})\nexport class IsPresentSAPipe implements PipeTransform\n{\n //######################### public methods #########################\n\n /**\n * Checks whether is value different from null or undefined\n * @param value - Value to be checked\n */\n public transform(value: unknown): boolean\n {\n return isPresent(value);\n }\n}"]}
@@ -15,11 +15,11 @@ class KeysSAPipe {
15
15
  }
16
16
  return Object.keys(value);
17
17
  }
18
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: KeysSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
19
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: KeysSAPipe, isStandalone: true, name: "keys" });
18
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KeysSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
19
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: KeysSAPipe, isStandalone: true, name: "keys" });
20
20
  }
21
21
  export { KeysSAPipe };
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: KeysSAPipe, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KeysSAPipe, decorators: [{
23
23
  type: Pipe,
24
24
  args: [{ name: 'keys', standalone: true }]
25
25
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"keys.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/keys/keys.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAa,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAEnD;;GAEG;AACH,MACa,UAAU;IAEnB;;;OAGG;IACI,SAAS,CAAC,KAAsB;QAEnC,IAAG,OAAO,CAAC,KAAK,CAAC,EACjB;YACI,OAAO,EAAE,CAAC;SACb;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;uGAdQ,UAAU;qGAAV,UAAU;;SAAV,UAAU;2FAAV,UAAU;kBADtB,IAAI;mBAAC,EAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {Dictionary, isBlank} from '@jscrpt/common';\n\n/**\n * Gets object keys/property names\n */\n@Pipe({name: 'keys', standalone: true})\nexport class KeysSAPipe implements PipeTransform\n{\n /**\n * Gets object keys/property names\n * @param value - Object containing keys which will be obtained\n */\n public transform(value: Dictionary<any>): string[]\n {\n if(isBlank(value))\n {\n return [];\n }\n\n return Object.keys(value);\n }\n}\n"]}
1
+ {"version":3,"file":"keys.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/keys/keys.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAa,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAEnD;;GAEG;AACH,MACa,UAAU;IAEnB;;;OAGG;IACI,SAAS,CAAC,KAAsB;QAEnC,IAAG,OAAO,CAAC,KAAK,CAAC,EACjB;YACI,OAAO,EAAE,CAAC;SACb;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;wGAdQ,UAAU;sGAAV,UAAU;;SAAV,UAAU;4FAAV,UAAU;kBADtB,IAAI;mBAAC,EAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {Dictionary, isBlank} from '@jscrpt/common';\n\n/**\n * Gets object keys/property names\n */\n@Pipe({name: 'keys', standalone: true})\nexport class KeysSAPipe implements PipeTransform\n{\n /**\n * Gets object keys/property names\n * @param value - Object containing keys which will be obtained\n */\n public transform(value: Dictionary<any>): string[]\n {\n if(isBlank(value))\n {\n return [];\n }\n\n return Object.keys(value);\n }\n}\n"]}
@@ -47,11 +47,11 @@ class LocalizeSAPipe {
47
47
  this._subscription?.unsubscribe();
48
48
  this._subscription = null;
49
49
  }
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LocalizeSAPipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
51
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: LocalizeSAPipe, isStandalone: true, name: "localize", pure: false });
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizeSAPipe, deps: [{ token: STRING_LOCALIZATION }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
51
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: LocalizeSAPipe, isStandalone: true, name: "localize", pure: false });
52
52
  }
53
53
  export { LocalizeSAPipe };
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LocalizeSAPipe, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizeSAPipe, decorators: [{
55
55
  type: Pipe,
56
56
  args: [{
57
57
  name: 'localize',
@@ -1 +1 @@
1
- {"version":3,"file":"localize.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/localize/localize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAiB,MAAM,EAAE,iBAAiB,EAAoB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;;AAGvD;;GAEG;AACH,MAMa,cAAc;IAU0B;IAC7B;IATpB,oEAAoE;IAEpE;;OAEG;IACK,aAAa,CAA8B;IAEnD,iEAAiE;IACjE,YAAiD,gBAAoC,EACjE,eAAkC;QADL,qBAAgB,GAAhB,gBAAgB,CAAoB;QACjE,oBAAe,GAAf,eAAe,CAAmB;IAEtD,CAAC;IAED,oEAAoE;IAEpE;;;;OAIG;IACI,SAAS,CAAC,GAA0B,EAAE,iBAA0B;QAEnE,IAAG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,EAAE,EAC7B;YACI,OAAO,EAAE,CAAC;SACb;QAED,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IAC7D,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE;YAElE,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,aAAa,EAAE,WAAW,EAAE,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC9B,CAAC;uGAtDQ,cAAc,kBAUH,mBAAmB;qGAV9B,cAAc;;SAAd,cAAc;2FAAd,cAAc;kBAN1B,IAAI;mBACL;oBACI,IAAI,EAAE,UAAU;oBAChB,UAAU,EAAE,IAAI;oBAChB,IAAI,EAAE,KAAK;iBACd;;0BAWgB,MAAM;2BAAC,mBAAmB","sourcesContent":["import {Pipe, PipeTransform, Inject, ChangeDetectorRef, OnInit, OnDestroy} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {STRING_LOCALIZATION} from '../../types/tokens';\nimport {StringLocalization} from '../../services/stringLocalization';\n\n/**\n * Localize strings using 'StringLocalization'\n */\n@Pipe(\n{\n name: 'localize',\n standalone: true,\n pure: false,\n})\nexport class LocalizeSAPipe implements PipeTransform, OnInit, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for changes of texts\n */\n private _subscription: Subscription|undefined|null;\n\n //######################### constructor #########################\n constructor(@Inject(STRING_LOCALIZATION) private _localizationSvc: StringLocalization,\n private _changeDetector: ChangeDetectorRef,)\n {\n }\n\n //######################### public methods #########################\n\n /**\n * Gets localized string for specified key, interpolation might be used\n * @param key - Key to be localized\n * @param interpolateParams - Optional object storing interpolation parameters\n */\n public transform(key: string|undefined|null, interpolateParams?: Object): string\n {\n if(isBlank(key) || key === '')\n {\n return '';\n }\n\n return this._localizationSvc.get(key, interpolateParams);\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this._subscription = this._localizationSvc.textsChange.subscribe(() =>\n {\n this._changeDetector.markForCheck();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._subscription?.unsubscribe();\n this._subscription = null;\n }\n}"]}
1
+ {"version":3,"file":"localize.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/localize/localize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAiB,MAAM,EAAE,iBAAiB,EAAoB,MAAM,eAAe,CAAC;AAChG,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAGvC,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;;AAGvD;;GAEG;AACH,MAMa,cAAc;IAU0B;IAC7B;IATpB,oEAAoE;IAEpE;;OAEG;IACK,aAAa,CAA8B;IAEnD,iEAAiE;IACjE,YAAiD,gBAAoC,EACjE,eAAkC;QADL,qBAAgB,GAAhB,gBAAgB,CAAoB;QACjE,oBAAe,GAAf,eAAe,CAAmB;IAEtD,CAAC;IAED,oEAAoE;IAEpE;;;;OAIG;IACI,SAAS,CAAC,GAA0B,EAAE,iBAA0B;QAEnE,IAAG,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,KAAK,EAAE,EAC7B;YACI,OAAO,EAAE,CAAC;SACb;QAED,OAAO,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IAC7D,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE;YAElE,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,aAAa,EAAE,WAAW,EAAE,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC9B,CAAC;wGAtDQ,cAAc,kBAUH,mBAAmB;sGAV9B,cAAc;;SAAd,cAAc;4FAAd,cAAc;kBAN1B,IAAI;mBACL;oBACI,IAAI,EAAE,UAAU;oBAChB,UAAU,EAAE,IAAI;oBAChB,IAAI,EAAE,KAAK;iBACd;;0BAWgB,MAAM;2BAAC,mBAAmB","sourcesContent":["import {Pipe, PipeTransform, Inject, ChangeDetectorRef, OnInit, OnDestroy} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {STRING_LOCALIZATION} from '../../types/tokens';\nimport {StringLocalization} from '../../services/stringLocalization';\n\n/**\n * Localize strings using 'StringLocalization'\n */\n@Pipe(\n{\n name: 'localize',\n standalone: true,\n pure: false,\n})\nexport class LocalizeSAPipe implements PipeTransform, OnInit, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for changes of texts\n */\n private _subscription: Subscription|undefined|null;\n\n //######################### constructor #########################\n constructor(@Inject(STRING_LOCALIZATION) private _localizationSvc: StringLocalization,\n private _changeDetector: ChangeDetectorRef,)\n {\n }\n\n //######################### public methods #########################\n\n /**\n * Gets localized string for specified key, interpolation might be used\n * @param key - Key to be localized\n * @param interpolateParams - Optional object storing interpolation parameters\n */\n public transform(key: string|undefined|null, interpolateParams?: Object): string\n {\n if(isBlank(key) || key === '')\n {\n return '';\n }\n\n return this._localizationSvc.get(key, interpolateParams);\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this._subscription = this._localizationSvc.textsChange.subscribe(() =>\n {\n this._changeDetector.markForCheck();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._subscription?.unsubscribe();\n this._subscription = null;\n }\n}"]}
@@ -33,11 +33,11 @@ class MergeCssClassesSAPipe {
33
33
  });
34
34
  return result;
35
35
  }
36
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MergeCssClassesSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
37
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: MergeCssClassesSAPipe, isStandalone: true, name: "mergeCssClasses" });
36
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MergeCssClassesSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
37
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: MergeCssClassesSAPipe, isStandalone: true, name: "mergeCssClasses" });
38
38
  }
39
39
  export { MergeCssClassesSAPipe };
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MergeCssClassesSAPipe, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MergeCssClassesSAPipe, decorators: [{
41
41
  type: Pipe,
42
42
  args: [{ name: 'mergeCssClasses', standalone: true }]
43
43
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"mergeCssClasses.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/mergeCssClasses/mergeCssClasses.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAa,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAOpD;;GAEG;AACH,MACa,qBAAqB;IAE9B;;;;OAIG;IACI,SAAS,CAAC,KAAkB,EAAE,YAA2B;QAE5D,MAAM,MAAM,GAAwB,EAAE,CAAC;QAEvC,SAAS,YAAY,CAAC,GAAgB;YAElC,IAAG,QAAQ,CAAC,GAAG,CAAC,EAChB;gBACI,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;aACtB;iBACI,IAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAC1B;gBACI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBAEnB,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;gBAC5B,CAAC,CAAC,CAAC;aACN;iBAED;gBACI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBAEhC,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACrC,CAAC,CAAC,CAAC;aACN;QACL,CAAC;QAED,YAAY,CAAC,KAAK,CAAC,CAAC;QAEpB,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAEvB,YAAY,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC;uGAzCQ,qBAAqB;qGAArB,qBAAqB;;SAArB,qBAAqB;2FAArB,qBAAqB;kBADjC,IAAI;mBAAC,EAAC,IAAI,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {Dictionary, isString} from '@jscrpt/common';\n\n/**\n * Type of css class definition for NgClass and merge\n */\nexport type NgClassType = string | string[] | Dictionary<boolean>;\n\n/**\n * Merges css classes that will be passed to ngClass\n */\n@Pipe({name: 'mergeCssClasses', standalone: true})\nexport class MergeCssClassesSAPipe implements PipeTransform\n{\n /**\n * Merges css classes that will be passed to ngClass\n * @param value - Css class to be merged\n * @param mergeClasses - Definition of css classes that will be merged\n */\n public transform(value: NgClassType, mergeClasses: NgClassType[]): Dictionary<boolean>\n {\n const result: Dictionary<boolean> = {};\n\n function updateResult(val: NgClassType): void\n {\n if(isString(val))\n {\n result[val] = true;\n }\n else if(Array.isArray(val))\n {\n val.forEach(cssClass =>\n {\n result[cssClass] = true;\n });\n }\n else\n {\n Object.keys(val).forEach(cssClass =>\n {\n result[cssClass] = val[cssClass];\n });\n }\n }\n\n updateResult(value);\n\n mergeClasses.forEach(itm =>\n {\n updateResult(itm);\n });\n\n return result;\n }\n}"]}
1
+ {"version":3,"file":"mergeCssClasses.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/mergeCssClasses/mergeCssClasses.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAa,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAOpD;;GAEG;AACH,MACa,qBAAqB;IAE9B;;;;OAIG;IACI,SAAS,CAAC,KAAkB,EAAE,YAA2B;QAE5D,MAAM,MAAM,GAAwB,EAAE,CAAC;QAEvC,SAAS,YAAY,CAAC,GAAgB;YAElC,IAAG,QAAQ,CAAC,GAAG,CAAC,EAChB;gBACI,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;aACtB;iBACI,IAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAC1B;gBACI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBAEnB,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;gBAC5B,CAAC,CAAC,CAAC;aACN;iBAED;gBACI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBAEhC,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;gBACrC,CAAC,CAAC,CAAC;aACN;QACL,CAAC;QAED,YAAY,CAAC,KAAK,CAAC,CAAC;QAEpB,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAEvB,YAAY,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC;wGAzCQ,qBAAqB;sGAArB,qBAAqB;;SAArB,qBAAqB;4FAArB,qBAAqB;kBADjC,IAAI;mBAAC,EAAC,IAAI,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {Dictionary, isString} from '@jscrpt/common';\n\n/**\n * Type of css class definition for NgClass and merge\n */\nexport type NgClassType = string | string[] | Dictionary<boolean>;\n\n/**\n * Merges css classes that will be passed to ngClass\n */\n@Pipe({name: 'mergeCssClasses', standalone: true})\nexport class MergeCssClassesSAPipe implements PipeTransform\n{\n /**\n * Merges css classes that will be passed to ngClass\n * @param value - Css class to be merged\n * @param mergeClasses - Definition of css classes that will be merged\n */\n public transform(value: NgClassType, mergeClasses: NgClassType[]): Dictionary<boolean>\n {\n const result: Dictionary<boolean> = {};\n\n function updateResult(val: NgClassType): void\n {\n if(isString(val))\n {\n result[val] = true;\n }\n else if(Array.isArray(val))\n {\n val.forEach(cssClass =>\n {\n result[cssClass] = true;\n });\n }\n else\n {\n Object.keys(val).forEach(cssClass =>\n {\n result[cssClass] = val[cssClass];\n });\n }\n }\n\n updateResult(value);\n\n mergeClasses.forEach(itm =>\n {\n updateResult(itm);\n });\n\n return result;\n }\n}"]}
@@ -16,11 +16,11 @@ class UrlEncodeSAPipe {
16
16
  }
17
17
  return serializeToUrlQuery(value);
18
18
  }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UrlEncodeSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: UrlEncodeSAPipe, isStandalone: true, name: "urlEncode" });
19
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UrlEncodeSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UrlEncodeSAPipe, isStandalone: true, name: "urlEncode" });
21
21
  }
22
22
  export { UrlEncodeSAPipe };
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UrlEncodeSAPipe, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UrlEncodeSAPipe, decorators: [{
24
24
  type: Pipe,
25
25
  args: [{ name: 'urlEncode', standalone: true }]
26
26
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"urlEncode.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/urlEncode/urlEncode.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;;AAEnD;;GAEG;AACH,MACa,eAAe;IAExB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAa;QAE1B,IAAG,CAAC,KAAK,EACT;YACI,OAAO,EAAE,CAAC;SACb;QAED,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;uGAhBQ,eAAe;qGAAf,eAAe;;SAAf,eAAe;2FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {serializeToUrlQuery} from '@jscrpt/common';\n\n/**\n * Pipe that encodes data for url\n */\n@Pipe({name: 'urlEncode', standalone: true})\nexport class UrlEncodeSAPipe implements PipeTransform\n{\n //######################### public methods #########################\n \n /**\n * Encodes data for URL\n * @param value - Value to be encoded\n */ \n public transform(value: object): string\n {\n if(!value)\n {\n return '';\n }\n\n return serializeToUrlQuery(value);\n }\n}\n\n"]}
1
+ {"version":3,"file":"urlEncode.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/urlEncode/urlEncode.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;;AAEnD;;GAEG;AACH,MACa,eAAe;IAExB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAa;QAE1B,IAAG,CAAC,KAAK,EACT;YACI,OAAO,EAAE,CAAC;SACb;QAED,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;wGAhBQ,eAAe;sGAAf,eAAe;;SAAf,eAAe;4FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {serializeToUrlQuery} from '@jscrpt/common';\n\n/**\n * Pipe that encodes data for url\n */\n@Pipe({name: 'urlEncode', standalone: true})\nexport class UrlEncodeSAPipe implements PipeTransform\n{\n //######################### public methods #########################\n \n /**\n * Encodes data for URL\n * @param value - Value to be encoded\n */ \n public transform(value: object): string\n {\n if(!value)\n {\n return '';\n }\n\n return serializeToUrlQuery(value);\n }\n}\n\n"]}
@@ -89,11 +89,11 @@ class CookieService {
89
89
  this.setCookie(name, '', -1, path, domain);
90
90
  }
91
91
  }
92
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookieService, deps: [{ token: PLATFORM_ID }, { token: HTTP_REQUEST_COOKIE_HEADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
93
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookieService, providedIn: 'root' });
92
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CookieService, deps: [{ token: PLATFORM_ID }, { token: HTTP_REQUEST_COOKIE_HEADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
93
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CookieService, providedIn: 'root' });
94
94
  }
95
95
  export { CookieService };
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookieService, decorators: [{
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CookieService, decorators: [{
97
97
  type: Injectable,
98
98
  args: [{ providedIn: 'root' }]
99
99
  }], 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;AACH,MACa,aAAa;IAW8C;IATpE,oEAAoE;IAEpE;;OAEG;IACK,UAAU,GAAY,KAAK,CAAC;IAEpC,iEAAiE;IACjE,YAAiC,UAAkB,EACiB,cAAsB;QAAtB,mBAAc,GAAd,cAAc,CAAQ;QAEtF,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,CAA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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;uGAlHQ,aAAa,kBAUF,WAAW,aACC,0BAA0B;2GAXjD,aAAa,cADD,MAAM;;SAClB,aAAa;2FAAb,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}"]}
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;AACH,MACa,aAAa;IAW8C;IATpE,oEAAoE;IAEpE;;OAEG;IACK,UAAU,GAAY,KAAK,CAAC;IAEpC,iEAAiE;IACjE,YAAiC,UAAkB,EACiB,cAAsB;QAAtB,mBAAc,GAAd,cAAc,CAAQ;QAEtF,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,CAAC,CAAC;SAC7C;QAED,IA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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;wGAlHQ,aAAa,kBAUF,WAAW,aACC,0BAA0B;4GAXjD,aAAa,cADD,MAAM;;SAClB,aAAa;4FAAb,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,11 +178,11 @@ class DefaultNotificationsService {
178
178
  }
179
179
  return this;
180
180
  }
181
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DefaultNotificationsService, deps: [{ token: i1.NotificationsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
182
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DefaultNotificationsService });
181
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultNotificationsService, deps: [{ token: i1.NotificationsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
182
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultNotificationsService });
183
183
  }
184
184
  export { DefaultNotificationsService };
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DefaultNotificationsService, decorators: [{
185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultNotificationsService, decorators: [{
186
186
  type: Injectable
187
187
  }], ctorParameters: function () { return [{ type: i1.NotificationsOptions, decorators: [{
188
188
  type: Optional