ui_bibz 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +8 -8
  2. data/.yardoc/checksums +12 -12
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/Gemfile.lock +1 -1
  6. data/README.md +78 -70
  7. data/doc/UiBibz.html +1 -1
  8. data/doc/UiBibz/Concerns.html +1 -1
  9. data/doc/UiBibz/Concerns/Models.html +1 -1
  10. data/doc/UiBibz/Concerns/Models/Searchable.html +1 -1
  11. data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +1 -1
  12. data/doc/UiBibz/Helpers.html +1 -1
  13. data/doc/UiBibz/Helpers/MetaHelper.html +1 -1
  14. data/doc/UiBibz/Helpers/UiCoreHelper.html +1 -1
  15. data/doc/UiBibz/Helpers/UiUxHelper.html +1 -1
  16. data/doc/UiBibz/Helpers/UtilsHelper.html +1 -1
  17. data/doc/UiBibz/Rails.html +1 -1
  18. data/doc/UiBibz/Rails/Engine.html +1 -1
  19. data/doc/UiBibz/Ui.html +1 -1
  20. data/doc/UiBibz/Ui/Base.html +2 -2
  21. data/doc/UiBibz/Ui/Core.html +3 -3
  22. data/doc/UiBibz/Ui/Core/Alert.html +1 -1
  23. data/doc/UiBibz/Ui/Core/Bar.html +1 -1
  24. data/doc/UiBibz/Ui/Core/Breadcrumb.html +1 -1
  25. data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +1 -1
  26. data/doc/UiBibz/Ui/Core/Button.html +1 -1
  27. data/doc/UiBibz/Ui/Core/ButtonDropdown.html +2 -2
  28. data/doc/UiBibz/Ui/Core/ButtonGroup.html +1 -1
  29. data/doc/UiBibz/Ui/Core/ButtonLink.html +1 -1
  30. data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +2 -2
  31. data/doc/UiBibz/Ui/Core/Col.html +1 -1
  32. data/doc/UiBibz/Ui/Core/Component.html +2 -2
  33. data/doc/UiBibz/Ui/Core/Dropdown.html +175 -43
  34. data/doc/UiBibz/Ui/Core/DropdownDivider.html +301 -0
  35. data/doc/UiBibz/Ui/Core/DropdownHeader.html +353 -0
  36. data/doc/UiBibz/Ui/Core/DropdownLink.html +3 -3
  37. data/doc/UiBibz/Ui/Core/Glyph.html +1 -1
  38. data/doc/UiBibz/Ui/Core/Jumbotron.html +1 -1
  39. data/doc/UiBibz/Ui/Core/Label.html +1 -1
  40. data/doc/UiBibz/Ui/Core/List.html +1 -1
  41. data/doc/UiBibz/Ui/Core/ListGroup.html +1 -1
  42. data/doc/UiBibz/Ui/Core/Nav.html +1 -1
  43. data/doc/UiBibz/Ui/Core/NavDropdown.html +2 -2
  44. data/doc/UiBibz/Ui/Core/NavLink.html +1 -1
  45. data/doc/UiBibz/Ui/Core/Navbar.html +1 -1
  46. data/doc/UiBibz/Ui/Core/NavbarForm.html +1 -1
  47. data/doc/UiBibz/Ui/Core/NavbarNav.html +1 -1
  48. data/doc/UiBibz/Ui/Core/NavbarText.html +1 -1
  49. data/doc/UiBibz/Ui/Core/Panel.html +1 -1
  50. data/doc/UiBibz/Ui/Core/ProgressBar.html +1 -1
  51. data/doc/UiBibz/Ui/Core/Row.html +1 -1
  52. data/doc/UiBibz/Ui/Core/Stars.html +1 -1
  53. data/doc/UiBibz/Ui/Ux.html +3 -3
  54. data/doc/UiBibz/Ui/Ux/Actionable.html +1 -1
  55. data/doc/UiBibz/Ui/Ux/Actions.html +148 -44
  56. data/doc/UiBibz/Ui/Ux/Column.html +1 -1
  57. data/doc/UiBibz/Ui/Ux/Columns.html +1 -1
  58. data/doc/UiBibz/Ui/Ux/Grid.html +1 -1
  59. data/doc/UiBibz/Ui/Ux/Paginable.html +1 -1
  60. data/doc/UiBibz/Ui/Ux/Searchable.html +1 -1
  61. data/doc/UiBibz/Ui/Ux/Sortable.html +1 -1
  62. data/doc/UiBibz/Ui/Ux/Store.html +1 -1
  63. data/doc/UiBibz/Ui/Ux/Table.html +1 -1
  64. data/doc/UiBibz/Ui/Ux/TablePagination.html +1 -1
  65. data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +1 -1
  66. data/doc/UiBibz/Ui/Ux/TablePanel.html +1 -1
  67. data/doc/UiBibz/Ui/Ux/TableSearchField.html +1 -1
  68. data/doc/UiBibz/Utils.html +1 -1
  69. data/doc/UiBibz/Utils/Internationalization.html +1 -1
  70. data/doc/_index.html +14 -14
  71. data/doc/class_list.html +1 -1
  72. data/doc/file.README.html +35 -32
  73. data/doc/index.html +35 -32
  74. data/doc/method_list.html +261 -237
  75. data/doc/top-level-namespace.html +1 -1
  76. data/lib/ui_bibz/ui/core/dropdown/components/dropdown_divider.rb +17 -0
  77. data/lib/ui_bibz/ui/core/dropdown/components/dropdown_header.rb +47 -0
  78. data/lib/ui_bibz/ui/core/dropdown/components/dropdown_link.rb +8 -2
  79. data/lib/ui_bibz/ui/core/dropdown/dropdown.rb +26 -12
  80. data/lib/ui_bibz/ui/ux/table/components/actions.rb +14 -7
  81. data/lib/ui_bibz/ui/ux/table/extensions/actionable.rb +1 -1
  82. data/lib/ui_bibz/version.rb +1 -1
  83. data/test/ui/button_test.rb +12 -12
  84. data/test/ui/dropdown_test.rb +3 -3
  85. data/test/ui/table_test.rb +3 -3
  86. metadata +6 -4
  87. data/lib/ui_bibz/ui/core/dropdown/components/dropdown_list.rb +0 -75
  88. data/lib/ui_bibz/ui/ux/table/components/table_action.rb +0 -21
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODUzNDU5MDM1MzczNWY0ODFjYzljZTgxMzM3NDRjOGM5NzE5MTE4MQ==
4
+ ODhkZGE3MzBhOWM1MmYwMzFlODVkZTFkYzZkYzEwNzdmOGVjNTJjNw==
5
5
  data.tar.gz: !binary |-
6
- NTc3YjFkOGFkM2ZlMTgwN2ZkMTFjZTUwYTdkZjZmZTAyMTBhNzk5Yg==
6
+ ZmQ5ZWMyMTBkYmY2NzMzMmYyZDIyOGM4ZDIwNDMyN2I2ZDY3NmM1Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjIxZGNhOWQyOGFhMjgzOGU3YTA1MTNjNWFjNTA5ODA2MmU0YmJkZTQyOTNk
10
- OTA0MTcwZDYyNjhhZjRkNzJmZGY1MWE2NjY4Y2VkZTEzZDJjMzliYjU0ZmE4
11
- ZGIyY2ZiMzFhYjk5MmY3MWZlNmRjOTRjZGIwMTgxNWJhMzhlMjY=
9
+ NTZkOGU0MGFhYWE3NmUzMzA2MjA0OGFhNTIzNTBkOGM3NDZiNTVlYzQ5NjE2
10
+ MGQ3ZDc3MjM3MGI5ZjAyZjQ5YjliNDAwN2M0MzkwNDZkZWVmNjc1OTgzMDhj
11
+ ZjkxMDg1N2NhZmY1ZjkzNWM1NWE2NGNlYTQ0YzU5ZjFjZjgxNzk=
12
12
  data.tar.gz: !binary |-
13
- NjJiNzU4ZjNiMzA4YzFjYmFmMGY1MmRjZjliMWIyYWExNTY3N2I2MjdkZDE1
14
- M2VjN2JhM2FiNTcyZjJiMjJhMTU0NTVlZTAyNmY4MmYxYzdjN2VhZDA2Yzhl
15
- ZTY0MjNhZGVlNmI0Y2E2YjRhMDRkMWYzNzY2M2EyYzhiMzk1NTc=
13
+ Mzg4ZjVmNTEyNjUwNDIzMWUxZjZmMDE5ODg3NGJlYWRmODZjNzI3ZTdjN2Yz
14
+ MTA0OGIyZWU1ZWQxMDM3Y2U0ODdmOGM1Y2ZiYzkzYzM3MTA5N2YwNDcwNTgw
15
+ NDU0YTYyMjhiZjI4NTcxNjNiN2FkMzg3MmM3ZmIxZTAyZjU5MmI=
@@ -6,50 +6,50 @@ lib/ui_bibz/ui/core/col.rb 657fd5aeed007c9d2848f99f3d7bb4f642bf756c
6
6
  lib/ui_bibz/ui/core/row.rb 539ef1d6caf28cb460671cf3877313b3fc3fd74c
7
7
  lib/ui_bibz/rails/engine.rb 0720bf9cc7da2f36de5e2212a590b58ec19d31a8
8
8
  lib/ui_bibz/ui/core/alert.rb 48c30806eec62987f07b57375ccf406712308df8
9
- lib/ui_bibz/ui/core/label.rb c71b0853662492478a179bc2e7e0ec6c659b1161
10
- lib/ui_bibz/ui/core/glyph.rb cf35976f93328f4b475bd41b07151ccba76bec78
11
9
  lib/ui_bibz/ui/core/stars.rb bfb37a8b1e2b61b4e153b828f0d6ea0d67072d94
10
+ lib/ui_bibz/ui/core/glyph.rb cf35976f93328f4b475bd41b07151ccba76bec78
11
+ lib/ui_bibz/ui/core/label.rb c71b0853662492478a179bc2e7e0ec6c659b1161
12
12
  lib/ui_bibz/ui/core/panel.rb 6d066fab9424468ef60530d436e8d4c5e4ae997f
13
13
  lib/ui_bibz/ui/core/nav/nav.rb 75455d31f32733e8570c97d64bfac88db31170be
14
14
  lib/ui_bibz/ui/ux/table/table.rb 1b04d576a2868345bd69c03b461a3abd4f1f8f22
15
- lib/ui_bibz/ui/core/component.rb b0df13610fa2c33c3fcce825262ded8871c66fe3
16
15
  lib/ui_bibz/ui/core/jumbotron.rb 7654b2765b0c085182545c2fb5a39a3920e4baf3
16
+ lib/ui_bibz/ui/core/component.rb b0df13610fa2c33c3fcce825262ded8871c66fe3
17
17
  lib/ui_bibz/ui/core/nav/navbar.rb 6db829caf51ebfedda453fc5532b14b87b608105
18
18
  lib/ui_bibz/helpers/meta_helper.rb 57fc655c259132af0aa518bb2cdcb39c27e658f9
19
19
  lib/ui_bibz/helpers/ui_ux_helper.rb b47a87a3133385d921951d86f1344c155faa942f
20
20
  lib/ui_bibz/helpers/utils_helper.rb 53d9372821f8c1b29ea1e180d58995685b230153
21
21
  lib/ui_bibz/ui/core/button/button.rb 31b36244d461cbb8531a5c85f6f8a8fed17570ca
22
22
  lib/ui_bibz/helpers/ui_core_helper.rb a08fe31fc9f687d721ed41046c48ca7a5690036c
23
- lib/ui_bibz/ui/ux/table/table_panel.rb 8156dd1c99b1b3e4cd8c03e9059ff01c6024c9a9
24
23
  lib/ui_bibz/ui/core/list/list_group.rb ff0e84c591a84b4ce63db939a37f55c4b97714a9
25
- lib/ui_bibz/ui/core/dropdown/dropdown.rb b89f52fbd93ef835d27d9d8ee3abdd9ceda40b5f
24
+ lib/ui_bibz/ui/ux/table/table_panel.rb 8156dd1c99b1b3e4cd8c03e9059ff01c6024c9a9
25
+ lib/ui_bibz/ui/core/dropdown/dropdown.rb b5c804c45e9d7a1b2b8e38788f031288ebc66749
26
26
  lib/ui_bibz/utils/internationalization.rb 247008bccd7b820cd534082a846a29e5de0063dc
27
27
  lib/ui_bibz/concerns/models/searchable.rb dd0a2aae11560dc183d4ecf3c3f838e7fa172858
28
28
  lib/ui_bibz/ui/core/button/button_link.rb aab49e47762ac39326de4ec9a8dd9a9695ab57b6
29
29
  lib/ui_bibz/ui/core/button/button_group.rb dac533adecbb81cb1d94175d49da6782a4af6ad2
30
- lib/ui_bibz/ui/ux/table/table_pagination.rb e9609ebbe28515472691b3b03b7acf7fb25dfbb0
31
30
  lib/ui_bibz/ui/core/list/components/list.rb 2717ed6f342dd4ad0c92864425fe8123fb82143f
32
31
  lib/ui_bibz/ui/ux/table/components/store.rb 1b9a3c1e0b173aa1801a0e471f44944d9dbd2782
32
+ lib/ui_bibz/ui/ux/table/table_pagination.rb e9609ebbe28515472691b3b03b7acf7fb25dfbb0
33
33
  lib/ui_bibz/ui/ux/table/components/column.rb da034f1a7f05096ffc03c2f25785bf264e844d32
34
34
  lib/ui_bibz/ui/core/breadcrumb/breadcrumb.rb 60ca3ffd3ce3f484249bc5d49bcde53b407c33fa
35
35
  lib/ui_bibz/ui/ux/table/components/columns.rb ad81e6a9ce7e30e2a9b6491132ce428f710f056f
36
- lib/ui_bibz/ui/ux/table/components/actions.rb c158d64d1b5c2c97ccfbb7efc7aeac13bd380971
37
36
  lib/ui_bibz/ui/core/button/button_dropdown.rb 49f453e7024956cf7b5e0ad9989ecac53c7216b2
38
37
  lib/ui_bibz/ui/ux/table/table_search_field.rb 7bef4a49403d9df8f868c60566fe906c4024cfa8
38
+ lib/ui_bibz/ui/ux/table/components/actions.rb e9c79111f5de47c79eb48961a8c66891310137d1
39
39
  lib/ui_bibz/ui/ux/table/extensions/sortable.rb 7d8575271cc19adaf6c0b14171e3dca4c00f2855
40
40
  lib/ui_bibz/ui/core/nav/components/nav_link.rb 27fbcf7b456c64178e238e63b3b4e641737635c7
41
41
  lib/ui_bibz/ui/ux/table/extensions/paginable.rb 89dd34ccca0c0acaec94e21c32720ce9e3a929e4
42
- lib/ui_bibz/ui/core/nav/components/navbar_nav.rb c444431fae9fe2301db5c458c553daf3c1371fe2
43
42
  lib/ui_bibz/ui/core/progress_bar/progress_bar.rb 1fd77c45519af289ad61f13604fd6a2ee51361de
43
+ lib/ui_bibz/ui/ux/table/extensions/actionable.rb 7ba002df2a38b1e4ea185a63b4aeab9127a72e0d
44
+ lib/ui_bibz/ui/core/nav/components/navbar_nav.rb c444431fae9fe2301db5c458c553daf3c1371fe2
44
45
  lib/ui_bibz/ui/ux/table/extensions/searchable.rb 2ab1b29fd7cb5335cb7177a93187729f728726d0
45
- lib/ui_bibz/ui/ux/table/extensions/actionable.rb 06dedf17607bb9884f6a9219f08e508a00a804be
46
46
  lib/ui_bibz/ui/core/nav/components/navbar_form.rb 72a4dee1c6fd0d27f6adf62181e740df4b60e5e6
47
47
  lib/ui_bibz/ui/core/nav/components/navbar_text.rb 3d886871d3cbed43f520f43cfd4ec8a5210730be
48
48
  lib/ui_bibz/ui/core/progress_bar/components/bar.rb e02355fef5a6b683b9495891e9217b594b27a024
49
- lib/ui_bibz/ui/ux/table/components/table_action.rb 2bf2979f0650d0d92ed5db957053ce71626dd477
50
49
  lib/ui_bibz/ui/core/nav/components/nav_dropdown.rb 3f592f3bf71c45773280ecc7f0dcec90b8811308
51
50
  lib/ui_bibz/ui/core/button/button_split_dropdown.rb 78045ee23b55e8a9e217f67ae625d115a105e3ed
52
51
  lib/ui_bibz/ui/ux/table/table_pagination_per_page.rb c7e2cf5665b29bc05df096e537fb7ce1056ed908
53
- lib/ui_bibz/ui/core/dropdown/components/dropdown_link.rb e29ab377b6601be815f363194f18a020507e4034
54
- lib/ui_bibz/ui/core/dropdown/components/dropdown_list.rb 736ae8ad50ae3c44df37ba82a3c220f97f325e4f
52
+ lib/ui_bibz/ui/core/dropdown/components/dropdown_link.rb 74fab94a4dcb0af054998400226245d50d1bfc7d
53
+ lib/ui_bibz/ui/core/dropdown/components/dropdown_header.rb 48255e9d5a49aef02175ea201f8d50c71c82f25f
54
+ lib/ui_bibz/ui/core/dropdown/components/dropdown_divider.rb 32e4c218a43a28976caeea699912d60f662d111a
55
55
  lib/ui_bibz/ui/core/breadcrumb/components/breadcrumb_link.rb c2cf87bb97fb7332b9e890b64c0eecf989596e54
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (1.1.1)
4
+ ui_bibz (1.1.2)
5
5
  haml
6
6
  haml-rails
7
7
  rails (~> 4.2.0)
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
- ![Ui Bibz logo](http://hummel.link/Ui-Bibz/images/ui-bibz-logo-without-border.gif)
1
+ ![Ui Bibz logo](http://hummel.link/Ui-Bibz/1.1.2/images/ui-bibz-logo-without-border.gif)
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/ui_bibz.svg)](http://badge.fury.io/rb/ui_bibz)
3
4
  [![Build Status](https://travis-ci.org/thooams/Ui-Bibz.svg)](https://travis-ci.org/thooams/Ui-Bibz)
4
5
  [![Code Climate](https://codeclimate.com/github/thooams/Ui-Bibz/badges/gpa.svg)](https://codeclimate.com/github/thooams/Ui-Bibz)
5
6
  [![Test Coverage](https://codeclimate.com/github/thooams/Ui-Bibz/badges/coverage.svg)](https://codeclimate.com/github/thooams/Ui-Bibz)
@@ -130,7 +131,7 @@ Placer la ligne suivante dans ```/app/assets/javascripts/applications.js```
130
131
 
131
132
  ### Alert
132
133
 
133
- ![alert](http://hummel.link/Ui-Bibz/images/alert.png)
134
+ ![alert](http://hummel.link/Ui-Bibz/1.1.2/images/alert.png)
134
135
 
135
136
  L'élément ```notify``` à pour ```options``` un Hash acceptant les clefs :
136
137
 
@@ -141,11 +142,11 @@ L'élément ```notify``` à pour ```options``` un Hash acceptant les clefs :
141
142
  notify 'Alert', state: :info, glyph: 'eye'
142
143
  ```
143
144
 
144
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Alert.html)
145
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Alert.html)
145
146
 
146
147
  ### Breadcrumb (fil d'ariane)
147
148
 
148
- ![breadcrumb](http://hummel.link/Ui-Bibz/images/breadcrumb.png)
149
+ ![breadcrumb](http://hummel.link/Ui-Bibz/1.1.2/images/breadcrumb.png)
149
150
 
150
151
  L'élément ```breadcrumb``` à pour enfant l'élément ```link``` qui accepte pour option un Hash avec les clefs :
151
152
 
@@ -163,13 +164,13 @@ breadcrumb do |b|
163
164
  end
164
165
  ```
165
166
 
166
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Breadcrumb.html)
167
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Breadcrumb.html)
167
168
 
168
169
  ### Buttons (Boutons)
169
170
 
170
171
  #### Button
171
172
 
172
- ![button](http://hummel.link/Ui-Bibz/images/button.png)
173
+ ![button](http://hummel.link/Ui-Bibz/1.1.2/images/button.png)
173
174
 
174
175
  L'élément ```button``` à pour ```options``` un Hash acceptant les clefs :
175
176
 
@@ -182,30 +183,31 @@ L'élément ```button``` à pour ```options``` un Hash acceptant les clefs :
182
183
  button 'Button', { state: :danger, size: :xs, glyph: 'star' } , { class: 'my-button' }
183
184
  ```
184
185
 
185
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Button.html)
186
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Button.html)
186
187
 
187
188
  #### Button Dropdown
188
189
 
189
190
  L'élément ```button_dropdown``` accepte pour options les mêmes clefs que l'élément
190
191
  [dropdown](#dropdown).
191
192
 
192
- ![button_link](http://hummel.link/Ui-Bibz/images/button_dropdown.png)
193
+ ![button_link](http://hummel.link/Ui-Bibz/1.1.2/images/button_dropdown.png)
193
194
 
194
195
  ```
195
196
  button_dropdown 'Button Dropdown' do |bd|
196
- bd.list link_to('Link 1', '#')
197
- bd.list 'Header 1', type: :header
198
- bd.list link_to('Link 2', '#')
199
- bd.list '---'
200
- bd.list link_to('Link 3', '#')
197
+ bd.link Link 1', '#'
198
+ bd.header 'Header 1'
199
+ bd.link 'Link 2'
200
+ bd.divider
201
+ bd.link 'Link 3', '#'
202
+ bd.html link_to('Link 4', '#')
201
203
  end
202
204
  ```
203
205
 
204
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonLink.html)
206
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/ButtonLink.html)
205
207
 
206
208
  #### Button group
207
209
 
208
- ![button_group](http://hummel.link/Ui-Bibz/images/button_group.png)
210
+ ![button_group](http://hummel.link/Ui-Bibz/1.1.2/images/button_group.png)
209
211
 
210
212
  L'élément ```button_group``` à pour ```options``` un Hash acceptant les clefs :
211
213
 
@@ -229,19 +231,19 @@ button_group do
229
231
  button 'Button 2'
230
232
  button 'Button 3'
231
233
  button_dropdown 'Button Dropdown' do |bd|
232
- bd.list 'header', type: :header
233
- bd.list link_to('Link 1', '#')
234
- bd.list '---'
235
- bd.list link_to('Link 2', '#')
234
+ bd.header 'header'
235
+ bd.link 'Link 1', '#'
236
+ bd.divider
237
+ bd.link 'Link 2', '#'
236
238
  end
237
239
  end
238
240
  ```
239
241
 
240
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonGroup.html)
242
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/ButtonGroup.html)
241
243
 
242
244
  #### Button Link (Lien Bouton)
243
245
 
244
- ![button_link](http://hummel.link/Ui-Bibz/images/button_link.png)
246
+ ![button_link](http://hummel.link/Ui-Bibz/1.1.2/images/button_link.png)
245
247
 
246
248
  L'élément ```button_link``` à pour ```options``` un Hash acceptant les clefs :
247
249
 
@@ -249,28 +251,28 @@ L'élément ```button_link``` à pour ```options``` un Hash acceptant les clefs
249
251
  button_link 'Button', { url: '#button', state: :primary, glyph: 'star' }, { class: 'my-button' }
250
252
  ```
251
253
 
252
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonLink.html)
254
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/ButtonLink.html)
253
255
 
254
256
  #### Button Split Dropdown
255
257
 
256
- ![button_group](http://hummel.link/Ui-Bibz/images/button_split_dropdown.png)
258
+ ![button_group](http://hummel.link/Ui-Bibz/1.1.2/images/button_split_dropdown.png)
257
259
 
258
260
  L'élément ```button_split_dropdown```accepte pour options les mêmes clefs
259
261
  que l'élément [dropdown](#dropdown).
260
262
 
261
263
  ```ruby
262
264
  button_split_dropdown 'Dropdown', state: :primary do |d|
263
- d.list do
264
- link_to 'Link 1', "#"
265
+ d.link url: "#" do
266
+ 'Link 1'
265
267
  end
266
- d.list 'Header 1', type: :header
267
- d.list link_to 'Link 2', '#'
268
- d.list '---'
269
- d.list link_to 'Link 3', '#'
268
+ d.header 'Header 1'
269
+ d.link 'Link 2', '#'
270
+ d.divider
271
+ d.link 'Link 3', '#'
270
272
  end
271
273
  ```
272
274
 
273
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ButtonSplitDropdown.html)
275
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/ButtonSplitDropdown.html)
274
276
 
275
277
  ### Dropdown
276
278
 
@@ -307,11 +309,11 @@ d.list '--'
307
309
  ...
308
310
  ```
309
311
 
310
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Dropdown.html)
312
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Dropdown.html)
311
313
 
312
314
  ### Progress Bar
313
315
 
314
- ![glyph](http://hummel.link/Ui-Bibz/images/progress_bar.png)
316
+ ![glyph](http://hummel.link/Ui-Bibz/1.1.2/images/progress_bar.png)
315
317
 
316
318
  L'élément ```progress_bar``` à pour ```options``` un Hash acceptant les clefs :
317
319
 
@@ -339,11 +341,11 @@ progress_bar(tap: true) do |pb|
339
341
  end
340
342
  ```
341
343
 
342
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/ProgressBar.html)
344
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/ProgressBar.html)
343
345
 
344
346
  ### Glyph
345
347
 
346
- ![glyph](http://hummel.link/Ui-Bibz/images/glyph.png)
348
+ ![glyph](http://hummel.link/Ui-Bibz/1.1.2/images/glyph.png)
347
349
 
348
350
  Les glyphs utilisés proviennent de [Font Awesome](http://fontawesome.io/).
349
351
  L'élément ```glyph``` peut contenir un hash pour ```content```
@@ -358,11 +360,11 @@ glyph 'star', { size: 3, type: 'fw' }, class: 'star-exemple'
358
360
  glyph { name: 'star', size: 3, type: 'fw' }
359
361
  ```
360
362
 
361
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Glyph.html)
363
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Glyph.html)
362
364
 
363
365
  ### Stars
364
366
 
365
- ![stars](http://hummel.link/Ui-Bibz/images/stars.png)
367
+ ![stars](http://hummel.link/Ui-Bibz/1.1.2/images/stars.png)
366
368
 
367
369
  L'élément ```stars``` à pour ```options``` un Hash acceptant les clefs :
368
370
 
@@ -379,12 +381,12 @@ stars num: 3 do
379
381
  end
380
382
  ```
381
383
 
382
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Stars.html)
384
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Stars.html)
383
385
 
384
386
 
385
387
  ### Panel
386
388
 
387
- ![panel](http://hummel.link/Ui-Bibz/images/panel.png)
389
+ ![panel](http://hummel.link/Ui-Bibz/1.1.2/images/panel.png)
388
390
 
389
391
  L'élément ```panel``` à pour ```options``` un Hash acceptant les clefs :
390
392
 
@@ -411,11 +413,11 @@ panel({ tap: true, state: :danger, table_options: { actionable: true } }, { clas
411
413
  end
412
414
  ```
413
415
 
414
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Panel.html)
416
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Panel.html)
415
417
 
416
418
  ### Table
417
419
 
418
- ![table](http://hummel.link/Ui-Bibz/images/table.png)
420
+ ![table](http://hummel.link/Ui-Bibz/1.1.2/images/table.png)
419
421
 
420
422
  L'élément ```table``` est un tableau composé d'une recherche, une pagination et un trie de colonnes intégrées.
421
423
  Le tableau est compatible [I18n](http://guides.rubyonrails.org/i18n.html).
@@ -451,7 +453,7 @@ searchable_attributes :name_fr, :name_en
451
453
 
452
454
  Un champ recherche est disponible dans la vue :
453
455
 
454
- ![table_search_field](http://hummel.link/Ui-Bibz/images/table_search_field.png)
456
+ ![table_search_field](http://hummel.link/Ui-Bibz/1.1.2/images/table_search_field.png)
455
457
 
456
458
  ```
457
459
  table_search_field store: @documents
@@ -465,7 +467,7 @@ table_pagination store: @documents
465
467
 
466
468
  Un champs select par page est disponible dans la vue :
467
469
 
468
- ![table_search_field](http://hummel.link/Ui-Bibz/images/table_pagination_per_page.png)
470
+ ![table_search_field](http://hummel.link/Ui-Bibz/1.1.2/images/table_pagination_per_page.png)
469
471
 
470
472
  ```
471
473
  table_pagination_per_page store: @documents
@@ -525,13 +527,14 @@ Exemple :
525
527
  ```
526
528
  # app/views/documents/index.html.haml
527
529
  table store: @documents do |g|
528
- g.actions do
529
- link_action 'Show', documents_path(:id), glyph: 'eye'
530
- link_action 'Edit', edit_document_path(:id), glyph: 'pencil'
531
- link_action 'Delete', documents_path(:id), method: :delete, glyph: 'trash', data: { confirm: 'Are you sure?' }
532
- link_action "---"
533
- link_action 'Duplicate', duplicate_document_path(:id), glyph: 'files-o'
534
- link_action 'Alert', alert_document_path(:id), glyph: 'bell'
530
+ g.actions do |acs|
531
+ acs.headr 'Main Actions'
532
+ acs.link 'Show', documents_path(:id), glyph: 'eye'
533
+ acs.link 'Edit', edit_document_path(:id), glyph: 'pencil'
534
+ acs.link 'Delete', documents_path(:id), method: :delete, glyph: 'trash', data: { confirm: 'Are you sure?' }
535
+ acs.divider
536
+ acs.link 'Duplicate', duplicate_document_path(:id), glyph: 'files-o'
537
+ acs.link 'Alert', alert_document_path(:id), glyph: 'bell'
535
538
  end
536
539
  end
537
540
  ```
@@ -651,11 +654,11 @@ table store: @documents do |t|
651
654
  t.actions do |acs|
652
655
  acs.format do |record|
653
656
  if record.active?
654
- acs.action 'Active', { url: active_document_path(record.id) }
657
+ acs.link 'Active', { url: active_document_path(record.id) }
655
658
  else
656
- acs.action 'Disabled', { url: disabled_document_path(record.id) }
659
+ acs.link 'Disabled', { url: disabled_document_path(record.id) }
657
660
  end
658
- acs.action 'Show', { url: document_path(record.id) }
661
+ acs.link 'Show', { url: document_path(record.id) }
659
662
  end
660
663
  end
661
664
  end
@@ -711,11 +714,11 @@ activerecord:
711
714
  ...
712
715
  ```
713
716
 
714
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Ux/Table.html)
717
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Ux/Table.html)
715
718
 
716
719
  ### Table Panel
717
720
 
718
- ![table_panel](http://hummel.link/Ui-Bibz/images/table_panel.png)
721
+ ![table_panel](http://hummel.link/Ui-Bibz/1.1.2/images/table_panel.png)
719
722
 
720
723
  Le composant ```table_panel``` est un [tableau](#table) dans un [panel](#panel).
721
724
 
@@ -733,20 +736,20 @@ table_panel({ store: @users, tap: true, glyph: 'home', state: :danger }) do |g|
733
736
  cls.column :role_name, { name: 'Role', sort: 'roles.name' }
734
737
  end
735
738
  g.actions do |acs|
736
- acs.action 'Action 1', { url: edit_user_path(:id), glyph: 'pencil' }
737
- acs.action "---"
738
- acs.action { url: user_path(:id), glyph: 'eye' } do
739
+ acs.link 'Action 1', { url: edit_user_path(:id), glyph: 'pencil' }
740
+ acs.divider
741
+ acs.link { url: user_path(:id), glyph: 'eye' } do
739
742
  'Action 2'
740
743
  end
741
744
  end
742
745
  end
743
746
  ```
744
747
 
745
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Ux/TablePanel.html)
748
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Ux/TablePanel.html)
746
749
 
747
750
  ### List
748
751
 
749
- ![list](http://hummel.link/Ui-Bibz/images/list.png)
752
+ ![list](http://hummel.link/Ui-Bibz/1.1.2/images/list.png)
750
753
 
751
754
  Par défaut une liste à pour tag ```<li>```.
752
755
  Mais elle peut se transformer en lien ```<a>``` à travers l'option ```type:```.
@@ -767,11 +770,11 @@ list_group do |lg|
767
770
  end
768
771
  ```
769
772
 
770
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/List.html)
773
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/List.html)
771
774
 
772
775
  ### Nav
773
776
 
774
- ![nav](http://hummel.link/Ui-Bibz/images/nav.png)
777
+ ![nav](http://hummel.link/Ui-Bibz/1.1.2/images/nav.png)
775
778
 
776
779
  Par défaut la navigation comporte des onglets "tab".
777
780
  L'élément ```nav``` accepte en option les arguments :
@@ -791,11 +794,11 @@ nav(type: :pills, position: :justified) do |d|
791
794
  end
792
795
  ```
793
796
 
794
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Nav.html)
797
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Nav.html)
795
798
 
796
799
  ### Navbar
797
800
 
798
- ![navbar](http://hummel.link/Ui-Bibz/images/navbar.png)
801
+ ![navbar](http://hummel.link/Ui-Bibz/1.1.2/images/navbar.png)
799
802
 
800
803
  Par défaut la navigation comporte des onglets "tab".
801
804
  L'élément ```navbar``` accepte en option les arguments :
@@ -826,12 +829,12 @@ navbar(type: :inverse, position: :top) do |nb|
826
829
  end
827
830
  ```
828
831
 
829
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Navbar.html)
832
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Navbar.html)
830
833
 
831
834
 
832
835
  ### Etiquette
833
836
 
834
- ![list](http://hummel.link/Ui-Bibz/images/etiquette.png)
837
+ ![list](http://hummel.link/Ui-Bibz/1.1.2/images/etiquette.png)
835
838
 
836
839
 
837
840
  NB : Les méthodes ```Tag, label``` sont déjà utilisées par Rails.
@@ -848,7 +851,7 @@ etiquette 'label 2', state: :success
848
851
  etiquette 'label 2', state: :danger
849
852
  ```
850
853
 
851
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Etiquette.html)
854
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Etiquette.html)
852
855
 
853
856
  ### Row
854
857
 
@@ -861,7 +864,7 @@ end
861
864
  # => <div class='row toto'>content</div>
862
865
  ```
863
866
 
864
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Content.html)
867
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Content.html)
865
868
 
866
869
  ### Col
867
870
 
@@ -892,7 +895,7 @@ end
892
895
  # => <div class='col-xs-offset-1 col-md-3 test'>content</div>
893
896
  ```
894
897
 
895
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Core/Col.html)
898
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Core/Col.html)
896
899
 
897
900
  ### Grid
898
901
 
@@ -958,7 +961,7 @@ grid do |g|
958
961
  end
959
962
  ```
960
963
 
961
- Voir la [doc](http://hummel.link/Ui-Bibz/UiBibz/Ui/Ux/Grid.html)
964
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.2/UiBibz/Ui/Ux/Grid.html)
962
965
 
963
966
  ### Arguments and Values
964
967
 
@@ -1007,13 +1010,18 @@ UiBibz::Ui::Core::Panel.new('Exemple', { state: :success }, { class: 'exemple'})
1007
1010
  panel 'Exemple', { state: :success }, { class: 'exemple' }
1008
1011
  ```
1009
1012
 
1013
+ # Ui Bibz versions
1014
+
1015
+ [Ui Bibz v1.1.0](http://hummel.link/Ui-Bibz/1.1.0/index.html)
1016
+ [Ui Bibz v1.1.1](http://hummel.link/Ui-Bibz/1.1.1/index.html)
1017
+ [Ui Bibz v1.1.2](http://hummel.link/Ui-Bibz/1.1.2/index.html)
1018
+
1010
1019
  # Roadmap
1011
1020
 
1012
1021
  Pour la V2.
1013
1022
 
1014
1023
  * créer des stores pour les listes, breadcrumb
1015
1024
  * créer d'autres extensions, plugins et une guideline
1016
- * donner le choix de la dépendence boostrap et awesomefont en CDN ou en local
1017
1025
  * mise à jour vers bootstrap 4
1018
1026
  ...
1019
1027