avl-tree-typed 1.40.0-rc → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/README.md +21 -3
  2. package/coverage/clover.xml +5 -2
  3. package/coverage/coverage-final.json +95 -1
  4. package/coverage/coverage-summary.json +59 -2
  5. package/coverage/lcov-report/base.css +294 -115
  6. package/coverage/lcov-report/block-navigation.js +68 -68
  7. package/coverage/lcov-report/index.html +108 -105
  8. package/coverage/lcov-report/index.ts.html +76 -76
  9. package/coverage/lcov-report/sorter.js +183 -173
  10. package/dist/data-structures/binary-tree/avl-tree.d.ts +106 -0
  11. package/dist/data-structures/binary-tree/avl-tree.js +347 -0
  12. package/dist/data-structures/binary-tree/binary-indexed-tree.d.ts +149 -0
  13. package/dist/data-structures/binary-tree/binary-indexed-tree.js +269 -0
  14. package/dist/data-structures/binary-tree/binary-tree.d.ts +363 -0
  15. package/dist/data-structures/binary-tree/binary-tree.js +1135 -0
  16. package/dist/data-structures/binary-tree/bst.d.ts +167 -0
  17. package/dist/data-structures/binary-tree/bst.js +512 -0
  18. package/dist/data-structures/binary-tree/index.d.ts +7 -0
  19. package/dist/data-structures/binary-tree/index.js +23 -0
  20. package/dist/data-structures/binary-tree/rb-tree.d.ts +97 -0
  21. package/dist/data-structures/binary-tree/rb-tree.js +388 -0
  22. package/dist/data-structures/binary-tree/segment-tree.d.ts +67 -0
  23. package/dist/data-structures/binary-tree/segment-tree.js +180 -0
  24. package/dist/data-structures/binary-tree/tree-multiset.d.ts +126 -0
  25. package/dist/data-structures/binary-tree/tree-multiset.js +355 -0
  26. package/dist/data-structures/graph/abstract-graph.d.ts +313 -0
  27. package/dist/data-structures/graph/abstract-graph.js +884 -0
  28. package/dist/data-structures/graph/directed-graph.d.ts +194 -0
  29. package/dist/data-structures/graph/directed-graph.js +404 -0
  30. package/dist/data-structures/graph/index.d.ts +4 -0
  31. package/dist/data-structures/graph/index.js +20 -0
  32. package/dist/data-structures/graph/map-graph.d.ts +73 -0
  33. package/dist/data-structures/graph/map-graph.js +93 -0
  34. package/dist/data-structures/graph/undirected-graph.d.ts +120 -0
  35. package/dist/data-structures/graph/undirected-graph.js +239 -0
  36. package/dist/data-structures/hash/coordinate-map.d.ts +44 -0
  37. package/dist/data-structures/hash/coordinate-map.js +62 -0
  38. package/dist/data-structures/hash/coordinate-set.d.ts +36 -0
  39. package/dist/data-structures/hash/coordinate-set.js +52 -0
  40. package/dist/data-structures/hash/hash-map.d.ts +50 -0
  41. package/dist/data-structures/hash/hash-map.js +153 -0
  42. package/dist/data-structures/hash/hash-table.d.ts +103 -0
  43. package/dist/data-structures/hash/hash-table.js +236 -0
  44. package/dist/data-structures/hash/index.d.ts +6 -0
  45. package/dist/data-structures/hash/index.js +22 -0
  46. package/dist/data-structures/hash/tree-map.d.ts +2 -0
  47. package/dist/data-structures/hash/tree-map.js +6 -0
  48. package/dist/data-structures/hash/tree-set.d.ts +2 -0
  49. package/dist/data-structures/hash/tree-set.js +6 -0
  50. package/dist/data-structures/heap/heap.d.ts +235 -0
  51. package/dist/data-structures/heap/heap.js +515 -0
  52. package/dist/data-structures/heap/index.d.ts +3 -0
  53. package/dist/data-structures/heap/index.js +19 -0
  54. package/dist/data-structures/heap/max-heap.d.ts +15 -0
  55. package/dist/data-structures/heap/max-heap.js +26 -0
  56. package/dist/data-structures/heap/min-heap.d.ts +15 -0
  57. package/dist/data-structures/heap/min-heap.js +26 -0
  58. package/dist/data-structures/index.d.ts +11 -0
  59. package/dist/data-structures/index.js +27 -0
  60. package/dist/data-structures/linked-list/doubly-linked-list.d.ts +253 -0
  61. package/dist/data-structures/linked-list/doubly-linked-list.js +569 -0
  62. package/dist/data-structures/linked-list/index.d.ts +3 -0
  63. package/dist/data-structures/linked-list/index.js +19 -0
  64. package/dist/data-structures/linked-list/singly-linked-list.d.ts +232 -0
  65. package/dist/data-structures/linked-list/singly-linked-list.js +533 -0
  66. package/dist/data-structures/linked-list/skip-linked-list.d.ts +80 -0
  67. package/dist/data-structures/linked-list/skip-linked-list.js +187 -0
  68. package/dist/data-structures/matrix/index.d.ts +4 -0
  69. package/dist/data-structures/matrix/index.js +20 -0
  70. package/dist/data-structures/matrix/matrix.d.ts +21 -0
  71. package/dist/data-structures/matrix/matrix.js +28 -0
  72. package/dist/data-structures/matrix/matrix2d.d.ts +107 -0
  73. package/dist/data-structures/matrix/matrix2d.js +199 -0
  74. package/dist/data-structures/matrix/navigator.d.ts +52 -0
  75. package/dist/data-structures/matrix/navigator.js +106 -0
  76. package/dist/data-structures/matrix/vector2d.d.ts +200 -0
  77. package/dist/data-structures/matrix/vector2d.js +290 -0
  78. package/dist/data-structures/priority-queue/index.d.ts +3 -0
  79. package/dist/data-structures/priority-queue/index.js +19 -0
  80. package/dist/data-structures/priority-queue/max-priority-queue.d.ts +15 -0
  81. package/dist/data-structures/priority-queue/max-priority-queue.js +26 -0
  82. package/dist/data-structures/priority-queue/min-priority-queue.d.ts +15 -0
  83. package/dist/data-structures/priority-queue/min-priority-queue.js +26 -0
  84. package/dist/data-structures/priority-queue/priority-queue.d.ts +15 -0
  85. package/dist/data-structures/priority-queue/priority-queue.js +17 -0
  86. package/dist/data-structures/queue/deque.d.ts +161 -0
  87. package/dist/data-structures/queue/deque.js +264 -0
  88. package/dist/data-structures/queue/index.d.ts +2 -0
  89. package/dist/data-structures/queue/index.js +18 -0
  90. package/dist/data-structures/queue/queue.d.ts +122 -0
  91. package/dist/data-structures/queue/queue.js +187 -0
  92. package/dist/data-structures/stack/index.d.ts +1 -0
  93. package/dist/data-structures/stack/index.js +17 -0
  94. package/dist/data-structures/stack/stack.d.ts +64 -0
  95. package/dist/data-structures/stack/stack.js +94 -0
  96. package/dist/data-structures/tree/index.d.ts +1 -0
  97. package/dist/data-structures/tree/index.js +17 -0
  98. package/dist/data-structures/tree/tree.d.ts +8 -0
  99. package/dist/data-structures/tree/tree.js +40 -0
  100. package/dist/data-structures/trie/index.d.ts +1 -0
  101. package/dist/data-structures/trie/index.js +17 -0
  102. package/dist/data-structures/trie/trie.d.ts +79 -0
  103. package/dist/data-structures/trie/trie.js +251 -0
  104. package/dist/index.d.ts +3 -1
  105. package/dist/index.js +18 -4
  106. package/dist/interfaces/binary-tree.d.ts +7 -0
  107. package/dist/interfaces/binary-tree.js +2 -0
  108. package/dist/interfaces/doubly-linked-list.d.ts +1 -0
  109. package/dist/interfaces/doubly-linked-list.js +2 -0
  110. package/dist/interfaces/graph.d.ts +5 -0
  111. package/dist/interfaces/graph.js +2 -0
  112. package/dist/interfaces/heap.d.ts +1 -0
  113. package/dist/interfaces/heap.js +2 -0
  114. package/dist/interfaces/index.d.ts +8 -0
  115. package/dist/interfaces/index.js +24 -0
  116. package/dist/interfaces/navigator.d.ts +1 -0
  117. package/dist/interfaces/navigator.js +2 -0
  118. package/dist/interfaces/priority-queue.d.ts +1 -0
  119. package/dist/interfaces/priority-queue.js +2 -0
  120. package/dist/interfaces/segment-tree.d.ts +1 -0
  121. package/dist/interfaces/segment-tree.js +2 -0
  122. package/dist/interfaces/singly-linked-list.d.ts +1 -0
  123. package/dist/interfaces/singly-linked-list.js +2 -0
  124. package/dist/types/data-structures/binary-tree/avl-tree.d.ts +4 -0
  125. package/dist/types/data-structures/binary-tree/avl-tree.js +2 -0
  126. package/dist/types/data-structures/binary-tree/binary-indexed-tree.d.ts +1 -0
  127. package/dist/types/data-structures/binary-tree/binary-indexed-tree.js +2 -0
  128. package/dist/types/data-structures/binary-tree/binary-tree.d.ts +29 -0
  129. package/dist/types/data-structures/binary-tree/binary-tree.js +24 -0
  130. package/dist/types/data-structures/binary-tree/bst.d.ts +7 -0
  131. package/dist/types/data-structures/binary-tree/bst.js +2 -0
  132. package/dist/types/data-structures/binary-tree/index.d.ts +6 -0
  133. package/dist/types/data-structures/binary-tree/index.js +22 -0
  134. package/dist/types/data-structures/binary-tree/rb-tree.d.ts +4 -0
  135. package/dist/types/data-structures/binary-tree/rb-tree.js +13 -0
  136. package/dist/types/data-structures/binary-tree/segment-tree.d.ts +1 -0
  137. package/dist/types/data-structures/binary-tree/segment-tree.js +2 -0
  138. package/dist/types/data-structures/binary-tree/tree-multiset.d.ts +4 -0
  139. package/dist/types/data-structures/binary-tree/tree-multiset.js +2 -0
  140. package/dist/types/data-structures/graph/abstract-graph.d.ts +10 -0
  141. package/dist/types/data-structures/graph/abstract-graph.js +2 -0
  142. package/dist/types/data-structures/graph/directed-graph.d.ts +6 -0
  143. package/dist/types/data-structures/graph/directed-graph.js +9 -0
  144. package/dist/types/data-structures/graph/index.d.ts +3 -0
  145. package/dist/types/data-structures/graph/index.js +19 -0
  146. package/dist/types/data-structures/graph/map-graph.d.ts +1 -0
  147. package/dist/types/data-structures/graph/map-graph.js +2 -0
  148. package/dist/types/data-structures/graph/undirected-graph.d.ts +1 -0
  149. package/dist/types/data-structures/graph/undirected-graph.js +2 -0
  150. package/dist/types/data-structures/hash/coordinate-map.d.ts +1 -0
  151. package/dist/types/data-structures/hash/coordinate-map.js +2 -0
  152. package/dist/types/data-structures/hash/coordinate-set.d.ts +1 -0
  153. package/dist/types/data-structures/hash/coordinate-set.js +2 -0
  154. package/dist/types/data-structures/hash/hash-map.d.ts +1 -0
  155. package/dist/types/data-structures/hash/hash-map.js +2 -0
  156. package/dist/types/data-structures/hash/hash-table.d.ts +1 -0
  157. package/dist/types/data-structures/hash/hash-table.js +2 -0
  158. package/dist/types/data-structures/hash/index.d.ts +1 -0
  159. package/dist/types/data-structures/hash/index.js +2 -0
  160. package/dist/types/data-structures/hash/tree-map.d.ts +1 -0
  161. package/dist/types/data-structures/hash/tree-map.js +2 -0
  162. package/dist/types/data-structures/hash/tree-set.d.ts +1 -0
  163. package/dist/types/data-structures/hash/tree-set.js +2 -0
  164. package/dist/types/data-structures/heap/heap.d.ts +1 -0
  165. package/dist/types/data-structures/heap/heap.js +2 -0
  166. package/dist/types/data-structures/heap/index.d.ts +1 -0
  167. package/dist/types/data-structures/heap/index.js +17 -0
  168. package/dist/types/data-structures/heap/max-heap.d.ts +1 -0
  169. package/dist/types/data-structures/heap/max-heap.js +2 -0
  170. package/dist/types/data-structures/heap/min-heap.d.ts +1 -0
  171. package/dist/types/data-structures/heap/min-heap.js +2 -0
  172. package/dist/types/data-structures/index.d.ts +11 -0
  173. package/dist/types/data-structures/index.js +27 -0
  174. package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +1 -0
  175. package/dist/types/data-structures/linked-list/doubly-linked-list.js +2 -0
  176. package/dist/types/data-structures/linked-list/index.d.ts +2 -0
  177. package/dist/types/data-structures/linked-list/index.js +18 -0
  178. package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +1 -0
  179. package/dist/types/data-structures/linked-list/singly-linked-list.js +2 -0
  180. package/dist/types/data-structures/linked-list/skip-linked-list.d.ts +1 -0
  181. package/dist/types/data-structures/linked-list/skip-linked-list.js +2 -0
  182. package/dist/types/data-structures/matrix/index.d.ts +1 -0
  183. package/dist/types/data-structures/matrix/index.js +17 -0
  184. package/dist/types/data-structures/matrix/matrix.d.ts +1 -0
  185. package/dist/types/data-structures/matrix/matrix.js +2 -0
  186. package/dist/types/data-structures/matrix/matrix2d.d.ts +1 -0
  187. package/dist/types/data-structures/matrix/matrix2d.js +2 -0
  188. package/dist/types/data-structures/matrix/navigator.d.ts +14 -0
  189. package/dist/types/data-structures/matrix/navigator.js +2 -0
  190. package/dist/types/data-structures/matrix/vector2d.d.ts +1 -0
  191. package/dist/types/data-structures/matrix/vector2d.js +2 -0
  192. package/dist/types/data-structures/priority-queue/index.d.ts +3 -0
  193. package/dist/types/data-structures/priority-queue/index.js +19 -0
  194. package/dist/types/data-structures/priority-queue/max-priority-queue.d.ts +1 -0
  195. package/dist/types/data-structures/priority-queue/max-priority-queue.js +2 -0
  196. package/dist/types/data-structures/priority-queue/min-priority-queue.d.ts +1 -0
  197. package/dist/types/data-structures/priority-queue/min-priority-queue.js +2 -0
  198. package/dist/types/data-structures/priority-queue/priority-queue.d.ts +1 -0
  199. package/dist/types/data-structures/priority-queue/priority-queue.js +2 -0
  200. package/dist/types/data-structures/queue/deque.d.ts +1 -0
  201. package/dist/types/data-structures/queue/deque.js +2 -0
  202. package/dist/types/data-structures/queue/index.d.ts +2 -0
  203. package/dist/types/data-structures/queue/index.js +18 -0
  204. package/dist/types/data-structures/queue/queue.d.ts +1 -0
  205. package/dist/types/data-structures/queue/queue.js +2 -0
  206. package/dist/types/data-structures/stack/index.d.ts +1 -0
  207. package/dist/types/data-structures/stack/index.js +17 -0
  208. package/dist/types/data-structures/stack/stack.d.ts +1 -0
  209. package/dist/types/data-structures/stack/stack.js +2 -0
  210. package/dist/types/data-structures/tree/index.d.ts +1 -0
  211. package/dist/types/data-structures/tree/index.js +17 -0
  212. package/dist/types/data-structures/tree/tree.d.ts +1 -0
  213. package/dist/types/data-structures/tree/tree.js +2 -0
  214. package/dist/types/data-structures/trie/index.d.ts +1 -0
  215. package/dist/types/data-structures/trie/index.js +17 -0
  216. package/dist/types/data-structures/trie/trie.d.ts +1 -0
  217. package/dist/types/data-structures/trie/trie.js +2 -0
  218. package/dist/types/helpers.d.ts +8 -0
  219. package/dist/types/helpers.js +9 -0
  220. package/dist/types/index.d.ts +3 -0
  221. package/dist/types/index.js +19 -0
  222. package/dist/types/utils/index.d.ts +2 -0
  223. package/dist/types/utils/index.js +18 -0
  224. package/dist/types/utils/utils.d.ts +7 -0
  225. package/dist/types/utils/utils.js +2 -0
  226. package/dist/types/utils/validate-type.d.ts +19 -0
  227. package/dist/types/utils/validate-type.js +2 -0
  228. package/dist/utils/index.d.ts +1 -0
  229. package/dist/utils/index.js +17 -0
  230. package/dist/utils/utils.d.ts +20 -0
  231. package/dist/utils/utils.js +73 -0
  232. package/package.json +2 -2
  233. package/src/data-structures/binary-tree/avl-tree.ts +350 -0
  234. package/src/data-structures/binary-tree/binary-indexed-tree.ts +306 -0
  235. package/src/data-structures/binary-tree/binary-tree.ts +1284 -0
  236. package/src/data-structures/binary-tree/bst.ts +522 -0
  237. package/src/data-structures/binary-tree/index.ts +7 -0
  238. package/src/data-structures/binary-tree/rb-tree.ts +426 -0
  239. package/src/data-structures/binary-tree/segment-tree.ts +190 -0
  240. package/src/data-structures/binary-tree/tree-multiset.ts +379 -0
  241. package/src/data-structures/graph/abstract-graph.ts +1000 -0
  242. package/src/data-structures/graph/directed-graph.ts +449 -0
  243. package/src/data-structures/graph/index.ts +4 -0
  244. package/src/data-structures/graph/map-graph.ts +106 -0
  245. package/src/data-structures/graph/undirected-graph.ts +259 -0
  246. package/src/data-structures/hash/coordinate-map.ts +63 -0
  247. package/src/data-structures/hash/coordinate-set.ts +52 -0
  248. package/src/data-structures/hash/hash-map.ts +185 -0
  249. package/src/data-structures/hash/hash-table.ts +268 -0
  250. package/src/data-structures/hash/index.ts +6 -0
  251. package/src/data-structures/hash/tree-map.ts +2 -0
  252. package/src/data-structures/hash/tree-set.ts +2 -0
  253. package/src/data-structures/heap/heap.ts +589 -0
  254. package/src/data-structures/heap/index.ts +3 -0
  255. package/src/data-structures/heap/max-heap.ts +26 -0
  256. package/src/data-structures/heap/min-heap.ts +26 -0
  257. package/src/data-structures/index.ts +11 -0
  258. package/src/data-structures/linked-list/doubly-linked-list.ts +605 -0
  259. package/src/data-structures/linked-list/index.ts +3 -0
  260. package/src/data-structures/linked-list/singly-linked-list.ts +576 -0
  261. package/src/data-structures/linked-list/skip-linked-list.ts +221 -0
  262. package/src/data-structures/matrix/index.ts +4 -0
  263. package/src/data-structures/matrix/matrix.ts +27 -0
  264. package/src/data-structures/matrix/matrix2d.ts +211 -0
  265. package/src/data-structures/matrix/navigator.ts +121 -0
  266. package/src/data-structures/matrix/vector2d.ts +315 -0
  267. package/src/data-structures/priority-queue/index.ts +3 -0
  268. package/src/data-structures/priority-queue/max-priority-queue.ts +25 -0
  269. package/src/data-structures/priority-queue/min-priority-queue.ts +25 -0
  270. package/src/data-structures/priority-queue/priority-queue.ts +16 -0
  271. package/src/data-structures/queue/deque.ts +282 -0
  272. package/src/data-structures/queue/index.ts +2 -0
  273. package/src/data-structures/queue/queue.ts +209 -0
  274. package/src/data-structures/stack/index.ts +1 -0
  275. package/src/data-structures/stack/stack.ts +102 -0
  276. package/src/data-structures/tree/index.ts +1 -0
  277. package/src/data-structures/tree/tree.ts +41 -0
  278. package/src/data-structures/trie/index.ts +1 -0
  279. package/src/data-structures/trie/trie.ts +262 -0
  280. package/src/index.ts +4 -1
  281. package/src/interfaces/binary-tree.ts +10 -0
  282. package/src/interfaces/doubly-linked-list.ts +1 -0
  283. package/src/interfaces/graph.ts +7 -0
  284. package/src/interfaces/heap.ts +1 -0
  285. package/src/interfaces/index.ts +8 -0
  286. package/src/interfaces/navigator.ts +1 -0
  287. package/src/interfaces/priority-queue.ts +1 -0
  288. package/src/interfaces/segment-tree.ts +1 -0
  289. package/src/interfaces/singly-linked-list.ts +1 -0
  290. package/src/types/data-structures/binary-tree/avl-tree.ts +5 -0
  291. package/src/types/data-structures/binary-tree/binary-indexed-tree.ts +1 -0
  292. package/src/types/data-structures/binary-tree/binary-tree.ts +31 -0
  293. package/src/types/data-structures/binary-tree/bst.ts +11 -0
  294. package/src/types/data-structures/binary-tree/index.ts +6 -0
  295. package/src/types/data-structures/binary-tree/rb-tree.ts +8 -0
  296. package/src/types/data-structures/binary-tree/segment-tree.ts +1 -0
  297. package/src/types/data-structures/binary-tree/tree-multiset.ts +6 -0
  298. package/src/types/data-structures/graph/abstract-graph.ts +11 -0
  299. package/src/types/data-structures/graph/directed-graph.ts +8 -0
  300. package/src/types/data-structures/graph/index.ts +3 -0
  301. package/src/types/data-structures/graph/map-graph.ts +1 -0
  302. package/src/types/data-structures/graph/undirected-graph.ts +1 -0
  303. package/src/types/data-structures/hash/coordinate-map.ts +1 -0
  304. package/src/types/data-structures/hash/coordinate-set.ts +1 -0
  305. package/src/types/data-structures/hash/hash-map.ts +1 -0
  306. package/src/types/data-structures/hash/hash-table.ts +1 -0
  307. package/src/types/data-structures/hash/index.ts +1 -0
  308. package/src/types/data-structures/hash/tree-map.ts +1 -0
  309. package/src/types/data-structures/hash/tree-set.ts +1 -0
  310. package/src/types/data-structures/heap/heap.ts +1 -0
  311. package/src/types/data-structures/heap/index.ts +1 -0
  312. package/src/types/data-structures/heap/max-heap.ts +1 -0
  313. package/src/types/data-structures/heap/min-heap.ts +1 -0
  314. package/src/types/data-structures/index.ts +11 -0
  315. package/src/types/data-structures/linked-list/doubly-linked-list.ts +1 -0
  316. package/src/types/data-structures/linked-list/index.ts +2 -0
  317. package/src/types/data-structures/linked-list/singly-linked-list.ts +1 -0
  318. package/src/types/data-structures/linked-list/skip-linked-list.ts +1 -0
  319. package/src/types/data-structures/matrix/index.ts +1 -0
  320. package/src/types/data-structures/matrix/matrix.ts +1 -0
  321. package/src/types/data-structures/matrix/matrix2d.ts +1 -0
  322. package/src/types/data-structures/matrix/navigator.ts +14 -0
  323. package/src/types/data-structures/matrix/vector2d.ts +1 -0
  324. package/src/types/data-structures/priority-queue/index.ts +3 -0
  325. package/src/types/data-structures/priority-queue/max-priority-queue.ts +1 -0
  326. package/src/types/data-structures/priority-queue/min-priority-queue.ts +1 -0
  327. package/src/types/data-structures/priority-queue/priority-queue.ts +1 -0
  328. package/src/types/data-structures/queue/deque.ts +1 -0
  329. package/src/types/data-structures/queue/index.ts +2 -0
  330. package/src/types/data-structures/queue/queue.ts +1 -0
  331. package/src/types/data-structures/stack/index.ts +1 -0
  332. package/src/types/data-structures/stack/stack.ts +1 -0
  333. package/src/types/data-structures/tree/index.ts +1 -0
  334. package/src/types/data-structures/tree/tree.ts +1 -0
  335. package/src/types/data-structures/trie/index.ts +1 -0
  336. package/src/types/data-structures/trie/trie.ts +1 -0
  337. package/src/types/helpers.ts +11 -0
  338. package/src/types/index.ts +3 -0
  339. package/src/types/utils/index.ts +2 -0
  340. package/src/types/utils/utils.ts +6 -0
  341. package/src/types/utils/validate-type.ts +35 -0
  342. package/src/utils/index.ts +1 -0
  343. package/src/utils/utils.ts +86 -0
  344. package/test/index.test.ts +78 -78
  345. package/tsconfig.json +1 -2
@@ -1,59 +1,127 @@
1
1
  body, html {
2
- margin:0; padding: 0;
2
+ margin: 0;
3
+ padding: 0;
3
4
  height: 100%;
4
5
  }
6
+
5
7
  body {
6
- font-family: Helvetica Neue, Helvetica, Arial;
7
- font-size: 14px;
8
- color:#333;
8
+ font-family: Helvetica Neue, Helvetica, Arial;
9
+ font-size: 14px;
10
+ color: #333;
11
+ }
12
+
13
+ .small {
14
+ font-size: 12px;
9
15
  }
10
- .small { font-size: 12px; }
16
+
11
17
  *, *:after, *:before {
12
- -webkit-box-sizing:border-box;
13
- -moz-box-sizing:border-box;
14
- box-sizing:border-box;
15
- }
16
- h1 { font-size: 20px; margin: 0;}
17
- h2 { font-size: 14px; }
18
+ -webkit-box-sizing: border-box;
19
+ -moz-box-sizing: border-box;
20
+ box-sizing: border-box;
21
+ }
22
+
23
+ h1 {
24
+ font-size: 20px;
25
+ margin: 0;
26
+ }
27
+
28
+ h2 {
29
+ font-size: 14px;
30
+ }
31
+
18
32
  pre {
19
- font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
- margin: 0;
21
- padding: 0;
22
- -moz-tab-size: 2;
23
- -o-tab-size: 2;
24
- tab-size: 2;
25
- }
26
- a { color:#0074D9; text-decoration:none; }
27
- a:hover { text-decoration:underline; }
28
- .strong { font-weight: bold; }
29
- .space-top1 { padding: 10px 0 0 0; }
30
- .pad2y { padding: 20px 0; }
31
- .pad1y { padding: 10px 0; }
32
- .pad2x { padding: 0 20px; }
33
- .pad2 { padding: 20px; }
34
- .pad1 { padding: 10px; }
35
- .space-left2 { padding-left:55px; }
36
- .space-right2 { padding-right:20px; }
37
- .center { text-align:center; }
38
- .clearfix { display:block; }
33
+ font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
34
+ margin: 0;
35
+ padding: 0;
36
+ -moz-tab-size: 2;
37
+ -o-tab-size: 2;
38
+ tab-size: 2;
39
+ }
40
+
41
+ a {
42
+ color: #0074D9;
43
+ text-decoration: none;
44
+ }
45
+
46
+ a:hover {
47
+ text-decoration: underline;
48
+ }
49
+
50
+ .strong {
51
+ font-weight: bold;
52
+ }
53
+
54
+ .space-top1 {
55
+ padding: 10px 0 0 0;
56
+ }
57
+
58
+ .pad2y {
59
+ padding: 20px 0;
60
+ }
61
+
62
+ .pad1y {
63
+ padding: 10px 0;
64
+ }
65
+
66
+ .pad2x {
67
+ padding: 0 20px;
68
+ }
69
+
70
+ .pad2 {
71
+ padding: 20px;
72
+ }
73
+
74
+ .pad1 {
75
+ padding: 10px;
76
+ }
77
+
78
+ .space-left2 {
79
+ padding-left: 55px;
80
+ }
81
+
82
+ .space-right2 {
83
+ padding-right: 20px;
84
+ }
85
+
86
+ .center {
87
+ text-align: center;
88
+ }
89
+
90
+ .clearfix {
91
+ display: block;
92
+ }
93
+
39
94
  .clearfix:after {
40
- content:'';
41
- display:block;
42
- height:0;
43
- clear:both;
44
- visibility:hidden;
95
+ content: '';
96
+ display: block;
97
+ height: 0;
98
+ clear: both;
99
+ visibility: hidden;
100
+ }
101
+
102
+ .fl {
103
+ float: left;
104
+ }
105
+
106
+ @media only screen and (max-width: 640px) {
107
+ .col3 {
108
+ width: 100%;
109
+ max-width: 100%;
110
+ }
111
+
112
+ .hide-mobile {
113
+ display: none !important;
45
114
  }
46
- .fl { float: left; }
47
- @media only screen and (max-width:640px) {
48
- .col3 { width:100%; max-width:100%; }
49
- .hide-mobile { display:none!important; }
50
115
  }
51
116
 
52
117
  .quiet {
53
118
  color: #7f7f7f;
54
- color: rgba(0,0,0,0.5);
119
+ color: rgba(0, 0, 0, 0.5);
120
+ }
121
+
122
+ .quiet a {
123
+ opacity: 0.7;
55
124
  }
56
- .quiet a { opacity: 0.7; }
57
125
 
58
126
  .fraction {
59
127
  font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
@@ -65,7 +133,10 @@ a:hover { text-decoration:underline; }
65
133
  vertical-align: middle;
66
134
  }
67
135
 
68
- div.path a:link, div.path a:visited { color: #333; }
136
+ div.path a:link, div.path a:visited {
137
+ color: #333;
138
+ }
139
+
69
140
  table.coverage {
70
141
  border-collapse: collapse;
71
142
  margin: 10px 0 0 0;
@@ -77,141 +148,248 @@ table.coverage td {
77
148
  padding: 0;
78
149
  vertical-align: top;
79
150
  }
151
+
80
152
  table.coverage td.line-count {
81
- text-align: right;
82
- padding: 0 5px 0 20px;
153
+ text-align: right;
154
+ padding: 0 5px 0 20px;
83
155
  }
156
+
84
157
  table.coverage td.line-coverage {
85
- text-align: right;
86
- padding-right: 10px;
87
- min-width:20px;
158
+ text-align: right;
159
+ padding-right: 10px;
160
+ min-width: 20px;
88
161
  }
89
162
 
90
163
  table.coverage td span.cline-any {
91
- display: inline-block;
92
- padding: 0 5px;
93
- width: 100%;
164
+ display: inline-block;
165
+ padding: 0 5px;
166
+ width: 100%;
94
167
  }
168
+
95
169
  .missing-if-branch {
96
- display: inline-block;
97
- margin-right: 5px;
98
- border-radius: 3px;
99
- position: relative;
100
- padding: 0 4px;
101
- background: #333;
102
- color: yellow;
170
+ display: inline-block;
171
+ margin-right: 5px;
172
+ border-radius: 3px;
173
+ position: relative;
174
+ padding: 0 4px;
175
+ background: #333;
176
+ color: yellow;
103
177
  }
104
178
 
105
179
  .skip-if-branch {
106
- display: none;
107
- margin-right: 10px;
108
- position: relative;
109
- padding: 0 4px;
110
- background: #ccc;
111
- color: white;
180
+ display: none;
181
+ margin-right: 10px;
182
+ position: relative;
183
+ padding: 0 4px;
184
+ background: #ccc;
185
+ color: white;
112
186
  }
187
+
113
188
  .missing-if-branch .typ, .skip-if-branch .typ {
114
- color: inherit !important;
189
+ color: inherit !important;
115
190
  }
191
+
116
192
  .coverage-summary {
117
193
  border-collapse: collapse;
118
194
  width: 100%;
119
195
  }
120
- .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
- .keyline-all { border: 1px solid #ddd; }
122
- .coverage-summary td, .coverage-summary th { padding: 10px; }
123
- .coverage-summary tbody { border: 1px solid #bbb; }
124
- .coverage-summary td { border-right: 1px solid #bbb; }
125
- .coverage-summary td:last-child { border-right: none; }
196
+
197
+ .coverage-summary tr {
198
+ border-bottom: 1px solid #bbb;
199
+ }
200
+
201
+ .keyline-all {
202
+ border: 1px solid #ddd;
203
+ }
204
+
205
+ .coverage-summary td, .coverage-summary th {
206
+ padding: 10px;
207
+ }
208
+
209
+ .coverage-summary tbody {
210
+ border: 1px solid #bbb;
211
+ }
212
+
213
+ .coverage-summary td {
214
+ border-right: 1px solid #bbb;
215
+ }
216
+
217
+ .coverage-summary td:last-child {
218
+ border-right: none;
219
+ }
220
+
126
221
  .coverage-summary th {
127
222
  text-align: left;
128
223
  font-weight: normal;
129
224
  white-space: nowrap;
130
225
  }
131
- .coverage-summary th.file { border-right: none !important; }
132
- .coverage-summary th.pct { }
226
+
227
+ .coverage-summary th.file {
228
+ border-right: none !important;
229
+ }
230
+
231
+ .coverage-summary th.pct {
232
+ }
233
+
133
234
  .coverage-summary th.pic,
134
235
  .coverage-summary th.abs,
135
236
  .coverage-summary td.pct,
136
- .coverage-summary td.abs { text-align: right; }
137
- .coverage-summary td.file { white-space: nowrap; }
138
- .coverage-summary td.pic { min-width: 120px !important; }
139
- .coverage-summary tfoot td { }
237
+ .coverage-summary td.abs {
238
+ text-align: right;
239
+ }
240
+
241
+ .coverage-summary td.file {
242
+ white-space: nowrap;
243
+ }
244
+
245
+ .coverage-summary td.pic {
246
+ min-width: 120px !important;
247
+ }
248
+
249
+ .coverage-summary tfoot td {
250
+ }
140
251
 
141
252
  .coverage-summary .sorter {
142
- height: 10px;
143
- width: 7px;
144
- display: inline-block;
145
- margin-left: 0.5em;
146
- background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
253
+ height: 10px;
254
+ width: 7px;
255
+ display: inline-block;
256
+ margin-left: 0.5em;
257
+ background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
258
  }
259
+
148
260
  .coverage-summary .sorted .sorter {
149
- background-position: 0 -20px;
261
+ background-position: 0 -20px;
150
262
  }
263
+
151
264
  .coverage-summary .sorted-desc .sorter {
152
- background-position: 0 -10px;
265
+ background-position: 0 -10px;
266
+ }
267
+
268
+ .status-line {
269
+ height: 10px;
153
270
  }
154
- .status-line { height: 10px; }
271
+
155
272
  /* yellow */
156
- .cbranch-no { background: yellow !important; color: #111; }
273
+ .cbranch-no {
274
+ background: yellow !important;
275
+ color: #111;
276
+ }
277
+
157
278
  /* dark red */
158
- .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
- .low .chart { border:1px solid #C21F39 }
279
+ .red.solid, .status-line.low, .low .cover-fill {
280
+ background: #C21F39
281
+ }
282
+
283
+ .low .chart {
284
+ border: 1px solid #C21F39
285
+ }
286
+
160
287
  .highlighted,
161
- .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
288
+ .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no {
162
289
  background: #C21F39 !important;
163
290
  }
291
+
164
292
  /* medium red */
165
- .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
293
+ .cstat-no, .fstat-no, .cbranch-no, .cbranch-no {
294
+ background: #F6C6CE
295
+ }
296
+
166
297
  /* light red */
167
- .low, .cline-no { background:#FCE1E5 }
298
+ .low, .cline-no {
299
+ background: #FCE1E5
300
+ }
301
+
168
302
  /* light green */
169
- .high, .cline-yes { background:rgb(230,245,208) }
303
+ .high, .cline-yes {
304
+ background: rgb(230, 245, 208)
305
+ }
306
+
170
307
  /* medium green */
171
- .cstat-yes { background:rgb(161,215,106) }
308
+ .cstat-yes {
309
+ background: rgb(161, 215, 106)
310
+ }
311
+
172
312
  /* dark green */
173
- .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
- .high .chart { border:1px solid rgb(77,146,33) }
313
+ .status-line.high, .high .cover-fill {
314
+ background: rgb(77, 146, 33)
315
+ }
316
+
317
+ .high .chart {
318
+ border: 1px solid rgb(77, 146, 33)
319
+ }
320
+
175
321
  /* dark yellow (gold) */
176
- .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
- .medium .chart { border:1px solid #f9cd0b; }
322
+ .status-line.medium, .medium .cover-fill {
323
+ background: #f9cd0b;
324
+ }
325
+
326
+ .medium .chart {
327
+ border: 1px solid #f9cd0b;
328
+ }
329
+
178
330
  /* light yellow */
179
- .medium { background: #fff4c2; }
331
+ .medium {
332
+ background: #fff4c2;
333
+ }
180
334
 
181
- .cstat-skip { background: #ddd; color: #111; }
182
- .fstat-skip { background: #ddd; color: #111 !important; }
183
- .cbranch-skip { background: #ddd !important; color: #111; }
335
+ .cstat-skip {
336
+ background: #ddd;
337
+ color: #111;
338
+ }
339
+
340
+ .fstat-skip {
341
+ background: #ddd;
342
+ color: #111 !important;
343
+ }
344
+
345
+ .cbranch-skip {
346
+ background: #ddd !important;
347
+ color: #111;
348
+ }
184
349
 
185
- span.cline-neutral { background: #eaeaea; }
350
+ span.cline-neutral {
351
+ background: #eaeaea;
352
+ }
186
353
 
187
354
  .coverage-summary td.empty {
188
- opacity: .5;
189
- padding-top: 4px;
190
- padding-bottom: 4px;
191
- line-height: 1;
192
- color: #888;
355
+ opacity: .5;
356
+ padding-top: 4px;
357
+ padding-bottom: 4px;
358
+ line-height: 1;
359
+ color: #888;
193
360
  }
194
361
 
195
362
  .cover-fill, .cover-empty {
196
- display:inline-block;
363
+ display: inline-block;
197
364
  height: 12px;
198
365
  }
366
+
199
367
  .chart {
200
368
  line-height: 0;
201
369
  }
370
+
202
371
  .cover-empty {
203
- background: white;
372
+ background: white;
204
373
  }
374
+
205
375
  .cover-full {
206
- border-right: none !important;
376
+ border-right: none !important;
207
377
  }
378
+
208
379
  pre.prettyprint {
209
- border: none !important;
210
- padding: 0 !important;
211
- margin: 0 !important;
380
+ border: none !important;
381
+ padding: 0 !important;
382
+ margin: 0 !important;
383
+ }
384
+
385
+ .com {
386
+ color: #999 !important;
387
+ }
388
+
389
+ .ignore-none {
390
+ color: #999;
391
+ font-weight: normal;
212
392
  }
213
- .com { color: #999 !important; }
214
- .ignore-none { color: #999; font-weight: normal; }
215
393
 
216
394
  .wrapper {
217
395
  min-height: 100%;
@@ -219,6 +397,7 @@ pre.prettyprint {
219
397
  height: 100%;
220
398
  margin: 0 auto -48px;
221
399
  }
400
+
222
401
  .footer, .push {
223
402
  height: 48px;
224
403
  }
@@ -1,87 +1,87 @@
1
1
  /* eslint-disable */
2
2
  var jumpToCode = (function init() {
3
- // Classes of code we would like to highlight in the file view
4
- var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
3
+ // Classes of code we would like to highlight in the file view
4
+ var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
5
5
 
6
- // Elements to highlight in the file listing view
7
- var fileListingElements = ['td.pct.low'];
6
+ // Elements to highlight in the file listing view
7
+ var fileListingElements = ['td.pct.low'];
8
8
 
9
- // We don't want to select elements that are direct descendants of another match
10
- var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
9
+ // We don't want to select elements that are direct descendants of another match
10
+ var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
11
 
12
- // Selecter that finds elements on the page to which we can jump
13
- var selector =
14
- fileListingElements.join(', ') +
15
- ', ' +
16
- notSelector +
17
- missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
12
+ // Selecter that finds elements on the page to which we can jump
13
+ var selector =
14
+ fileListingElements.join(', ') +
15
+ ', ' +
16
+ notSelector +
17
+ missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
18
18
 
19
- // The NodeList of matching elements
20
- var missingCoverageElements = document.querySelectorAll(selector);
19
+ // The NodeList of matching elements
20
+ var missingCoverageElements = document.querySelectorAll(selector);
21
21
 
22
- var currentIndex;
22
+ var currentIndex;
23
23
 
24
- function toggleClass(index) {
25
- missingCoverageElements
26
- .item(currentIndex)
27
- .classList.remove('highlighted');
28
- missingCoverageElements.item(index).classList.add('highlighted');
29
- }
30
-
31
- function makeCurrent(index) {
32
- toggleClass(index);
33
- currentIndex = index;
34
- missingCoverageElements.item(index).scrollIntoView({
35
- behavior: 'smooth',
36
- block: 'center',
37
- inline: 'center'
38
- });
39
- }
24
+ function toggleClass(index) {
25
+ missingCoverageElements
26
+ .item(currentIndex)
27
+ .classList.remove('highlighted');
28
+ missingCoverageElements.item(index).classList.add('highlighted');
29
+ }
40
30
 
41
- function goToPrevious() {
42
- var nextIndex = 0;
43
- if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
- nextIndex = missingCoverageElements.length - 1;
45
- } else if (missingCoverageElements.length > 1) {
46
- nextIndex = currentIndex - 1;
47
- }
31
+ function makeCurrent(index) {
32
+ toggleClass(index);
33
+ currentIndex = index;
34
+ missingCoverageElements.item(index).scrollIntoView({
35
+ behavior: 'smooth',
36
+ block: 'center',
37
+ inline: 'center'
38
+ });
39
+ }
48
40
 
49
- makeCurrent(nextIndex);
41
+ function goToPrevious() {
42
+ var nextIndex = 0;
43
+ if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
+ nextIndex = missingCoverageElements.length - 1;
45
+ } else if (missingCoverageElements.length > 1) {
46
+ nextIndex = currentIndex - 1;
50
47
  }
51
48
 
52
- function goToNext() {
53
- var nextIndex = 0;
49
+ makeCurrent(nextIndex);
50
+ }
54
51
 
55
- if (
56
- typeof currentIndex === 'number' &&
57
- currentIndex < missingCoverageElements.length - 1
58
- ) {
59
- nextIndex = currentIndex + 1;
60
- }
52
+ function goToNext() {
53
+ var nextIndex = 0;
61
54
 
62
- makeCurrent(nextIndex);
55
+ if (
56
+ typeof currentIndex === 'number' &&
57
+ currentIndex < missingCoverageElements.length - 1
58
+ ) {
59
+ nextIndex = currentIndex + 1;
63
60
  }
64
61
 
65
- return function jump(event) {
66
- if (
67
- document.getElementById('fileSearch') === document.activeElement &&
68
- document.activeElement != null
69
- ) {
70
- // if we're currently focused on the search input, we don't want to navigate
71
- return;
72
- }
62
+ makeCurrent(nextIndex);
63
+ }
73
64
 
74
- switch (event.which) {
75
- case 78: // n
76
- case 74: // j
77
- goToNext();
78
- break;
79
- case 66: // b
80
- case 75: // k
81
- case 80: // p
82
- goToPrevious();
83
- break;
84
- }
85
- };
65
+ return function jump(event) {
66
+ if (
67
+ document.getElementById('fileSearch') === document.activeElement &&
68
+ document.activeElement != null
69
+ ) {
70
+ // if we're currently focused on the search input, we don't want to navigate
71
+ return;
72
+ }
73
+
74
+ switch (event.which) {
75
+ case 78: // n
76
+ case 74: // j
77
+ goToNext();
78
+ break;
79
+ case 66: // b
80
+ case 75: // k
81
+ case 80: // p
82
+ goToPrevious();
83
+ break;
84
+ }
85
+ };
86
86
  })();
87
87
  window.addEventListener('keydown', jumpToCode);