postrest 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. checksums.yaml +4 -4
  2. data/lib/app.rb +1 -1
  3. data/public/index.htm +116 -0
  4. data/public/node_modules/pivottable/CONTRIBUTING.md +19 -0
  5. data/public/node_modules/pivottable/LICENSE.md +9 -0
  6. data/public/node_modules/pivottable/ReadMe.md +155 -0
  7. data/public/node_modules/pivottable/bower.json +31 -0
  8. data/public/node_modules/pivottable/c3_renderers.coffee +155 -0
  9. data/public/node_modules/pivottable/d3_renderers.coffee +73 -0
  10. data/public/node_modules/pivottable/dist/c3_renderers.js +256 -0
  11. data/public/node_modules/pivottable/dist/c3_renderers.js.map +1 -0
  12. data/public/node_modules/pivottable/dist/c3_renderers.min.js +2 -0
  13. data/public/node_modules/pivottable/dist/c3_renderers.min.js.map +1 -0
  14. data/public/node_modules/pivottable/dist/d3_renderers.js +105 -0
  15. data/public/node_modules/pivottable/dist/d3_renderers.js.map +1 -0
  16. data/public/node_modules/pivottable/dist/d3_renderers.min.js +2 -0
  17. data/public/node_modules/pivottable/dist/d3_renderers.min.js.map +1 -0
  18. data/public/node_modules/pivottable/dist/export_renderers.js +80 -0
  19. data/public/node_modules/pivottable/dist/export_renderers.js.map +1 -0
  20. data/public/node_modules/pivottable/dist/export_renderers.min.js +2 -0
  21. data/public/node_modules/pivottable/dist/export_renderers.min.js.map +1 -0
  22. data/public/node_modules/pivottable/dist/gchart_renderers.js +183 -0
  23. data/public/node_modules/pivottable/dist/gchart_renderers.js.map +1 -0
  24. data/public/node_modules/pivottable/dist/gchart_renderers.min.js +2 -0
  25. data/public/node_modules/pivottable/dist/gchart_renderers.min.js.map +1 -0
  26. data/public/node_modules/pivottable/dist/pivot.css +97 -0
  27. data/public/node_modules/pivottable/dist/pivot.es.js +78 -0
  28. data/public/node_modules/pivottable/dist/pivot.es.js.map +1 -0
  29. data/public/node_modules/pivottable/dist/pivot.es.min.js +2 -0
  30. data/public/node_modules/pivottable/dist/pivot.es.min.js.map +1 -0
  31. data/public/node_modules/pivottable/dist/pivot.fr.js +78 -0
  32. data/public/node_modules/pivottable/dist/pivot.fr.js.map +1 -0
  33. data/public/node_modules/pivottable/dist/pivot.fr.min.js +2 -0
  34. data/public/node_modules/pivottable/dist/pivot.fr.min.js.map +1 -0
  35. data/public/node_modules/pivottable/dist/pivot.js +1511 -0
  36. data/public/node_modules/pivottable/dist/pivot.js.map +1 -0
  37. data/public/node_modules/pivottable/dist/pivot.min.css +1 -0
  38. data/public/node_modules/pivottable/dist/pivot.min.js +2 -0
  39. data/public/node_modules/pivottable/dist/pivot.min.js.map +1 -0
  40. data/public/node_modules/pivottable/dist/pivot.nl.js +78 -0
  41. data/public/node_modules/pivottable/dist/pivot.nl.js.map +1 -0
  42. data/public/node_modules/pivottable/dist/pivot.nl.min.js +2 -0
  43. data/public/node_modules/pivottable/dist/pivot.nl.min.js.map +1 -0
  44. data/public/node_modules/pivottable/dist/pivot.pt.js +104 -0
  45. data/public/node_modules/pivottable/dist/pivot.pt.js.map +1 -0
  46. data/public/node_modules/pivottable/dist/pivot.pt.min.js +2 -0
  47. data/public/node_modules/pivottable/dist/pivot.pt.min.js.map +1 -0
  48. data/public/node_modules/pivottable/dist/pivot.ru.js +78 -0
  49. data/public/node_modules/pivottable/dist/pivot.ru.js.map +1 -0
  50. data/public/node_modules/pivottable/dist/pivot.ru.min.js +2 -0
  51. data/public/node_modules/pivottable/dist/pivot.ru.min.js.map +1 -0
  52. data/public/node_modules/pivottable/dist/pivot.tr.js +104 -0
  53. data/public/node_modules/pivottable/dist/pivot.tr.js.map +1 -0
  54. data/public/node_modules/pivottable/dist/pivot.tr.min.js +2 -0
  55. data/public/node_modules/pivottable/dist/pivot.tr.min.js.map +1 -0
  56. data/public/node_modules/pivottable/dist/tips_data.min.js +247 -0
  57. data/public/node_modules/pivottable/examples/c3.html +61 -0
  58. data/public/node_modules/pivottable/examples/d3.html +49 -0
  59. data/public/node_modules/pivottable/examples/fully_loaded.html +80 -0
  60. data/public/node_modules/pivottable/examples/gchart.html +53 -0
  61. data/public/node_modules/pivottable/examples/gh-fork-ribbon.css +140 -0
  62. data/public/node_modules/pivottable/examples/gh-fork-ribbon.ie.css +78 -0
  63. data/public/node_modules/pivottable/examples/index.html +85 -0
  64. data/public/node_modules/pivottable/examples/local.html +74 -0
  65. data/public/node_modules/pivottable/examples/montreal_2014.csv +366 -0
  66. data/public/node_modules/pivottable/examples/montreal_2014.html +106 -0
  67. data/public/node_modules/pivottable/examples/mps.csv +309 -0
  68. data/public/node_modules/pivottable/examples/mps.html +45 -0
  69. data/public/node_modules/pivottable/examples/mps.json +1 -0
  70. data/public/node_modules/pivottable/examples/mps_agg.html +44 -0
  71. data/public/node_modules/pivottable/examples/mps_csv.html +42 -0
  72. data/public/node_modules/pivottable/examples/mps_export.html +44 -0
  73. data/public/node_modules/pivottable/examples/mps_fr.html +40 -0
  74. data/public/node_modules/pivottable/examples/mps_prepop.html +42 -0
  75. data/public/node_modules/pivottable/examples/onrefresh.html +52 -0
  76. data/public/node_modules/pivottable/examples/rcsvs.html +87 -0
  77. data/public/node_modules/pivottable/examples/scatter.html +53 -0
  78. data/public/node_modules/pivottable/examples/show_code.js +17 -0
  79. data/public/node_modules/pivottable/examples/simple.html +41 -0
  80. data/public/node_modules/pivottable/examples/simple_agg.html +51 -0
  81. data/public/node_modules/pivottable/examples/simple_function.html +57 -0
  82. data/public/node_modules/pivottable/examples/simple_ui.html +42 -0
  83. data/public/node_modules/pivottable/examples/simple_ui_from_table.html +60 -0
  84. data/public/node_modules/pivottable/export_renderers.coffee +57 -0
  85. data/public/node_modules/pivottable/gchart_renderers.coffee +111 -0
  86. data/public/node_modules/pivottable/gulpFile.js +95 -0
  87. data/public/node_modules/pivottable/images/animation.gif +0 -0
  88. data/public/node_modules/pivottable/images/filters.png +0 -0
  89. data/public/node_modules/pivottable/images/gender_age_bins.png +0 -0
  90. data/public/node_modules/pivottable/images/gender_imbalance.png +0 -0
  91. data/public/node_modules/pivottable/images/gender_imbalance_instructions.png +0 -0
  92. data/public/node_modules/pivottable/images/initial_state.png +0 -0
  93. data/public/node_modules/pivottable/images/province_x_party_heatmap.png +0 -0
  94. data/public/node_modules/pivottable/images/province_x_party_heatmap_instructions.png +0 -0
  95. data/public/node_modules/pivottable/images/simple.png +0 -0
  96. data/public/node_modules/pivottable/images/simple_ui.png +0 -0
  97. data/public/node_modules/pivottable/images/whats_what.png +0 -0
  98. data/public/node_modules/pivottable/index.html +14 -0
  99. data/public/node_modules/pivottable/node_modules/jquery/AUTHORS.txt +278 -0
  100. data/public/node_modules/pivottable/node_modules/jquery/LICENSE.txt +36 -0
  101. data/public/node_modules/pivottable/node_modules/jquery/README.md +65 -0
  102. data/public/node_modules/pivottable/node_modules/jquery/bower.json +14 -0
  103. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.js +9842 -0
  104. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.min.js +4 -0
  105. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.min.map +1 -0
  106. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.js +7877 -0
  107. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.min.js +4 -0
  108. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.min.map +1 -0
  109. data/public/node_modules/pivottable/node_modules/jquery/package.json +122 -0
  110. data/public/node_modules/pivottable/node_modules/jquery/sizzle/LICENSE.txt +36 -0
  111. data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.js +2143 -0
  112. data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.min.js +3 -0
  113. data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.min.map +1 -0
  114. data/public/node_modules/pivottable/node_modules/jquery/src/ajax.js +845 -0
  115. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/jsonp.js +100 -0
  116. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/load.js +83 -0
  117. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/parseJSON.js +13 -0
  118. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/parseXML.js +27 -0
  119. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/script.js +68 -0
  120. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/location.js +3 -0
  121. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  122. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  123. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/xhr.js +167 -0
  124. data/public/node_modules/pivottable/node_modules/jquery/src/attributes.js +11 -0
  125. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/attr.js +142 -0
  126. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/classes.js +177 -0
  127. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/prop.js +125 -0
  128. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/support.js +36 -0
  129. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/val.js +177 -0
  130. data/public/node_modules/pivottable/node_modules/jquery/src/callbacks.js +232 -0
  131. data/public/node_modules/pivottable/node_modules/jquery/src/core.js +494 -0
  132. data/public/node_modules/pivottable/node_modules/jquery/src/core/DOMEval.js +14 -0
  133. data/public/node_modules/pivottable/node_modules/jquery/src/core/access.js +65 -0
  134. data/public/node_modules/pivottable/node_modules/jquery/src/core/init.js +134 -0
  135. data/public/node_modules/pivottable/node_modules/jquery/src/core/parseHTML.js +41 -0
  136. data/public/node_modules/pivottable/node_modules/jquery/src/core/ready.js +103 -0
  137. data/public/node_modules/pivottable/node_modules/jquery/src/core/support.js +18 -0
  138. data/public/node_modules/pivottable/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
  139. data/public/node_modules/pivottable/node_modules/jquery/src/css.js +515 -0
  140. data/public/node_modules/pivottable/node_modules/jquery/src/css/addGetHookIf.js +24 -0
  141. data/public/node_modules/pivottable/node_modules/jquery/src/css/adjustCSS.js +65 -0
  142. data/public/node_modules/pivottable/node_modules/jquery/src/css/curCSS.js +60 -0
  143. data/public/node_modules/pivottable/node_modules/jquery/src/css/defaultDisplay.js +72 -0
  144. data/public/node_modules/pivottable/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
  145. data/public/node_modules/pivottable/node_modules/jquery/src/css/showHide.js +48 -0
  146. data/public/node_modules/pivottable/node_modules/jquery/src/css/support.js +121 -0
  147. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  148. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/getStyles.js +15 -0
  149. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/isHidden.js +16 -0
  150. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/rmargin.js +3 -0
  151. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  152. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/swap.js +24 -0
  153. data/public/node_modules/pivottable/node_modules/jquery/src/data.js +187 -0
  154. data/public/node_modules/pivottable/node_modules/jquery/src/data/Data.js +200 -0
  155. data/public/node_modules/pivottable/node_modules/jquery/src/data/accepts.js +20 -0
  156. data/public/node_modules/pivottable/node_modules/jquery/src/data/support.js +23 -0
  157. data/public/node_modules/pivottable/node_modules/jquery/src/data/var/acceptData.js +18 -0
  158. data/public/node_modules/pivottable/node_modules/jquery/src/data/var/dataPriv.js +5 -0
  159. data/public/node_modules/pivottable/node_modules/jquery/src/data/var/dataUser.js +5 -0
  160. data/public/node_modules/pivottable/node_modules/jquery/src/deferred.js +158 -0
  161. data/public/node_modules/pivottable/node_modules/jquery/src/deferred/exceptionHook.js +19 -0
  162. data/public/node_modules/pivottable/node_modules/jquery/src/deprecated.js +32 -0
  163. data/public/node_modules/pivottable/node_modules/jquery/src/dimensions.js +54 -0
  164. data/public/node_modules/pivottable/node_modules/jquery/src/effects.js +629 -0
  165. data/public/node_modules/pivottable/node_modules/jquery/src/effects/Tween.js +121 -0
  166. data/public/node_modules/pivottable/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  167. data/public/node_modules/pivottable/node_modules/jquery/src/effects/support.js +58 -0
  168. data/public/node_modules/pivottable/node_modules/jquery/src/event.js +710 -0
  169. data/public/node_modules/pivottable/node_modules/jquery/src/event/ajax.js +20 -0
  170. data/public/node_modules/pivottable/node_modules/jquery/src/event/alias.js +27 -0
  171. data/public/node_modules/pivottable/node_modules/jquery/src/event/focusin.js +53 -0
  172. data/public/node_modules/pivottable/node_modules/jquery/src/event/support.js +9 -0
  173. data/public/node_modules/pivottable/node_modules/jquery/src/event/trigger.js +199 -0
  174. data/public/node_modules/pivottable/node_modules/jquery/src/exports/amd.js +24 -0
  175. data/public/node_modules/pivottable/node_modules/jquery/src/exports/global.js +26 -0
  176. data/public/node_modules/pivottable/node_modules/jquery/src/intro.js +44 -0
  177. data/public/node_modules/pivottable/node_modules/jquery/src/jquery.js +37 -0
  178. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation.js +481 -0
  179. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
  180. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
  181. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/createSafeFragment.js +20 -0
  182. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/getAll.js +21 -0
  183. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
  184. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/support.js +33 -0
  185. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/nodeNames.js +5 -0
  186. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  187. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
  188. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
  189. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
  190. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
  191. data/public/node_modules/pivottable/node_modules/jquery/src/offset.js +218 -0
  192. data/public/node_modules/pivottable/node_modules/jquery/src/outro.js +2 -0
  193. data/public/node_modules/pivottable/node_modules/jquery/src/queue.js +143 -0
  194. data/public/node_modules/pivottable/node_modules/jquery/src/queue/delay.js +22 -0
  195. data/public/node_modules/pivottable/node_modules/jquery/src/selector-native.js +211 -0
  196. data/public/node_modules/pivottable/node_modules/jquery/src/selector-sizzle.js +14 -0
  197. data/public/node_modules/pivottable/node_modules/jquery/src/selector.js +1 -0
  198. data/public/node_modules/pivottable/node_modules/jquery/src/serialize.js +125 -0
  199. data/public/node_modules/pivottable/node_modules/jquery/src/support.js +63 -0
  200. data/public/node_modules/pivottable/node_modules/jquery/src/traversing.js +175 -0
  201. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/findFilter.js +100 -0
  202. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/dir.js +20 -0
  203. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  204. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/siblings.js +15 -0
  205. data/public/node_modules/pivottable/node_modules/jquery/src/var/arr.js +3 -0
  206. data/public/node_modules/pivottable/node_modules/jquery/src/var/class2type.js +5 -0
  207. data/public/node_modules/pivottable/node_modules/jquery/src/var/concat.js +5 -0
  208. data/public/node_modules/pivottable/node_modules/jquery/src/var/deletedIds.js +3 -0
  209. data/public/node_modules/pivottable/node_modules/jquery/src/var/document.js +3 -0
  210. data/public/node_modules/pivottable/node_modules/jquery/src/var/documentElement.js +5 -0
  211. data/public/node_modules/pivottable/node_modules/jquery/src/var/hasOwn.js +5 -0
  212. data/public/node_modules/pivottable/node_modules/jquery/src/var/indexOf.js +5 -0
  213. data/public/node_modules/pivottable/node_modules/jquery/src/var/pnum.js +3 -0
  214. data/public/node_modules/pivottable/node_modules/jquery/src/var/push.js +5 -0
  215. data/public/node_modules/pivottable/node_modules/jquery/src/var/rcssNum.js +7 -0
  216. data/public/node_modules/pivottable/node_modules/jquery/src/var/rnotwhite.js +3 -0
  217. data/public/node_modules/pivottable/node_modules/jquery/src/var/slice.js +5 -0
  218. data/public/node_modules/pivottable/node_modules/jquery/src/var/support.js +5 -0
  219. data/public/node_modules/pivottable/node_modules/jquery/src/var/toString.js +5 -0
  220. data/public/node_modules/pivottable/node_modules/jquery/src/wrap.js +79 -0
  221. data/public/node_modules/pivottable/package.json +70 -0
  222. data/public/node_modules/pivottable/pivot.coffee +957 -0
  223. data/public/node_modules/pivottable/pivot.es.coffee +57 -0
  224. data/public/node_modules/pivottable/pivot.fr.coffee +57 -0
  225. data/public/node_modules/pivottable/pivot.nl.coffee +55 -0
  226. data/public/node_modules/pivottable/pivot.pt.coffee +80 -0
  227. data/public/node_modules/pivottable/pivot.ru.coffee +56 -0
  228. data/public/node_modules/pivottable/pivot.tr.coffee +80 -0
  229. data/public/node_modules/pivottable/pivottable.jquery.json +33 -0
  230. data/public/node_modules/pivottable/tests/boot.js +152 -0
  231. data/public/node_modules/pivottable/tests/index.html +35 -0
  232. data/public/node_modules/pivottable/tests/pivot_spec.coffee +458 -0
  233. data/public/vendor.js +5 -0
  234. metadata +232 -1
@@ -0,0 +1,57 @@
1
+ callWithJQuery = (pivotModule) ->
2
+ if typeof exports is "object" and typeof module is "object" # CommonJS
3
+ pivotModule require("jquery")
4
+ else if typeof define is "function" and define.amd # AMD
5
+ define ["jquery"], pivotModule
6
+ # Plain browser env
7
+ else
8
+ pivotModule jQuery
9
+
10
+ callWithJQuery ($) ->
11
+ nf = $.pivotUtilities.numberFormat
12
+ tpl = $.pivotUtilities.aggregatorTemplates
13
+
14
+ frFmt = nf(thousandsSep: " ", decimalSep: ",")
15
+ frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: " ", decimalSep: ",")
16
+ frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: "%", thousandsSep: " ", decimalSep: ",")
17
+
18
+ $.pivotUtilities.locales.es =
19
+
20
+ localeStrings:
21
+ renderError: "Ocurrió un error durante la interpretación de la tabla din´mica."
22
+ computeError: "Ocurrió un error durante el c´lculo de la tabla din´mica."
23
+ uiRenderError: "Ocurrió un error durante el dibujado de la tabla din´mica."
24
+ selectAll: "Seleccionar todo"
25
+ selectNone: "Deseleccionar todo"
26
+ tooMany: "(demasiados valores)"
27
+ filterResults: "Filtrar resultados"
28
+ totals: "Totales"
29
+ vs: "vs"
30
+ by: "por"
31
+ aggregators:
32
+ "Cuenta": tpl.count(frFmtInt)
33
+ "Cuenta de valores únicos": tpl.countUnique(frFmtInt)
34
+ "Lista de valores únicos": tpl.listUnique(", ")
35
+ "Suma": tpl.sum(frFmt)
36
+ "Suma de enteros": tpl.sum(frFmtInt)
37
+ "Promedio": tpl.average(frFmt)
38
+ "Mínimo": tpl.min(frFmt)
39
+ "Máximo": tpl.max(frFmt)
40
+ "Suma de sumas": tpl.sumOverSum(frFmt)
41
+ "Cota 80% superior": tpl.sumOverSumBound80(true, frFmt)
42
+ "Cota 80% inferior": tpl.sumOverSumBound80(false, frFmt)
43
+ "Proporción del total (suma)": tpl.fractionOf(tpl.sum(), "total", frFmtPct)
44
+ "Proporción de la fila (suma)": tpl.fractionOf(tpl.sum(), "row", frFmtPct)
45
+ "Proporción de la columna (suma)": tpl.fractionOf(tpl.sum(), "col", frFmtPct)
46
+ "Proporción del total (cuenta)": tpl.fractionOf(tpl.count(), "total", frFmtPct)
47
+ "Proporción de la fila (cuenta)": tpl.fractionOf(tpl.count(), "row", frFmtPct)
48
+ "Proporción de la columna (cuenta)": tpl.fractionOf(tpl.count(), "col", frFmtPct)
49
+
50
+ renderers:
51
+ "Tabla": $.pivotUtilities.renderers["Table"]
52
+ "Tabla con barras": $.pivotUtilities.renderers["Table Barchart"]
53
+ "Heatmap": $.pivotUtilities.renderers["Heatmap"]
54
+ "Heatmap por filas": $.pivotUtilities.renderers["Row Heatmap"]
55
+ "Heatmap por columnas": $.pivotUtilities.renderers["Col Heatmap"]
56
+
57
+
@@ -0,0 +1,57 @@
1
+ callWithJQuery = (pivotModule) ->
2
+ if typeof exports is "object" and typeof module is "object" # CommonJS
3
+ pivotModule require("jquery")
4
+ else if typeof define is "function" and define.amd # AMD
5
+ define ["jquery"], pivotModule
6
+ # Plain browser env
7
+ else
8
+ pivotModule jQuery
9
+
10
+ callWithJQuery ($) ->
11
+ nf = $.pivotUtilities.numberFormat
12
+ tpl = $.pivotUtilities.aggregatorTemplates
13
+
14
+ frFmt = nf(thousandsSep: " ", decimalSep: ",")
15
+ frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: " ", decimalSep: ",")
16
+ frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: "%", thousandsSep: " ", decimalSep: ",")
17
+
18
+ $.pivotUtilities.locales.fr =
19
+ localeStrings:
20
+ renderError: "Une erreur est survenue en dessinant le tableau croisé."
21
+ computeError: "Une erreur est survenue en calculant le tableau croisé."
22
+ uiRenderError: "Une erreur est survenue en dessinant l'interface du tableau croisé dynamique."
23
+ selectAll: "Sélectionner tout"
24
+ selectNone: "Sélectionner rien"
25
+ tooMany: "(trop de valeurs à afficher)"
26
+ filterResults: "Filtrer les valeurs"
27
+ totals: "Totaux"
28
+ vs: "sur"
29
+ by: "par"
30
+
31
+ aggregators:
32
+ "Nombre": tpl.count(frFmtInt)
33
+ "Nombre de valeurs uniques": tpl.countUnique(frFmtInt)
34
+ "Liste de valeurs uniques": tpl.listUnique(", ")
35
+ "Somme": tpl.sum(frFmt)
36
+ "Somme en entiers": tpl.sum(frFmtInt)
37
+ "Moyenne": tpl.average(frFmt)
38
+ "Minimum": tpl.min(frFmt)
39
+ "Maximum": tpl.max(frFmt)
40
+ "Ratio de sommes": tpl.sumOverSum(frFmt)
41
+ "Borne supérieure 80%": tpl.sumOverSumBound80(true, frFmt)
42
+ "Borne inférieure 80%": tpl.sumOverSumBound80(false, frFmt)
43
+ "Somme en proportion du totale": tpl.fractionOf(tpl.sum(), "total", frFmtPct)
44
+ "Somme en proportion de la ligne": tpl.fractionOf(tpl.sum(), "row", frFmtPct)
45
+ "Somme en proportion de la colonne": tpl.fractionOf(tpl.sum(), "col", frFmtPct)
46
+ "Nombre en proportion du totale": tpl.fractionOf(tpl.count(), "total", frFmtPct)
47
+ "Nombre en proportion de la ligne": tpl.fractionOf(tpl.count(), "row", frFmtPct)
48
+ "Nombre en proportion de la colonne": tpl.fractionOf(tpl.count(), "col", frFmtPct)
49
+
50
+ renderers:
51
+ "Table": $.pivotUtilities.renderers["Table"]
52
+ "Table avec barres": $.pivotUtilities.renderers["Table Barchart"]
53
+ "Carte de chaleur": $.pivotUtilities.renderers["Heatmap"]
54
+ "Carte de chaleur par ligne": $.pivotUtilities.renderers["Row Heatmap"]
55
+ "Carte de chaleur par colonne": $.pivotUtilities.renderers["Col Heatmap"]
56
+
57
+
@@ -0,0 +1,55 @@
1
+ callWithJQuery = (pivotModule) ->
2
+ if typeof exports is "object" and typeof module is "object" # CommonJS
3
+ pivotModule require("jquery")
4
+ else if typeof define is "function" and define.amd # AMD
5
+ define ["jquery"], pivotModule
6
+ # Plain browser env
7
+ else
8
+ pivotModule jQuery
9
+
10
+ callWithJQuery ($) ->
11
+ nf = $.pivotUtilities.numberFormat
12
+ tpl = $.pivotUtilities.aggregatorTemplates
13
+
14
+ frFmt = nf(thousandsSep: " ", decimalSep: ",")
15
+ frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: " ", decimalSep: ",")
16
+ frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: "%", thousandsSep: " ", decimalSep: ",")
17
+
18
+ $.pivotUtilities.locales.fr =
19
+ localeStrings:
20
+ renderError: "Er is een fout opgetreden bij het renderen van de kruistabel.."
21
+ computeError: "Er is een fout opgetreden bij het berekenen van de kruistabel."
22
+ uiRenderError: "Er is een fout opgetreden bij het tekenen van de interface van de kruistabel."
23
+ selectAll: "Alles selecteren"
24
+ selectNone: "Niets selecteren"
25
+ tooMany: "(te veel waarden om weer te geven)"
26
+ filterResults: "Filter resultaten"
27
+ totals: "Totaal"
28
+ vs: "versus"
29
+ by: "per"
30
+
31
+ aggregators:
32
+ "Aantal": tpl.count(frFmtInt)
33
+ "Aantal unieke waarden": tpl.countUnique(frFmtInt)
34
+ "Lijst unieke waarden": tpl.listUnique(", ")
35
+ "Som": tpl.sum(frFmt)
36
+ "Som van gehele getallen": tpl.sum(frFmtInt)
37
+ "Gemiddelde": tpl.average(frFmt)
38
+ "Minimum": tpl.min(frFmt)
39
+ "Maximum": tpl.max(frFmt)
40
+ "Som over som": tpl.sumOverSum(frFmt)
41
+ "80% bovengrens": tpl.sumOverSumBound80(true, frFmt)
42
+ "80% ondergrens": tpl.sumOverSumBound80(false, frFmt)
43
+ "Som in verhouding tot het totaal": tpl.fractionOf(tpl.sum(), "total", frFmtPct)
44
+ "Som in verhouding tot de rij": tpl.fractionOf(tpl.sum(), "row", frFmtPct)
45
+ "Som in verhouding tot de kolom": tpl.fractionOf(tpl.sum(), "col", frFmtPct)
46
+ "Aantal in verhouding tot het totaal": tpl.fractionOf(tpl.count(), "total", frFmtPct)
47
+ "Aantal in verhouding tot de rij": tpl.fractionOf(tpl.count(), "row", frFmtPct)
48
+ "Aantal in verhouding tot de kolom": tpl.fractionOf(tpl.count(), "col", frFmtPct)
49
+
50
+ renderers:
51
+ "Tabel": $.pivotUtilities.renderers["Table"]
52
+ "Tabel met staafdiagrammen": $.pivotUtilities.renderers["Table Barchart"]
53
+ "Warmtekaart": $.pivotUtilities.renderers["Heatmap"]
54
+ "Warmtekaart per rij": $.pivotUtilities.renderers["Row Heatmap"]
55
+ "Warmtekaart per kolom": $.pivotUtilities.renderers["Col Heatmap"]
@@ -0,0 +1,80 @@
1
+ callWithJQuery = (pivotModule) ->
2
+ if typeof exports is "object" and typeof module is "object" # CommonJS
3
+ pivotModule require("jquery")
4
+ else if typeof define is "function" and define.amd # AMD
5
+ define ["jquery"], pivotModule
6
+ # Plain browser env
7
+ else
8
+ pivotModule jQuery
9
+
10
+ callWithJQuery ($) ->
11
+ nf = $.pivotUtilities.numberFormat
12
+ tpl = $.pivotUtilities.aggregatorTemplates
13
+ r = $.pivotUtilities.renderers
14
+ gcr = $.pivotUtilities.gchart_renderers
15
+ d3r = $.pivotUtilities.d3_renderers
16
+ c3r = $.pivotUtilities.c3_renderers
17
+
18
+ frFmt = nf(thousandsSep: ".", decimalSep: ",")
19
+ frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: ".", decimalSep: ",")
20
+ frFmtPct = nf(digitsAfterDecimal: 2, scaler: 100, suffix: "%", thousandsSep: ".", decimalSep: ",")
21
+
22
+ $.pivotUtilities.locales.pt =
23
+
24
+ localeStrings:
25
+ renderError: "Ocorreu um error ao renderizar os resultados da Tabela Dinãmica."
26
+ computeError: "Ocorreu um error ao computar os resultados da Tabela Dinãmica."
27
+ uiRenderError: "Ocorreu um error ao renderizar a interface da Tabela Dinãmica."
28
+ selectAll: "Selecionar Tudo"
29
+ selectNone: "Selecionar Nenhum"
30
+ tooMany: "(demais para listar)"
31
+ filterResults: "Filtrar resultados"
32
+ totals: "Totais"
33
+ vs: "vs"
34
+ by: "por"
35
+
36
+ aggregators:
37
+ "Contagem": tpl.count(frFmtInt)
38
+ "Contagem de Valores únicos": tpl.countUnique(frFmtInt)
39
+ "Lista de Valores únicos": tpl.listUnique(", ")
40
+ "Soma": tpl.sum(frFmt)
41
+ "Soma de Inteiros": tpl.sum(frFmtInt)
42
+ "Média": tpl.average(frFmt)
43
+ "Mínimo": tpl.min(frFmt)
44
+ "Máximo": tpl.max(frFmt)
45
+ "Soma sobre Soma": tpl.sumOverSum(frFmt)
46
+ "Limite Superior a 80%": tpl.sumOverSumBound80(true, frFmt)
47
+ "Limite Inferior a 80%": tpl.sumOverSumBound80(false, frFmt)
48
+ "Soma como Fração do Total": tpl.fractionOf(tpl.sum(), "total", frFmtPct)
49
+ "Soma como Fração da Linha": tpl.fractionOf(tpl.sum(), "row", frFmtPct)
50
+ "Soma como Fração da Coluna": tpl.fractionOf(tpl.sum(), "col", frFmtPct)
51
+ "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
52
+ "Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
53
+ "Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
54
+
55
+ renderers:
56
+ "Tabela": r["Table"]
57
+ "Tabela com Barras": r["Table Barchart"]
58
+ "Mapa de Calor": r["Heatmap"]
59
+ "Mapa de Calor por Linhas": r["Row Heatmap"]
60
+ "Mapa de Calor por Colunas": r["Col Heatmap"]
61
+
62
+ if gcr
63
+ $.pivotUtilities.locales.pt.gchart_renderers =
64
+ "Gráfico de Linhas": gcr["Line Chart"]
65
+ "Gráfico de Barras": gcr["Bar Chart"]
66
+ "Gráfico de Barras Empilhadas": gcr["Stacked Bar Chart"]
67
+ "Gráfico de Área": gcr["Area Chart"]
68
+
69
+ if d3r
70
+ $.pivotUtilities.locales.pt.d3_renderers =
71
+ "Mapa de Árvore": d3r["Treemap"]
72
+
73
+ if c3r
74
+ $.pivotUtilities.locales.pt.c3_renderers =
75
+ "Gráfico de Linhas": c3r["Line Chart"]
76
+ "Gráfico de Barras": c3r["Bar Chart"]
77
+ "Gráfico de Barras Empilhadas": c3r["Stacked Bar Chart"]
78
+ "Gráfico de Área": c3r["Area Chart"]
79
+
80
+ return $.pivotUtilities.locales.pt
@@ -0,0 +1,56 @@
1
+ callWithJQuery = (pivotModule) ->
2
+ if typeof exports is "object" and typeof module is "object" # CommonJS
3
+ pivotModule require("jquery")
4
+ else if typeof define is "function" and define.amd # AMD
5
+ define ["jquery"], pivotModule
6
+ # Plain browser env
7
+ else
8
+ pivotModule jQuery
9
+
10
+ callWithJQuery ($) ->
11
+ nf = $.pivotUtilities.numberFormat
12
+ tpl = $.pivotUtilities.aggregatorTemplates
13
+
14
+ frFmt = nf(thousandsSep: " ", decimalSep: ",")
15
+ frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: " ", decimalSep: ",")
16
+ frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: "%", thousandsSep: " ", decimalSep: ",")
17
+
18
+ $.pivotUtilities.locales.ru =
19
+ localeStrings:
20
+ renderError: "Ошибка рендеринга страницы;.",
21
+ computeError: "Ошибка табличных расчетов;.",
22
+ uiRenderError: "Ошибка во время прорисовки и динамического расчета таблицы.",
23
+ selectAll: "Выбрать все",
24
+ selectNone: "Ничего не выбирать",
25
+ tooMany: "(Выбрано слишком много значений)",
26
+ filterResults: "Значение фильтра",
27
+ totals: "Всего",
28
+ vs: "на",
29
+ by: "с"
30
+
31
+ aggregators:
32
+ "Счет": tpl.count(frFmtInt),
33
+ "Счет уникальных": tpl.countUnique(frFmtInt),
34
+ "Список уникальных": tpl.listUnique(", "),
35
+ "Сумма": tpl.sum(frFmt),
36
+ "Сумма целых": tpl.sum(frFmtInt),
37
+ "Среднее": tpl.average(frFmt),
38
+ "Минимум": tpl.min(frFmt),
39
+ "Максимум": tpl.max(frFmt),
40
+ "Сумма по сумме": tpl.sumOverSum(frFmt),
41
+ "80% верхней границы": tpl.sumOverSumBound80(true, frFmt),
42
+ "80% нижней границы": tpl.sumOverSumBound80(false, frFmt),
43
+ "Доля по всему": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
44
+ "Доля по строке": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
45
+ "Доля по столбцу": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
46
+ "Счет по всему": tpl.fractionOf(tpl.count(), "total", frFmtPct),
47
+ "Счет по строке": tpl.fractionOf(tpl.count(), "row", frFmtPct),
48
+ "Счет по столбцу": tpl.fractionOf(tpl.count(), "col", frFmtPct)
49
+
50
+ renderers:
51
+ "Таблица": $.pivotUtilities.renderers["Table"]
52
+ "График столбцы": $.pivotUtilities.renderers["Table Barchart"]
53
+ "Теплова карта": $.pivotUtilities.renderers["Heatmap"]
54
+ "Тепловая карта по строке": $.pivotUtilities.renderers["Row Heatmap"]
55
+ "Тепловая карта по столбцу": $.pivotUtilities.renderers["Col Heatmap"]
56
+
@@ -0,0 +1,80 @@
1
+ callWithJQuery = (pivotModule) ->
2
+ if typeof exports is "object" and typeof module is "object" # CommonJS
3
+ pivotModule require("jquery")
4
+ else if typeof define is "function" and define.amd # AMD
5
+ define ["jquery"], pivotModule
6
+ # Plain browser env
7
+ else
8
+ pivotModule jQuery
9
+
10
+ callWithJQuery ($) ->
11
+ nf = $.pivotUtilities.numberFormat
12
+ tpl = $.pivotUtilities.aggregatorTemplates
13
+ r = $.pivotUtilities.renderers
14
+ gcr = $.pivotUtilities.gchart_renderers
15
+ d3r = $.pivotUtilities.d3_renderers
16
+ c3r = $.pivotUtilities.c3_renderers
17
+
18
+ frFmt = nf(thousandsSep: ".", decimalSep: ",")
19
+ frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: ".", decimalSep: ",")
20
+ frFmtPct = nf(digitsAfterDecimal: 2, scaler: 100, suffix: "%", thousandsSep: ".", decimalSep: ",")
21
+
22
+ $.pivotUtilities.locales.tr =
23
+
24
+ localeStrings:
25
+ renderError: "PivotTable sonuçlarını oluştuturken hata oluştu"
26
+ computeError: "PivotTable sonuçlarını işlerken hata oluştu"
27
+ uiRenderError: "PivotTable UI sonuçlarını oluştuturken hata oluştu"
28
+ selectAll: "Tümünü Seç"
29
+ selectNone: "Tümünü Bırak"
30
+ tooMany: "(listelemek için fazla)"
31
+ filterResults: "Sonuçları filtrele"
32
+ totals: "Toplam"
33
+ vs: "vs"
34
+ by: "ile"
35
+
36
+ aggregators:
37
+ "Sayı": tpl.count(frFmtInt)
38
+ "Benzersiz değerler sayısı": tpl.countUnique(frFmtInt)
39
+ "Benzersiz değerler listesi": tpl.listUnique(", ")
40
+ "Toplam": tpl.sum(frFmt)
41
+ "Toplam (tam sayı)": tpl.sum(frFmtInt)
42
+ "Ortalama": tpl.average(frFmt)
43
+ "Min": tpl.min(frFmt)
44
+ "Maks": tpl.max(frFmt)
45
+ "Miktarların toplamı": tpl.sumOverSum(frFmt)
46
+ "%80 daha yüksek": tpl.sumOverSumBound80(true, frFmt)
47
+ "%80 daha düşük": tpl.sumOverSumBound80(false, frFmt)
48
+ "Toplam oranı (toplam)": tpl.fractionOf(tpl.sum(), "total", frFmtPct)
49
+ "Satır oranı (toplam)": tpl.fractionOf(tpl.sum(), "row", frFmtPct)
50
+ "Sütunun oranı (toplam)": tpl.fractionOf(tpl.sum(), "col", frFmtPct)
51
+ "Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct)
52
+ "Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct)
53
+ "Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct)
54
+
55
+ renderers:
56
+ "Tablo": r["Table"]
57
+ "Tablo (Çubuklar)": r["Table Barchart"]
58
+ "İlgi haritası": r["Heatmap"]
59
+ "Satır ilgi haritası": r["Row Heatmap"]
60
+ "Sütun ilgi haritası": r["Col Heatmap"]
61
+ if gcr
62
+ $.pivotUtilities.locales.tr.gchart_renderers =
63
+ "Çizgi Grafiği": gcr["Line Chart"]
64
+ "Bar Grafiği": gcr["Bar Chart"]
65
+ "Yığılmış Çubuk Grafik ": gcr["Stacked Bar Chart"]
66
+ "Alan Grafiği": gcr["Area Chart"]
67
+
68
+ if d3r
69
+ $.pivotUtilities.locales.tr.d3_renderers =
70
+ "Hiyerarşik Alan Grafiği (Treemap)": d3r["Treemap"]
71
+
72
+ if c3r
73
+ $.pivotUtilities.locales.tr.c3_renderers =
74
+ "Çizgi Grafiği": c3r["Line Chart"]
75
+ "Bar Grafiği": c3r["Bar Chart"]
76
+ "Yığılmış Çubuk Grafik ": c3r["Stacked Bar Chart"]
77
+ "Alan Grafiği": c3r["Area Chart"]
78
+
79
+ return $.pivotUtilities.locales.tr
80
+
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "pivottable",
3
+ "title": "PivotTable.js",
4
+ "description": "Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop",
5
+ "keywords": [
6
+ "pivot",
7
+ "crosstab",
8
+ "grid",
9
+ "table",
10
+ "pivottable",
11
+ "pivotgrid",
12
+ "pivotchart"
13
+ ],
14
+ "version": "2.0.2",
15
+ "author": {
16
+ "name": "Nicolas Kruchten",
17
+ "email": "nicolas@kruchten.com",
18
+ "url": "http://nicolas.kruchten.com"
19
+ },
20
+ "licenses": [
21
+ {
22
+ "type": "MIT",
23
+ "url": "https://github.com/nicolaskruchten/pivottable/blob/master/ReadMe.md"
24
+ }
25
+ ],
26
+ "bugs": "https://github.com/nicolaskruchten/pivottable/issues",
27
+ "homepage": "http://nicolas.kruchten.com/pivottable",
28
+ "docs": "https://github.com/nicolaskruchten/pivottable/wiki",
29
+ "dependencies": {
30
+ "jquery": "*",
31
+ "jqueryui": "*"
32
+ }
33
+ }
@@ -0,0 +1,152 @@
1
+ /*
2
+ Copyright (c) 2008-2015 Pivotal Labs
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining
5
+ a copy of this software and associated documentation files (the
6
+ "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish,
8
+ distribute, sublicense, and/or sell copies of the Software, and to
9
+ permit persons to whom the Software is furnished to do so, subject to
10
+ the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ */
23
+ /**
24
+ Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js` and `jasmine_html.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project.
25
+
26
+ If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms.
27
+
28
+ The location of `boot.js` can be specified and/or overridden in `jasmine.yml`.
29
+
30
+ [jasmine-gem]: http://github.com/pivotal/jasmine-gem
31
+ */
32
+
33
+ (function() {
34
+
35
+ /**
36
+ * ## Require & Instantiate
37
+ *
38
+ * Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference.
39
+ */
40
+ window.jasmine = jasmineRequire.core(jasmineRequire);
41
+
42
+ /**
43
+ * Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference.
44
+ */
45
+ jasmineRequire.html(jasmine);
46
+
47
+ /**
48
+ * Create the Jasmine environment. This is used to run all specs in a project.
49
+ */
50
+ var env = jasmine.getEnv();
51
+
52
+ /**
53
+ * ## The Global Interface
54
+ *
55
+ * Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged.
56
+ */
57
+ var jasmineInterface = jasmineRequire.interface(jasmine, env);
58
+
59
+ /**
60
+ * Add all of the Jasmine global/public interface to the global scope, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`.
61
+ */
62
+ extend(window, jasmineInterface);
63
+
64
+ /**
65
+ * ## Runner Parameters
66
+ *
67
+ * More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface.
68
+ */
69
+
70
+ var queryString = new jasmine.QueryString({
71
+ getWindowLocation: function() { return window.location; }
72
+ });
73
+
74
+ var catchingExceptions = queryString.getParam("catch");
75
+ env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions);
76
+
77
+ var throwingExpectationFailures = queryString.getParam("throwFailures");
78
+ env.throwOnExpectationFailure(throwingExpectationFailures);
79
+
80
+ var random = queryString.getParam("random");
81
+ env.randomizeTests(random);
82
+
83
+ var seed = queryString.getParam("seed");
84
+ if (seed) {
85
+ env.seed(seed);
86
+ }
87
+
88
+ /**
89
+ * ## Reporters
90
+ * The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any).
91
+ */
92
+ var htmlReporter = new jasmine.HtmlReporter({
93
+ env: env,
94
+ onRaiseExceptionsClick: function() { queryString.navigateWithNewParam("catch", !env.catchingExceptions()); },
95
+ onThrowExpectationsClick: function() { queryString.navigateWithNewParam("throwFailures", !env.throwingExpectationFailures()); },
96
+ onRandomClick: function() { queryString.navigateWithNewParam("random", !env.randomTests()); },
97
+ addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); },
98
+ getContainer: function() { return document.body; },
99
+ createElement: function() { return document.createElement.apply(document, arguments); },
100
+ createTextNode: function() { return document.createTextNode.apply(document, arguments); },
101
+ timer: new jasmine.Timer()
102
+ });
103
+
104
+ /**
105
+ * The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results from JavaScript.
106
+ */
107
+ env.addReporter(jasmineInterface.jsApiReporter);
108
+ env.addReporter(htmlReporter);
109
+
110
+ /**
111
+ * Filter which specs will be run by matching the start of the full name against the `spec` query param.
112
+ */
113
+ var specFilter = new jasmine.HtmlSpecFilter({
114
+ filterString: function() { return queryString.getParam("spec"); }
115
+ });
116
+
117
+ env.specFilter = function(spec) {
118
+ return specFilter.matches(spec.getFullName());
119
+ };
120
+
121
+ /**
122
+ * Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack.
123
+ */
124
+ window.setTimeout = window.setTimeout;
125
+ window.setInterval = window.setInterval;
126
+ window.clearTimeout = window.clearTimeout;
127
+ window.clearInterval = window.clearInterval;
128
+
129
+ /**
130
+ * ## Execution
131
+ *
132
+ * Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded.
133
+ */
134
+ var currentWindowOnload = window.onload;
135
+
136
+ window.onload = function() {
137
+ if (currentWindowOnload) {
138
+ currentWindowOnload();
139
+ }
140
+ htmlReporter.initialize();
141
+ //env.execute();
142
+ };
143
+
144
+ /**
145
+ * Helper function for readability above.
146
+ */
147
+ function extend(destination, source) {
148
+ for (var property in source) destination[property] = source[property];
149
+ return destination;
150
+ }
151
+
152
+ }());