patternfly-sass 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +1 -1
  3. data/.gitignore +2 -4
  4. data/.travis.yml +6 -3
  5. data/README.md +187 -26
  6. data/Rakefile +21 -17
  7. data/assets/stylesheets/patternfly/_variables.scss +206 -206
  8. data/bower.json +11 -12
  9. data/lib/patternfly-sass/version.rb +2 -2
  10. data/patternfly-sass.gemspec +1 -1
  11. data/{tests → spec}/capture.js +0 -0
  12. data/spec/compare_spec.rb +15 -5
  13. data/{tests/patternfly → spec/html}/accordions.html +0 -0
  14. data/{tests/patternfly → spec/html}/alerts.html +0 -0
  15. data/{tests/patternfly → spec/html}/badges.html +0 -0
  16. data/{tests/patternfly → spec/html}/basic.html +0 -0
  17. data/{tests/patternfly → spec/html}/blank-slate.html +0 -0
  18. data/{tests/patternfly → spec/html}/bootstrap-combobox.html +0 -0
  19. data/{tests/patternfly → spec/html}/bootstrap-select.html +0 -0
  20. data/{tests/patternfly → spec/html}/bootstrap-treeview-2.html +0 -0
  21. data/{tests/patternfly → spec/html}/bootstrap-treeview.html +0 -0
  22. data/{tests/patternfly → spec/html}/breadcrumbs.html +0 -0
  23. data/{tests/patternfly → spec/html}/buttons.html +0 -0
  24. data/{tests/patternfly → spec/html}/code.html +0 -0
  25. data/{tests/patternfly → spec/html}/dashboard.html +0 -0
  26. data/{tests/patternfly → spec/html}/datatables-columns.html +0 -0
  27. data/{tests/patternfly → spec/html}/datatables.html +0 -0
  28. data/{tests/patternfly → spec/html}/dist/css/patternfly.css +0 -0
  29. data/{tests/patternfly → spec/html}/dist/css/patternfly.min.css +0 -0
  30. data/{tests/patternfly → spec/html}/dist/css/styles.css +0 -0
  31. data/{tests/patternfly → spec/html}/dist/css/styles.min.css +0 -0
  32. data/{tests/patternfly → spec/html}/dropdowns.html +0 -0
  33. data/{tests/patternfly → spec/html}/form.html +0 -0
  34. data/{tests/patternfly → spec/html}/forms.html +0 -0
  35. data/{tests/patternfly → spec/html}/icons.html +0 -0
  36. data/{tests/patternfly → spec/html}/img/dashboard-1.png +0 -0
  37. data/{tests/patternfly → spec/html}/img/dashboard-2.png +0 -0
  38. data/{tests/patternfly → spec/html}/img/dashboard-3.png +0 -0
  39. data/{tests/patternfly → spec/html}/img/dashboard-4.png +0 -0
  40. data/{tests/patternfly → spec/html}/index.html +0 -0
  41. data/{tests/patternfly → spec/html}/infotip.html +0 -0
  42. data/{tests/patternfly → spec/html}/labels.html +0 -0
  43. data/{tests/patternfly → spec/html}/list-group.html +0 -0
  44. data/{tests/patternfly → spec/html}/login.html +0 -0
  45. data/{tests/index.html → spec/html/main.html} +0 -0
  46. data/{tests/patternfly → spec/html}/modals.html +0 -0
  47. data/{tests/patternfly → spec/html}/navbar.html +0 -0
  48. data/{tests/patternfly → spec/html}/pagination.html +0 -0
  49. data/{tests/patternfly → spec/html}/panels.html +0 -0
  50. data/{tests/patternfly → spec/html}/popovers.html +0 -0
  51. data/{tests/patternfly → spec/html}/progress-bars.html +0 -0
  52. data/{tests/patternfly → spec/html}/search.html +0 -0
  53. data/{tests/patternfly → spec/html}/spinner.html +0 -0
  54. data/{tests/patternfly → spec/html}/tab.html +0 -0
  55. data/{tests/patternfly → spec/html}/tables.html +0 -0
  56. data/{tests/patternfly → spec/html}/tabs.html +0 -0
  57. data/{tests/patternfly → spec/html}/tests.css +0 -0
  58. data/{tests/patternfly → spec/html}/tooltip.html +0 -0
  59. data/{tests/patternfly → spec/html}/typography-2.css +0 -0
  60. data/{tests/patternfly → spec/html}/typography-2.html +0 -0
  61. data/{tests/patternfly → spec/html}/typography.html +0 -0
  62. data/tasks/converter.rb +6 -9
  63. metadata +103 -626
  64. data/package.json +0 -28
  65. data/tests/components/bootstrap-combobox/.bower.json +0 -14
  66. data/tests/components/bootstrap-combobox/.gitignore +0 -1
  67. data/tests/components/bootstrap-combobox/README.md +0 -59
  68. data/tests/components/bootstrap-combobox/css/bootstrap-combobox.css +0 -42
  69. data/tests/components/bootstrap-combobox/js/bootstrap-combobox.js +0 -438
  70. data/tests/components/bootstrap-combobox/js/tests/index.html +0 -29
  71. data/tests/components/bootstrap-combobox/js/tests/unit/bootstrap-combobox.js +0 -323
  72. data/tests/components/bootstrap-combobox/js/tests/vendor/jquery.js +0 -9597
  73. data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.css +0 -244
  74. data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.js +0 -2152
  75. data/tests/components/bootstrap-combobox/less/combobox.less +0 -55
  76. data/tests/components/bootstrap-select/.bower.json +0 -38
  77. data/tests/components/bootstrap-select/CONTRIBUTING.md +0 -87
  78. data/tests/components/bootstrap-select/README.md +0 -61
  79. data/tests/components/bootstrap-select/bootstrap-select.css +0 -309
  80. data/tests/components/bootstrap-select/bootstrap-select.jquery.json +0 -29
  81. data/tests/components/bootstrap-select/bootstrap-select.js +0 -972
  82. data/tests/components/bootstrap-select/bootstrap-select.min.css +0 -7
  83. data/tests/components/bootstrap-select/bootstrap-select.min.js +0 -8
  84. data/tests/components/bootstrap-select/bower.json +0 -29
  85. data/tests/components/bootstrap-select/composer.json +0 -17
  86. data/tests/components/bootstrap-select/i18n/defaults-cs-CZ.js +0 -29
  87. data/tests/components/bootstrap-select/i18n/defaults-cz-CZ.min.js +0 -6
  88. data/tests/components/bootstrap-select/i18n/defaults-de_DE.js +0 -29
  89. data/tests/components/bootstrap-select/i18n/defaults-de_DE.min.js +0 -6
  90. data/tests/components/bootstrap-select/i18n/defaults-es-CL.js +0 -29
  91. data/tests/components/bootstrap-select/i18n/defaults-es-CL.min.js +0 -6
  92. data/tests/components/bootstrap-select/i18n/defaults-eu.js +0 -30
  93. data/tests/components/bootstrap-select/i18n/defaults-eu.min.js +0 -6
  94. data/tests/components/bootstrap-select/i18n/defaults-it_IT.js +0 -32
  95. data/tests/components/bootstrap-select/i18n/defaults-it_IT.min.js +0 -1
  96. data/tests/components/bootstrap-select/i18n/defaults-nl_NL.js +0 -32
  97. data/tests/components/bootstrap-select/i18n/defaults-nl_NL.min.js +0 -7
  98. data/tests/components/bootstrap-select/i18n/defaults-pl_PL.js +0 -29
  99. data/tests/components/bootstrap-select/i18n/defaults-pl_PL.min.js +0 -6
  100. data/tests/components/bootstrap-select/i18n/defaults-pt_BR.js +0 -33
  101. data/tests/components/bootstrap-select/i18n/defaults-pt_BR.min.js +0 -7
  102. data/tests/components/bootstrap-select/i18n/defaults-ru-RU.js +0 -31
  103. data/tests/components/bootstrap-select/i18n/defaults-ru_RU.min.js +0 -6
  104. data/tests/components/bootstrap-select/i18n/defaults-zh_CN.js +0 -30
  105. data/tests/components/bootstrap-select/i18n/defaults-zh_CN.min.js +0 -6
  106. data/tests/components/bootstrap-select/package.json +0 -31
  107. data/tests/components/bootstrap-select/test.html +0 -62
  108. data/tests/components/bootstrap-treeview/.bower.json +0 -38
  109. data/tests/components/bootstrap-treeview/Gruntfile.js +0 -62
  110. data/tests/components/bootstrap-treeview/LICENSE +0 -202
  111. data/tests/components/bootstrap-treeview/README.md +0 -289
  112. data/tests/components/bootstrap-treeview/app.js +0 -29
  113. data/tests/components/bootstrap-treeview/bower.json +0 -29
  114. data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.css +0 -1
  115. data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.js +0 -1
  116. data/tests/components/bootstrap-treeview/package.json +0 -18
  117. data/tests/components/bootstrap-treeview/public/css/bootstrap-treeview.css +0 -37
  118. data/tests/components/bootstrap-treeview/public/example-dom.html +0 -59
  119. data/tests/components/bootstrap-treeview/public/index.html +0 -333
  120. data/tests/components/bootstrap-treeview/public/js/bootstrap-treeview.js +0 -455
  121. data/tests/components/bootstrap-treeview/screenshot/default.PNG +0 -0
  122. data/tests/components/bootstrap-treeview/src/css/bootstrap-treeview.css +0 -37
  123. data/tests/components/bootstrap-treeview/src/js/bootstrap-treeview.js +0 -455
  124. data/tests/components/datatables-colreorder/.bower.json +0 -22
  125. data/tests/components/datatables-colreorder/License.txt +0 -20
  126. data/tests/components/datatables-colreorder/Readme.md +0 -39
  127. data/tests/components/datatables-colreorder/bower.json +0 -12
  128. data/tests/components/datatables-colreorder/css/dataTables.colReorder.css +0 -14
  129. data/tests/components/datatables-colreorder/examples/alt_insert.xml +0 -30
  130. data/tests/components/datatables-colreorder/examples/col_filter.xml +0 -38
  131. data/tests/components/datatables-colreorder/examples/colvis.xml +0 -26
  132. data/tests/components/datatables-colreorder/examples/fixedcolumns.xml +0 -43
  133. data/tests/components/datatables-colreorder/examples/fixedheader.xml +0 -27
  134. data/tests/components/datatables-colreorder/examples/index.xml +0 -19
  135. data/tests/components/datatables-colreorder/examples/jqueryui.xml +0 -27
  136. data/tests/components/datatables-colreorder/examples/new_init.xml +0 -23
  137. data/tests/components/datatables-colreorder/examples/predefined.xml +0 -30
  138. data/tests/components/datatables-colreorder/examples/realtime.xml +0 -30
  139. data/tests/components/datatables-colreorder/examples/reset.xml +0 -41
  140. data/tests/components/datatables-colreorder/examples/scrolling.xml +0 -27
  141. data/tests/components/datatables-colreorder/examples/server_side.xml +0 -38
  142. data/tests/components/datatables-colreorder/examples/simple.xml +0 -25
  143. data/tests/components/datatables-colreorder/examples/state_save.xml +0 -26
  144. data/tests/components/datatables-colreorder/images/.DS_Store +0 -0
  145. data/tests/components/datatables-colreorder/images/insert.png +0 -0
  146. data/tests/components/datatables-colreorder/js/dataTables.colReorder.js +0 -1372
  147. data/tests/components/datatables-colreorder/make.sh +0 -31
  148. data/tests/components/datatables-colvis/.bower.json +0 -22
  149. data/tests/components/datatables-colvis/License.txt +0 -20
  150. data/tests/components/datatables-colvis/README.md +0 -38
  151. data/tests/components/datatables-colvis/bower.json +0 -12
  152. data/tests/components/datatables-colvis/css/dataTables.colVis.css +0 -185
  153. data/tests/components/datatables-colvis/css/dataTables.colvis.jqueryui.css +0 -41
  154. data/tests/components/datatables-colvis/examples/.DS_Store +0 -0
  155. data/tests/components/datatables-colvis/examples/button_order.xml +0 -26
  156. data/tests/components/datatables-colvis/examples/exclude_columns.xml +0 -28
  157. data/tests/components/datatables-colvis/examples/group_columns.xml +0 -40
  158. data/tests/components/datatables-colvis/examples/index.xml +0 -18
  159. data/tests/components/datatables-colvis/examples/jqueryui.xml +0 -28
  160. data/tests/components/datatables-colvis/examples/mouseover.xml +0 -28
  161. data/tests/components/datatables-colvis/examples/new_init.xml +0 -26
  162. data/tests/components/datatables-colvis/examples/restore.xml +0 -33
  163. data/tests/components/datatables-colvis/examples/simple.xml +0 -25
  164. data/tests/components/datatables-colvis/examples/text.xml +0 -29
  165. data/tests/components/datatables-colvis/examples/title_callback.xml +0 -30
  166. data/tests/components/datatables-colvis/examples/two_tables.xml +0 -24
  167. data/tests/components/datatables-colvis/examples/two_tables_identical.xml +0 -35
  168. data/tests/components/datatables-colvis/js/dataTables.colVis.js +0 -1123
  169. data/tests/components/datatables-colvis/make.sh +0 -28
  170. data/tests/components/datatables/.bower.json +0 -42
  171. data/tests/components/datatables/Contributing.md +0 -18
  172. data/tests/components/datatables/Readme.md +0 -53
  173. data/tests/components/datatables/bower.json +0 -32
  174. data/tests/components/datatables/license.txt +0 -20
  175. data/tests/components/datatables/media/css/jquery.dataTables.css +0 -455
  176. data/tests/components/datatables/media/css/jquery.dataTables.min.css +0 -1
  177. data/tests/components/datatables/media/css/jquery.dataTables_themeroller.css +0 -416
  178. data/tests/components/datatables/media/images/Sorting icons.psd +0 -0
  179. data/tests/components/datatables/media/images/favicon.ico +0 -0
  180. data/tests/components/datatables/media/images/sort_asc.png +0 -0
  181. data/tests/components/datatables/media/images/sort_asc_disabled.png +0 -0
  182. data/tests/components/datatables/media/images/sort_both.png +0 -0
  183. data/tests/components/datatables/media/images/sort_desc.png +0 -0
  184. data/tests/components/datatables/media/images/sort_desc_disabled.png +0 -0
  185. data/tests/components/datatables/media/js/jquery.dataTables.js +0 -14951
  186. data/tests/components/datatables/media/js/jquery.dataTables.min.js +0 -160
  187. data/tests/components/datatables/media/js/jquery.js +0 -5
  188. data/tests/components/google-code-prettify/.bower.json +0 -26
  189. data/tests/components/google-code-prettify/CHANGES.html +0 -172
  190. data/tests/components/google-code-prettify/COPYING +0 -191
  191. data/tests/components/google-code-prettify/README-zh-Hans.html +0 -143
  192. data/tests/components/google-code-prettify/README.html +0 -233
  193. data/tests/components/google-code-prettify/README.md +0 -54
  194. data/tests/components/google-code-prettify/bin/prettify.min.css +0 -1
  195. data/tests/components/google-code-prettify/bin/prettify.min.js +0 -30
  196. data/tests/components/google-code-prettify/bin/run_prettify.min.js +0 -34
  197. data/tests/components/google-code-prettify/bower.json +0 -16
  198. data/tests/components/google-code-prettify/examples/quine.html +0 -55
  199. data/tests/components/google-code-prettify/src/lang-apollo.js +0 -51
  200. data/tests/components/google-code-prettify/src/lang-basic.js +0 -32
  201. data/tests/components/google-code-prettify/src/lang-clj.js +0 -64
  202. data/tests/components/google-code-prettify/src/lang-css.js +0 -159
  203. data/tests/components/google-code-prettify/src/lang-dart.js +0 -88
  204. data/tests/components/google-code-prettify/src/lang-erlang.js +0 -92
  205. data/tests/components/google-code-prettify/src/lang-go.js +0 -58
  206. data/tests/components/google-code-prettify/src/lang-hs.js +0 -101
  207. data/tests/components/google-code-prettify/src/lang-lisp.js +0 -94
  208. data/tests/components/google-code-prettify/src/lang-llvm.js +0 -61
  209. data/tests/components/google-code-prettify/src/lang-lua.js +0 -59
  210. data/tests/components/google-code-prettify/src/lang-matlab.js +0 -180
  211. data/tests/components/google-code-prettify/src/lang-ml.js +0 -56
  212. data/tests/components/google-code-prettify/src/lang-mumps.js +0 -139
  213. data/tests/components/google-code-prettify/src/lang-n.js +0 -65
  214. data/tests/components/google-code-prettify/src/lang-pascal.js +0 -32
  215. data/tests/components/google-code-prettify/src/lang-proto.js +0 -35
  216. data/tests/components/google-code-prettify/src/lang-r.js +0 -57
  217. data/tests/components/google-code-prettify/src/lang-rd.js +0 -47
  218. data/tests/components/google-code-prettify/src/lang-scala.js +0 -54
  219. data/tests/components/google-code-prettify/src/lang-sql.js +0 -58
  220. data/tests/components/google-code-prettify/src/lang-tcl.js +0 -62
  221. data/tests/components/google-code-prettify/src/lang-tex.js +0 -46
  222. data/tests/components/google-code-prettify/src/lang-vb.js +0 -66
  223. data/tests/components/google-code-prettify/src/lang-vhdl.js +0 -34
  224. data/tests/components/google-code-prettify/src/lang-wiki.js +0 -53
  225. data/tests/components/google-code-prettify/src/lang-xq.js +0 -67
  226. data/tests/components/google-code-prettify/src/lang-yaml.js +0 -27
  227. data/tests/components/google-code-prettify/src/prettify.css +0 -52
  228. data/tests/components/google-code-prettify/src/prettify.js +0 -1655
  229. data/tests/components/google-code-prettify/src/run_prettify.js +0 -1905
  230. data/tests/components/google-code-prettify/styles/demo.html +0 -61
  231. data/tests/components/google-code-prettify/styles/desert.css +0 -34
  232. data/tests/components/google-code-prettify/styles/doxy.css +0 -64
  233. data/tests/components/google-code-prettify/styles/index.html +0 -89
  234. data/tests/components/google-code-prettify/styles/sons-of-obsidian.css +0 -118
  235. data/tests/components/google-code-prettify/styles/sunburst.css +0 -51
  236. data/tests/components/jquery/.bower.json +0 -38
  237. data/tests/components/jquery/MIT-LICENSE.txt +0 -21
  238. data/tests/components/jquery/bower.json +0 -28
  239. data/tests/components/jquery/dist/jquery.js +0 -9210
  240. data/tests/components/jquery/dist/jquery.min.js +0 -5
  241. data/tests/components/jquery/dist/jquery.min.map +0 -1
  242. data/tests/components/jquery/src/ajax.js +0 -786
  243. data/tests/components/jquery/src/ajax/jsonp.js +0 -89
  244. data/tests/components/jquery/src/ajax/load.js +0 -75
  245. data/tests/components/jquery/src/ajax/parseJSON.js +0 -13
  246. data/tests/components/jquery/src/ajax/parseXML.js +0 -28
  247. data/tests/components/jquery/src/ajax/script.js +0 -64
  248. data/tests/components/jquery/src/ajax/var/nonce.js +0 -5
  249. data/tests/components/jquery/src/ajax/var/rquery.js +0 -3
  250. data/tests/components/jquery/src/ajax/xhr.js +0 -136
  251. data/tests/components/jquery/src/attributes.js +0 -11
  252. data/tests/components/jquery/src/attributes/attr.js +0 -141
  253. data/tests/components/jquery/src/attributes/classes.js +0 -158
  254. data/tests/components/jquery/src/attributes/prop.js +0 -94
  255. data/tests/components/jquery/src/attributes/support.js +0 -35
  256. data/tests/components/jquery/src/attributes/val.js +0 -161
  257. data/tests/components/jquery/src/callbacks.js +0 -205
  258. data/tests/components/jquery/src/core.js +0 -502
  259. data/tests/components/jquery/src/core/access.js +0 -60
  260. data/tests/components/jquery/src/core/init.js +0 -123
  261. data/tests/components/jquery/src/core/parseHTML.js +0 -39
  262. data/tests/components/jquery/src/core/ready.js +0 -97
  263. data/tests/components/jquery/src/core/var/rsingleTag.js +0 -4
  264. data/tests/components/jquery/src/css.js +0 -450
  265. data/tests/components/jquery/src/css/addGetHookIf.js +0 -22
  266. data/tests/components/jquery/src/css/curCSS.js +0 -57
  267. data/tests/components/jquery/src/css/defaultDisplay.js +0 -70
  268. data/tests/components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  269. data/tests/components/jquery/src/css/support.js +0 -96
  270. data/tests/components/jquery/src/css/swap.js +0 -28
  271. data/tests/components/jquery/src/css/var/cssExpand.js +0 -3
  272. data/tests/components/jquery/src/css/var/getStyles.js +0 -12
  273. data/tests/components/jquery/src/css/var/isHidden.js +0 -13
  274. data/tests/components/jquery/src/css/var/rmargin.js +0 -3
  275. data/tests/components/jquery/src/css/var/rnumnonpx.js +0 -5
  276. data/tests/components/jquery/src/data.js +0 -178
  277. data/tests/components/jquery/src/data/Data.js +0 -181
  278. data/tests/components/jquery/src/data/accepts.js +0 -20
  279. data/tests/components/jquery/src/data/var/data_priv.js +0 -5
  280. data/tests/components/jquery/src/data/var/data_user.js +0 -5
  281. data/tests/components/jquery/src/deferred.js +0 -149
  282. data/tests/components/jquery/src/deprecated.js +0 -13
  283. data/tests/components/jquery/src/dimensions.js +0 -50
  284. data/tests/components/jquery/src/effects.js +0 -648
  285. data/tests/components/jquery/src/effects/Tween.js +0 -114
  286. data/tests/components/jquery/src/effects/animatedSelector.js +0 -13
  287. data/tests/components/jquery/src/event.js +0 -868
  288. data/tests/components/jquery/src/event/ajax.js +0 -13
  289. data/tests/components/jquery/src/event/alias.js +0 -39
  290. data/tests/components/jquery/src/event/support.js +0 -9
  291. data/tests/components/jquery/src/exports/amd.js +0 -24
  292. data/tests/components/jquery/src/exports/global.js +0 -32
  293. data/tests/components/jquery/src/intro.js +0 -44
  294. data/tests/components/jquery/src/jquery.js +0 -37
  295. data/tests/components/jquery/src/manipulation.js +0 -580
  296. data/tests/components/jquery/src/manipulation/_evalUrl.js +0 -18
  297. data/tests/components/jquery/src/manipulation/support.js +0 -32
  298. data/tests/components/jquery/src/manipulation/var/rcheckableType.js +0 -3
  299. data/tests/components/jquery/src/offset.js +0 -207
  300. data/tests/components/jquery/src/outro.js +0 -1
  301. data/tests/components/jquery/src/queue.js +0 -142
  302. data/tests/components/jquery/src/queue/delay.js +0 -22
  303. data/tests/components/jquery/src/selector-native.js +0 -172
  304. data/tests/components/jquery/src/selector-sizzle.js +0 -14
  305. data/tests/components/jquery/src/selector.js +0 -1
  306. data/tests/components/jquery/src/serialize.js +0 -111
  307. data/tests/components/jquery/src/sizzle/dist/sizzle.js +0 -2067
  308. data/tests/components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  309. data/tests/components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  310. data/tests/components/jquery/src/traversing.js +0 -199
  311. data/tests/components/jquery/src/traversing/findFilter.js +0 -100
  312. data/tests/components/jquery/src/traversing/var/rneedsContext.js +0 -6
  313. data/tests/components/jquery/src/var/arr.js +0 -3
  314. data/tests/components/jquery/src/var/class2type.js +0 -4
  315. data/tests/components/jquery/src/var/concat.js +0 -5
  316. data/tests/components/jquery/src/var/hasOwn.js +0 -5
  317. data/tests/components/jquery/src/var/indexOf.js +0 -5
  318. data/tests/components/jquery/src/var/pnum.js +0 -3
  319. data/tests/components/jquery/src/var/push.js +0 -5
  320. data/tests/components/jquery/src/var/rnotwhite.js +0 -3
  321. data/tests/components/jquery/src/var/slice.js +0 -5
  322. data/tests/components/jquery/src/var/strundefined.js +0 -3
  323. data/tests/components/jquery/src/var/support.js +0 -4
  324. data/tests/components/jquery/src/var/toString.js +0 -5
  325. data/tests/components/jquery/src/wrap.js +0 -79
@@ -1,22 +0,0 @@
1
- define(function() {
2
-
3
- function addGetHookIf( conditionFn, hookFn ) {
4
- // Define the hook, we'll check on the first run if it's really needed.
5
- return {
6
- get: function() {
7
- if ( conditionFn() ) {
8
- // Hook not needed (or it's not possible to use it due
9
- // to missing dependency), remove it.
10
- delete this.get;
11
- return;
12
- }
13
-
14
- // Hook needed; redefine it so that the support test is not executed again.
15
- return (this.get = hookFn).apply( this, arguments );
16
- }
17
- };
18
- }
19
-
20
- return addGetHookIf;
21
-
22
- });
@@ -1,57 +0,0 @@
1
- define([
2
- "../core",
3
- "./var/rnumnonpx",
4
- "./var/rmargin",
5
- "./var/getStyles",
6
- "../selector" // contains
7
- ], function( jQuery, rnumnonpx, rmargin, getStyles ) {
8
-
9
- function curCSS( elem, name, computed ) {
10
- var width, minWidth, maxWidth, ret,
11
- style = elem.style;
12
-
13
- computed = computed || getStyles( elem );
14
-
15
- // Support: IE9
16
- // getPropertyValue is only needed for .css('filter') (#12537)
17
- if ( computed ) {
18
- ret = computed.getPropertyValue( name ) || computed[ name ];
19
- }
20
-
21
- if ( computed ) {
22
-
23
- if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
24
- ret = jQuery.style( elem, name );
25
- }
26
-
27
- // Support: iOS < 6
28
- // A tribute to the "awesome hack by Dean Edwards"
29
- // iOS < 6 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
30
- // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
31
- if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
32
-
33
- // Remember the original values
34
- width = style.width;
35
- minWidth = style.minWidth;
36
- maxWidth = style.maxWidth;
37
-
38
- // Put in the new values to get a computed value out
39
- style.minWidth = style.maxWidth = style.width = ret;
40
- ret = computed.width;
41
-
42
- // Revert the changed values
43
- style.width = width;
44
- style.minWidth = minWidth;
45
- style.maxWidth = maxWidth;
46
- }
47
- }
48
-
49
- return ret !== undefined ?
50
- // Support: IE
51
- // IE returns zIndex value as an integer.
52
- ret + "" :
53
- ret;
54
- }
55
-
56
- return curCSS;
57
- });
@@ -1,70 +0,0 @@
1
- define([
2
- "../core",
3
- "../manipulation" // appendTo
4
- ], function( jQuery ) {
5
-
6
- var iframe,
7
- elemdisplay = {};
8
-
9
- /**
10
- * Retrieve the actual display of a element
11
- * @param {String} name nodeName of the element
12
- * @param {Object} doc Document object
13
- */
14
- // Called only from within defaultDisplay
15
- function actualDisplay( name, doc ) {
16
- var style,
17
- elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
18
-
19
- // getDefaultComputedStyle might be reliably used only on attached element
20
- display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
21
-
22
- // Use of this method is a temporary fix (more like optimization) until something better comes along,
23
- // since it was removed from specification and supported only in FF
24
- style.display : jQuery.css( elem[ 0 ], "display" );
25
-
26
- // We don't have any data stored on the element,
27
- // so use "detach" method as fast way to get rid of the element
28
- elem.detach();
29
-
30
- return display;
31
- }
32
-
33
- /**
34
- * Try to determine the default display value of an element
35
- * @param {String} nodeName
36
- */
37
- function defaultDisplay( nodeName ) {
38
- var doc = document,
39
- display = elemdisplay[ nodeName ];
40
-
41
- if ( !display ) {
42
- display = actualDisplay( nodeName, doc );
43
-
44
- // If the simple way fails, read from inside an iframe
45
- if ( display === "none" || !display ) {
46
-
47
- // Use the already-created iframe if possible
48
- iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );
49
-
50
- // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
51
- doc = iframe[ 0 ].contentDocument;
52
-
53
- // Support: IE
54
- doc.write();
55
- doc.close();
56
-
57
- display = actualDisplay( nodeName, doc );
58
- iframe.detach();
59
- }
60
-
61
- // Store the correct default display
62
- elemdisplay[ nodeName ] = display;
63
- }
64
-
65
- return display;
66
- }
67
-
68
- return defaultDisplay;
69
-
70
- });
@@ -1,15 +0,0 @@
1
- define([
2
- "../core",
3
- "../selector"
4
- ], function( jQuery ) {
5
-
6
- jQuery.expr.filters.hidden = function( elem ) {
7
- // Support: Opera <= 12.12
8
- // Opera reports offsetWidths and offsetHeights less than zero on some elements
9
- return elem.offsetWidth <= 0 && elem.offsetHeight <= 0;
10
- };
11
- jQuery.expr.filters.visible = function( elem ) {
12
- return !jQuery.expr.filters.hidden( elem );
13
- };
14
-
15
- });
@@ -1,96 +0,0 @@
1
- define([
2
- "../core",
3
- "../var/support"
4
- ], function( jQuery, support ) {
5
-
6
- (function() {
7
- var pixelPositionVal, boxSizingReliableVal,
8
- docElem = document.documentElement,
9
- container = document.createElement( "div" ),
10
- div = document.createElement( "div" );
11
-
12
- if ( !div.style ) {
13
- return;
14
- }
15
-
16
- // Support: IE9-11+
17
- // Style of cloned element affects source element cloned (#8908)
18
- div.style.backgroundClip = "content-box";
19
- div.cloneNode( true ).style.backgroundClip = "";
20
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
21
-
22
- container.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;" +
23
- "position:absolute";
24
- container.appendChild( div );
25
-
26
- // Executing both pixelPosition & boxSizingReliable tests require only one layout
27
- // so they're executed at the same time to save the second computation.
28
- function computePixelPositionAndBoxSizingReliable() {
29
- div.style.cssText =
30
- // Support: Firefox<29, Android 2.3
31
- // Vendor-prefix box-sizing
32
- "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +
33
- "box-sizing:border-box;display:block;margin-top:1%;top:1%;" +
34
- "border:1px;padding:1px;width:4px;position:absolute";
35
- div.innerHTML = "";
36
- docElem.appendChild( container );
37
-
38
- var divStyle = window.getComputedStyle( div, null );
39
- pixelPositionVal = divStyle.top !== "1%";
40
- boxSizingReliableVal = divStyle.width === "4px";
41
-
42
- docElem.removeChild( container );
43
- }
44
-
45
- // Support: node.js jsdom
46
- // Don't assume that getComputedStyle is a property of the global object
47
- if ( window.getComputedStyle ) {
48
- jQuery.extend( support, {
49
- pixelPosition: function() {
50
-
51
- // This test is executed only once but we still do memoizing
52
- // since we can use the boxSizingReliable pre-computing.
53
- // No need to check if the test was already performed, though.
54
- computePixelPositionAndBoxSizingReliable();
55
- return pixelPositionVal;
56
- },
57
- boxSizingReliable: function() {
58
- if ( boxSizingReliableVal == null ) {
59
- computePixelPositionAndBoxSizingReliable();
60
- }
61
- return boxSizingReliableVal;
62
- },
63
- reliableMarginRight: function() {
64
-
65
- // Support: Android 2.3
66
- // Check if div with explicit width and no margin-right incorrectly
67
- // gets computed margin-right based on width of container. (#3333)
68
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
69
- // This support function is only executed once so no memoizing is needed.
70
- var ret,
71
- marginDiv = div.appendChild( document.createElement( "div" ) );
72
-
73
- // Reset CSS: box-sizing; display; margin; border; padding
74
- marginDiv.style.cssText = div.style.cssText =
75
- // Support: Firefox<29, Android 2.3
76
- // Vendor-prefix box-sizing
77
- "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
78
- "box-sizing:content-box;display:block;margin:0;border:0;padding:0";
79
- marginDiv.style.marginRight = marginDiv.style.width = "0";
80
- div.style.width = "1px";
81
- docElem.appendChild( container );
82
-
83
- ret = !parseFloat( window.getComputedStyle( marginDiv, null ).marginRight );
84
-
85
- docElem.removeChild( container );
86
- div.removeChild( marginDiv );
87
-
88
- return ret;
89
- }
90
- });
91
- }
92
- })();
93
-
94
- return support;
95
-
96
- });
@@ -1,28 +0,0 @@
1
- define([
2
- "../core"
3
- ], function( jQuery ) {
4
-
5
- // A method for quickly swapping in/out CSS properties to get correct calculations.
6
- jQuery.swap = function( elem, options, callback, args ) {
7
- var ret, name,
8
- old = {};
9
-
10
- // Remember the old values, and insert the new ones
11
- for ( name in options ) {
12
- old[ name ] = elem.style[ name ];
13
- elem.style[ name ] = options[ name ];
14
- }
15
-
16
- ret = callback.apply( elem, args || [] );
17
-
18
- // Revert the old values
19
- for ( name in options ) {
20
- elem.style[ name ] = old[ name ];
21
- }
22
-
23
- return ret;
24
- };
25
-
26
- return jQuery.swap;
27
-
28
- });
@@ -1,3 +0,0 @@
1
- define(function() {
2
- return [ "Top", "Right", "Bottom", "Left" ];
3
- });
@@ -1,12 +0,0 @@
1
- define(function() {
2
- return function( elem ) {
3
- // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
4
- // IE throws on elements created in popups
5
- // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
6
- if ( elem.ownerDocument.defaultView.opener ) {
7
- return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
8
- }
9
-
10
- return window.getComputedStyle( elem, null );
11
- };
12
- });
@@ -1,13 +0,0 @@
1
- define([
2
- "../../core",
3
- "../../selector"
4
- // css is assumed
5
- ], function( jQuery ) {
6
-
7
- return function( elem, el ) {
8
- // isHidden might be called from jQuery#filter function;
9
- // in that case, element will be second argument
10
- elem = el || elem;
11
- return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
12
- };
13
- });
@@ -1,3 +0,0 @@
1
- define(function() {
2
- return (/^margin/);
3
- });
@@ -1,5 +0,0 @@
1
- define([
2
- "../../var/pnum"
3
- ], function( pnum ) {
4
- return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
5
- });
@@ -1,178 +0,0 @@
1
- define([
2
- "./core",
3
- "./var/rnotwhite",
4
- "./core/access",
5
- "./data/var/data_priv",
6
- "./data/var/data_user"
7
- ], function( jQuery, rnotwhite, access, data_priv, data_user ) {
8
-
9
- // Implementation Summary
10
- //
11
- // 1. Enforce API surface and semantic compatibility with 1.9.x branch
12
- // 2. Improve the module's maintainability by reducing the storage
13
- // paths to a single mechanism.
14
- // 3. Use the same single mechanism to support "private" and "user" data.
15
- // 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
16
- // 5. Avoid exposing implementation details on user objects (eg. expando properties)
17
- // 6. Provide a clear path for implementation upgrade to WeakMap in 2014
18
-
19
- var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
20
- rmultiDash = /([A-Z])/g;
21
-
22
- function dataAttr( elem, key, data ) {
23
- var name;
24
-
25
- // If nothing was found internally, try to fetch any
26
- // data from the HTML5 data-* attribute
27
- if ( data === undefined && elem.nodeType === 1 ) {
28
- name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
29
- data = elem.getAttribute( name );
30
-
31
- if ( typeof data === "string" ) {
32
- try {
33
- data = data === "true" ? true :
34
- data === "false" ? false :
35
- data === "null" ? null :
36
- // Only convert to a number if it doesn't change the string
37
- +data + "" === data ? +data :
38
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
39
- data;
40
- } catch( e ) {}
41
-
42
- // Make sure we set the data so it isn't changed later
43
- data_user.set( elem, key, data );
44
- } else {
45
- data = undefined;
46
- }
47
- }
48
- return data;
49
- }
50
-
51
- jQuery.extend({
52
- hasData: function( elem ) {
53
- return data_user.hasData( elem ) || data_priv.hasData( elem );
54
- },
55
-
56
- data: function( elem, name, data ) {
57
- return data_user.access( elem, name, data );
58
- },
59
-
60
- removeData: function( elem, name ) {
61
- data_user.remove( elem, name );
62
- },
63
-
64
- // TODO: Now that all calls to _data and _removeData have been replaced
65
- // with direct calls to data_priv methods, these can be deprecated.
66
- _data: function( elem, name, data ) {
67
- return data_priv.access( elem, name, data );
68
- },
69
-
70
- _removeData: function( elem, name ) {
71
- data_priv.remove( elem, name );
72
- }
73
- });
74
-
75
- jQuery.fn.extend({
76
- data: function( key, value ) {
77
- var i, name, data,
78
- elem = this[ 0 ],
79
- attrs = elem && elem.attributes;
80
-
81
- // Gets all values
82
- if ( key === undefined ) {
83
- if ( this.length ) {
84
- data = data_user.get( elem );
85
-
86
- if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) {
87
- i = attrs.length;
88
- while ( i-- ) {
89
-
90
- // Support: IE11+
91
- // The attrs elements can be null (#14894)
92
- if ( attrs[ i ] ) {
93
- name = attrs[ i ].name;
94
- if ( name.indexOf( "data-" ) === 0 ) {
95
- name = jQuery.camelCase( name.slice(5) );
96
- dataAttr( elem, name, data[ name ] );
97
- }
98
- }
99
- }
100
- data_priv.set( elem, "hasDataAttrs", true );
101
- }
102
- }
103
-
104
- return data;
105
- }
106
-
107
- // Sets multiple values
108
- if ( typeof key === "object" ) {
109
- return this.each(function() {
110
- data_user.set( this, key );
111
- });
112
- }
113
-
114
- return access( this, function( value ) {
115
- var data,
116
- camelKey = jQuery.camelCase( key );
117
-
118
- // The calling jQuery object (element matches) is not empty
119
- // (and therefore has an element appears at this[ 0 ]) and the
120
- // `value` parameter was not undefined. An empty jQuery object
121
- // will result in `undefined` for elem = this[ 0 ] which will
122
- // throw an exception if an attempt to read a data cache is made.
123
- if ( elem && value === undefined ) {
124
- // Attempt to get data from the cache
125
- // with the key as-is
126
- data = data_user.get( elem, key );
127
- if ( data !== undefined ) {
128
- return data;
129
- }
130
-
131
- // Attempt to get data from the cache
132
- // with the key camelized
133
- data = data_user.get( elem, camelKey );
134
- if ( data !== undefined ) {
135
- return data;
136
- }
137
-
138
- // Attempt to "discover" the data in
139
- // HTML5 custom data-* attrs
140
- data = dataAttr( elem, camelKey, undefined );
141
- if ( data !== undefined ) {
142
- return data;
143
- }
144
-
145
- // We tried really hard, but the data doesn't exist.
146
- return;
147
- }
148
-
149
- // Set the data...
150
- this.each(function() {
151
- // First, attempt to store a copy or reference of any
152
- // data that might've been store with a camelCased key.
153
- var data = data_user.get( this, camelKey );
154
-
155
- // For HTML5 data-* attribute interop, we have to
156
- // store property names with dashes in a camelCase form.
157
- // This might not apply to all properties...*
158
- data_user.set( this, camelKey, value );
159
-
160
- // *... In the case of properties that might _actually_
161
- // have dashes, we need to also store a copy of that
162
- // unchanged property.
163
- if ( key.indexOf("-") !== -1 && data !== undefined ) {
164
- data_user.set( this, key, value );
165
- }
166
- });
167
- }, null, value, arguments.length > 1, null, true );
168
- },
169
-
170
- removeData: function( key ) {
171
- return this.each(function() {
172
- data_user.remove( this, key );
173
- });
174
- }
175
- });
176
-
177
- return jQuery;
178
- });