@igo2/core 16.3.0 → 17.0.0-next.10

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 (323) hide show
  1. package/activity/index.d.ts +5 -0
  2. package/{lib/activity/index.d.ts → activity/public_api.d.ts} +1 -0
  3. package/{lib/analytics/shared → analytics}/analytics.interface.d.ts +1 -1
  4. package/{lib/analytics/shared → analytics}/analytics.service.d.ts +1 -1
  5. package/analytics/index.d.ts +5 -0
  6. package/{lib/config → config}/config.interface.d.ts +2 -3
  7. package/{lib/config → config}/config.module.d.ts +3 -0
  8. package/config/config.provider.d.ts +6 -0
  9. package/{lib/config → config}/config.service.d.ts +1 -1
  10. package/config/index.d.ts +5 -0
  11. package/{lib/config/index.d.ts → config/public_api.d.ts} +2 -0
  12. package/environment/environment.interface.d.ts +16 -0
  13. package/environment/index.d.ts +5 -0
  14. package/esm2022/activity/activity.interceptor.mjs +32 -0
  15. package/esm2022/activity/activity.module.mjs +30 -0
  16. package/esm2022/activity/activity.service.mjs +32 -0
  17. package/esm2022/activity/igo2-core-activity.mjs +5 -0
  18. package/esm2022/activity/public_api.mjs +4 -0
  19. package/esm2022/analytics/analytics.interface.mjs +2 -0
  20. package/esm2022/analytics/analytics.service.mjs +87 -0
  21. package/esm2022/analytics/igo2-core-analytics.mjs +5 -0
  22. package/esm2022/analytics/public_api.mjs +3 -0
  23. package/esm2022/config/config-deprecated.mjs +27 -0
  24. package/esm2022/config/config.interface.mjs +2 -0
  25. package/esm2022/config/config.module.mjs +26 -0
  26. package/esm2022/config/config.provider.mjs +21 -0
  27. package/esm2022/config/config.service.mjs +98 -0
  28. package/esm2022/config/igo2-core-config.mjs +5 -0
  29. package/esm2022/config/public_api.mjs +6 -0
  30. package/esm2022/config/version.mjs +5 -0
  31. package/esm2022/environment/environment.interface.mjs +2 -0
  32. package/esm2022/environment/igo2-core-environment.mjs +5 -0
  33. package/esm2022/environment/public_api.mjs +2 -0
  34. package/esm2022/gesture/gesture.module.mjs +29 -0
  35. package/esm2022/gesture/gesture.provider.mjs +16 -0
  36. package/esm2022/gesture/igo2-core-gesture.mjs +5 -0
  37. package/esm2022/gesture/public_api.mjs +3 -0
  38. package/esm2022/language/igo2-core-language.mjs +5 -0
  39. package/esm2022/language/language.module.mjs +15 -0
  40. package/esm2022/language/public_api.mjs +3 -0
  41. package/esm2022/language/shared/index.mjs +7 -0
  42. package/esm2022/language/shared/language-mock.provider.mjs +13 -0
  43. package/esm2022/language/shared/language.interface.mjs +3 -0
  44. package/esm2022/language/shared/language.loader.mjs +38 -0
  45. package/esm2022/language/shared/language.provider.mjs +47 -0
  46. package/esm2022/language/shared/language.service.mjs +38 -0
  47. package/esm2022/language/shared/missing-translation.guard.mjs +16 -0
  48. package/esm2022/lib/core.module.mjs +21 -49
  49. package/esm2022/media/igo2-core-media.mjs +5 -0
  50. package/esm2022/media/media.enum.mjs +12 -0
  51. package/esm2022/media/media.service.mjs +82 -0
  52. package/esm2022/media/public_api.mjs +3 -0
  53. package/esm2022/message/igo2-core-message.mjs +5 -0
  54. package/esm2022/message/message.module.mjs +26 -0
  55. package/esm2022/message/public_api.mjs +3 -0
  56. package/esm2022/message/shared/index.mjs +5 -0
  57. package/esm2022/message/shared/message.enum.mjs +10 -0
  58. package/esm2022/message/shared/message.interface.mjs +2 -0
  59. package/esm2022/message/shared/message.provider.mjs +22 -0
  60. package/esm2022/message/shared/message.service.mjs +225 -0
  61. package/esm2022/monitoring/__mocks__/index.mjs +2 -0
  62. package/esm2022/monitoring/__mocks__/monitoring-mock.mjs +7 -0
  63. package/esm2022/monitoring/igo2-core-monitoring.mjs +5 -0
  64. package/esm2022/monitoring/monitoring.provider.mjs +20 -0
  65. package/esm2022/monitoring/public_api.mjs +5 -0
  66. package/esm2022/monitoring/sentry/index.mjs +4 -0
  67. package/esm2022/monitoring/sentry/sentry.interface.mjs +2 -0
  68. package/esm2022/monitoring/sentry/sentry.mjs +29 -0
  69. package/esm2022/monitoring/sentry/sentry.provider.mjs +31 -0
  70. package/esm2022/monitoring/sentry/sentry.utils.mjs +14 -0
  71. package/esm2022/monitoring/shared/any-monitoring.interface.mjs +2 -0
  72. package/esm2022/monitoring/shared/index.mjs +3 -0
  73. package/esm2022/monitoring/shared/monitoring.interface.mjs +2 -0
  74. package/esm2022/network/igo2-core-network.mjs +5 -0
  75. package/esm2022/network/network.interfaces.mjs +2 -0
  76. package/esm2022/network/network.service.mjs +66 -0
  77. package/esm2022/network/public_api.mjs +3 -0
  78. package/esm2022/public_api.mjs +3 -27
  79. package/esm2022/regex/igo2-core-regex.mjs +5 -0
  80. package/esm2022/regex/public_api.mjs +3 -0
  81. package/esm2022/regex/regex.interface.mjs +2 -0
  82. package/esm2022/regex/regex.service.mjs +30 -0
  83. package/esm2022/request/error.interceptor.mjs +72 -0
  84. package/esm2022/request/error.module.mjs +39 -0
  85. package/esm2022/request/igo2-core-request.mjs +5 -0
  86. package/esm2022/request/logging.interceptor.mjs +29 -0
  87. package/esm2022/request/logging.module.mjs +30 -0
  88. package/esm2022/request/public_api.mjs +5 -0
  89. package/esm2022/route/igo2-core-route.mjs +5 -0
  90. package/esm2022/route/public_api.mjs +3 -0
  91. package/esm2022/route/route.interface.mjs +2 -0
  92. package/esm2022/route/route.service.mjs +75 -0
  93. package/esm2022/storage/igo2-core-storage.mjs +5 -0
  94. package/esm2022/storage/public_api.mjs +4 -0
  95. package/esm2022/storage/storage.interface.mjs +13 -0
  96. package/esm2022/storage/storage.mjs +76 -0
  97. package/esm2022/storage/storage.service.mjs +21 -0
  98. package/esm2022/user/igo2-core-user.mjs +5 -0
  99. package/esm2022/user/public_api.mjs +2 -0
  100. package/esm2022/user/user.interface.mjs +2 -0
  101. package/fesm2022/igo2-core-activity.mjs +94 -0
  102. package/fesm2022/igo2-core-activity.mjs.map +1 -0
  103. package/fesm2022/igo2-core-analytics.mjs +93 -0
  104. package/fesm2022/igo2-core-analytics.mjs.map +1 -0
  105. package/fesm2022/igo2-core-config.mjs +177 -0
  106. package/fesm2022/igo2-core-config.mjs.map +1 -0
  107. package/fesm2022/igo2-core-environment.mjs +4 -0
  108. package/fesm2022/igo2-core-environment.mjs.map +1 -0
  109. package/fesm2022/igo2-core-gesture.mjs +48 -0
  110. package/fesm2022/igo2-core-gesture.mjs.map +1 -0
  111. package/fesm2022/igo2-core-language.mjs +164 -0
  112. package/fesm2022/igo2-core-language.mjs.map +1 -0
  113. package/fesm2022/igo2-core-media.mjs +100 -0
  114. package/fesm2022/igo2-core-media.mjs.map +1 -0
  115. package/fesm2022/igo2-core-message.mjs +282 -0
  116. package/fesm2022/igo2-core-message.mjs.map +1 -0
  117. package/fesm2022/igo2-core-monitoring.mjs +101 -0
  118. package/fesm2022/igo2-core-monitoring.mjs.map +1 -0
  119. package/fesm2022/igo2-core-network.mjs +72 -0
  120. package/fesm2022/igo2-core-network.mjs.map +1 -0
  121. package/fesm2022/igo2-core-regex.mjs +36 -0
  122. package/fesm2022/igo2-core-regex.mjs.map +1 -0
  123. package/fesm2022/igo2-core-request.mjs +164 -0
  124. package/fesm2022/igo2-core-request.mjs.map +1 -0
  125. package/fesm2022/igo2-core-route.mjs +81 -0
  126. package/fesm2022/igo2-core-route.mjs.map +1 -0
  127. package/fesm2022/igo2-core-storage.mjs +114 -0
  128. package/fesm2022/igo2-core-storage.mjs.map +1 -0
  129. package/fesm2022/igo2-core-user.mjs +4 -0
  130. package/fesm2022/igo2-core-user.mjs.map +1 -0
  131. package/fesm2022/igo2-core.mjs +25 -1539
  132. package/fesm2022/igo2-core.mjs.map +1 -1
  133. package/gesture/index.d.ts +5 -0
  134. package/gesture/public_api.d.ts +2 -0
  135. package/language/index.d.ts +5 -0
  136. package/{lib/language → language}/language.module.d.ts +1 -3
  137. package/language/public_api.d.ts +2 -0
  138. package/{lib/language → language}/shared/index.d.ts +2 -0
  139. package/language/shared/language-mock.provider.d.ts +2 -0
  140. package/language/shared/language.interface.d.ts +9 -0
  141. package/language/shared/language.loader.d.ts +13 -0
  142. package/language/shared/language.provider.d.ts +8 -0
  143. package/lib/core.module.d.ts +8 -11
  144. package/locale/en.core.json +28 -28
  145. package/locale/en.json +1 -1
  146. package/locale/fr.core.json +28 -28
  147. package/locale/fr.json +1 -1
  148. package/media/index.d.ts +5 -0
  149. package/message/index.d.ts +5 -0
  150. package/{lib/message → message}/message.module.d.ts +4 -3
  151. package/message/public_api.d.ts +2 -0
  152. package/{lib/message → message}/shared/index.d.ts +1 -0
  153. package/{lib/message → message}/shared/message.enum.d.ts +1 -1
  154. package/message/shared/message.provider.d.ts +2 -0
  155. package/{lib/message → message}/shared/message.service.d.ts +2 -2
  156. package/{src/lib/message → message/src}/message.theming.scss +26 -26
  157. package/monitoring/__mocks__/index.d.ts +1 -0
  158. package/monitoring/__mocks__/monitoring-mock.d.ts +4 -0
  159. package/monitoring/index.d.ts +5 -0
  160. package/{lib/monitoring/index.d.ts → monitoring/public_api.d.ts} +1 -0
  161. package/{lib/monitoring → monitoring}/sentry/sentry.utils.d.ts +1 -1
  162. package/monitoring/shared/any-monitoring.interface.d.ts +2 -0
  163. package/network/index.d.ts +5 -0
  164. package/{lib/network → network}/network.service.d.ts +1 -1
  165. package/package.json +101 -9
  166. package/public_api.d.ts +1 -26
  167. package/regex/index.d.ts +5 -0
  168. package/{lib/regex → regex}/regex.service.d.ts +1 -1
  169. package/{lib/request → request}/error.interceptor.d.ts +1 -1
  170. package/request/index.d.ts +5 -0
  171. package/{lib/request/index.d.ts → request/public_api.d.ts} +2 -0
  172. package/route/index.d.ts +5 -0
  173. package/route/public_api.d.ts +2 -0
  174. package/src/core-theme.scss +5 -5
  175. package/src/index.scss +6 -6
  176. package/src/packages.import.scss +5 -4
  177. package/src/style/all-style.scss +3 -3
  178. package/src/style/layout.scss +163 -163
  179. package/src/style/partial/core-utils.scss +5 -5
  180. package/src/style/partial/core.variables.scss +5 -5
  181. package/src/style/style.scss +19 -19
  182. package/src/theming/all-theme.scss +15 -14
  183. package/src/theming/material-theme-override.scss +39 -39
  184. package/src/theming/prebuilt-themes/blue-theme.scss +27 -27
  185. package/src/theming/prebuilt-themes/bluedark-theme.scss +60 -60
  186. package/src/theming/prebuilt-themes/bluedq-theme.scss +60 -60
  187. package/src/theming/prebuilt-themes/bluegrey-theme.scss +26 -26
  188. package/src/theming/prebuilt-themes/dark-theme.scss +26 -26
  189. package/src/theming/prebuilt-themes/deeppurple-theme.scss +26 -26
  190. package/src/theming/prebuilt-themes/indigo-theme.scss +26 -26
  191. package/src/theming/prebuilt-themes/orange-theme.scss +26 -26
  192. package/src/theming/prebuilt-themes/teal-theme.scss +26 -26
  193. package/src/theming/typography.scss +28 -28
  194. package/src/theming/utils/_foreground.scss +22 -22
  195. package/storage/index.d.ts +5 -0
  196. package/{lib/storage → storage}/storage.d.ts +1 -1
  197. package/{lib/storage → storage}/storage.service.d.ts +1 -1
  198. package/style/all-style.css +2 -1
  199. package/theming/prebuilt-themes/blue-theme.css +857 -994
  200. package/theming/prebuilt-themes/bluedark-theme.css +857 -994
  201. package/theming/prebuilt-themes/bluedq-theme.css +857 -994
  202. package/theming/prebuilt-themes/bluegrey-theme.css +857 -994
  203. package/theming/prebuilt-themes/dark-theme.css +857 -1001
  204. package/theming/prebuilt-themes/deeppurple-theme.css +857 -994
  205. package/theming/prebuilt-themes/indigo-theme.css +857 -994
  206. package/theming/prebuilt-themes/orange-theme.css +857 -994
  207. package/theming/prebuilt-themes/teal-theme.css +857 -994
  208. package/user/index.d.ts +5 -0
  209. package/esm2022/lib/activity/activity.interceptor.mjs +0 -32
  210. package/esm2022/lib/activity/activity.module.mjs +0 -30
  211. package/esm2022/lib/activity/activity.service.mjs +0 -32
  212. package/esm2022/lib/activity/index.mjs +0 -3
  213. package/esm2022/lib/analytics/index.mjs +0 -2
  214. package/esm2022/lib/analytics/shared/analytics.interface.mjs +0 -2
  215. package/esm2022/lib/analytics/shared/analytics.service.mjs +0 -87
  216. package/esm2022/lib/analytics/shared/index.mjs +0 -3
  217. package/esm2022/lib/compression/compressedData.interface.mjs +0 -2
  218. package/esm2022/lib/compression/compression.service.mjs +0 -142
  219. package/esm2022/lib/compression/index.mjs +0 -3
  220. package/esm2022/lib/config/config-deprecated.mjs +0 -27
  221. package/esm2022/lib/config/config.interface.mjs +0 -2
  222. package/esm2022/lib/config/config.module.mjs +0 -23
  223. package/esm2022/lib/config/config.provider.mjs +0 -21
  224. package/esm2022/lib/config/config.service.mjs +0 -97
  225. package/esm2022/lib/config/index.mjs +0 -4
  226. package/esm2022/lib/config/version.mjs +0 -5
  227. package/esm2022/lib/environment/environment.interface.mjs +0 -2
  228. package/esm2022/lib/environment/index.mjs +0 -2
  229. package/esm2022/lib/gesture/gesture.module.mjs +0 -29
  230. package/esm2022/lib/gesture/gesture.provider.mjs +0 -16
  231. package/esm2022/lib/language/index.mjs +0 -2
  232. package/esm2022/lib/language/language.module.mjs +0 -38
  233. package/esm2022/lib/language/shared/index.mjs +0 -5
  234. package/esm2022/lib/language/shared/language.interface.mjs +0 -2
  235. package/esm2022/lib/language/shared/language.loader.mjs +0 -31
  236. package/esm2022/lib/language/shared/language.provider.mjs +0 -22
  237. package/esm2022/lib/language/shared/language.service.mjs +0 -38
  238. package/esm2022/lib/language/shared/missing-translation.guard.mjs +0 -16
  239. package/esm2022/lib/media/index.mjs +0 -3
  240. package/esm2022/lib/media/media.enum.mjs +0 -12
  241. package/esm2022/lib/media/media.service.mjs +0 -82
  242. package/esm2022/lib/message/index.mjs +0 -2
  243. package/esm2022/lib/message/message.module.mjs +0 -59
  244. package/esm2022/lib/message/shared/index.mjs +0 -4
  245. package/esm2022/lib/message/shared/message.enum.mjs +0 -10
  246. package/esm2022/lib/message/shared/message.interface.mjs +0 -2
  247. package/esm2022/lib/message/shared/message.service.mjs +0 -224
  248. package/esm2022/lib/monitoring/index.mjs +0 -4
  249. package/esm2022/lib/monitoring/monitoring.provider.mjs +0 -20
  250. package/esm2022/lib/monitoring/sentry/index.mjs +0 -4
  251. package/esm2022/lib/monitoring/sentry/sentry.interface.mjs +0 -2
  252. package/esm2022/lib/monitoring/sentry/sentry.mjs +0 -29
  253. package/esm2022/lib/monitoring/sentry/sentry.provider.mjs +0 -31
  254. package/esm2022/lib/monitoring/sentry/sentry.utils.mjs +0 -12
  255. package/esm2022/lib/monitoring/shared/any-monitoring.interface.mjs +0 -2
  256. package/esm2022/lib/monitoring/shared/index.mjs +0 -3
  257. package/esm2022/lib/monitoring/shared/monitoring.interface.mjs +0 -2
  258. package/esm2022/lib/network/index.mjs +0 -3
  259. package/esm2022/lib/network/network.interfaces.mjs +0 -2
  260. package/esm2022/lib/network/network.service.mjs +0 -66
  261. package/esm2022/lib/regex/index.mjs +0 -3
  262. package/esm2022/lib/regex/regex.interface.mjs +0 -2
  263. package/esm2022/lib/regex/regex.service.mjs +0 -30
  264. package/esm2022/lib/request/error.interceptor.mjs +0 -72
  265. package/esm2022/lib/request/error.module.mjs +0 -39
  266. package/esm2022/lib/request/index.mjs +0 -3
  267. package/esm2022/lib/request/logging.interceptor.mjs +0 -29
  268. package/esm2022/lib/request/logging.module.mjs +0 -30
  269. package/esm2022/lib/route/route.interface.mjs +0 -2
  270. package/esm2022/lib/route/route.service.mjs +0 -75
  271. package/esm2022/lib/storage/index.mjs +0 -4
  272. package/esm2022/lib/storage/storage.interface.mjs +0 -13
  273. package/esm2022/lib/storage/storage.mjs +0 -76
  274. package/esm2022/lib/storage/storage.service.mjs +0 -21
  275. package/esm2022/lib/user/index.mjs +0 -2
  276. package/esm2022/lib/user/user.interface.mjs +0 -2
  277. package/lib/analytics/index.d.ts +0 -1
  278. package/lib/compression/compressedData.interface.d.ts +0 -5
  279. package/lib/compression/compression.service.d.ts +0 -15
  280. package/lib/compression/index.d.ts +0 -2
  281. package/lib/config/config.provider.d.ts +0 -23
  282. package/lib/environment/environment.interface.d.ts +0 -18
  283. package/lib/language/index.d.ts +0 -1
  284. package/lib/language/shared/language.interface.d.ts +0 -3
  285. package/lib/language/shared/language.loader.d.ts +0 -11
  286. package/lib/language/shared/language.provider.d.ts +0 -15
  287. package/lib/message/index.d.ts +0 -1
  288. package/lib/monitoring/shared/any-monitoring.interface.d.ts +0 -2
  289. package/{lib/activity → activity}/activity.interceptor.d.ts +0 -0
  290. package/{lib/activity → activity}/activity.module.d.ts +0 -0
  291. package/{lib/activity → activity}/activity.service.d.ts +0 -0
  292. package/{lib/analytics/shared/index.d.ts → analytics/public_api.d.ts} +1 -1
  293. /package/{lib/config → config}/config-deprecated.d.ts +0 -0
  294. /package/{lib/config → config}/version.d.ts +0 -0
  295. /package/{lib/environment/index.d.ts → environment/public_api.d.ts} +0 -0
  296. /package/{lib/gesture → gesture}/gesture.module.d.ts +0 -0
  297. /package/{lib/gesture → gesture}/gesture.provider.d.ts +0 -0
  298. /package/{lib/language → language}/shared/language.service.d.ts +0 -0
  299. /package/{lib/language → language}/shared/missing-translation.guard.d.ts +0 -0
  300. /package/{lib/media → media}/media.enum.d.ts +0 -0
  301. /package/{lib/media → media}/media.service.d.ts +0 -0
  302. /package/{lib/media/index.d.ts → media/public_api.d.ts} +0 -0
  303. /package/{lib/message → message}/shared/message.interface.d.ts +0 -0
  304. /package/{lib/monitoring → monitoring}/monitoring.provider.d.ts +0 -0
  305. /package/{lib/monitoring → monitoring}/sentry/index.d.ts +0 -0
  306. /package/{lib/monitoring → monitoring}/sentry/sentry.d.ts +0 -0
  307. /package/{lib/monitoring → monitoring}/sentry/sentry.interface.d.ts +0 -0
  308. /package/{lib/monitoring → monitoring}/sentry/sentry.provider.d.ts +0 -0
  309. /package/{lib/monitoring → monitoring}/shared/index.d.ts +0 -0
  310. /package/{lib/monitoring → monitoring}/shared/monitoring.interface.d.ts +0 -0
  311. /package/{lib/network → network}/network.interfaces.d.ts +0 -0
  312. /package/{lib/network/index.d.ts → network/public_api.d.ts} +0 -0
  313. /package/{lib/regex/index.d.ts → regex/public_api.d.ts} +0 -0
  314. /package/{lib/regex → regex}/regex.interface.d.ts +0 -0
  315. /package/{lib/request → request}/error.module.d.ts +0 -0
  316. /package/{lib/request → request}/logging.interceptor.d.ts +0 -0
  317. /package/{lib/request → request}/logging.module.d.ts +0 -0
  318. /package/{lib/route → route}/route.interface.d.ts +0 -0
  319. /package/{lib/route → route}/route.service.d.ts +0 -0
  320. /package/{lib/storage/index.d.ts → storage/public_api.d.ts} +0 -0
  321. /package/{lib/storage → storage}/storage.interface.d.ts +0 -0
  322. /package/{lib/user/index.d.ts → user/public_api.d.ts} +0 -0
  323. /package/{lib/user → user}/user.interface.d.ts +0 -0
@@ -0,0 +1,36 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+ import * as i1 from '@igo2/core/config';
4
+
5
+ class RegexService {
6
+ config;
7
+ options;
8
+ constructor(config) {
9
+ this.config = config;
10
+ this.options = this.config.getConfig('regex');
11
+ }
12
+ getAll() {
13
+ return this.options;
14
+ }
15
+ get(key) {
16
+ if (this.options) {
17
+ return this.options[key];
18
+ }
19
+ return;
20
+ }
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: RegexService, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
22
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: RegexService, providedIn: 'root' });
23
+ }
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: RegexService, decorators: [{
25
+ type: Injectable,
26
+ args: [{
27
+ providedIn: 'root'
28
+ }]
29
+ }], ctorParameters: () => [{ type: i1.ConfigService }] });
30
+
31
+ /**
32
+ * Generated bundle index. Do not edit.
33
+ */
34
+
35
+ export { RegexService };
36
+ //# sourceMappingURL=igo2-core-regex.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"igo2-core-regex.mjs","sources":["../../../packages/core/regex/src/regex.service.ts","../../../packages/core/regex/src/igo2-core-regex.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { ConfigService } from '@igo2/core/config';\n\nimport { RegexOptions } from './regex.interface';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RegexService {\n protected options: RegexOptions;\n\n constructor(private config: ConfigService) {\n this.options = this.config.getConfig('regex');\n }\n\n getAll() {\n return this.options;\n }\n\n get(key) {\n if (this.options) {\n return this.options[key];\n }\n return;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MASa,YAAY,CAAA;AAGH,IAAA,MAAA,CAAA;AAFV,IAAA,OAAO,CAAe;AAEhC,IAAA,WAAA,CAAoB,MAAqB,EAAA;QAArB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAe;QACvC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;KAC/C;IAED,MAAM,GAAA;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC;KACrB;AAED,IAAA,GAAG,CAAC,GAAG,EAAA;AACL,QAAA,IAAI,IAAI,CAAC,OAAO,EAAE;AAChB,YAAA,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SAC1B;QACD,OAAO;KACR;uGAhBU,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cAFX,MAAM,EAAA,CAAA,CAAA;;2FAEP,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -0,0 +1,164 @@
1
+ import { HttpErrorResponse, HTTP_INTERCEPTORS, HttpResponse } from '@angular/common/http';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, NgModule, Optional, SkipSelf } from '@angular/core';
4
+ import * as i1 from '@igo2/core/message';
5
+ import { throwError } from 'rxjs';
6
+ import { catchError, finalize, tap } from 'rxjs/operators';
7
+
8
+ class ErrorInterceptor {
9
+ messageService;
10
+ constructor(messageService) {
11
+ this.messageService = messageService;
12
+ }
13
+ intercept(originalReq, next) {
14
+ const interceptError = originalReq.headers.get('interceptError');
15
+ const req = originalReq.clone({
16
+ headers: originalReq.headers.delete('interceptError')
17
+ });
18
+ if (interceptError === 'false') {
19
+ return next.handle(req);
20
+ }
21
+ const errorContainer = { httpError: undefined };
22
+ return next.handle(req).pipe(catchError((error) => this.handleError(error, errorContainer)), finalize(() => {
23
+ const httpError = errorContainer.httpError;
24
+ if (!httpError) {
25
+ return;
26
+ }
27
+ if (httpError.error.toDisplay) {
28
+ this.handleCaughtError(httpError);
29
+ }
30
+ else if (!httpError.error.caught) {
31
+ this.handleUncaughtError(httpError);
32
+ }
33
+ }));
34
+ }
35
+ handleError(httpError, errorContainer) {
36
+ if (httpError instanceof HttpErrorResponse) {
37
+ const errorObj = httpError.error === 'object' ? httpError.error : {};
38
+ errorObj.message = httpError.error?.message || httpError.statusText;
39
+ errorObj.caught = false;
40
+ httpError = new HttpErrorResponse({
41
+ error: errorObj,
42
+ headers: httpError.headers,
43
+ status: httpError.status,
44
+ statusText: httpError.statusText,
45
+ url: httpError.url
46
+ });
47
+ }
48
+ errorContainer.httpError = httpError;
49
+ return throwError(httpError);
50
+ }
51
+ handleCaughtError(httpError) {
52
+ httpError.error.caught = true;
53
+ this.messageService.error(httpError.error.message, httpError.error.title, {
54
+ progressBar: false
55
+ });
56
+ }
57
+ handleUncaughtError(httpError) {
58
+ httpError.error.caught = true;
59
+ this.messageService.error('igo.core.errors.uncaught.message', 'igo.core.errors.uncaught.title', {
60
+ progressBar: false
61
+ });
62
+ }
63
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: ErrorInterceptor, deps: [{ token: i1.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
64
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: ErrorInterceptor, providedIn: 'root' });
65
+ }
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: ErrorInterceptor, decorators: [{
67
+ type: Injectable,
68
+ args: [{
69
+ providedIn: 'root'
70
+ }]
71
+ }], ctorParameters: () => [{ type: i1.MessageService }] });
72
+
73
+ class IgoErrorModule {
74
+ static forRoot() {
75
+ return {
76
+ ngModule: IgoErrorModule,
77
+ providers: [
78
+ {
79
+ provide: HTTP_INTERCEPTORS,
80
+ useClass: ErrorInterceptor,
81
+ multi: true
82
+ }
83
+ ]
84
+ };
85
+ }
86
+ constructor(parentModule) {
87
+ if (parentModule) {
88
+ throw new Error('IgoErrorModule is already loaded. Import it in the AppModule only');
89
+ }
90
+ }
91
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IgoErrorModule, deps: [{ token: IgoErrorModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
92
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.9", ngImport: i0, type: IgoErrorModule });
93
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IgoErrorModule });
94
+ }
95
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IgoErrorModule, decorators: [{
96
+ type: NgModule,
97
+ args: [{
98
+ imports: [],
99
+ declarations: [],
100
+ exports: []
101
+ }]
102
+ }], ctorParameters: () => [{ type: IgoErrorModule, decorators: [{
103
+ type: Optional
104
+ }, {
105
+ type: SkipSelf
106
+ }] }] });
107
+
108
+ class LoggingInterceptor {
109
+ intercept(req, next) {
110
+ const started = Date.now();
111
+ let ok;
112
+ // extend server response observable with logging
113
+ return next.handle(req).pipe(tap(
114
+ // Succeeds when there is a response; ignore other events
115
+ (event) => (ok = event instanceof HttpResponse ? 'succeeded' : ''),
116
+ // Operation failed; error is an HttpErrorResponse
117
+ (error) => (ok = 'failed')),
118
+ // Log when response observable either completes or errors
119
+ finalize(() => {
120
+ const elapsed = Date.now() - started;
121
+ const msg = `${req.method} "${req.urlWithParams}"
122
+ ${ok} in ${elapsed} ms.`;
123
+ console.log(msg);
124
+ }));
125
+ }
126
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: LoggingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
127
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: LoggingInterceptor });
128
+ }
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: LoggingInterceptor, decorators: [{
130
+ type: Injectable
131
+ }] });
132
+
133
+ class IgoLoggingModule {
134
+ static forRoot() {
135
+ return {
136
+ ngModule: IgoLoggingModule,
137
+ providers: [
138
+ {
139
+ provide: HTTP_INTERCEPTORS,
140
+ useClass: LoggingInterceptor,
141
+ multi: true
142
+ }
143
+ ]
144
+ };
145
+ }
146
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IgoLoggingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
147
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.9", ngImport: i0, type: IgoLoggingModule });
148
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IgoLoggingModule });
149
+ }
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IgoLoggingModule, decorators: [{
151
+ type: NgModule,
152
+ args: [{
153
+ imports: [],
154
+ declarations: [],
155
+ exports: []
156
+ }]
157
+ }] });
158
+
159
+ /**
160
+ * Generated bundle index. Do not edit.
161
+ */
162
+
163
+ export { ErrorInterceptor, IgoErrorModule, IgoLoggingModule, LoggingInterceptor };
164
+ //# sourceMappingURL=igo2-core-request.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"igo2-core-request.mjs","sources":["../../../packages/core/request/src/error.interceptor.ts","../../../packages/core/request/src/error.module.ts","../../../packages/core/request/src/logging.interceptor.ts","../../../packages/core/request/src/logging.module.ts","../../../packages/core/request/src/igo2-core-request.ts"],"sourcesContent":["import {\n HttpErrorResponse,\n HttpEvent,\n HttpHandler,\n HttpInterceptor,\n HttpRequest\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\nimport { MessageService } from '@igo2/core/message';\n\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, finalize } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ErrorInterceptor implements HttpInterceptor {\n constructor(private messageService: MessageService) {}\n\n intercept(\n originalReq: HttpRequest<any>,\n next: HttpHandler\n ): Observable<HttpEvent<any>> {\n const interceptError = originalReq.headers.get('interceptError');\n const req = originalReq.clone({\n headers: originalReq.headers.delete('interceptError')\n });\n if (interceptError === 'false') {\n return next.handle(req);\n }\n const errorContainer = { httpError: undefined };\n return next.handle(req).pipe(\n catchError((error) => this.handleError(error, errorContainer)),\n finalize(() => {\n const httpError = errorContainer.httpError;\n if (!httpError) {\n return;\n }\n\n if (httpError.error.toDisplay) {\n this.handleCaughtError(httpError);\n } else if (!httpError.error.caught) {\n this.handleUncaughtError(httpError);\n }\n })\n );\n }\n\n private handleError(\n httpError: HttpErrorResponse,\n errorContainer: { httpError: HttpErrorResponse }\n ) {\n if (httpError instanceof HttpErrorResponse) {\n const errorObj = httpError.error === 'object' ? httpError.error : {};\n errorObj.message = httpError.error?.message || httpError.statusText;\n errorObj.caught = false;\n\n httpError = new HttpErrorResponse({\n error: errorObj,\n headers: httpError.headers,\n status: httpError.status,\n statusText: httpError.statusText,\n url: httpError.url\n });\n }\n\n errorContainer.httpError = httpError;\n return throwError(httpError);\n }\n\n private handleCaughtError(httpError: HttpErrorResponse) {\n httpError.error.caught = true;\n this.messageService.error(httpError.error.message, httpError.error.title, {\n progressBar: false\n });\n }\n\n private handleUncaughtError(httpError: HttpErrorResponse) {\n httpError.error.caught = true;\n this.messageService.error(\n 'igo.core.errors.uncaught.message',\n 'igo.core.errors.uncaught.title',\n {\n progressBar: false\n }\n );\n }\n}\n","import { HTTP_INTERCEPTORS } from '@angular/common/http';\nimport {\n ModuleWithProviders,\n NgModule,\n Optional,\n SkipSelf\n} from '@angular/core';\n\nimport { ErrorInterceptor } from './error.interceptor';\n\n@NgModule({\n imports: [],\n declarations: [],\n exports: []\n})\nexport class IgoErrorModule {\n static forRoot(): ModuleWithProviders<IgoErrorModule> {\n return {\n ngModule: IgoErrorModule,\n providers: [\n {\n provide: HTTP_INTERCEPTORS,\n useClass: ErrorInterceptor,\n multi: true\n }\n ]\n };\n }\n\n constructor(@Optional() @SkipSelf() parentModule: IgoErrorModule) {\n if (parentModule) {\n throw new Error(\n 'IgoErrorModule is already loaded. Import it in the AppModule only'\n );\n }\n }\n}\n","import {\n HttpEvent,\n HttpHandler,\n HttpInterceptor,\n HttpRequest,\n HttpResponse\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\nimport { Observable } from 'rxjs';\nimport { finalize, tap } from 'rxjs/operators';\n\n@Injectable()\nexport class LoggingInterceptor implements HttpInterceptor {\n intercept(\n req: HttpRequest<any>,\n next: HttpHandler\n ): Observable<HttpEvent<any>> {\n const started = Date.now();\n let ok: string;\n\n // extend server response observable with logging\n return next.handle(req).pipe(\n tap(\n // Succeeds when there is a response; ignore other events\n (event) => (ok = event instanceof HttpResponse ? 'succeeded' : ''),\n // Operation failed; error is an HttpErrorResponse\n (error) => (ok = 'failed')\n ),\n // Log when response observable either completes or errors\n finalize(() => {\n const elapsed = Date.now() - started;\n const msg = `${req.method} \"${req.urlWithParams}\"\n ${ok} in ${elapsed} ms.`;\n\n console.log(msg);\n })\n );\n }\n}\n","import { HTTP_INTERCEPTORS } from '@angular/common/http';\nimport { ModuleWithProviders, NgModule } from '@angular/core';\n\nimport { LoggingInterceptor } from './logging.interceptor';\n\n@NgModule({\n imports: [],\n declarations: [],\n exports: []\n})\nexport class IgoLoggingModule {\n static forRoot(): ModuleWithProviders<IgoLoggingModule> {\n return {\n ngModule: IgoLoggingModule,\n providers: [\n {\n provide: HTTP_INTERCEPTORS,\n useClass: LoggingInterceptor,\n multi: true\n }\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAiBa,gBAAgB,CAAA;AACP,IAAA,cAAA,CAAA;AAApB,IAAA,WAAA,CAAoB,cAA8B,EAAA;QAA9B,IAAc,CAAA,cAAA,GAAd,cAAc,CAAgB;KAAI;IAEtD,SAAS,CACP,WAA6B,EAC7B,IAAiB,EAAA;QAEjB,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AACjE,QAAA,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC;YAC5B,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC;AACtD,SAAA,CAAC,CAAC;AACH,QAAA,IAAI,cAAc,KAAK,OAAO,EAAE;AAC9B,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SACzB;AACD,QAAA,MAAM,cAAc,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAChD,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,C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9B,YAAA,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAClB,CAAC,CACH,CAAC;KACH;uGAzBU,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;2GAAlB,kBAAkB,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,UAAU;;;MCFE,gBAAgB,CAAA;AAC3B,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,gBAAgB;AAC1B,YAAA,SAAS,EAAE;AACT,gBAAA;AACE,oBAAA,OAAO,EAAE,iBAAiB;AAC1B,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,KAAK,EAAE,IAAI;AACZ,iBAAA;AACF,aAAA;SACF,CAAC;KACH;uGAZU,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wGAAhB,gBAAgB,EAAA,CAAA,CAAA;wGAAhB,gBAAgB,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -0,0 +1,81 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Injectable, Inject, Optional } from '@angular/core';
3
+ import * as i1 from '@angular/router';
4
+
5
+ let ROUTE_SERVICE_OPTIONS = new InjectionToken('routeServiceOptions');
6
+ function provideRouteServiceOptions(options) {
7
+ return {
8
+ provide: ROUTE_SERVICE_OPTIONS,
9
+ useValue: options
10
+ };
11
+ }
12
+ class RouteService {
13
+ router;
14
+ route;
15
+ options;
16
+ constructor(router, route, options) {
17
+ this.router = router;
18
+ this.route = route;
19
+ const defaultOptions = {
20
+ centerKey: 'center',
21
+ zoomKey: 'zoom',
22
+ projectionKey: 'projection',
23
+ contextKey: 'context',
24
+ searchKey: 'search',
25
+ visibleOnLayersKey: 'visiblelayers',
26
+ visibleOffLayersKey: 'invisiblelayers',
27
+ directionsCoordKey: 'routing',
28
+ directionsOptionsKey: 'routingOptions',
29
+ toolKey: 'tool',
30
+ wmsUrlKey: 'wmsUrl',
31
+ wmsLayersKey: 'wmsLayers',
32
+ wmtsUrlKey: 'wmtsUrl',
33
+ wmtsLayersKey: 'wmtsLayers',
34
+ arcgisUrlKey: 'arcgisUrl',
35
+ arcgisLayersKey: 'arcgisLayers',
36
+ iarcgisUrlKey: 'iarcgisUrl',
37
+ iarcgisLayersKey: 'iarcgisLayers',
38
+ tarcgisUrlKey: 'tarcgisUrl',
39
+ tarcgisLayersKey: 'tarcgisLayers',
40
+ vectorKey: 'vector'
41
+ };
42
+ this.options = Object.assign({}, defaultOptions, options);
43
+ }
44
+ get queryParams() {
45
+ let url = decodeURIComponent(location.search);
46
+ if (url.includes('¢er=')) {
47
+ url = url.replace('¢er', '&center');
48
+ const queryParams = url
49
+ .slice(1)
50
+ .split('&')
51
+ .map((p) => p.split('='))
52
+ .reduce((obj, pair) => {
53
+ const [key, value] = pair.map(decodeURIComponent);
54
+ obj[key] = value;
55
+ return obj;
56
+ }, {});
57
+ this.router.navigate([], { queryParams });
58
+ }
59
+ return this.route.queryParams;
60
+ }
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: RouteService, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: ROUTE_SERVICE_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
62
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: RouteService, providedIn: 'root' });
63
+ }
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: RouteService, decorators: [{
65
+ type: Injectable,
66
+ args: [{
67
+ providedIn: 'root'
68
+ }]
69
+ }], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: undefined, decorators: [{
70
+ type: Inject,
71
+ args: [ROUTE_SERVICE_OPTIONS]
72
+ }, {
73
+ type: Optional
74
+ }] }] });
75
+
76
+ /**
77
+ * Generated bundle index. Do not edit.
78
+ */
79
+
80
+ export { ROUTE_SERVICE_OPTIONS, RouteService, provideRouteServiceOptions };
81
+ //# sourceMappingURL=igo2-core-route.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"igo2-core-route.mjs","sources":["../../../packages/core/route/src/route.service.ts","../../../packages/core/route/src/igo2-core-route.ts"],"sourcesContent":["import { Inject, Injectable, InjectionToken, Optional } from '@angular/core';\nimport { ActivatedRoute, Params, Router } from '@angular/router';\n\nimport { Observable } from 'rxjs';\n\nimport { RouteServiceOptions } from './route.interface';\n\nexport let ROUTE_SERVICE_OPTIONS = new InjectionToken<RouteServiceOptions>(\n 'routeServiceOptions'\n);\n\nexport function provideRouteServiceOptions(options: RouteServiceOptions) {\n return {\n provide: ROUTE_SERVICE_OPTIONS,\n useValue: options\n };\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RouteService {\n public options: RouteServiceOptions;\n\n constructor(\n private router: Router,\n public route: ActivatedRoute,\n @Inject(ROUTE_SERVICE_OPTIONS)\n @Optional()\n options: RouteServiceOptions\n ) {\n const defaultOptions = {\n centerKey: 'center',\n zoomKey: 'zoom',\n projectionKey: 'projection',\n contextKey: 'context',\n searchKey: 'search',\n visibleOnLayersKey: 'visiblelayers',\n visibleOffLayersKey: 'invisiblelayers',\n directionsCoordKey: 'routing',\n directionsOptionsKey: 'routingOptions',\n toolKey: 'tool',\n wmsUrlKey: 'wmsUrl',\n wmsLayersKey: 'wmsLayers',\n wmtsUrlKey: 'wmtsUrl',\n wmtsLayersKey: 'wmtsLayers',\n arcgisUrlKey: 'arcgisUrl',\n arcgisLayersKey: 'arcgisLayers',\n iarcgisUrlKey: 'iarcgisUrl',\n iarcgisLayersKey: 'iarcgisLayers',\n tarcgisUrlKey: 'tarcgisUrl',\n tarcgisLayersKey: 'tarcgisLayers',\n vectorKey: 'vector'\n };\n this.options = Object.assign({}, defaultOptions, options);\n }\n\n get queryParams(): Observable<Params> {\n let url = decodeURIComponent(location.search);\n if (url.includes('¢er=')) {\n url = url.replace('¢er', '&center');\n const queryParams: any = url\n .slice(1)\n .split('&')\n .map((p) => p.split('='))\n .reduce((obj, pair) => {\n const [key, value] = pair.map(decodeURIComponent);\n obj[key] = value;\n return obj;\n }, {});\n this.router.navigate([], { queryParams });\n }\n return this.route.queryParams;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;IAOW,qBAAqB,GAAG,IAAI,cAAc,CACnD,qBAAqB,EACrB;AAEI,SAAU,0BAA0B,CAAC,OAA4B,EAAA;IACrE,OAAO;AACL,QAAA,OAAO,EAAE,qBAAqB;AAC9B,QAAA,QAAQ,EAAE,OAAO;KAClB,CAAC;AACJ,CAAC;MAKY,YAAY,CAAA;AAIb,IAAA,MAAA,CAAA;AACD,IAAA,KAAA,CAAA;AAJF,IAAA,OAAO,CAAsB;AAEpC,IAAA,WAAA,CACU,MAAc,EACf,KAAqB,EAG5B,OAA4B,EAAA;QAJpB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACf,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;AAK5B,QAAA,MAAM,cAAc,GAAG;AACrB,YAAA,SAAS,EAAE,QAAQ;AACnB,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,YAAY;AAC3B,YAAA,UAAU,EAAE,SAAS;AACrB,YAAA,SAAS,EAAE,QAAQ;AACnB,YAAA,kBAAkB,EAAE,eAAe;AACn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AAG,CAAC;aACZ,EAAE,EAAE,CAAC,CAAC;YACT,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;SAC3C;AACD,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;KAC/B;AApDU,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,sEAMb,qBAAqB,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AANpB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cAFX,MAAM,EAAA,CAAA,CAAA;;2FAEP,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;0BAOI,MAAM;2BAAC,qBAAqB,CAAA;;0BAC5B,QAAQ;;;AC5Bb;;AAEG;;;;"}
@@ -0,0 +1,114 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable } from '@angular/core';
4
+ import * as i1 from '@igo2/core/config';
5
+
6
+ var StorageScope;
7
+ (function (StorageScope) {
8
+ StorageScope["SESSION"] = "Session";
9
+ StorageScope["LOCAL"] = "Local";
10
+ })(StorageScope || (StorageScope = {}));
11
+ var StorageServiceEventEnum;
12
+ (function (StorageServiceEventEnum) {
13
+ StorageServiceEventEnum["ADDED"] = "Added";
14
+ StorageServiceEventEnum["MODIFIED"] = "Modified";
15
+ StorageServiceEventEnum["REMOVED"] = "Removed";
16
+ StorageServiceEventEnum["CLEARED"] = "Cleared";
17
+ })(StorageServiceEventEnum || (StorageServiceEventEnum = {}));
18
+
19
+ class BaseStorage {
20
+ options;
21
+ storageChange$ = new BehaviorSubject(undefined);
22
+ constructor(config) {
23
+ this.options = config.getConfig('storage') || { key: 'igo' };
24
+ }
25
+ /**
26
+ * Use to get the data found in storage file
27
+ */
28
+ get(key, scope) {
29
+ let value;
30
+ if (!scope || scope === StorageScope.SESSION) {
31
+ value = sessionStorage.getItem(`${this.options.key}.${key}`);
32
+ }
33
+ if (scope === StorageScope.LOCAL || (!value && !scope)) {
34
+ value = localStorage.getItem(`${this.options.key}.${key}`);
35
+ }
36
+ if (value) {
37
+ try {
38
+ value = JSON.parse(value);
39
+ }
40
+ catch {
41
+ value = value;
42
+ }
43
+ }
44
+ return value;
45
+ }
46
+ set(key, value, scope = StorageScope.LOCAL) {
47
+ const previousValue = this.get(key, scope);
48
+ if (scope === StorageScope.SESSION) {
49
+ sessionStorage.setItem(`${this.options.key}.${key}`, JSON.stringify(value));
50
+ }
51
+ else {
52
+ localStorage.setItem(`${this.options.key}.${key}`, JSON.stringify(value));
53
+ }
54
+ const currentValue = this.get(key, scope);
55
+ if (currentValue !== previousValue) {
56
+ this.storageChange$.next({
57
+ key,
58
+ scope,
59
+ event: previousValue !== undefined
60
+ ? StorageServiceEventEnum.MODIFIED
61
+ : StorageServiceEventEnum.ADDED,
62
+ previousValue,
63
+ currentValue
64
+ });
65
+ }
66
+ }
67
+ remove(key, scope = StorageScope.LOCAL) {
68
+ const previousValue = this.get(key, scope);
69
+ if (scope === StorageScope.SESSION) {
70
+ sessionStorage.removeItem(`${this.options.key}.${key}`);
71
+ }
72
+ else {
73
+ localStorage.removeItem(`${this.options.key}.${key}`);
74
+ }
75
+ this.storageChange$.next({
76
+ key,
77
+ scope,
78
+ event: StorageServiceEventEnum.REMOVED,
79
+ previousValue
80
+ });
81
+ }
82
+ clear(scope = StorageScope.LOCAL) {
83
+ if (scope === StorageScope.SESSION) {
84
+ sessionStorage.clear();
85
+ }
86
+ else {
87
+ localStorage.clear();
88
+ }
89
+ this.storageChange$.next({ scope, event: StorageServiceEventEnum.CLEARED });
90
+ }
91
+ }
92
+
93
+ class StorageService extends BaseStorage {
94
+ config;
95
+ constructor(config) {
96
+ super(config);
97
+ this.config = config;
98
+ }
99
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: StorageService, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
100
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: StorageService, providedIn: 'root' });
101
+ }
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: StorageService, decorators: [{
103
+ type: Injectable,
104
+ args: [{
105
+ providedIn: 'root'
106
+ }]
107
+ }], ctorParameters: () => [{ type: i1.ConfigService }] });
108
+
109
+ /**
110
+ * Generated bundle index. Do not edit.
111
+ */
112
+
113
+ export { BaseStorage, StorageScope, StorageService, StorageServiceEventEnum };
114
+ //# sourceMappingURL=igo2-core-storage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"igo2-core-storage.mjs","sources":["../../../packages/core/storage/src/storage.interface.ts","../../../packages/core/storage/src/storage.ts","../../../packages/core/storage/src/storage.service.ts","../../../packages/core/storage/src/igo2-core-storage.ts"],"sourcesContent":["export enum StorageScope {\n SESSION = 'Session',\n LOCAL = 'Local'\n}\n\nexport interface StorageOptions {\n key: string;\n}\n\nexport interface StorageServiceEvent {\n key?: string;\n scope: StorageScope;\n event: StorageServiceEventEnum;\n previousValue?: any;\n currentValue?: any;\n}\n\nexport enum StorageServiceEventEnum {\n ADDED = 'Added',\n MODIFIED = 'Modified',\n REMOVED = 'Removed',\n CLEARED = 'Cleared'\n}\n","import { ConfigService } from '@igo2/core/config';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport {\n StorageOptions,\n StorageScope,\n StorageServiceEvent,\n StorageServiceEventEnum\n} from './storage.interface';\n\nexport abstract class BaseStorage<T extends StorageOptions = StorageOptions> {\n protected options?: T;\n\n public storageChange$: BehaviorSubject<StorageServiceEvent> =\n new BehaviorSubject(undefined);\n\n constructor(config: ConfigService) {\n this.options = config.getConfig<T>('storage') || ({ key: 'igo' } as T);\n }\n\n /**\n * Use to get the data found in storage file\n */\n get(key: string, scope?: StorageScope): string | object | boolean | number {\n let value: any;\n\n if (!scope || scope === StorageScope.SESSION) {\n value = sessionStorage.getItem(`${this.options.key}.${key}`);\n }\n\n if (scope === StorageScope.LOCAL || (!value && !scope)) {\n value = localStorage.getItem(`${this.options.key}.${key}`);\n }\n\n if (value) {\n try {\n value = JSON.parse(value);\n } catch {\n value = value;\n }\n }\n\n return value;\n }\n\n set(\n key: string,\n value: string | object | boolean | number,\n scope: StorageScope = StorageScope.LOCAL\n ) {\n const previousValue = this.get(key, scope);\n if (scope === StorageScope.SESSION) {\n sessionStorage.setItem(\n `${this.options.key}.${key}`,\n JSON.stringify(value)\n );\n } else {\n localStorage.setItem(`${this.options.key}.${key}`, JSON.stringify(value));\n }\n const currentValue = this.get(key, scope);\n\n if (currentValue !== previousValue) {\n this.storageChange$.next({\n key,\n scope,\n event:\n previousValue !== undefined\n ? StorageServiceEventEnum.MODIFIED\n : StorageServiceEventEnum.ADDED,\n previousValue,\n currentValue\n });\n }\n }\n\n remove(key: string, scope: StorageScope = StorageScope.LOCAL) {\n const previousValue = this.get(key, scope);\n if (scope === StorageScope.SESSION) {\n sessionStorage.removeItem(`${this.options.key}.${key}`);\n } else {\n localStorage.removeItem(`${this.options.key}.${key}`);\n }\n this.storageChange$.next({\n key,\n scope,\n event: StorageServiceEventEnum.REMOVED,\n previousValue\n });\n }\n\n clear(scope: StorageScope = StorageScope.LOCAL) {\n if (scope === StorageScope.SESSION) {\n sessionStorage.clear();\n } else {\n localStorage.clear();\n }\n this.storageChange$.next({ scope, event: StorageServiceEventEnum.CLEARED });\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { ConfigService } from '@igo2/core/config';\n\nimport { BaseStorage } from './storage';\nimport { StorageOptions } from './storage.interface';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class StorageService extends BaseStorage<StorageOptions> {\n constructor(private config: ConfigService) {\n super(config);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;IAAY,aAGX;AAHD,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACjB,CAAC,EAHW,YAAY,KAAZ,YAAY,GAGvB,EAAA,CAAA,CAAA,CAAA;IAcW,wBAKX;AALD,CAAA,UAAY,uBAAuB,EAAA;AACjC,IAAA,uBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,uBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,uBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,uBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACrB,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,GAKlC,EAAA,CAAA,CAAA;;MCXqB,WAAW,CAAA;AACrB,IAAA,OAAO,CAAK;AAEf,IAAA,cAAc,GACnB,IAAI,eAAe,CAAC,SAAS,CAAC,CAAC;AAEjC,IAAA,WAAA,CAAY,MAAqB,EAAA;AAC/B,QAAA,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,SAAS,CAAI,SAAS,CAAC,IAAK,EAAE,GAAG,EAAE,KAAK,EAAQ,CAAC;KACxE;AAED;;AAEG;IACH,GAAG,CAAC,GAAW,EAAE,KAAoB,EAAA;AACnC,QAAA,IAAI,KAAU,CAAC;QAEf,IAAI,CAAC,KAAK,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CAAC,CAAC;KAC7E;AACF;;ACzFK,MAAO,cAAe,SAAQ,WAA2B,CAAA;AACzC,IAAA,MAAA,CAAA;AAApB,IAAA,WAAA,CAAoB,MAAqB,EAAA;QACvC,KAAK,CAAC,MAAM,CAAC,CAAC;QADI,IAAM,CAAA,MAAA,GAAN,MAAM,CAAe;KAExC;uGAHU,cAAc,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAd,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cAFb,MAAM,EAAA,CAAA,CAAA;;2FAEP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ //# sourceMappingURL=igo2-core-user.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"igo2-core-user.mjs","sources":["../../../packages/core/user/src/igo2-core-user.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"AAAA;;AAEG"}