ui_bibz 2.0.0.beta2.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -7
  3. data/Gemfile.lock +63 -63
  4. data/app/assets/javascripts/interface.coffee +6 -1
  5. data/app/assets/javascripts/ui_bibz.coffee +1 -0
  6. data/app/assets/stylesheets/_custom_variables.sass +20 -0
  7. data/app/assets/stylesheets/_panel.scss +314 -0
  8. data/app/assets/stylesheets/boxes.sass +5 -0
  9. data/app/assets/stylesheets/containers.sass +2 -0
  10. data/app/assets/stylesheets/fix-bootstrap-4.sass +4 -0
  11. data/app/assets/stylesheets/fix-dropdown-select.sass +1 -0
  12. data/app/assets/stylesheets/fix_addon.sass +187 -0
  13. data/app/assets/stylesheets/forms.sass +60 -0
  14. data/app/assets/stylesheets/navigations.sass +11 -0
  15. data/app/assets/stylesheets/notifications.sass +10 -0
  16. data/app/assets/stylesheets/{table.sass → tables.sass} +0 -0
  17. data/app/assets/stylesheets/ui_bibz.sass +11 -91
  18. data/config/initializers/ui_bibz.rb +6 -4
  19. data/lib/ui_bibz.rb +5 -0
  20. data/lib/ui_bibz/helpers/ui/ux_helper.rb +4 -0
  21. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +38 -0
  22. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/auto_complete_field_input.rb +0 -0
  23. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/base_input.rb +0 -0
  24. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/collection_input.rb +15 -11
  25. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/string_input.rb +0 -0
  26. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb +0 -0
  27. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_choice_group_input.rb +0 -0
  28. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb +0 -0
  29. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb +0 -0
  30. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_formula_field_input.rb +0 -0
  31. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_markdown_editor_field_input.rb +0 -0
  32. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_column_field_input.rb +0 -0
  33. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +0 -0
  34. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_number_field_input.rb +10 -0
  35. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_radio_field_input.rb +0 -0
  36. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_select_field_input.rb +0 -0
  37. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_switch_field_input.rb +0 -0
  38. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_text_field_input.rb +0 -0
  39. data/lib/ui_bibz/rails/engine.rb +3 -9
  40. data/lib/ui_bibz/ui/core/boxes/card.rb +1 -1
  41. data/lib/ui_bibz/ui/core/boxes/card_column.rb +1 -1
  42. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +1 -1
  43. data/lib/ui_bibz/ui/core/boxes/card_group.rb +1 -1
  44. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +1 -1
  45. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +1 -1
  46. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -1
  47. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +1 -1
  48. data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +1 -1
  49. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +1 -1
  50. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -1
  51. data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -1
  52. data/lib/ui_bibz/ui/core/component.rb +34 -3
  53. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +11 -7
  54. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +5 -1
  55. data/lib/ui_bibz/ui/core/forms/buttons/button_link.rb +1 -1
  56. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +2 -2
  57. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +1 -1
  58. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +1 -1
  59. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +1 -1
  60. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +1 -1
  61. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +1 -1
  62. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +1 -1
  63. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_link.rb +1 -1
  64. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +1 -1
  65. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +1 -1
  66. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +7 -2
  67. data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +63 -0
  68. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +1 -1
  69. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +5 -1
  70. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -1
  71. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +1 -1
  72. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +1 -1
  73. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -1
  74. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -1
  75. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +1 -1
  76. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +7 -3
  77. data/lib/ui_bibz/ui/core/icons/glyph.rb +10 -2
  78. data/lib/ui_bibz/ui/core/icons/star.rb +1 -1
  79. data/lib/ui_bibz/ui/core/layouts/col.rb +1 -1
  80. data/lib/ui_bibz/ui/core/layouts/container.rb +1 -1
  81. data/lib/ui_bibz/ui/core/layouts/row.rb +1 -1
  82. data/lib/ui_bibz/ui/core/lists/components/list.rb +1 -1
  83. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +1 -1
  84. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +1 -1
  85. data/lib/ui_bibz/ui/core/lists/list_group.rb +1 -1
  86. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +1 -1
  87. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +3 -3
  88. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +1 -1
  89. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +1 -1
  90. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +1 -1
  91. data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +1 -1
  92. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +1 -1
  93. data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +1 -1
  94. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +19 -17
  95. data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +1 -1
  96. data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +1 -1
  97. data/lib/ui_bibz/ui/core/navigations/link.rb +8 -2
  98. data/lib/ui_bibz/ui/core/navigations/nav.rb +1 -1
  99. data/lib/ui_bibz/ui/core/navigations/navbar.rb +10 -5
  100. data/lib/ui_bibz/ui/core/navigations/pagination.rb +1 -1
  101. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +5 -8
  102. data/lib/ui_bibz/ui/core/notifications/alert.rb +1 -1
  103. data/lib/ui_bibz/ui/core/notifications/badge.rb +1 -1
  104. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +1 -1
  105. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +1 -1
  106. data/lib/ui_bibz/ui/core/notifications/components/bar.rb +1 -1
  107. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +1 -1
  108. data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +1 -1
  109. data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +1 -1
  110. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -1
  111. data/lib/ui_bibz/ui/core/windows/modal.rb +1 -1
  112. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +22 -4
  113. data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +51 -0
  114. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +48 -0
  115. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +50 -0
  116. data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +52 -0
  117. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +46 -0
  118. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +61 -0
  119. data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +38 -0
  120. data/lib/ui_bibz/ui/ux/containers/panel.rb +104 -0
  121. data/lib/ui_bibz/ui/ux/tables/components/thead.rb +1 -1
  122. data/lib/ui_bibz/ui/ux/tables/table.rb +1 -1
  123. data/lib/ui_bibz/ui/ux/tables/table_card.rb +1 -1
  124. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +1 -1
  125. data/lib/ui_bibz/utils/internationalization.rb +3 -0
  126. data/lib/ui_bibz/version.rb +1 -1
  127. data/test/factories/user.rb +1 -1
  128. data/test/simple_form_test.rb +2 -2
  129. data/test/support/factory_bot.rb +9 -0
  130. data/test/test_helper.rb +0 -1
  131. data/test/ui/core/boxes/card_test.rb +1 -1
  132. data/test/ui/core/component_test.rb +8 -1
  133. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  134. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  135. data/test/ui/core/forms/buttons/button_refresh_test.rb +1 -1
  136. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  137. data/test/ui/core/forms/choices/choice_group_test.rb +1 -1
  138. data/test/ui/core/forms/dropdowns/dropdown_test.rb +1 -1
  139. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  140. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +1 -1
  141. data/test/ui/core/forms/selects/multi_select_field_test.rb +1 -1
  142. data/test/ui/core/forms/selects/select_field_test.rb +1 -1
  143. data/test/ui/core/forms/surrounds/surround_field_test.rb +3 -3
  144. data/test/ui/core/forms/texts/auto_complete_field_test.rb +2 -2
  145. data/test/ui/core/forms/texts/text_field_test.rb +1 -1
  146. data/test/ui/core/icons/glyph_test.rb +6 -4
  147. data/test/ui/core/icons/star_test.rb +6 -6
  148. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  149. data/test/ui/core/navigations/navbar_test.rb +1 -1
  150. data/test/ui/core/notifications/alert_test.rb +1 -1
  151. data/test/ui/core/notifications/badge_test.rb +2 -2
  152. data/test/ui/ux/containers/panel_test.rb +143 -0
  153. data/test/ui/ux/tables/table_test.rb +3 -3
  154. data/ui_bibz.gemspec +3 -12
  155. data/vendor/assets/javascripts/bootstrap-markdown.js +12 -12
  156. data/vendor/assets/javascripts/jquery-ui.min.js +6 -0
  157. data/vendor/assets/stylesheets/jquery-ui.min.css +6 -0
  158. metadata +63 -27
  159. data/app/inputs/ui_bibz_form/ui_bibz_form_builder.rb +0 -36
  160. data/test/support/factory_girl.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3deff1d05d764047639660407938e5debdf7e394
4
- data.tar.gz: 00705e64fc82f436498c0a3a534966312ef0eb9c
3
+ metadata.gz: 07662ea2bbdb71ec3c7d92bbb7c3beaafd9fc672
4
+ data.tar.gz: 89234714adcd3d87a25fa698725de106e20bd5d3
5
5
  SHA512:
6
- metadata.gz: 2fc9cff6cf4588bfbec3725c83fb7715853fbffc2bc8dc83e9d8de202ebc863f8738834ba805092d433f81705bb3a0139b6d4c0c06bf6e1d3073b5ccad831336
7
- data.tar.gz: beeddee71faecd9265656ba83ff6f77751885966e470b602b4e861c1f652b358ff67c99f83019a7b8a7544ec11d86669152e66162cd15b7f22baa237a9091e33
6
+ metadata.gz: b6e3125f6d110ff18f57ec5f075c53d8c05a50e121b80fe7086e2bb462d7c443019f4f7bf7510cd22775e0b904d102e8925b464480867f3dc91c98ac2cba25eb
7
+ data.tar.gz: e11e9e5bf48a924f9d9cb054a42358ce37886e605cf871113788edbdc2bc1e13f5c7f8b458cba02040a25622aaba158ff70ada998340750e017b1165e5d8ea7c
data/Gemfile CHANGED
@@ -1,12 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # To fix errors with precompile assets
4
- #source 'https://rails-assets.org/' do
5
- # gem 'rails-assets-tether'
6
- # gem 'rails-assets-bootstrap-select'
7
- # gem 'rails-assets-bootstrap-datepicker'
8
- #end
9
-
10
3
  # Declare your gem's dependencies in ui_bibz.gemspec.
11
4
  # Bundler will treat runtime dependencies like base dependencies, and
12
5
  # development dependencies will be added by default to the :development group.
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (2.0.0.beta2.6)
5
- bootstrap (= 4.0.0.beta2)
4
+ ui_bibz (2.0.0)
5
+ bootstrap (= 4.0.0)
6
6
  font-awesome-sass
7
7
  haml
8
8
  haml-rails
@@ -16,68 +16,68 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- actioncable (5.1.4)
20
- actionpack (= 5.1.4)
19
+ actioncable (5.1.5)
20
+ actionpack (= 5.1.5)
21
21
  nio4r (~> 2.0)
22
22
  websocket-driver (~> 0.6.1)
23
- actionmailer (5.1.4)
24
- actionpack (= 5.1.4)
25
- actionview (= 5.1.4)
26
- activejob (= 5.1.4)
23
+ actionmailer (5.1.5)
24
+ actionpack (= 5.1.5)
25
+ actionview (= 5.1.5)
26
+ activejob (= 5.1.5)
27
27
  mail (~> 2.5, >= 2.5.4)
28
28
  rails-dom-testing (~> 2.0)
29
- actionpack (5.1.4)
30
- actionview (= 5.1.4)
31
- activesupport (= 5.1.4)
29
+ actionpack (5.1.5)
30
+ actionview (= 5.1.5)
31
+ activesupport (= 5.1.5)
32
32
  rack (~> 2.0)
33
33
  rack-test (>= 0.6.3)
34
34
  rails-dom-testing (~> 2.0)
35
35
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
36
- actionview (5.1.4)
37
- activesupport (= 5.1.4)
36
+ actionview (5.1.5)
37
+ activesupport (= 5.1.5)
38
38
  builder (~> 3.1)
39
39
  erubi (~> 1.4)
40
40
  rails-dom-testing (~> 2.0)
41
41
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
42
- activejob (5.1.4)
43
- activesupport (= 5.1.4)
42
+ activejob (5.1.5)
43
+ activesupport (= 5.1.5)
44
44
  globalid (>= 0.3.6)
45
- activemodel (5.1.4)
46
- activesupport (= 5.1.4)
47
- activerecord (5.1.4)
48
- activemodel (= 5.1.4)
49
- activesupport (= 5.1.4)
45
+ activemodel (5.1.5)
46
+ activesupport (= 5.1.5)
47
+ activerecord (5.1.5)
48
+ activemodel (= 5.1.5)
49
+ activesupport (= 5.1.5)
50
50
  arel (~> 8.0)
51
- activesupport (5.1.4)
51
+ activesupport (5.1.5)
52
52
  concurrent-ruby (~> 1.0, >= 1.0.2)
53
53
  i18n (~> 0.7)
54
54
  minitest (~> 5.1)
55
55
  tzinfo (~> 1.1)
56
56
  arel (8.0.0)
57
- autoprefixer-rails (7.1.6)
57
+ autoprefixer-rails (8.1.0)
58
58
  execjs
59
59
  awesome_print (1.8.0)
60
- bootstrap (4.0.0.beta2)
60
+ bootstrap (4.0.0)
61
61
  autoprefixer-rails (>= 6.0.3)
62
- popper_js (>= 1.12.3, < 2)
62
+ popper_js (>= 1.12.9, < 2)
63
63
  sass (>= 3.5.2)
64
64
  builder (3.2.3)
65
- byebug (9.1.0)
66
- codeclimate-test-reporter (1.0.8)
67
- simplecov (<= 0.13)
65
+ byebug (10.0.0)
66
+ codeclimate-test-reporter (1.0.7)
67
+ simplecov
68
68
  concurrent-ruby (1.0.5)
69
69
  crass (1.0.3)
70
70
  docile (1.1.5)
71
71
  erubi (1.7.0)
72
72
  erubis (2.7.0)
73
73
  execjs (2.7.0)
74
- factory_girl (4.9.0)
74
+ factory_bot (4.8.2)
75
75
  activesupport (>= 3.0.0)
76
- factory_girl_rails (4.9.0)
77
- factory_girl (~> 4.9.0)
76
+ factory_bot_rails (4.8.2)
77
+ factory_bot (~> 4.8.2)
78
78
  railties (>= 3.0.0)
79
- ffi (1.9.18)
80
- font-awesome-sass (4.7.0)
79
+ ffi (1.9.23)
80
+ font-awesome-sass (5.0.6.2)
81
81
  sass (>= 3.2)
82
82
  globalid (0.4.1)
83
83
  activesupport (>= 4.2.0)
@@ -95,14 +95,14 @@ GEM
95
95
  haml (>= 4.0, < 6)
96
96
  nokogiri (>= 1.6.0)
97
97
  ruby_parser (~> 3.5)
98
- i18n (0.9.1)
98
+ i18n (0.9.5)
99
99
  concurrent-ruby (~> 1.0)
100
100
  jquery-rails (4.3.1)
101
101
  rails-dom-testing (>= 1, < 3)
102
102
  railties (>= 4.2.0)
103
103
  thor (>= 0.14, < 2.0)
104
104
  json (2.1.0)
105
- loofah (2.1.1)
105
+ loofah (2.2.0)
106
106
  crass (~> 1.0.2)
107
107
  nokogiri (>= 1.5.9)
108
108
  mail (2.7.0)
@@ -110,44 +110,44 @@ GEM
110
110
  method_source (0.9.0)
111
111
  mini_mime (1.0.0)
112
112
  mini_portile2 (2.3.0)
113
- minitest (5.10.3)
114
- nio4r (2.1.0)
115
- nokogiri (1.8.1)
113
+ minitest (5.11.3)
114
+ nio4r (2.2.0)
115
+ nokogiri (1.8.2)
116
116
  mini_portile2 (~> 2.3.0)
117
- popper_js (1.12.5)
118
- rack (2.0.3)
119
- rack-test (0.8.2)
117
+ popper_js (1.12.9)
118
+ rack (2.0.4)
119
+ rack-test (0.8.3)
120
120
  rack (>= 1.0, < 3)
121
- rails (5.1.4)
122
- actioncable (= 5.1.4)
123
- actionmailer (= 5.1.4)
124
- actionpack (= 5.1.4)
125
- actionview (= 5.1.4)
126
- activejob (= 5.1.4)
127
- activemodel (= 5.1.4)
128
- activerecord (= 5.1.4)
129
- activesupport (= 5.1.4)
121
+ rails (5.1.5)
122
+ actioncable (= 5.1.5)
123
+ actionmailer (= 5.1.5)
124
+ actionpack (= 5.1.5)
125
+ actionview (= 5.1.5)
126
+ activejob (= 5.1.5)
127
+ activemodel (= 5.1.5)
128
+ activerecord (= 5.1.5)
129
+ activesupport (= 5.1.5)
130
130
  bundler (>= 1.3.0)
131
- railties (= 5.1.4)
131
+ railties (= 5.1.5)
132
132
  sprockets-rails (>= 2.0.0)
133
133
  rails-dom-testing (2.0.3)
134
134
  activesupport (>= 4.2.0)
135
135
  nokogiri (>= 1.6)
136
136
  rails-html-sanitizer (1.0.3)
137
137
  loofah (~> 2.0)
138
- railties (5.1.4)
139
- actionpack (= 5.1.4)
140
- activesupport (= 5.1.4)
138
+ railties (5.1.5)
139
+ actionpack (= 5.1.5)
140
+ activesupport (= 5.1.5)
141
141
  method_source
142
142
  rake (>= 0.8.7)
143
143
  thor (>= 0.18.1, < 2.0)
144
144
  rake (12.3.0)
145
- rb-fsevent (0.10.2)
145
+ rb-fsevent (0.10.3)
146
146
  rb-inotify (0.9.10)
147
147
  ffi (>= 0.5.0, < 2)
148
- ruby_parser (3.10.1)
148
+ ruby_parser (3.11.0)
149
149
  sexp_processor (~> 4.9)
150
- sass (3.5.3)
150
+ sass (3.5.5)
151
151
  sass-listen (~> 4.0.0)
152
152
  sass-listen (4.0.0)
153
153
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -158,11 +158,11 @@ GEM
158
158
  sprockets (>= 2.8, < 4.0)
159
159
  sprockets-rails (>= 2.0, < 4.0)
160
160
  tilt (>= 1.1, < 3)
161
- sexp_processor (4.10.0)
162
- simple_form (3.5.0)
161
+ sexp_processor (4.10.1)
162
+ simple_form (3.5.1)
163
163
  actionpack (> 4, < 5.2)
164
164
  activemodel (> 4, < 5.2)
165
- simplecov (0.13.0)
165
+ simplecov (0.15.1)
166
166
  docile (~> 1.1.0)
167
167
  json (>= 1.8, < 3)
168
168
  simplecov-html (~> 0.10.0)
@@ -179,14 +179,14 @@ GEM
179
179
  thor (0.20.0)
180
180
  thread_safe (0.3.6)
181
181
  tilt (2.0.8)
182
- tzinfo (1.2.4)
182
+ tzinfo (1.2.5)
183
183
  thread_safe (~> 0.1)
184
184
  websocket-driver (0.6.5)
185
185
  websocket-extensions (>= 0.1.0)
186
186
  websocket-extensions (0.1.3)
187
187
  will-paginate-i18n (0.1.15)
188
188
  will_paginate (3.1.6)
189
- will_paginate-bootstrap4 (0.1.3)
189
+ will_paginate-bootstrap4 (0.2.2)
190
190
  will_paginate (~> 3.0, >= 3.0.0)
191
191
 
192
192
  PLATFORMS
@@ -196,7 +196,7 @@ DEPENDENCIES
196
196
  awesome_print
197
197
  byebug
198
198
  codeclimate-test-reporter
199
- factory_girl_rails (~> 4.0)
199
+ factory_bot_rails (~> 4.0)
200
200
  jquery-rails (>= 3.1.0)
201
201
  minitest
202
202
  simple_form
@@ -205,4 +205,4 @@ DEPENDENCIES
205
205
  ui_bibz!
206
206
 
207
207
  BUNDLED WITH
208
- 1.15.4
208
+ 1.16.0
@@ -5,14 +5,19 @@
5
5
  @tooltip()
6
6
  @dropdown()
7
7
  @checkbox()
8
+ @popover()
8
9
 
9
10
  nav: ->
10
11
  $('.nav-tabs a').click (e) ->
11
12
  e.preventDefault()
12
13
  $(this).tab('show')
13
14
 
15
+ popover: ->
16
+ $('[data-toggle="popover"]').popover({ html: true })
17
+
14
18
  tooltip: ->
15
- $('[data-toggle="tooltip"], [title]').tooltip()
19
+ #$('[data-toggle="tooltip"], [title]').tooltip()
20
+ $('[data-toggle="tooltip"]').tooltip()
16
21
 
17
22
  dropdown: ->
18
23
  $('.dropdown-toggle').dropdown()
@@ -1,4 +1,5 @@
1
1
  #= require jquery2
2
+ #= require jquery-ui.min
2
3
 
3
4
  # multi_column_field component
4
5
  #= require jquery.quicksearch.min
@@ -0,0 +1,20 @@
1
+ // Panel
2
+
3
+ $panel-spacer: .75rem !default
4
+ $panel-spacer-y: .75rem !default
5
+ $panel-spacer-x: 1.25rem !default
6
+ $panel-border-width: $border-width !default
7
+ $panel-border-radius: $border-radius !default
8
+ $panel-border-color: rgba($black, .125) !default
9
+ $panel-inner-border-radius: calc(#{$panel-border-radius} - #{$panel-border-width}) !default
10
+ $panel-cap-bg: rgba($black, .03) !default
11
+ $panel-bg: $white !default
12
+
13
+ $panel-img-overlay-padding: 1.25rem !default
14
+
15
+ $panel-group-margin: $panel-spacer/2 !default
16
+ $panel-deck-margin: $panel-group-margin !default
17
+
18
+ $panel-columns-count: 3 !default
19
+ $panel-columns-gap: 1.25rem !default
20
+ $panel-columns-margin: $panel-spacer-y !default
@@ -0,0 +1,314 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .panel {
6
+ margin: 0;
7
+ padding: 0;
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: column;
11
+ min-width: 0;
12
+ word-wrap: break-word;
13
+ background-color: $panel-bg;
14
+ background-clip: border-box;
15
+ border: $panel-border-width solid $panel-border-color;
16
+ @include border-radius($panel-border-radius);
17
+
18
+ > hr {
19
+ margin-right: 0;
20
+ margin-left: 0;
21
+ }
22
+
23
+ > .list-group:first-child {
24
+ .list-group-item:first-child {
25
+ @include border-top-radius($panel-border-radius);
26
+ }
27
+ }
28
+
29
+ > .list-group:last-child {
30
+ .list-group-item:last-child {
31
+ @include border-bottom-radius($panel-border-radius);
32
+ }
33
+ }
34
+
35
+ // Select all panel toolbar except the first
36
+ > .panel-toolbar ~ .panel-toolbar {
37
+ border-top: $panel-border-width solid $panel-border-color;
38
+ border-bottom: $panel-border-width solid $panel-border-color;
39
+ }
40
+
41
+ // Select first panel-toolbar
42
+ > .panel-toolbar {
43
+ border-top: none;
44
+ padding: $panel-spacer;
45
+ background-color: rgba($black, .015);
46
+ border-bottom: $panel-border-width solid $panel-border-color;
47
+ }
48
+
49
+ // Select last panel-toolbar
50
+ > .panel-toolbar:nth-last-child(2), .panel-toolbar:nth-last-child(1){
51
+ border-bottom: none;
52
+ }
53
+ }
54
+
55
+ .panel-body {
56
+ // Enable `flex-grow: 1` for decks and groups so that panel blocks take up
57
+ // as much space as possible, ensuring footers are aligned to the bottom.
58
+ flex: 1 1 auto;
59
+ padding: $panel-spacer;
60
+ }
61
+
62
+ .panel-title {
63
+ margin-bottom: $panel-spacer-y;
64
+ }
65
+
66
+ .panel-subtitle {
67
+ margin-top: -($panel-spacer-y / 2);
68
+ margin-bottom: 0;
69
+ }
70
+
71
+ .panel-text:last-child {
72
+ margin-bottom: 0;
73
+ }
74
+
75
+ .panel-link {
76
+ @include hover {
77
+ text-decoration: none;
78
+ }
79
+
80
+ + .panel-link {
81
+ margin-left: $panel-spacer-x;
82
+ }
83
+ }
84
+
85
+ //
86
+ // Optional textual caps
87
+ //
88
+
89
+ .panel-header {
90
+ padding: $panel-spacer;
91
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
92
+ background-color: $panel-cap-bg;
93
+ border-bottom: $panel-border-width solid $panel-border-color;
94
+ display: flex;
95
+
96
+ div {
97
+ position: relative;
98
+ display: inline-flex;
99
+ vertical-align: middle;
100
+ }
101
+
102
+ &:first-child {
103
+ @include border-radius($panel-inner-border-radius $panel-inner-border-radius 0 0);
104
+ }
105
+
106
+ + .list-group {
107
+ .list-group-item:first-child {
108
+ border-top: 0;
109
+ }
110
+ }
111
+
112
+ .panel-title {
113
+ padding: 0;
114
+ margin: 0;
115
+ }
116
+ }
117
+
118
+
119
+ .panel-footer {
120
+ padding: $panel-spacer-y;
121
+ background-color: $panel-cap-bg;
122
+ border-top: $panel-border-width solid $panel-border-color;
123
+
124
+ &:last-child {
125
+ @include border-radius(0 0 $panel-inner-border-radius $panel-inner-border-radius);
126
+ }
127
+ }
128
+
129
+ .panel-toolbar .btn-toolbar{
130
+ margin: 0;
131
+ }
132
+
133
+ //
134
+ // Header navs
135
+ //
136
+
137
+ .panel-header-tabs {
138
+ margin-right: -($panel-spacer-x / 2);
139
+ margin-bottom: -$panel-spacer-y;
140
+ margin-left: 0;
141
+ border-bottom: 0;
142
+ }
143
+
144
+ .panel-header-pills {
145
+ margin-right: -($panel-spacer-x / 2);
146
+ margin-left: -($panel-spacer-x / 2);
147
+ }
148
+
149
+ // panel image
150
+ .panel-img-overlay {
151
+ position: absolute;
152
+ top: 0;
153
+ right: 0;
154
+ bottom: 0;
155
+ left: 0;
156
+ padding: $panel-img-overlay-padding;
157
+ }
158
+
159
+ .panel-img {
160
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
161
+ @include border-radius($panel-inner-border-radius);
162
+ }
163
+
164
+ // panel image caps
165
+ .panel-img-top {
166
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
167
+ @include border-top-radius($panel-inner-border-radius);
168
+ }
169
+
170
+ .panel-img-bottom {
171
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
172
+ @include border-bottom-radius($panel-inner-border-radius);
173
+ }
174
+
175
+
176
+ // panel deck
177
+
178
+ .panel-deck {
179
+ display: flex;
180
+ padding: $panel-spacer;
181
+ flex-direction: column;
182
+
183
+ & > .panel {
184
+ margin-bottom: $panel-deck-margin;
185
+ }
186
+
187
+ @include media-breakpoint-up(sm) {
188
+ flex-flow: row wrap;
189
+ margin-right: -$panel-deck-margin;
190
+ margin-left: -$panel-deck-margin;
191
+
192
+ & > .panel {
193
+ display: flex;
194
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
195
+ flex: 1 0 0%;
196
+ flex-direction: column;
197
+ margin-right: $panel-deck-margin;
198
+ margin-bottom: 0; // Override the default
199
+ margin-left: $panel-deck-margin;
200
+ }
201
+ }
202
+ }
203
+
204
+
205
+ //
206
+ // panel groups
207
+ //
208
+
209
+ .panel-group {
210
+ display: flex;
211
+ flex-direction: column;
212
+
213
+ .panel {
214
+ border-radius: 0;
215
+ border: none;
216
+ border-right: $panel-border-width solid $panel-border-color;
217
+ margin-bottom: $panel-group-margin;
218
+ }
219
+
220
+ .panel:last-child {
221
+ border-right: none;
222
+ }
223
+
224
+ @include media-breakpoint-up(sm) {
225
+ flex-flow: row wrap;
226
+
227
+ .panel {
228
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
229
+ flex: 1 0 0%;
230
+ margin-bottom: 0;
231
+
232
+ + .panel {
233
+ margin-left: 0;
234
+ border-left: 0;
235
+ }
236
+
237
+
238
+ // Handle rounded corners
239
+ @if $enable-rounded {
240
+ &:first-child {
241
+ @include border-right-radius(0);
242
+
243
+ .panel-img-top,
244
+ .panel-header {
245
+ border-top-right-radius: 0;
246
+ }
247
+ .panel-img-bottom,
248
+ .panel-footer {
249
+ border-bottom-right-radius: 0;
250
+ }
251
+ }
252
+
253
+ &:last-child {
254
+ @include border-left-radius(0);
255
+
256
+ .panel-img-top,
257
+ .panel-header {
258
+ border-top-left-radius: 0;
259
+ }
260
+ .panel-img-bottom,
261
+ .panel-footer {
262
+ border-bottom-left-radius: 0;
263
+ }
264
+ }
265
+
266
+ &:only-child {
267
+ @include border-radius($panel-border-radius);
268
+
269
+ .panel-img-top,
270
+ .panel-header {
271
+ @include border-top-radius($panel-border-radius);
272
+ }
273
+ .panel-img-bottom,
274
+ .panel-footer {
275
+ @include border-bottom-radius($panel-border-radius);
276
+ }
277
+ }
278
+
279
+ &:not(:first-child):not(:last-child):not(:only-child) {
280
+ @include border-radius(0);
281
+
282
+ .panel-img-top,
283
+ .panel-img-bottom,
284
+ .panel-header,
285
+ .panel-footer {
286
+ @include border-radius(0);
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
293
+
294
+
295
+ //
296
+ // Columns
297
+ //
298
+
299
+ .panel-columns {
300
+ padding: $panel-spacer;
301
+ .panel {
302
+ margin-bottom: $panel-columns-margin;
303
+ }
304
+
305
+ @include media-breakpoint-up(sm) {
306
+ column-count: $panel-columns-count;
307
+ column-gap: $panel-columns-gap;
308
+
309
+ .panel {
310
+ display: inline-block; // Don't let them vertically span multiple columns
311
+ width: 100%; // Don't let their width change
312
+ }
313
+ }
314
+ }