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
@@ -24,7 +24,7 @@ class TableTest < ActionView::TestCase
24
24
 
25
25
  test 'table search field' do
26
26
  actual = UiBibz::Ui::Ux::Tables::TableSearchField.new({ store: @users}).render
27
- expected = "<form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-addon\"><i class=\"glyph fa fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><span class=\"input-group-btn clear-search-btn\"><button type=\"button\" class=\"btn btn-secondary\"><i class=\"glyph fa fa-times-circle\"></i></button></span></div></form>"
27
+ expected = "<form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-addon\"><i class=\"glyph fas fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><span class=\"input-group-btn clear-search-btn\"><button type=\"button\" class=\"btn btn-secondary\"><i class=\"glyph fas fa-times-circle\"></i></button></span></div></form>"
28
28
 
29
29
  assert_equal expected, actual
30
30
  end
@@ -88,7 +88,7 @@ class TableTest < ActionView::TestCase
88
88
  test 'table non searchable with a title and glyph' do
89
89
  options = { searchable: false, glyph: 'state', title: 'Title list' }
90
90
  actual = UiBibz::Ui::Ux::Tables::Searchable.new(@store, options).render
91
- expected = "<div><div class=\"title\"><i class=\"glyph fa fa-state\"></i>Title list</div><br class=\"ui-bibz-clear\" /></div>"
91
+ expected = "<div><div class=\"title\"><i class=\"glyph fas fa-state\"></i>Title list</div><br class=\"ui-bibz-clear\" /></div>"
92
92
 
93
93
  assert_equal expected, actual
94
94
  end
@@ -96,7 +96,7 @@ class TableTest < ActionView::TestCase
96
96
  test 'table searchable' do
97
97
  options = { searchable: true }
98
98
  actual = UiBibz::Ui::Ux::Tables::Searchable.new(@store, options).render
99
- expected = "<div><div class=\"title\">Users list</div><form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-addon\"><i class=\"glyph fa fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><span class=\"input-group-btn clear-search-btn\"><button type=\"button\" class=\"btn btn-secondary\"><i class=\"glyph fa fa-times-circle\"></i></button></span></div></form><br class=\"ui-bibz-clear\" /></div>"
99
+ expected = "<div><div class=\"title\">Users list</div><form class=\"form-table-search-field\" action=\"/users?direction=asc&amp;page=1&amp;per_page=2&amp;search=Name+fr&amp;sort=users.name_fr\" accept-charset=\"UTF-8\" method=\"get\"><input name=\"utf8\" type=\"hidden\" value=\"&#x2713;\" /><div class=\"input-group input-group-sm table-search-field\"><span class=\"input-group-addon\"><i class=\"glyph fas fa-search\"></i></span><input type=\"hidden\" name=\"sort\" value=\"users.name_fr\" /><input type=\"hidden\" name=\"direction\" value=\"asc\" /><input type=\"hidden\" name=\"per_page\" value=\"2\" /><input type=\"hidden\" name=\"page\" value=\"1\" /><input type=\"hidden\" name=\"link_type\" value=\"search\" /><input type=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><span class=\"input-group-btn clear-search-btn\"><button type=\"button\" class=\"btn btn-secondary\"><i class=\"glyph fas fa-times-circle\"></i></button></span></div></form><br class=\"ui-bibz-clear\" /></div>"
100
100
 
101
101
  assert_equal expected, actual
102
102
  end
data/ui_bibz.gemspec CHANGED
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.require_paths = ["lib", "vendor"]
27
27
 
28
28
  # Rails gems
29
- #s.add_dependency 'bundler', '>= 1.8.4'
30
29
  s.add_dependency 'rails', '>= 4.2.0'
31
30
  s.add_dependency 'will_paginate', '~> 3.1.0'
32
31
  s.add_dependency 'will-paginate-i18n'
@@ -36,21 +35,13 @@ Gem::Specification.new do |s|
36
35
  s.add_dependency 'haml-rails'
37
36
  s.add_dependency 'sass-rails', '>= 5.0.0'
38
37
  s.add_dependency 'font-awesome-sass'
39
- s.add_dependency 'bootstrap', '4.0.0.beta2'
40
-
41
- # Javascript gems (rails-assets.org)
42
- #s.add_dependency 'rails-assets-tether', '>= 1.1.0'
43
- #s.add_dependency 'rails-assets-bootstrap-select', '>= 1.10.0'
44
- #s.add_dependency 'rails-assets-bootstrap-datepicker', '>= 1.6.0'
45
-
46
- # not compatible with bootstrap 4
47
- #s.add_dependency 'rails-assets-bootstrap-switch', '>= 3.3.2'
48
- #s.add_dependency 'rails-assets-bootstrap-multiselect', '>= 0.9.13'
38
+ s.add_dependency 'bootstrap', '4.0.0'
49
39
 
50
40
  # Development gems
41
+ s.add_development_dependency "simple_form"
51
42
  s.add_development_dependency "minitest"
52
43
  s.add_development_dependency "sqlite3"
53
- s.add_development_dependency "factory_girl_rails", "~> 4.0"
44
+ s.add_development_dependency "factory_bot_rails", "~> 4.0"
54
45
  s.add_development_dependency "simplecov"
55
46
  s.add_development_dependency "codeclimate-test-reporter"
56
47
  end
@@ -959,7 +959,7 @@
959
959
  title: 'Bold',
960
960
  icon: {
961
961
  glyph: 'glyphicon glyphicon-bold',
962
- fa: 'fa fa-bold',
962
+ fa: 'fas fa-bold',
963
963
  'fa-3': 'icon-bold',
964
964
  octicons: 'octicon octicon-bold'
965
965
  },
@@ -995,7 +995,7 @@
995
995
  hotkey: 'Ctrl+I',
996
996
  icon: {
997
997
  glyph: 'glyphicon glyphicon-italic',
998
- fa: 'fa fa-italic',
998
+ fa: 'fas fa-italic',
999
999
  'fa-3': 'icon-italic',
1000
1000
  octicons: 'octicon octicon-italic'
1001
1001
  },
@@ -1031,7 +1031,7 @@
1031
1031
  hotkey: 'Ctrl+H',
1032
1032
  icon: {
1033
1033
  glyph: 'glyphicon glyphicon-header',
1034
- fa: 'fa fa-header',
1034
+ fa: 'fas fa-header',
1035
1035
  'fa-3': 'icon-font',
1036
1036
  octicons: 'octicon octicon-text-size'
1037
1037
  },
@@ -1075,7 +1075,7 @@
1075
1075
  hotkey: 'Ctrl+L',
1076
1076
  icon: {
1077
1077
  glyph: 'glyphicon glyphicon-link',
1078
- fa: 'fa fa-link',
1078
+ fa: 'fas fa-link',
1079
1079
  'fa-3': 'icon-link',
1080
1080
  octicons: 'octicon octicon-link'
1081
1081
  },
@@ -1112,7 +1112,7 @@
1112
1112
  hotkey: 'Ctrl+G',
1113
1113
  icon: {
1114
1114
  glyph: 'glyphicon glyphicon-picture',
1115
- fa: 'fa fa-picture-o',
1115
+ fa: 'fas fa-picture-o',
1116
1116
  'fa-3': 'icon-picture',
1117
1117
  octicons: 'octicon octicon-file-media'
1118
1118
  },
@@ -1155,7 +1155,7 @@
1155
1155
  title: 'Unordered List',
1156
1156
  icon: {
1157
1157
  glyph: 'glyphicon glyphicon-list',
1158
- fa: 'fa fa-list',
1158
+ fa: 'fas fa-list',
1159
1159
  'fa-3': 'icon-list-ul',
1160
1160
  octicons: 'octicon octicon-list-unordered'
1161
1161
  },
@@ -1206,7 +1206,7 @@
1206
1206
  title: 'Ordered List',
1207
1207
  icon: {
1208
1208
  glyph: 'glyphicon glyphicon-th-list',
1209
- fa: 'fa fa-list-ol',
1209
+ fa: 'fas fa-list-ol',
1210
1210
  'fa-3': 'icon-list-ol',
1211
1211
  octicons: 'octicon octicon-list-ordered'
1212
1212
  },
@@ -1257,7 +1257,7 @@
1257
1257
  title: 'Code',
1258
1258
  icon: {
1259
1259
  glyph: 'glyphicon glyphicon-asterisk',
1260
- fa: 'fa fa-code',
1260
+ fa: 'fas fa-code',
1261
1261
  'fa-3': 'icon-code',
1262
1262
  octicons: 'octicon octicon-code'
1263
1263
  },
@@ -1301,7 +1301,7 @@
1301
1301
  title: 'Quote',
1302
1302
  icon: {
1303
1303
  glyph: 'glyphicon glyphicon-comment',
1304
- fa: 'fa fa-quote-left',
1304
+ fa: 'fas fa-quote-left',
1305
1305
  'fa-3': 'icon-quote-left',
1306
1306
  octicons: 'octicon octicon-quote'
1307
1307
  },
@@ -1359,7 +1359,7 @@
1359
1359
  btnClass: 'btn btn-primary btn-sm',
1360
1360
  icon: {
1361
1361
  glyph: 'glyphicon glyphicon-search',
1362
- fa: 'fa fa-search',
1362
+ fa: 'fas fa-search',
1363
1363
  'fa-3': 'icon-search',
1364
1364
  octicons: 'octicon octicon-search'
1365
1365
  },
@@ -1387,13 +1387,13 @@
1387
1387
  enable: true,
1388
1388
  icons: {
1389
1389
  fullscreenOn: {
1390
- fa: 'fa fa-expand',
1390
+ fa: 'fas fa-expand',
1391
1391
  glyph: 'glyphicon glyphicon-fullscreen',
1392
1392
  'fa-3': 'icon-resize-full',
1393
1393
  octicons: 'octicon octicon-link-external'
1394
1394
  },
1395
1395
  fullscreenOff: {
1396
- fa: 'fa fa-compress',
1396
+ fa: 'fas fa-compress',
1397
1397
  glyph: 'glyphicon glyphicon-fullscreen',
1398
1398
  'fa-3': 'icon-resize-small',
1399
1399
  octicons: 'octicon octicon-browser'
@@ -0,0 +1,6 @@
1
+ /*! jQuery UI - v1.12.1 - 2017-12-21
2
+ * http://jqueryui.com
3
+ * Includes: widget.js, disable-selection.js, widgets/resizable.js, widgets/mouse.js
4
+ * Copyright jQuery Foundation and other contributors; Licensed MIT */
5
+
6
+ (function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e=0,i=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},h=e.split(".")[0];e=e.split(".")[1];var l=h+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][l.toLowerCase()]=function(e){return!!t.data(e,l)},t[h]=t[h]||{},n=t[h][e],o=t[h][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:h,widgetName:e,widgetFullName:l}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var s,n,o=i.call(arguments,1),a=0,r=o.length;r>a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),h=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(h=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(h=i&&i.jquery?h.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):h=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),h}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+o.eventNamespace,c=h[2];c?n.on(l,c,r):i.on(l,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var s=!1;t(document).on("mouseup",function(){s=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!s){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,o="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return n&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),s=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,s=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,h=this._change[o];return this._updatePrevProperties(),h?(i=h.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,h,l=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,h=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(a,{top:h,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,h=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&l&&(t.left=r-e.minWidth),s&&l&&(t.left=r-e.maxWidth),a&&c&&(t.top=h-e.minHeight),n&&c&&(t.top=h-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-a},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,h=t(this).resizable("instance"),l=h.options,c=h.element,u=l.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(h.containerElement=t(d),/document/.test(u)||u===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=h._num(e.css("padding"+s))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=h.containerOffset,n=h.containerSize.height,o=h.containerSize.width,a=h._hasScroll(d,"left")?d.scrollWidth:o,r=h._hasScroll(d)?d.scrollHeight:n,h.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,h=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-h.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?h.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-h.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-h.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),h=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};t(n.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,h="number"==typeof s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,c=h[1]||1,u=Math.round((n.width-o.width)/l)*l,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,m=s.maxWidth&&p>s.maxWidth,g=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.minHeight&&s.minHeight>f;s.grid=h,_&&(p+=l),v&&(f+=c),m&&(p-=l),g&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-l)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-l>0?(i.size.width=p,i.position.left=a.left-u):(p=l-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable});
@@ -0,0 +1,6 @@
1
+ /*! jQuery UI - v1.12.1 - 2017-12-21
2
+ * http://jqueryui.com
3
+ * Includes: core.css, resizable.css
4
+ * Copyright jQuery Foundation and other contributors; Licensed MIT */
5
+
6
+ .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta2.6
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2018-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -142,14 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 4.0.0.beta2
145
+ version: 4.0.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 4.0.0.beta2
152
+ version: 4.0.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: simple_form
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: minitest
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +193,7 @@ dependencies:
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
- name: factory_girl_rails
196
+ name: factory_bot_rails
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - "~>"
@@ -242,28 +256,19 @@ files:
242
256
  - app/assets/javascripts/jquery.multi-select-extend.coffee
243
257
  - app/assets/javascripts/table.coffee
244
258
  - app/assets/javascripts/ui_bibz.coffee
259
+ - app/assets/stylesheets/_custom_variables.sass
260
+ - app/assets/stylesheets/_panel.scss
245
261
  - app/assets/stylesheets/bootstrap-switch.sass
262
+ - app/assets/stylesheets/boxes.sass
263
+ - app/assets/stylesheets/containers.sass
246
264
  - app/assets/stylesheets/fix-bootstrap-4.sass
247
265
  - app/assets/stylesheets/fix-dropdown-select.sass
248
- - app/assets/stylesheets/table.sass
266
+ - app/assets/stylesheets/fix_addon.sass
267
+ - app/assets/stylesheets/forms.sass
268
+ - app/assets/stylesheets/navigations.sass
269
+ - app/assets/stylesheets/notifications.sass
270
+ - app/assets/stylesheets/tables.sass
249
271
  - app/assets/stylesheets/ui_bibz.sass
250
- - app/inputs/ui_bibz_form/ui_bibz_form_builder.rb
251
- - app/inputs/ui_bibz_inputs/auto_complete_field_input.rb
252
- - app/inputs/ui_bibz_inputs/base_input.rb
253
- - app/inputs/ui_bibz_inputs/collection_input.rb
254
- - app/inputs/ui_bibz_inputs/string_input.rb
255
- - app/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb
256
- - app/inputs/ui_bibz_inputs/ui_choice_group_input.rb
257
- - app/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb
258
- - app/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb
259
- - app/inputs/ui_bibz_inputs/ui_formula_field_input.rb
260
- - app/inputs/ui_bibz_inputs/ui_markdown_editor_field_input.rb
261
- - app/inputs/ui_bibz_inputs/ui_multi_column_field_input.rb
262
- - app/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb
263
- - app/inputs/ui_bibz_inputs/ui_radio_field_input.rb
264
- - app/inputs/ui_bibz_inputs/ui_select_field_input.rb
265
- - app/inputs/ui_bibz_inputs/ui_switch_field_input.rb
266
- - app/inputs/ui_bibz_inputs/ui_text_field_input.rb
267
272
  - config/initializers/ui_bibz.rb
268
273
  - config/initializers/will_paginate.rb
269
274
  - config/locales/en.yml
@@ -282,6 +287,24 @@ files:
282
287
  - lib/ui_bibz/helpers/ui/core_helper.rb
283
288
  - lib/ui_bibz/helpers/ui/ux_helper.rb
284
289
  - lib/ui_bibz/helpers/utils_helper.rb
290
+ - lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb
291
+ - lib/ui_bibz/inputs/ui_bibz_inputs/auto_complete_field_input.rb
292
+ - lib/ui_bibz/inputs/ui_bibz_inputs/base_input.rb
293
+ - lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb
294
+ - lib/ui_bibz/inputs/ui_bibz_inputs/string_input.rb
295
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb
296
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_choice_group_input.rb
297
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb
298
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb
299
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_formula_field_input.rb
300
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_markdown_editor_field_input.rb
301
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_multi_column_field_input.rb
302
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb
303
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_number_field_input.rb
304
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_radio_field_input.rb
305
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_select_field_input.rb
306
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_switch_field_input.rb
307
+ - lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
285
308
  - lib/ui_bibz/rails/engine.rb
286
309
  - lib/ui_bibz/ui/base.rb
287
310
  - lib/ui_bibz/ui/core/boxes/card.rb
@@ -316,6 +339,7 @@ files:
316
339
  - lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb
317
340
  - lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb
318
341
  - lib/ui_bibz/ui/core/forms/numbers/formula_field.rb
342
+ - lib/ui_bibz/ui/core/forms/numbers/number_field.rb
319
343
  - lib/ui_bibz/ui/core/forms/selects/abstract_select.rb
320
344
  - lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb
321
345
  - lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb
@@ -375,6 +399,14 @@ files:
375
399
  - lib/ui_bibz/ui/extensions/core/component/klass_extension.rb
376
400
  - lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb
377
401
  - lib/ui_bibz/ui/extensions/core/forms/surround_extension.rb
402
+ - lib/ui_bibz/ui/ux/containers/components/panel_body.rb
403
+ - lib/ui_bibz/ui/ux/containers/components/panel_column.rb
404
+ - lib/ui_bibz/ui/ux/containers/components/panel_deck.rb
405
+ - lib/ui_bibz/ui/ux/containers/components/panel_footer.rb
406
+ - lib/ui_bibz/ui/ux/containers/components/panel_group.rb
407
+ - lib/ui_bibz/ui/ux/containers/components/panel_header.rb
408
+ - lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb
409
+ - lib/ui_bibz/ui/ux/containers/panel.rb
378
410
  - lib/ui_bibz/ui/ux/tables/components/actions.rb
379
411
  - lib/ui_bibz/ui/ux/tables/components/as.rb
380
412
  - lib/ui_bibz/ui/ux/tables/components/column.rb
@@ -449,7 +481,7 @@ files:
449
481
  - test/factories/user.rb
450
482
  - test/simple_form_test.rb
451
483
  - test/store_test.rb
452
- - test/support/factory_girl.rb
484
+ - test/support/factory_bot.rb
453
485
  - test/test_helper.rb
454
486
  - test/ui/core/boxes/card_test.rb
455
487
  - test/ui/core/boxes/jumbotron_test.rb
@@ -489,6 +521,7 @@ files:
489
521
  - test/ui/core/notifications/badge_test.rb
490
522
  - test/ui/core/notifications/progress_bar_test.rb
491
523
  - test/ui/core/windows/modal_test.rb
524
+ - test/ui/ux/containers/panel_test.rb
492
525
  - test/ui/ux/tables/table_test.rb
493
526
  - test/ui_bibz_test.rb
494
527
  - ui_bibz.gemspec
@@ -500,6 +533,7 @@ files:
500
533
  - vendor/assets/javascripts/bootstrap-select.min.js
501
534
  - vendor/assets/javascripts/bootstrap-switch.min.js
502
535
  - vendor/assets/javascripts/jquery-2.1.4.min.js
536
+ - vendor/assets/javascripts/jquery-ui.min.js
503
537
  - vendor/assets/javascripts/jquery.multi-select.min.js
504
538
  - vendor/assets/javascripts/jquery.quicksearch.min.js
505
539
  - vendor/assets/javascripts/marked.js
@@ -512,6 +546,7 @@ files:
512
546
  - vendor/assets/stylesheets/bootstrap-select.min.css
513
547
  - vendor/assets/stylesheets/bootstrap-switch.min.css
514
548
  - vendor/assets/stylesheets/bootstrap-theme.min.css
549
+ - vendor/assets/stylesheets/jquery-ui.min.css
515
550
  - vendor/assets/stylesheets/jquery.multi-select.min.css
516
551
  - vendor/assets/stylesheets/tether.min.css
517
552
  homepage: http://thooams.github.io/Ui-Bibz/
@@ -530,9 +565,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
530
565
  version: '2.0'
531
566
  required_rubygems_version: !ruby/object:Gem::Requirement
532
567
  requirements:
533
- - - ">"
568
+ - - ">="
534
569
  - !ruby/object:Gem::Version
535
- version: 1.3.1
570
+ version: '0'
536
571
  requirements: []
537
572
  rubyforge_project:
538
573
  rubygems_version: 2.6.11
@@ -596,7 +631,7 @@ test_files:
596
631
  - test/factories/user.rb
597
632
  - test/simple_form_test.rb
598
633
  - test/store_test.rb
599
- - test/support/factory_girl.rb
634
+ - test/support/factory_bot.rb
600
635
  - test/test_helper.rb
601
636
  - test/ui/core/boxes/card_test.rb
602
637
  - test/ui/core/boxes/jumbotron_test.rb
@@ -636,5 +671,6 @@ test_files:
636
671
  - test/ui/core/notifications/badge_test.rb
637
672
  - test/ui/core/notifications/progress_bar_test.rb
638
673
  - test/ui/core/windows/modal_test.rb
674
+ - test/ui/ux/containers/panel_test.rb
639
675
  - test/ui/ux/tables/table_test.rb
640
676
  - test/ui_bibz_test.rb
@@ -1,36 +0,0 @@
1
- module UiBibzForm
2
- class UiBibzFormBuilder < SimpleForm::FormBuilder
3
- include ActionView::Helpers::TagHelper
4
- include ActionView::Helpers::TextHelper
5
- include UiBibz::Utils
6
-
7
- attr_accessor :output_buffer
8
-
9
- def ui_surround_field content = nil, opts = nil, html_options = nil, &block
10
- content = (options || {}).merge(content || {})
11
- content = content.merge(template: @template, form: self)
12
-
13
- input_classes = UiBibz::Utils::Screwdriver.join_classes('form-group', 'surround_field', options[:input_html].try(:[], :class))
14
- wrapper_html = (options[:input_html] || {}).merge({ class: input_classes })
15
-
16
- content_tag :div, wrapper_html do
17
- concat content_tag(:label, content[:label]) unless content[:label].nil?
18
- concat UiBibz::Ui::Core::Forms::Surrounds::SurroundField.new(content, opts, html_options).tap(&block).render
19
- end
20
- end
21
-
22
- def ui_button_group content = nil, opts = nil, html_options = nil, &block
23
- content = (options || {}).merge(content || {})
24
- content = content.merge(template: @template, form: self)
25
-
26
- input_classes = UiBibz::Utils::Screwdriver.join_classes('button_group', options[:input_html].try(:[], :class))
27
- wrapper_html = (options[:input_html] || {}).merge({ class: input_classes })
28
-
29
- content_tag :div, wrapper_html do
30
- concat content_tag(:label, content[:label]) unless content[:label].nil?
31
- concat UiBibz::Ui::Core::Forms::Buttons::ButtonGroup.new(content, opts, html_options).tap(&block).render
32
- end
33
- end
34
-
35
- end
36
- end
@@ -1,6 +0,0 @@
1
- require 'factory_girl'
2
- FactoryGirl.find_definitions
3
- # for Spec expectation style
4
- class MiniTest::Test
5
- include FactoryGirl::Syntax::Methods
6
- end