@anglr/common 17.0.0-beta.20230711095959 → 17.0.0-beta.20230815112307

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 (176) hide show
  1. package/changelog.md +89 -3
  2. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js +15 -2
  3. package/es2022/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
  4. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +1 -1
  5. package/es2022/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
  6. package/es2022/numeral/src/modules/numeral.module.js +4 -4
  7. package/es2022/numeral/src/modules/numeral.module.js.map +1 -1
  8. package/es2022/numeral/src/pipes/numeral.pipe.js +6 -6
  9. package/es2022/numeral/src/pipes/numeral.pipe.js.map +1 -1
  10. package/es2022/src/{modules/clickOutside/directives → directives}/clickOutside/clickOutside.directive.js +29 -22
  11. package/es2022/src/directives/clickOutside/clickOutside.directive.js.map +1 -0
  12. package/es2022/src/{modules/goBack/directives → directives}/goBack/goBack.directive.js +7 -6
  13. package/es2022/src/directives/goBack/goBack.directive.js.map +1 -0
  14. package/es2022/src/{modules/position/directives → directives}/positionTo/positionTo.directive.js +9 -8
  15. package/es2022/src/directives/positionTo/positionTo.directive.js.map +1 -0
  16. package/es2022/src/index.js +6 -5
  17. package/es2022/src/index.js.map +1 -1
  18. package/es2022/src/modules/commonUtils.module.js +21 -21
  19. package/es2022/src/modules/commonUtils.module.js.map +1 -1
  20. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js +15 -15
  21. package/es2022/src/modules/tooltip/components/tooltip/tooltip.component.js.map +1 -1
  22. package/es2022/src/pipes/isNaN/isNaN.pipe.js +7 -6
  23. package/es2022/src/pipes/isNaN/isNaN.pipe.js.map +1 -1
  24. package/es2022/src/pipes/isPresent/isPresent.pipe.js +7 -6
  25. package/es2022/src/pipes/isPresent/isPresent.pipe.js.map +1 -1
  26. package/es2022/src/pipes/keys/keys.pipe.js +6 -6
  27. package/es2022/src/pipes/keys/keys.pipe.js.map +1 -1
  28. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js +6 -6
  29. package/es2022/src/pipes/mergeCssClasses/mergeCssClasses.pipe.js.map +1 -1
  30. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js +6 -6
  31. package/es2022/src/pipes/urlEncode/urlEncode.pipe.js.map +1 -1
  32. package/es2022/src/services/logger/logger.interface.js.map +1 -1
  33. package/es2022/src/services/notifications/defaultNotifications.service.js +12 -12
  34. package/es2022/src/services/notifications/defaultNotifications.service.js.map +1 -1
  35. package/es2022/src/services/notifications/notifications.interface.js +10 -1
  36. package/es2022/src/services/notifications/notifications.interface.js.map +1 -1
  37. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js +22 -0
  38. package/es2022/src/services/permanentStorage/cookiePermanentStorage.service.js.map +1 -1
  39. package/es2022/src/services/permanentStorage/permanentStorage.interface.js.map +1 -1
  40. package/es2022/src/services/position/position.interface.js.map +1 -1
  41. package/es2022/src/services/stringLocalization/noStringLocalization.service.js +2 -4
  42. package/es2022/src/services/stringLocalization/noStringLocalization.service.js.map +1 -1
  43. package/es2022/src/services/stringLocalization/stringLocalization.interface.js.map +1 -1
  44. package/es2022/src/services/temporaryStorage/temporaryStorage.interface.js.map +1 -1
  45. package/es2022/src/types/providerDecoratedType.js +32 -0
  46. package/es2022/src/types/providerDecoratedType.js.map +1 -0
  47. package/es2022/src/types/providers.js +48 -0
  48. package/es2022/src/types/providers.js.map +1 -0
  49. package/es2022/store/src/index.js +1 -1
  50. package/es2022/store/src/index.js.map +1 -1
  51. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js +21 -1
  52. package/es2022/store/src/services/permanentStorage/localPermanentStorage.service.js.map +1 -1
  53. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js +21 -0
  54. package/es2022/store/src/services/temporaryStorage/sessionTemporaryStorage.service.js.map +1 -1
  55. package/es2022/structured-log/src/components/console/console.component.js +2 -2
  56. package/es2022/structured-log/src/components/console/console.component.js.map +1 -1
  57. package/es2022/structured-log/src/index.js +1 -0
  58. package/es2022/structured-log/src/index.js.map +1 -1
  59. package/es2022/structured-log/src/misc/providers.js +12 -0
  60. package/es2022/structured-log/src/misc/providers.js.map +1 -0
  61. package/es2022/structured-log/src/modules/consoleLog.module.js +0 -15
  62. package/es2022/structured-log/src/modules/consoleLog.module.js.map +1 -1
  63. package/es2022/structured-log/src/services/logger.service.js +21 -0
  64. package/es2022/structured-log/src/services/logger.service.js.map +1 -1
  65. package/es2022/structured-log/src/types/tokens.js +0 -9
  66. package/es2022/structured-log/src/types/tokens.js.map +1 -1
  67. package/floating-ui/src/services/floatingUiDomPosition.service.d.ts +3 -4
  68. package/floating-ui/src/services/floatingUiDomPosition.service.d.ts.map +1 -1
  69. package/numeral/src/modules/numeral.module.d.ts +1 -1
  70. package/numeral/src/pipes/numeral.pipe.d.ts +3 -3
  71. package/numeral/src/pipes/numeral.pipe.d.ts.map +1 -1
  72. package/package.json +3 -3
  73. package/src/directives/clickOutside/clickOutside.directive.d.ts +48 -0
  74. package/src/directives/clickOutside/clickOutside.directive.d.ts.map +1 -0
  75. package/src/{modules/goBack/directives → directives}/goBack/goBack.directive.d.ts +3 -3
  76. package/src/directives/goBack/goBack.directive.d.ts.map +1 -0
  77. package/src/{modules/position/directives → directives}/positionTo/positionTo.directive.d.ts +4 -4
  78. package/src/{modules/position/directives → directives}/positionTo/positionTo.directive.d.ts.map +1 -1
  79. package/src/index.d.ts +9 -8
  80. package/src/index.d.ts.map +1 -1
  81. package/src/modules/commonUtils.module.d.ts +1 -1
  82. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +10 -9
  83. package/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +1 -1
  84. package/src/pipes/isNaN/isNaN.pipe.d.ts +3 -3
  85. package/src/pipes/isNaN/isNaN.pipe.d.ts.map +1 -1
  86. package/src/pipes/isPresent/isPresent.pipe.d.ts +4 -4
  87. package/src/pipes/isPresent/isPresent.pipe.d.ts.map +1 -1
  88. package/src/pipes/keys/keys.pipe.d.ts +3 -3
  89. package/src/pipes/keys/keys.pipe.d.ts.map +1 -1
  90. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts +3 -3
  91. package/src/pipes/mergeCssClasses/mergeCssClasses.pipe.d.ts.map +1 -1
  92. package/src/pipes/urlEncode/urlEncode.pipe.d.ts +3 -3
  93. package/src/pipes/urlEncode/urlEncode.pipe.d.ts.map +1 -1
  94. package/src/services/logger/logger.interface.d.ts +6 -0
  95. package/src/services/logger/logger.interface.d.ts.map +1 -1
  96. package/src/services/notifications/defaultNotifications.service.d.ts +6 -6
  97. package/src/services/notifications/defaultNotifications.service.d.ts.map +1 -1
  98. package/src/services/notifications/notifications.interface.d.ts +19 -7
  99. package/src/services/notifications/notifications.interface.d.ts.map +1 -1
  100. package/src/services/permanentStorage/cookiePermanentStorage.service.d.ts +5 -1
  101. package/src/services/permanentStorage/cookiePermanentStorage.service.d.ts.map +1 -1
  102. package/src/services/permanentStorage/permanentStorage.interface.d.ts +6 -0
  103. package/src/services/permanentStorage/permanentStorage.interface.d.ts.map +1 -1
  104. package/src/services/position/position.interface.d.ts +6 -0
  105. package/src/services/position/position.interface.d.ts.map +1 -1
  106. package/src/services/stringLocalization/noStringLocalization.service.d.ts +1 -2
  107. package/src/services/stringLocalization/noStringLocalization.service.d.ts.map +1 -1
  108. package/src/services/stringLocalization/stringLocalization.interface.d.ts +6 -0
  109. package/src/services/stringLocalization/stringLocalization.interface.d.ts.map +1 -1
  110. package/src/services/temporaryStorage/temporaryStorage.interface.d.ts +6 -0
  111. package/src/services/temporaryStorage/temporaryStorage.interface.d.ts.map +1 -1
  112. package/src/types/providerDecoratedType.d.ts +12 -0
  113. package/src/types/providerDecoratedType.d.ts.map +1 -0
  114. package/src/types/providers.d.ts +32 -0
  115. package/src/types/providers.d.ts.map +1 -0
  116. package/store/src/index.d.ts +1 -1
  117. package/store/src/index.d.ts.map +1 -1
  118. package/store/src/services/permanentStorage/localPermanentStorage.service.d.ts +5 -1
  119. package/store/src/services/permanentStorage/localPermanentStorage.service.d.ts.map +1 -1
  120. package/store/src/services/temporaryStorage/sessionTemporaryStorage.service.d.ts +5 -1
  121. package/store/src/services/temporaryStorage/sessionTemporaryStorage.service.d.ts.map +1 -1
  122. package/structured-log/src/components/console/console.component.d.ts.map +1 -1
  123. package/structured-log/src/components/console/console.component.html +1 -1
  124. package/structured-log/src/index.d.ts +1 -0
  125. package/structured-log/src/index.d.ts.map +1 -1
  126. package/structured-log/src/misc/providers.d.ts +6 -0
  127. package/structured-log/src/misc/providers.d.ts.map +1 -0
  128. package/structured-log/src/modules/consoleLog.module.d.ts +0 -5
  129. package/structured-log/src/modules/consoleLog.module.d.ts.map +1 -1
  130. package/structured-log/src/services/logger.service.d.ts +5 -1
  131. package/structured-log/src/services/logger.service.d.ts.map +1 -1
  132. package/structured-log/src/types/tokens.d.ts +0 -4
  133. package/structured-log/src/types/tokens.d.ts.map +1 -1
  134. package/version.bak +1 -1
  135. package/es2022/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.js.map +0 -1
  136. package/es2022/src/modules/clickOutside/modules/clickOutside.module.js +0 -25
  137. package/es2022/src/modules/clickOutside/modules/clickOutside.module.js.map +0 -1
  138. package/es2022/src/modules/goBack/directives/goBack/goBack.directive.js.map +0 -1
  139. package/es2022/src/modules/goBack/directives/index.js +0 -2
  140. package/es2022/src/modules/goBack/directives/index.js.map +0 -1
  141. package/es2022/src/modules/goBack/index.js +0 -3
  142. package/es2022/src/modules/goBack/index.js.map +0 -1
  143. package/es2022/src/modules/goBack/modules/goBack.module.js +0 -24
  144. package/es2022/src/modules/goBack/modules/goBack.module.js.map +0 -1
  145. package/es2022/src/modules/goBack/modules/index.js +0 -2
  146. package/es2022/src/modules/goBack/modules/index.js.map +0 -1
  147. package/es2022/src/modules/position/directives/index.js +0 -2
  148. package/es2022/src/modules/position/directives/index.js.map +0 -1
  149. package/es2022/src/modules/position/directives/positionTo/positionTo.directive.js.map +0 -1
  150. package/es2022/src/modules/position/index.js +0 -3
  151. package/es2022/src/modules/position/index.js.map +0 -1
  152. package/es2022/src/modules/position/modules/index.js +0 -2
  153. package/es2022/src/modules/position/modules/index.js.map +0 -1
  154. package/es2022/src/modules/position/modules/position.module.js +0 -25
  155. package/es2022/src/modules/position/modules/position.module.js.map +0 -1
  156. package/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.d.ts +0 -47
  157. package/src/modules/clickOutside/directives/clickOutside/clickOutside.directive.d.ts.map +0 -1
  158. package/src/modules/clickOutside/modules/clickOutside.module.d.ts +0 -11
  159. package/src/modules/clickOutside/modules/clickOutside.module.d.ts.map +0 -1
  160. package/src/modules/goBack/directives/goBack/goBack.directive.d.ts.map +0 -1
  161. package/src/modules/goBack/directives/index.d.ts +0 -2
  162. package/src/modules/goBack/directives/index.d.ts.map +0 -1
  163. package/src/modules/goBack/index.d.ts +0 -3
  164. package/src/modules/goBack/index.d.ts.map +0 -1
  165. package/src/modules/goBack/modules/goBack.module.d.ts +0 -11
  166. package/src/modules/goBack/modules/goBack.module.d.ts.map +0 -1
  167. package/src/modules/goBack/modules/index.d.ts +0 -2
  168. package/src/modules/goBack/modules/index.d.ts.map +0 -1
  169. package/src/modules/position/directives/index.d.ts +0 -2
  170. package/src/modules/position/directives/index.d.ts.map +0 -1
  171. package/src/modules/position/index.d.ts +0 -3
  172. package/src/modules/position/index.d.ts.map +0 -1
  173. package/src/modules/position/modules/index.d.ts +0 -2
  174. package/src/modules/position/modules/index.d.ts.map +0 -1
  175. package/src/modules/position/modules/position.module.d.ts +0 -11
  176. package/src/modules/position/modules/position.module.d.ts.map +0 -1
@@ -31,6 +31,7 @@ export var NotificationSeverity;
31
31
  export class Notification {
32
32
  _message;
33
33
  _severity;
34
+ _parameter;
34
35
  /**
35
36
  * Gets message that this notification represents
36
37
  */
@@ -43,15 +44,23 @@ export class Notification {
43
44
  get severity() {
44
45
  return this._severity;
45
46
  }
47
+ /**
48
+ * Gets object that is used for formatting notification message
49
+ */
50
+ get parameter() {
51
+ return this._parameter;
52
+ }
46
53
  //######################### constructor #########################
47
54
  /**
48
55
  * Creates instance of `Notification`
49
56
  * @param _message - Message that this notification represents
50
57
  * @param _severity - Severity of notification message
58
+ * @param _parameter - Object that is used for formatting notification message
51
59
  */
52
- constructor(_message, _severity) {
60
+ constructor(_message, _severity, _parameter) {
53
61
  this._message = _message;
54
62
  this._severity = _severity;
63
+ this._parameter = _parameter;
55
64
  }
56
65
  }
57
66
  //# sourceMappingURL=notifications.interface.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.interface.js","sourceRoot":"","sources":["../../../../src/services/notifications/notifications.interface.ts"],"names":[],"mappings":"AAGA,0CAA0C;AAE1C;;GAEG;AACH,MAAM,CAAN,IAAY,oBA0BX;AA1BD,WAAY,oBAAoB;IAE5B;;OAEG;IACH,qEAAO,CAAA;IAEP;;OAEG;IACH,+DAAI,CAAA;IAEJ;;OAEG;IACH,qEAAO,CAAA;IAEP;;OAEG;IACH,qEAAO,CAAA;IAEP;;OAEG;IACH,iEAAK,CAAA;AACT,CAAC,EA1BW,oBAAoB,KAApB,oBAAoB,QA0B/B;AAED;;GAEG;AACH,MAAM,OAAO,YAAY;IAyBD;IACA;IAxBpB;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAW,QAAQ;QAEf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED,iEAAiE;IAEjE;;;;OAIG;IACH,YAAoB,QAAgB,EAChB,SAA+B;QAD/B,aAAQ,GAAR,QAAQ,CAAQ;QAChB,cAAS,GAAT,SAAS,CAAsB;IAEnD,CAAC;CACJ","sourcesContent":["import {ClassProvider, FactoryProvider, InjectionToken, Type, ValueProvider} from '@angular/core';\nimport {Observable} from 'rxjs';\n\n//TODO: allow changing and merging options\n\n/**\n * Severity of notification message\n */\nexport enum NotificationSeverity\n{\n /**\n * Default severity of message, no special meaning\n */\n Default,\n\n /**\n * Information severity of message\n */\n Info,\n\n /**\n * Success severity of message\n */\n Success,\n\n /**\n * Warning severity of message\n */\n Warning,\n\n /**\n * Error severity of message\n */\n Error\n}\n\n/**\n * Instance of notification that is being displayed\n */\nexport class Notification\n{\n /**\n * Gets message that this notification represents\n */\n public get message(): string\n {\n return this._message;\n }\n\n /**\n * Gets severity of notification message\n */\n public get severity(): NotificationSeverity\n {\n return this._severity;\n }\n\n //######################### constructor #########################\n \n /**\n * Creates instance of `Notification`\n * @param _message - Message that this notification represents\n * @param _severity - Severity of notification message\n */\n constructor(private _message: string,\n private _severity: NotificationSeverity)\n {\n }\n}\n\n/**\n * Manages currently displayed notifications\n */\nexport interface Notifications\n{\n //######################### properties #########################\n\n /**\n * Gets array of notifications\n */\n readonly notifications: readonly Notification[];\n\n /**\n * Gets observable that emits changes of current notifications\n */\n readonly notificationsChange: Observable<void>;\n\n /**\n * Gets observable that emits event when instance is being destroyed\n */\n readonly destroy: Observable<void>;\n\n //######################### methods #########################\n \n /**\n * Displays message with specified severity\n * @param message - Message to be displayed\n * @param severity - Severity of displayed notification\n */\n message(message: string, severity: NotificationSeverity): Notifications;\n\n /**\n * Displays default notification\n * @param message - Message to be displayed\n */\n default(message: string): Notifications;\n\n /**\n * Displays success notification\n * @param message - Message to be displayed\n */\n success(message: string): Notifications;\n \n /**\n * Displays error notification\n * @param message - Message to be displayed\n */\n error(message: string): Notifications;\n \n /**\n * Displays info notification\n * @param message - Message to be displayed\n */\n info(message: string): Notifications;\n \n /**\n * Displays warning notification\n * @param message - Message to be displayed\n */\n warning(message: string): Notifications;\n\n /**\n * Clears all displayed notifications\n */\n clearNotifications(): Notifications;\n\n /**\n * Removes notification\n * @param notification - Notification to be removed\n */\n remove(notification: Notification): Notifications;\n\n /**\n * Gets scoped instance of `Notifications`\n * @param scopeName - Name of scope to be returned\n */\n getScope(scopeName: string): Notifications;\n\n /**\n * Destroys service and clears all used resources\n */\n ngOnDestroy(): void;\n}\n\n/**\n * Tuple that will hold notification provider and notifications scope provider\n */\nexport type NotificationsScopeProvider = [ValueProvider, FactoryProvider];\n\n/**\n * Factory for creating `NotificationsScopeProvider`\n */\nexport interface NotificationsScopeProviderFactory\n{\n /**\n * Creates `NotificationsScopeProvider` with specified `scopeName`\n * @param scopeName - Name of scope to be created\n * @param token - Custom token that can be used for injecting Notifications under custom provider\n */\n (scopeName: string, token?: Function | Type<any> | InjectionToken<unknown>): NotificationsScopeProvider;\n\n /**\n * Creates `NotificationsScopeProvider` with random scope name\n */\n random?: NotificationsScopeProvider;\n}\n\n/**\n * Notifications provider that allows to create scoped notifications provider\n */\nexport interface NotificationsProvider extends ClassProvider\n{\n /**\n * Gets scoped providers\n */\n scope?: NotificationsScopeProviderFactory;\n}"]}
1
+ {"version":3,"file":"notifications.interface.js","sourceRoot":"","sources":["../../../../src/services/notifications/notifications.interface.ts"],"names":[],"mappings":"AAGA,0CAA0C;AAE1C;;GAEG;AACH,MAAM,CAAN,IAAY,oBA0BX;AA1BD,WAAY,oBAAoB;IAE5B;;OAEG;IACH,qEAAO,CAAA;IAEP;;OAEG;IACH,+DAAI,CAAA;IAEJ;;OAEG;IACH,qEAAO,CAAA;IAEP;;OAEG;IACH,qEAAO,CAAA;IAEP;;OAEG;IACH,iEAAK,CAAA;AACT,CAAC,EA1BW,oBAAoB,KAApB,oBAAoB,QA0B/B;AAED;;GAEG;AACH,MAAM,OAAO,YAAY;IAkCD;IACA;IACA;IAlCpB;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAW,QAAQ;QAEf,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,IAAW,SAAS;QAEhB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,iEAAiE;IAEjE;;;;;OAKG;IACH,YAAoB,QAAgB,EAChB,SAA+B,EAC/B,UAAoC;QAFpC,aAAQ,GAAR,QAAQ,CAAQ;QAChB,cAAS,GAAT,SAAS,CAAsB;QAC/B,eAAU,GAAV,UAAU,CAA0B;IAExD,CAAC;CACJ","sourcesContent":["import {ClassProvider, FactoryProvider, InjectionToken, Type, ValueProvider} from '@angular/core';\nimport {Observable} from 'rxjs';\n\n//TODO: allow changing and merging options\n\n/**\n * Severity of notification message\n */\nexport enum NotificationSeverity\n{\n /**\n * Default severity of message, no special meaning\n */\n Default,\n\n /**\n * Information severity of message\n */\n Info,\n\n /**\n * Success severity of message\n */\n Success,\n\n /**\n * Warning severity of message\n */\n Warning,\n\n /**\n * Error severity of message\n */\n Error\n}\n\n/**\n * Instance of notification that is being displayed\n */\nexport class Notification\n{\n /**\n * Gets message that this notification represents\n */\n public get message(): string\n {\n return this._message;\n }\n\n /**\n * Gets severity of notification message\n */\n public get severity(): NotificationSeverity\n {\n return this._severity;\n }\n\n /**\n * Gets object that is used for formatting notification message\n */\n public get parameter(): Record<string, unknown>|undefined\n {\n return this._parameter;\n }\n\n //######################### constructor #########################\n \n /**\n * Creates instance of `Notification`\n * @param _message - Message that this notification represents\n * @param _severity - Severity of notification message\n * @param _parameter - Object that is used for formatting notification message\n */\n constructor(private _message: string,\n private _severity: NotificationSeverity,\n private _parameter?: Record<string, unknown>)\n {\n }\n}\n\n/**\n * Manages currently displayed notifications\n */\nexport interface Notifications\n{\n //######################### properties #########################\n\n /**\n * Gets array of notifications\n */\n readonly notifications: readonly Notification[];\n\n /**\n * Gets observable that emits changes of current notifications\n */\n readonly notificationsChange: Observable<void>;\n\n /**\n * Gets observable that emits event when instance is being destroyed\n */\n readonly destroy: Observable<void>;\n\n //######################### methods #########################\n \n /**\n * Displays message with specified severity\n * @param message - Message to be displayed\n * @param severity - Severity of displayed notification\n * @param parameter - Object that is used for formatting notification message\n */\n message(message: string, severity: NotificationSeverity, parameter?: Record<string, unknown>): Notifications;\n\n /**\n * Displays default notification\n * @param message - Message to be displayed\n * @param parameter - Object that is used for formatting notification message\n */\n default(message: string, parameter?: Record<string, unknown>): Notifications;\n\n /**\n * Displays success notification\n * @param message - Message to be displayed\n * @param parameter - Object that is used for formatting notification message\n */\n success(message: string, parameter?: Record<string, unknown>): Notifications;\n \n /**\n * Displays error notification\n * @param message - Message to be displayed\n * @param parameter - Object that is used for formatting notification message\n */\n error(message: string, parameter?: Record<string, unknown>): Notifications;\n \n /**\n * Displays info notification\n * @param message - Message to be displayed\n * @param parameter - Object that is used for formatting notification message\n */\n info(message: string, parameter?: Record<string, unknown>): Notifications;\n \n /**\n * Displays warning notification\n * @param message - Message to be displayed\n * @param parameter - Object that is used for formatting notification message\n */\n warning(message: string, parameter?: Record<string, unknown>): Notifications;\n\n /**\n * Clears all displayed notifications\n */\n clearNotifications(): Notifications;\n\n /**\n * Removes notification\n * @param notification - Notification to be removed\n */\n remove(notification: Notification): Notifications;\n\n /**\n * Gets scoped instance of `Notifications`\n * @param scopeName - Name of scope to be returned\n */\n getScope(scopeName: string): Notifications;\n\n /**\n * Destroys service and clears all used resources\n */\n ngOnDestroy(): void;\n}\n\n/**\n * Tuple that will hold notification provider and notifications scope provider\n */\nexport type NotificationsScopeProvider = [ValueProvider, FactoryProvider];\n\n/**\n * Factory for creating `NotificationsScopeProvider`\n */\nexport interface NotificationsScopeProviderFactory\n{\n /**\n * Creates `NotificationsScopeProvider` with specified `scopeName`\n * @param scopeName - Name of scope to be created\n * @param token - Custom token that can be used for injecting Notifications under custom provider\n */\n (scopeName: string, token?: Function | Type<any> | InjectionToken<unknown>): NotificationsScopeProvider;\n\n /**\n * Creates `NotificationsScopeProvider` with random scope name\n */\n random?: NotificationsScopeProvider;\n}\n\n/**\n * Notifications provider that allows to create scoped notifications provider\n */\nexport interface NotificationsProvider extends ClassProvider\n{\n /**\n * Gets scoped providers\n */\n scope?: NotificationsScopeProviderFactory;\n}"]}
@@ -1,5 +1,8 @@
1
+ import { __decorate } from "tslib";
1
2
  import { Injectable } from '@angular/core';
2
3
  import { CookieService } from '../cookies/cookies.service';
4
+ import { PERMANENT_STORAGE } from '../../types/tokens';
5
+ import { TypeProvider } from '../../types/providerDecoratedType';
3
6
  import * as i0 from "@angular/core";
4
7
  import * as i1 from "../cookies/cookies.service";
5
8
  /**
@@ -42,4 +45,23 @@ export { CookiePermanentStorageService };
42
45
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CookiePermanentStorageService, decorators: [{
43
46
  type: Injectable
44
47
  }], ctorParameters: function () { return [{ type: i1.CookieService }]; } });
48
+ /**
49
+ * Provider for permanent storage that is using cookie storage implementation
50
+ */
51
+ const COOKIE_PERMANENT_STORAGE = {
52
+ provide: PERMANENT_STORAGE,
53
+ useClass: CookiePermanentStorageService
54
+ };
55
+ /**
56
+ * Type that contains provider for cookie permanent storage when used with `providePermanentStorage`
57
+ */
58
+ let CookiePermanentStorageType = class CookiePermanentStorageType {
59
+ };
60
+ CookiePermanentStorageType = __decorate([
61
+ TypeProvider(COOKIE_PERMANENT_STORAGE)
62
+ ], CookiePermanentStorageType);
63
+ /**
64
+ * Sets permanent storage to use cookie permanent storage when used with `providePermanentStorage`
65
+ */
66
+ export const CookiePermanentStorage = CookiePermanentStorageType;
45
67
  //# 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,EAAC,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;;;AAEzD;;GAEG;AACH,MACa,6BAA6B;IAGlB;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,6BAA6B;2GAA7B,6BAA6B;;SAA7B,6BAA6B;2FAA7B,6BAA6B;kBADzC,UAAU","sourcesContent":["import {Injectable} from '@angular/core';\n\nimport {PermanentStorage} from './permanentStorage.interface';\nimport {CookieService} from '../cookies/cookies.service';\n\n/**\n * Implementation of permanent storage using cookies\n */\n@Injectable()\nexport class CookiePermanentStorageService 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}"]}
1
+ {"version":3,"file":"cookiePermanentStorage.service.js","sourceRoot":"","sources":["../../../../src/services/permanentStorage/cookiePermanentStorage.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAgB,UAAU,EAAW,MAAM,eAAe,CAAC;AAGlE,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;;;AAE/D;;GAEG;AACH,MACa,6BAA6B;IAGlB;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,6BAA6B;2GAA7B,6BAA6B;;SAA7B,6BAA6B;2FAA7B,6BAA6B;kBADzC,UAAU;;AAwDX;;GAEG;AACH,MAAM,wBAAwB,GAE9B;IACI,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,6BAA6B;CAC1C,CAAC;AAEF;;GAEG;AAEH,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;CAE/B,CAAA;AAFK,0BAA0B;IAD/B,YAAY,CAAC,wBAAwB,CAAC;GACjC,0BAA0B,CAE/B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAyB,0BAA0B,CAAC","sourcesContent":["import {ClassProvider, Injectable, Provider} from '@angular/core';\n\nimport {PermanentStorage, PermanentStorageType} from './permanentStorage.interface';\nimport {CookieService} from '../cookies/cookies.service';\nimport {PERMANENT_STORAGE} from '../../types/tokens';\nimport {TypeProvider} from '../../types/providerDecoratedType';\n\n/**\n * Implementation of permanent storage using cookies\n */\n@Injectable()\nexport class CookiePermanentStorageService 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\n\n/**\n * Provider for permanent storage that is using cookie storage implementation\n */\nconst COOKIE_PERMANENT_STORAGE: Provider =\n<ClassProvider>\n{\n provide: PERMANENT_STORAGE,\n useClass: CookiePermanentStorageService\n};\n\n/**\n * Type that contains provider for cookie permanent storage when used with `providePermanentStorage`\n */\n@TypeProvider(COOKIE_PERMANENT_STORAGE)\nclass CookiePermanentStorageType\n{\n}\n\n/**\n * Sets permanent storage to use cookie permanent storage when used with `providePermanentStorage`\n */\nexport const CookiePermanentStorage: PermanentStorageType = CookiePermanentStorageType;"]}
@@ -1 +1 @@
1
- {"version":3,"file":"permanentStorage.interface.js","sourceRoot":"","sources":["../../../../src/services/permanentStorage/permanentStorage.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Provides api for implementing permanent storage\n */\nexport interface PermanentStorage\n{\n /**\n * Gets value that was stored with 'name' from permanent storage\n * @param name - Name with which was value stored\n */\n get<TResult>(name: string): TResult;\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 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 set(name: string, value: any, expires: Date): void;\n\n /**\n * Removes value stored with 'name' from permanent storage\n * @param name - Name of stored value that will be removed\n */\n remove(name: string): void;\n}"]}
1
+ {"version":3,"file":"permanentStorage.interface.js","sourceRoot":"","sources":["../../../../src/services/permanentStorage/permanentStorage.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '@angular/core';\n\n/**\n * Provides api for implementing permanent storage\n */\nexport interface PermanentStorage\n{\n /**\n * Gets value that was stored with 'name' from permanent storage\n * @param name - Name with which was value stored\n */\n get<TResult>(name: string): TResult;\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 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 set(name: string, value: any, expires: Date): void;\n\n /**\n * Removes value stored with 'name' from permanent storage\n * @param name - Name of stored value that will be removed\n */\n remove(name: string): void;\n}\n\n/**\n * Used for restriction of permanent storage provider type only for type decorated with permanent storage provider\n */\nexport interface PermanentStorageType extends Type<unknown>\n{\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"position.interface.js","sourceRoot":"","sources":["../../../../src/services/position/position.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Func1} from '@jscrpt/common';\nimport {Observable} from 'rxjs';\n\nimport {PositionOffsetString, PositionPlacement} from './position.types';\n\n/**\n * Options for autoupdate specific functionality\n */\nexport interface AutoUpdateOptions\n{\n /**\n * Indication whether update position when ancestor scroll changes\n */\n ancestorScroll: boolean;\n\n /**\n * Indication whether update position when ancestor size changes\n */\n ancestorResize: boolean;\n\n /**\n * Indication whether update position when target element changes size\n */\n elementResize: boolean;\n}\n\n/**\n * Defines object which describes offsets for positioned element\n */\nexport interface PositionOffsets\n{\n /**\n * Distance between positioned and reference element.\n */\n mainAxis?: number;\n\n /**\n * Skidding between floating and reference element.\n */\n crossAxis?: number;\n\n /**\n * Works on the same axis as crossAxis but applies only to aligned placements and works logically. The offset is inverted for -end alignments.\n */\n alignmentAxis?: number|null;\n}\n\n/**\n * Stores positioned element and reference element\n */\nexport interface PositionElements<TElement extends Element = Element>\n{\n /**\n * Reference element against which is object positioned\n */\n reference: TElement;\n\n /**\n * Element that is positioned\n */\n floating: TElement;\n}\n\n/**\n * Arguments that are passed during positioning\n */\nexport interface PositionArguments<TElement extends Element = Element>\n{\n /**\n * X coordinate of positioned element\n */\n x: number;\n\n /**\n * Y coordinate of positioned element\n */\n y: number;\n\n /**\n * Elements that are being used during positioning\n */\n elements: PositionElements<TElement>;\n}\n\n/**\n * Options that are passed to position service\n */\nexport interface PositionOptions\n{\n //######################### properties #########################\n\n /**\n * Placement of target element against source element\n */\n placement: PositionPlacement;\n\n /**\n * Offset which allows moving target element along the cross axis of placement, or any chosed direction\n */\n offset: PositionOffsetString|number|PositionOffsets|Func1<number|PositionOffsets, PositionArguments>;\n\n /**\n * Indication whether perform flip in case of collision (with view boundaries)\n */\n flip: boolean;\n\n /**\n * Indication whether set up 'auto updating' of position\n */\n autoUpdate: boolean|AutoUpdateOptions;\n\n /**\n * Mouse event that occured when positioning was called\n */\n mouseEvent?: MouseEvent;\n}\n\n/**\n * Result of positioning process, storing new coordinates\n */\nexport interface PositionResult<TElement extends Element = any>\n{\n /**\n * Target element to be positioned\n */\n target: TElement;\n\n /**\n * X coordinate of position of target\n */\n x: number;\n\n /**\n * Y coordinate of position of target\n */\n y: number;\n\n /**\n * Indication whether there was flip applied\n */\n flip: boolean;\n\n /**\n * Disposes instance of engine used for positioning\n */\n dispose(): void;\n}\n\n/**\n * Service that is used for positioning two elements against each other\n */\nexport interface Position\n{\n //######################### methods #########################\n\n /**\n * Places target element relatively to source element according options and returns result storing information about new position\n * @param target - Target element to be placed\n * @param source - Source element to be placed against\n * @param options - Optional options with informations about new position\n */\n placeElement(target: Element, source: Element, options?: Partial<PositionOptions>): Observable<PositionResult>;\n}\n"]}
1
+ {"version":3,"file":"position.interface.js","sourceRoot":"","sources":["../../../../src/services/position/position.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '@angular/core';\nimport {Func1} from '@jscrpt/common';\nimport {Observable} from 'rxjs';\n\nimport {PositionOffsetString, PositionPlacement} from './position.types';\n\n/**\n * Options for autoupdate specific functionality\n */\nexport interface AutoUpdateOptions\n{\n /**\n * Indication whether update position when ancestor scroll changes\n */\n ancestorScroll: boolean;\n\n /**\n * Indication whether update position when ancestor size changes\n */\n ancestorResize: boolean;\n\n /**\n * Indication whether update position when target element changes size\n */\n elementResize: boolean;\n}\n\n/**\n * Defines object which describes offsets for positioned element\n */\nexport interface PositionOffsets\n{\n /**\n * Distance between positioned and reference element.\n */\n mainAxis?: number;\n\n /**\n * Skidding between floating and reference element.\n */\n crossAxis?: number;\n\n /**\n * Works on the same axis as crossAxis but applies only to aligned placements and works logically. The offset is inverted for -end alignments.\n */\n alignmentAxis?: number|null;\n}\n\n/**\n * Stores positioned element and reference element\n */\nexport interface PositionElements<TElement extends Element = Element>\n{\n /**\n * Reference element against which is object positioned\n */\n reference: TElement;\n\n /**\n * Element that is positioned\n */\n floating: TElement;\n}\n\n/**\n * Arguments that are passed during positioning\n */\nexport interface PositionArguments<TElement extends Element = Element>\n{\n /**\n * X coordinate of positioned element\n */\n x: number;\n\n /**\n * Y coordinate of positioned element\n */\n y: number;\n\n /**\n * Elements that are being used during positioning\n */\n elements: PositionElements<TElement>;\n}\n\n/**\n * Options that are passed to position service\n */\nexport interface PositionOptions\n{\n //######################### properties #########################\n\n /**\n * Placement of target element against source element\n */\n placement: PositionPlacement;\n\n /**\n * Offset which allows moving target element along the cross axis of placement, or any chosed direction\n */\n offset: PositionOffsetString|number|PositionOffsets|Func1<number|PositionOffsets, PositionArguments>;\n\n /**\n * Indication whether perform flip in case of collision (with view boundaries)\n */\n flip: boolean;\n\n /**\n * Indication whether set up 'auto updating' of position\n */\n autoUpdate: boolean|AutoUpdateOptions;\n\n /**\n * Mouse event that occured when positioning was called\n */\n mouseEvent?: MouseEvent;\n}\n\n/**\n * Result of positioning process, storing new coordinates\n */\nexport interface PositionResult<TElement extends Element = any>\n{\n /**\n * Target element to be positioned\n */\n target: TElement;\n\n /**\n * X coordinate of position of target\n */\n x: number;\n\n /**\n * Y coordinate of position of target\n */\n y: number;\n\n /**\n * Indication whether there was flip applied\n */\n flip: boolean;\n\n /**\n * Disposes instance of engine used for positioning\n */\n dispose(): void;\n}\n\n/**\n * Service that is used for positioning two elements against each other\n */\nexport interface Position\n{\n //######################### methods #########################\n\n /**\n * Places target element relatively to source element according options and returns result storing information about new position\n * @param target - Target element to be placed\n * @param source - Source element to be placed against\n * @param options - Optional options with informations about new position\n */\n placeElement(target: Element, source: Element, options?: Partial<PositionOptions>): Observable<PositionResult>;\n}\n\n/**\n * Used for restriction of position provider type only for type decorated with position provider\n */\nexport interface PositionType extends Type<unknown>\n{\n}"]}
@@ -1,4 +1,5 @@
1
1
  import { Injectable } from '@angular/core';
2
+ import { formatString } from '@jscrpt/common';
2
3
  import { Subject } from 'rxjs';
3
4
  import * as i0 from "@angular/core";
4
5
  /**
@@ -27,10 +28,7 @@ class NoStringLocalizationService {
27
28
  if (!interpolateParams) {
28
29
  return key;
29
30
  }
30
- Object.keys(interpolateParams).forEach(prop => {
31
- key = key.replace(new RegExp(`{{${prop}}}`, 'g'), interpolateParams[prop]);
32
- });
33
- return key;
31
+ return formatString(key, interpolateParams);
34
32
  }
35
33
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NoStringLocalizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
36
34
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NoStringLocalizationService });
@@ -1 +1 @@
1
- {"version":3,"file":"noStringLocalization.service.js","sourceRoot":"","sources":["../../../../src/services/stringLocalization/noStringLocalization.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,OAAO,EAAa,MAAM,MAAM,CAAC;;AAIzC;;GAEG;AACH,MACa,2BAA2B;IAEpC,oEAAoE;IAEpE;;OAEG;IACK,mBAAmB,GAAkB,IAAI,OAAO,EAAQ,CAAC;IAEjE,8GAA8G;IAE9G;;OAEG;IACH,IAAW,WAAW;QAElB,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;IACnD,CAAC;IAED,2GAA2G;IAE3G;;;;OAIG;IACI,GAAG,CAAC,GAAW,EAAE,iBAAmC;QAEvD,IAAG,CAAC,iBAAiB,EACrB;YACI,OAAO,GAAG,CAAC;SACd;QAED,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAE1C,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,IAAI,IAAI,EAAE,GAAG,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/E,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACf,CAAC;uGAvCQ,2BAA2B;2GAA3B,2BAA2B;;SAA3B,2BAA2B;2FAA3B,2BAA2B;kBADvC,UAAU","sourcesContent":["import {Injectable} from '@angular/core';\nimport {Dictionary} from '@jscrpt/common';\nimport {Subject, Observable} from 'rxjs';\n\nimport {StringLocalization} from './stringLocalization.interface';\n\n/**\n * Default implementation of StringLocalization, which uses 'key' as localization text\n */\n@Injectable()\nexport class NoStringLocalizationService implements StringLocalization\n{\n //######################### private fields #########################\n\n /**\n * Subject used for emitting when indication that locale has changes and strings should be obtained again, because they have changed\n */\n private _textsChangeSubject: Subject<void> = new Subject<void>();\n\n //######################### public properties - implementation of StringLocalization #########################\n\n /**\n * Occurs when indication that locale has changes and strings should be obtained again, because they have changed\n */\n public get textsChange(): Observable<void>\n {\n return this._textsChangeSubject.asObservable();\n }\n\n //######################### public methods - implementation of StringLocalization #########################\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 get(key: string, interpolateParams?: Dictionary<any>): string\n {\n if(!interpolateParams)\n {\n return key;\n }\n\n Object.keys(interpolateParams).forEach(prop =>\n {\n key = key.replace(new RegExp(`{{${prop}}}`, 'g'), interpolateParams[prop]);\n });\n\n return key;\n }\n}\n"]}
1
+ {"version":3,"file":"noStringLocalization.service.js","sourceRoot":"","sources":["../../../../src/services/stringLocalization/noStringLocalization.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,OAAO,EAAa,MAAM,MAAM,CAAC;;AAIzC;;GAEG;AACH,MACa,2BAA2B;IAEpC,oEAAoE;IAEpE;;OAEG;IACK,mBAAmB,GAAkB,IAAI,OAAO,EAAQ,CAAC;IAEjE,8GAA8G;IAE9G;;OAEG;IACH,IAAW,WAAW;QAElB,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;IACnD,CAAC;IAED,2GAA2G;IAE3G;;;;OAIG;IACI,GAAG,CAAC,GAAW,EAAE,iBAA2C;QAE/D,IAAG,CAAC,iBAAiB,EACrB;YACI,OAAO,GAAG,CAAC;SACd;QAGD,OAAO,YAAY,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IAChD,CAAC;uGAnCQ,2BAA2B;2GAA3B,2BAA2B;;SAA3B,2BAA2B;2FAA3B,2BAA2B;kBADvC,UAAU","sourcesContent":["import {Injectable} from '@angular/core';\nimport {formatString} from '@jscrpt/common';\nimport {Subject, Observable} from 'rxjs';\n\nimport {StringLocalization} from './stringLocalization.interface';\n\n/**\n * Default implementation of StringLocalization, which uses 'key' as localization text\n */\n@Injectable()\nexport class NoStringLocalizationService implements StringLocalization\n{\n //######################### private fields #########################\n\n /**\n * Subject used for emitting when indication that locale has changes and strings should be obtained again, because they have changed\n */\n private _textsChangeSubject: Subject<void> = new Subject<void>();\n\n //######################### public properties - implementation of StringLocalization #########################\n\n /**\n * Occurs when indication that locale has changes and strings should be obtained again, because they have changed\n */\n public get textsChange(): Observable<void>\n {\n return this._textsChangeSubject.asObservable();\n }\n\n //######################### public methods - implementation of StringLocalization #########################\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 get(key: string, interpolateParams?: Record<string, unknown>): string\n {\n if(!interpolateParams)\n {\n return key;\n }\n\n\n return formatString(key, interpolateParams);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"stringLocalization.interface.js","sourceRoot":"","sources":["../../../../src/services/stringLocalization/stringLocalization.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Observable} from 'rxjs';\n\n/**\n * Provides api to localize strings\n */\nexport interface StringLocalization\n{\n /**\n * Occurs when indication that locale has changes and strings should be obtained again, because they have changed\n */\n readonly textsChange: Observable<void>;\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 get(key: string, interpolateParams?: Object): string;\n}"]}
1
+ {"version":3,"file":"stringLocalization.interface.js","sourceRoot":"","sources":["../../../../src/services/stringLocalization/stringLocalization.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '@angular/core';\nimport {Observable} from 'rxjs';\n\n/**\n * Provides api to localize strings\n */\nexport interface StringLocalization\n{\n /**\n * Occurs when indication that locale has changes and strings should be obtained again, because they have changed\n */\n readonly textsChange: Observable<void>;\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 get(key: string, interpolateParams?: Object): string;\n}\n\n/**\n * Used for restriction of string localization provider type only for type decorated with string localization provider\n */\nexport interface StringLocalizationType extends Type<unknown>\n{\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"temporaryStorage.interface.js","sourceRoot":"","sources":["../../../../src/services/temporaryStorage/temporaryStorage.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Provides api for implementing temporary storage\n */\nexport interface TemporaryStorage\n{\n /**\n * Gets value that was stored with 'name' from temporary storage\n * @param name - Name with which was value stored\n */\n get<TResult>(name: string): TResult;\n\n /**\n * Sets value that will be stored with 'name'e in temporary storage\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n */\n set(name: string, value: any): void;\n\n /**\n * Removes value stored with 'name' from temporary storage\n * @param name - Name of stored value that will be removed\n */\n remove(name: string): void;\n}"]}
1
+ {"version":3,"file":"temporaryStorage.interface.js","sourceRoot":"","sources":["../../../../src/services/temporaryStorage/temporaryStorage.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '@angular/core';\n\n/**\n * Provides api for implementing temporary storage\n */\nexport interface TemporaryStorage\n{\n /**\n * Gets value that was stored with 'name' from temporary storage\n * @param name - Name with which was value stored\n */\n get<TResult>(name: string): TResult;\n\n /**\n * Sets value that will be stored with 'name'e in temporary storage\n * @param name - Name with which will be value stored\n * @param value - Value to be stored\n */\n set(name: string, value: any): void;\n\n /**\n * Removes value stored with 'name' from temporary storage\n * @param name - Name of stored value that will be removed\n */\n remove(name: string): void;\n}\n\n/**\n * Used for restriction of temporary storage provider type only for type decorated with temporary storage provider\n */\nexport interface TemporaryStorageType extends Type<unknown>\n{\n}"]}
@@ -0,0 +1,32 @@
1
+ import { nameof } from '@jscrpt/common';
2
+ /**
3
+ * Gets provider from type
4
+ * @param type - Type that should contain provider
5
+ */
6
+ export function getProviderForType(type) {
7
+ const typeWithProvider = type;
8
+ if (!typeWithProvider.ɵɵprovider) {
9
+ throw new Error(`Type ${type} is without provider!`);
10
+ }
11
+ return typeWithProvider.ɵɵprovider;
12
+ }
13
+ /**
14
+ * Attach provider to type
15
+ * @param provider - Provider to be attached
16
+ */
17
+ export function TypeProvider(provider) {
18
+ // eslint-disable-next-line @typescript-eslint/ban-types
19
+ return function (target) {
20
+ const typeWithProvider = target;
21
+ if (!typeWithProvider.ɵɵprovider) {
22
+ Object.defineProperty(typeWithProvider, nameof('ɵɵprovider'), {
23
+ value: provider,
24
+ writable: false,
25
+ enumerable: false,
26
+ configurable: false,
27
+ });
28
+ }
29
+ return target;
30
+ };
31
+ }
32
+ //# sourceMappingURL=providerDecoratedType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providerDecoratedType.js","sourceRoot":"","sources":["../../../src/types/providerDecoratedType.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAatC;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAmB;IAElD,MAAM,gBAAgB,GAAG,IAA6B,CAAC;IAEvD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B;QACI,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,uBAAuB,CAAC,CAAC;KACxD;IAED,OAAO,gBAAgB,CAAC,UAAU,CAAC;AACvC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB;IAE3C,wDAAwD;IACxD,OAAO,UAAsC,MAAiB;QAE1D,MAAM,gBAAgB,GAAG,MAA+B,CAAC;QAEzD,IAAG,CAAC,gBAAgB,CAAC,UAAU,EAC/B;YACI,MAAM,CAAC,cAAc,CAAC,gBAAgB,EAAE,MAAM,CAAwB,YAAY,CAAC,EACnF;gBACI,KAAK,EAAE,QAAQ;gBACf,QAAQ,EAAE,KAAK;gBACf,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,KAAK;aACtB,CAAC,CAAC;SACN;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;AACN,CAAC","sourcesContent":["import {Provider, Type} from '@angular/core';\nimport {nameof} from '@jscrpt/common';\n\n/**\n * Type that contains provider\n */\ninterface ProviderDecoratedType\n{\n /**\n * Provider that is attached to type\n */\n ɵɵprovider?: Provider;\n}\n\n/**\n * Gets provider from type\n * @param type - Type that should contain provider\n */\nexport function getProviderForType(type: Type<unknown>): Provider\n{\n const typeWithProvider = type as ProviderDecoratedType;\n\n if(!typeWithProvider.ɵɵprovider)\n {\n throw new Error(`Type ${type} is without provider!`);\n }\n\n return typeWithProvider.ɵɵprovider;\n}\n\n/**\n * Attach provider to type\n * @param provider - Provider to be attached\n */\nexport function TypeProvider(provider: Provider): ClassDecorator\n{\n // eslint-disable-next-line @typescript-eslint/ban-types\n return function<TFunction extends Function> (target: TFunction): TFunction\n {\n const typeWithProvider = target as ProviderDecoratedType;\n \n if(!typeWithProvider.ɵɵprovider)\n {\n Object.defineProperty(typeWithProvider, nameof<ProviderDecoratedType>('ɵɵprovider'),\n {\n value: provider,\n writable: false,\n enumerable: false,\n configurable: false,\n });\n }\n\n return target;\n };\n}"]}
@@ -0,0 +1,48 @@
1
+ import { makeEnvironmentProviders } from '@angular/core';
2
+ import { getProviderForType } from './providerDecoratedType';
3
+ /**
4
+ * Provides logger service type
5
+ * @param type - Type of logger that should be used
6
+ */
7
+ export function provideLogger(type) {
8
+ return makeEnvironmentProviders([
9
+ getProviderForType(type),
10
+ ]);
11
+ }
12
+ /**
13
+ * Provides permanent storage service type
14
+ * @param type - Type of permanent storage that should be used
15
+ */
16
+ export function providePermanentStorage(type) {
17
+ return makeEnvironmentProviders([
18
+ getProviderForType(type),
19
+ ]);
20
+ }
21
+ /**
22
+ * Provides position service type
23
+ * @param type - Type of position that should be used
24
+ */
25
+ export function providePosition(type) {
26
+ return makeEnvironmentProviders([
27
+ getProviderForType(type),
28
+ ]);
29
+ }
30
+ /**
31
+ * Provides string localization service type
32
+ * @param type - Type of string localization that should be used
33
+ */
34
+ export function provideStringLocalization(type) {
35
+ return makeEnvironmentProviders([
36
+ getProviderForType(type),
37
+ ]);
38
+ }
39
+ /**
40
+ * Provides temporary storage service type
41
+ * @param type - Type of temporary storage that should be used
42
+ */
43
+ export function provideTemporaryStorage(type) {
44
+ return makeEnvironmentProviders([
45
+ getProviderForType(type),
46
+ ]);
47
+ }
48
+ //# sourceMappingURL=providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/types/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,wBAAwB,EAAC,MAAM,eAAe,CAAC;AAO7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAE3D;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,IAAgB;IAE1C,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAA0B;IAE9D,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,IAAkB;IAE9C,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAA4B;IAElE,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAA0B;IAE9D,OAAO,wBAAwB,CAC/B;QACI,kBAAkB,CAAC,IAAI,CAAC;KAC3B,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {EnvironmentProviders, makeEnvironmentProviders} from '@angular/core';\n\nimport {LoggerType} from '../services/logger/logger.interface';\nimport {PermanentStorageType} from '../services/permanentStorage/permanentStorage.interface';\nimport {PositionType} from '../services/position/position.interface';\nimport {StringLocalizationType} from '../services/stringLocalization/stringLocalization.interface';\nimport {TemporaryStorageType} from '../services/temporaryStorage/temporaryStorage.interface';\nimport {getProviderForType} from './providerDecoratedType';\n\n/**\n * Provides logger service type\n * @param type - Type of logger that should be used\n */\nexport function provideLogger(type: LoggerType): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides permanent storage service type\n * @param type - Type of permanent storage that should be used\n */\nexport function providePermanentStorage(type: PermanentStorageType): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides position service type\n * @param type - Type of position that should be used\n */\nexport function providePosition(type: PositionType): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides string localization service type\n * @param type - Type of string localization that should be used\n */\nexport function provideStringLocalization(type: StringLocalizationType): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n\n/**\n * Provides temporary storage service type\n * @param type - Type of temporary storage that should be used\n */\nexport function provideTemporaryStorage(type: TemporaryStorageType): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n getProviderForType(type),\n ]);\n}\n"]}
@@ -1,2 +1,2 @@
1
- export { LocalPermanentStorageService, SessionTemporaryStorageService } from './services';
1
+ export { LocalPermanentStorageService, SessionTemporaryStorageService, SessionTemporaryStorage, LocalPermanentStorage } from './services';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../store/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAE,8BAA8B,EAAC,MAAM,YAAY,CAAC","sourcesContent":["export {LocalPermanentStorageService, SessionTemporaryStorageService} from './services';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../store/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,4BAA4B,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,qBAAqB,EAAC,MAAM,YAAY,CAAC","sourcesContent":["export {LocalPermanentStorageService, SessionTemporaryStorageService, SessionTemporaryStorage, LocalPermanentStorage} from './services';"]}
@@ -1,8 +1,9 @@
1
+ import { __decorate } from "tslib";
1
2
  import { Injectable } from '@angular/core';
3
+ import { PERMANENT_STORAGE, TypeProvider } from '@anglr/common';
2
4
  import store from 'store';
3
5
  import expirePlugin from 'store/plugins/expire';
4
6
  import * as i0 from "@angular/core";
5
- //TODO: add tokens for storages
6
7
  /**
7
8
  * Implementation of permanent storage using LocalStorage
8
9
  */
@@ -47,4 +48,23 @@ export { LocalPermanentStorageService };
47
48
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LocalPermanentStorageService, decorators: [{
48
49
  type: Injectable
49
50
  }], ctorParameters: function () { return []; } });
51
+ /**
52
+ * Provider for permanent storage that is using local storage implementation
53
+ */
54
+ const LOCAL_PERMANENT_STORAGE = {
55
+ provide: PERMANENT_STORAGE,
56
+ useClass: LocalPermanentStorageService
57
+ };
58
+ /**
59
+ * Type that contains provider for local permanent storage when used with `providePermanentStorage`
60
+ */
61
+ let LocalPermanentStorageType = class LocalPermanentStorageType {
62
+ };
63
+ LocalPermanentStorageType = __decorate([
64
+ TypeProvider(LOCAL_PERMANENT_STORAGE)
65
+ ], LocalPermanentStorageType);
66
+ /**
67
+ * Sets permanent storage to use local permanent storage when used with `providePermanentStorage`
68
+ */
69
+ export const LocalPermanentStorage = LocalPermanentStorageType;
50
70
  //# sourceMappingURL=localPermanentStorage.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"localPermanentStorage.service.js","sourceRoot":"","sources":["../../../../../store/src/services/permanentStorage/localPermanentStorage.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,sBAAsB,CAAC;;AAEhD,+BAA+B;AAE/B;;GAEG;AACH,MACa,4BAA4B;IAErC,iEAAiE;IAEjE;QAEI,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAED,yGAAyG;IAEzG;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAiBD;;;;;OAKG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU,EAAE,OAAc;QAE/C,IAAG,OAAO,EACV;YACI,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;SAC7C;aAED;YACI,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC1B;IACL,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;uGA5DQ,4BAA4B;2GAA5B,4BAA4B;;SAA5B,4BAA4B;2FAA5B,4BAA4B;kBADxC,UAAU","sourcesContent":["import {Injectable} from '@angular/core';\nimport {PermanentStorage} from '@anglr/common';\nimport store from 'store';\nimport expirePlugin from 'store/plugins/expire';\n\n//TODO: add tokens for storages\n\n/**\n * Implementation of permanent storage using LocalStorage\n */\n@Injectable()\nexport class LocalPermanentStorageService implements PermanentStorage\n{\n //######################### constructor #########################\n\n constructor()\n {\n store.addPlugin(expirePlugin);\n }\n\n //######################### public methods - implementation of PermanentStorage #########################\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 store.get(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 if(expires)\n {\n store.set(name, value, expires.valueOf());\n }\n else\n {\n store.set(name, value);\n }\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 store.remove(name);\n }\n}"]}
1
+ {"version":3,"file":"localPermanentStorage.service.js","sourceRoot":"","sources":["../../../../../store/src/services/permanentStorage/localPermanentStorage.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAgB,UAAU,EAAW,MAAM,eAAe,CAAC;AAClE,OAAO,EAAC,iBAAiB,EAA0C,YAAY,EAAC,MAAM,eAAe,CAAC;AACtG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,sBAAsB,CAAC;;AAEhD;;GAEG;AACH,MACa,4BAA4B;IAErC,iEAAiE;IAEjE;QAEI,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAED,yGAAyG;IAEzG;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAiBD;;;;;OAKG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU,EAAE,OAAc;QAE/C,IAAG,OAAO,EACV;YACI,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;SAC7C;aAED;YACI,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SAC1B;IACL,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;uGA5DQ,4BAA4B;2GAA5B,4BAA4B;;SAA5B,4BAA4B;2FAA5B,4BAA4B;kBADxC,UAAU;;AAgEX;;GAEG;AACH,MAAM,uBAAuB,GAE7B;IACI,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,4BAA4B;CACzC,CAAC;AAEF;;GAEG;AAEH,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;CAE9B,CAAA;AAFK,yBAAyB;IAD9B,YAAY,CAAC,uBAAuB,CAAC;GAChC,yBAAyB,CAE9B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAyB,yBAAyB,CAAC","sourcesContent":["import {ClassProvider, Injectable, Provider} from '@angular/core';\nimport {PERMANENT_STORAGE, PermanentStorage, PermanentStorageType, TypeProvider} from '@anglr/common';\nimport store from 'store';\nimport expirePlugin from 'store/plugins/expire';\n\n/**\n * Implementation of permanent storage using LocalStorage\n */\n@Injectable()\nexport class LocalPermanentStorageService implements PermanentStorage\n{\n //######################### constructor #########################\n\n constructor()\n {\n store.addPlugin(expirePlugin);\n }\n\n //######################### public methods - implementation of PermanentStorage #########################\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 store.get(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 if(expires)\n {\n store.set(name, value, expires.valueOf());\n }\n else\n {\n store.set(name, value);\n }\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 store.remove(name);\n }\n}\n\n/**\n * Provider for permanent storage that is using local storage implementation\n */\nconst LOCAL_PERMANENT_STORAGE: Provider =\n<ClassProvider>\n{\n provide: PERMANENT_STORAGE,\n useClass: LocalPermanentStorageService\n};\n\n/**\n * Type that contains provider for local permanent storage when used with `providePermanentStorage`\n */\n@TypeProvider(LOCAL_PERMANENT_STORAGE)\nclass LocalPermanentStorageType\n{\n}\n\n/**\n * Sets permanent storage to use local permanent storage when used with `providePermanentStorage`\n */\nexport const LocalPermanentStorage: PermanentStorageType = LocalPermanentStorageType;"]}
@@ -1,4 +1,6 @@
1
+ import { __decorate } from "tslib";
1
2
  import { Injectable } from '@angular/core';
3
+ import { TEMPORARY_STORAGE, TypeProvider } from '@anglr/common';
2
4
  import store from 'store/storages/sessionStorage';
3
5
  import * as i0 from "@angular/core";
4
6
  /**
@@ -35,4 +37,23 @@ export { SessionTemporaryStorageService };
35
37
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SessionTemporaryStorageService, decorators: [{
36
38
  type: Injectable
37
39
  }] });
40
+ /**
41
+ * Provider for temporary storage that is using session storage implementation
42
+ */
43
+ const SESSION_TEMPORARY_STORAGE = {
44
+ provide: TEMPORARY_STORAGE,
45
+ useClass: SessionTemporaryStorageService
46
+ };
47
+ /**
48
+ * Type that contains provider for session temporary storage when used with `provideTemporaryStorage`
49
+ */
50
+ let SessionTemporaryStorageType = class SessionTemporaryStorageType {
51
+ };
52
+ SessionTemporaryStorageType = __decorate([
53
+ TypeProvider(SESSION_TEMPORARY_STORAGE)
54
+ ], SessionTemporaryStorageType);
55
+ /**
56
+ * Sets temporary storage to use session temporary storage when used with `provideTemporaryStorage`
57
+ */
58
+ export const SessionTemporaryStorage = SessionTemporaryStorageType;
38
59
  //# sourceMappingURL=sessionTemporaryStorage.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessionTemporaryStorage.service.js","sourceRoot":"","sources":["../../../../../store/src/services/temporaryStorage/sessionTemporaryStorage.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,MAAM,+BAA+B,CAAC;;AAElD;;GAEG;AACH,MACa,8BAA8B;IAEvC,yGAAyG;IAEzG;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAQ,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU;QAE/B,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;uGA9BQ,8BAA8B;2GAA9B,8BAA8B;;SAA9B,8BAA8B;2FAA9B,8BAA8B;kBAD1C,UAAU","sourcesContent":["import {Injectable} from '@angular/core';\nimport {TemporaryStorage} from '@anglr/common';\nimport store from 'store/storages/sessionStorage';\n\n/**\n * Implementation of temporary storage using SessionStorage\n */\n@Injectable()\nexport class SessionTemporaryStorageService implements TemporaryStorage\n{\n //######################### public methods - implementation of TemporaryStorage #########################\n\n /**\n * Gets value that was stored with 'name' from temporary storage\n * @param name - Name with which was value stored\n */\n public get<TResult>(name: string): TResult\n {\n return store.read(name) as any;\n }\n\n /**\n * Sets value that will be stored with 'name'e in temporary 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 store.write(name, value);\n }\n\n /**\n * Removes value stored with 'name' from temporary storage\n * @param name - Name of stored value that will be removed\n */\n public remove(name: string): void\n {\n store.remove(name);\n }\n}"]}
1
+ {"version":3,"file":"sessionTemporaryStorage.service.js","sourceRoot":"","sources":["../../../../../store/src/services/temporaryStorage/sessionTemporaryStorage.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAgB,UAAU,EAAW,MAAM,eAAe,CAAC;AAClE,OAAO,EAAC,iBAAiB,EAA0C,YAAY,EAAC,MAAM,eAAe,CAAC;AACtG,OAAO,KAAK,MAAM,+BAA+B,CAAC;;AAElD;;GAEG;AACH,MACa,8BAA8B;IAEvC,yGAAyG;IAEzG;;;OAGG;IACI,GAAG,CAAU,IAAY;QAE5B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAQ,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACI,GAAG,CAAC,IAAY,EAAE,KAAU;QAE/B,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,IAAY;QAEtB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;uGA9BQ,8BAA8B;2GAA9B,8BAA8B;;SAA9B,8BAA8B;2FAA9B,8BAA8B;kBAD1C,UAAU;;AAkCX;;GAEG;AACH,MAAM,yBAAyB,GAE/B;IACI,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,8BAA8B;CAC3C,CAAC;AAEF;;GAEG;AAEH,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAEhC,CAAA;AAFK,2BAA2B;IADhC,YAAY,CAAC,yBAAyB,CAAC;GAClC,2BAA2B,CAEhC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyB,2BAA2B,CAAC","sourcesContent":["import {ClassProvider, Injectable, Provider} from '@angular/core';\nimport {TEMPORARY_STORAGE, TemporaryStorage, TemporaryStorageType, TypeProvider} from '@anglr/common';\nimport store from 'store/storages/sessionStorage';\n\n/**\n * Implementation of temporary storage using SessionStorage\n */\n@Injectable()\nexport class SessionTemporaryStorageService implements TemporaryStorage\n{\n //######################### public methods - implementation of TemporaryStorage #########################\n\n /**\n * Gets value that was stored with 'name' from temporary storage\n * @param name - Name with which was value stored\n */\n public get<TResult>(name: string): TResult\n {\n return store.read(name) as any;\n }\n\n /**\n * Sets value that will be stored with 'name'e in temporary 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 store.write(name, value);\n }\n\n /**\n * Removes value stored with 'name' from temporary storage\n * @param name - Name of stored value that will be removed\n */\n public remove(name: string): void\n {\n store.remove(name);\n }\n}\n\n/**\n * Provider for temporary storage that is using session storage implementation\n */\nconst SESSION_TEMPORARY_STORAGE: Provider =\n<ClassProvider>\n{\n provide: TEMPORARY_STORAGE,\n useClass: SessionTemporaryStorageService\n};\n\n/**\n * Type that contains provider for session temporary storage when used with `provideTemporaryStorage`\n */\n@TypeProvider(SESSION_TEMPORARY_STORAGE)\nclass SessionTemporaryStorageType\n{\n}\n\n/**\n * Sets temporary storage to use session temporary storage when used with `provideTemporaryStorage`\n */\nexport const SessionTemporaryStorage: TemporaryStorageType = SessionTemporaryStorageType;"]}
@@ -90,12 +90,12 @@ class ConsoleComponent {
90
90
  }
91
91
  }
92
92
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConsoleComponent, deps: [{ token: CONSOLE_COMPONENT_SINK_SERVICE }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
93
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ConsoleComponent, selector: "console", ngImport: i0, template: "<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log?.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>", styles: [":host\n{\n display: flex;\n flex-direction: column;\n position: absolute;\n width: 100%;\n height: 50%;\n}\n\n.console-data\n{\n background-color: #000000c7;\n border: none;\n border-bottom: 1px solid #AAA;\n border-radius: 0;\n color: #EEE;\n flex: 1;\n min-height: 0;\n min-width: 0;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.console-filter\n{\n align-self: stretch;\n}\n\n.console-filter input\n{\n width: 100%;\n background-color: #000000c7;\n color: #FFF;\n border: none;\n border-bottom: 1px solid #AAA;\n padding: 0 4px;\n}\n\n.copy-icon,\n.clear-icon\n{\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 14px;\n}\n\n.copy-icon\n{\n margin-right: 20px;\n}\n\n.clear-icon div:hover,\n.copy-icon div:hover\n{\n color: #31A1FF;\n cursor: pointer;\n}\n\n.console-log\n{\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n display: flex;\n flex-direction: row;\n}\n\n.console-log.error,\n.console-log.fatal\n{\n color: #FF3131;\n}\n\n.console-log.warning\n{\n color: #FFC531;\n}\n\n.console-log.debug,\n.console-log.verbose\n{\n color: #31A1FF;\n}\n\n.console-log-icon\n{\n color: #FFF;\n font-weight: bold;\n margin: 2px 4px 0;\n}\n\n.console-log-icon.fa-angle-down\n{\n margin: 3px 3px 0 2px;\n}\n\n.console-log-text\n{\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.console-log-text.expanded\n{\n white-space: pre;\n text-overflow: initial;\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
93
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ConsoleComponent, selector: "console", ngImport: i0, template: "<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>", styles: [":host\n{\n display: flex;\n flex-direction: column;\n position: absolute;\n width: 100%;\n height: 50%;\n}\n\n.console-data\n{\n background-color: #000000c7;\n border: none;\n border-bottom: 1px solid #AAA;\n border-radius: 0;\n color: #EEE;\n flex: 1;\n min-height: 0;\n min-width: 0;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.console-filter\n{\n align-self: stretch;\n}\n\n.console-filter input\n{\n width: 100%;\n background-color: #000000c7;\n color: #FFF;\n border: none;\n border-bottom: 1px solid #AAA;\n padding: 0 4px;\n}\n\n.copy-icon,\n.clear-icon\n{\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 14px;\n}\n\n.copy-icon\n{\n margin-right: 20px;\n}\n\n.clear-icon div:hover,\n.copy-icon div:hover\n{\n color: #31A1FF;\n cursor: pointer;\n}\n\n.console-log\n{\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n display: flex;\n flex-direction: row;\n}\n\n.console-log.error,\n.console-log.fatal\n{\n color: #FF3131;\n}\n\n.console-log.warning\n{\n color: #FFC531;\n}\n\n.console-log.debug,\n.console-log.verbose\n{\n color: #31A1FF;\n}\n\n.console-log-icon\n{\n color: #FFF;\n font-weight: bold;\n margin: 2px 4px 0;\n}\n\n.console-log-icon.fa-angle-down\n{\n margin: 3px 3px 0 2px;\n}\n\n.console-log-text\n{\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.console-log-text.expanded\n{\n white-space: pre;\n text-overflow: initial;\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
94
94
  }
95
95
  export { ConsoleComponent };
96
96
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConsoleComponent, decorators: [{
97
97
  type: Component,
98
- args: [{ selector: 'console', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log?.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>", styles: [":host\n{\n display: flex;\n flex-direction: column;\n position: absolute;\n width: 100%;\n height: 50%;\n}\n\n.console-data\n{\n background-color: #000000c7;\n border: none;\n border-bottom: 1px solid #AAA;\n border-radius: 0;\n color: #EEE;\n flex: 1;\n min-height: 0;\n min-width: 0;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.console-filter\n{\n align-self: stretch;\n}\n\n.console-filter input\n{\n width: 100%;\n background-color: #000000c7;\n color: #FFF;\n border: none;\n border-bottom: 1px solid #AAA;\n padding: 0 4px;\n}\n\n.copy-icon,\n.clear-icon\n{\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 14px;\n}\n\n.copy-icon\n{\n margin-right: 20px;\n}\n\n.clear-icon div:hover,\n.copy-icon div:hover\n{\n color: #31A1FF;\n cursor: pointer;\n}\n\n.console-log\n{\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n display: flex;\n flex-direction: row;\n}\n\n.console-log.error,\n.console-log.fatal\n{\n color: #FF3131;\n}\n\n.console-log.warning\n{\n color: #FFC531;\n}\n\n.console-log.debug,\n.console-log.verbose\n{\n color: #31A1FF;\n}\n\n.console-log-icon\n{\n color: #FFF;\n font-weight: bold;\n margin: 2px 4px 0;\n}\n\n.console-log-icon.fa-angle-down\n{\n margin: 3px 3px 0 2px;\n}\n\n.console-log-text\n{\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.console-log-text.expanded\n{\n white-space: pre;\n text-overflow: initial;\n}"] }]
98
+ args: [{ selector: 'console', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>", styles: [":host\n{\n display: flex;\n flex-direction: column;\n position: absolute;\n width: 100%;\n height: 50%;\n}\n\n.console-data\n{\n background-color: #000000c7;\n border: none;\n border-bottom: 1px solid #AAA;\n border-radius: 0;\n color: #EEE;\n flex: 1;\n min-height: 0;\n min-width: 0;\n overflow-y: auto;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.console-filter\n{\n align-self: stretch;\n}\n\n.console-filter input\n{\n width: 100%;\n background-color: #000000c7;\n color: #FFF;\n border: none;\n border-bottom: 1px solid #AAA;\n padding: 0 4px;\n}\n\n.copy-icon,\n.clear-icon\n{\n position: absolute;\n top: 0;\n right: 0;\n padding: 4px 14px;\n}\n\n.copy-icon\n{\n margin-right: 20px;\n}\n\n.clear-icon div:hover,\n.copy-icon div:hover\n{\n color: #31A1FF;\n cursor: pointer;\n}\n\n.console-log\n{\n font-family: Menlo, Monaco, Consolas, \"Courier New\", monospace;\n font-size: 12px;\n display: flex;\n flex-direction: row;\n}\n\n.console-log.error,\n.console-log.fatal\n{\n color: #FF3131;\n}\n\n.console-log.warning\n{\n color: #FFC531;\n}\n\n.console-log.debug,\n.console-log.verbose\n{\n color: #31A1FF;\n}\n\n.console-log-icon\n{\n color: #FFF;\n font-weight: bold;\n margin: 2px 4px 0;\n}\n\n.console-log-icon.fa-angle-down\n{\n margin: 3px 3px 0 2px;\n}\n\n.console-log-text\n{\n flex: 1;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.console-log-text.expanded\n{\n white-space: pre;\n text-overflow: initial;\n}"] }]
99
99
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
100
100
  type: Inject,
101
101
  args: [CONSOLE_COMPONENT_SINK_SERVICE]
@@ -1 +1 @@
1
- {"version":3,"file":"console.component.js","sourceRoot":"","sources":["../../../../../structured-log/src/components/console/console.component.ts","../../../../../structured-log/src/components/console/console.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAqB,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAG/G,OAAO,EAAC,8BAA8B,EAAC,MAAM,oBAAoB,CAAC;;;AAGlE;;GAEG;AACH,MAOa,gBAAgB;IA2BmC;IACxC;IA1BpB,oEAAoE;IAEpE;;OAEG;IACK,uBAAuB,CAAe;IAE9C,2FAA2F;IAE3F;;OAEG;IACI,WAAW,GAA0B,EAAE,CAAC;IAE/C;;OAEG;IACI,OAAO,GAAG,SAAS,IAAI,SAAS,CAAC,SAAS,CAAC;IAElD;;OAEG;IACI,WAAW,GAAW,EAAE,CAAC;IAEhC,iEAAiE;IACjE,YAA4D,WAAiC,EACzE,eAAkC;QADM,gBAAW,GAAX,WAAW,CAAsB;QACzE,oBAAe,GAAf,eAAe,CAAmB;IAEtD,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE;YAEtE,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAG,IAAI,CAAC,uBAAuB,EAC/B;YACI,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;SACvC;IACL,CAAC;IAED,wFAAwF;IAExF;;OAEG;IACI,IAAI;QAEP,IAAG,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,EACrC;YACI,OAAO;SACV;QAED,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACpF,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,OAAe;QAE9B,IAAG,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,EACrC;YACI,OAAO;SACV;QAED,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;IACI,KAAK;QAER,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;IAED;;OAEG;IACI,WAAW;QAEd,IAAG,CAAC,IAAI,CAAC,WAAW,EACpB;YACI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;SAC5C;aAED;YACI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;SAC/H;IACL,CAAC;uGAhHQ,gBAAgB,kBA2BL,8BAA8B;2FA3BzC,gBAAgB,+CChB7B,k5BAiBM;;SDDO,gBAAgB;2FAAhB,gBAAgB;kBAP5B,SAAS;+BAEI,SAAS,mBAGF,uBAAuB,CAAC,MAAM;;0BA6BlC,MAAM;2BAAC,8BAA8B","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, OnInit, OnDestroy, ChangeDetectorRef} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {CONSOLE_COMPONENT_SINK_SERVICE} from '../../types/tokens';\nimport {ConsoleComponentSink, ConsoleComponentLog} from '../../types/logger.interface';\n\n/**\n * Component used for displaying console logs\n */\n@Component(\n{\n selector: 'console',\n templateUrl: 'console.component.html',\n styleUrls: ['console.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ConsoleComponent implements OnInit, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for log changes\n */\n private _logsChangeSubscription: Subscription;\n\n //######################### public properties - template bindings #########################\n\n /**\n * Current state of logger\n */\n public currentLogs: ConsoleComponentLog[] = [];\n\n /**\n * Indication whether can use copy to clipboard\n */\n public canCopy = navigator && navigator.clipboard;\n\n /**\n * Current value of filter\n */\n public filterValue: string = '';\n\n //######################### constructor #########################\n constructor(@Inject(CONSOLE_COMPONENT_SINK_SERVICE) private _consoleSvc: ConsoleComponentSink,\n private _changeDetector: ChangeDetectorRef)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.setMessages();\n \n this._logsChangeSubscription = this._consoleSvc.logsChange.subscribe(() =>\n {\n this.setMessages();\n this._changeDetector.detectChanges();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if(this._logsChangeSubscription)\n {\n this._logsChangeSubscription.unsubscribe();\n this._logsChangeSubscription = null;\n }\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Copies content of whole console log into clipboard\n */\n public copy(): void\n {\n if(!navigator || !navigator.clipboard)\n {\n return;\n }\n\n navigator.clipboard.writeText(this.currentLogs.map(log => log.text).join('\\n'));\n }\n\n /**\n * Copies message to clipboard\n * @param message - Message to be copied\n */\n public copyMessage(message: string): void\n {\n if(!navigator || !navigator.clipboard)\n {\n return;\n }\n\n navigator.clipboard.writeText(message);\n }\n\n /**\n * Clears existing logs\n */\n public clear(): void\n {\n this._consoleSvc.clear();\n }\n\n /**\n * Sets messages using filter\n */\n public setMessages(): void\n {\n if(!this.filterValue)\n {\n this.currentLogs = this._consoleSvc.logs;\n }\n else\n {\n this.currentLogs = this._consoleSvc.logs.filter(log => log.text.toLowerCase().indexOf(this.filterValue.toLowerCase()) >= 0);\n }\n }\n}","<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log?.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>"]}
1
+ {"version":3,"file":"console.component.js","sourceRoot":"","sources":["../../../../../structured-log/src/components/console/console.component.ts","../../../../../structured-log/src/components/console/console.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAqB,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAG/G,OAAO,EAAC,8BAA8B,EAAC,MAAM,oBAAoB,CAAC;;;AAGlE;;GAEG;AACH,MAOa,gBAAgB;IA2BmC;IACxC;IA1BpB,oEAAoE;IAEpE;;OAEG;IACK,uBAAuB,CAA8B;IAE7D,2FAA2F;IAE3F;;OAEG;IACI,WAAW,GAA0B,EAAE,CAAC;IAE/C;;OAEG;IACI,OAAO,GAAG,SAAS,IAAI,SAAS,CAAC,SAAS,CAAC;IAElD;;OAEG;IACI,WAAW,GAAW,EAAE,CAAC;IAEhC,iEAAiE;IACjE,YAA4D,WAAiC,EACzE,eAAkC;QADM,gBAAW,GAAX,WAAW,CAAsB;QACzE,oBAAe,GAAf,eAAe,CAAmB;IAEtD,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE;YAEtE,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAG,IAAI,CAAC,uBAAuB,EAC/B;YACI,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;SACvC;IACL,CAAC;IAED,wFAAwF;IAExF;;OAEG;IACI,IAAI;QAEP,IAAG,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,EACrC;YACI,OAAO;SACV;QAED,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACpF,CAAC;IAED;;;OAGG;IACI,WAAW,CAAC,OAAe;QAE9B,IAAG,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,EACrC;YACI,OAAO;SACV;QAED,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;IACI,KAAK;QAER,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;IAED;;OAEG;IACI,WAAW;QAEd,IAAG,CAAC,IAAI,CAAC,WAAW,EACpB;YACI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;SAC5C;aAED;YACI,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;SAC/H;IACL,CAAC;uGAhHQ,gBAAgB,kBA2BL,8BAA8B;2FA3BzC,gBAAgB,+CChB7B,i5BAiBM;;SDDO,gBAAgB;2FAAhB,gBAAgB;kBAP5B,SAAS;+BAEI,SAAS,mBAGF,uBAAuB,CAAC,MAAM;;0BA6BlC,MAAM;2BAAC,8BAA8B","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, OnInit, OnDestroy, ChangeDetectorRef} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {CONSOLE_COMPONENT_SINK_SERVICE} from '../../types/tokens';\nimport {ConsoleComponentSink, ConsoleComponentLog} from '../../types/logger.interface';\n\n/**\n * Component used for displaying console logs\n */\n@Component(\n{\n selector: 'console',\n templateUrl: 'console.component.html',\n styleUrls: ['console.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ConsoleComponent implements OnInit, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for log changes\n */\n private _logsChangeSubscription: Subscription|undefined|null;\n\n //######################### public properties - template bindings #########################\n\n /**\n * Current state of logger\n */\n public currentLogs: ConsoleComponentLog[] = [];\n\n /**\n * Indication whether can use copy to clipboard\n */\n public canCopy = navigator && navigator.clipboard;\n\n /**\n * Current value of filter\n */\n public filterValue: string = '';\n\n //######################### constructor #########################\n constructor(@Inject(CONSOLE_COMPONENT_SINK_SERVICE) private _consoleSvc: ConsoleComponentSink,\n private _changeDetector: ChangeDetectorRef)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.setMessages();\n \n this._logsChangeSubscription = this._consoleSvc.logsChange.subscribe(() =>\n {\n this.setMessages();\n this._changeDetector.detectChanges();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n if(this._logsChangeSubscription)\n {\n this._logsChangeSubscription.unsubscribe();\n this._logsChangeSubscription = null;\n }\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Copies content of whole console log into clipboard\n */\n public copy(): void\n {\n if(!navigator || !navigator.clipboard)\n {\n return;\n }\n\n navigator.clipboard.writeText(this.currentLogs.map(log => log.text).join('\\n'));\n }\n\n /**\n * Copies message to clipboard\n * @param message - Message to be copied\n */\n public copyMessage(message: string): void\n {\n if(!navigator || !navigator.clipboard)\n {\n return;\n }\n\n navigator.clipboard.writeText(message);\n }\n\n /**\n * Clears existing logs\n */\n public clear(): void\n {\n this._consoleSvc.clear();\n }\n\n /**\n * Sets messages using filter\n */\n public setMessages(): void\n {\n if(!this.filterValue)\n {\n this.currentLogs = this._consoleSvc.logs;\n }\n else\n {\n this.currentLogs = this._consoleSvc.logs.filter(log => log.text.toLowerCase().indexOf(this.filterValue.toLowerCase()) >= 0);\n }\n }\n}","<div class=\"console-data thin-scrollbar\">\n <div class=\"console-log\" [ngClass]=\"log?.logLevel\" *ngFor=\"let log of currentLogs\">\n <div class=\"console-log-icon fa\" [class.fa-angle-right]=\"!log?.expanded\" [class.fa-angle-down]=\"log?.expanded\" (click)=\"log.expanded = !log.expanded\"></div>\n <div class=\"console-log-text\" [class.expanded]=\"log?.expanded\" (click)=\"copyMessage(log.text)\">{{log?.text}}</div>\n </div>\n\n <div class=\"clear-icon\" (click)=\"clear()\" title=\"clear log\">\n <div class=\"fa fa-times\"></div>\n </div>\n\n <div class=\"copy-icon\" (click)=\"copy()\" title=\"copy to clipboard\" *ngIf=\"canCopy\">\n <div class=\"fa fa-copy\"></div>\n </div>\n</div>\n\n<div class=\"console-filter\">\n <input type=\"text\" placeholder=\"Filter messages\" (input)=\"filterValue = $any($event.target).value; setMessages()\">\n</div>"]}
@@ -1,6 +1,7 @@
1
1
  export * from './components/console/console.component.animations';
2
2
  export * from './components/console/console.component';
3
3
  export * from './modules/consoleLog.module';
4
+ export * from './misc/providers';
4
5
  export * from './misc/utils';
5
6
  export * from './types/tokens';
6
7
  export * from './types/logger.interface';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../structured-log/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iDAAiD,CAAC;AAChE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC","sourcesContent":["export * from './components/console/console.component.animations';\nexport * from './components/console/console.component';\nexport * from './modules/consoleLog.module';\nexport * from './misc/utils';\nexport * from './types/tokens';\nexport * from './types/logger.interface';\nexport * from './services/console/consoleComponentSink.service';\nexport * from './services/console/consoleSinkConfig.service';\nexport * from './services/logger.service';\nexport * from './services/rest/restSink.options';\nexport * from './services/rest/restSink.service';\nexport * from './services/developerConsole/developerConsoleSink.options';\nexport * from './services/developerConsole/developerConsoleSink.service';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../structured-log/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iDAAiD,CAAC;AAChE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC","sourcesContent":["export * from './components/console/console.component.animations';\nexport * from './components/console/console.component';\nexport * from './modules/consoleLog.module';\nexport * from './misc/providers';\nexport * from './misc/utils';\nexport * from './types/tokens';\nexport * from './types/logger.interface';\nexport * from './services/console/consoleComponentSink.service';\nexport * from './services/console/consoleSinkConfig.service';\nexport * from './services/logger.service';\nexport * from './services/rest/restSink.options';\nexport * from './services/rest/restSink.service';\nexport * from './services/developerConsole/developerConsoleSink.options';\nexport * from './services/developerConsole/developerConsoleSink.service';\n"]}
@@ -0,0 +1,12 @@
1
+ import { makeEnvironmentProviders } from '@angular/core';
2
+ import { CONSOLE_COMPONENT_SINK, CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER } from '../types/tokens';
3
+ /**
4
+ * Provides console component as sink for logger
5
+ */
6
+ export function provideConsoleComponentSink() {
7
+ return makeEnvironmentProviders([
8
+ CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER,
9
+ CONSOLE_COMPONENT_SINK,
10
+ ]);
11
+ }
12
+ //# sourceMappingURL=providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../structured-log/src/misc/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,wBAAwB,EAAC,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAC,sBAAsB,EAAE,uCAAuC,EAAC,MAAM,iBAAiB,CAAC;AAEhG;;GAEG;AACH,MAAM,UAAU,2BAA2B;IAEvC,OAAO,wBAAwB,CAC/B;QACI,uCAAuC;QACvC,sBAAsB;KACzB,CAAC,CAAC;AACP,CAAC","sourcesContent":["import {EnvironmentProviders, makeEnvironmentProviders} from '@angular/core';\n\nimport {CONSOLE_COMPONENT_SINK, CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER} from '../types/tokens';\n\n/**\n * Provides console component as sink for logger\n */\nexport function provideConsoleComponentSink(): EnvironmentProviders\n{\n return makeEnvironmentProviders(\n [\n CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER,\n CONSOLE_COMPONENT_SINK,\n ]);\n}"]}
@@ -1,26 +1,11 @@
1
1
  import { NgModule } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { ConsoleComponent } from '../components/console/console.component';
4
- import { CONSOLE_COMPONENT_SINK, STRUCTURED_LOG_LOGGER, CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER } from '../types/tokens';
5
4
  import * as i0 from "@angular/core";
6
5
  /**
7
6
  * Module containing component Console (log)
8
7
  */
9
8
  class ConsoleLogModule {
10
- //######################### public methods #########################
11
- /**
12
- * Registers structured-log as logger service, with console component sink
13
- */
14
- static forRoot() {
15
- return {
16
- ngModule: ConsoleLogModule,
17
- providers: [
18
- CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER,
19
- CONSOLE_COMPONENT_SINK,
20
- STRUCTURED_LOG_LOGGER
21
- ]
22
- };
23
- }
24
9
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConsoleLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25
10
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ConsoleLogModule, declarations: [ConsoleComponent], imports: [CommonModule], exports: [ConsoleComponent] });
26
11
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ConsoleLogModule, imports: [CommonModule] });
@@ -1 +1 @@
1
- {"version":3,"file":"consoleLog.module.js","sourceRoot":"","sources":["../../../../structured-log/src/modules/consoleLog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAC,sBAAsB,EAAE,qBAAqB,EAAE,uCAAuC,EAAC,MAAM,iBAAiB,CAAC;;AAEvH;;GAEG;AACH,MAea,gBAAgB;IAEzB,oEAAoE;IAEpE;;OAEG;IACI,MAAM,CAAC,OAAO;QAEjB,OAAO;YACH,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EACT;gBACI,uCAAuC;gBACvC,sBAAsB;gBACtB,qBAAqB;aACxB;SACJ,CAAC;IACN,CAAC;uGAlBQ,gBAAgB;wGAAhB,gBAAgB,iBAPrB,gBAAgB,aAJhB,YAAY,aAQZ,gBAAgB;wGAGX,gBAAgB,YAXrB,YAAY;;SAWP,gBAAgB;2FAAhB,gBAAgB;kBAf5B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;qBACf;oBACD,YAAY,EACZ;wBACI,gBAAgB;qBACnB;oBACD,OAAO,EACP;wBACI,gBAAgB;qBACnB;iBACJ","sourcesContent":["import {NgModule, ModuleWithProviders} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {ConsoleComponent} from '../components/console/console.component';\nimport {CONSOLE_COMPONENT_SINK, STRUCTURED_LOG_LOGGER, CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER} from '../types/tokens';\n\n/**\n * Module containing component Console (log)\n */\n@NgModule(\n{\n imports:\n [\n CommonModule\n ],\n declarations:\n [\n ConsoleComponent\n ],\n exports:\n [\n ConsoleComponent\n ]\n})\nexport class ConsoleLogModule\n{\n //######################### public methods #########################\n\n /**\n * Registers structured-log as logger service, with console component sink\n */\n public static forRoot(): ModuleWithProviders<ConsoleLogModule>\n {\n return {\n ngModule: ConsoleLogModule,\n providers:\n [\n CONSOLE_COMPONENT_SINK_SERVICE_PROVIDER,\n CONSOLE_COMPONENT_SINK,\n STRUCTURED_LOG_LOGGER\n ]\n };\n }\n}"]}
1
+ {"version":3,"file":"consoleLog.module.js","sourceRoot":"","sources":["../../../../structured-log/src/modules/consoleLog.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,yCAAyC,CAAC;;AAEzE;;GAEG;AACH,MAea,gBAAgB;uGAAhB,gBAAgB;wGAAhB,gBAAgB,iBAPrB,gBAAgB,aAJhB,YAAY,aAQZ,gBAAgB;wGAGX,gBAAgB,YAXrB,YAAY;;SAWP,gBAAgB;2FAAhB,gBAAgB;kBAf5B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;qBACf;oBACD,YAAY,EACZ;wBACI,gBAAgB;qBACnB;oBACD,OAAO,EACP;wBACI,gBAAgB;qBACnB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {ConsoleComponent} from '../components/console/console.component';\n\n/**\n * Module containing component Console (log)\n */\n@NgModule(\n{\n imports:\n [\n CommonModule\n ],\n declarations:\n [\n ConsoleComponent\n ],\n exports:\n [\n ConsoleComponent\n ]\n})\nexport class ConsoleLogModule\n{\n}"]}