vapid 0.1.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 (433) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.gitmodules +6 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +133 -0
  6. data/.travis.yml +5 -0
  7. data/Gemfile +10 -0
  8. data/README.md +37 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/exe/vapid +7 -0
  13. data/lib/vapid.rb +24 -0
  14. data/lib/vapid/assets/javascripts/vapid/admin.coffee +2 -0
  15. data/lib/vapid/assets/stylesheets/vapid/admin.scss +72 -0
  16. data/lib/vapid/builder.rb +70 -0
  17. data/lib/vapid/cli.rb +96 -0
  18. data/lib/vapid/controllers/admin_controller.rb +282 -0
  19. data/lib/vapid/controllers/project_controller.rb +41 -0
  20. data/lib/vapid/db/migrate/20170202182310_create_groups.rb +12 -0
  21. data/lib/vapid/db/migrate/20170202183017_create_records.rb +11 -0
  22. data/lib/vapid/db/migrate/20170202185150_create_users.rb +11 -0
  23. data/lib/vapid/directive.rb +168 -0
  24. data/lib/vapid/directives.rb +30 -0
  25. data/lib/vapid/directives/audio.rb +27 -0
  26. data/lib/vapid/directives/group.rb +71 -0
  27. data/lib/vapid/directives/hide.rb +11 -0
  28. data/lib/vapid/directives/href.rb +11 -0
  29. data/lib/vapid/directives/image.rb +14 -0
  30. data/lib/vapid/directives/richtext.rb +15 -0
  31. data/lib/vapid/directives/show.rb +11 -0
  32. data/lib/vapid/directives/text.rb +24 -0
  33. data/lib/vapid/directives/video.rb +28 -0
  34. data/lib/vapid/generator_template/.gitignore +21 -0
  35. data/lib/vapid/generator_template/Gemfile.tt +13 -0
  36. data/lib/vapid/generator_template/README.md +0 -0
  37. data/lib/vapid/generator_template/assets/favicon.ico +0 -0
  38. data/lib/vapid/generator_template/assets/images/.keep +0 -0
  39. data/lib/vapid/generator_template/assets/javascripts/.keep +0 -0
  40. data/lib/vapid/generator_template/assets/stylesheets/.keep +0 -0
  41. data/lib/vapid/generator_template/assets/stylesheets/application.css +120 -0
  42. data/lib/vapid/generator_template/config.ru +3 -0
  43. data/lib/vapid/generator_template/config/database.yml +12 -0
  44. data/lib/vapid/generator_template/config/settings.yml.tt +11 -0
  45. data/lib/vapid/generator_template/templates/index.html.erb +25 -0
  46. data/lib/vapid/generator_template/templates/layouts/default.html.erb +22 -0
  47. data/lib/vapid/models.rb +18 -0
  48. data/lib/vapid/models/group.rb +36 -0
  49. data/lib/vapid/models/record.rb +30 -0
  50. data/lib/vapid/models/user.rb +16 -0
  51. data/lib/vapid/server.rb +93 -0
  52. data/lib/vapid/settings.rb +13 -0
  53. data/lib/vapid/template.rb +79 -0
  54. data/lib/vapid/template/node.rb +91 -0
  55. data/lib/vapid/template/parser.rb +50 -0
  56. data/lib/vapid/vendor/semantic-ui/.versions +4 -0
  57. data/lib/vapid/vendor/semantic-ui/LICENSE +22 -0
  58. data/lib/vapid/vendor/semantic-ui/README.md +7 -0
  59. data/lib/vapid/vendor/semantic-ui/components/accordion.css +252 -0
  60. data/lib/vapid/vendor/semantic-ui/components/accordion.js +610 -0
  61. data/lib/vapid/vendor/semantic-ui/components/accordion.min.css +9 -0
  62. data/lib/vapid/vendor/semantic-ui/components/accordion.min.js +10 -0
  63. data/lib/vapid/vendor/semantic-ui/components/ad.css +275 -0
  64. data/lib/vapid/vendor/semantic-ui/components/ad.min.css +10 -0
  65. data/lib/vapid/vendor/semantic-ui/components/api.js +1167 -0
  66. data/lib/vapid/vendor/semantic-ui/components/api.min.js +10 -0
  67. data/lib/vapid/vendor/semantic-ui/components/breadcrumb.css +124 -0
  68. data/lib/vapid/vendor/semantic-ui/components/breadcrumb.min.css +9 -0
  69. data/lib/vapid/vendor/semantic-ui/components/button.css +3450 -0
  70. data/lib/vapid/vendor/semantic-ui/components/button.min.css +9 -0
  71. data/lib/vapid/vendor/semantic-ui/components/card.css +964 -0
  72. data/lib/vapid/vendor/semantic-ui/components/card.min.css +9 -0
  73. data/lib/vapid/vendor/semantic-ui/components/checkbox.css +625 -0
  74. data/lib/vapid/vendor/semantic-ui/components/checkbox.js +831 -0
  75. data/lib/vapid/vendor/semantic-ui/components/checkbox.min.css +9 -0
  76. data/lib/vapid/vendor/semantic-ui/components/checkbox.min.js +10 -0
  77. data/lib/vapid/vendor/semantic-ui/components/colorize.js +274 -0
  78. data/lib/vapid/vendor/semantic-ui/components/colorize.min.js +11 -0
  79. data/lib/vapid/vendor/semantic-ui/components/comment.css +270 -0
  80. data/lib/vapid/vendor/semantic-ui/components/comment.min.css +9 -0
  81. data/lib/vapid/vendor/semantic-ui/components/container.css +147 -0
  82. data/lib/vapid/vendor/semantic-ui/components/container.min.css +9 -0
  83. data/lib/vapid/vendor/semantic-ui/components/dimmer.css +200 -0
  84. data/lib/vapid/vendor/semantic-ui/components/dimmer.js +708 -0
  85. data/lib/vapid/vendor/semantic-ui/components/dimmer.min.css +9 -0
  86. data/lib/vapid/vendor/semantic-ui/components/dimmer.min.js +10 -0
  87. data/lib/vapid/vendor/semantic-ui/components/divider.css +260 -0
  88. data/lib/vapid/vendor/semantic-ui/components/divider.min.css +9 -0
  89. data/lib/vapid/vendor/semantic-ui/components/dropdown.css +1442 -0
  90. data/lib/vapid/vendor/semantic-ui/components/dropdown.js +3767 -0
  91. data/lib/vapid/vendor/semantic-ui/components/dropdown.min.css +9 -0
  92. data/lib/vapid/vendor/semantic-ui/components/dropdown.min.js +11 -0
  93. data/lib/vapid/vendor/semantic-ui/components/embed.css +166 -0
  94. data/lib/vapid/vendor/semantic-ui/components/embed.js +696 -0
  95. data/lib/vapid/vendor/semantic-ui/components/embed.min.css +9 -0
  96. data/lib/vapid/vendor/semantic-ui/components/embed.min.js +10 -0
  97. data/lib/vapid/vendor/semantic-ui/components/feed.css +296 -0
  98. data/lib/vapid/vendor/semantic-ui/components/feed.min.css +9 -0
  99. data/lib/vapid/vendor/semantic-ui/components/flag.css +1031 -0
  100. data/lib/vapid/vendor/semantic-ui/components/flag.min.css +9 -0
  101. data/lib/vapid/vendor/semantic-ui/components/form.css +1067 -0
  102. data/lib/vapid/vendor/semantic-ui/components/form.js +1603 -0
  103. data/lib/vapid/vendor/semantic-ui/components/form.min.css +9 -0
  104. data/lib/vapid/vendor/semantic-ui/components/form.min.js +10 -0
  105. data/lib/vapid/vendor/semantic-ui/components/grid.css +2002 -0
  106. data/lib/vapid/vendor/semantic-ui/components/grid.min.css +9 -0
  107. data/lib/vapid/vendor/semantic-ui/components/header.css +721 -0
  108. data/lib/vapid/vendor/semantic-ui/components/header.min.css +9 -0
  109. data/lib/vapid/vendor/semantic-ui/components/icon.css +3292 -0
  110. data/lib/vapid/vendor/semantic-ui/components/icon.min.css +9 -0
  111. data/lib/vapid/vendor/semantic-ui/components/image.css +306 -0
  112. data/lib/vapid/vendor/semantic-ui/components/image.min.css +9 -0
  113. data/lib/vapid/vendor/semantic-ui/components/input.css +510 -0
  114. data/lib/vapid/vendor/semantic-ui/components/input.min.css +9 -0
  115. data/lib/vapid/vendor/semantic-ui/components/item.css +486 -0
  116. data/lib/vapid/vendor/semantic-ui/components/item.min.css +9 -0
  117. data/lib/vapid/vendor/semantic-ui/components/label.css +1307 -0
  118. data/lib/vapid/vendor/semantic-ui/components/label.min.css +9 -0
  119. data/lib/vapid/vendor/semantic-ui/components/list.css +951 -0
  120. data/lib/vapid/vendor/semantic-ui/components/list.min.css +9 -0
  121. data/lib/vapid/vendor/semantic-ui/components/loader.css +347 -0
  122. data/lib/vapid/vendor/semantic-ui/components/loader.min.css +9 -0
  123. data/lib/vapid/vendor/semantic-ui/components/menu.css +2002 -0
  124. data/lib/vapid/vendor/semantic-ui/components/menu.min.css +1 -0
  125. data/lib/vapid/vendor/semantic-ui/components/message.css +477 -0
  126. data/lib/vapid/vendor/semantic-ui/components/message.min.css +9 -0
  127. data/lib/vapid/vendor/semantic-ui/components/modal.css +502 -0
  128. data/lib/vapid/vendor/semantic-ui/components/modal.js +913 -0
  129. data/lib/vapid/vendor/semantic-ui/components/modal.min.css +9 -0
  130. data/lib/vapid/vendor/semantic-ui/components/modal.min.js +10 -0
  131. data/lib/vapid/vendor/semantic-ui/components/nag.css +147 -0
  132. data/lib/vapid/vendor/semantic-ui/components/nag.js +507 -0
  133. data/lib/vapid/vendor/semantic-ui/components/nag.min.css +9 -0
  134. data/lib/vapid/vendor/semantic-ui/components/nag.min.js +10 -0
  135. data/lib/vapid/vendor/semantic-ui/components/popup.css +733 -0
  136. data/lib/vapid/vendor/semantic-ui/components/popup.js +1475 -0
  137. data/lib/vapid/vendor/semantic-ui/components/popup.min.css +9 -0
  138. data/lib/vapid/vendor/semantic-ui/components/popup.min.js +10 -0
  139. data/lib/vapid/vendor/semantic-ui/components/progress.css +516 -0
  140. data/lib/vapid/vendor/semantic-ui/components/progress.js +931 -0
  141. data/lib/vapid/vendor/semantic-ui/components/progress.min.css +9 -0
  142. data/lib/vapid/vendor/semantic-ui/components/progress.min.js +10 -0
  143. data/lib/vapid/vendor/semantic-ui/components/rail.css +152 -0
  144. data/lib/vapid/vendor/semantic-ui/components/rail.min.css +9 -0
  145. data/lib/vapid/vendor/semantic-ui/components/rating.css +263 -0
  146. data/lib/vapid/vendor/semantic-ui/components/rating.js +508 -0
  147. data/lib/vapid/vendor/semantic-ui/components/rating.min.css +9 -0
  148. data/lib/vapid/vendor/semantic-ui/components/rating.min.js +10 -0
  149. data/lib/vapid/vendor/semantic-ui/components/reset.css +424 -0
  150. data/lib/vapid/vendor/semantic-ui/components/reset.min.css +9 -0
  151. data/lib/vapid/vendor/semantic-ui/components/reveal.css +284 -0
  152. data/lib/vapid/vendor/semantic-ui/components/reveal.min.css +9 -0
  153. data/lib/vapid/vendor/semantic-ui/components/search.css +408 -0
  154. data/lib/vapid/vendor/semantic-ui/components/search.js +1442 -0
  155. data/lib/vapid/vendor/semantic-ui/components/search.min.css +9 -0
  156. data/lib/vapid/vendor/semantic-ui/components/search.min.js +10 -0
  157. data/lib/vapid/vendor/semantic-ui/components/segment.css +798 -0
  158. data/lib/vapid/vendor/semantic-ui/components/segment.min.css +9 -0
  159. data/lib/vapid/vendor/semantic-ui/components/shape.css +157 -0
  160. data/lib/vapid/vendor/semantic-ui/components/shape.js +921 -0
  161. data/lib/vapid/vendor/semantic-ui/components/shape.min.css +9 -0
  162. data/lib/vapid/vendor/semantic-ui/components/shape.min.js +10 -0
  163. data/lib/vapid/vendor/semantic-ui/components/sidebar.css +634 -0
  164. data/lib/vapid/vendor/semantic-ui/components/sidebar.js +1036 -0
  165. data/lib/vapid/vendor/semantic-ui/components/sidebar.min.css +9 -0
  166. data/lib/vapid/vendor/semantic-ui/components/sidebar.min.js +10 -0
  167. data/lib/vapid/vendor/semantic-ui/components/site.css +160 -0
  168. data/lib/vapid/vendor/semantic-ui/components/site.js +487 -0
  169. data/lib/vapid/vendor/semantic-ui/components/site.min.css +9 -0
  170. data/lib/vapid/vendor/semantic-ui/components/site.min.js +10 -0
  171. data/lib/vapid/vendor/semantic-ui/components/state.js +708 -0
  172. data/lib/vapid/vendor/semantic-ui/components/state.min.js +10 -0
  173. data/lib/vapid/vendor/semantic-ui/components/statistic.css +569 -0
  174. data/lib/vapid/vendor/semantic-ui/components/statistic.min.css +9 -0
  175. data/lib/vapid/vendor/semantic-ui/components/step.css +623 -0
  176. data/lib/vapid/vendor/semantic-ui/components/step.min.css +9 -0
  177. data/lib/vapid/vendor/semantic-ui/components/sticky.css +78 -0
  178. data/lib/vapid/vendor/semantic-ui/components/sticky.js +942 -0
  179. data/lib/vapid/vendor/semantic-ui/components/sticky.min.css +9 -0
  180. data/lib/vapid/vendor/semantic-ui/components/sticky.min.js +10 -0
  181. data/lib/vapid/vendor/semantic-ui/components/tab.css +91 -0
  182. data/lib/vapid/vendor/semantic-ui/components/tab.js +952 -0
  183. data/lib/vapid/vendor/semantic-ui/components/tab.min.css +9 -0
  184. data/lib/vapid/vendor/semantic-ui/components/tab.min.js +10 -0
  185. data/lib/vapid/vendor/semantic-ui/components/table.css +1108 -0
  186. data/lib/vapid/vendor/semantic-ui/components/table.min.css +9 -0
  187. data/lib/vapid/vendor/semantic-ui/components/transition.css +1964 -0
  188. data/lib/vapid/vendor/semantic-ui/components/transition.js +1095 -0
  189. data/lib/vapid/vendor/semantic-ui/components/transition.min.css +9 -0
  190. data/lib/vapid/vendor/semantic-ui/components/transition.min.js +10 -0
  191. data/lib/vapid/vendor/semantic-ui/components/video.css +125 -0
  192. data/lib/vapid/vendor/semantic-ui/components/video.js +532 -0
  193. data/lib/vapid/vendor/semantic-ui/components/video.min.css +10 -0
  194. data/lib/vapid/vendor/semantic-ui/components/video.min.js +11 -0
  195. data/lib/vapid/vendor/semantic-ui/components/visibility.js +1288 -0
  196. data/lib/vapid/vendor/semantic-ui/components/visibility.min.js +10 -0
  197. data/lib/vapid/vendor/semantic-ui/components/visit.js +517 -0
  198. data/lib/vapid/vendor/semantic-ui/components/visit.min.js +11 -0
  199. data/lib/vapid/vendor/semantic-ui/package.js +34 -0
  200. data/lib/vapid/vendor/semantic-ui/package.json +20 -0
  201. data/lib/vapid/vendor/semantic-ui/semantic.css +36844 -0
  202. data/lib/vapid/vendor/semantic-ui/semantic.js +22617 -0
  203. data/lib/vapid/vendor/semantic-ui/semantic.min.css +364 -0
  204. data/lib/vapid/vendor/semantic-ui/semantic.min.js +19 -0
  205. data/lib/vapid/vendor/semantic-ui/themes/default/assets/fonts/icons.eot +0 -0
  206. data/lib/vapid/vendor/semantic-ui/themes/default/assets/fonts/icons.otf +0 -0
  207. data/lib/vapid/vendor/semantic-ui/themes/default/assets/fonts/icons.svg +2671 -0
  208. data/lib/vapid/vendor/semantic-ui/themes/default/assets/fonts/icons.ttf +0 -0
  209. data/lib/vapid/vendor/semantic-ui/themes/default/assets/fonts/icons.woff +0 -0
  210. data/lib/vapid/vendor/semantic-ui/themes/default/assets/fonts/icons.woff2 +0 -0
  211. data/lib/vapid/vendor/semantic-ui/themes/default/assets/images/flags.png +0 -0
  212. data/lib/vapid/vendor/trix/.blade.yml +45 -0
  213. data/lib/vapid/vendor/trix/.github/ISSUE_TEMPLATE.md +13 -0
  214. data/lib/vapid/vendor/trix/.gitignore +3 -0
  215. data/lib/vapid/vendor/trix/.ruby-version +1 -0
  216. data/lib/vapid/vendor/trix/.travis.yml +6 -0
  217. data/lib/vapid/vendor/trix/CONDUCT.md +79 -0
  218. data/lib/vapid/vendor/trix/Gemfile +17 -0
  219. data/lib/vapid/vendor/trix/Gemfile.lock +152 -0
  220. data/lib/vapid/vendor/trix/LICENSE +20 -0
  221. data/lib/vapid/vendor/trix/README.md +382 -0
  222. data/lib/vapid/vendor/trix/assets/index.html +55 -0
  223. data/lib/vapid/vendor/trix/assets/trix-core.coffee +2 -0
  224. data/lib/vapid/vendor/trix/assets/trix.coffee +3 -0
  225. data/lib/vapid/vendor/trix/assets/trix.scss +5 -0
  226. data/lib/vapid/vendor/trix/assets/trix/banner/index.coffee.erb +3 -0
  227. data/lib/vapid/vendor/trix/assets/trix/banner/index.scss.erb +3 -0
  228. data/lib/vapid/vendor/trix/assets/trix/banner/index.txt.erb +3 -0
  229. data/lib/vapid/vendor/trix/assets/trix/images/README.md +6 -0
  230. data/lib/vapid/vendor/trix/assets/trix/images/attach.svg +5 -0
  231. data/lib/vapid/vendor/trix/assets/trix/images/bold.svg +5 -0
  232. data/lib/vapid/vendor/trix/assets/trix/images/bullets.svg +5 -0
  233. data/lib/vapid/vendor/trix/assets/trix/images/code.svg +5 -0
  234. data/lib/vapid/vendor/trix/assets/trix/images/heading_1.svg +5 -0
  235. data/lib/vapid/vendor/trix/assets/trix/images/italic.svg +5 -0
  236. data/lib/vapid/vendor/trix/assets/trix/images/link.svg +6 -0
  237. data/lib/vapid/vendor/trix/assets/trix/images/nesting_level_decrease.svg +5 -0
  238. data/lib/vapid/vendor/trix/assets/trix/images/nesting_level_increase.svg +5 -0
  239. data/lib/vapid/vendor/trix/assets/trix/images/numbers.svg +5 -0
  240. data/lib/vapid/vendor/trix/assets/trix/images/quote.svg +5 -0
  241. data/lib/vapid/vendor/trix/assets/trix/images/redo.svg +5 -0
  242. data/lib/vapid/vendor/trix/assets/trix/images/remove.svg +4 -0
  243. data/lib/vapid/vendor/trix/assets/trix/images/strike.svg +6 -0
  244. data/lib/vapid/vendor/trix/assets/trix/images/trash.svg +5 -0
  245. data/lib/vapid/vendor/trix/assets/trix/images/undo.svg +5 -0
  246. data/lib/vapid/vendor/trix/assets/trix/stylesheets/attachments.scss +112 -0
  247. data/lib/vapid/vendor/trix/assets/trix/stylesheets/content.scss +88 -0
  248. data/lib/vapid/vendor/trix/assets/trix/stylesheets/editor.scss +8 -0
  249. data/lib/vapid/vendor/trix/assets/trix/stylesheets/icons.scss +14 -0
  250. data/lib/vapid/vendor/trix/assets/trix/stylesheets/media-queries.scss +7 -0
  251. data/lib/vapid/vendor/trix/assets/trix/stylesheets/toolbar.scss +194 -0
  252. data/lib/vapid/vendor/trix/bin/blade +16 -0
  253. data/lib/vapid/vendor/trix/bin/ci +21 -0
  254. data/lib/vapid/vendor/trix/bin/rackup +16 -0
  255. data/lib/vapid/vendor/trix/bin/rake +16 -0
  256. data/lib/vapid/vendor/trix/bin/release +139 -0
  257. data/lib/vapid/vendor/trix/bin/setup +69 -0
  258. data/lib/vapid/vendor/trix/bin/update-status-image +100 -0
  259. data/lib/vapid/vendor/trix/bower.json +34 -0
  260. data/lib/vapid/vendor/trix/config.ru +32 -0
  261. data/lib/vapid/vendor/trix/dist/trix-core.js +11 -0
  262. data/lib/vapid/vendor/trix/dist/trix.css +286 -0
  263. data/lib/vapid/vendor/trix/dist/trix.js +20 -0
  264. data/lib/vapid/vendor/trix/package.json +29 -0
  265. data/lib/vapid/vendor/trix/polyfills/polyfills.coffee +3 -0
  266. data/lib/vapid/vendor/trix/polyfills/set.coffee +24 -0
  267. data/lib/vapid/vendor/trix/polyfills/vendor/CustomElements.js +1029 -0
  268. data/lib/vapid/vendor/trix/polyfills/vendor/README.md +2 -0
  269. data/lib/vapid/vendor/trix/polyfills/vendor/promise.js +228 -0
  270. data/lib/vapid/vendor/trix/src/trix/VERSION +1 -0
  271. data/lib/vapid/vendor/trix/src/trix/config/block_attributes.coffee +37 -0
  272. data/lib/vapid/vendor/trix/src/trix/config/css.coffee +12 -0
  273. data/lib/vapid/vendor/trix/src/trix/config/file_size_formatting.coffee +22 -0
  274. data/lib/vapid/vendor/trix/src/trix/config/index.coffee +9 -0
  275. data/lib/vapid/vendor/trix/src/trix/config/lang.coffee +26 -0
  276. data/lib/vapid/vendor/trix/src/trix/config/selection_elements.coffee +26 -0
  277. data/lib/vapid/vendor/trix/src/trix/config/serialization.coffee +63 -0
  278. data/lib/vapid/vendor/trix/src/trix/config/text_attributes.coffee +25 -0
  279. data/lib/vapid/vendor/trix/src/trix/config/toolbar.coffee +41 -0
  280. data/lib/vapid/vendor/trix/src/trix/config/undo_interval.coffee +7 -0
  281. data/lib/vapid/vendor/trix/src/trix/controllers/attachment_editor_controller.coffee +104 -0
  282. data/lib/vapid/vendor/trix/src/trix/controllers/composition_controller.coffee +117 -0
  283. data/lib/vapid/vendor/trix/src/trix/controllers/controller.coffee +3 -0
  284. data/lib/vapid/vendor/trix/src/trix/controllers/editor_controller.coffee +369 -0
  285. data/lib/vapid/vendor/trix/src/trix/controllers/input/composition_input.coffee +57 -0
  286. data/lib/vapid/vendor/trix/src/trix/controllers/input_controller.coffee +473 -0
  287. data/lib/vapid/vendor/trix/src/trix/controllers/toolbar_controller.coffee +173 -0
  288. data/lib/vapid/vendor/trix/src/trix/core/basic_object.coffee +44 -0
  289. data/lib/vapid/vendor/trix/src/trix/core/collections/element_store.coffee +21 -0
  290. data/lib/vapid/vendor/trix/src/trix/core/collections/hash.coffee +98 -0
  291. data/lib/vapid/vendor/trix/src/trix/core/collections/index.coffee +4 -0
  292. data/lib/vapid/vendor/trix/src/trix/core/collections/object_group.coffee +37 -0
  293. data/lib/vapid/vendor/trix/src/trix/core/collections/object_map.coffee +10 -0
  294. data/lib/vapid/vendor/trix/src/trix/core/helpers/arrays.coffee +34 -0
  295. data/lib/vapid/vendor/trix/src/trix/core/helpers/config.coffee +23 -0
  296. data/lib/vapid/vendor/trix/src/trix/core/helpers/custom_elements.coffee +45 -0
  297. data/lib/vapid/vendor/trix/src/trix/core/helpers/dom.coffee +185 -0
  298. data/lib/vapid/vendor/trix/src/trix/core/helpers/extend.coffee +4 -0
  299. data/lib/vapid/vendor/trix/src/trix/core/helpers/functions.coffee +3 -0
  300. data/lib/vapid/vendor/trix/src/trix/core/helpers/global.coffee +23 -0
  301. data/lib/vapid/vendor/trix/src/trix/core/helpers/index.coffee +10 -0
  302. data/lib/vapid/vendor/trix/src/trix/core/helpers/objects.coffee +11 -0
  303. data/lib/vapid/vendor/trix/src/trix/core/helpers/ranges.coffee +33 -0
  304. data/lib/vapid/vendor/trix/src/trix/core/helpers/selection.coffee +25 -0
  305. data/lib/vapid/vendor/trix/src/trix/core/helpers/strings.coffee +46 -0
  306. data/lib/vapid/vendor/trix/src/trix/core/index.coffee +4 -0
  307. data/lib/vapid/vendor/trix/src/trix/core/object.coffee +33 -0
  308. data/lib/vapid/vendor/trix/src/trix/core/utilities/index.coffee +2 -0
  309. data/lib/vapid/vendor/trix/src/trix/core/utilities/operation.coffee +37 -0
  310. data/lib/vapid/vendor/trix/src/trix/core/utilities/utf16_string.coffee +93 -0
  311. data/lib/vapid/vendor/trix/src/trix/elements/trix_editor_element.coffee +166 -0
  312. data/lib/vapid/vendor/trix/src/trix/elements/trix_toolbar_element.coffee +28 -0
  313. data/lib/vapid/vendor/trix/src/trix/index.coffee.erb +14 -0
  314. data/lib/vapid/vendor/trix/src/trix/inspector/control_element.coffee +60 -0
  315. data/lib/vapid/vendor/trix/src/trix/inspector/debugger.coffee +104 -0
  316. data/lib/vapid/vendor/trix/src/trix/inspector/element.coffee +86 -0
  317. data/lib/vapid/vendor/trix/src/trix/inspector/index.coffee +17 -0
  318. data/lib/vapid/vendor/trix/src/trix/inspector/polyfills/vendor/details-element-polyfill.js +5 -0
  319. data/lib/vapid/vendor/trix/src/trix/inspector/templates/debug.jst.eco +17 -0
  320. data/lib/vapid/vendor/trix/src/trix/inspector/templates/document.jst.eco +33 -0
  321. data/lib/vapid/vendor/trix/src/trix/inspector/templates/performance.jst.eco +10 -0
  322. data/lib/vapid/vendor/trix/src/trix/inspector/templates/render.jst.eco +1 -0
  323. data/lib/vapid/vendor/trix/src/trix/inspector/templates/selection.jst.eco +5 -0
  324. data/lib/vapid/vendor/trix/src/trix/inspector/templates/undo.jst.eco +13 -0
  325. data/lib/vapid/vendor/trix/src/trix/inspector/view.coffee +58 -0
  326. data/lib/vapid/vendor/trix/src/trix/inspector/views/debug_view.coffee +33 -0
  327. data/lib/vapid/vendor/trix/src/trix/inspector/views/document_view.coffee +12 -0
  328. data/lib/vapid/vendor/trix/src/trix/inspector/views/performance_view.coffee +51 -0
  329. data/lib/vapid/vendor/trix/src/trix/inspector/views/render_view.coffee +21 -0
  330. data/lib/vapid/vendor/trix/src/trix/inspector/views/selection_view.coffee +33 -0
  331. data/lib/vapid/vendor/trix/src/trix/inspector/views/undo_view.coffee +12 -0
  332. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/deserializer.coffee +55 -0
  333. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/index.coffee +5 -0
  334. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/player.coffee +60 -0
  335. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/player_controller.coffee +43 -0
  336. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/player_element.coffee +32 -0
  337. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/player_view.coffee +133 -0
  338. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/recorder.coffee +82 -0
  339. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/recording.coffee +54 -0
  340. data/lib/vapid/vendor/trix/src/trix/inspector/watchdog/serializer.coffee +61 -0
  341. data/lib/vapid/vendor/trix/src/trix/models/attachment.coffee +157 -0
  342. data/lib/vapid/vendor/trix/src/trix/models/attachment_manager.coffee +24 -0
  343. data/lib/vapid/vendor/trix/src/trix/models/attachment_piece.coffee +47 -0
  344. data/lib/vapid/vendor/trix/src/trix/models/block.coffee +230 -0
  345. data/lib/vapid/vendor/trix/src/trix/models/composition.coffee +521 -0
  346. data/lib/vapid/vendor/trix/src/trix/models/document.coffee +538 -0
  347. data/lib/vapid/vendor/trix/src/trix/models/editor.coffee +141 -0
  348. data/lib/vapid/vendor/trix/src/trix/models/html_parser.coffee +335 -0
  349. data/lib/vapid/vendor/trix/src/trix/models/line_break_insertion.coffee +31 -0
  350. data/lib/vapid/vendor/trix/src/trix/models/location_mapper.coffee +156 -0
  351. data/lib/vapid/vendor/trix/src/trix/models/managed_attachment.coffee +28 -0
  352. data/lib/vapid/vendor/trix/src/trix/models/piece.coffee +95 -0
  353. data/lib/vapid/vendor/trix/src/trix/models/point_mapper.coffee +28 -0
  354. data/lib/vapid/vendor/trix/src/trix/models/selection_manager.coffee +129 -0
  355. data/lib/vapid/vendor/trix/src/trix/models/splittable_list.coffee +168 -0
  356. data/lib/vapid/vendor/trix/src/trix/models/string_piece.coffee +49 -0
  357. data/lib/vapid/vendor/trix/src/trix/models/text.coffee +168 -0
  358. data/lib/vapid/vendor/trix/src/trix/models/undo_manager.coffee +40 -0
  359. data/lib/vapid/vendor/trix/src/trix/observers/mutation_observer.coffee +131 -0
  360. data/lib/vapid/vendor/trix/src/trix/observers/selection_change_observer.coffee +56 -0
  361. data/lib/vapid/vendor/trix/src/trix/operations/file_verification_operation.coffee +15 -0
  362. data/lib/vapid/vendor/trix/src/trix/operations/image_preload_operation.coffee +15 -0
  363. data/lib/vapid/vendor/trix/src/trix/views/attachment_view.coffee +99 -0
  364. data/lib/vapid/vendor/trix/src/trix/views/block_view.coffee +37 -0
  365. data/lib/vapid/vendor/trix/src/trix/views/document_view.coffee +68 -0
  366. data/lib/vapid/vendor/trix/src/trix/views/object_group_view.coffee +23 -0
  367. data/lib/vapid/vendor/trix/src/trix/views/object_view.coffee +86 -0
  368. data/lib/vapid/vendor/trix/src/trix/views/piece_view.coffee +97 -0
  369. data/lib/vapid/vendor/trix/src/trix/views/previewable_attachment_view.coffee +49 -0
  370. data/lib/vapid/vendor/trix/src/trix/views/text_view.coffee +30 -0
  371. data/lib/vapid/vendor/trix/test/.gitignore +1 -0
  372. data/lib/vapid/vendor/trix/test/src/system/attachment_test.coffee +70 -0
  373. data/lib/vapid/vendor/trix/test/src/system/basic_input_test.coffee +68 -0
  374. data/lib/vapid/vendor/trix/test/src/system/block_formatting_test.coffee +602 -0
  375. data/lib/vapid/vendor/trix/test/src/system/caching_test.coffee +21 -0
  376. data/lib/vapid/vendor/trix/test/src/system/composition_input_test.coffee +138 -0
  377. data/lib/vapid/vendor/trix/test/src/system/cursor_movement_test.coffee +54 -0
  378. data/lib/vapid/vendor/trix/test/src/system/custom_element_test.coffee +314 -0
  379. data/lib/vapid/vendor/trix/test/src/system/html_loading_test.coffee +62 -0
  380. data/lib/vapid/vendor/trix/test/src/system/html_replacement_test.coffee +101 -0
  381. data/lib/vapid/vendor/trix/test/src/system/installation_process_test.coffee +59 -0
  382. data/lib/vapid/vendor/trix/test/src/system/list_formatting_test.coffee +70 -0
  383. data/lib/vapid/vendor/trix/test/src/system/mutation_input_test.coffee +73 -0
  384. data/lib/vapid/vendor/trix/test/src/system/pasting_test.coffee +215 -0
  385. data/lib/vapid/vendor/trix/test/src/system/text_formatting_test.coffee +151 -0
  386. data/lib/vapid/vendor/trix/test/src/system/undo_test.coffee +48 -0
  387. data/lib/vapid/vendor/trix/test/src/test.coffee +16 -0
  388. data/lib/vapid/vendor/trix/test/src/test_helpers/assertions.coffee +38 -0
  389. data/lib/vapid/vendor/trix/test/src/test_helpers/editor_helpers.coffee +37 -0
  390. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_empty.jst.eco +1 -0
  391. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_html.jst.eco +2 -0
  392. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_in_table.jst.eco +7 -0
  393. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_with_block_styles.jst.eco +6 -0
  394. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_with_bold_styles.jst.eco +7 -0
  395. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_with_image.jst.eco +2 -0
  396. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_with_styled_content.jst.eco +7 -0
  397. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/editor_with_toolbar_and_input.jst.eco +5 -0
  398. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/fixtures.coffee +536 -0
  399. data/lib/vapid/vendor/trix/test/src/test_helpers/fixtures/logo.png +0 -0
  400. data/lib/vapid/vendor/trix/test/src/test_helpers/index.coffee +18 -0
  401. data/lib/vapid/vendor/trix/test/src/test_helpers/input_helpers.coffee +183 -0
  402. data/lib/vapid/vendor/trix/test/src/test_helpers/selection_helpers.coffee +91 -0
  403. data/lib/vapid/vendor/trix/test/src/test_helpers/test_helpers.coffee +72 -0
  404. data/lib/vapid/vendor/trix/test/src/test_helpers/test_stubs.coffee +31 -0
  405. data/lib/vapid/vendor/trix/test/src/test_helpers/toolbar_helpers.coffee +45 -0
  406. data/lib/vapid/vendor/trix/test/src/unit/attachment_test.coffee +23 -0
  407. data/lib/vapid/vendor/trix/test/src/unit/block_test.coffee +22 -0
  408. data/lib/vapid/vendor/trix/test/src/unit/composition_test.coffee +13 -0
  409. data/lib/vapid/vendor/trix/test/src/unit/document_test.coffee +11 -0
  410. data/lib/vapid/vendor/trix/test/src/unit/document_view_test.coffee +6 -0
  411. data/lib/vapid/vendor/trix/test/src/unit/html_parser_test.coffee +162 -0
  412. data/lib/vapid/vendor/trix/test/src/unit/location_mapper_test.coffee +185 -0
  413. data/lib/vapid/vendor/trix/test/src/unit/mutation_observer_test.coffee +84 -0
  414. data/lib/vapid/vendor/trix/test/src/unit/serialization_test.coffee +7 -0
  415. data/lib/vapid/vendor/trix/test/src/unit/string_change_summary_test.coffee +57 -0
  416. data/lib/vapid/vendor/trix/test/src/unit/text_test.coffee +19 -0
  417. data/lib/vapid/vendor/trix/test/vendor/rangy-core.js +3845 -0
  418. data/lib/vapid/vendor/trix/test/vendor/rangy-textrange.js +1930 -0
  419. data/lib/vapid/version.rb +4 -0
  420. data/lib/vapid/views/admin/install.html.erb +19 -0
  421. data/lib/vapid/views/admin/login.html.erb +11 -0
  422. data/lib/vapid/views/admin/overview/index.html.erb +1 -0
  423. data/lib/vapid/views/admin/records/_form.erb +9 -0
  424. data/lib/vapid/views/admin/records/edit.html.erb +5 -0
  425. data/lib/vapid/views/admin/records/index.html.erb +38 -0
  426. data/lib/vapid/views/admin/records/new.html.erb +3 -0
  427. data/lib/vapid/views/errors/404.html.erb +1 -0
  428. data/lib/vapid/views/errors/500.html.erb +1 -0
  429. data/lib/vapid/views/layouts/admin.html.erb +41 -0
  430. data/lib/vapid/views/layouts/admin_form.html.erb +22 -0
  431. data/lib/vapid/views/layouts/error.html.erb +11 -0
  432. data/vapid.gemspec +48 -0
  433. metadata +811 -0
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * # Semantic UI 2.2.9 - Tab
3
+ * http://github.com/semantic-org/semantic-ui/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ */.ui.tab{display:none}.ui.tab.active,.ui.tab.open{display:block}.ui.tab.loading{position:relative;overflow:hidden;display:block;min-height:250px}.ui.tab.loading *{position:relative!important;left:-10000px!important}.ui.tab.loading.segment:before,.ui.tab.loading:before{position:absolute;content:'';top:100px;left:50%;margin:-1.25em 0 0 -1.25em;width:2.5em;height:2.5em;border-radius:500rem;border:.2em solid rgba(0,0,0,.1)}.ui.tab.loading.segment:after,.ui.tab.loading:after{position:absolute;content:'';top:100px;left:50%;margin:-1.25em 0 0 -1.25em;width:2.5em;height:2.5em;-webkit-animation:button-spin .6s linear;animation:button-spin .6s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;border-radius:500rem;border-color:#767676 transparent transparent;border-style:solid;border-width:.2em;box-shadow:0 0 0 1px transparent}
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * # Semantic UI 2.2.9 - Tab
3
+ * http://github.com/semantic-org/semantic-ui/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ */
10
+ !function(e,t,a,n){"use strict";t="undefined"!=typeof t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.tab=function(i){var o,r=e(e.isFunction(this)?t:this),s=r.selector||"",c=(new Date).getTime(),l=[],d=arguments[0],u="string"==typeof d,b=[].slice.call(arguments,1),g=!1;return r.each(function(){var f,h,p,m,v,y,T=e.isPlainObject(i)?e.extend(!0,{},e.fn.tab.settings,i):e.extend({},e.fn.tab.settings),L=T.className,x=T.metadata,A=T.selector,P=T.error,C="."+T.namespace,F="module-"+T.namespace,S=e(this),j={},E=!0,O=0,w=this,k=S.data(F);v={initialize:function(){v.debug("Initializing tab menu item",S),v.fix.callbacks(),v.determineTabs(),v.debug("Determining tabs",T.context,h),T.auto&&v.set.auto(),v.bind.events(),T.history&&!g&&(v.initializeHistory(),g=!0),v.instantiate()},instantiate:function(){v.verbose("Storing instance of module",v),k=v,S.data(F,v)},destroy:function(){v.debug("Destroying tabs",S),S.removeData(F).off(C)},bind:{events:function(){e.isWindow(w)||(v.debug("Attaching tab activation events to element",S),S.on("click"+C,v.event.click))}},determineTabs:function(){var t;"parent"===T.context?(S.closest(A.ui).length>0?(t=S.closest(A.ui),v.verbose("Using closest UI element as parent",t)):t=S,f=t.parent(),v.verbose("Determined parent element for creating context",f)):T.context?(f=e(T.context),v.verbose("Using selector for tab context",T.context,f)):f=e("body"),T.childrenOnly?(h=f.children(A.tabs),v.debug("Searching tab context children for tabs",f,h)):(h=f.find(A.tabs),v.debug("Searching tab context for tabs",f,h))},fix:{callbacks:function(){e.isPlainObject(i)&&(i.onTabLoad||i.onTabInit)&&(i.onTabLoad&&(i.onLoad=i.onTabLoad,delete i.onTabLoad,v.error(P.legacyLoad,i.onLoad)),i.onTabInit&&(i.onFirstLoad=i.onTabInit,delete i.onTabInit,v.error(P.legacyInit,i.onFirstLoad)),T=e.extend(!0,{},e.fn.tab.settings,i))}},initializeHistory:function(){if(v.debug("Initializing page state"),e.address===n)return v.error(P.state),!1;if("state"==T.historyType){if(v.debug("Using HTML5 to manage state"),T.path===!1)return v.error(P.path),!1;e.address.history(!0).state(T.path)}e.address.bind("change",v.event.history.change)},event:{click:function(t){var a=e(this).data(x.tab);a!==n?(T.history?(v.verbose("Updating page state",t),e.address.value(a)):(v.verbose("Changing tab",t),v.changeTab(a)),t.preventDefault()):v.debug("No tab specified")},history:{change:function(t){var a=t.pathNames.join("/")||v.get.initialPath(),i=T.templates.determineTitle(a)||!1;v.performance.display(),v.debug("History change event",a,t),y=t,a!==n&&v.changeTab(a),i&&e.address.title(i)}}},refresh:function(){p&&(v.debug("Refreshing tab",p),v.changeTab(p))},cache:{read:function(e){return e!==n&&j[e]},add:function(e,t){e=e||p,v.debug("Adding cached content for",e),j[e]=t},remove:function(e){e=e||p,v.debug("Removing cached content for",e),delete j[e]}},set:{auto:function(){var t="string"==typeof T.path?T.path.replace(/\/$/,"")+"/{$tab}":"/{$tab}";v.verbose("Setting up automatic tab retrieval from server",t),e.isPlainObject(T.apiSettings)?T.apiSettings.url=t:T.apiSettings={url:t}},loading:function(e){var t=v.get.tabElement(e),a=t.hasClass(L.loading);a||(v.verbose("Setting loading state for",t),t.addClass(L.loading).siblings(h).removeClass(L.active+" "+L.loading),t.length>0&&T.onRequest.call(t[0],e))},state:function(t){e.address.value(t)}},changeTab:function(a){var n=t.history&&t.history.pushState,i=n&&T.ignoreFirstLoad&&E,o=T.auto||e.isPlainObject(T.apiSettings),r=o&&!i?v.utilities.pathToArray(a):v.get.defaultPathArray(a);a=v.utilities.arrayToPath(r),e.each(r,function(t,n){var s,c,l,d,u=r.slice(0,t+1),b=v.utilities.arrayToPath(u),g=v.is.tab(b),h=t+1==r.length,A=v.get.tabElement(b);if(v.verbose("Looking for tab",n),g){if(v.verbose("Tab was found",n),p=b,m=v.utilities.filterArray(r,u),h?d=!0:(c=r.slice(0,t+2),l=v.utilities.arrayToPath(c),d=!v.is.tab(l),d&&v.verbose("Tab parameters found",c)),d&&o)return i?(v.debug("Ignoring remote content on first tab load",b),E=!1,v.cache.add(a,A.html()),v.activate.all(b),T.onFirstLoad.call(A[0],b,m,y),T.onLoad.call(A[0],b,m,y)):(v.activate.navigation(b),v.fetch.content(b,a)),!1;v.debug("Opened local tab",b),v.activate.all(b),v.cache.read(b)||(v.cache.add(b,!0),v.debug("First time tab loaded calling tab init"),T.onFirstLoad.call(A[0],b,m,y)),T.onLoad.call(A[0],b,m,y)}else{if(a.search("/")!=-1||""===a)return v.error(P.missingTab,S,f,b),!1;if(s=e("#"+a+', a[name="'+a+'"]'),b=s.closest("[data-tab]").data(x.tab),A=v.get.tabElement(b),s&&s.length>0&&b)return v.debug("Anchor link used, opening parent tab",A,s),A.hasClass(L.active)||setTimeout(function(){v.scrollTo(s)},0),v.activate.all(b),v.cache.read(b)||(v.cache.add(b,!0),v.debug("First time tab loaded calling tab init"),T.onFirstLoad.call(A[0],b,m,y)),T.onLoad.call(A[0],b,m,y),!1}})},scrollTo:function(t){var n=!!(t&&t.length>0)&&t.offset().top;n!==!1&&(v.debug("Forcing scroll to an in-page link in a hidden tab",n,t),e(a).scrollTop(n))},update:{content:function(t,a,i){var o=v.get.tabElement(t),r=o[0];i=i!==n?i:T.evaluateScripts,"string"==typeof T.cacheType&&"dom"==T.cacheType.toLowerCase()&&"string"!=typeof a?o.empty().append(e(a).clone(!0)):i?(v.debug("Updating HTML and evaluating inline scripts",t,a),o.html(a)):(v.debug("Updating HTML",t,a),r.innerHTML=a)}},fetch:{content:function(t,a){var i,o,r=v.get.tabElement(t),s={dataType:"html",encodeParameters:!1,on:"now",cache:T.alwaysRefresh,headers:{"X-Remote":!0},onSuccess:function(e){"response"==T.cacheType&&v.cache.add(a,e),v.update.content(t,e),t==p?(v.debug("Content loaded",t),v.activate.tab(t)):v.debug("Content loaded in background",t),T.onFirstLoad.call(r[0],t,m,y),T.onLoad.call(r[0],t,m,y),T.loadOnce?v.cache.add(a,!0):"string"==typeof T.cacheType&&"dom"==T.cacheType.toLowerCase()&&r.children().length>0?setTimeout(function(){var e=r.children().clone(!0);e=e.not("script"),v.cache.add(a,e)},0):v.cache.add(a,r.html())},urlData:{tab:a}},c=r.api("get request")||!1,l=c&&"pending"===c.state();a=a||t,o=v.cache.read(a),T.cache&&o?(v.activate.tab(t),v.debug("Adding cached content",a),T.loadOnce||("once"==T.evaluateScripts?v.update.content(t,o,!1):v.update.content(t,o)),T.onLoad.call(r[0],t,m,y)):l?(v.set.loading(t),v.debug("Content is already loading",a)):e.api!==n?(i=e.extend(!0,{},T.apiSettings,s),v.debug("Retrieving remote content",a,i),v.set.loading(t),r.api(i)):v.error(P.api)}},activate:{all:function(e){v.activate.tab(e),v.activate.navigation(e)},tab:function(e){var t=v.get.tabElement(e),a="siblings"==T.deactivate?t.siblings(h):h.not(t),n=t.hasClass(L.active);v.verbose("Showing tab content for",t),n||(t.addClass(L.active),a.removeClass(L.active+" "+L.loading),t.length>0&&T.onVisible.call(t[0],e))},navigation:function(e){var t=v.get.navElement(e),a="siblings"==T.deactivate?t.siblings(r):r.not(t),n=t.hasClass(L.active);v.verbose("Activating tab navigation for",t,e),n||(t.addClass(L.active),a.removeClass(L.active+" "+L.loading))}},deactivate:{all:function(){v.deactivate.navigation(),v.deactivate.tabs()},navigation:function(){r.removeClass(L.active)},tabs:function(){h.removeClass(L.active+" "+L.loading)}},is:{tab:function(e){return e!==n&&v.get.tabElement(e).length>0}},get:{initialPath:function(){return r.eq(0).data(x.tab)||h.eq(0).data(x.tab)},path:function(){return e.address.value()},defaultPathArray:function(e){return v.utilities.pathToArray(v.get.defaultPath(e))},defaultPath:function(e){var t=r.filter("[data-"+x.tab+'^="'+e+'/"]').eq(0),a=t.data(x.tab)||!1;if(a){if(v.debug("Found default tab",a),O<T.maxDepth)return O++,v.get.defaultPath(a);v.error(P.recursion)}else v.debug("No default tabs found for",e,h);return O=0,e},navElement:function(e){return e=e||p,r.filter("[data-"+x.tab+'="'+e+'"]')},tabElement:function(e){var t,a,n,i;return e=e||p,n=v.utilities.pathToArray(e),i=v.utilities.last(n),t=h.filter("[data-"+x.tab+'="'+e+'"]'),a=h.filter("[data-"+x.tab+'="'+i+'"]'),t.length>0?t:a},tab:function(){return p}},utilities:{filterArray:function(t,a){return e.grep(t,function(t){return e.inArray(t,a)==-1})},last:function(t){return!!e.isArray(t)&&t[t.length-1]},pathToArray:function(e){return e===n&&(e=p),"string"==typeof e?e.split("/"):[e]},arrayToPath:function(t){return!!e.isArray(t)&&t.join("/")}},setting:function(t,a){if(v.debug("Changing setting",t,a),e.isPlainObject(t))e.extend(!0,T,t);else{if(a===n)return T[t];e.isPlainObject(T[t])?e.extend(!0,T[t],a):T[t]=a}},internal:function(t,a){if(e.isPlainObject(t))e.extend(!0,v,t);else{if(a===n)return v[t];v[t]=a}},debug:function(){!T.silent&&T.debug&&(T.performance?v.performance.log(arguments):(v.debug=Function.prototype.bind.call(console.info,console,T.name+":"),v.debug.apply(console,arguments)))},verbose:function(){!T.silent&&T.verbose&&T.debug&&(T.performance?v.performance.log(arguments):(v.verbose=Function.prototype.bind.call(console.info,console,T.name+":"),v.verbose.apply(console,arguments)))},error:function(){T.silent||(v.error=Function.prototype.bind.call(console.error,console,T.name+":"),v.error.apply(console,arguments))},performance:{log:function(e){var t,a,n;T.performance&&(t=(new Date).getTime(),n=c||t,a=t-n,c=t,l.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:w,"Execution Time":a})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(v.performance.display,500)},display:function(){var t=T.name+":",a=0;c=!1,clearTimeout(v.performance.timer),e.each(l,function(e,t){a+=t["Execution Time"]}),t+=" "+a+"ms",s&&(t+=" '"+s+"'"),(console.group!==n||console.table!==n)&&l.length>0&&(console.groupCollapsed(t),console.table?console.table(l):e.each(l,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),l=[]}},invoke:function(t,a,i){var r,s,c,l=k;return a=a||b,i=w||i,"string"==typeof t&&l!==n&&(t=t.split(/[\. ]/),r=t.length-1,e.each(t,function(a,i){var o=a!=r?i+t[a+1].charAt(0).toUpperCase()+t[a+1].slice(1):t;if(e.isPlainObject(l[o])&&a!=r)l=l[o];else{if(l[o]!==n)return s=l[o],!1;if(!e.isPlainObject(l[i])||a==r)return l[i]!==n?(s=l[i],!1):(v.error(P.method,t),!1);l=l[i]}})),e.isFunction(s)?c=s.apply(i,a):s!==n&&(c=s),e.isArray(o)?o.push(c):o!==n?o=[o,c]:c!==n&&(o=c),s}},u?(k===n&&v.initialize(),v.invoke(d)):(k!==n&&k.invoke("destroy"),v.initialize())}),o!==n?o:this},e.tab=function(){e(t).tab.apply(this,arguments)},e.fn.tab.settings={name:"Tab",namespace:"tab",silent:!1,debug:!1,verbose:!1,performance:!0,auto:!1,history:!1,historyType:"hash",path:!1,context:!1,childrenOnly:!1,maxDepth:25,deactivate:"siblings",alwaysRefresh:!1,cache:!0,loadOnce:!1,cacheType:"response",ignoreFirstLoad:!1,apiSettings:!1,evaluateScripts:"once",onFirstLoad:function(e,t,a){},onLoad:function(e,t,a){},onVisible:function(e,t,a){},onRequest:function(e,t,a){},templates:{determineTitle:function(e){}},error:{api:"You attempted to load content without API module",method:"The method you called is not defined",missingTab:"Activated tab cannot be found. Tabs are case-sensitive.",noContent:"The tab you specified is missing a content url.",path:"History enabled, but no path was specified",recursion:"Max recursive depth reached",legacyInit:"onTabInit has been renamed to onFirstLoad in 2.0, please adjust your code.",legacyLoad:"onTabLoad has been renamed to onLoad in 2.0. Please adjust your code",state:"History requires Asual's Address library <https://github.com/asual/jquery-address>"},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document);
@@ -0,0 +1,1108 @@
1
+ /*!
2
+ * # Semantic UI 2.2.9 - Table
3
+ * http://github.com/semantic-org/semantic-ui/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ */
10
+
11
+
12
+ /*******************************
13
+ Table
14
+ *******************************/
15
+
16
+
17
+ /* Prototype */
18
+ .ui.table {
19
+ width: 100%;
20
+ background: #FFFFFF;
21
+ margin: 1em 0em;
22
+ border: 1px solid rgba(34, 36, 38, 0.15);
23
+ box-shadow: none;
24
+ border-radius: 0.28571429rem;
25
+ text-align: left;
26
+ color: rgba(0, 0, 0, 0.87);
27
+ border-collapse: separate;
28
+ border-spacing: 0px;
29
+ }
30
+ .ui.table:first-child {
31
+ margin-top: 0em;
32
+ }
33
+ .ui.table:last-child {
34
+ margin-bottom: 0em;
35
+ }
36
+
37
+
38
+ /*******************************
39
+ Parts
40
+ *******************************/
41
+
42
+
43
+ /* Table Content */
44
+ .ui.table th,
45
+ .ui.table td {
46
+ -webkit-transition: background 0.1s ease, color 0.1s ease;
47
+ transition: background 0.1s ease, color 0.1s ease;
48
+ }
49
+
50
+ /* Headers */
51
+ .ui.table thead {
52
+ box-shadow: none;
53
+ }
54
+ .ui.table thead th {
55
+ cursor: auto;
56
+ background: #F9FAFB;
57
+ text-align: inherit;
58
+ color: rgba(0, 0, 0, 0.87);
59
+ padding: 0.92857143em 0.78571429em;
60
+ vertical-align: inherit;
61
+ font-style: none;
62
+ font-weight: bold;
63
+ text-transform: none;
64
+ border-bottom: 1px solid rgba(34, 36, 38, 0.1);
65
+ border-left: none;
66
+ }
67
+ .ui.table thead tr > th:first-child {
68
+ border-left: none;
69
+ }
70
+ .ui.table thead tr:first-child > th:first-child {
71
+ border-radius: 0.28571429rem 0em 0em 0em;
72
+ }
73
+ .ui.table thead tr:first-child > th:last-child {
74
+ border-radius: 0em 0.28571429rem 0em 0em;
75
+ }
76
+ .ui.table thead tr:first-child > th:only-child {
77
+ border-radius: 0.28571429rem 0.28571429rem 0em 0em;
78
+ }
79
+
80
+ /* Footer */
81
+ .ui.table tfoot {
82
+ box-shadow: none;
83
+ }
84
+ .ui.table tfoot th {
85
+ cursor: auto;
86
+ border-top: 1px solid rgba(34, 36, 38, 0.15);
87
+ background: #F9FAFB;
88
+ text-align: inherit;
89
+ color: rgba(0, 0, 0, 0.87);
90
+ padding: 0.78571429em 0.78571429em;
91
+ vertical-align: middle;
92
+ font-style: normal;
93
+ font-weight: normal;
94
+ text-transform: none;
95
+ }
96
+ .ui.table tfoot tr > th:first-child {
97
+ border-left: none;
98
+ }
99
+ .ui.table tfoot tr:first-child > th:first-child {
100
+ border-radius: 0em 0em 0em 0.28571429rem;
101
+ }
102
+ .ui.table tfoot tr:first-child > th:last-child {
103
+ border-radius: 0em 0em 0.28571429rem 0em;
104
+ }
105
+ .ui.table tfoot tr:first-child > th:only-child {
106
+ border-radius: 0em 0em 0.28571429rem 0.28571429rem;
107
+ }
108
+
109
+ /* Table Row */
110
+ .ui.table tr td {
111
+ border-top: 1px solid rgba(34, 36, 38, 0.1);
112
+ }
113
+ .ui.table tr:first-child td {
114
+ border-top: none;
115
+ }
116
+
117
+ /* Table Cells */
118
+ .ui.table td {
119
+ padding: 0.78571429em 0.78571429em;
120
+ text-align: inherit;
121
+ }
122
+
123
+ /* Icons */
124
+ .ui.table > .icon {
125
+ vertical-align: baseline;
126
+ }
127
+ .ui.table > .icon:only-child {
128
+ margin: 0em;
129
+ }
130
+
131
+ /* Table Segment */
132
+ .ui.table.segment {
133
+ padding: 0em;
134
+ }
135
+ .ui.table.segment:after {
136
+ display: none;
137
+ }
138
+ .ui.table.segment.stacked:after {
139
+ display: block;
140
+ }
141
+
142
+ /* Responsive */
143
+ @media only screen and (max-width: 767px) {
144
+ .ui.table:not(.unstackable) {
145
+ width: 100%;
146
+ }
147
+ .ui.table:not(.unstackable) tbody,
148
+ .ui.table:not(.unstackable) tr,
149
+ .ui.table:not(.unstackable) tr > th,
150
+ .ui.table:not(.unstackable) tr > td {
151
+ width: auto !important;
152
+ display: block !important;
153
+ }
154
+ .ui.table:not(.unstackable) {
155
+ padding: 0em;
156
+ }
157
+ .ui.table:not(.unstackable) thead {
158
+ display: block;
159
+ }
160
+ .ui.table:not(.unstackable) tfoot {
161
+ display: block;
162
+ }
163
+ .ui.table:not(.unstackable) tr {
164
+ padding-top: 1em;
165
+ padding-bottom: 1em;
166
+ box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1) inset !important;
167
+ }
168
+ .ui.table:not(.unstackable) tr > th,
169
+ .ui.table:not(.unstackable) tr > td {
170
+ background: none;
171
+ border: none !important;
172
+ padding: 0.25em 0.75em !important;
173
+ box-shadow: none !important;
174
+ }
175
+ .ui.table:not(.unstackable) th:first-child,
176
+ .ui.table:not(.unstackable) td:first-child {
177
+ font-weight: bold;
178
+ }
179
+
180
+ /* Definition Table */
181
+ .ui.definition.table:not(.unstackable) thead th:first-child {
182
+ box-shadow: none !important;
183
+ }
184
+ }
185
+
186
+
187
+ /*******************************
188
+ Coupling
189
+ *******************************/
190
+
191
+
192
+ /* UI Image */
193
+ .ui.table th .image,
194
+ .ui.table th .image img,
195
+ .ui.table td .image,
196
+ .ui.table td .image img {
197
+ max-width: none;
198
+ }
199
+
200
+
201
+ /*******************************
202
+ Types
203
+ *******************************/
204
+
205
+
206
+ /*--------------
207
+ Complex
208
+ ---------------*/
209
+
210
+ .ui.structured.table {
211
+ border-collapse: collapse;
212
+ }
213
+ .ui.structured.table thead th {
214
+ border-left: none;
215
+ border-right: none;
216
+ }
217
+ .ui.structured.sortable.table thead th {
218
+ border-left: 1px solid rgba(34, 36, 38, 0.15);
219
+ border-right: 1px solid rgba(34, 36, 38, 0.15);
220
+ }
221
+ .ui.structured.basic.table th {
222
+ border-left: none;
223
+ border-right: none;
224
+ }
225
+ .ui.structured.celled.table tr th,
226
+ .ui.structured.celled.table tr td {
227
+ border-left: 1px solid rgba(34, 36, 38, 0.1);
228
+ border-right: 1px solid rgba(34, 36, 38, 0.1);
229
+ }
230
+
231
+ /*--------------
232
+ Definition
233
+ ---------------*/
234
+
235
+ .ui.definition.table thead:not(.full-width) th:first-child {
236
+ pointer-events: none;
237
+ background: transparent;
238
+ font-weight: normal;
239
+ color: rgba(0, 0, 0, 0.4);
240
+ box-shadow: -1px -1px 0px 1px #FFFFFF;
241
+ }
242
+ .ui.definition.table tfoot:not(.full-width) th:first-child {
243
+ pointer-events: none;
244
+ background: transparent;
245
+ font-weight: rgba(0, 0, 0, 0.4);
246
+ color: normal;
247
+ box-shadow: 1px 1px 0px 1px #FFFFFF;
248
+ }
249
+
250
+ /* Remove Border */
251
+ .ui.celled.definition.table thead:not(.full-width) th:first-child {
252
+ box-shadow: 0px -1px 0px 1px #FFFFFF;
253
+ }
254
+ .ui.celled.definition.table tfoot:not(.full-width) th:first-child {
255
+ box-shadow: 0px 1px 0px 1px #FFFFFF;
256
+ }
257
+
258
+ /* Highlight Defining Column */
259
+ .ui.definition.table tr td:first-child:not(.ignored),
260
+ .ui.definition.table tr td.definition {
261
+ background: rgba(0, 0, 0, 0.03);
262
+ font-weight: bold;
263
+ color: rgba(0, 0, 0, 0.95);
264
+ text-transform: '';
265
+ box-shadow: '';
266
+ text-align: '';
267
+ font-size: 1em;
268
+ padding-left: '';
269
+ padding-right: '';
270
+ }
271
+
272
+ /* Fix 2nd Column */
273
+ .ui.definition.table thead:not(.full-width) th:nth-child(2) {
274
+ border-left: 1px solid rgba(34, 36, 38, 0.15);
275
+ }
276
+ .ui.definition.table tfoot:not(.full-width) th:nth-child(2) {
277
+ border-left: 1px solid rgba(34, 36, 38, 0.15);
278
+ }
279
+ .ui.definition.table td:nth-child(2) {
280
+ border-left: 1px solid rgba(34, 36, 38, 0.15);
281
+ }
282
+
283
+
284
+ /*******************************
285
+ States
286
+ *******************************/
287
+
288
+
289
+ /*--------------
290
+ Positive
291
+ ---------------*/
292
+
293
+ .ui.table tr.positive,
294
+ .ui.table td.positive {
295
+ box-shadow: 0px 0px 0px #A3C293 inset;
296
+ }
297
+ .ui.table tr.positive,
298
+ .ui.table td.positive {
299
+ background: #FCFFF5 !important;
300
+ color: #2C662D !important;
301
+ }
302
+
303
+ /*--------------
304
+ Negative
305
+ ---------------*/
306
+
307
+ .ui.table tr.negative,
308
+ .ui.table td.negative {
309
+ box-shadow: 0px 0px 0px #E0B4B4 inset;
310
+ }
311
+ .ui.table tr.negative,
312
+ .ui.table td.negative {
313
+ background: #FFF6F6 !important;
314
+ color: #9F3A38 !important;
315
+ }
316
+
317
+ /*--------------
318
+ Error
319
+ ---------------*/
320
+
321
+ .ui.table tr.error,
322
+ .ui.table td.error {
323
+ box-shadow: 0px 0px 0px #E0B4B4 inset;
324
+ }
325
+ .ui.table tr.error,
326
+ .ui.table td.error {
327
+ background: #FFF6F6 !important;
328
+ color: #9F3A38 !important;
329
+ }
330
+
331
+ /*--------------
332
+ Warning
333
+ ---------------*/
334
+
335
+ .ui.table tr.warning,
336
+ .ui.table td.warning {
337
+ box-shadow: 0px 0px 0px #C9BA9B inset;
338
+ }
339
+ .ui.table tr.warning,
340
+ .ui.table td.warning {
341
+ background: #FFFAF3 !important;
342
+ color: #573A08 !important;
343
+ }
344
+
345
+ /*--------------
346
+ Active
347
+ ---------------*/
348
+
349
+ .ui.table tr.active,
350
+ .ui.table td.active {
351
+ box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.87) inset;
352
+ }
353
+ .ui.table tr.active,
354
+ .ui.table td.active {
355
+ background: #E0E0E0 !important;
356
+ color: rgba(0, 0, 0, 0.87) !important;
357
+ }
358
+
359
+ /*--------------
360
+ Disabled
361
+ ---------------*/
362
+
363
+ .ui.table tr.disabled td,
364
+ .ui.table tr td.disabled,
365
+ .ui.table tr.disabled:hover,
366
+ .ui.table tr:hover td.disabled {
367
+ pointer-events: none;
368
+ color: rgba(40, 40, 40, 0.3);
369
+ }
370
+
371
+
372
+ /*******************************
373
+ Variations
374
+ *******************************/
375
+
376
+
377
+ /*--------------
378
+ Stackable
379
+ ---------------*/
380
+
381
+ @media only screen and (max-width: 991px) {
382
+ .ui[class*="tablet stackable"].table,
383
+ .ui[class*="tablet stackable"].table tbody,
384
+ .ui[class*="tablet stackable"].table tr,
385
+ .ui[class*="tablet stackable"].table tr > th,
386
+ .ui[class*="tablet stackable"].table tr > td {
387
+ width: 100% !important;
388
+ display: block !important;
389
+ }
390
+ .ui[class*="tablet stackable"].table {
391
+ padding: 0em;
392
+ }
393
+ .ui[class*="tablet stackable"].table thead {
394
+ display: block;
395
+ }
396
+ .ui[class*="tablet stackable"].table tfoot {
397
+ display: block;
398
+ }
399
+ .ui[class*="tablet stackable"].table tr {
400
+ padding-top: 1em;
401
+ padding-bottom: 1em;
402
+ box-shadow: 0px -1px 0px 0px rgba(0, 0, 0, 0.1) inset !important;
403
+ }
404
+ .ui[class*="tablet stackable"].table tr > th,
405
+ .ui[class*="tablet stackable"].table tr > td {
406
+ background: none;
407
+ border: none !important;
408
+ padding: 0.25em 0.75em;
409
+ box-shadow: none !important;
410
+ }
411
+
412
+ /* Definition Table */
413
+ .ui.definition[class*="tablet stackable"].table thead th:first-child {
414
+ box-shadow: none !important;
415
+ }
416
+ }
417
+
418
+ /*--------------
419
+ Text Alignment
420
+ ---------------*/
421
+
422
+ .ui.table[class*="left aligned"],
423
+ .ui.table [class*="left aligned"] {
424
+ text-align: left;
425
+ }
426
+ .ui.table[class*="center aligned"],
427
+ .ui.table [class*="center aligned"] {
428
+ text-align: center;
429
+ }
430
+ .ui.table[class*="right aligned"],
431
+ .ui.table [class*="right aligned"] {
432
+ text-align: right;
433
+ }
434
+
435
+ /*------------------
436
+ Vertical Alignment
437
+ ------------------*/
438
+
439
+ .ui.table[class*="top aligned"],
440
+ .ui.table [class*="top aligned"] {
441
+ vertical-align: top;
442
+ }
443
+ .ui.table[class*="middle aligned"],
444
+ .ui.table [class*="middle aligned"] {
445
+ vertical-align: middle;
446
+ }
447
+ .ui.table[class*="bottom aligned"],
448
+ .ui.table [class*="bottom aligned"] {
449
+ vertical-align: bottom;
450
+ }
451
+
452
+ /*--------------
453
+ Collapsing
454
+ ---------------*/
455
+
456
+ .ui.table th.collapsing,
457
+ .ui.table td.collapsing {
458
+ width: 1px;
459
+ white-space: nowrap;
460
+ }
461
+
462
+ /*--------------
463
+ Fixed
464
+ ---------------*/
465
+
466
+ .ui.fixed.table {
467
+ table-layout: fixed;
468
+ }
469
+ .ui.fixed.table th,
470
+ .ui.fixed.table td {
471
+ overflow: hidden;
472
+ text-overflow: ellipsis;
473
+ }
474
+
475
+ /*--------------
476
+ Selectable
477
+ ---------------*/
478
+
479
+ .ui.selectable.table tbody tr:hover,
480
+ .ui.table tbody tr td.selectable:hover {
481
+ background: rgba(0, 0, 0, 0.05) !important;
482
+ color: rgba(0, 0, 0, 0.95) !important;
483
+ }
484
+ .ui.selectable.inverted.table tbody tr:hover,
485
+ .ui.inverted.table tbody tr td.selectable:hover {
486
+ background: rgba(255, 255, 255, 0.08) !important;
487
+ color: #ffffff !important;
488
+ }
489
+
490
+ /* Selectable Cell Link */
491
+ .ui.table tbody tr td.selectable {
492
+ padding: 0em;
493
+ }
494
+ .ui.table tbody tr td.selectable > a:not(.ui) {
495
+ display: block;
496
+ color: inherit;
497
+ padding: 0.78571429em 0.78571429em;
498
+ }
499
+
500
+ /* Other States */
501
+ .ui.selectable.table tr.error:hover,
502
+ .ui.table tr td.selectable.error:hover,
503
+ .ui.selectable.table tr:hover td.error {
504
+ background: #ffe7e7 !important;
505
+ color: #943634 !important;
506
+ }
507
+ .ui.selectable.table tr.warning:hover,
508
+ .ui.table tr td.selectable.warning:hover,
509
+ .ui.selectable.table tr:hover td.warning {
510
+ background: #fff4e4 !important;
511
+ color: #493107 !important;
512
+ }
513
+ .ui.selectable.table tr.active:hover,
514
+ .ui.table tr td.selectable.active:hover,
515
+ .ui.selectable.table tr:hover td.active {
516
+ background: #E0E0E0 !important;
517
+ color: rgba(0, 0, 0, 0.87) !important;
518
+ }
519
+ .ui.selectable.table tr.positive:hover,
520
+ .ui.table tr td.selectable.positive:hover,
521
+ .ui.selectable.table tr:hover td.positive {
522
+ background: #f7ffe6 !important;
523
+ color: #275b28 !important;
524
+ }
525
+ .ui.selectable.table tr.negative:hover,
526
+ .ui.table tr td.selectable.negative:hover,
527
+ .ui.selectable.table tr:hover td.negative {
528
+ background: #ffe7e7 !important;
529
+ color: #943634 !important;
530
+ }
531
+
532
+ /*-------------------
533
+ Attached
534
+ --------------------*/
535
+
536
+
537
+ /* Middle */
538
+ .ui.attached.table {
539
+ top: 0px;
540
+ bottom: 0px;
541
+ border-radius: 0px;
542
+ margin: 0em -1px;
543
+ width: calc(100% + 2px );
544
+ max-width: calc(100% + 2px );
545
+ box-shadow: none;
546
+ border: 1px solid #D4D4D5;
547
+ }
548
+ .ui.attached + .ui.attached.table:not(.top) {
549
+ border-top: none;
550
+ }
551
+
552
+ /* Top */
553
+ .ui[class*="top attached"].table {
554
+ bottom: 0px;
555
+ margin-bottom: 0em;
556
+ top: 0px;
557
+ margin-top: 1em;
558
+ border-radius: 0.28571429rem 0.28571429rem 0em 0em;
559
+ }
560
+ .ui.table[class*="top attached"]:first-child {
561
+ margin-top: 0em;
562
+ }
563
+
564
+ /* Bottom */
565
+ .ui[class*="bottom attached"].table {
566
+ bottom: 0px;
567
+ margin-top: 0em;
568
+ top: 0px;
569
+ margin-bottom: 1em;
570
+ box-shadow: none, none;
571
+ border-radius: 0em 0em 0.28571429rem 0.28571429rem;
572
+ }
573
+ .ui[class*="bottom attached"].table:last-child {
574
+ margin-bottom: 0em;
575
+ }
576
+
577
+ /*--------------
578
+ Striped
579
+ ---------------*/
580
+
581
+
582
+ /* Table Striping */
583
+ .ui.striped.table > tr:nth-child(2n),
584
+ .ui.striped.table tbody tr:nth-child(2n) {
585
+ background-color: rgba(0, 0, 50, 0.02);
586
+ }
587
+
588
+ /* Stripes */
589
+ .ui.inverted.striped.table > tr:nth-child(2n),
590
+ .ui.inverted.striped.table tbody tr:nth-child(2n) {
591
+ background-color: rgba(255, 255, 255, 0.05);
592
+ }
593
+
594
+ /* Allow striped active hover */
595
+ .ui.striped.selectable.selectable.selectable.table tbody tr.active:hover {
596
+ background: #EFEFEF !important;
597
+ color: rgba(0, 0, 0, 0.95) !important;
598
+ }
599
+
600
+ /*--------------
601
+ Single Line
602
+ ---------------*/
603
+
604
+ .ui.table[class*="single line"],
605
+ .ui.table [class*="single line"] {
606
+ white-space: nowrap;
607
+ }
608
+ .ui.table[class*="single line"],
609
+ .ui.table [class*="single line"] {
610
+ white-space: nowrap;
611
+ }
612
+
613
+ /*-------------------
614
+ Colors
615
+ --------------------*/
616
+
617
+
618
+ /* Red */
619
+ .ui.red.table {
620
+ border-top: 0.2em solid #DB2828;
621
+ }
622
+ .ui.inverted.red.table {
623
+ background-color: #DB2828 !important;
624
+ color: #FFFFFF !important;
625
+ }
626
+
627
+ /* Orange */
628
+ .ui.orange.table {
629
+ border-top: 0.2em solid #F2711C;
630
+ }
631
+ .ui.inverted.orange.table {
632
+ background-color: #F2711C !important;
633
+ color: #FFFFFF !important;
634
+ }
635
+
636
+ /* Yellow */
637
+ .ui.yellow.table {
638
+ border-top: 0.2em solid #FBBD08;
639
+ }
640
+ .ui.inverted.yellow.table {
641
+ background-color: #FBBD08 !important;
642
+ color: #FFFFFF !important;
643
+ }
644
+
645
+ /* Olive */
646
+ .ui.olive.table {
647
+ border-top: 0.2em solid #B5CC18;
648
+ }
649
+ .ui.inverted.olive.table {
650
+ background-color: #B5CC18 !important;
651
+ color: #FFFFFF !important;
652
+ }
653
+
654
+ /* Green */
655
+ .ui.green.table {
656
+ border-top: 0.2em solid #21BA45;
657
+ }
658
+ .ui.inverted.green.table {
659
+ background-color: #21BA45 !important;
660
+ color: #FFFFFF !important;
661
+ }
662
+
663
+ /* Teal */
664
+ .ui.teal.table {
665
+ border-top: 0.2em solid #00B5AD;
666
+ }
667
+ .ui.inverted.teal.table {
668
+ background-color: #00B5AD !important;
669
+ color: #FFFFFF !important;
670
+ }
671
+
672
+ /* Blue */
673
+ .ui.blue.table {
674
+ border-top: 0.2em solid #2185D0;
675
+ }
676
+ .ui.inverted.blue.table {
677
+ background-color: #2185D0 !important;
678
+ color: #FFFFFF !important;
679
+ }
680
+
681
+ /* Violet */
682
+ .ui.violet.table {
683
+ border-top: 0.2em solid #6435C9;
684
+ }
685
+ .ui.inverted.violet.table {
686
+ background-color: #6435C9 !important;
687
+ color: #FFFFFF !important;
688
+ }
689
+
690
+ /* Purple */
691
+ .ui.purple.table {
692
+ border-top: 0.2em solid #A333C8;
693
+ }
694
+ .ui.inverted.purple.table {
695
+ background-color: #A333C8 !important;
696
+ color: #FFFFFF !important;
697
+ }
698
+
699
+ /* Pink */
700
+ .ui.pink.table {
701
+ border-top: 0.2em solid #E03997;
702
+ }
703
+ .ui.inverted.pink.table {
704
+ background-color: #E03997 !important;
705
+ color: #FFFFFF !important;
706
+ }
707
+
708
+ /* Brown */
709
+ .ui.brown.table {
710
+ border-top: 0.2em solid #A5673F;
711
+ }
712
+ .ui.inverted.brown.table {
713
+ background-color: #A5673F !important;
714
+ color: #FFFFFF !important;
715
+ }
716
+
717
+ /* Grey */
718
+ .ui.grey.table {
719
+ border-top: 0.2em solid #767676;
720
+ }
721
+ .ui.inverted.grey.table {
722
+ background-color: #767676 !important;
723
+ color: #FFFFFF !important;
724
+ }
725
+
726
+ /* Black */
727
+ .ui.black.table {
728
+ border-top: 0.2em solid #1B1C1D;
729
+ }
730
+ .ui.inverted.black.table {
731
+ background-color: #1B1C1D !important;
732
+ color: #FFFFFF !important;
733
+ }
734
+
735
+ /*--------------
736
+ Column Count
737
+ ---------------*/
738
+
739
+
740
+ /* Grid Based */
741
+ .ui.one.column.table td {
742
+ width: 100%;
743
+ }
744
+ .ui.two.column.table td {
745
+ width: 50%;
746
+ }
747
+ .ui.three.column.table td {
748
+ width: 33.33333333%;
749
+ }
750
+ .ui.four.column.table td {
751
+ width: 25%;
752
+ }
753
+ .ui.five.column.table td {
754
+ width: 20%;
755
+ }
756
+ .ui.six.column.table td {
757
+ width: 16.66666667%;
758
+ }
759
+ .ui.seven.column.table td {
760
+ width: 14.28571429%;
761
+ }
762
+ .ui.eight.column.table td {
763
+ width: 12.5%;
764
+ }
765
+ .ui.nine.column.table td {
766
+ width: 11.11111111%;
767
+ }
768
+ .ui.ten.column.table td {
769
+ width: 10%;
770
+ }
771
+ .ui.eleven.column.table td {
772
+ width: 9.09090909%;
773
+ }
774
+ .ui.twelve.column.table td {
775
+ width: 8.33333333%;
776
+ }
777
+ .ui.thirteen.column.table td {
778
+ width: 7.69230769%;
779
+ }
780
+ .ui.fourteen.column.table td {
781
+ width: 7.14285714%;
782
+ }
783
+ .ui.fifteen.column.table td {
784
+ width: 6.66666667%;
785
+ }
786
+ .ui.sixteen.column.table td {
787
+ width: 6.25%;
788
+ }
789
+
790
+ /* Column Width */
791
+ .ui.table th.one.wide,
792
+ .ui.table td.one.wide {
793
+ width: 6.25%;
794
+ }
795
+ .ui.table th.two.wide,
796
+ .ui.table td.two.wide {
797
+ width: 12.5%;
798
+ }
799
+ .ui.table th.three.wide,
800
+ .ui.table td.three.wide {
801
+ width: 18.75%;
802
+ }
803
+ .ui.table th.four.wide,
804
+ .ui.table td.four.wide {
805
+ width: 25%;
806
+ }
807
+ .ui.table th.five.wide,
808
+ .ui.table td.five.wide {
809
+ width: 31.25%;
810
+ }
811
+ .ui.table th.six.wide,
812
+ .ui.table td.six.wide {
813
+ width: 37.5%;
814
+ }
815
+ .ui.table th.seven.wide,
816
+ .ui.table td.seven.wide {
817
+ width: 43.75%;
818
+ }
819
+ .ui.table th.eight.wide,
820
+ .ui.table td.eight.wide {
821
+ width: 50%;
822
+ }
823
+ .ui.table th.nine.wide,
824
+ .ui.table td.nine.wide {
825
+ width: 56.25%;
826
+ }
827
+ .ui.table th.ten.wide,
828
+ .ui.table td.ten.wide {
829
+ width: 62.5%;
830
+ }
831
+ .ui.table th.eleven.wide,
832
+ .ui.table td.eleven.wide {
833
+ width: 68.75%;
834
+ }
835
+ .ui.table th.twelve.wide,
836
+ .ui.table td.twelve.wide {
837
+ width: 75%;
838
+ }
839
+ .ui.table th.thirteen.wide,
840
+ .ui.table td.thirteen.wide {
841
+ width: 81.25%;
842
+ }
843
+ .ui.table th.fourteen.wide,
844
+ .ui.table td.fourteen.wide {
845
+ width: 87.5%;
846
+ }
847
+ .ui.table th.fifteen.wide,
848
+ .ui.table td.fifteen.wide {
849
+ width: 93.75%;
850
+ }
851
+ .ui.table th.sixteen.wide,
852
+ .ui.table td.sixteen.wide {
853
+ width: 100%;
854
+ }
855
+
856
+ /*--------------
857
+ Sortable
858
+ ---------------*/
859
+
860
+ .ui.sortable.table thead th {
861
+ cursor: pointer;
862
+ white-space: nowrap;
863
+ border-left: 1px solid rgba(34, 36, 38, 0.15);
864
+ color: rgba(0, 0, 0, 0.87);
865
+ }
866
+ .ui.sortable.table thead th:first-child {
867
+ border-left: none;
868
+ }
869
+ .ui.sortable.table thead th.sorted,
870
+ .ui.sortable.table thead th.sorted:hover {
871
+ -webkit-user-select: none;
872
+ -moz-user-select: none;
873
+ -ms-user-select: none;
874
+ user-select: none;
875
+ }
876
+ .ui.sortable.table thead th:after {
877
+ display: none;
878
+ font-style: normal;
879
+ font-weight: normal;
880
+ text-decoration: inherit;
881
+ content: '';
882
+ height: 1em;
883
+ width: auto;
884
+ opacity: 0.8;
885
+ margin: 0em 0em 0em 0.5em;
886
+ font-family: 'Icons';
887
+ }
888
+ .ui.sortable.table thead th.ascending:after {
889
+ content: '\f0d8';
890
+ }
891
+ .ui.sortable.table thead th.descending:after {
892
+ content: '\f0d7';
893
+ }
894
+
895
+ /* Hover */
896
+ .ui.sortable.table th.disabled:hover {
897
+ cursor: auto;
898
+ color: rgba(40, 40, 40, 0.3);
899
+ }
900
+ .ui.sortable.table thead th:hover {
901
+ background: rgba(0, 0, 0, 0.05);
902
+ color: rgba(0, 0, 0, 0.8);
903
+ }
904
+
905
+ /* Sorted */
906
+ .ui.sortable.table thead th.sorted {
907
+ background: rgba(0, 0, 0, 0.05);
908
+ color: rgba(0, 0, 0, 0.95);
909
+ }
910
+ .ui.sortable.table thead th.sorted:after {
911
+ display: inline-block;
912
+ }
913
+
914
+ /* Sorted Hover */
915
+ .ui.sortable.table thead th.sorted:hover {
916
+ background: rgba(0, 0, 0, 0.05);
917
+ color: rgba(0, 0, 0, 0.95);
918
+ }
919
+
920
+ /* Inverted */
921
+ .ui.inverted.sortable.table thead th.sorted {
922
+ background: rgba(255, 255, 255, 0.15) -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
923
+ background: rgba(255, 255, 255, 0.15) linear-gradient(transparent, rgba(0, 0, 0, 0.05));
924
+ color: #ffffff;
925
+ }
926
+ .ui.inverted.sortable.table thead th:hover {
927
+ background: rgba(255, 255, 255, 0.08) -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
928
+ background: rgba(255, 255, 255, 0.08) linear-gradient(transparent, rgba(0, 0, 0, 0.05));
929
+ color: #ffffff;
930
+ }
931
+ .ui.inverted.sortable.table thead th {
932
+ border-left-color: transparent;
933
+ border-right-color: transparent;
934
+ }
935
+
936
+ /*--------------
937
+ Inverted
938
+ ---------------*/
939
+
940
+
941
+ /* Text Color */
942
+ .ui.inverted.table {
943
+ background: #333333;
944
+ color: rgba(255, 255, 255, 0.9);
945
+ border: none;
946
+ }
947
+ .ui.inverted.table th {
948
+ background-color: rgba(0, 0, 0, 0.15);
949
+ border-color: rgba(255, 255, 255, 0.1) !important;
950
+ color: rgba(255, 255, 255, 0.9);
951
+ }
952
+ .ui.inverted.table tr td {
953
+ border-color: rgba(255, 255, 255, 0.1) !important;
954
+ }
955
+ .ui.inverted.table tr.disabled td,
956
+ .ui.inverted.table tr td.disabled,
957
+ .ui.inverted.table tr.disabled:hover td,
958
+ .ui.inverted.table tr:hover td.disabled {
959
+ pointer-events: none;
960
+ color: rgba(225, 225, 225, 0.3);
961
+ }
962
+
963
+ /* Definition */
964
+ .ui.inverted.definition.table tfoot:not(.full-width) th:first-child,
965
+ .ui.inverted.definition.table thead:not(.full-width) th:first-child {
966
+ background: #FFFFFF;
967
+ }
968
+ .ui.inverted.definition.table tr td:first-child {
969
+ background: rgba(255, 255, 255, 0.02);
970
+ color: #ffffff;
971
+ }
972
+
973
+ /*--------------
974
+ Collapsing
975
+ ---------------*/
976
+
977
+ .ui.collapsing.table {
978
+ width: auto;
979
+ }
980
+
981
+ /*--------------
982
+ Basic
983
+ ---------------*/
984
+
985
+ .ui.basic.table {
986
+ background: transparent;
987
+ border: 1px solid rgba(34, 36, 38, 0.15);
988
+ box-shadow: none;
989
+ }
990
+ .ui.basic.table thead,
991
+ .ui.basic.table tfoot {
992
+ box-shadow: none;
993
+ }
994
+ .ui.basic.table th {
995
+ background: transparent;
996
+ border-left: none;
997
+ }
998
+ .ui.basic.table tbody tr {
999
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1000
+ }
1001
+ .ui.basic.table td {
1002
+ background: transparent;
1003
+ }
1004
+ .ui.basic.striped.table tbody tr:nth-child(2n) {
1005
+ background-color: rgba(0, 0, 0, 0.05) !important;
1006
+ }
1007
+
1008
+ /* Very Basic */
1009
+ .ui[class*="very basic"].table {
1010
+ border: none;
1011
+ }
1012
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) th,
1013
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) td {
1014
+ padding: '';
1015
+ }
1016
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) th:first-child,
1017
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) td:first-child {
1018
+ padding-left: 0em;
1019
+ }
1020
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) th:last-child,
1021
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) td:last-child {
1022
+ padding-right: 0em;
1023
+ }
1024
+ .ui[class*="very basic"].table:not(.sortable):not(.striped) thead tr:first-child th {
1025
+ padding-top: 0em;
1026
+ }
1027
+
1028
+ /*--------------
1029
+ Celled
1030
+ ---------------*/
1031
+
1032
+ .ui.celled.table tr th,
1033
+ .ui.celled.table tr td {
1034
+ border-left: 1px solid rgba(34, 36, 38, 0.1);
1035
+ }
1036
+ .ui.celled.table tr th:first-child,
1037
+ .ui.celled.table tr td:first-child {
1038
+ border-left: none;
1039
+ }
1040
+
1041
+ /*--------------
1042
+ Padded
1043
+ ---------------*/
1044
+
1045
+ .ui.padded.table th {
1046
+ padding-left: 1em;
1047
+ padding-right: 1em;
1048
+ }
1049
+ .ui.padded.table th,
1050
+ .ui.padded.table td {
1051
+ padding: 1em 1em;
1052
+ }
1053
+
1054
+ /* Very */
1055
+ .ui[class*="very padded"].table th {
1056
+ padding-left: 1.5em;
1057
+ padding-right: 1.5em;
1058
+ }
1059
+ .ui[class*="very padded"].table td {
1060
+ padding: 1.5em 1.5em;
1061
+ }
1062
+
1063
+ /*--------------
1064
+ Compact
1065
+ ---------------*/
1066
+
1067
+ .ui.compact.table th {
1068
+ padding-left: 0.7em;
1069
+ padding-right: 0.7em;
1070
+ }
1071
+ .ui.compact.table td {
1072
+ padding: 0.5em 0.7em;
1073
+ }
1074
+
1075
+ /* Very */
1076
+ .ui[class*="very compact"].table th {
1077
+ padding-left: 0.6em;
1078
+ padding-right: 0.6em;
1079
+ }
1080
+ .ui[class*="very compact"].table td {
1081
+ padding: 0.4em 0.6em;
1082
+ }
1083
+
1084
+ /*--------------
1085
+ Sizes
1086
+ ---------------*/
1087
+
1088
+
1089
+ /* Small */
1090
+ .ui.small.table {
1091
+ font-size: 0.9em;
1092
+ }
1093
+
1094
+ /* Standard */
1095
+ .ui.table {
1096
+ font-size: 1em;
1097
+ }
1098
+
1099
+ /* Large */
1100
+ .ui.large.table {
1101
+ font-size: 1.1em;
1102
+ }
1103
+
1104
+
1105
+ /*******************************
1106
+ Site Overrides
1107
+ *******************************/
1108
+