@anglr/common 19.0.0-beta.20231109094203 → 19.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/changelog.md +18 -0
  2. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +6 -7
  3. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
  4. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +5 -6
  5. package/es2022/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
  6. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +5 -6
  7. package/es2022/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
  8. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +4 -5
  9. package/es2022/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -1
  10. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js +5 -6
  11. package/es2022/forms/src/directives/groupHasError/groupHasError.directive.js.map +1 -1
  12. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +4 -5
  13. package/es2022/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -1
  14. package/es2022/forms/src/directives/hasError/hasError.directive.js +6 -7
  15. package/es2022/forms/src/directives/hasError/hasError.directive.js.map +1 -1
  16. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js +6 -7
  17. package/es2022/forms/src/directives/numberInput/maxValueNumberValidator.directive.js.map +1 -1
  18. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js +6 -7
  19. package/es2022/forms/src/directives/numberInput/minValueNumberValidator.directive.js.map +1 -1
  20. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js +5 -6
  21. package/es2022/forms/src/directives/numberInput/numberInputControlValueAccessor.directive.js.map +1 -1
  22. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js +4 -5
  23. package/es2022/forms/src/directives/numberInput/numberInputValidator.directive.js.map +1 -1
  24. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js +6 -7
  25. package/es2022/forms/src/directives/requiredClass/requiredClass.directive.js.map +1 -1
  26. package/es2022/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +6 -7
  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 +6 -7
  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 +6 -7
  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 +5 -6
  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 +5 -6
  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 +6 -7
  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 +5 -6
  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 +6 -7
  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 +6 -7
  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 +6 -7
  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 +4 -5
  47. package/es2022/forms/src/modules/formPipes/pipes/getControl/getControl.pipe.js.map +1 -1
  48. package/es2022/forms/src/modules/hasError.module.js +5 -6
  49. package/es2022/forms/src/modules/hasError.module.js.map +1 -1
  50. package/es2022/forms/src/modules/numberInput.module.js +5 -6
  51. package/es2022/forms/src/modules/numberInput.module.js.map +1 -1
  52. package/es2022/forms/src/modules/requiredClass.module.js +5 -6
  53. package/es2022/forms/src/modules/requiredClass.module.js.map +1 -1
  54. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js +6 -7
  55. package/es2022/forms/src/services/errorMessagesExtractor/errorMessagesExtractor.service.js.map +1 -1
  56. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js +5 -6
  57. package/es2022/forms/src/services/formModelBuilder/formModelBuilder.service.js.map +1 -1
  58. package/es2022/forms/src/services/submitted/submitted.service.js +4 -5
  59. package/es2022/forms/src/services/submitted/submitted.service.js.map +1 -1
  60. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js +6 -7
  61. package/es2022/forms/src/services/validationErrorRenderer/validationErrorRenderer.service.js.map +1 -1
  62. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js +5 -6
  63. package/es2022/hotkeys/src/components/cheatSheet/cheatSheet.component.js.map +1 -1
  64. package/es2022/hotkeys/src/services/appHotkeys.service.js +5 -6
  65. package/es2022/hotkeys/src/services/appHotkeys.service.js.map +1 -1
  66. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js +6 -7
  67. package/es2022/material/src/components/confirmationDialog/confirmationDialog.component.js.map +1 -1
  68. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js +4 -5
  69. package/es2022/material/src/components/movableTitledDialog/movableTitledDialog.component.js.map +1 -1
  70. package/es2022/material/src/components/titledDialog/titledDialog.component.js +6 -7
  71. package/es2022/material/src/components/titledDialog/titledDialog.component.js.map +1 -1
  72. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js +5 -6
  73. package/es2022/material/src/directives/confirmationDialog/confirmationDialog.directive.js.map +1 -1
  74. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js +5 -6
  75. package/es2022/material/src/directives/debugDataCopyClick/debugDataCopyClick.directive.js.map +1 -1
  76. package/es2022/material/src/modules/confirmationDialog.module.js +5 -6
  77. package/es2022/material/src/modules/confirmationDialog.module.js.map +1 -1
  78. package/es2022/material/src/modules/debugDataCopyClick.module.js +5 -6
  79. package/es2022/material/src/modules/debugDataCopyClick.module.js.map +1 -1
  80. package/es2022/material/src/modules/movableTitledDialog.module.js +5 -6
  81. package/es2022/material/src/modules/movableTitledDialog.module.js.map +1 -1
  82. package/es2022/material/src/modules/titledDialog.module.js +5 -6
  83. package/es2022/material/src/modules/titledDialog.module.js.map +1 -1
  84. package/es2022/material/src/services/titledDialog/titledDialog.service.js +6 -7
  85. package/es2022/material/src/services/titledDialog/titledDialog.service.js.map +1 -1
  86. package/es2022/moment/src/modules/moment.module.js +5 -6
  87. package/es2022/moment/src/modules/moment.module.js.map +1 -1
  88. package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js +4 -5
  89. package/es2022/moment/src/pipes/momentConvert/momentConvert.pipe.js.map +1 -1
  90. package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js +4 -5
  91. package/es2022/moment/src/pipes/momentFormat/momentFormat.pipe.js.map +1 -1
  92. package/es2022/numeral/src/pipes/numeral.pipe.js +5 -6
  93. package/es2022/numeral/src/pipes/numeral.pipe.js.map +1 -1
  94. package/es2022/router/src/services/routing/dataRouter.js +5 -6
  95. package/es2022/router/src/services/routing/dataRouter.js.map +1 -1
  96. package/es2022/router/src/services/routing/dataRouterData.js +5 -6
  97. package/es2022/router/src/services/routing/dataRouterData.js.map +1 -1
  98. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js +4 -5
  99. package/es2022/src/components/collapsibleIcon/collapsibleIcon.component.js.map +1 -1
  100. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js +4 -5
  101. package/es2022/src/components/collapsibleTitle/collapsibleTitle.component.js.map +1 -1
  102. package/es2022/src/directives/bodyRender/bodyRender.directive.js +6 -7
  103. package/es2022/src/directives/bodyRender/bodyRender.directive.js.map +1 -1
  104. package/es2022/src/directives/clickOutside/clickOutside.directive.js +6 -7
  105. package/es2022/src/directives/clickOutside/clickOutside.directive.js.map +1 -1
  106. package/es2022/src/directives/goBack/goBack.directive.js +5 -6
  107. package/es2022/src/directives/goBack/goBack.directive.js.map +1 -1
  108. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js +5 -7
  109. package/es2022/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.js.map +1 -1
  110. package/es2022/src/directives/positionTo/positionTo.directive.js +6 -7
  111. package/es2022/src/directives/positionTo/positionTo.directive.js.map +1 -1
  112. package/es2022/src/modules/castPipes/modules/castPipes.module.js +5 -6
  113. package/es2022/src/modules/castPipes/modules/castPipes.module.js.map +1 -1
  114. package/es2022/src/modules/castPipes/pipes/asHtmlElement/asHtmlElement.pipe.js +4 -5
  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 +4 -5
  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 +4 -5
  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 +6 -7
  121. package/es2022/src/modules/castPipes/pipes/castType/castType.pipe.js.map +1 -1
  122. package/es2022/src/modules/commonDynamic.module.js +5 -6
  123. package/es2022/src/modules/commonDynamic.module.js.map +1 -1
  124. package/es2022/src/modules/commonLocalize.module.js +5 -6
  125. package/es2022/src/modules/commonLocalize.module.js.map +1 -1
  126. package/es2022/src/modules/commonUtils.module.js +5 -6
  127. package/es2022/src/modules/commonUtils.module.js.map +1 -1
  128. package/es2022/src/modules/debugData/components/debugData/debugData.component.js +5 -6
  129. package/es2022/src/modules/debugData/components/debugData/debugData.component.js.map +1 -1
  130. package/es2022/src/modules/debugData/modules/debugData.module.js +5 -6
  131. package/es2022/src/modules/debugData/modules/debugData.module.js.map +1 -1
  132. package/es2022/src/modules/debugData/services/debugDataEnabled/debugDataEnabled.service.js +4 -5
  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 +5 -6
  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 +4 -5
  137. package/es2022/src/modules/logger/services/console/consoleComponent.service.js.map +1 -1
  138. package/es2022/src/modules/logger/services/console/consoleComponent.sink.js.map +1 -1
  139. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js +5 -6
  140. package/es2022/src/modules/logger/services/console/consoleComponentService.options.js.map +1 -1
  141. package/es2022/src/modules/logger/services/developmentConsoleSink/developmentConsole.sink.js.map +1 -1
  142. package/es2022/src/modules/logger/services/logger/logger.service.js +5 -6
  143. package/es2022/src/modules/logger/services/logger/logger.service.js.map +1 -1
  144. package/es2022/src/modules/logger/services/rest/rest.sink.js.map +1 -1
  145. package/es2022/src/modules/logger/services/rest/restSink.options.js +5 -6
  146. package/es2022/src/modules/logger/services/rest/restSink.options.js.map +1 -1
  147. package/es2022/src/modules/logger/types/loggerOptions.js +4 -5
  148. package/es2022/src/modules/logger/types/loggerOptions.js.map +1 -1
  149. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js +6 -7
  150. package/es2022/src/modules/multiButton/components/multiButton/multiButton.component.js.map +1 -1
  151. package/es2022/src/modules/multiButton/modules/multiButton.module.js +5 -6
  152. package/es2022/src/modules/multiButton/modules/multiButton.module.js.map +1 -1
  153. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js +5 -6
  154. package/es2022/src/modules/progressIndicator/components/progressIndicator/progressIndicator.component.js.map +1 -1
  155. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js +6 -7
  156. package/es2022/src/modules/progressIndicator/directives/progressOverlay/progressOverlay.directive.js.map +1 -1
  157. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js +5 -6
  158. package/es2022/src/modules/progressIndicator/interceptors/progressInterceptor.js.map +1 -1
  159. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js +5 -6
  160. package/es2022/src/modules/progressIndicator/modules/progressIndicator.module.js.map +1 -1
  161. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js +10 -16
  162. package/es2022/src/modules/progressIndicator/services/progressIndicator.service.js.map +1 -1
  163. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +5 -6
  164. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
  165. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js +6 -7
  166. package/es2022/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +1 -1
  167. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js +5 -6
  168. package/es2022/src/modules/tooltip/directives/tooltipTemplate/tooltipTemplate.directive.js.map +1 -1
  169. package/es2022/src/modules/tooltip/modules/tooltip.module.js +5 -6
  170. package/es2022/src/modules/tooltip/modules/tooltip.module.js.map +1 -1
  171. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js +4 -5
  172. package/es2022/src/pipes/displayProperties/displayProperties.pipe.js.map +1 -1
  173. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js +4 -5
  174. package/es2022/src/pipes/firstUppercase/firstUppercase.pipe.js.map +1 -1
  175. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js +6 -7
  176. package/es2022/src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.js.map +1 -1
  177. package/es2022/src/pipes/isNaN/isNaN.pipe.js +4 -5
  178. package/es2022/src/pipes/isNaN/isNaN.pipe.js.map +1 -1
  179. package/es2022/src/pipes/isPresent/isPresent.pipe.js +4 -5
  180. package/es2022/src/pipes/isPresent/isPresent.pipe.js.map +1 -1
  181. package/es2022/src/pipes/keys/keys.pipe.js +4 -5
  182. package/es2022/src/pipes/keys/keys.pipe.js.map +1 -1
  183. package/es2022/src/pipes/localize/localize.pipe.js +6 -7
  184. package/es2022/src/pipes/localize/localize.pipe.js.map +1 -1
  185. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +8 -6
  186. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -1
  187. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +4 -5
  188. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js.map +1 -1
  189. package/es2022/src/services/cookies/cookies.service.js +6 -7
  190. package/es2022/src/services/cookies/cookies.service.js.map +1 -1
  191. package/es2022/src/services/notifications/defaultNotifications.service.js +6 -7
  192. package/es2022/src/services/notifications/defaultNotifications.service.js.map +1 -1
  193. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +7 -8
  194. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js.map +1 -1
  195. package/es2022/src/services/statusCode/statusCode.service.js +4 -5
  196. package/es2022/src/services/statusCode/statusCode.service.js.map +1 -1
  197. package/es2022/src/services/stringLocalization/noStringLocalization.service.js +4 -5
  198. package/es2022/src/services/stringLocalization/noStringLocalization.service.js.map +1 -1
  199. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js +4 -5
  200. package/es2022/src/services/temporaryStorage/memoryTemporaryStorage.service.js.map +1 -1
  201. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +7 -8
  202. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js.map +1 -1
  203. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +6 -7
  204. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js.map +1 -1
  205. package/package.json +41 -42
  206. package/src/directives/ngComponentOutletEx/ngComponentOutletEx.directive.d.ts.map +1 -1
  207. package/src/modules/progressIndicator/services/progressIndicator.service.d.ts +2 -3
  208. package/src/modules/progressIndicator/services/progressIndicator.service.d.ts.map +1 -1
  209. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts +1 -1
  210. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts.map +1 -1
  211. package/styles/themes/dark.scss +6 -0
  212. package/styles/themes/light.scss +0 -6
  213. package/version.bak +1 -1
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Localize strings using 'StringLocalization' and converts first letter of text to uppercase
8
8
  */
9
- class FirstUppercaseLocalizeSAPipe {
9
+ export class FirstUppercaseLocalizeSAPipe {
10
10
  localizationSvc;
11
11
  changeDetector;
12
12
  //######################### protected fields #########################
@@ -52,19 +52,18 @@ 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: "17.0.1", 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: "17.0.1", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, isStandalone: true, name: "firstUppercaseLocalize", pure: false });
57
57
  }
58
- export { FirstUppercaseLocalizeSAPipe };
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: FirstUppercaseLocalizeSAPipe, decorators: [{
60
59
  type: Pipe,
61
60
  args: [{
62
61
  name: 'firstUppercaseLocalize',
63
62
  standalone: true,
64
63
  pure: false,
65
64
  }]
66
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
65
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
67
66
  type: Inject,
68
67
  args: [STRING_LOCALIZATION]
69
- }] }, { type: i0.ChangeDetectorRef }]; } });
68
+ }] }, { type: i0.ChangeDetectorRef }] });
70
69
  //# sourceMappingURL=firstUppercaseLocalize.pipe.js.map
@@ -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,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;uGAzDQ,4BAA4B,kBAoBjB,mBAAmB;qGApB9B,4BAA4B;;SAA5B,4BAA4B;2FAA5B,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}"]}
1
+ {"version":3,"file":"firstUppercaseLocalize.pipe.js","sourceRoot":"","sources":["../../../../src/pipes/firstUppercaseLocalize/firstUppercaseLocalize.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,I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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}"]}
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
3
3
  /**
4
4
  * Returns true if object is NaN
5
5
  */
6
- class IsNaNSAPipe {
6
+ export class IsNaNSAPipe {
7
7
  //######################### public methods #########################
8
8
  /**
9
9
  * Checks whether is value NaN
@@ -12,11 +12,10 @@ 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: "17.0.1", ngImport: i0, type: IsNaNSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
16
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: IsNaNSAPipe, isStandalone: true, name: "isNaN" });
17
17
  }
18
- export { IsNaNSAPipe };
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IsNaNSAPipe, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: IsNaNSAPipe, decorators: [{
20
19
  type: Pipe,
21
20
  args: [{
22
21
  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;AAMH,MAAM,OAAO,WAAW;IAEpB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAU;QAEvB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;uGAXQ,WAAW;qGAAX,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}"]}
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Returns true if object is different from null or undefined
6
6
  */
7
- class IsPresentSAPipe {
7
+ export class IsPresentSAPipe {
8
8
  //######################### public methods #########################
9
9
  /**
10
10
  * Checks whether is value different from null or undefined
@@ -13,11 +13,10 @@ 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: "17.0.1", ngImport: i0, type: IsPresentSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
17
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: IsPresentSAPipe, isStandalone: true, name: "isPresent" });
18
18
  }
19
- export { IsPresentSAPipe };
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: IsPresentSAPipe, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: IsPresentSAPipe, decorators: [{
21
20
  type: Pipe,
22
21
  args: [{
23
22
  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;AAMH,MAAM,OAAO,eAAe;IAExB,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,KAAc;QAE3B,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;uGAXQ,eAAe;qGAAf,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}"]}
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Gets object keys/property names
6
6
  */
7
- class KeysSAPipe {
7
+ export class KeysSAPipe {
8
8
  /**
9
9
  * Gets object keys/property names
10
10
  * @param value - Object containing keys which will be obtained
@@ -15,11 +15,10 @@ 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: "17.0.1", ngImport: i0, type: KeysSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
19
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: KeysSAPipe, isStandalone: true, name: "keys" });
20
20
  }
21
- export { KeysSAPipe };
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: KeysSAPipe, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: KeysSAPipe, decorators: [{
23
22
  type: Pipe,
24
23
  args: [{ name: 'keys', standalone: true }]
25
24
  }] });
@@ -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;AAEH,MAAM,OAAO,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;;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"]}
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Localize strings using 'StringLocalization'
7
7
  */
8
- class LocalizeSAPipe {
8
+ export class LocalizeSAPipe {
9
9
  _localizationSvc;
10
10
  _changeDetector;
11
11
  //######################### private fields #########################
@@ -47,19 +47,18 @@ 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: "17.0.1", 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: "17.0.1", ngImport: i0, type: LocalizeSAPipe, isStandalone: true, name: "localize", pure: false });
52
52
  }
53
- export { LocalizeSAPipe };
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LocalizeSAPipe, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: LocalizeSAPipe, decorators: [{
55
54
  type: Pipe,
56
55
  args: [{
57
56
  name: 'localize',
58
57
  standalone: true,
59
58
  pure: false,
60
59
  }]
61
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
60
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
62
61
  type: Inject,
63
62
  args: [STRING_LOCALIZATION]
64
- }] }, { type: i0.ChangeDetectorRef }]; } });
63
+ }] }, { type: i0.ChangeDetectorRef }] });
65
64
  //# sourceMappingURL=localize.pipe.js.map
@@ -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U;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;AAOH,MAAM,OAAO,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;;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,10 +1,10 @@
1
1
  import { Pipe } from '@angular/core';
2
- import { isString } from '@jscrpt/common';
2
+ import { isBlank, isString } from '@jscrpt/common';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Merges css classes that will be passed to ngClass
6
6
  */
7
- class MergeCssClassesSAPipe {
7
+ export class MergeCssClassesSAPipe {
8
8
  /**
9
9
  * Merges css classes that will be passed to ngClass
10
10
  * @param value - Css class to be merged
@@ -13,6 +13,9 @@ class MergeCssClassesSAPipe {
13
13
  transform(value, mergeClasses) {
14
14
  const result = {};
15
15
  function updateResult(val) {
16
+ if (isBlank(val)) {
17
+ return;
18
+ }
16
19
  if (isString(val)) {
17
20
  result[val] = true;
18
21
  }
@@ -33,11 +36,10 @@ class MergeCssClassesSAPipe {
33
36
  });
34
37
  return result;
35
38
  }
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" });
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: MergeCssClassesSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
40
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: MergeCssClassesSAPipe, isStandalone: true, name: "mergeCssClasses" });
38
41
  }
39
- export { MergeCssClassesSAPipe };
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MergeCssClassesSAPipe, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: MergeCssClassesSAPipe, decorators: [{
41
43
  type: Pipe,
42
44
  args: [{ name: 'mergeCssClasses', standalone: true }]
43
45
  }] });
@@ -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,OAAO,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAO7D;;GAEG;AAEH,MAAM,OAAO,qBAAqB;IAE9B;;;;OAIG;IACI,SAAS,CAAC,KAAiC,EAAE,YAA4C;QAE5F,MAAM,MAAM,GAAwB,EAAE,CAAC;QAEvC,SAAS,YAAY,CAAC,GAA+B;YAEjD,IAAG,OAAO,CAAC,GAAG,CAAC,EACf;gBACI,OAAO;aACV;YAED,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;uGA9CQ,qBAAqB;qGAArB,qBAAqB;;2FAArB,qBAAqB;kBADjC,IAAI;mBAAC,EAAC,IAAI,EAAE,iBAAiB,EAAE,UAAU,EAAE,IAAI,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {Dictionary, isBlank, 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|undefined|null, mergeClasses: (NgClassType|undefined|null)[]): Dictionary<boolean>\n {\n const result: Dictionary<boolean> = {};\n\n function updateResult(val: NgClassType|undefined|null): void\n {\n if(isBlank(val))\n {\n return;\n }\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}"]}
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Pipe that encodes data for url
6
6
  */
7
- class UrlEncodeSAPipe {
7
+ export class UrlEncodeSAPipe {
8
8
  //######################### public methods #########################
9
9
  /**
10
10
  * Encodes data for URL
@@ -16,11 +16,10 @@ 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: "17.0.1", ngImport: i0, type: UrlEncodeSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
+ static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: UrlEncodeSAPipe, isStandalone: true, name: "urlEncode" });
21
21
  }
22
- export { UrlEncodeSAPipe };
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UrlEncodeSAPipe, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: UrlEncodeSAPipe, decorators: [{
24
23
  type: Pipe,
25
24
  args: [{ name: 'urlEncode', standalone: true }]
26
25
  }] });
@@ -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;AAEH,MAAM,OAAO,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;;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"]}
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Class that is used as wrapper for working with cookies
8
8
  */
9
- class CookieService {
9
+ export class CookieService {
10
10
  _serverCookies;
11
11
  //######################### private fields #########################
12
12
  /**
@@ -89,14 +89,13 @@ 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: "17.0.1", 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: "17.0.1", ngImport: i0, type: CookieService, providedIn: 'root' });
94
94
  }
95
- export { CookieService };
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookieService, decorators: [{
95
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CookieService, decorators: [{
97
96
  type: Injectable,
98
97
  args: [{ providedIn: 'root' }]
99
- }], ctorParameters: function () { return [{ type: Object, decorators: [{
98
+ }], ctorParameters: () => [{ type: Object, decorators: [{
100
99
  type: Inject,
101
100
  args: [PLATFORM_ID]
102
101
  }] }, { type: undefined, decorators: [{
@@ -104,5 +103,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
104
103
  }, {
105
104
  type: Inject,
106
105
  args: [HTTP_REQUEST_COOKIE_HEADER]
107
- }] }]; } });
106
+ }] }] });
108
107
  //# sourceMappingURL=cookies.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookies.service.js","sourceRoot":"","sources":["../../../../src/services/cookies/cookies.service.ts"],"names":[],"mappings":"AA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,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;AAEH,MAAM,OAAO,aAAa;IAW8C;IATpE,oEAAoE;IAEpE;;OAEG;IACK,UAAU,GAAY,KAAK,CAAC;IAEpC,iEAAiE;IACjE,YAAiC,UAAkB,EACiB,cAAsB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AAC,CAAC;QAC9D,IAAI,SAAS,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,kBAAkB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QAE/E,IAAI,OAAO,EACX;YACI,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,OAAO,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;YACjF,SAAS,IAAI,UAAU,GAAG,SAAS,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC;SAC3D;QAED,IAAI,IAAI,EACR;YACI,SAAS,IAAI,OAAO,GAAG,IAAI,GAAG,GAAG,CAAC;SACrC;QAED,IAAI,MAAM,EACV;YACI,SAAS,IAAI,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC;SACzC;QAED,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CAAC,IAAY,EAAE,IAAa,EAAE,MAAe;QAE5D,IAAG,CAAC,IAAI,CAAC,UAAU,EACnB;YACI,OAAO;SACV;QAED,uBAAuB;QACvB,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EACxB;YACI,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SAC9C;IACL,CAAC;uGAlHQ,aAAa,kBAUF,WAAW,aACC,0BAA0B;2GAXjD,aAAa,cADD,MAAM;;2FAClB,aAAa;kBADzB,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;0BAWf,MAAM;2BAAC,WAAW;;0BAClB,QAAQ;;0BAAI,MAAM;2BAAC,0BAA0B","sourcesContent":["import {PLATFORM_ID, Inject, Optional, Injectable} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\nimport {isBlank} from '@jscrpt/common';\n\nimport {HTTP_REQUEST_COOKIE_HEADER} from '../../types/tokens';\n\n/**\n * Class that is used as wrapper for working with cookies\n */\n@Injectable({providedIn: 'root'})\nexport class CookieService\n{\n //######################### private fields #########################\n\n /**\n * Indication that current code is running in browser\n */\n private _isBrowser: boolean = false;\n\n //######################### constructor #########################\n constructor(@Inject(PLATFORM_ID) platformId: Object,\n @Optional() @Inject(HTTP_REQUEST_COOKIE_HEADER) private _serverCookies: string)\n {\n this._isBrowser = isPlatformBrowser(platformId);\n }\n\n //######################### public methods #########################\n\n /**\n * Retrieves a single cookie by it's name\n *\n * @param name - Identification of the Cookie\n * @param skipSerialization - Indication whether skip deserialization from json string\n * @returns The Cookie's value\n */\n public getCookie(name: string, skipSerialization?: boolean): any\n {\n if(!this._isBrowser && isBlank(this._serverCookies))\n {\n return null;\n }\n\n name = encodeURIComponent(name);\n \n const regexp = new RegExp('(?:^' + name + '|;\\\\s*' + name + ')=(.*?)(?:;|$)', 'g');\n let result;\n\n if(isBlank(this._serverCookies))\n {\n result = regexp.exec(document.cookie);\n }\n else\n {\n result = regexp.exec(this._serverCookies);\n }\n\n if(result === null)\n {\n return null;\n }\n\n const val = decodeURIComponent(result[1]);\n\n return skipSerialization ? val : JSON.parse(val);\n }\n\n /**\n * Save the Cookie\n *\n * @param name - Cookie's identification\n * @param value - Cookie's value\n * @param expires - Cookie's expiration date in days from now. If it's undefined the cookie is a session Cookie\n * @param path - Path relative to the domain where the cookie should be avaiable. Default /\n * @param domain - Domain where the cookie should be avaiable. Default current domain\n * @param skipSerialization - Indication whether skip serialization to json string\n */\n public setCookie(name: string, value: any, expires?: number, path?: string, domain?: string, skipSerialization?: boolean): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n const val = skipSerialization ? value : JSON.stringify(value);\n let cookieStr = encodeURIComponent(name) + '=' + encodeURIComponent(val) + ';';\n\n if (expires)\n {\n const dtExpires = new Date(new Date().getTime() + expires * 1000 * 60 * 60 * 24);\n cookieStr += 'expires=' + dtExpires.toUTCString() + ';';\n }\n \n if (path)\n {\n cookieStr += 'path=' + path + ';';\n }\n \n if (domain)\n {\n cookieStr += 'domain=' + domain + ';';\n }\n\n document.cookie = cookieStr;\n }\n\n /**\n * Removes specified Cookie\n *\n * @param name - Cookie's identification\n * @param path - Path relative to the domain where the cookie should be avaiable. Default /\n * @param domain - Domain where the cookie should be avaiable. Default current domain\n */\n public deleteCookie(name: string, path?: string, domain?: string): void\n {\n if(!this._isBrowser)\n {\n return;\n }\n\n // If the cookie exists\n if (this.getCookie(name))\n {\n this.setCookie(name, '', -1, path, domain);\n }\n }\n}"]}
@@ -9,7 +9,7 @@ import * as i1 from "./notificationsOptions";
9
9
  /**
10
10
  * Default notifications service implementation
11
11
  */
12
- class DefaultNotificationsService {
12
+ export class DefaultNotificationsService {
13
13
  _options;
14
14
  //######################### protected fields #########################
15
15
  /**
@@ -178,15 +178,14 @@ 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: "17.0.1", ngImport: i0, type: DefaultNotificationsService, deps: [{ token: i1.NotificationsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
182
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DefaultNotificationsService });
183
183
  }
184
- export { DefaultNotificationsService };
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DefaultNotificationsService, decorators: [{
184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: DefaultNotificationsService, decorators: [{
186
185
  type: Injectable
187
- }], ctorParameters: function () { return [{ type: i1.NotificationsOptions, decorators: [{
186
+ }], ctorParameters: () => [{ type: i1.NotificationsOptions, decorators: [{
188
187
  type: Optional
189
- }] }]; } });
188
+ }] }] });
190
189
  /**
191
190
  * Default notifications provider
192
191
  */
@@ -1 +1 @@
1
- {"version":3,"file":"defaultNotifications.service.js","sourceRoot":"","sources":["../../../../src/services/notifications/defaultNotifications.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,QAAQ,EAAE,QAAQ,EAAO,MAAM,eAAe,CAAC;AACnF,OAAO,EAAa,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAa,OAAO,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAEvD,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAgB,YAAY,EAAE,oBAAoB,EAAuF,MAAM,2BAA2B,CAAC;AAClL,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;;;AAE5D;;GAEG;AACH,MACa,2BAA2B;IAwDF;IAtDlC,sEAAsE;IAEtE;;OAEG;IACO,cAAc,GAAmB,EAAE,CAAC;IAE9C;;OAEG;IACO,sBAAsB,GAAa,EAAE,CAAC;IAEhD;;OAEG;IACO,oBAAoB,GAAkB,IAAI,OAAO,EAAQ,CAAC;IAEpE;;OAEG;IACO,QAAQ,GAAkB,IAAI,OAAO,EAAQ,CAAC;IAExD;;OAEG;IACO,OAAO,GAA8C,EAAE,CAAC;IAElE,uEAAuE;IAEvE;;OAEG;IACH,IAAW,aAAa;QAEpB,OAAO,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,IAAW,mBAAmB;QAE1B,OAAO,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,IAAW,OAAO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port {Dictionary, generateId} from '@jscrpt/common';\nimport {Observable, Subject, Subscription} from 'rxjs';\n\nimport {NOTIFICATIONS, NOTIFICATIONS_SCOPE} from '../../types/tokens';\nimport {Notifications, Notification, NotificationSeverity, NotificationsProvider, NotificationsScopeProviderFactory, NotificationsScopeProvider} from './notifications.interface';\nimport {NotificationsOptions} from './notificationsOptions';\n\n/**\n * Default notifications service implementation\n */\n@Injectable()\nexport class DefaultNotificationsService implements Notifications\n{\n //######################### protected fields #########################\n\n /**\n * Array of notifications\n */\n protected _notifications: Notification[] = [];\n\n /**\n * Array of notifications timeouts\n */\n protected _notificationsTimeouts: number[] = [];\n\n /**\n * Subject used for emitting changes of current notifications\n */\n protected _notificationsChange: Subject<void> = new Subject<void>();\n\n /**\n * Subject used for emitting event when instance is being destroyed\n */\n protected _destroy: Subject<void> = new Subject<void>();\n\n /**\n * Array of scoped notifications\n */\n protected _scopes: Dictionary<[Notifications, Subscription]> = {};\n\n //######################### public properties #########################\n\n /**\n * @inheritdoc\n */\n public get notifications(): readonly Notification[]\n {\n return [...this._notifications];\n }\n\n /**\n * @inheritdoc\n */\n public get notificationsChange(): Observable<void>\n {\n return this._notificationsChange.asObservable();\n }\n\n /**\n * @inheritdoc\n */\n public get destroy(): Observable<void>\n {\n return this._destroy.asObservable();\n }\n\n //######################### constructor #########################\n constructor(@Optional() protected _options: NotificationsOptions)\n {\n if(!this._options || !(this._options instanceof NotificationsOptions))\n {\n this._options = new NotificationsOptions();\n }\n }\n\n //######################### public methods - implementation of Notifications #########################\n \n /**\n * @inheritdoc\n */\n public message(message: string, severity: NotificationSeverity, parameter?: Record<string, unknown>): Notifications\n {\n const notification = new Notification(message, severity, parameter);\n \n this._notifications.push(notification);\n this._notificationsChange.next();\n\n // set timeout\n if(this._options.timeout > 0)\n {\n this._notificationsTimeouts.push(setTimeout(() =>\n {\n this.remove(notification);\n }, this._options.timeout) as any);\n }\n\n return this;\n }\n\n /**\n * @inheritdoc\n */\n public default(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Default, parameter);\n }\n\n /**\n * @inheritdoc\n */\n public success(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Success, parameter);\n }\n \n /**\n * @inheritdoc\n */\n public error(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Error, parameter);\n }\n \n /**\n * @inheritdoc\n */\n public info(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Info, parameter);\n }\n \n /**\n * @inheritdoc\n */\n public warning(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Warning, parameter);\n }\n\n /**\n * @inheritdoc\n */\n public clearNotifications(): Notifications\n {\n while(this._notifications[0])\n {\n this._remove(this._notifications[0], false);\n }\n\n this._notificationsChange.next();\n\n return this;\n }\n\n /**\n * @inheritdoc\n */\n public remove(notification: Notification): Notifications\n {\n return this._remove(notification);\n }\n\n /**\n * @inheritdoc\n */\n public getScope(scopeName: string): Notifications\n {\n const scopeObj = this._scopes[scopeName];\n let scope: Notifications;\n\n // no scope yet\n if(!scopeObj)\n {\n scope = new DefaultNotificationsService(this._options);\n const subscription = new Subscription();\n\n this._scopes[scopeName] = [scope, subscription];\n\n //destroys and removes scope\n subscription.add(scope.destroy.subscribe(() =>\n {\n delete this._scopes[scopeName];\n subscription.unsubscribe();\n }));\n }\n else\n {\n scope = scopeObj[0];\n }\n\n return scope;\n }\n\n /**\n * @inheritdoc\n * \n * Call this manualy for scoped instances until this is fixed https://github.com/angular/angular/issues/28738\n */\n public ngOnDestroy(): void\n {\n this._destroy.next();\n this._destroy.complete();\n this._notificationsChange.complete();\n\n Object.keys(this._scopes).forEach(scopeName =>\n {\n const [scope] = this._scopes[scopeName];\n\n scope.ngOnDestroy();\n });\n }\n\n //######################### protected methods #########################\n\n /**\n * Removes notification from array of notifications\n * @param notification - Notification to be removed\n * @param emitEvent - Indication whether emit event on removal\n */\n protected _remove(notification: Notification, emitEvent: boolean = true): Notifications\n {\n const index = this._notifications.indexOf(notification);\n\n if(index < 0)\n {\n return this;\n }\n\n this._notifications.splice(index, 1);\n\n if(emitEvent)\n {\n this._notificationsChange.next();\n }\n\n // clear timeout\n if(this._options.timeout > 0)\n {\n clearTimeout(this._notificationsTimeouts[index]);\n this._notificationsTimeouts.splice(index, 1);\n }\n\n return this;\n }\n}\n\n/**\n * Default notifications provider\n */\nconst DEFAULT_NOTIFICATIONS: NotificationsProvider =\n{\n provide: NOTIFICATIONS,\n useClass: DefaultNotificationsService\n};\n\n//TODO: add options to notifications factory\n\n/**\n * Factory that creates notifications provider for scope\n */\nconst notificationsFactory = (scopeName: string, token?: Function | Type<any> | InjectionToken<unknown>) =>\n{\n return <NotificationsScopeProvider> [\n {\n provide: NOTIFICATIONS_SCOPE,\n useValue: scopeName\n },\n {\n provide: token ?? NOTIFICATIONS,\n useFactory: (notifications: Notifications) =>\n {\n return notifications.getScope(scopeName);\n },\n deps: [[new SkipSelf(), NOTIFICATIONS]]\n }\n ];\n};\n\nObject.defineProperty(DEFAULT_NOTIFICATIONS, 'scope', \n{\n get()\n {\n const func: NotificationsScopeProviderFactory = (scopeName: string, token?: Function | Type<any> | InjectionToken<unknown>) =>\n {\n return notificationsFactory(scopeName, token);\n };\n\n Object.defineProperty(func, 'random', \n {\n get()\n {\n return notificationsFactory(generateId(6));\n }\n });\n\n return func;\n }\n});\n\nexport {DEFAULT_NOTIFICATIONS};"]}
1
+ {"version":3,"file":"defaultNotifications.service.js","sourceRoot":"","sources":["../../../../src/services/notifications/defaultNotifications.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,QAAQ,EAAE,QAAQ,EAAO,MAAM,eAAe,CAAC;AACnF,OAAO,EAAa,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAa,OAAO,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAEvD,OAAO,EAAC,aAAa,EA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E,EAAE;gBAEzC,OAAO,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;YAC7C,CAAC;YACD,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,aAAa,CAAC,CAAC;SAC1C;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,cAAc,CAAC,qBAAqB,EAAE,OAAO,EACpD;IACI,GAAG;QAEC,MAAM,IAAI,GAAsC,CAAC,SAAiB,EAAE,KAAsD,EAAE,EAAE;YAE1H,OAAO,oBAAoB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC;QAEF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EACpC;YACI,GAAG;gBAEC,OAAO,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/C,CAAC;SACJ,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAC,CAAC;AAEH,OAAO,EAAC,qBAAqB,EAAC,CAAC","sourcesContent":["import {Injectable, InjectionToken, Optional, SkipSelf, Type} from '@angular/core';\nimport {Dictionary, generateId} from '@jscrpt/common';\nimport {Observable, Subject, Subscription} from 'rxjs';\n\nimport {NOTIFICATIONS, NOTIFICATIONS_SCOPE} from '../../types/tokens';\nimport {Notifications, Notification, NotificationSeverity, NotificationsProvider, NotificationsScopeProviderFactory, NotificationsScopeProvider} from './notifications.interface';\nimport {NotificationsOptions} from './notificationsOptions';\n\n/**\n * Default notifications service implementation\n */\n@Injectable()\nexport class DefaultNotificationsService implements Notifications\n{\n //######################### protected fields #########################\n\n /**\n * Array of notifications\n */\n protected _notifications: Notification[] = [];\n\n /**\n * Array of notifications timeouts\n */\n protected _notificationsTimeouts: number[] = [];\n\n /**\n * Subject used for emitting changes of current notifications\n */\n protected _notificationsChange: Subject<void> = new Subject<void>();\n\n /**\n * Subject used for emitting event when instance is being destroyed\n */\n protected _destroy: Subject<void> = new Subject<void>();\n\n /**\n * Array of scoped notifications\n */\n protected _scopes: Dictionary<[Notifications, Subscription]> = {};\n\n //######################### public properties #########################\n\n /**\n * @inheritdoc\n */\n public get notifications(): readonly Notification[]\n {\n return [...this._notifications];\n }\n\n /**\n * @inheritdoc\n */\n public get notificationsChange(): Observable<void>\n {\n return this._notificationsChange.asObservable();\n }\n\n /**\n * @inheritdoc\n */\n public get destroy(): Observable<void>\n {\n return this._destroy.asObservable();\n }\n\n //######################### constructor #########################\n constructor(@Optional() protected _options: NotificationsOptions)\n {\n if(!this._options || !(this._options instanceof NotificationsOptions))\n {\n this._options = new NotificationsOptions();\n }\n }\n\n //######################### public methods - implementation of Notifications #########################\n \n /**\n * @inheritdoc\n */\n public message(message: string, severity: NotificationSeverity, parameter?: Record<string, unknown>): Notifications\n {\n const notification = new Notification(message, severity, parameter);\n \n this._notifications.push(notification);\n this._notificationsChange.next();\n\n // set timeout\n if(this._options.timeout > 0)\n {\n this._notificationsTimeouts.push(setTimeout(() =>\n {\n this.remove(notification);\n }, this._options.timeout) as any);\n }\n\n return this;\n }\n\n /**\n * @inheritdoc\n */\n public default(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Default, parameter);\n }\n\n /**\n * @inheritdoc\n */\n public success(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Success, parameter);\n }\n \n /**\n * @inheritdoc\n */\n public error(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Error, parameter);\n }\n \n /**\n * @inheritdoc\n */\n public info(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Info, parameter);\n }\n \n /**\n * @inheritdoc\n */\n public warning(message: string, parameter?: Record<string, unknown>): Notifications\n {\n return this.message(message, NotificationSeverity.Warning, parameter);\n }\n\n /**\n * @inheritdoc\n */\n public clearNotifications(): Notifications\n {\n while(this._notifications[0])\n {\n this._remove(this._notifications[0], false);\n }\n\n this._notificationsChange.next();\n\n return this;\n }\n\n /**\n * @inheritdoc\n */\n public remove(notification: Notification): Notifications\n {\n return this._remove(notification);\n }\n\n /**\n * @inheritdoc\n */\n public getScope(scopeName: string): Notifications\n {\n const scopeObj = this._scopes[scopeName];\n let scope: Notifications;\n\n // no scope yet\n if(!scopeObj)\n {\n scope = new DefaultNotificationsService(this._options);\n const subscription = new Subscription();\n\n this._scopes[scopeName] = [scope, subscription];\n\n //destroys and removes scope\n subscription.add(scope.destroy.subscribe(() =>\n {\n delete this._scopes[scopeName];\n subscription.unsubscribe();\n }));\n }\n else\n {\n scope = scopeObj[0];\n }\n\n return scope;\n }\n\n /**\n * @inheritdoc\n * \n * Call this manualy for scoped instances until this is fixed https://github.com/angular/angular/issues/28738\n */\n public ngOnDestroy(): void\n {\n this._destroy.next();\n this._destroy.complete();\n this._notificationsChange.complete();\n\n Object.keys(this._scopes).forEach(scopeName =>\n {\n const [scope] = this._scopes[scopeName];\n\n scope.ngOnDestroy();\n });\n }\n\n //######################### protected methods #########################\n\n /**\n * Removes notification from array of notifications\n * @param notification - Notification to be removed\n * @param emitEvent - Indication whether emit event on removal\n */\n protected _remove(notification: Notification, emitEvent: boolean = true): Notifications\n {\n const index = this._notifications.indexOf(notification);\n\n if(index < 0)\n {\n return this;\n }\n\n this._notifications.splice(index, 1);\n\n if(emitEvent)\n {\n this._notificationsChange.next();\n }\n\n // clear timeout\n if(this._options.timeout > 0)\n {\n clearTimeout(this._notificationsTimeouts[index]);\n this._notificationsTimeouts.splice(index, 1);\n }\n\n return this;\n }\n}\n\n/**\n * Default notifications provider\n */\nconst DEFAULT_NOTIFICATIONS: NotificationsProvider =\n{\n provide: NOTIFICATIONS,\n useClass: DefaultNotificationsService\n};\n\n//TODO: add options to notifications factory\n\n/**\n * Factory that creates notifications provider for scope\n */\nconst notificationsFactory = (scopeName: string, token?: Function | Type<any> | InjectionToken<unknown>) =>\n{\n return <NotificationsScopeProvider> [\n {\n provide: NOTIFICATIONS_SCOPE,\n useValue: scopeName\n },\n {\n provide: token ?? NOTIFICATIONS,\n useFactory: (notifications: Notifications) =>\n {\n return notifications.getScope(scopeName);\n },\n deps: [[new SkipSelf(), NOTIFICATIONS]]\n }\n ];\n};\n\nObject.defineProperty(DEFAULT_NOTIFICATIONS, 'scope', \n{\n get()\n {\n const func: NotificationsScopeProviderFactory = (scopeName: string, token?: Function | Type<any> | InjectionToken<unknown>) =>\n {\n return notificationsFactory(scopeName, token);\n };\n\n Object.defineProperty(func, 'random', \n {\n get()\n {\n return notificationsFactory(generateId(6));\n }\n });\n\n return func;\n }\n});\n\nexport {DEFAULT_NOTIFICATIONS};"]}
@@ -1,4 +1,3 @@
1
- var CookiePermanentStorage_1;
2
1
  import { __decorate, __metadata } from "tslib";
3
2
  import { Injectable, forwardRef } from '@angular/core';
4
3
  import { CookieService } from '../cookies/cookies.service';
@@ -9,7 +8,7 @@ import * as i1 from "../cookies/cookies.service";
9
8
  /**
10
9
  * Implementation of permanent storage using cookies
11
10
  */
12
- let CookiePermanentStorage = CookiePermanentStorage_1 = class CookiePermanentStorage {
11
+ let CookiePermanentStorage = class CookiePermanentStorage {
13
12
  _cookies;
14
13
  //######################### constructor #########################
15
14
  constructor(_cookies) {
@@ -39,15 +38,15 @@ let CookiePermanentStorage = CookiePermanentStorage_1 = class CookiePermanentSto
39
38
  remove(name) {
40
39
  this._cookies.deleteCookie(name, '/');
41
40
  }
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookiePermanentStorage, deps: [{ token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
43
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookiePermanentStorage });
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CookiePermanentStorage, deps: [{ token: i1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
42
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CookiePermanentStorage });
44
43
  };
45
- CookiePermanentStorage = CookiePermanentStorage_1 = __decorate([
46
- TypeProvider({ provide: PERMANENT_STORAGE, useClass: forwardRef(() => CookiePermanentStorage_1) }),
44
+ CookiePermanentStorage = __decorate([
45
+ TypeProvider({ provide: PERMANENT_STORAGE, useClass: forwardRef(() => CookiePermanentStorage) }),
47
46
  __metadata("design:paramtypes", [CookieService])
48
47
  ], CookiePermanentStorage);
49
48
  export { CookiePermanentStorage };
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookiePermanentStorage, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: CookiePermanentStorage, decorators: [{
51
50
  type: Injectable
52
- }], ctorParameters: function () { return [{ type: i1.CookieService }]; } });
51
+ }], ctorParameters: () => [{ type: i1.CookieService }] });
53
52
  //# sourceMappingURL=cookiePermanentStorage.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cookiePermanentStorage.service.js","sourceRoot":"","sources":["../../../../src/services/permanentStorage/cookiePermanentStorage.service.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAGrD,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;;;AAE9C;;GAEG;AACH,IAEa,sBAAsB,8BAFnC,MAEa,sBAAsB;IAGX;IADpB,iEAAiE;IACjE,YAAoB,QAAuB;QAAvB,aAAQ,GAAR,QAAQ,CAAe;IAE3C,CAAC;IAED,2GAA2G;IAE3G;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAiBD;;;;;OAKG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU,EAAE,OAAc;QAE/C,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;uGAnDQ,sBAAsB;2GAAtB,sBAAsB;;AAAtB,sBAAsB;IADlC,YAAY,CAAC,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,wBAAsB,CAAC,EAAC,CAAC;qCAI7D,aAAa;GAHlC,sBAAsB,CAoDlC;SApDY,sBAAsB;2FAAtB,sBAAsB;kBAFlC,UAAU","sourcesContent":["import {Injectable, forwardRef} from '@angular/core';\n\nimport {PermanentStorage} from './permanentStorage.interface';\nimport {CookieService} from '../cookies/cookies.service';\nimport {PERMANENT_STORAGE} from '../../types/tokens';\nimport {TypeProvider} from '../../decorators';\n\n/**\n * Implementation of permanent storage using cookies\n */\n@Injectable()\n@TypeProvider({provide: PERMANENT_STORAGE, useClass: forwardRef(() => CookiePermanentStorage)})\nexport class CookiePermanentStorage implements PermanentStorage\n{\n //######################### constructor #########################\n constructor(private _cookies: CookieService)\n {\n }\n\n //######################### public methods - implementation of StringLocalization #########################\n\n /**\n * Gets value that was stored with 'name' from permanent storage\n * @param name - Name with which was value stored\n */\n public get<TResult>(name: string): TResult\n {\n return this._cookies.getCookie(name);\n }\n\n /**\n * Sets value that will be stored with 'name'e in permanent storage\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n */\n public set(name: string, value: any): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires: Date): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires?: Date): void\n {\n this._cookies.setCookie(name, value, expires ? expires.valueOf() : null, '/');\n }\n\n /**\n * Removes value stored with 'name' from permanent storage\n * @param name - Name of stored value that will be removed\n */\n public remove(name: string): void\n {\n this._cookies.deleteCookie(name, '/');\n }\n}\n"]}
1
+ {"version":3,"file":"cookiePermanentStorage.service.js","sourceRoot":"","sources":["../../../../src/services/permanentStorage/cookiePermanentStorage.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAGrD,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;;;AAE9C;;GAEG;AAGI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAGX;IADpB,iEAAiE;IACjE,YAAoB,QAAuB;QAAvB,aAAQ,GAAR,QAAQ,CAAe;IAE3C,CAAC;IAED,2GAA2G;IAE3G;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAiBD;;;;;OAKG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU,EAAE,OAAc;QAE/C,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;uGAnDQ,sBAAsB;2GAAtB,sBAAsB;;AAAtB,sBAAsB;IADlC,YAAY,CAAC,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,EAAC,CAAC;qCAI7D,aAAa;GAHlC,sBAAsB,CAoDlC;;2FApDY,sBAAsB;kBAFlC,UAAU","sourcesContent":["import {Injectable, forwardRef} from '@angular/core';\n\nimport {PermanentStorage} from './permanentStorage.interface';\nimport {CookieService} from '../cookies/cookies.service';\nimport {PERMANENT_STORAGE} from '../../types/tokens';\nimport {TypeProvider} from '../../decorators';\n\n/**\n * Implementation of permanent storage using cookies\n */\n@Injectable()\n@TypeProvider({provide: PERMANENT_STORAGE, useClass: forwardRef(() => CookiePermanentStorage)})\nexport class CookiePermanentStorage implements PermanentStorage\n{\n //######################### constructor #########################\n constructor(private _cookies: CookieService)\n {\n }\n\n //######################### public methods - implementation of StringLocalization #########################\n\n /**\n * Gets value that was stored with 'name' from permanent storage\n * @param name - Name with which was value stored\n */\n public get<TResult>(name: string): TResult\n {\n return this._cookies.getCookie(name);\n }\n\n /**\n * Sets value that will be stored with 'name'e in permanent storage\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n */\n public set(name: string, value: any): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires: Date): void;\n\n /**\n * Sets value that will be stored with 'name' in permanent storage until expiration date\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n * @param expires - Time when value should expire\n */\n public set(name: string, value: any, expires?: Date): void\n {\n this._cookies.setCookie(name, value, expires ? expires.valueOf() : null, '/');\n }\n\n /**\n * Removes value stored with 'name' from permanent storage\n * @param name - Name of stored value that will be removed\n */\n public remove(name: string): void\n {\n this._cookies.deleteCookie(name, '/');\n }\n}\n"]}
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
3
3
  /**
4
4
  * Service used for transfering http status code for response
5
5
  */
6
- class StatusCodeService {
6
+ export class StatusCodeService {
7
7
  //######################### private fields #########################
8
8
  /**
9
9
  * Current status code
@@ -24,11 +24,10 @@ class StatusCodeService {
24
24
  setStatusCode(code) {
25
25
  this._statusCode = code;
26
26
  }
27
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StatusCodeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
28
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StatusCodeService, providedIn: 'root' });
27
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: StatusCodeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
28
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: StatusCodeService, providedIn: 'root' });
29
29
  }
30
- export { StatusCodeService };
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: StatusCodeService, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: StatusCodeService, decorators: [{
32
31
  type: Injectable,
33
32
  args: [{ providedIn: 'root' }]
34
33
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"statusCode.service.js","sourceRoot":"","sources":["../../../../src/services/statusCode/statusCode.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;;AAEzC;;GAEG;AACH,MACa,iBAAiB;IAE1B,oEAAoE;IAEpE;;OAEG;IACK,WAAW,CAAU;IAE7B,uEAAuE;IAEvE;;OAEG;IACH,IAAW,UAAU;QAEjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,aAAa,CAAC,IAAa;QAE9B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC5B,CAAC;uGA5BQ,iBAAiB;2GAAjB,iBAAiB,cADL,MAAM;;SAClB,iBAAiB;2FAAjB,iBAAiB;kBAD7B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable} from '@angular/core';\n\n/**\n * Service used for transfering http status code for response\n */\n@Injectable({providedIn: 'root'})\nexport class StatusCodeService\n{\n //######################### private fields #########################\n \n /**\n * Current status code\n */\n private _statusCode?: number;\n\n //######################### public properties #########################\n\n /**\n * Gets current status code\n */\n public get statusCode(): number | null | undefined\n {\n return this._statusCode;\n }\n\n //######################### public methods #########################\n\n /**\n * Sets current status code\n * @param code - Status code value that will be set\n */\n public setStatusCode(code?: number): void\n {\n this._statusCode = code;\n }\n}"]}
1
+ {"version":3,"file":"statusCode.service.js","sourceRoot":"","sources":["../../../../src/services/statusCode/statusCode.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;;AAEzC;;GAEG;AAEH,MAAM,OAAO,iBAAiB;IAE1B,oEAAoE;IAEpE;;OAEG;IACK,WAAW,CAAU;IAE7B,uEAAuE;IAEvE;;OAEG;IACH,IAAW,UAAU;QAEjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,aAAa,CAAC,IAAa;QAE9B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC5B,CAAC;uGA5BQ,iBAAiB;2GAAjB,iBAAiB,cADL,MAAM;;2FAClB,iBAAiB;kBAD7B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable} from '@angular/core';\n\n/**\n * Service used for transfering http status code for response\n */\n@Injectable({providedIn: 'root'})\nexport class StatusCodeService\n{\n //######################### private fields #########################\n \n /**\n * Current status code\n */\n private _statusCode?: number;\n\n //######################### public properties #########################\n\n /**\n * Gets current status code\n */\n public get statusCode(): number | null | undefined\n {\n return this._statusCode;\n }\n\n //######################### public methods #########################\n\n /**\n * Sets current status code\n * @param code - Status code value that will be set\n */\n public setStatusCode(code?: number): void\n {\n this._statusCode = code;\n }\n}"]}
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Default implementation of StringLocalization, which uses 'key' as localization text
7
7
  */
8
- class NoStringLocalization {
8
+ export class NoStringLocalization {
9
9
  //######################### private fields #########################
10
10
  /**
11
11
  * Subject used for emitting when indication that locale has changes and strings should be obtained again, because they have changed
@@ -30,11 +30,10 @@ class NoStringLocalization {
30
30
  }
31
31
  return formatString(key, interpolateParams);
32
32
  }
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NoStringLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
34
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NoStringLocalization });
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: NoStringLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
34
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: NoStringLocalization });
35
35
  }
36
- export { NoStringLocalization };
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NoStringLocalization, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: NoStringLocalization, decorators: [{
38
37
  type: Injectable
39
38
  }] });
40
39
  //# sourceMappingURL=noStringLocalization.service.js.map