ui_bibz 2.0.0.alpha32 → 2.0.0.beta2

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 (160) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +111 -87
  4. data/app/assets/javascripts/form.coffee +24 -8
  5. data/app/assets/javascripts/ui_bibz.coffee +3 -2
  6. data/app/assets/stylesheets/bootstrap-switch.sass +17 -8
  7. data/app/assets/stylesheets/fix-dropdown-select.sass +1 -1
  8. data/app/assets/stylesheets/table.sass +1 -1
  9. data/app/assets/stylesheets/ui_bibz.sass +60 -22
  10. data/app/inputs/ui_bibz_form/ui_bibz_form_builder.rb +35 -0
  11. data/app/inputs/ui_bibz_inputs/auto_complete_field_input.rb +14 -0
  12. data/app/inputs/{custom_inputs → ui_bibz_inputs}/base_input.rb +7 -1
  13. data/app/inputs/{custom_inputs → ui_bibz_inputs}/collection_input.rb +6 -3
  14. data/app/inputs/{custom_inputs → ui_bibz_inputs}/string_input.rb +5 -1
  15. data/app/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb +14 -0
  16. data/app/inputs/ui_bibz_inputs/ui_button_choices_input.rb +20 -0
  17. data/app/inputs/{custom_inputs/date_picker_field_input.rb → ui_bibz_inputs/ui_date_picker_field_input.rb} +2 -2
  18. data/app/inputs/{custom_inputs/dropdown_select_field_input.rb → ui_bibz_inputs/ui_dropdown_select_field_input.rb} +2 -2
  19. data/app/inputs/{custom_inputs/formula_field_input.rb → ui_bibz_inputs/ui_formula_field_input.rb} +2 -2
  20. data/app/inputs/{custom_inputs/markdown_editor_field_input.rb → ui_bibz_inputs/ui_markdown_editor_field_input.rb} +2 -2
  21. data/app/inputs/{custom_inputs/multi_column_field_input.rb → ui_bibz_inputs/ui_multi_column_field_input.rb} +2 -2
  22. data/app/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +9 -0
  23. data/app/inputs/{custom_inputs/radio_field_input.rb → ui_bibz_inputs/ui_radio_field_input.rb} +2 -2
  24. data/app/inputs/{custom_inputs/select_field_input.rb → ui_bibz_inputs/ui_select_field_input.rb} +2 -2
  25. data/app/inputs/{custom_inputs/switch_field_input.rb → ui_bibz_inputs/ui_switch_field_input.rb} +2 -2
  26. data/app/inputs/ui_bibz_inputs/ui_text_field_input.rb +13 -0
  27. data/config/initializers/ui_bibz.rb +7 -0
  28. data/lib/ui_bibz/helpers/ui/core/cards_helper.rb +42 -0
  29. data/lib/ui_bibz/helpers/ui/core/dropdowns_helper.rb +21 -0
  30. data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +148 -0
  31. data/lib/ui_bibz/helpers/ui/core/layouts_helper.rb +27 -0
  32. data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +11 -0
  33. data/lib/ui_bibz/helpers/ui/core/navs_helper.rb +27 -0
  34. data/lib/ui_bibz/helpers/ui/core/paths_helper.rb +16 -0
  35. data/lib/ui_bibz/helpers/ui/core/windows_helper.rb +11 -0
  36. data/lib/ui_bibz/helpers/ui/core_helper.rb +89 -0
  37. data/lib/ui_bibz/helpers/{ui_ux_helper.rb → ui/ux_helper.rb} +8 -18
  38. data/lib/ui_bibz/helpers/utils_helper.rb +22 -1
  39. data/lib/ui_bibz/rails/engine.rb +6 -2
  40. data/lib/ui_bibz/ui/base.rb +4 -0
  41. data/lib/ui_bibz/ui/core/{tag.rb → badge.rb} +10 -10
  42. data/lib/ui_bibz/ui/core/cards/card.rb +37 -13
  43. data/lib/ui_bibz/ui/core/cards/components/{block/card_block_link.rb → body/card_body_link.rb} +6 -6
  44. data/lib/ui_bibz/ui/core/cards/components/{block/card_block_text.rb → body/card_body_text.rb} +6 -6
  45. data/lib/ui_bibz/ui/core/cards/components/{block/card_block_title.rb → body/card_body_title.rb} +6 -6
  46. data/lib/ui_bibz/ui/core/cards/components/{card_block.rb → card_body.rb} +17 -13
  47. data/lib/ui_bibz/ui/core/cards/components/card_footer.rb +5 -1
  48. data/lib/ui_bibz/ui/core/cards/components/card_header.rb +5 -1
  49. data/lib/ui_bibz/ui/core/cards/components/card_image.rb +3 -2
  50. data/lib/ui_bibz/ui/core/component.rb +8 -6
  51. data/lib/ui_bibz/ui/core/dropdowns/dropdown.rb +21 -5
  52. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +37 -8
  53. data/lib/ui_bibz/ui/core/forms/buttons/button_choice.rb +17 -29
  54. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +51 -11
  55. data/lib/ui_bibz/ui/core/forms/buttons/button_link.rb +18 -5
  56. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +13 -4
  57. data/lib/ui_bibz/ui/core/forms/buttons/button_toolbar.rb +90 -0
  58. data/lib/ui_bibz/ui/core/forms/buttons/components/choice.rb +116 -0
  59. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +21 -8
  60. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +22 -9
  61. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +17 -5
  62. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +36 -16
  63. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +20 -19
  64. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +99 -0
  65. data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +16 -16
  66. data/lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb +8 -13
  67. data/lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb +17 -18
  68. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +8 -20
  69. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +25 -0
  70. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +16 -0
  71. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_group.rb +16 -0
  72. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +16 -0
  73. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +16 -0
  74. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_checkbox_field.rb +16 -0
  75. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb +16 -0
  76. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_radio_field.rb +16 -0
  77. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_switch_field.rb +16 -0
  78. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +153 -0
  79. data/lib/ui_bibz/ui/core/forms/texts/auto_complete_field.rb +13 -38
  80. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +81 -0
  81. data/lib/ui_bibz/ui/core/glyph.rb +1 -1
  82. data/lib/ui_bibz/ui/core/layouts/col.rb +10 -2
  83. data/lib/ui_bibz/ui/core/layouts/row.rb +7 -1
  84. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +4 -2
  85. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +5 -2
  86. data/lib/ui_bibz/ui/core/lists/components/list.rb +35 -14
  87. data/lib/ui_bibz/ui/core/lists/list_group.rb +4 -4
  88. data/lib/ui_bibz/ui/core/navs/components/navbar_form.rb +7 -2
  89. data/lib/ui_bibz/ui/core/navs/components/navbar_nav.rb +4 -0
  90. data/lib/ui_bibz/ui/core/navs/components/navbar_text.rb +1 -1
  91. data/lib/ui_bibz/ui/core/navs/components/pagination_link.rb +60 -0
  92. data/lib/ui_bibz/ui/core/navs/nav.rb +31 -3
  93. data/lib/ui_bibz/ui/core/navs/navbar.rb +32 -22
  94. data/lib/ui_bibz/ui/core/navs/pagination.rb +97 -0
  95. data/lib/ui_bibz/ui/core/{alert.rb → notifications/alert.rb} +23 -11
  96. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +50 -0
  97. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +67 -0
  98. data/lib/ui_bibz/ui/core/{progress.rb → progresses/components/bar.rb} +21 -28
  99. data/lib/ui_bibz/ui/core/progresses/progress_bar.rb +115 -0
  100. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -1
  101. data/lib/ui_bibz/ui/{core → extensions/core}/component/glyph_extension.rb +2 -2
  102. data/lib/ui_bibz/ui/{core → extensions/core}/component/klass_extension.rb +1 -2
  103. data/lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb +31 -0
  104. data/lib/ui_bibz/ui/extensions/core/forms/surround_extension.rb +48 -0
  105. data/lib/ui_bibz/utils/internationalization.rb +9 -0
  106. data/lib/ui_bibz/version.rb +1 -1
  107. data/lib/ui_bibz.rb +23 -7
  108. data/test/simple_form_test.rb +58 -41
  109. data/test/ui/core/badge_test.rb +19 -0
  110. data/test/ui/core/cards/card_test.rb +34 -35
  111. data/test/ui/{component_test.rb → core/component_test.rb} +0 -1
  112. data/test/ui/core/dropdowns/dropdown_test.rb +5 -5
  113. data/test/ui/core/forms/buttons/button_choice_test.rb +23 -7
  114. data/test/ui/core/forms/buttons/button_group_test.rb +35 -17
  115. data/test/ui/core/forms/buttons/button_link_test.rb +74 -4
  116. data/test/ui/core/forms/buttons/button_refresh_test.rb +1 -2
  117. data/test/ui/core/forms/buttons/button_test.rb +66 -3
  118. data/test/ui/core/forms/choices/checkbox_field_test.rb +1 -2
  119. data/test/ui/core/forms/choices/radio_field_test.rb +1 -2
  120. data/test/ui/core/forms/choices/switch_field_test.rb +0 -1
  121. data/test/ui/core/forms/dates/date_picker_field_test.rb +2 -3
  122. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -2
  123. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +1 -2
  124. data/test/ui/core/forms/selects/multi_column_field_test.rb +0 -1
  125. data/test/ui/core/forms/selects/multi_select_field_test.rb +1 -2
  126. data/test/ui/core/forms/selects/select_field_test.rb +1 -2
  127. data/test/ui/core/forms/surrounds/surround_field_test.rb +58 -0
  128. data/test/ui/core/forms/textareas/markdown_editor_field_test.rb +0 -1
  129. data/test/ui/core/forms/texts/auto_complete_field_test.rb +21 -4
  130. data/test/ui/core/forms/texts/text_field_test.rb +25 -0
  131. data/test/ui/{glyph_test.rb → core/glyph_test.rb} +5 -5
  132. data/test/ui/core/jumbotron_test.rb +20 -0
  133. data/test/ui/core/layouts/col_test.rb +31 -0
  134. data/test/ui/core/layouts/container_test.rb +13 -0
  135. data/test/ui/core/layouts/row_test.rb +24 -0
  136. data/test/ui/core/lists/list_group_test.rb +5 -4
  137. data/test/ui/core/navs/nav_test.rb +4 -5
  138. data/test/ui/core/navs/navbar_test.rb +39 -0
  139. data/test/ui/core/notifications/alert_test.rb +22 -0
  140. data/test/ui/core/paths/breadcrumb_test.rb +15 -4
  141. data/test/ui/core/progress_test.rb +14 -0
  142. data/test/ui/{star_test.rb → core/star_test.rb} +6 -7
  143. data/test/ui/core/windows/modal_test.rb +20 -0
  144. data/test/ui/ux/tables/table_test.rb +2 -3
  145. data/ui_bibz.gemspec +2 -1
  146. data/vendor/assets/javascripts/bootstrap-select.min.js +8 -7
  147. data/vendor/assets/stylesheets/awesome-bootstrap-checkbox.scss +62 -42
  148. data/vendor/assets/stylesheets/bootstrap-multiselect.min.css +1 -1
  149. data/vendor/assets/stylesheets/bootstrap-select.min.css +3 -3
  150. data/vendor/assets/stylesheets/bootstrap-theme.min.css +1 -1
  151. metadata +105 -44
  152. data/app/inputs/custom_inputs/auto_complete_field_input.rb +0 -16
  153. data/app/inputs/custom_inputs/multi_select_field_input.rb +0 -9
  154. data/app/inputs/custom_inputs/surround_field_input.rb +0 -10
  155. data/lib/ui_bibz/helpers/ui_core_helper.rb +0 -347
  156. data/lib/ui_bibz/ui/core/connected_component.rb +0 -87
  157. data/lib/ui_bibz/ui/core/forms/texts/surround_field.rb +0 -87
  158. data/test/ui/core/forms/texts/surround_field_test.rb +0 -26
  159. data/test/ui/grid_test.rb +0 -31
  160. data/test/ui_helper_test.rb +0 -109
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.alpha32
4
+ version: 2.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jquery-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 3.1.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 3.1.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: haml-rails
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +142,14 @@ dependencies:
128
142
  requirements:
129
143
  - - '='
130
144
  - !ruby/object:Gem::Version
131
- version: 4.0.0.alpha5
145
+ version: 4.0.0.beta2
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - '='
137
151
  - !ruby/object:Gem::Version
138
- version: 4.0.0.alpha5
152
+ version: 4.0.0.beta2
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: minitest
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -233,49 +247,58 @@ files:
233
247
  - app/assets/stylesheets/fix-dropdown-select.sass
234
248
  - app/assets/stylesheets/table.sass
235
249
  - app/assets/stylesheets/ui_bibz.sass
236
- - app/inputs/custom_inputs/auto_complete_field_input.rb
237
- - app/inputs/custom_inputs/base_input.rb
238
- - app/inputs/custom_inputs/collection_input.rb
239
- - app/inputs/custom_inputs/date_picker_field_input.rb
240
- - app/inputs/custom_inputs/dropdown_select_field_input.rb
241
- - app/inputs/custom_inputs/formula_field_input.rb
242
- - app/inputs/custom_inputs/markdown_editor_field_input.rb
243
- - app/inputs/custom_inputs/multi_column_field_input.rb
244
- - app/inputs/custom_inputs/multi_select_field_input.rb
245
- - app/inputs/custom_inputs/radio_field_input.rb
246
- - app/inputs/custom_inputs/select_field_input.rb
247
- - app/inputs/custom_inputs/string_input.rb
248
- - app/inputs/custom_inputs/surround_field_input.rb
249
- - app/inputs/custom_inputs/switch_field_input.rb
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_button_choices_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
+ - config/initializers/ui_bibz.rb
250
268
  - config/initializers/will_paginate.rb
251
269
  - config/locales/en.yml
252
270
  - config/locales/fr.yml
253
271
  - lib/tasks/ui_bibz_tasks.rake
254
272
  - lib/ui_bibz.rb
255
273
  - lib/ui_bibz/concerns/models/searchable.rb
256
- - lib/ui_bibz/helpers/ui_core_helper.rb
257
- - lib/ui_bibz/helpers/ui_ux_helper.rb
274
+ - lib/ui_bibz/helpers/ui/core/cards_helper.rb
275
+ - lib/ui_bibz/helpers/ui/core/dropdowns_helper.rb
276
+ - lib/ui_bibz/helpers/ui/core/forms_helper.rb
277
+ - lib/ui_bibz/helpers/ui/core/layouts_helper.rb
278
+ - lib/ui_bibz/helpers/ui/core/lists_helper.rb
279
+ - lib/ui_bibz/helpers/ui/core/navs_helper.rb
280
+ - lib/ui_bibz/helpers/ui/core/paths_helper.rb
281
+ - lib/ui_bibz/helpers/ui/core/windows_helper.rb
282
+ - lib/ui_bibz/helpers/ui/core_helper.rb
283
+ - lib/ui_bibz/helpers/ui/ux_helper.rb
258
284
  - lib/ui_bibz/helpers/utils_helper.rb
259
285
  - lib/ui_bibz/rails/engine.rb
260
286
  - lib/ui_bibz/ui/base.rb
261
- - lib/ui_bibz/ui/core/alert.rb
287
+ - lib/ui_bibz/ui/core/badge.rb
262
288
  - lib/ui_bibz/ui/core/breadcrumb.rb
263
289
  - lib/ui_bibz/ui/core/cards/card.rb
264
290
  - lib/ui_bibz/ui/core/cards/card_column.rb
265
291
  - lib/ui_bibz/ui/core/cards/card_deck.rb
266
292
  - lib/ui_bibz/ui/core/cards/card_group.rb
267
- - lib/ui_bibz/ui/core/cards/components/block/card_block_link.rb
268
- - lib/ui_bibz/ui/core/cards/components/block/card_block_text.rb
269
- - lib/ui_bibz/ui/core/cards/components/block/card_block_title.rb
270
- - lib/ui_bibz/ui/core/cards/components/card_block.rb
293
+ - lib/ui_bibz/ui/core/cards/components/body/card_body_link.rb
294
+ - lib/ui_bibz/ui/core/cards/components/body/card_body_text.rb
295
+ - lib/ui_bibz/ui/core/cards/components/body/card_body_title.rb
296
+ - lib/ui_bibz/ui/core/cards/components/card_body.rb
271
297
  - lib/ui_bibz/ui/core/cards/components/card_footer.rb
272
298
  - lib/ui_bibz/ui/core/cards/components/card_header.rb
273
299
  - lib/ui_bibz/ui/core/cards/components/card_image.rb
274
300
  - lib/ui_bibz/ui/core/cards/components/card_list_group.rb
275
301
  - lib/ui_bibz/ui/core/component.rb
276
- - lib/ui_bibz/ui/core/component/glyph_extension.rb
277
- - lib/ui_bibz/ui/core/component/klass_extension.rb
278
- - lib/ui_bibz/ui/core/connected_component.rb
279
302
  - lib/ui_bibz/ui/core/dropdowns/components/dropdown_divider.rb
280
303
  - lib/ui_bibz/ui/core/dropdowns/components/dropdown_header.rb
281
304
  - lib/ui_bibz/ui/core/dropdowns/components/dropdown_link.rb
@@ -286,18 +309,31 @@ files:
286
309
  - lib/ui_bibz/ui/core/forms/buttons/button_group.rb
287
310
  - lib/ui_bibz/ui/core/forms/buttons/button_link.rb
288
311
  - lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb
312
+ - lib/ui_bibz/ui/core/forms/buttons/button_toolbar.rb
313
+ - lib/ui_bibz/ui/core/forms/buttons/components/choice.rb
289
314
  - lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb
290
315
  - lib/ui_bibz/ui/core/forms/choices/radio_field.rb
291
316
  - lib/ui_bibz/ui/core/forms/choices/switch_field.rb
292
317
  - lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb
293
318
  - lib/ui_bibz/ui/core/forms/numbers/formula_field.rb
319
+ - lib/ui_bibz/ui/core/forms/selects/abstract_select.rb
294
320
  - lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb
295
321
  - lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb
296
322
  - lib/ui_bibz/ui/core/forms/selects/multi_select_field.rb
297
323
  - lib/ui_bibz/ui/core/forms/selects/select_field.rb
324
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb
325
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb
326
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_group.rb
327
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb
328
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb
329
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_checkbox_field.rb
330
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_dropdown.rb
331
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_radio_field.rb
332
+ - lib/ui_bibz/ui/core/forms/surrounds/components/surround_switch_field.rb
333
+ - lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb
298
334
  - lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb
299
335
  - lib/ui_bibz/ui/core/forms/texts/auto_complete_field.rb
300
- - lib/ui_bibz/ui/core/forms/texts/surround_field.rb
336
+ - lib/ui_bibz/ui/core/forms/texts/text_field.rb
301
337
  - lib/ui_bibz/ui/core/glyph.rb
302
338
  - lib/ui_bibz/ui/core/jumbotron.rb
303
339
  - lib/ui_bibz/ui/core/layouts/col.rb
@@ -315,17 +351,26 @@ files:
315
351
  - lib/ui_bibz/ui/core/navs/components/navbar_form.rb
316
352
  - lib/ui_bibz/ui/core/navs/components/navbar_nav.rb
317
353
  - lib/ui_bibz/ui/core/navs/components/navbar_text.rb
354
+ - lib/ui_bibz/ui/core/navs/components/pagination_link.rb
318
355
  - lib/ui_bibz/ui/core/navs/nav.rb
319
356
  - lib/ui_bibz/ui/core/navs/navbar.rb
357
+ - lib/ui_bibz/ui/core/navs/pagination.rb
358
+ - lib/ui_bibz/ui/core/notifications/alert.rb
359
+ - lib/ui_bibz/ui/core/notifications/components/alert_body.rb
360
+ - lib/ui_bibz/ui/core/notifications/components/alert_header.rb
320
361
  - lib/ui_bibz/ui/core/paths/breadcrumb.rb
321
362
  - lib/ui_bibz/ui/core/paths/components/breadcrumb_link.rb
322
- - lib/ui_bibz/ui/core/progress.rb
363
+ - lib/ui_bibz/ui/core/progresses/components/bar.rb
364
+ - lib/ui_bibz/ui/core/progresses/progress_bar.rb
323
365
  - lib/ui_bibz/ui/core/star.rb
324
- - lib/ui_bibz/ui/core/tag.rb
325
366
  - lib/ui_bibz/ui/core/windows/components/modal_body.rb
326
367
  - lib/ui_bibz/ui/core/windows/components/modal_footer.rb
327
368
  - lib/ui_bibz/ui/core/windows/components/modal_header.rb
328
369
  - lib/ui_bibz/ui/core/windows/modal.rb
370
+ - lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb
371
+ - lib/ui_bibz/ui/extensions/core/component/klass_extension.rb
372
+ - lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb
373
+ - lib/ui_bibz/ui/extensions/core/forms/surround_extension.rb
329
374
  - lib/ui_bibz/ui/ux/tables/components/actions.rb
330
375
  - lib/ui_bibz/ui/ux/tables/components/as.rb
331
376
  - lib/ui_bibz/ui/ux/tables/components/column.rb
@@ -400,8 +445,9 @@ files:
400
445
  - test/store_test.rb
401
446
  - test/support/factory_girl.rb
402
447
  - test/test_helper.rb
403
- - test/ui/component_test.rb
448
+ - test/ui/core/badge_test.rb
404
449
  - test/ui/core/cards/card_test.rb
450
+ - test/ui/core/component_test.rb
405
451
  - test/ui/core/dropdowns/dropdown_test.rb
406
452
  - test/ui/core/forms/buttons/button_choice_test.rb
407
453
  - test/ui/core/forms/buttons/button_group_test.rb
@@ -417,18 +463,25 @@ files:
417
463
  - test/ui/core/forms/selects/multi_column_field_test.rb
418
464
  - test/ui/core/forms/selects/multi_select_field_test.rb
419
465
  - test/ui/core/forms/selects/select_field_test.rb
466
+ - test/ui/core/forms/surrounds/surround_field_test.rb
420
467
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
421
468
  - test/ui/core/forms/texts/auto_complete_field_test.rb
422
- - test/ui/core/forms/texts/surround_field_test.rb
469
+ - test/ui/core/forms/texts/text_field_test.rb
470
+ - test/ui/core/glyph_test.rb
471
+ - test/ui/core/jumbotron_test.rb
472
+ - test/ui/core/layouts/col_test.rb
473
+ - test/ui/core/layouts/container_test.rb
474
+ - test/ui/core/layouts/row_test.rb
423
475
  - test/ui/core/lists/list_group_test.rb
424
476
  - test/ui/core/navs/nav_test.rb
477
+ - test/ui/core/navs/navbar_test.rb
478
+ - test/ui/core/notifications/alert_test.rb
425
479
  - test/ui/core/paths/breadcrumb_test.rb
426
- - test/ui/glyph_test.rb
427
- - test/ui/grid_test.rb
428
- - test/ui/star_test.rb
480
+ - test/ui/core/progress_test.rb
481
+ - test/ui/core/star_test.rb
482
+ - test/ui/core/windows/modal_test.rb
429
483
  - test/ui/ux/tables/table_test.rb
430
484
  - test/ui_bibz_test.rb
431
- - test/ui_helper_test.rb
432
485
  - ui_bibz.gemspec
433
486
  - vendor/assets/images/switch.png
434
487
  - vendor/assets/javascripts/bootstrap-datepicker.min.js
@@ -473,7 +526,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
473
526
  version: 1.3.1
474
527
  requirements: []
475
528
  rubyforge_project:
476
- rubygems_version: 2.6.6
529
+ rubygems_version: 2.6.11
477
530
  signing_key:
478
531
  specification_version: 4
479
532
  summary: Create your project with Ui Bibz. Over a thirty reusable components built
@@ -536,8 +589,9 @@ test_files:
536
589
  - test/store_test.rb
537
590
  - test/support/factory_girl.rb
538
591
  - test/test_helper.rb
539
- - test/ui/component_test.rb
592
+ - test/ui/core/badge_test.rb
540
593
  - test/ui/core/cards/card_test.rb
594
+ - test/ui/core/component_test.rb
541
595
  - test/ui/core/dropdowns/dropdown_test.rb
542
596
  - test/ui/core/forms/buttons/button_choice_test.rb
543
597
  - test/ui/core/forms/buttons/button_group_test.rb
@@ -553,15 +607,22 @@ test_files:
553
607
  - test/ui/core/forms/selects/multi_column_field_test.rb
554
608
  - test/ui/core/forms/selects/multi_select_field_test.rb
555
609
  - test/ui/core/forms/selects/select_field_test.rb
610
+ - test/ui/core/forms/surrounds/surround_field_test.rb
556
611
  - test/ui/core/forms/textareas/markdown_editor_field_test.rb
557
612
  - test/ui/core/forms/texts/auto_complete_field_test.rb
558
- - test/ui/core/forms/texts/surround_field_test.rb
613
+ - test/ui/core/forms/texts/text_field_test.rb
614
+ - test/ui/core/glyph_test.rb
615
+ - test/ui/core/jumbotron_test.rb
616
+ - test/ui/core/layouts/col_test.rb
617
+ - test/ui/core/layouts/container_test.rb
618
+ - test/ui/core/layouts/row_test.rb
559
619
  - test/ui/core/lists/list_group_test.rb
560
620
  - test/ui/core/navs/nav_test.rb
621
+ - test/ui/core/navs/navbar_test.rb
622
+ - test/ui/core/notifications/alert_test.rb
561
623
  - test/ui/core/paths/breadcrumb_test.rb
562
- - test/ui/glyph_test.rb
563
- - test/ui/grid_test.rb
564
- - test/ui/star_test.rb
624
+ - test/ui/core/progress_test.rb
625
+ - test/ui/core/star_test.rb
626
+ - test/ui/core/windows/modal_test.rb
565
627
  - test/ui/ux/tables/table_test.rb
566
628
  - test/ui_bibz_test.rb
567
- - test/ui_helper_test.rb
@@ -1,16 +0,0 @@
1
- module CustomInputs
2
- class AutoCompleteFieldInput < CollectionInput
3
- include UiBibz::Ui::Core::Forms::Texts
4
-
5
- def input(wrapper_options)
6
- UiBibz::Ui::Core::Forms::Texts::AutoCompleteField.new(input_attribute_name, new_options, input_html_options).render
7
- end
8
-
9
- def input_html_options
10
- opts = super
11
- opts = opts.merge({ disabled: options[:disabled] }) unless options[:disabled].blank?
12
- opts = opts.merge({ value: @builder.object.send(attribute_name) })
13
- opts
14
- end
15
- end
16
- end
@@ -1,9 +0,0 @@
1
- module CustomInputs
2
- class MultiSelectFieldInput < CollectionInput
3
-
4
- def input(wrapper_options)
5
- UiBibz::Ui::Core::Forms::Selects::MultiSelectField.new(attribute_name, new_options, input_html_options).render
6
- end
7
-
8
- end
9
- end
@@ -1,10 +0,0 @@
1
- module CustomInputs
2
- class SurroundFieldInput < StringInput
3
- include UiBibz::Ui::Core::Forms::Texts
4
-
5
- def input(wrapper_options)
6
- UiBibz::Ui::Core::Forms::Texts::SurroundField.new(input_attribute_name, options, input_html_options).render
7
- end
8
-
9
- end
10
- end
@@ -1,347 +0,0 @@
1
- module UiBibz::Helpers::UiCoreHelper
2
-
3
- # Button section begin ----------------------------------------------------
4
-
5
- # Button Component
6
- #
7
- # +options+ (Hash)
8
- # +html_options+ (Hash)
9
- def button content = nil, options = nil, html_options = nil, &block
10
- UiBibz::Ui::Core::Forms::Buttons::Button.new(content, options, html_options, &block).render
11
- end
12
-
13
- # Button Choice Component
14
- #
15
- # +options+ (Hash)
16
- # +html_options+ (Hash)
17
- def button_choice content = nil, options = nil, html_options = nil, &block
18
- UiBibz::Ui::Core::Forms::Buttons::ButtonChoice.new(content, options, html_options, &block).render
19
- end
20
-
21
- # Button Group Component
22
- #
23
- # +options+ (Hash)
24
- # +html_options+ (Hash)
25
- def button_group content = nil, options = nil, html_options = nil, &block
26
- UiBibz::Ui::Core::Forms::Buttons::ButtonGroup.new(content, options, html_options, &block).render
27
- end
28
-
29
- # Button Link Component
30
- #
31
- # +options+ (Hash)
32
- # +html_options+ (Hash)
33
- def button_link content = nil, options = nil, html_options = nil, &block
34
- UiBibz::Ui::Core::Forms::Buttons::ButtonLink.new(content, options, html_options, &block).render
35
- end
36
-
37
-
38
- # Button section end ----------------------------------------------------
39
-
40
- # Card section begin ----------------------------------------------------
41
-
42
- # Card Component
43
- #
44
- # +options+ (Hash)
45
- # +html_options+ (Hash)
46
- #
47
- # Option +tap: true+ is required if you want add +header+, +block+ or
48
- # +footer+.
49
- def card content = nil, options = nil, html_options = nil, &block
50
- if is_tap(content, options)
51
- UiBibz::Ui::Core::Cards::Card.new(content, options, html_options).tap(&block).render
52
- else
53
- UiBibz::Ui::Core::Cards::Card.new(content, options, html_options, &block).render
54
- end
55
- end
56
-
57
- # Card Group Component
58
- #
59
- # +options+ (Hash)
60
- # +html_options+ (Hash)
61
- def card_group content = nil, options = nil, html_options = nil, &block
62
- UiBibz::Ui::Core::Cards::CardGroup.new(content, options, html_options).tap(&block).render
63
- end
64
-
65
- # Card Deck Component
66
- #
67
- # +options+ (Hash)
68
- # +html_options+ (Hash)
69
- def card_deck content = nil, options = nil, html_options = nil, &block
70
- UiBibz::Ui::Core::Cards::CardDeck.new(content, options, html_options).tap(&block).render
71
- end
72
-
73
- # Card Column Component
74
- #
75
- # +options+ (Hash)
76
- # +html_options+ (Hash)
77
- def card_column content = nil, options = nil, html_options = nil, &block
78
- UiBibz::Ui::Core::Cards::CardColumn.new(content, options, html_options).tap(&block).render
79
- end
80
-
81
- # Card section end ----------------------------------------------------
82
-
83
- # Input section begin ----------------------------------------------------
84
-
85
- # Date Picker Field Component
86
- #
87
- # +options+ (Hash)
88
- # +html_options+ (Hash)
89
- def date_picker_field content = nil, options = nil, html_options = nil, &block
90
- UiBibz::Ui::Core::Forms::Dates::DatePickerField.new(content, options, html_options, &block).render
91
- end
92
-
93
- # Markdown Editor Field Component
94
- #
95
- # +options+ (Hash)
96
- # +html_options+ (Hash)
97
- def markdown_editor_field content = nil, options = nil, html_options = nil, &block
98
- UiBibz::Ui::Core::Forms::Textareas::MarkdownEditorField.new(content, options, html_options, &block).render
99
- end
100
-
101
- # Multi Column Field Component
102
- #
103
- # +options+ (Hash)
104
- # +html_options+ (Hash)
105
- def multi_column_field content = nil, options = nil, html_options = nil, &block
106
- UiBibz::Ui::Core::Forms::Selects::MultiColumnField.new(content, options, html_options, &block).render
107
- end
108
-
109
- # Multi Select Field Component
110
- #
111
- # +options+ (Hash)
112
- # +html_options+ (Hash)
113
- def multi_select_field content = nil, options = nil, html_options = nil, &block
114
- UiBibz::Ui::Core::Forms::Selects::MultiSelectField.new(content, options, html_options, &block).render
115
- end
116
-
117
- # Formula Field Component
118
- #
119
- # +options+ (Hash)
120
- # +html_options+ (Hash)
121
- def formula_field content = nil, options = nil, html_options = nil, &block
122
- UiBibz::Ui::Core::Forms::Numbers::FormulaField.new(content, options, html_options, &block).render
123
- end
124
-
125
- # Surround Field Component
126
- #
127
- # +options+ (Hash)
128
- # +html_options+ (Hash)
129
- def surround_field content = nil, options = nil, html_options = nil, &block
130
- UiBibz::Ui::Core::Forms::Texts::SurroundField.new(content, options, html_options, &block).render
131
- end
132
-
133
- # Switch Field Component
134
- #
135
- # +options+ (Hash)
136
- # +html_options+ (Hash)
137
- def switch_field content = nil, options = nil, html_options = nil, &block
138
- UiBibz::Ui::Core::Forms::Choices::SwitchField.new(content, options, html_options, &block).render
139
- end
140
-
141
- # Checkbox Field Component
142
- #
143
- # +options+ (Hash)
144
- # +html_options+ (Hash)
145
- def checkbox_field content = nil, options = nil, html_options = nil, &block
146
- UiBibz::Ui::Core::Forms::Choices::CheckboxField.new(content, options, html_options, &block).render
147
- end
148
-
149
- # Radio Field Component
150
- #
151
- # +options+ (Hash)
152
- # +html_options+ (Hash)
153
- def radio_field content = nil, options = nil, html_options = nil, &block
154
- UiBibz::Ui::Core::Forms::Choices::RadioField.new(content, options, html_options, &block).render
155
- end
156
-
157
- # Select Field Component
158
- #
159
- # +options+ (Hash)
160
- # +html_options+ (Hash)
161
- def select_field content = nil, options = nil, html_options = nil, &block
162
- UiBibz::Ui::Core::Forms::Selects::SelectField.new(content, options, html_options, &block).render
163
- end
164
-
165
- # Dropdown Select Field Component
166
- #
167
- # +options+ (Hash)
168
- # +html_options+ (Hash)
169
- def dropdown_select_field content = nil, options = nil, html_options = nil, &block
170
- UiBibz::Ui::Core::Forms::Selects::DropdownSelectField.new(content, options, html_options, &block).render
171
- end
172
-
173
- # Autocomplete Field Component
174
- #
175
- # +options+ (Hash)
176
- # +html_options+ (Hash)
177
- def auto_complete_field content = nil, options = nil, html_options = nil, &block
178
- UiBibz::Ui::Core::Forms::Texts::AutoCompleteField.new(content, options, html_options, &block).render
179
- end
180
-
181
- # Input section end ----------------------------------------------------
182
-
183
- # Nav section begin ----------------------------------------------------
184
-
185
-
186
- # Nav Component
187
- #
188
- # +options+ (Hash)
189
- # +html_options+ (Hash)
190
- def nav content = nil, options = nil, html_options = nil, &block
191
- UiBibz::Ui::Core::Navs::Nav.new(content, options, html_options).tap(&block).render
192
- end
193
-
194
- # Navbar Component
195
- #
196
- # +options+ (Hash)
197
- # +html_options+ (Hash)
198
- def navbar content = nil, options = nil, html_options = nil, &block
199
- UiBibz::Ui::Core::Navs::Navbar.new(content, options, html_options).tap(&block).render
200
- end
201
-
202
- # Nav section end ----------------------------------------------------
203
-
204
- # Layout section begin ----------------------------------------------------
205
-
206
- # Row Component
207
- #
208
- # +options+ (Hash)
209
- # +html_options+ (Hash)
210
- def row content = nil, options = nil, html_options = nil, &block
211
- UiBibz::Ui::Core::Layouts::Row.new(content, options, html_options, &block).render
212
- end
213
-
214
- # Col Component
215
- #
216
- # +options+ (Hash)
217
- # +html_options+ (Hash)
218
- def col content = nil, options = nil, html_options = nil, &block
219
- UiBibz::Ui::Core::Layouts::Col.new(content, options, html_options, &block).render
220
- end
221
-
222
- # Container Component
223
- #
224
- # +options+ (Hash)
225
- # +html_options+ (Hash)
226
- def container content = nil, options = nil, html_options = nil, &block
227
- UiBibz::Ui::Core::Layouts::Container.new(content, options, html_options, &block).render
228
- end
229
-
230
- # Layout section end ----------------------------------------------------
231
-
232
- # Other section begin ----------------------------------------------------
233
-
234
- # Notify (Alert) Component
235
- #
236
- # +options+ (Hash)
237
- # +html_options+ (Hash)
238
- #
239
- # Use "notify" instead of "alert" : due to "actionview (4.2.0) lib/action_view/helpers/form_helper.rb" conflict
240
- def notify content = nil, options = nil, html_options = nil, &block
241
- UiBibz::Ui::Core::Alert.new(content, options, html_options, &block).render
242
- end
243
-
244
- # Breadcrumb Component
245
- #
246
- # +options+ (Hash)
247
- # +html_options+ (Hash)
248
- #
249
- def breadcrumb content = nil, options = nil, html_options = nil, &block
250
- if is_tap(content, options)
251
- UiBibz::Ui::Core::Paths::Breadcrumb.new(content, options, html_options).tap(&block).render
252
- else
253
- UiBibz::Ui::Core::Paths::Breadcrumb.new(content, options, html_options, &block).render
254
- end
255
- end
256
-
257
- # Dropdown Component
258
- #
259
- # +name+ (String) [Required]
260
- # +options+ (Hash)
261
- # +html_options+ (Hash)
262
- def dropdown name, options = nil, html_options = nil, &block
263
- UiBibz::Ui::Core::Dropdowns::Dropdown.new(name, options, html_options).tap(&block).render
264
- end
265
-
266
- # Split Dropdown Component
267
- #
268
- # +name+ (String) [Required]
269
- # +options+ (Hash)
270
- # +html_options+ (Hash)
271
- def split_dropdown name, options = nil, html_options = nil, &block
272
- UiBibz::Ui::Core::Dropdowns::SplitDropdown.new(name, options, html_options).tap(&block).render
273
- end
274
-
275
- # Glyph Component
276
- #
277
- # + content+ (String || Hash) [Required]
278
- # +options+ (Hash)
279
- # +html_options+ (Hash)
280
- #
281
- # Glyph component with some exeption, it can be written
282
- # => glyph 'calendar', size: :xs
283
- # or
284
- # => glyph { name: 'calendar', size: :xs }
285
- def glyph content, options = nil, html_options = nil, &block
286
- UiBibz::Ui::Core::Glyph.new(content, options, html_options, &block).render
287
- end
288
-
289
- # Jumbotron Component
290
- #
291
- # +options+ (Hash)
292
- # +html_options+ (Hash)
293
- def jumbotron content = nil, options = nil, html_options = nil, &block
294
- UiBibz::Ui::Core::Jumbotron.new(content, options, html_options, &block).render
295
- end
296
-
297
- # Etiquette (Label) Component
298
- #
299
- # +options+ (Hash)
300
- # +html_options+ (Hash)
301
- #
302
- # Use "etiquette" instead of "label" : due to "actionview (4.2.0) lib/action_view/helpers/form_helper.rb" conflict
303
- def etiquette content = nil, options = nil, html_options = nil, &block
304
- UiBibz::Ui::Core::Tag.new(content, options, html_options, &block).render
305
- end
306
-
307
- # List Group Component
308
- #
309
- # +options+ (Hash)
310
- # +html_options+ (Hash)
311
- def list_group content = nil, options = nil, html_options = nil, &block
312
- UiBibz::Ui::Core::Lists::ListGroup.new(content, options, html_options).tap(&block).render
313
- end
314
-
315
- # Modal Component
316
- #
317
- # +options+ (Hash)
318
- # +html_options+ (Hash)
319
- def modal content = nil, options = nil, html_options = nil, &block
320
- UiBibz::Ui::Core::Windows::Modal.new(content, options, html_options).tap(&block).render
321
- end
322
-
323
- # Progress Component
324
- #
325
- # +options+ (Hash)
326
- # +html_options+ (Hash)
327
- def progress percentage = nil, options = nil, html_options = nil, &block
328
- UiBibz::Ui::Core::Progress.new(percentage, options, html_options, &block).render
329
- end
330
-
331
- # Stars Component
332
- #
333
- # +options+ (Hash)
334
- # +html_options+ (Hash)
335
- def star content = nil, options = nil, html_options = nil, &block
336
- UiBibz::Ui::Core::Star.new(content, options, html_options, &block).render
337
- end
338
-
339
- # Other section end ----------------------------------------------------
340
-
341
- private
342
-
343
- def is_tap content, options
344
- (content[:tap] if content.kind_of?(Hash)) || (options[:tap] unless options.nil?)
345
- end
346
-
347
- end