@acorex/core 16.0.2 → 17.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. package/common/README.md +3 -0
  2. package/common/countries/countries.data.d.ts +2 -0
  3. package/common/countries/country.d.ts +13 -0
  4. package/common/index.d.ts +2 -0
  5. package/config/README.md +3 -0
  6. package/config/index.d.ts +2 -0
  7. package/config/lib/configs.d.ts +6 -0
  8. package/config/lib/configs.service.d.ts +12 -0
  9. package/date-time/README.md +3 -0
  10. package/date-time/index.d.ts +10 -0
  11. package/date-time/lib/calendar.service.d.ts +27 -0
  12. package/date-time/lib/dateTime.config.d.ts +12 -0
  13. package/date-time/lib/datetime.class.d.ts +138 -0
  14. package/date-time/lib/datetime.module.d.ts +8 -0
  15. package/date-time/lib/datetime.pipe.d.ts +12 -0
  16. package/date-time/lib/formatters/datetime-formatter.d.ts +19 -0
  17. package/date-time/lib/formatters/timeleft-formatter.d.ts +16 -0
  18. package/date-time/lib/georgian.calendar.d.ts +21 -0
  19. package/date-time/lib/holidays.loader.d.ts +21 -0
  20. package/date-time/lib/jalali.calendar.d.ts +40 -0
  21. package/esm2022/common/acorex-core-common.mjs +5 -0
  22. package/esm2022/common/countries/countries.data.mjs +2625 -0
  23. package/esm2022/common/countries/country.mjs +2 -0
  24. package/esm2022/common/index.mjs +3 -0
  25. package/esm2022/config/acorex-core-config.mjs +5 -0
  26. package/esm2022/config/index.mjs +3 -0
  27. package/esm2022/config/lib/configs.mjs +7 -0
  28. package/esm2022/config/lib/configs.service.mjs +27 -0
  29. package/esm2022/date-time/acorex-core-date-time.mjs +5 -0
  30. package/esm2022/date-time/index.mjs +11 -0
  31. package/esm2022/date-time/lib/calendar.service.mjs +100 -0
  32. package/esm2022/date-time/lib/dateTime.config.mjs +50 -0
  33. package/esm2022/date-time/lib/datetime.class.mjs +337 -0
  34. package/esm2022/date-time/lib/datetime.module.mjs +27 -0
  35. package/esm2022/date-time/lib/datetime.pipe.mjs +29 -0
  36. package/esm2022/date-time/lib/formatters/datetime-formatter.mjs +32 -0
  37. package/esm2022/date-time/lib/formatters/timeleft-formatter.mjs +91 -0
  38. package/esm2022/date-time/lib/georgian.calendar.mjs +203 -0
  39. package/esm2022/date-time/lib/holidays.loader.mjs +13 -0
  40. package/esm2022/date-time/lib/jalali.calendar.mjs +440 -0
  41. package/esm2022/events/acorex-core-events.mjs +5 -0
  42. package/esm2022/events/index.mjs +3 -0
  43. package/esm2022/events/lib/event.service.mjs +43 -0
  44. package/esm2022/events/lib/event.type.mjs +6 -0
  45. package/esm2022/file/acorex-core-file.mjs +5 -0
  46. package/esm2022/file/index.mjs +7 -0
  47. package/esm2022/file/lib/file-download-ref.class.mjs +12 -0
  48. package/esm2022/file/lib/file-download-result.class.mjs +45 -0
  49. package/esm2022/file/lib/file-size-formatter.mjs +24 -0
  50. package/esm2022/file/lib/file-upload-ref.class.mjs +12 -0
  51. package/esm2022/file/lib/file.module.mjs +20 -0
  52. package/esm2022/file/lib/file.service.mjs +103 -0
  53. package/esm2022/format/acorex-core-format.mjs +5 -0
  54. package/esm2022/format/index.mjs +8 -0
  55. package/esm2022/format/lib/format.config.mjs +3 -0
  56. package/esm2022/format/lib/format.module.mjs +64 -0
  57. package/esm2022/format/lib/format.pipe.mjs +37 -0
  58. package/esm2022/format/lib/format.service.mjs +95 -0
  59. package/esm2022/format/lib/format.types.mjs +2 -0
  60. package/esm2022/format/lib/formatters/number-formatter.mjs +74 -0
  61. package/esm2022/format/lib/formatters/string-formatter.mjs +15 -0
  62. package/esm2022/image/acorex-core-image.mjs +5 -0
  63. package/esm2022/image/index.mjs +2 -0
  64. package/esm2022/image/lib/image.service.mjs +43 -0
  65. package/esm2022/index.mjs +2 -44
  66. package/esm2022/memorize/acorex-core-memorize.mjs +5 -0
  67. package/esm2022/memorize/index.mjs +2 -0
  68. package/esm2022/memorize/lib/memorize.decorator.mjs +19 -0
  69. package/esm2022/pipes/acorex-core-pipes.mjs +5 -0
  70. package/esm2022/pipes/index.mjs +2 -0
  71. package/esm2022/pipes/lib/safe/safe.pipe.mjs +38 -0
  72. package/esm2022/platform/acorex-core-platform.mjs +5 -0
  73. package/esm2022/platform/index.mjs +2 -0
  74. package/esm2022/platform/lib/platform.service.mjs +225 -0
  75. package/esm2022/storage/acorex-core-storage.mjs +5 -0
  76. package/esm2022/storage/cookie-storage.service.mjs +202 -0
  77. package/esm2022/storage/index.mjs +5 -0
  78. package/esm2022/storage/local-storage.service.mjs +58 -0
  79. package/esm2022/storage/session-storage.service.mjs +22 -0
  80. package/esm2022/storage/storage.interface.mjs +2 -0
  81. package/esm2022/translation/acorex-core-translation.mjs +5 -0
  82. package/esm2022/translation/index.mjs +9 -0
  83. package/esm2022/translation/lib/translation-scope.resolver.mjs +11 -0
  84. package/esm2022/translation/lib/translation.config.mjs +20 -0
  85. package/esm2022/translation/lib/translation.loader.mjs +14 -0
  86. package/esm2022/translation/lib/translation.module.mjs +40 -0
  87. package/esm2022/translation/lib/translation.service.mjs +173 -0
  88. package/esm2022/translation/lib/translation.types.mjs +2 -0
  89. package/esm2022/translation/lib/translator.directive.mjs +28 -0
  90. package/esm2022/translation/lib/translator.pipe.mjs +23 -0
  91. package/esm2022/types/acorex-core-types.mjs +5 -0
  92. package/esm2022/types/index.mjs +2 -0
  93. package/esm2022/utils/acorex-core-utils.mjs +5 -0
  94. package/esm2022/utils/index.mjs +6 -0
  95. package/esm2022/utils/lib/auto-unsubscribe.mjs +36 -0
  96. package/esm2022/utils/lib/color-util.mjs +111 -0
  97. package/esm2022/utils/lib/drawing-util.mjs +35 -0
  98. package/esm2022/utils/lib/html-util.mjs +39 -0
  99. package/esm2022/utils/lib/string-util.mjs +19 -0
  100. package/esm2022/validation/acorex-core-validation.mjs +5 -0
  101. package/esm2022/validation/index.mjs +18 -0
  102. package/esm2022/validation/lib/rules/between-rule.mjs +31 -0
  103. package/esm2022/validation/lib/rules/callback-rule.mjs +29 -0
  104. package/esm2022/validation/lib/rules/equal-rule.mjs +26 -0
  105. package/esm2022/validation/lib/rules/greater-than.mjs +29 -0
  106. package/esm2022/validation/lib/rules/length-rule.mjs +26 -0
  107. package/esm2022/validation/lib/rules/less-than-rule.mjs +29 -0
  108. package/esm2022/validation/lib/rules/maxlength-rule.mjs +27 -0
  109. package/esm2022/validation/lib/rules/minlength-rule.mjs +26 -0
  110. package/esm2022/validation/lib/rules/regex-rule.mjs +49 -0
  111. package/esm2022/validation/lib/rules/required-rule.mjs +36 -0
  112. package/esm2022/validation/lib/validation.config.mjs +33 -0
  113. package/esm2022/validation/lib/validation.module.mjs +84 -0
  114. package/esm2022/validation/lib/validation.service.mjs +98 -0
  115. package/esm2022/validation/lib/validation.types.mjs +3 -0
  116. package/events/README.md +3 -0
  117. package/events/index.d.ts +2 -0
  118. package/{lib/services → events/lib}/event.service.d.ts +8 -0
  119. package/events/lib/event.type.d.ts +5 -0
  120. package/fesm2022/acorex-core-common.mjs +2631 -0
  121. package/fesm2022/acorex-core-common.mjs.map +1 -0
  122. package/fesm2022/acorex-core-config.mjs +39 -0
  123. package/fesm2022/acorex-core-config.mjs.map +1 -0
  124. package/fesm2022/acorex-core-date-time.mjs +1305 -0
  125. package/fesm2022/acorex-core-date-time.mjs.map +1 -0
  126. package/fesm2022/acorex-core-events.mjs +56 -0
  127. package/fesm2022/acorex-core-events.mjs.map +1 -0
  128. package/fesm2022/acorex-core-file.mjs +214 -0
  129. package/fesm2022/acorex-core-file.mjs.map +1 -0
  130. package/fesm2022/acorex-core-format.mjs +282 -0
  131. package/fesm2022/acorex-core-format.mjs.map +1 -0
  132. package/fesm2022/acorex-core-image.mjs +50 -0
  133. package/fesm2022/acorex-core-image.mjs.map +1 -0
  134. package/fesm2022/acorex-core-memorize.mjs +26 -0
  135. package/fesm2022/acorex-core-memorize.mjs.map +1 -0
  136. package/fesm2022/acorex-core-pipes.mjs +44 -0
  137. package/fesm2022/acorex-core-pipes.mjs.map +1 -0
  138. package/fesm2022/acorex-core-platform.mjs +232 -0
  139. package/fesm2022/acorex-core-platform.mjs.map +1 -0
  140. package/fesm2022/acorex-core-storage.mjs +285 -0
  141. package/fesm2022/acorex-core-storage.mjs.map +1 -0
  142. package/fesm2022/acorex-core-translation.mjs +293 -0
  143. package/fesm2022/acorex-core-translation.mjs.map +1 -0
  144. package/fesm2022/acorex-core-types.mjs +6 -0
  145. package/fesm2022/acorex-core-types.mjs.map +1 -0
  146. package/fesm2022/acorex-core-utils.mjs +247 -0
  147. package/fesm2022/acorex-core-utils.mjs.map +1 -0
  148. package/fesm2022/acorex-core-validation.mjs +488 -0
  149. package/fesm2022/acorex-core-validation.mjs.map +1 -0
  150. package/fesm2022/acorex-core.mjs +2 -2309
  151. package/fesm2022/acorex-core.mjs.map +1 -1
  152. package/file/README.md +3 -0
  153. package/file/index.d.ts +6 -0
  154. package/file/lib/file-download-ref.class.d.ts +6 -0
  155. package/file/lib/file-download-result.class.d.ts +8 -0
  156. package/file/lib/file-size-formatter.d.ts +16 -0
  157. package/file/lib/file-upload-ref.class.d.ts +5 -0
  158. package/file/lib/file.module.d.ts +7 -0
  159. package/file/lib/file.service.d.ts +18 -0
  160. package/format/README.md +3 -0
  161. package/format/index.d.ts +7 -0
  162. package/format/lib/format.config.d.ts +5 -0
  163. package/format/lib/format.module.d.ts +18 -0
  164. package/format/lib/format.pipe.d.ts +12 -0
  165. package/format/lib/format.service.d.ts +43 -0
  166. package/format/lib/format.types.d.ts +4 -0
  167. package/format/lib/formatters/number-formatter.d.ts +23 -0
  168. package/format/lib/formatters/string-formatter.d.ts +14 -0
  169. package/image/README.md +3 -0
  170. package/image/index.d.ts +1 -0
  171. package/image/lib/image.service.d.ts +11 -0
  172. package/index.d.ts +1 -43
  173. package/memorize/README.md +3 -0
  174. package/memorize/index.d.ts +1 -0
  175. package/memorize/lib/memorize.decorator.d.ts +1 -0
  176. package/package.json +98 -5
  177. package/pipes/README.md +3 -0
  178. package/pipes/index.d.ts +1 -0
  179. package/pipes/lib/safe/safe.pipe.d.ts +10 -0
  180. package/platform/README.md +3 -0
  181. package/platform/index.d.ts +1 -0
  182. package/{lib/platform → platform/lib}/platform.service.d.ts +14 -6
  183. package/storage/README.md +3 -0
  184. package/storage/cookie-storage.service.d.ts +104 -0
  185. package/storage/index.d.ts +4 -0
  186. package/storage/local-storage.service.d.ts +16 -0
  187. package/storage/session-storage.service.d.ts +10 -0
  188. package/storage/storage.interface.d.ts +14 -0
  189. package/translation/README.md +3 -0
  190. package/translation/index.d.ts +8 -0
  191. package/translation/lib/translation-scope.resolver.d.ts +2 -0
  192. package/translation/lib/translation.config.d.ts +14 -0
  193. package/translation/lib/translation.loader.d.ts +14 -0
  194. package/translation/lib/translation.module.d.ts +8 -0
  195. package/translation/lib/translation.service.d.ts +31 -0
  196. package/translation/lib/translation.types.d.ts +10 -0
  197. package/translation/lib/translator.directive.d.ts +12 -0
  198. package/translation/lib/translator.pipe.d.ts +12 -0
  199. package/types/README.md +3 -0
  200. package/types/index.d.ts +2 -0
  201. package/utils/README.md +3 -0
  202. package/utils/index.d.ts +5 -0
  203. package/utils/lib/auto-unsubscribe.d.ts +12 -0
  204. package/utils/lib/color-util.d.ts +24 -0
  205. package/utils/lib/drawing-util.d.ts +18 -0
  206. package/utils/lib/html-util.d.ts +5 -0
  207. package/utils/lib/string-util.d.ts +6 -0
  208. package/validation/README.md +3 -0
  209. package/validation/index.d.ts +14 -0
  210. package/validation/lib/rules/between-rule.d.ts +18 -0
  211. package/validation/lib/rules/callback-rule.d.ts +23 -0
  212. package/validation/lib/rules/equal-rule.d.ts +17 -0
  213. package/validation/lib/rules/greater-than.d.ts +17 -0
  214. package/validation/lib/rules/length-rule.d.ts +17 -0
  215. package/validation/lib/rules/less-than-rule.d.ts +17 -0
  216. package/validation/lib/rules/maxlength-rule.d.ts +16 -0
  217. package/validation/lib/rules/minlength-rule.d.ts +16 -0
  218. package/validation/lib/rules/regex-rule.d.ts +17 -0
  219. package/validation/lib/rules/required-rule.d.ts +16 -0
  220. package/validation/lib/validation.config.d.ts +15 -0
  221. package/validation/lib/validation.module.d.ts +17 -0
  222. package/validation/lib/validation.service.d.ts +35 -0
  223. package/validation/lib/validation.types.d.ts +21 -0
  224. package/esm2022/lib/classes/base-page.class.mjs +0 -26
  225. package/esm2022/lib/classes/color.class.mjs +0 -49
  226. package/esm2022/lib/classes/datetime.class.mjs +0 -323
  227. package/esm2022/lib/classes/menu.class.mjs +0 -35
  228. package/esm2022/lib/classes/navigator.class.mjs +0 -2
  229. package/esm2022/lib/classes/popup.class.mjs +0 -2
  230. package/esm2022/lib/classes/promise.class.mjs +0 -21
  231. package/esm2022/lib/classes/sectionlist.class.mjs +0 -2
  232. package/esm2022/lib/classes/select.class.mjs +0 -8
  233. package/esm2022/lib/core.module.mjs +0 -27
  234. package/esm2022/lib/error/error.class.mjs +0 -2
  235. package/esm2022/lib/error/error.module.mjs +0 -19
  236. package/esm2022/lib/error/error.service.mjs +0 -22
  237. package/esm2022/lib/events/keyboard.mjs +0 -2
  238. package/esm2022/lib/http/http-error.class.mjs +0 -2
  239. package/esm2022/lib/http/http-events.interceptor.mjs +0 -3
  240. package/esm2022/lib/http/http-request.class.mjs +0 -2
  241. package/esm2022/lib/http/http-result.class.mjs +0 -25
  242. package/esm2022/lib/http/http.module.mjs +0 -35
  243. package/esm2022/lib/http/http.service.mjs +0 -148
  244. package/esm2022/lib/locale/en.json +0 -255
  245. package/esm2022/lib/locale/fa.json +0 -245
  246. package/esm2022/lib/pipe/datetime.pipe.mjs +0 -25
  247. package/esm2022/lib/pipe/htmlToText.pipe.mjs +0 -25
  248. package/esm2022/lib/platform/index.mjs +0 -2
  249. package/esm2022/lib/platform/platform.service.mjs +0 -152
  250. package/esm2022/lib/services/config.mjs +0 -29
  251. package/esm2022/lib/services/event.service.mjs +0 -34
  252. package/esm2022/lib/services/navigator.service.mjs +0 -10
  253. package/esm2022/lib/services/storage.service.mjs +0 -16
  254. package/esm2022/lib/translator/translator.mjs +0 -26
  255. package/esm2022/lib/translator/translator.module.mjs +0 -25
  256. package/esm2022/lib/translator/translator.pipe.mjs +0 -24
  257. package/esm2022/lib/translator/translator.service.mjs +0 -21
  258. package/esm2022/lib/utils/array/array-util.mjs +0 -133
  259. package/esm2022/lib/utils/html/html-util.mjs +0 -200
  260. package/esm2022/lib/utils/html/html.module.mjs +0 -19
  261. package/esm2022/lib/utils/math/math-util.mjs +0 -6
  262. package/esm2022/lib/utils/object/object-util.mjs +0 -83
  263. package/esm2022/lib/utils/render/on-demand-preload-strategy.service.mjs +0 -21
  264. package/esm2022/lib/utils/render/render.service.mjs +0 -109
  265. package/esm2022/lib/utils/render/rendering.module.mjs +0 -35
  266. package/esm2022/lib/utils/scroll/scroll.directive.mjs +0 -56
  267. package/esm2022/lib/utils/scroll/scroll.module.mjs +0 -19
  268. package/esm2022/lib/utils/separator/separator.module.mjs +0 -19
  269. package/esm2022/lib/utils/separator/separator.pipe.mjs +0 -33
  270. package/lib/classes/base-page.class.d.ts +0 -13
  271. package/lib/classes/color.class.d.ts +0 -17
  272. package/lib/classes/datetime.class.d.ts +0 -63
  273. package/lib/classes/menu.class.d.ts +0 -34
  274. package/lib/classes/navigator.class.d.ts +0 -5
  275. package/lib/classes/popup.class.d.ts +0 -12
  276. package/lib/classes/promise.class.d.ts +0 -7
  277. package/lib/classes/sectionlist.class.d.ts +0 -8
  278. package/lib/classes/select.class.d.ts +0 -7
  279. package/lib/core.module.d.ts +0 -9
  280. package/lib/error/error.class.d.ts +0 -4
  281. package/lib/error/error.module.d.ts +0 -7
  282. package/lib/error/error.service.d.ts +0 -13
  283. package/lib/events/keyboard.d.ts +0 -2
  284. package/lib/http/http-error.class.d.ts +0 -7
  285. package/lib/http/http-events.interceptor.d.ts +0 -10
  286. package/lib/http/http-request.class.d.ts +0 -14
  287. package/lib/http/http-result.class.d.ts +0 -11
  288. package/lib/http/http.module.d.ts +0 -10
  289. package/lib/http/http.service.d.ts +0 -23
  290. package/lib/pipe/datetime.pipe.d.ts +0 -8
  291. package/lib/pipe/htmlToText.pipe.d.ts +0 -7
  292. package/lib/platform/index.d.ts +0 -1
  293. package/lib/services/config.d.ts +0 -9
  294. package/lib/services/navigator.service.d.ts +0 -8
  295. package/lib/services/storage.service.d.ts +0 -7
  296. package/lib/translator/translator.d.ts +0 -9
  297. package/lib/translator/translator.module.d.ts +0 -8
  298. package/lib/translator/translator.pipe.d.ts +0 -8
  299. package/lib/translator/translator.service.d.ts +0 -8
  300. package/lib/utils/array/array-util.d.ts +0 -6
  301. package/lib/utils/html/html-util.d.ts +0 -62
  302. package/lib/utils/html/html.module.d.ts +0 -8
  303. package/lib/utils/math/math-util.d.ts +0 -3
  304. package/lib/utils/object/object-util.d.ts +0 -7
  305. package/lib/utils/render/on-demand-preload-strategy.service.d.ts +0 -10
  306. package/lib/utils/render/render.service.d.ts +0 -18
  307. package/lib/utils/render/rendering.module.d.ts +0 -8
  308. package/lib/utils/scroll/scroll.directive.d.ts +0 -18
  309. package/lib/utils/scroll/scroll.module.d.ts +0 -8
  310. package/lib/utils/separator/separator.module.d.ts +0 -8
  311. package/lib/utils/separator/separator.pipe.d.ts +0 -8
@@ -1,200 +0,0 @@
1
- import { AXMathUtil } from '../math/math-util';
2
- export class AXPoint {
3
- x;
4
- y;
5
- constructor(x, y) {
6
- this.x = x;
7
- this.y = y;
8
- }
9
- }
10
- export class AXClientRec {
11
- _left;
12
- get left() {
13
- return this._left;
14
- }
15
- set left(v) {
16
- this._left = v;
17
- }
18
- _top;
19
- get top() {
20
- return this._top;
21
- }
22
- set top(v) {
23
- this._top = v;
24
- }
25
- _right;
26
- get right() {
27
- return this._right;
28
- }
29
- set right(v) {
30
- this._right = v;
31
- }
32
- _bottom;
33
- get bottom() {
34
- return this._bottom;
35
- }
36
- set bottom(v) {
37
- this._bottom = v;
38
- }
39
- _width;
40
- get width() {
41
- return this._width;
42
- }
43
- set width(v) {
44
- this._width = v;
45
- }
46
- _height;
47
- get height() {
48
- return this._height;
49
- }
50
- set height(v) {
51
- this._height = v;
52
- }
53
- constructor(rec) {
54
- this._left = rec.left;
55
- this._top = rec.top;
56
- this._width = rec.width;
57
- this._height = rec.height;
58
- this._right = this._left + this._width;
59
- this._bottom = this._top + this._height;
60
- }
61
- intersect(rec) {
62
- return (this.left < rec.left + rec.width &&
63
- this.left + this.width > rec.left &&
64
- this.top < rec.top + rec.height &&
65
- this.top + this.height > rec.top);
66
- }
67
- }
68
- // @dynamic
69
- export class AXHtmlUtil {
70
- static getBoundingRectPoint(el, placement) {
71
- const rec = el.getBoundingClientRect();
72
- const width = el.offsetWidth;
73
- const height = el.offsetHeight;
74
- switch (placement) {
75
- case 'top-start':
76
- return new AXPoint(rec.left, rec.top);
77
- case 'top-middle':
78
- return new AXPoint(rec.left + (width / 2), rec.top);
79
- case 'top-end':
80
- return new AXPoint(rec.left + (width), rec.top);
81
- case 'center-end':
82
- return new AXPoint(rec.left + (width), rec.top + (height / 2));
83
- case 'bottom-end':
84
- return new AXPoint(rec.left + (width), rec.top + (height));
85
- case 'bottom-middle':
86
- return new AXPoint(rec.left + (width / 2), rec.top + (height));
87
- case 'bottom-start':
88
- return new AXPoint(rec.left, rec.top + (height));
89
- case 'center-start':
90
- return new AXPoint(rec.left, rec.top + (height / 2));
91
- default:
92
- return new AXPoint(rec.left + (width / 2), rec.top + (height));
93
- }
94
- }
95
- static isInRecPoint(pos, rec) {
96
- return pos.x >= rec.left && pos.x <= (rec.left + rec.width) && pos.y >= rec.top && (pos.y <= (rec.top + rec.height));
97
- }
98
- // static isOverLap(rec1: AXClientRecCtor, rec2: AXClientRecCtor): boolean {
99
- // const r1: AXClientRec = new AXClientRec(rec1);
100
- // const r2: AXClientRec = new AXClientRec(rec2);
101
- // return ;
102
- // }
103
- static isInElementBound(pos, element) {
104
- const elBound = element.getBoundingClientRect();
105
- return AXHtmlUtil.isInRecPoint(pos, {
106
- left: elBound.left,
107
- width: elBound.width,
108
- top: elBound.top,
109
- height: elBound.height
110
- });
111
- }
112
- static getDimensions() {
113
- let winW = 630;
114
- let winH = 460;
115
- if (document.body && document.body.offsetWidth) {
116
- winW = document.body.offsetWidth;
117
- winH = document.body.offsetHeight;
118
- }
119
- if (document.compatMode === 'CSS1Compat' && document.documentElement && document.documentElement.offsetWidth) {
120
- winW = document.documentElement.offsetWidth;
121
- winH = document.documentElement.offsetHeight;
122
- }
123
- if (window.innerWidth && window.innerHeight) {
124
- winW = window.innerWidth;
125
- winH = window.innerHeight;
126
- }
127
- return { width: winW, height: winH };
128
- }
129
- static getOffsetRight(elem) {
130
- let element = elem;
131
- const width = element.offsetWidth;
132
- let right = 0;
133
- while (element.offsetParent) {
134
- right += element.offsetLeft;
135
- element = element.offsetParent;
136
- }
137
- right += element.offsetLeft;
138
- right = AXHtmlUtil.getDimensions().width - right;
139
- right -= width;
140
- return right;
141
- }
142
- static getUID() {
143
- return 'el-' + AXMathUtil.randomRange(1000000000, 9999999999).toString();
144
- }
145
- static getRelatedPosition(source, placement, target, alignment) {
146
- const result = { x: 0, y: 0 };
147
- const sourcePos = AXHtmlUtil.getBoundingRectPoint(source, placement);
148
- let top = 0;
149
- let left = 0;
150
- switch (alignment) {
151
- case 'top-start':
152
- top = sourcePos.y;
153
- left = sourcePos.x;
154
- break;
155
- case 'top-middle':
156
- top = sourcePos.y;
157
- left = sourcePos.x - target.offsetWidth / 2;
158
- break;
159
- case 'top-end':
160
- top = sourcePos.y;
161
- left = sourcePos.x - target.offsetWidth;
162
- break;
163
- case 'center-end':
164
- top = sourcePos.y - target.offsetHeight / 2;
165
- left = sourcePos.x - target.offsetWidth;
166
- break;
167
- case 'bottom-end':
168
- top = sourcePos.y - target.offsetHeight;
169
- left = sourcePos.x - target.offsetWidth;
170
- break;
171
- case 'bottom-middle':
172
- top = sourcePos.y - target.offsetHeight;
173
- left = sourcePos.x - target.offsetWidth / 2;
174
- break;
175
- case 'bottom-start':
176
- top = sourcePos.y - target.offsetHeight;
177
- left = sourcePos.x;
178
- break;
179
- case 'center-start':
180
- top = sourcePos.y - target.offsetHeight / 2;
181
- left = sourcePos.x;
182
- break;
183
- }
184
- result.y = top;
185
- result.x = left;
186
- return result;
187
- }
188
- static collision(a, b) {
189
- const ac = a.getBoundingClientRect();
190
- const bc = b.getBoundingClientRect();
191
- if (ac.left < bc.left + bc.width && ac.left + ac.width > bc.left &&
192
- ac.top < bc.top + bc.height && ac.top + ac.height > bc.top) {
193
- return true;
194
- }
195
- else {
196
- return false;
197
- }
198
- }
199
- }
200
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC11dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy9saWIvdXRpbHMvaHRtbC9odG1sLXV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBMkIvQyxNQUFNLE9BQU8sT0FBTztJQUNDO0lBQWtCO0lBQXJDLFlBQW1CLENBQVMsRUFBUyxDQUFTO1FBQTNCLE1BQUMsR0FBRCxDQUFDLENBQVE7UUFBUyxNQUFDLEdBQUQsQ0FBQyxDQUFRO0lBQzlDLENBQUM7Q0FDRjtBQVVELE1BQU0sT0FBTyxXQUFXO0lBR2QsS0FBSyxDQUFTO0lBQ3RCLElBQVcsSUFBSTtRQUNiLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQztJQUNwQixDQUFDO0lBQ0QsSUFBVyxJQUFJLENBQUMsQ0FBUztRQUN2QixJQUFJLENBQUMsS0FBSyxHQUFHLENBQUMsQ0FBQztJQUNqQixDQUFDO0lBR08sSUFBSSxDQUFTO0lBQ3JCLElBQVcsR0FBRztRQUNaLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQztJQUNuQixDQUFDO0lBQ0QsSUFBVyxHQUFHLENBQUMsQ0FBUztRQUN0QixJQUFJLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQztJQUNoQixDQUFDO0lBR08sTU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tcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICAgIHJlc3VsdC55ID0gdG9wO1xuICAgIHJlc3VsdC54ID0gbGVmdDtcbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG5cblxuICBzdGF0aWMgY29sbGlzaW9uKGE6IEhUTUxFbGVtZW50LCBiOiBIVE1MRWxlbWVudCk6IGJvb2xlYW4ge1xuICAgIGNvbnN0IGFjID0gYS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKTtcbiAgICBjb25zdCBiYyA9IGIuZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCk7XG5cbiAgICBpZiAoYWMubGVmdCA8IGJjLmxlZnQgKyBiYy53aWR0aCAmJiBhYy5sZWZ0ICsgYWMud2lkdGggPiBiYy5sZWZ0ICYmXG4gICAgICBhYy50b3AgPCBiYy50b3AgKyBiYy5oZWlnaHQgJiYgYWMudG9wICsgYWMuaGVpZ2h0ID4gYmMudG9wKSB7XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gICAgZWxzZSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9XG5cbn1cbiJdfQ==
@@ -1,19 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { AXHtmlToTextPipe } from '../../pipe/htmlToText.pipe';
4
- import * as i0 from "@angular/core";
5
- export class AXHtmlModule {
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AXHtmlModule, declarations: [AXHtmlToTextPipe], imports: [CommonModule], exports: [AXHtmlToTextPipe] });
8
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHtmlModule, imports: [CommonModule] });
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHtmlModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [AXHtmlToTextPipe],
14
- imports: [CommonModule],
15
- exports: [AXHtmlToTextPipe],
16
- providers: []
17
- }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi91dGlscy9odG1sL2h0bWwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDRCQUE0QixDQUFDOztBQVE5RCxNQUFNLE9BQU8sWUFBWTt3R0FBWixZQUFZO3lHQUFaLFlBQVksaUJBTFIsZ0JBQWdCLGFBQ3JCLFlBQVksYUFDWixnQkFBZ0I7eUdBR2YsWUFBWSxZQUpiLFlBQVk7OzRGQUlYLFlBQVk7a0JBTnhCLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFLENBQUMsZ0JBQWdCLENBQUM7b0JBQ2hDLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztvQkFDdkIsT0FBTyxFQUFFLENBQUMsZ0JBQWdCLENBQUM7b0JBQzNCLFNBQVMsRUFBRSxFQUFFO2lCQUNkIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBBWEh0bWxUb1RleHRQaXBlIH0gZnJvbSAnLi4vLi4vcGlwZS9odG1sVG9UZXh0LnBpcGUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtBWEh0bWxUb1RleHRQaXBlXSxcbiAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gIGV4cG9ydHM6IFtBWEh0bWxUb1RleHRQaXBlXSxcbiAgcHJvdmlkZXJzOiBbXVxufSlcbmV4cG9ydCBjbGFzcyBBWEh0bWxNb2R1bGUgeyB9XG4iXX0=
@@ -1,6 +0,0 @@
1
- export class AXMathUtil {
2
- static randomRange(min, max) {
3
- return Math.floor(Math.random() * (max - min + 1) + min);
4
- }
5
- }
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0aC11dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy9saWIvdXRpbHMvbWF0aC9tYXRoLXV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLFVBQVU7SUFDbkIsTUFBTSxDQUFDLFdBQVcsQ0FBQyxHQUFXLEVBQUUsR0FBVztRQUN2QyxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLENBQUMsR0FBRyxHQUFHLEdBQUcsR0FBRyxDQUFDLENBQUMsR0FBRyxHQUFHLENBQUMsQ0FBQztJQUM3RCxDQUFDO0NBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgQVhNYXRoVXRpbCB7XG4gICAgc3RhdGljIHJhbmRvbVJhbmdlKG1pbjogbnVtYmVyLCBtYXg6IG51bWJlcik6IG51bWJlciB7XG4gICAgICAgIHJldHVybiBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAobWF4IC0gbWluICsgMSkgKyBtaW4pO1xuICAgIH1cbn1cbiJdfQ==
@@ -1,83 +0,0 @@
1
- // @dynamic
2
- export class AXObjectUtil {
3
- static deepJSONClone(obj) {
4
- return obj ? JSON.parse(JSON.stringify(obj)) : null;
5
- }
6
- static deepCopy(obj) {
7
- let copy;
8
- // Handle the 3 simple types, and null or undefined
9
- if (null == obj || 'object' !== typeof obj) {
10
- return obj;
11
- }
12
- // Handle Date
13
- if (obj instanceof Date) {
14
- copy = new Date();
15
- copy.setTime(obj.getTime());
16
- return copy;
17
- }
18
- // Handle Array
19
- if (obj instanceof Array) {
20
- copy = [];
21
- for (let i = 0, len = obj.length; i < len; i++) {
22
- copy[i] = AXObjectUtil.deepCopy(obj[i]);
23
- }
24
- return copy;
25
- }
26
- // Handle Object
27
- if (obj instanceof Object) {
28
- copy = {};
29
- for (const attr in obj) {
30
- if (obj.hasOwnProperty(attr)) {
31
- copy[attr] = AXObjectUtil.deepCopy(obj[attr]);
32
- }
33
- }
34
- return copy;
35
- }
36
- throw new Error('Unable to copy obj! Its type isn\'t supported.');
37
- }
38
- }
39
- export function AXFetchProp(obj, prop) {
40
- if (typeof obj === 'undefined') {
41
- return false;
42
- }
43
- const index = prop.indexOf('.');
44
- if (index > -1) {
45
- return AXFetchProp(obj[prop.substring(0, index)], prop.substr(index + 1));
46
- }
47
- return obj[prop];
48
- }
49
- export function getPropByPath(obj, path, defaultVal) {
50
- path = path
51
- .replace(/\[/g, '.')
52
- .replace(/]/g, '')
53
- .split('.');
54
- path.forEach((level) => {
55
- if (obj) {
56
- obj = obj[level];
57
- }
58
- });
59
- if (obj === undefined) {
60
- return defaultVal;
61
- }
62
- return obj;
63
- }
64
- export function setPropByPath(obj, path, value) {
65
- if (Object(obj) !== obj) {
66
- return obj;
67
- } // When obj is not an object
68
- // If not yet an array, get the keys from the string-path
69
- if (!Array.isArray(path)) {
70
- path = path.toString().match(/[^.[\]]+/g) || [];
71
- }
72
- path.slice(0, -1).reduce((a, c, i) => // Iterate all of them except the last one
73
- Object(a[c]) === a[c] // Does the key exist and is its value an object?
74
- // Yes: then follow that path
75
- ? a[c]
76
- // No: create the key. Is the next key a potential array-index?
77
- : a[c] = Math.abs(path[i + 1]) >> 0 === +path[i + 1]
78
- ? [] // Yes: assign a new array object
79
- : {}, // No: assign a new plain object
80
- obj)[path[path.length - 1]] = value; // Finally assign the value to the last key
81
- return obj[path[0]]; // Return the top-level object to allow chaining
82
- }
83
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LXV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi91dGlscy9vYmplY3Qvb2JqZWN0LXV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsV0FBVztBQUNYLE1BQU0sT0FBTyxZQUFZO0lBQ3JCLE1BQU0sQ0FBQyxhQUFhLENBQUMsR0FBUTtRQUN6QixPQUFPLEdBQUcsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUN4RCxDQUFDO0lBRUQsTUFBTSxDQUFDLFFBQVEsQ0FBQyxHQUFHO1FBQ2YsSUFBSSxJQUFJLENBQUM7UUFDVCxtREFBbUQ7UUFDbkQsSUFBSSxJQUFJLElBQUksR0FBRyxJQUFJLFFBQVEsS0FBSyxPQUFPLEdBQUcsRUFBRTtZQUFFLE9BQU8sR0FBRyxDQUFDO1NBQUU7UUFDM0QsY0FBYztRQUNkLElBQUksR0FBRyxZQUFZLElBQUksRUFBRTtZQUNyQixJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNsQixJQUFJLENBQUMsT0FBTyx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yxnREFBZ0Q7QUFDekUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBkeW5hbWljXG5leHBvcnQgY2xhc3MgQVhPYmplY3RVdGlsIHtcbiAgICBzdGF0aWMgZGVlcEpTT05DbG9uZShvYmo6IGFueSk6IGFueSB7XG4gICAgICAgIHJldHVybiBvYmogPyBKU09OLnBhcnNlKEpTT04uc3RyaW5naWZ5KG9iaikpIDogbnVsbDtcbiAgICB9XG5cbiAgICBzdGF0aWMgZGVlcENvcHkob2JqKSB7XG4gICAgICAgIGxldCBjb3B5O1xuICAgICAgICAvLyBIYW5kbGUgdGhlIDMgc2ltcGxlIHR5cGVzLCBhbmQgbnVsbCBvciB1bmRlZmluZWRcbiAgICAgICAgaWYgKG51bGwgPT0gb2JqIHx8ICdvYmplY3QnICE9PSB0eXBlb2Ygb2JqKSB7IHJldHVybiBvYmo7IH1cbiAgICAgICAgLy8gSGFuZGxlIERhdGVcbiAgICAgICAgaWYgKG9iaiBpbnN0YW5jZW9mIERhdGUpIHtcbiAgICAgICAgICAgIGNvcHkgPSBuZXcgRGF0ZSgpO1xuICAgICAgICAgICAgY29weS5zZXRUaW1lKG9iai5nZXRUaW1lKCkpO1xuICAgICAgICAgICAgcmV0dXJuIGNvcHk7XG4gICAgICAgIH1cbiAgICAgICAgLy8gSGFuZGxlIEFycmF5XG4gICAgICAgIGlmIChvYmogaW5zdGFuY2VvZiBBcnJheSkge1xuICAgICAgICAgICAgY29weSA9IFtdO1xuICAgICAgICAgICAgZm9yIChsZXQgaSA9IDAsIGxlbiA9IG9iai5sZW5ndGg7IGkgPCBsZW47IGkrKykge1xuICAgICAgICAgICAgICAgIGNvcHlbaV0gPSBBWE9iamVjdFV0aWwuZGVlcENvcHkob2JqW2ldKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBjb3B5O1xuICAgICAgICB9XG4gICAgICAgIC8vIEhhbmRsZSBPYmplY3RcbiAgICAgICAgaWYgKG9iaiBpbnN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amVjdFxuICAgICAgICAgICAgICAgIDoge30sIC8vIE5vOiBhc3NpZ24gYSBuZXcgcGxhaW4gb2JqZWN0XG4gICAgICAgIG9iailbcGF0aFtwYXRoLmxlbmd0aCAtIDFdXSA9IHZhbHVlOyAvLyBGaW5hbGx5IGFzc2lnbiB0aGUgdmFsdWUgdG8gdGhlIGxhc3Qga2V5XG4gICAgcmV0dXJuIG9ialtwYXRoWzBdXTsgLy8gUmV0dXJuIHRoZSB0b3AtbGV2ZWwgb2JqZWN0IHRvIGFsbG93IGNoYWluaW5nXG59XG5cblxuIl19
@@ -1,21 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { AXHtmlUtil } from '../html/html-util';
4
- import * as i0 from "@angular/core";
5
- export class AXOnDemandPreloadService {
6
- subject = new Subject();
7
- tmp;
8
- constructor() {
9
- this.tmp = AXHtmlUtil.getUID();
10
- }
11
- startPreload(routePath) {
12
- const slices = [];
13
- this.subject.next(routePath);
14
- }
15
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXOnDemandPreloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
16
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXOnDemandPreloadService });
17
- }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXOnDemandPreloadService, decorators: [{
19
- type: Injectable
20
- }], ctorParameters: function () { return []; } });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib24tZGVtYW5kLXByZWxvYWQtc3RyYXRlZ3kuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL3V0aWxzL3JlbmRlci9vbi1kZW1hbmQtcHJlbG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YT25EZW1hbmRQcmVsb2FkU2VydmljZSB7XG4gIHN1YmplY3QgPSBuZXcgU3ViamVjdDxzdHJpbmc+KCk7XG4gIHRtcDogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHRoaXMudG1wID0gQVhIdG1sVXRpbC5nZXRVSUQoKTtcbiAgfVxuXG4gIHN0YXJ0UHJlbG9hZChyb3V0ZVBhdGg6IHN0cmluZykge1xuICAgIGNvbnN0IHNsaWNlczogc3RyaW5nW10gPSBbXTtcbiAgIFxuXG4gICAgdGhpcy5zdWJqZWN0Lm5leHQocm91dGVQYXRoKTtcbiAgfVxufVxuIl19
@@ -1,109 +0,0 @@
1
- import { ApplicationRef, ComponentFactoryResolver, Injectable, Injector, Compiler } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { AXOnDemandPreloadService } from './on-demand-preload-strategy.service';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/router";
6
- import * as i2 from "./on-demand-preload-strategy.service";
7
- export class AXRenderService {
8
- appRef;
9
- router;
10
- componentFactoryResolver;
11
- compiler;
12
- modulePreloadService;
13
- injector;
14
- constructor(appRef, router, componentFactoryResolver, compiler, modulePreloadService, injector) {
15
- this.appRef = appRef;
16
- this.router = router;
17
- this.componentFactoryResolver = componentFactoryResolver;
18
- this.compiler = compiler;
19
- this.modulePreloadService = modulePreloadService;
20
- this.injector = injector;
21
- }
22
- appendComponent(componentClass, options = {}, location) {
23
- const componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentClass);
24
- const componentRef = componentFactory.create(this.injector);
25
- this.appRef.attachView(componentRef.hostView);
26
- Object.assign(componentRef.instance, options);
27
- //
28
- const domElem = componentRef.hostView.rootNodes[0];
29
- componentRef.onDestroy(() => {
30
- this.appRef.detachView(componentRef.hostView);
31
- });
32
- if (location) {
33
- location.appendChild(domElem);
34
- }
35
- else {
36
- document.body.appendChild(domElem);
37
- }
38
- setTimeout(() => {
39
- componentRef.changeDetectorRef.detectChanges();
40
- }, 0);
41
- return componentRef;
42
- }
43
- findLoadedComponentByRoute(path, timeoutTime = 10) {
44
- const delay = 200;
45
- const loop = timeoutTime * 1000 / delay;
46
- return new Promise((resolve, reject) => {
47
- let found = null;
48
- let preload = false;
49
- const theLoop = (i) => {
50
- setTimeout(async () => {
51
- found = await this._findLoadedComponentByRoute(path);
52
- if (--i && found == null) {
53
- if (!preload) {
54
- this.modulePreloadService.startPreload(path);
55
- preload = true;
56
- }
57
- theLoop(i);
58
- }
59
- else if (found) {
60
- resolve(found);
61
- }
62
- else {
63
- reject();
64
- }
65
- }, delay);
66
- };
67
- theLoop(loop);
68
- });
69
- }
70
- async _findLoadedComponentByRoute(search) {
71
- let found = null;
72
- const f = (children, parentPath) => {
73
- for (const p in children) {
74
- if (children.hasOwnProperty(p)) {
75
- const route = children[p];
76
- const pp = (route.path != '' && route.path != null) ? parentPath + '/' + route.path : parentPath;
77
- if (pp == search && !route._loadedConfig && !route['_loadedRoutes'] && route.component) {
78
- found = route;
79
- return;
80
- }
81
- else if (route._loadedConfig || route['_loadedRoutes'] || route.children) {
82
- f(route.children || route['_loadedRoutes'] || route._loadedConfig.routes, pp);
83
- }
84
- }
85
- }
86
- };
87
- for (const p in this.router.config) {
88
- if (this.router.config.hasOwnProperty(p)) {
89
- const route = this.router.config[p];
90
- if (route.path === search && route.component) {
91
- found = route;
92
- }
93
- else if (route['_loadedConfig'] || route['_loadedRoutes'] || route.children) {
94
- f(route.children || route['_loadedRoutes'] || route['_loadedConfig'].routes, route.path);
95
- }
96
- if (found)
97
- break;
98
- }
99
- }
100
- return found;
101
- }
102
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXRenderService, deps: [{ token: i0.ApplicationRef }, { token: i1.Router }, { token: i0.ComponentFactoryResolver }, { token: i0.Compiler }, { token: i2.AXOnDemandPreloadService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
103
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXRenderService, providedIn: 'root' });
104
- }
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXRenderService, decorators: [{
106
- type: Injectable,
107
- args: [{ providedIn: 'root' }]
108
- }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1.Router }, { type: i0.ComponentFactoryResolver }, { type: i0.Compiler }, { type: i2.AXOnDemandPreloadService }, { type: i0.Injector }]; } });
109
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi91dGlscy9yZW5kZXIvcmVuZGVyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILGNBQWMsRUFBRSx3QkFBd0IsRUFBZ0IsVUFBVSxFQUNsRSxRQUFRLEVBQXlCLFFBQVEsRUFDNUMsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLE1BQU0sRUFBUyxNQUFNLGlCQUFpQixDQUFDO0FBQ2hELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHNDQUFzQyxDQUFDOzs7O0FBS2hGLE1BQU0sT0FBTyxlQUFlO0lBRVo7SUFDQTtJQUNBO0lBQ0E7SUFDQTtJQUNBO0lBTlosWUFDWSxNQUFzQixFQUN0QixNQUFjLEVBQ2Qsd0JBQWtELEVBQ2xELFFBQWtCLEVBQ2xCLG9CQUE4QyxFQUM5QyxRQUFrQjtRQUxsQixXQUFNLEdBQU4sTUFBTSxDQUFnQjtRQUN0QixXQUFNLEdBQU4sTUFBTSxDQUFRO1FBQ2QsNkJBQXdCLEdBQXhCLHdCQUF3QixDQUEwQjtRQUNsRC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mVDb21wb25lbnRGYWN0b3J5KGNvbXBvbmVudENsYXNzKTtcbiAgICAgICAgY29uc3QgY29tcG9uZW50UmVmID0gY29tcG9uZW50RmFjdG9yeS5jcmVhdGUodGhpcy5pbmplY3Rvcik7XG4gICAgICAgIHRoaXMuYXBwUmVmLmF0dGFjaFZpZXcoY29tcG9uZW50UmVmLmhvc3RWaWV3KTtcbiAgICAgICAgT2JqZWN0LmFzc2lnbihjb21wb25lbnRSZWYuaW5zdGFuY2UsIG9wdGlvbnMpO1xuICAgICAgICAvL1xuICAgICAgICBjb25zdCBkb21FbGVtID0gKGNvbXBvbmVudFJlZi5ob3N0VmlldyBhcyBFbWJlZGRlZFZpZXdSZWY8YW55Pikucm9vdE5vZGVzWzBdIGFzIEhUTUxFbGVtZW50O1xuICAgICAgICBjb21wb25lbnRSZWYub25EZXN0cm95KCgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuYXBwUmVmLmRldGFjaFZpZXcoY29tcG9uZW50UmVmLmhvc3RWaWV3KTtcbiAgICAgICAgfSk7XG4gICAgICAgIGlmIChsb2NhdGlvbikge1xuICAgICAgICAgICAgbG9jYXRpb24uYXBwZW5kQ2hpbGQoZG9tRWxlbSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGRvbUVsZW0pO1xuICAgICAgICB9XG4gICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgY29tcG9uZW50UmVmLmNoYW5nZURldGVjdG9yUmVmLmRldGVjdENoYW5nZXMoKTtcbiAgICAgICAgfSwgMCk7XG4gICAgICAgIHJldHVybiBjb21wb25lbnRSZWY7XG4gICAgfVxuXG4gICAgZmluZExvYWRlZENvbXBvbmVudEJ5Um91dGUocGF0aDogc3RyaW5nLCB0aW1lb3V0VGltZTogbnVtYmVyID0gMTApOiBQcm9taXNlPFJvdXRlPiB7XG4gICAgICAgIGNvbnN0IGRlbGF5ID0gMjAwO1xuICAgICAgICBjb25zdCBsb29wID0gdGltZW91dFRpbWUgKiAxMDAwIC8gZGVsYXk7XG4gICAgICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgICAgICBsZXQgZm91bmQ6IFJvdXRlID0gbnVsbDtcbiAgICAgICAgICAgIGxldCBwcmVsb2FkOiBib29sZWFuID0gZmFsc2U7XG4gICAgICAgICAgICBjb25zdCB0aGVMb29wID0gKGkpID0+IHtcbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGFzeW5jICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgZm91bmQgPSBhd2FpdCB0aGlzLl9maW5kTG9hZGVkQ29tcG9uZW50QnlSb3V0ZShwYXRoKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKC0taSAmJiBmb3VuZCA9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXByZWxvYWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1vZHVsZVByZWxvYWRTZXJ2aWNlLnN0YXJ0UHJlbG9hZChwYXRoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmVsb2FkID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIHRoZUxvb3AoaSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiAoZm91bmQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdmUoZm91bmQpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVqZWN0KCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LCBkZWxheSk7XG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgdGhlTG9vcChsb29wKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBhc3luYyBfZmluZExvYWRlZENvbXBvbmVudEJ5Um91dGUoc2VhcmNoKSB7XG5cbiAgICAgICAgbGV0IGZvdW5kOiBSb3V0ZSA9IG51bGw7XG4gICAgICAgIGNvbnN0IGYgPSAoY2hpbGRyZW4sIHBhcmVudFBhdGgpID0+IHtcbiAgICAgICAgICAgIGZvciAoY29uc3QgcCBpbiBjaGlsZHJlbikge1xuICAgICAgICAgICAgICAgIGlmIChjaGlsZHJlbi5oYXNPd25Qcm9wZXJ0eShwKSkge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCByb3V0ZSA9IGNoaWxkcmVuW3BdO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBwcCA9IChyb3V0ZS5wYXRoICE9ICcnICYmIHJvdXRlLnBhdGggIT0gbnVsbCkgPyBwYXJlbnRQYXRoICsgJy8nICsgcm91dGUucGF0aCA6IHBhcmVudFBhdGg7XG4gICAgICAgICAgICAgICAgICAgIGlmIChwcCA9PSBzZWFyY2ggJiYgIXJvdXRlLl9sb2FkZWRDb25maWcgJiYgIXJvdXRlWydfbG9hZGVkUm91dGVzJ10gJiYgcm91dGUuY29tcG9uZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3VuZCA9IHJvdXRlO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHJvdXRlLl9sb2FkZWRDb25maWcgfHwgcm91dGVbJ19sb2FkZWRSb3V0ZXMnXSB8fCByb3V0ZS5jaGlsZHJlbikge1xuICAgICAgICAgICAgICAgICAgICAgICAgZihyb3V0ZS5jaGlsZHJlbiB8fCByb3V0ZVsnX2xvYWRlZFJvdXRlcyddIHx8IHJvdXRlLl9sb2FkZWRDb25maWcucm91dGVzLCBwcCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG5cbiAgICAgICAgZm9yIChjb25zdCBwIGluIHRoaXMucm91dGVyLmNvbmZpZykge1xuICAgICAgICAgICAgaWYgKHRoaXMucm91dGVyLmNvbmZpZy5oYXNPd25Qcm9wZXJ0eShwKSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IHJvdXRlID0gdGhpcy5yb3V0ZXIuY29uZmlnW3BdO1xuICAgICAgICAgICAgICAgIGlmIChyb3V0ZS5wYXRoID09PSBzZWFyY2ggJiYgcm91dGUuY29tcG9uZW50KSB7XG4gICAgICAgICAgICAgICAgICAgIGZvdW5kID0gcm91dGU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKHJvdXRlWydfbG9hZGVkQ29uZmlnJ10gfHwgcm91dGVbJ19sb2FkZWRSb3V0ZXMnXSB8fCByb3V0ZS5jaGlsZHJlbikge1xuICAgICAgICAgICAgICAgICAgICBmKHJvdXRlLmNoaWxkcmVuIHx8IHJvdXRlWydfbG9hZGVkUm91dGVzJ10gfHwgcm91dGVbJ19sb2FkZWRDb25maWcnXS5yb3V0ZXMsIHJvdXRlLnBhdGgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoZm91bmQpXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmb3VuZDtcbiAgICB9XG5cbn1cbiJdfQ==
@@ -1,35 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { AXRenderService } from './render.service';
3
- import { AXOnDemandPreloadService } from './on-demand-preload-strategy.service';
4
- import * as i0 from "@angular/core";
5
- // @dynamic
6
- export function getOnDemandPreloadServiceFactory() {
7
- return new AXOnDemandPreloadService();
8
- }
9
- export class AXRenderingModule {
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXRenderingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AXRenderingModule });
12
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXRenderingModule, providers: [
13
- {
14
- provide: AXOnDemandPreloadService,
15
- useFactory: getOnDemandPreloadServiceFactory
16
- },
17
- AXRenderService
18
- ] });
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXRenderingModule, decorators: [{
21
- type: NgModule,
22
- args: [{
23
- imports: [],
24
- exports: [],
25
- declarations: [],
26
- providers: [
27
- {
28
- provide: AXOnDemandPreloadService,
29
- useFactory: getOnDemandPreloadServiceFactory
30
- },
31
- AXRenderService
32
- ],
33
- }]
34
- }] });
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyaW5nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL3V0aWxzL3JlbmRlci9yZW5kZXJpbmcubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ25ELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHNDQUFzQyxDQUFDOztBQUdoRixXQUFXO0FBQ1gsTUFBTSxVQUFVLGdDQUFnQztJQUM1QyxPQUFPLElBQUksd0JBQXdCLEVBQUUsQ0FBQztBQUMxQyxDQUFDO0FBY0QsTUFBTSxPQUFPLGlCQUFpQjt3R0FBakIsaUJBQWlCO3lHQUFq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Vsb2FkU2VydmljZUZhY3RvcnlcbiAgICAgICAgfSxcbiAgICAgICAgQVhSZW5kZXJTZXJ2aWNlXG4gICAgXSxcbn0pXG5leHBvcnQgY2xhc3MgQVhSZW5kZXJpbmdNb2R1bGUge1xuXG59XG4iXX0=
@@ -1,56 +0,0 @@
1
- import { Directive, HostListener, Input } from '@angular/core';
2
- import { ElementRef } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export class AXHorizontalScrollDirective {
5
- el;
6
- constructor(el) {
7
- this.el = el;
8
- }
9
- scrollValue = 40;
10
- onMouseWheel(e) {
11
- const delta = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail));
12
- this.el.nativeElement.scrollLeft -= delta * this.scrollValue;
13
- }
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHorizontalScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
15
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AXHorizontalScrollDirective, selector: "[horizontalScroll]", inputs: { scrollValue: ["horizontalScroll", "scrollValue"] }, host: { listeners: { "wheel": "onMouseWheel($event)" } }, ngImport: i0 });
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHorizontalScrollDirective, decorators: [{
18
- type: Directive,
19
- args: [{
20
- // tslint:disable-next-line: directive-selector
21
- selector: '[horizontalScroll]'
22
- }]
23
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollValue: [{
24
- type: Input,
25
- args: ['horizontalScroll']
26
- }], onMouseWheel: [{
27
- type: HostListener,
28
- args: ['wheel', ['$event']]
29
- }] } });
30
- export class AXVerticalScrollDirective {
31
- el;
32
- constructor(el) {
33
- this.el = el;
34
- }
35
- scrollValue = 40;
36
- onMouseWheel(e) {
37
- const delta = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail));
38
- this.el.nativeElement.scrollTop -= delta * this.scrollValue;
39
- }
40
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXVerticalScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
41
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: AXVerticalScrollDirective, selector: "[verticalScroll]", inputs: { scrollValue: ["verticalScroll", "scrollValue"] }, host: { listeners: { "wheel": "onMouseWheel($event)" } }, ngImport: i0 });
42
- }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXVerticalScrollDirective, decorators: [{
44
- type: Directive,
45
- args: [{
46
- // tslint:disable-next-line: directive-selector
47
- selector: '[verticalScroll]'
48
- }]
49
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollValue: [{
50
- type: Input,
51
- args: ['verticalScroll']
52
- }], onMouseWheel: [{
53
- type: HostListener,
54
- args: ['wheel', ['$event']]
55
- }] } });
56
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL3V0aWxzL3Njcm9sbC9zY3JvbGwuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU0zQyxNQUFNLE9BQU8sMkJBQTJCO0lBQ2xCO0lBQXBCLFlBQW9CLEVBQTJCO1FBQTNCLE9BQUU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sLm5hdGl2ZUVsZW1lbnQuc2Nyb2xsTGVmdCAtPSBkZWx0YSAqIHRoaXMuc2Nyb2xsVmFsdWU7XG4gIH1cbn1cbkBEaXJlY3RpdmUoe1xuICAvLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmU6IGRpcmVjdGl2ZS1zZWxlY3RvclxuICBzZWxlY3RvcjogJ1t2ZXJ0aWNhbFNjcm9sbF0nXG59KVxuZXhwb3J0IGNsYXNzIEFYVmVydGljYWxTY3JvbGxEaXJlY3RpdmUge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIGVsOiBFbGVtZW50UmVmPEhUTUxFbGVtZW50PikgeyB9XG5cbiAgQElucHV0KCd2ZXJ0aWNhbFNjcm9sbCcpXG4gIHNjcm9sbFZhbHVlID0gNDA7XG5cbiAgQEhvc3RMaXN0ZW5lcignd2hlZWwnLCBbJyRldmVudCddKVxuICBvbk1vdXNlV2hlZWwoZSkge1xuICAgIGNvbnN0IGRlbHRhID0gTWF0aC5tYXgoLTEsIE1hdGgubWluKDEsIGUud2hlZWxEZWx0YSB8fCAtZS5kZXRhaWwpKTtcbiAgICB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQuc2Nyb2xsVG9wIC09IGRlbHRhICogdGhpcy5zY3JvbGxWYWx1ZTtcbiAgfVxufVxuIl19
@@ -1,19 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { AXHorizontalScrollDirective, AXVerticalScrollDirective } from './scroll.directive';
4
- import * as i0 from "@angular/core";
5
- export class AXScrollModule {
6
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AXScrollModule, declarations: [AXHorizontalScrollDirective, AXVerticalScrollDirective], imports: [CommonModule], exports: [AXHorizontalScrollDirective, AXVerticalScrollDirective] });
8
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXScrollModule, imports: [CommonModule] });
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXScrollModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [AXHorizontalScrollDirective, AXVerticalScrollDirective],
14
- imports: [CommonModule],
15
- exports: [AXHorizontalScrollDirective, AXVerticalScrollDirective],
16
- providers: []
17
- }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL3V0aWxzL3Njcm9sbC9zY3JvbGwubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSx5QkFBeUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDOztBQVE1RixNQUFNLE9BQU8sY0FBYzt3R0FBZCxjQUFjO3lHQUFkLGNBQWMsaUJBTFYsMkJBQTJCLEVBQUUseUJBQXlCLGFBQzNELFlBQVksYUFDWiwyQkFBMkIsRUFBRSx5QkFBeUI7eUdBR3JELGNBQWMsWUFKZixZQUFZOzs0RkFJWCxjQUFjO2tCQU4xQixRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRSxDQUFDLDJCQUEyQixFQUFFLHlCQUF5QixDQUFDO29CQUN0RSxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ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