angular-toolbox 0.0.8 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +14 -10
  3. package/{esm2020 → esm2022}/angular-toolbox.mjs +4 -4
  4. package/esm2022/lib/angular-toolbox.module.mjs +21 -0
  5. package/esm2022/lib/core/bridge/app-bridge.mjs +76 -0
  6. package/esm2022/lib/core/error/app-bridge-error.mjs +24 -0
  7. package/esm2022/lib/core/error/http-mock-service-error.mjs +26 -0
  8. package/esm2022/lib/core/error/index.mjs +5 -0
  9. package/esm2022/lib/core/error/integrity-error.mjs +26 -0
  10. package/esm2022/lib/core/error/subscription-error.mjs +26 -0
  11. package/esm2022/lib/core/impl/index.mjs +2 -0
  12. package/esm2022/lib/core/impl/lang/identifiable-component.mjs +31 -0
  13. package/esm2022/lib/core/impl/lang/index.mjs +2 -0
  14. package/esm2022/lib/core/impl/version/version.impl.mjs +34 -0
  15. package/esm2022/lib/core/index.mjs +3 -0
  16. package/esm2022/lib/directive/anchor-link.directive.mjs +62 -0
  17. package/esm2022/lib/directive/button-role.directive.mjs +102 -0
  18. package/esm2022/lib/directive/content-renderer.directive.mjs +61 -0
  19. package/esm2022/lib/directive/index.mjs +5 -0
  20. package/esm2022/lib/directive/navigate-to-url.directive.mjs +51 -0
  21. package/esm2022/lib/directive/navigation-directive-base.mjs +23 -0
  22. package/esm2022/lib/framework/index.mjs +2 -0
  23. package/esm2022/lib/framework/mock/http/config/http-mock-parameters.mjs +9 -0
  24. package/esm2022/lib/framework/mock/http/config/http-mock.decorator.mjs +48 -0
  25. package/esm2022/lib/framework/mock/http/config/index.mjs +3 -0
  26. package/esm2022/lib/framework/mock/http/config/route-mock-config.mjs +9 -0
  27. package/esm2022/lib/framework/mock/http/core/data-storage.mjs +9 -0
  28. package/esm2022/lib/framework/mock/http/event/event-target.impl.mjs +122 -0
  29. package/esm2022/lib/framework/mock/http/event/progress-event-mock.mjs +48 -0
  30. package/esm2022/lib/framework/mock/http/index.mjs +4 -0
  31. package/esm2022/lib/framework/mock/http/path-to-regexp/constants.mjs +111 -0
  32. package/esm2022/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.mjs +34 -0
  33. package/esm2022/lib/framework/mock/http/path-to-regexp/get-flags.mjs +28 -0
  34. package/esm2022/lib/framework/mock/http/path-to-regexp/iter.mjs +76 -0
  35. package/esm2022/lib/framework/mock/http/path-to-regexp/lexer.mjs +96 -0
  36. package/esm2022/lib/framework/mock/http/path-to-regexp/loose-replacer.mjs +28 -0
  37. package/esm2022/lib/framework/mock/http/path-to-regexp/model/decode-key-to-string.mjs +17 -0
  38. package/esm2022/lib/framework/mock/http/path-to-regexp/model/encode.mjs +17 -0
  39. package/esm2022/lib/framework/mock/http/path-to-regexp/model/key.mjs +17 -0
  40. package/esm2022/lib/framework/mock/http/path-to-regexp/model/lex-token.mjs +17 -0
  41. package/esm2022/lib/framework/mock/http/path-to-regexp/model/lexer-type.mjs +17 -0
  42. package/esm2022/lib/framework/mock/http/path-to-regexp/model/loose-replacer-provider.mjs +17 -0
  43. package/esm2022/lib/framework/mock/http/path-to-regexp/model/non-delimiter-encoder-provider.mjs +17 -0
  44. package/esm2022/lib/framework/mock/http/path-to-regexp/model/parse-options.mjs +17 -0
  45. package/esm2022/lib/framework/mock/http/path-to-regexp/model/path-to-regexp-options.mjs +17 -0
  46. package/esm2022/lib/framework/mock/http/path-to-regexp/model/route-string-tokenizer.mjs +17 -0
  47. package/esm2022/lib/framework/mock/http/path-to-regexp/model/simple-tokens.mjs +30 -0
  48. package/esm2022/lib/framework/mock/http/path-to-regexp/model/token-data-regexp-factory.mjs +17 -0
  49. package/esm2022/lib/framework/mock/http/path-to-regexp/model/token-type.mjs +17 -0
  50. package/esm2022/lib/framework/mock/http/path-to-regexp/model/token.mjs +17 -0
  51. package/esm2022/lib/framework/mock/http/path-to-regexp/string-to-token-data.mjs +87 -0
  52. package/esm2022/lib/framework/mock/http/path-to-regexp/to-key-regexp.mjs +41 -0
  53. package/esm2022/lib/framework/mock/http/path-to-regexp/to-stringify.mjs +29 -0
  54. package/esm2022/lib/framework/mock/http/path-to-regexp/token-data-to-regexp.mjs +49 -0
  55. package/esm2022/lib/framework/mock/http/path-to-regexp/token-data.mjs +33 -0
  56. package/esm2022/lib/framework/mock/http/util/data-storage.builder.mjs +35 -0
  57. package/esm2022/lib/framework/mock/http/util/http-headers-mock.builder.mjs +138 -0
  58. package/esm2022/lib/framework/mock/http/util/http-headers.util.mjs +56 -0
  59. package/esm2022/lib/framework/mock/http/util/http-method-ref.enum.mjs +60 -0
  60. package/esm2022/lib/framework/mock/http/util/http-mock-response.builder.mjs +117 -0
  61. package/esm2022/lib/framework/mock/http/util/index.mjs +3 -0
  62. package/esm2022/lib/framework/mock/http/xhr/delegate-xhr.mjs +316 -0
  63. package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.impl.mjs +29 -0
  64. package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.mjs +19 -0
  65. package/esm2022/lib/framework/mock/http/xhr/index.mjs +2 -0
  66. package/esm2022/lib/framework/mock/http/xhr/xhr-base.mjs +123 -0
  67. package/esm2022/lib/framework/mock/http/xhr/xhr-proxy-impl.mjs +177 -0
  68. package/esm2022/lib/model/business/index.mjs +5 -0
  69. package/esm2022/lib/model/business/lang/app-bridge-command.mjs +9 -0
  70. package/esm2022/lib/model/business/lang/destroyable.mjs +9 -0
  71. package/esm2022/lib/model/business/lang/identifiable.mjs +9 -0
  72. package/esm2022/lib/model/business/lang/index.mjs +5 -0
  73. package/esm2022/lib/model/business/lang/instantiable.mjs +9 -0
  74. package/esm2022/lib/model/business/mock/http/http-method-mock.mjs +9 -0
  75. package/esm2022/lib/model/business/mock/http/http-mock-config.mjs +9 -0
  76. package/esm2022/lib/model/business/mock/http/http-mock-endpoint.mjs +9 -0
  77. package/esm2022/lib/model/business/mock/http/http-mock-error.mjs +9 -0
  78. package/esm2022/lib/model/business/mock/http/http-mock-interceptor.mjs +9 -0
  79. package/esm2022/lib/model/business/mock/http/http-response-mock.mjs +9 -0
  80. package/esm2022/lib/model/business/mock/http/index.mjs +8 -0
  81. package/esm2022/lib/model/business/mock/http/xhr-proxy.mjs +9 -0
  82. package/esm2022/lib/model/business/ui/dark-mode-config.mjs +9 -0
  83. package/esm2022/lib/model/business/ui/dark-mode-config.provider.mjs +43 -0
  84. package/esm2022/lib/model/business/ui/dark-mode.constant.mjs +16 -0
  85. package/esm2022/lib/model/business/ui/index.mjs +5 -0
  86. package/esm2022/lib/model/business/ui/scroll-behavior.type.mjs +9 -0
  87. package/esm2022/lib/model/business/version/index.mjs +4 -0
  88. package/esm2022/lib/model/business/version/version-config.mjs +9 -0
  89. package/esm2022/lib/model/business/version/version-config.provider.mjs +40 -0
  90. package/esm2022/lib/model/business/version/version.mjs +10 -0
  91. package/esm2022/lib/model/index.mjs +3 -0
  92. package/esm2022/lib/model/service/index.mjs +5 -0
  93. package/esm2022/lib/model/service/mock/http/http-mock.service.mjs +239 -0
  94. package/esm2022/lib/model/service/subscription/subscription.service.mjs +122 -0
  95. package/esm2022/lib/model/service/ui/app-bridge.service.mjs +142 -0
  96. package/esm2022/lib/model/service/ui/dark-mode.service.mjs +183 -0
  97. package/esm2022/lib/model/service/ui/index.mjs +4 -0
  98. package/esm2022/lib/model/service/ui/scroll.service.mjs +93 -0
  99. package/esm2022/lib/model/service/version/version.service.mjs +51 -0
  100. package/{esm2020 → esm2022}/lib/pipe/index.mjs +1 -1
  101. package/esm2022/lib/pipe/safe/safe-html.pipe.mjs +34 -0
  102. package/esm2022/lib/util/aria-role.constant.mjs +16 -0
  103. package/esm2022/lib/util/default-scroll-behavior.mjs +13 -0
  104. package/esm2022/lib/util/empty-string.const.mjs +12 -0
  105. package/esm2022/lib/util/index.mjs +5 -0
  106. package/esm2022/lib/util/js-type.mjs +40 -0
  107. package/esm2022/lib/util/uuid.mjs +126 -0
  108. package/esm2022/public-api.mjs +18 -0
  109. package/fesm2022/angular-toolbox.mjs +3710 -0
  110. package/fesm2022/angular-toolbox.mjs.map +1 -0
  111. package/index.d.ts +5 -5
  112. package/lib/angular-toolbox.module.d.ts +9 -7
  113. package/lib/core/bridge/app-bridge.d.ts +59 -0
  114. package/lib/core/error/app-bridge-error.d.ts +16 -0
  115. package/lib/core/error/http-mock-service-error.d.ts +18 -0
  116. package/lib/core/error/index.d.ts +4 -0
  117. package/lib/core/error/integrity-error.d.ts +18 -0
  118. package/lib/core/error/subscription-error.d.ts +18 -0
  119. package/lib/core/impl/index.d.ts +1 -0
  120. package/lib/core/impl/lang/identifiable-component.d.ts +26 -0
  121. package/lib/core/impl/lang/index.d.ts +1 -0
  122. package/lib/core/impl/version/version.impl.d.ts +42 -0
  123. package/lib/core/index.d.ts +2 -0
  124. package/lib/directive/anchor-link.directive.d.ts +29 -0
  125. package/lib/directive/button-role.directive.d.ts +52 -0
  126. package/lib/directive/content-renderer.directive.d.ts +39 -0
  127. package/lib/directive/index.d.ts +4 -0
  128. package/lib/directive/navigate-to-url.directive.d.ts +23 -0
  129. package/lib/directive/navigation-directive-base.d.ts +19 -0
  130. package/lib/framework/index.d.ts +1 -0
  131. package/lib/framework/mock/http/config/http-mock-parameters.d.ts +13 -0
  132. package/lib/framework/mock/http/config/http-mock.decorator.d.ts +13 -0
  133. package/lib/framework/mock/http/config/index.d.ts +2 -0
  134. package/lib/framework/mock/http/config/route-mock-config.d.ts +30 -0
  135. package/lib/framework/mock/http/core/data-storage.d.ts +38 -0
  136. package/lib/framework/mock/http/event/event-target.impl.d.ts +70 -0
  137. package/lib/framework/mock/http/event/progress-event-mock.d.ts +36 -0
  138. package/lib/framework/mock/http/index.d.ts +3 -0
  139. package/lib/framework/mock/http/path-to-regexp/constants.d.ts +111 -0
  140. package/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.d.ts +24 -0
  141. package/lib/framework/mock/http/path-to-regexp/get-flags.d.ts +25 -0
  142. package/lib/framework/mock/http/path-to-regexp/iter.d.ts +50 -0
  143. package/lib/framework/mock/http/path-to-regexp/lexer.d.ts +24 -0
  144. package/lib/framework/mock/http/path-to-regexp/loose-replacer.d.ts +25 -0
  145. package/lib/framework/mock/http/path-to-regexp/model/decode-key-to-string.d.ts +21 -0
  146. package/lib/framework/mock/http/path-to-regexp/model/encode.d.ts +20 -0
  147. package/lib/framework/mock/http/path-to-regexp/model/key.d.ts +45 -0
  148. package/lib/framework/mock/http/path-to-regexp/model/lex-token.d.ts +34 -0
  149. package/lib/framework/mock/http/path-to-regexp/model/lexer-type.d.ts +21 -0
  150. package/lib/framework/mock/http/path-to-regexp/model/loose-replacer-provider.d.ts +20 -0
  151. package/lib/framework/mock/http/path-to-regexp/model/non-delimiter-encoder-provider.d.ts +21 -0
  152. package/lib/framework/mock/http/path-to-regexp/model/parse-options.d.ts +33 -0
  153. package/lib/framework/mock/http/path-to-regexp/model/path-to-regexp-options.d.ts +52 -0
  154. package/lib/framework/mock/http/path-to-regexp/model/route-string-tokenizer.d.ts +22 -0
  155. package/lib/framework/mock/http/path-to-regexp/model/simple-tokens.d.ts +21 -0
  156. package/lib/framework/mock/http/path-to-regexp/model/token-data-regexp-factory.d.ts +23 -0
  157. package/lib/framework/mock/http/path-to-regexp/model/token-type.d.ts +20 -0
  158. package/lib/framework/mock/http/path-to-regexp/model/token.d.ts +21 -0
  159. package/lib/framework/mock/http/path-to-regexp/string-to-token-data.d.ts +21 -0
  160. package/lib/framework/mock/http/path-to-regexp/to-key-regexp.d.ts +22 -0
  161. package/lib/framework/mock/http/path-to-regexp/to-stringify.d.ts +21 -0
  162. package/lib/framework/mock/http/path-to-regexp/token-data-to-regexp.d.ts +21 -0
  163. package/lib/framework/mock/http/path-to-regexp/token-data.d.ts +32 -0
  164. package/lib/framework/mock/http/util/data-storage.builder.d.ts +25 -0
  165. package/lib/framework/mock/http/util/http-headers-mock.builder.d.ts +106 -0
  166. package/lib/framework/mock/http/util/http-headers.util.d.ts +31 -0
  167. package/lib/framework/mock/http/util/http-method-ref.enum.d.ts +58 -0
  168. package/lib/framework/mock/http/util/http-mock-response.builder.d.ts +83 -0
  169. package/lib/framework/mock/http/util/index.d.ts +2 -0
  170. package/lib/framework/mock/http/xhr/delegate-xhr.d.ts +199 -0
  171. package/lib/framework/mock/http/xhr/http-mock-factory.d.ts +14 -0
  172. package/lib/framework/mock/http/xhr/http-mock-factory.impl.d.ts +24 -0
  173. package/lib/framework/mock/http/xhr/index.d.ts +1 -0
  174. package/lib/framework/mock/http/xhr/xhr-base.d.ts +123 -0
  175. package/lib/framework/mock/http/xhr/xhr-proxy-impl.d.ts +125 -0
  176. package/lib/model/business/index.d.ts +4 -0
  177. package/lib/model/business/lang/app-bridge-command.d.ts +11 -0
  178. package/lib/model/business/lang/destroyable.d.ts +16 -0
  179. package/lib/model/business/lang/identifiable.d.ts +19 -0
  180. package/lib/model/business/lang/index.d.ts +4 -0
  181. package/lib/model/business/lang/instantiable.d.ts +15 -0
  182. package/lib/model/business/mock/http/http-method-mock.d.ts +35 -0
  183. package/lib/model/business/mock/http/http-mock-config.d.ts +28 -0
  184. package/lib/model/business/mock/http/http-mock-endpoint.d.ts +41 -0
  185. package/lib/model/business/mock/http/http-mock-error.d.ts +21 -0
  186. package/lib/model/business/mock/http/http-mock-interceptor.d.ts +27 -0
  187. package/lib/model/business/mock/http/http-response-mock.d.ts +44 -0
  188. package/lib/model/business/mock/http/index.d.ts +7 -0
  189. package/lib/model/business/mock/http/xhr-proxy.d.ts +15 -0
  190. package/lib/model/business/ui/dark-mode-config.d.ts +29 -0
  191. package/lib/model/business/ui/dark-mode-config.provider.d.ts +21 -0
  192. package/lib/model/business/ui/dark-mode.constant.d.ts +15 -0
  193. package/lib/model/business/ui/index.d.ts +4 -0
  194. package/lib/model/business/ui/scroll-behavior.type.d.ts +11 -0
  195. package/lib/model/business/version/index.d.ts +3 -0
  196. package/lib/model/business/version/version-config.d.ts +28 -0
  197. package/lib/model/business/version/version-config.provider.d.ts +22 -0
  198. package/lib/model/business/version/version.d.ts +34 -0
  199. package/lib/model/index.d.ts +2 -0
  200. package/lib/model/service/index.d.ts +4 -0
  201. package/lib/model/service/mock/http/http-mock.service.d.ts +101 -0
  202. package/lib/model/service/subscription/subscription.service.d.ts +66 -0
  203. package/lib/model/service/ui/app-bridge.service.d.ts +80 -0
  204. package/lib/model/service/ui/dark-mode.service.d.ts +99 -0
  205. package/lib/model/service/ui/index.d.ts +3 -0
  206. package/lib/{service → model/service}/ui/scroll.service.d.ts +55 -52
  207. package/lib/model/service/version/version.service.d.ts +30 -0
  208. package/lib/pipe/index.d.ts +1 -1
  209. package/lib/pipe/safe/safe-html.pipe.d.ts +30 -10
  210. package/lib/util/aria-role.constant.d.ts +15 -0
  211. package/lib/util/default-scroll-behavior.d.ts +12 -0
  212. package/lib/util/empty-string.const.d.ts +11 -0
  213. package/lib/util/index.d.ts +4 -0
  214. package/lib/util/js-type.d.ts +39 -0
  215. package/lib/util/uuid.d.ts +89 -0
  216. package/package.json +10 -13
  217. package/public-api.d.ts +14 -3
  218. package/esm2020/lib/angular-toolbox.module.mjs +0 -26
  219. package/esm2020/lib/pipe/safe/safe-html.pipe.mjs +0 -18
  220. package/esm2020/lib/service/index.mjs +0 -4
  221. package/esm2020/lib/service/subscription/subscription.service.mjs +0 -60
  222. package/esm2020/lib/service/ui/dark-mode.service.mjs +0 -167
  223. package/esm2020/lib/service/ui/scroll.service.mjs +0 -79
  224. package/esm2020/public-api.mjs +0 -7
  225. package/fesm2015/angular-toolbox.mjs +0 -356
  226. package/fesm2015/angular-toolbox.mjs.map +0 -1
  227. package/fesm2020/angular-toolbox.mjs +0 -350
  228. package/fesm2020/angular-toolbox.mjs.map +0 -1
  229. package/lib/service/index.d.ts +0 -3
  230. package/lib/service/subscription/subscription.service.d.ts +0 -33
  231. package/lib/service/ui/dark-mode.service.d.ts +0 -92
@@ -1,356 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe, EventEmitter, Injectable, Inject, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/platform-browser';
4
- import { DOCUMENT } from '@angular/common';
5
-
6
- class SafeHtmlPipe {
7
- constructor(_sanitizer) {
8
- this._sanitizer = _sanitizer;
9
- }
10
- transform(value) {
11
- return this._sanitizer.bypassSecurityTrustHtml(value);
12
- }
13
- }
14
- SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
15
- SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafeHtmlPipe, decorators: [{
17
- type: Pipe,
18
- args: [{ name: 'safeHtml' }]
19
- }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
20
-
21
- // --> Internal constants
22
- const STORAGE_KEY = "dark-mode-key";
23
- const CSS_PROP = "dark-mode";
24
- const ADD_ACTION = "add";
25
- const REMOVE_ACTION = "remove";
26
- /**
27
- * The default provider for the DarkModeService configuration. You typically define
28
- * the custom properties in the main NgModule declaration to initialize the app dark mode:
29
- *
30
- * @NgModule({
31
- * ...
32
- * providers: [
33
- * { provide: DARK_MODE_CONFIG, useValue: { enableDarkMode: true} }
34
- * ],
35
- * ...
36
- * s);
37
- */
38
- const DARK_MODE_CONFIG = {
39
- /**
40
- * Indicates whether the dark mode uses browser settings (true), or not (false).
41
- * Default value is false.
42
- */
43
- darkModeEnabled: false,
44
- /**
45
- * Indicates whether the dark mode uses browser settings (true), or not (false).
46
- * Default value is false.
47
- */
48
- detectBrowserSettings: false,
49
- /**
50
- * CSS property name used to set the dark mode look and feel.
51
- * Default value is 'dark-mode'.
52
- */
53
- cssProperty: CSS_PROP,
54
- /**
55
- * Reference to the key value used to persist the dark mode state to local storage.
56
- * Default value is 'dark-mode-key'.
57
- */
58
- storageKey: STORAGE_KEY
59
- };
60
- /**
61
- * A lightweight service that provides Dark Mode implementation for your Angular application.
62
- */
63
- class DarkModeService {
64
- /**
65
- * Creates a new DarkModeService instance.
66
- * @param _document the reference to the Document singleton.
67
- * @param config the reference to the DarkModeConfig provider.
68
- */
69
- constructor(_document, config) {
70
- this._document = _document;
71
- // --> Private properties
72
- this._darkModeEnabled = false;
73
- this._cssProperty = CSS_PROP;
74
- this._storageKey = STORAGE_KEY;
75
- /**
76
- * The callback function that is triggered when the dark mode changes.
77
- * @typeParam EventEmitter<boolean> the value returned by the darkModeEnabled() property.
78
- */
79
- this.change = new EventEmitter(true);
80
- this.initDarkMode(config);
81
- }
82
- /**
83
- * Toogles the dark mode state.
84
- */
85
- toggleDarkMode() {
86
- this._darkModeEnabled ? this.disableDarkMode() : this.enableDarkMode();
87
- }
88
- /**
89
- * Sets the dark mode state to active.
90
- */
91
- enableDarkMode() {
92
- this.setDarkMode(ADD_ACTION);
93
- this.setStoredDarkMode();
94
- }
95
- /**
96
- * Sets the dark mode state to inactive.
97
- */
98
- disableDarkMode() {
99
- this.setDarkMode(REMOVE_ACTION);
100
- this.setStoredDarkMode();
101
- }
102
- /**
103
- * Returns a boolean value that indicates the dark mode state is active (true), or not (false).
104
- * @returns true whether the dark mode state is active; false otherwise.
105
- */
106
- darkModeEnabled() {
107
- return this._darkModeEnabled;
108
- }
109
- /**
110
- * Returns the value of the CSS property as defined by the config provider.
111
- * @returns the value of the CSS property.
112
- */
113
- getCssProperty() {
114
- return this._cssProperty;
115
- }
116
- /**
117
- * Returns the value of the storage key as defined by the config provider.
118
- * @returns the value of the storage key.
119
- */
120
- getStorageKey() {
121
- return this._storageKey;
122
- }
123
- /**
124
- * Removes the dark mode information from local storage.
125
- */
126
- invalidateStorage() {
127
- localStorage.removeItem(this._storageKey);
128
- }
129
- // --> Private methods
130
- initDarkMode(config) {
131
- this._darkModeEnabled = config.darkModeEnabled || false;
132
- this._cssProperty = config.cssProperty || CSS_PROP;
133
- this._storageKey = config.storageKey || STORAGE_KEY;
134
- if (this._darkModeEnabled) {
135
- this.enableDarkMode();
136
- }
137
- else {
138
- this.initStoredDarkMode();
139
- }
140
- if (config.detectBrowserSettings)
141
- this.initBrowserMode();
142
- }
143
- initStoredDarkMode() {
144
- const result = localStorage.getItem(this._storageKey);
145
- if (result === "true")
146
- this.enableDarkMode();
147
- }
148
- setStoredDarkMode() {
149
- const data = String(this._darkModeEnabled);
150
- localStorage.setItem(this._storageKey, data);
151
- }
152
- setDarkMode(action) {
153
- const classList = this._document.body.classList;
154
- if (action === ADD_ACTION) {
155
- classList.add(this._cssProperty);
156
- this._darkModeEnabled = true;
157
- }
158
- else if (action === REMOVE_ACTION) {
159
- classList.remove(this._cssProperty);
160
- this._darkModeEnabled = false;
161
- }
162
- this.change.emit(this._darkModeEnabled);
163
- }
164
- initBrowserMode() {
165
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
166
- this.enableDarkMode();
167
- }
168
- }
169
- }
170
- DarkModeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DarkModeService, deps: [{ token: DOCUMENT }, { token: DARK_MODE_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
171
- DarkModeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DarkModeService, providedIn: 'root' });
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DarkModeService, decorators: [{
173
- type: Injectable,
174
- args: [{
175
- providedIn: 'root'
176
- }]
177
- }], ctorParameters: function () {
178
- return [{ type: Document, decorators: [{
179
- type: Inject,
180
- args: [DOCUMENT]
181
- }] }, { type: undefined, decorators: [{
182
- type: Inject,
183
- args: [DARK_MODE_CONFIG]
184
- }] }];
185
- } });
186
-
187
- class AngularToolboxModule {
188
- }
189
- AngularToolboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AngularToolboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
190
- AngularToolboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AngularToolboxModule, declarations: [SafeHtmlPipe], exports: [SafeHtmlPipe] });
191
- AngularToolboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AngularToolboxModule, providers: [
192
- { provide: DARK_MODE_CONFIG, useValue: DARK_MODE_CONFIG }
193
- ] });
194
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AngularToolboxModule, decorators: [{
195
- type: NgModule,
196
- args: [{
197
- declarations: [
198
- SafeHtmlPipe
199
- ],
200
- providers: [
201
- { provide: DARK_MODE_CONFIG, useValue: DARK_MODE_CONFIG }
202
- ],
203
- exports: [
204
- SafeHtmlPipe
205
- ]
206
- }]
207
- }] });
208
-
209
- /**
210
- * A lightweight service that helps to manage unregistration issues of Angular subscriptions.
211
- */
212
- class SubscriptionService {
213
- constructor() {
214
- /**
215
- * The internal Subscription instances storage.
216
- */
217
- this._subMap = new Map();
218
- }
219
- /**
220
- * Stores a new Subscription instance associated with the specified reference.
221
- *
222
- * @param ref the reference for which to store a new Subscription instance.
223
- * @param subscription the Subscription instance to register.
224
- * @returns a reference to this SubscriptionService instance.
225
- */
226
- register(ref, subscription) {
227
- var _a;
228
- if (!this._subMap.has(ref))
229
- this._subMap.set(ref, []);
230
- (_a = this._subMap.get(ref)) === null || _a === void 0 ? void 0 : _a.push(subscription);
231
- return this;
232
- }
233
- /**
234
- * Unsubscribes and removes all Subscription instances associated with the specified reference.
235
- *
236
- * @param ref the reference for which to remove all Subscription instances.
237
- * @returns true whether the specified reference exists; false otherwise.
238
- */
239
- clearAll(ref) {
240
- var _a;
241
- let result = false;
242
- if (this._subMap.has(ref)) {
243
- (_a = this._subMap.get(ref)) === null || _a === void 0 ? void 0 : _a.forEach(subscription => subscription.unsubscribe());
244
- this._subMap.delete(ref);
245
- result = true;
246
- }
247
- return result;
248
- }
249
- /**
250
- * Returns all Subscription instances associated with the specified reference.
251
- *
252
- * @param ref the reference for which to remove get Subscription instances.
253
- * @returns all Subscription instances associated with the specified reference, or whether
254
- * the specified reference does not exists.
255
- */
256
- get(ref) {
257
- return this._subMap.get(ref) || null;
258
- }
259
- }
260
- SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
261
- SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SubscriptionService, decorators: [{
263
- type: Injectable,
264
- args: [{
265
- providedIn: 'root'
266
- }]
267
- }] });
268
-
269
- /**
270
- * A lightweight service that provides scrolling capabilities to your Angular application.
271
- */
272
- class ScrollService {
273
- /**
274
- * Creates a new ScrollService instance.
275
- * @param _document the reference to the Document singleton.
276
- */
277
- constructor(_document) {
278
- this._document = _document;
279
- /**
280
- * The callback function that is triggered when a scroll operation is performed.
281
- * @typeParam EventEmitter<Event> the reference to the original scroll event.
282
- */
283
- this.onScroll = new EventEmitter();
284
- window.addEventListener("scroll", (e) => {
285
- this.onScroll.next(e);
286
- });
287
- }
288
- /**
289
- * Scrolls the ancestor containers of the element with the specified selector such that
290
- * this element is visible to the user.
291
- * @param selector the selector of the target element.
292
- * @param arg a boolean value:
293
- * If true, the top of the element will be aligned to the top of the visible area of the
294
- * scrollable ancestor.
295
- * If false, the bottom of the element will be aligned to the bottom of the visible area
296
- * of the scrollable ancestor.
297
- * @param arg a dictionary containing the scroll parameters.
298
- */
299
- scrollIntoView(selector, arg) {
300
- const elm = this._document.querySelector(selector);
301
- if (elm)
302
- elm.scrollIntoView(arg);
303
- }
304
- /**
305
- * Scrolls the app viewport to the top of the browser window.
306
- * @param behavior Specifies whether the scrolling should animate smoothly (smooth),
307
- * happen instantly in a single jump (instant), or let the browser
308
- * choose (auto, default).
309
- */
310
- gotoTop(behavior = 'smooth') {
311
- const options = {
312
- top: 0,
313
- behavior: behavior
314
- };
315
- this.scroll(options);
316
- }
317
- /**
318
- * Scrolls the app viewport according to the specified options, into the browser window.
319
- * @param options A dictionary containing the scroll parameters.
320
- */
321
- scroll(options) {
322
- window.scroll(options);
323
- }
324
- /**
325
- * Scrolls the app viewport to the specified x/y coordinates, into the browser window.
326
- * @param x the horizontal pixel value that you want to scroll by.
327
- * @param y the vertical pixel value that you want to scroll by.
328
- */
329
- scrollTo(x, y) {
330
- window.scrollBy(x, y);
331
- }
332
- }
333
- ScrollService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScrollService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
334
- ScrollService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScrollService, providedIn: 'root' });
335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScrollService, decorators: [{
336
- type: Injectable,
337
- args: [{
338
- providedIn: 'root'
339
- }]
340
- }], ctorParameters: function () {
341
- return [{ type: Document, decorators: [{
342
- type: Inject,
343
- args: [DOCUMENT]
344
- }] }];
345
- } });
346
-
347
- /*
348
- * Public API Surface of angular-toolbox
349
- */
350
-
351
- /**
352
- * Generated bundle index. Do not edit.
353
- */
354
-
355
- export { AngularToolboxModule, DARK_MODE_CONFIG, DarkModeService, SafeHtmlPipe, ScrollService, SubscriptionService };
356
- //# sourceMappingURL=angular-toolbox.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular-toolbox.mjs","sources":["../../../projects/angular-toolbox/src/lib/pipe/safe/safe-html.pipe.ts","../../../projects/angular-toolbox/src/lib/service/ui/dark-mode.service.ts","../../../projects/angular-toolbox/src/lib/angular-toolbox.module.ts","../../../projects/angular-toolbox/src/lib/service/subscription/subscription.service.ts","../../../projects/angular-toolbox/src/lib/service/ui/scroll.service.ts","../../../projects/angular-toolbox/src/public-api.ts","../../../projects/angular-toolbox/src/angular-toolbox.ts"],"sourcesContent":["import { DomSanitizer, SafeHtml } from '@angular/platform-browser'\r\nimport { PipeTransform, Pipe } from \"@angular/core\";\r\n\r\n@Pipe({ name: 'safeHtml'})\r\nexport class SafeHtmlPipe implements PipeTransform {\r\n\r\n constructor(private _sanitizer: DomSanitizer) {}\r\n\r\n public transform(value: string): SafeHtml {\r\n return this._sanitizer.bypassSecurityTrustHtml(value);\r\n }\r\n}","import { Inject, Injectable, EventEmitter } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\n// --> Internal constants\nconst STORAGE_KEY: string = \"dark-mode-key\";\nconst CSS_PROP: string = \"dark-mode\";\nconst ADD_ACTION: string = \"add\";\nconst REMOVE_ACTION: string = \"remove\";\n\n/**\n * Defines properties for the DarkModeService configuration.\n */\nexport interface DarkModeConfig {\n\n /**\n * Indicates whether the dark mode is activated by default (true), or not (false).\n */\n darkModeEnabled?: boolean;\n \n /**\n * Indicates whether the dark mode uses browser settings (true), or not (false).\n * When true, this property overrides the darkModeEnabled property.\n */\n detectBrowserSettings?: boolean;\n\n /**\n * CSS property name used to set the dark mode look and feel.\n */\n cssProperty?: string;\n\n /**\n * Reference to the key value used to persist the dark mode state to local storage.\n */\n storageKey?: string;\n}\n\n/**\n * The default provider for the DarkModeService configuration. You typically define\n * the custom properties in the main NgModule declaration to initialize the app dark mode:\n * \n * @NgModule({\n * ...\n * providers: [\n * { provide: DARK_MODE_CONFIG, useValue: { enableDarkMode: true} }\n * ],\n * ...\n * s);\n */\nexport const DARK_MODE_CONFIG: DarkModeConfig = {\n \n /**\n * Indicates whether the dark mode uses browser settings (true), or not (false).\n * Default value is false.\n */\n darkModeEnabled: false,\n \n /**\n * Indicates whether the dark mode uses browser settings (true), or not (false).\n * Default value is false.\n */\n detectBrowserSettings: false,\n \n /**\n * CSS property name used to set the dark mode look and feel.\n * Default value is 'dark-mode'.\n */\n cssProperty: CSS_PROP,\n \n /**\n * Reference to the key value used to persist the dark mode state to local storage.\n * Default value is 'dark-mode-key'.\n */\n storageKey: STORAGE_KEY\n};\n\n@Injectable({\n providedIn: 'root'\n})\n/**\n * A lightweight service that provides Dark Mode implementation for your Angular application.\n */\nexport class DarkModeService {\n\n // --> Private properties\n private _darkModeEnabled: boolean = false;\n private _cssProperty: string = CSS_PROP;\n private _storageKey: string = STORAGE_KEY;\n\n /**\n * The callback function that is triggered when the dark mode changes.\n * @typeParam EventEmitter<boolean> the value returned by the darkModeEnabled() property.\n */\n public readonly change: EventEmitter<boolean> = new EventEmitter<boolean>(true);\n\n /**\n * Creates a new DarkModeService instance.\n * @param _document the reference to the Document singleton.\n * @param config the reference to the DarkModeConfig provider.\n */\n constructor(@Inject(DOCUMENT) private _document: Document, @Inject(DARK_MODE_CONFIG) config: DarkModeConfig) {\n this.initDarkMode(config);\n }\n\n /**\n * Toogles the dark mode state.\n */\n public toggleDarkMode(): void {\n this._darkModeEnabled ? this.disableDarkMode() : this.enableDarkMode();\n }\n\n /**\n * Sets the dark mode state to active.\n */\n public enableDarkMode(): void {\n this.setDarkMode(ADD_ACTION);\n this.setStoredDarkMode();\n }\n\n /**\n * Sets the dark mode state to inactive.\n */\n public disableDarkMode(): void {\n this.setDarkMode(REMOVE_ACTION);\n this.setStoredDarkMode();\n }\n\n /**\n * Returns a boolean value that indicates the dark mode state is active (true), or not (false).\n * @returns true whether the dark mode state is active; false otherwise.\n */\n public darkModeEnabled(): boolean {\n return this._darkModeEnabled;\n }\n\n /**\n * Returns the value of the CSS property as defined by the config provider.\n * @returns the value of the CSS property.\n */\n public getCssProperty(): string {\n return this._cssProperty;\n }\n\n /**\n * Returns the value of the storage key as defined by the config provider.\n * @returns the value of the storage key.\n */\n public getStorageKey(): string {\n return this._storageKey;\n }\n \n /**\n * Removes the dark mode information from local storage.\n */\n public invalidateStorage(): void {\n localStorage.removeItem(this._storageKey);\n }\n\n // --> Private methods\n private initDarkMode(config: DarkModeConfig): void {\n this._darkModeEnabled = config.darkModeEnabled || false;\n this._cssProperty = config.cssProperty || CSS_PROP;\n this._storageKey = config.storageKey || STORAGE_KEY;\n if (this._darkModeEnabled) {\n this.enableDarkMode();\n } else {\n this.initStoredDarkMode();\n }\n if (config.detectBrowserSettings) this.initBrowserMode();\n }\n \n private initStoredDarkMode(): void {\n const result: string | null = localStorage.getItem(this._storageKey);\n if (result === \"true\") this.enableDarkMode();\n }\n\n private setStoredDarkMode(): void {\n const data: string = String(this._darkModeEnabled);\n localStorage.setItem(this._storageKey, data);\n }\n\n private setDarkMode(action: string): void {\n const classList: DOMTokenList = this._document.body.classList;\n if (action === ADD_ACTION) {\n classList.add(this._cssProperty);\n this._darkModeEnabled = true;\n } else if (action === REMOVE_ACTION) {\n classList.remove(this._cssProperty);\n this._darkModeEnabled = false;\n }\n this.change.emit(this._darkModeEnabled);\n }\n\n private initBrowserMode(): void {\n if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {\n this.enableDarkMode();\n }\n }\n}\n\n","import { NgModule } from '@angular/core';\r\nimport { SafeHtmlPipe } from './pipe/safe/safe-html.pipe';\r\nimport { DARK_MODE_CONFIG } from './service/ui/dark-mode.service';\r\n\r\n@NgModule({\r\n declarations: [\r\n SafeHtmlPipe\r\n ],\r\n providers: [\r\n { provide: DARK_MODE_CONFIG, useValue: DARK_MODE_CONFIG }\r\n ],\r\n exports: [\r\n SafeHtmlPipe\r\n ]\r\n})\r\nexport class AngularToolboxModule { }","import { Injectable } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\n/**\n * A lightweight service that helps to manage unregistration issues of Angular subscriptions.\n */\nexport class SubscriptionService {\n\n /**\n * The internal Subscription instances storage.\n */\n private _subMap: Map<String, Array<Subscription>> = new Map<String, Array<Subscription>>();\n\n /**\n * Stores a new Subscription instance associated with the specified reference.\n * \n * @param ref the reference for which to store a new Subscription instance.\n * @param subscription the Subscription instance to register.\n * @returns a reference to this SubscriptionService instance.\n */\n public register(ref: String, subscription: Subscription): SubscriptionService {\n if (!this._subMap.has(ref)) this._subMap.set(ref, []);\n this._subMap.get(ref)?.push(subscription);\n return this;\n }\n \n /**\n * Unsubscribes and removes all Subscription instances associated with the specified reference.\n * \n * @param ref the reference for which to remove all Subscription instances.\n * @returns true whether the specified reference exists; false otherwise.\n */\n public clearAll(ref: String): boolean {\n let result: boolean = false;\n if (this._subMap.has(ref)) {\n this._subMap.get(ref)?.forEach(subscription => subscription.unsubscribe());\n this._subMap.delete(ref);\n result = true;\n }\n return result;\n }\n\n /**\n * Returns all Subscription instances associated with the specified reference.\n * \n * @param ref the reference for which to remove get Subscription instances.\n * @returns all Subscription instances associated with the specified reference, or whether\n * the specified reference does not exists.\n */\n public get(ref: String): Array<Subscription> | null {\n return this._subMap.get(ref) || null;\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { EventEmitter, Inject, Injectable } from '@angular/core';\n\n/**\n * Workaround for the typescript ScrollBehavior declaration.\n */\ndeclare type ScrollBehavior = \"auto\" | \"instant\" | \"smooth\";\n\n@Injectable({\n providedIn: 'root'\n})\n/**\n * A lightweight service that provides scrolling capabilities to your Angular application.\n */\nexport class ScrollService {\n\n /**\n * The callback function that is triggered when a scroll operation is performed.\n * @typeParam EventEmitter<Event> the reference to the original scroll event.\n */\n public readonly onScroll: EventEmitter<Event> = new EventEmitter<Event>();\n\n /**\n * Creates a new ScrollService instance.\n * @param _document the reference to the Document singleton.\n */\n constructor(@Inject(DOCUMENT) private _document: Document) {\n window.addEventListener(\"scroll\", (e: Event) => {\n this.onScroll.next(e);\n });\n }\n\n /**\n * Scrolls the ancestor containers of the element with the specified selector such that \n * this element is visible to the user.\n * @param selector the selector of the target element.\n * @param arg a boolean value:\n * If true, the top of the element will be aligned to the top of the visible area of the\n * scrollable ancestor.\n * If false, the bottom of the element will be aligned to the bottom of the visible area\n * of the scrollable ancestor. \n * @param arg a dictionary containing the scroll parameters.\n */\n public scrollIntoView(selector: string, arg?: boolean | ScrollIntoViewOptions | undefined): void {\n const elm: Element | null = this._document.querySelector(selector);\n if (elm) elm.scrollIntoView(arg);\n }\n\n /**\n * Scrolls the app viewport to the top of the browser window.\n * @param behavior Specifies whether the scrolling should animate smoothly (smooth),\n * happen instantly in a single jump (instant), or let the browser\n * choose (auto, default).\n */\n public gotoTop(behavior: ScrollBehavior = 'smooth'): void {\n const options: ScrollToOptions = {\n top: 0,\n behavior: behavior as any\n };\n this.scroll(options);\n }\n\n /**\n * Scrolls the app viewport according to the specified options, into the browser window.\n * @param options A dictionary containing the scroll parameters.\n */\n public scroll(options?: ScrollToOptions): void {\n window.scroll(options);\n }\n \n /**\n * Scrolls the app viewport to the specified x/y coordinates, into the browser window.\n * @param x the horizontal pixel value that you want to scroll by.\n * @param y the vertical pixel value that you want to scroll by.\n */\n public scrollTo(x: number, y: number): void {\n window.scrollBy(x, y);\n }\n}\n","/*\n * Public API Surface of angular-toolbox\n */\n\nexport * from './lib/angular-toolbox.module';\nexport * from './lib/pipe';\nexport * from './lib/service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAIa,YAAY,CAAA;AAEvB,IAAA,WAAA,CAAoB,UAAwB,EAAA;AAAxB,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAc;KAAI;AAEzC,IAAA,SAAS,CAAC,KAAa,EAAA;QAC5B,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;KACvD;;yGANU,YAAY,EAAA,IAAA,EAAA,CAAA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