ui_bibz 1.1.3 → 1.1.4

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 (77) hide show
  1. checksums.yaml +8 -8
  2. data/.yardoc/checksums +3 -3
  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 +46 -43
  7. data/doc/UiBibz.html +2 -2
  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 +5 -5
  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 +1 -1
  21. data/doc/UiBibz/Ui/Core.html +1 -1
  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 +1 -1
  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 +1 -1
  31. data/doc/UiBibz/Ui/Core/Col.html +1 -1
  32. data/doc/UiBibz/Ui/Core/Component.html +1 -1
  33. data/doc/UiBibz/Ui/Core/Dropdown.html +1 -1
  34. data/doc/UiBibz/Ui/Core/DropdownDivider.html +1 -1
  35. data/doc/UiBibz/Ui/Core/DropdownHeader.html +1 -1
  36. data/doc/UiBibz/Ui/Core/DropdownLink.html +1 -1
  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 +1 -1
  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 +1 -1
  54. data/doc/UiBibz/Ui/Ux/Actionable.html +1 -1
  55. data/doc/UiBibz/Ui/Ux/Actions.html +1 -1
  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 +1 -1
  71. data/doc/file.README.html +47 -44
  72. data/doc/index.html +47 -44
  73. data/doc/top-level-namespace.html +1 -1
  74. data/lib/ui_bibz/concerns/models/searchable.rb +7 -2
  75. data/lib/ui_bibz/ui/ux/table/table_search_field.rb +6 -1
  76. data/lib/ui_bibz/version.rb +1 -1
  77. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDAyNWE5ODQ0OWQxNWIwNDNjZmY4MjM2NTg4ZTc5YTc2MWYzMTJlYQ==
4
+ ODdhNTBiMmYwOWI2NTk4NmZkMDBjMzU0ZTg0ODY1MTllZjRhYzQyZQ==
5
5
  data.tar.gz: !binary |-
6
- ZjBkNGEwOWI4NTY1NzRhMDRlOWMzYTVlZDBiZjU1Y2Q3ZjMzMzE2Zg==
6
+ NDJmZWNiYTYyOGUyYTNiZmJiMDkzMDdmMTQxMGU5Y2U1YTliYjRhOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjZjM2NlZDdiMDY0NjA4MDMxM2Y0MGM0MjEyZjQ2MmVlYmUwNDI0NzczY2M5
10
- YzRhY2ZjZjgxYWE1ZTU1N2FlODY5NjhmZjlhYTQ1YmY0NWIzNmY4NGI5NjBh
11
- NjA5YThkNGFkZjg0Y2VmNDEzMGQ4ODU3ZDg4NTgzYzc5MmE3NDU=
9
+ N2ExNTFkYWY5NWJmZmUzOGQyMWNmM2FmNmExZjdiZGZjMWYwNGY4OWQxOGY4
10
+ ZTM3NzZlMmRmZTU1MWM5ZmIzZDQ5NTRmYzk2YjVjYzM0NTZkNDViYjFhODQ2
11
+ YWViNDYyN2IxZjc1MTk3YzQ4YjY2YTBhNjY2MzllY2IwMDRiNjA=
12
12
  data.tar.gz: !binary |-
13
- NzA0NDk1YzllNjIxMTYxMmY0NzI3ZDViYjY1ZWRmODZjNGE3N2FmMmJkMmY4
14
- NWJlMTJiMDFiYTliZGFhMmVlMmE1M2Q1N2MwOWQ3YjE3MjI2NTI1Mzg1ZjRh
15
- MGU5YjBjODFjYTJjNzZmYzUxMDFmMDBiNjYyZGZkZDI3NTU2ZDE=
13
+ ZWRkYjE1YjllN2UxMThhNjA5ZGJkOWJlNGQ4ZGE2MWE4Yzk3NGM5ZjQ2MjNh
14
+ ODZjOWZiMzE3ZTI0NjhhNGQyOGI2NmRhZGI2N2RiYzkxYThjMTY1NmVhZDU4
15
+ ODMyMzFiZGYyZjkzZDllOWUyMTUxZTg2OGI2OTQ0NTgzMjkzMmE=
data/.yardoc/checksums CHANGED
@@ -1,6 +1,6 @@
1
1
  lib/ui_bibz.rb d87b32c7833f15e5046449ab5ac2c6ec3f6cc084
2
2
  lib/ui_bibz/ui/base.rb a0840e2ee2d49117ac28b51dc89d3d724cfb6747
3
- lib/ui_bibz/version.rb ebf3733fb43ec3deaae249e00616d4134833e48c
3
+ lib/ui_bibz/version.rb 8b25eba7771b2149e8d0a6da160fff2dda34ebae
4
4
  lib/ui_bibz/ui/ux/grid.rb 079a9b94c43980e5ae86b9e4c50499f0153aa345
5
5
  lib/ui_bibz/ui/core/col.rb 657fd5aeed007c9d2848f99f3d7bb4f642bf756c
6
6
  lib/ui_bibz/ui/core/row.rb 539ef1d6caf28cb460671cf3877313b3fc3fd74c
@@ -24,7 +24,7 @@ lib/ui_bibz/ui/core/list/list_group.rb ff0e84c591a84b4ce63db939a37f55c4b97714a9
24
24
  lib/ui_bibz/ui/ux/table/table_panel.rb 8156dd1c99b1b3e4cd8c03e9059ff01c6024c9a9
25
25
  lib/ui_bibz/ui/core/dropdown/dropdown.rb b5c804c45e9d7a1b2b8e38788f031288ebc66749
26
26
  lib/ui_bibz/utils/internationalization.rb 247008bccd7b820cd534082a846a29e5de0063dc
27
- lib/ui_bibz/concerns/models/searchable.rb dd0a2aae11560dc183d4ecf3c3f838e7fa172858
27
+ lib/ui_bibz/concerns/models/searchable.rb e6cd48d3a78570f6fc2ebc907af47cb1d75d7920
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
30
  lib/ui_bibz/ui/core/list/components/list.rb 2717ed6f342dd4ad0c92864425fe8123fb82143f
@@ -34,7 +34,7 @@ lib/ui_bibz/ui/ux/table/components/column.rb da034f1a7f05096ffc03c2f25785bf264e8
34
34
  lib/ui_bibz/ui/core/breadcrumb/breadcrumb.rb 60ca3ffd3ce3f484249bc5d49bcde53b407c33fa
35
35
  lib/ui_bibz/ui/ux/table/components/columns.rb ad81e6a9ce7e30e2a9b6491132ce428f710f056f
36
36
  lib/ui_bibz/ui/core/button/button_dropdown.rb 49f453e7024956cf7b5e0ad9989ecac53c7216b2
37
- lib/ui_bibz/ui/ux/table/table_search_field.rb 766dd07c08bedabb96e38673dc852909c7d76b25
37
+ lib/ui_bibz/ui/ux/table/table_search_field.rb 316b44d19cf88e780ba0cfdefcab8c12806e8fa0
38
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
data/.yardoc/object_types CHANGED
Binary file
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (1.1.3)
4
+ ui_bibz (1.1.4)
5
5
  haml
6
6
  haml-rails
7
7
  rails (~> 4.2.0)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![Ui Bibz logo](http://hummel.link/Ui-Bibz/1.1.3/images/ui-bibz-logo-without-border.gif)
1
+ ![Ui Bibz logo](http://hummel.link/Ui-Bibz/1.1.4/images/ui-bibz-logo-without-border.gif)
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/ui_bibz.svg)](http://badge.fury.io/rb/ui_bibz)
4
4
  [![Build Status](https://travis-ci.org/thooams/Ui-Bibz.svg)](https://travis-ci.org/thooams/Ui-Bibz)
@@ -131,7 +131,7 @@ Placer la ligne suivante dans ```/app/assets/javascripts/applications.js```
131
131
 
132
132
  ### Alert
133
133
 
134
- ![alert](http://hummel.link/Ui-Bibz/1.1.3/images/alert.png)
134
+ ![alert](http://hummel.link/Ui-Bibz/1.1.4/images/alert.png)
135
135
 
136
136
  L'élément ```notify``` à pour ```options``` un Hash acceptant les clefs :
137
137
 
@@ -142,11 +142,11 @@ L'élément ```notify``` à pour ```options``` un Hash acceptant les clefs :
142
142
  notify 'Alert', state: :info, glyph: 'eye'
143
143
  ```
144
144
 
145
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Alert.html)
145
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Alert.html)
146
146
 
147
147
  ### Breadcrumb (fil d'ariane)
148
148
 
149
- ![breadcrumb](http://hummel.link/Ui-Bibz/1.1.3/images/breadcrumb.png)
149
+ ![breadcrumb](http://hummel.link/Ui-Bibz/1.1.4/images/breadcrumb.png)
150
150
 
151
151
  L'élément ```breadcrumb``` à pour enfant l'élément ```link``` qui accepte pour option un Hash avec les clefs :
152
152
 
@@ -164,13 +164,13 @@ breadcrumb do |b|
164
164
  end
165
165
  ```
166
166
 
167
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Breadcrumb.html)
167
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Breadcrumb.html)
168
168
 
169
169
  ### Buttons (Boutons)
170
170
 
171
171
  #### Button
172
172
 
173
- ![button](http://hummel.link/Ui-Bibz/1.1.3/images/button.png)
173
+ ![button](http://hummel.link/Ui-Bibz/1.1.4/images/button.png)
174
174
 
175
175
  L'élément ```button``` à pour ```options``` un Hash acceptant les clefs :
176
176
 
@@ -183,14 +183,14 @@ L'élément ```button``` à pour ```options``` un Hash acceptant les clefs :
183
183
  button 'Button', { state: :danger, size: :xs, glyph: 'star' } , { class: 'my-button' }
184
184
  ```
185
185
 
186
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Button.html)
186
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Button.html)
187
187
 
188
188
  #### Button Dropdown
189
189
 
190
190
  L'élément ```button_dropdown``` accepte pour options les mêmes clefs que l'élément
191
191
  [dropdown](#dropdown).
192
192
 
193
- ![button_link](http://hummel.link/Ui-Bibz/1.1.3/images/button_dropdown.png)
193
+ ![button_link](http://hummel.link/Ui-Bibz/1.1.4/images/button_dropdown.png)
194
194
 
195
195
  ```
196
196
  button_dropdown 'Button Dropdown' do |bd|
@@ -203,11 +203,11 @@ button_dropdown 'Button Dropdown' do |bd|
203
203
  end
204
204
  ```
205
205
 
206
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/ButtonLink.html)
206
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonLink.html)
207
207
 
208
208
  #### Button group
209
209
 
210
- ![button_group](http://hummel.link/Ui-Bibz/1.1.3/images/button_group.png)
210
+ ![button_group](http://hummel.link/Ui-Bibz/1.1.4/images/button_group.png)
211
211
 
212
212
  L'élément ```button_group``` à pour ```options``` un Hash acceptant les clefs :
213
213
 
@@ -239,11 +239,11 @@ button_group do
239
239
  end
240
240
  ```
241
241
 
242
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/ButtonGroup.html)
242
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonGroup.html)
243
243
 
244
244
  #### Button Link (Lien Bouton)
245
245
 
246
- ![button_link](http://hummel.link/Ui-Bibz/1.1.3/images/button_link.png)
246
+ ![button_link](http://hummel.link/Ui-Bibz/1.1.4/images/button_link.png)
247
247
 
248
248
  L'élément ```button_link``` à pour ```options``` un Hash acceptant les clefs :
249
249
 
@@ -251,11 +251,11 @@ L'élément ```button_link``` à pour ```options``` un Hash acceptant les clefs
251
251
  button_link 'Button', { url: '#button', state: :primary, glyph: 'star' }, { class: 'my-button' }
252
252
  ```
253
253
 
254
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/ButtonLink.html)
254
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonLink.html)
255
255
 
256
256
  #### Button Split Dropdown
257
257
 
258
- ![button_group](http://hummel.link/Ui-Bibz/1.1.3/images/button_split_dropdown.png)
258
+ ![button_group](http://hummel.link/Ui-Bibz/1.1.4/images/button_split_dropdown.png)
259
259
 
260
260
  L'élément ```button_split_dropdown```accepte pour options les mêmes clefs
261
261
  que l'élément [dropdown](#dropdown).
@@ -272,7 +272,7 @@ button_split_dropdown 'Dropdown', state: :primary do |d|
272
272
  end
273
273
  ```
274
274
 
275
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/ButtonSplitDropdown.html)
275
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonSplitDropdown.html)
276
276
 
277
277
  ### Dropdown
278
278
 
@@ -309,11 +309,11 @@ d.list '--'
309
309
  ...
310
310
  ```
311
311
 
312
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Dropdown.html)
312
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Dropdown.html)
313
313
 
314
314
  ### Progress Bar
315
315
 
316
- ![glyph](http://hummel.link/Ui-Bibz/1.1.3/images/progress_bar.png)
316
+ ![glyph](http://hummel.link/Ui-Bibz/1.1.4/images/progress_bar.png)
317
317
 
318
318
  L'élément ```progress_bar``` à pour ```options``` un Hash acceptant les clefs :
319
319
 
@@ -341,11 +341,11 @@ progress_bar(tap: true) do |pb|
341
341
  end
342
342
  ```
343
343
 
344
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/ProgressBar.html)
344
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ProgressBar.html)
345
345
 
346
346
  ### Glyph
347
347
 
348
- ![glyph](http://hummel.link/Ui-Bibz/1.1.3/images/glyph.png)
348
+ ![glyph](http://hummel.link/Ui-Bibz/1.1.4/images/glyph.png)
349
349
 
350
350
  Les glyphs utilisés proviennent de [Font Awesome](http://fontawesome.io/).
351
351
  L'élément ```glyph``` peut contenir un hash pour ```content```
@@ -360,11 +360,11 @@ glyph 'star', { size: 3, type: 'fw' }, class: 'star-exemple'
360
360
  glyph { name: 'star', size: 3, type: 'fw' }
361
361
  ```
362
362
 
363
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Glyph.html)
363
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Glyph.html)
364
364
 
365
365
  ### Stars
366
366
 
367
- ![stars](http://hummel.link/Ui-Bibz/1.1.3/images/stars.png)
367
+ ![stars](http://hummel.link/Ui-Bibz/1.1.4/images/stars.png)
368
368
 
369
369
  L'élément ```stars``` à pour ```options``` un Hash acceptant les clefs :
370
370
 
@@ -381,12 +381,12 @@ stars num: 3 do
381
381
  end
382
382
  ```
383
383
 
384
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Stars.html)
384
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Stars.html)
385
385
 
386
386
 
387
387
  ### Panel
388
388
 
389
- ![panel](http://hummel.link/Ui-Bibz/1.1.3/images/panel.png)
389
+ ![panel](http://hummel.link/Ui-Bibz/1.1.4/images/panel.png)
390
390
 
391
391
  L'élément ```panel``` à pour ```options``` un Hash acceptant les clefs :
392
392
 
@@ -413,11 +413,11 @@ panel({ tap: true, state: :danger, table_options: { actionable: true } }, { clas
413
413
  end
414
414
  ```
415
415
 
416
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Panel.html)
416
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Panel.html)
417
417
 
418
418
  ### Table
419
419
 
420
- ![table](http://hummel.link/Ui-Bibz/1.1.3/images/table.png)
420
+ ![table](http://hummel.link/Ui-Bibz/1.1.4/images/table.png)
421
421
 
422
422
  L'élément ```table``` est un tableau composé d'une recherche, une pagination et un trie de colonnes intégrées.
423
423
  Le tableau est compatible [I18n](http://guides.rubyonrails.org/i18n.html).
@@ -453,7 +453,7 @@ searchable_attributes :name_fr, :name_en
453
453
 
454
454
  Un champ recherche est disponible dans la vue :
455
455
 
456
- ![table_search_field](http://hummel.link/Ui-Bibz/1.1.3/images/table_search_field.png)
456
+ ![table_search_field](http://hummel.link/Ui-Bibz/1.1.4/images/table_search_field.png)
457
457
 
458
458
  ```
459
459
  table_search_field store: @documents
@@ -467,7 +467,7 @@ table_pagination store: @documents
467
467
 
468
468
  Un champs select par page est disponible dans la vue :
469
469
 
470
- ![table_search_field](http://hummel.link/Ui-Bibz/1.1.3/images/table_pagination_per_page.png)
470
+ ![table_search_field](http://hummel.link/Ui-Bibz/1.1.4/images/table_pagination_per_page.png)
471
471
 
472
472
  ```
473
473
  table_pagination_per_page store: @documents
@@ -490,13 +490,15 @@ Exemple :
490
490
  ```
491
491
 
492
492
  Dans le **model**, insérer la méthode ```searchable_attributes``` afin de pouvoir
493
- faire une recherche sur les attributs souhaités.
493
+ faire une recherche sur les attributs souhaités. Vous pouvez même faire une
494
+ recherche sur une table différente en insérant un hash avec pour clef le nom du model et en valeur le nom
495
+ de l'attribut recherché.
494
496
 
495
497
  Exemple :
496
498
 
497
499
  ```
498
500
  # app/models/document.rb
499
- searchable_attributes :name_fr, :name_en
501
+ searchable_attributes :name_fr, :name_en, user: :name
500
502
  ```
501
503
 
502
504
  Dans la **vue**, insérer la méthode ```table``` qui peut contenir plusieurs arguments :
@@ -714,11 +716,11 @@ activerecord:
714
716
  ...
715
717
  ```
716
718
 
717
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Ux/Table.html)
719
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Ux/Table.html)
718
720
 
719
721
  ### Table Panel
720
722
 
721
- ![table_panel](http://hummel.link/Ui-Bibz/1.1.3/images/table_panel.png)
723
+ ![table_panel](http://hummel.link/Ui-Bibz/1.1.4/images/table_panel.png)
722
724
 
723
725
  Le composant ```table_panel``` est un [tableau](#table) dans un [panel](#panel).
724
726
 
@@ -745,11 +747,11 @@ table_panel({ store: @users, tap: true, glyph: 'home', state: :danger }) do |g|
745
747
  end
746
748
  ```
747
749
 
748
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Ux/TablePanel.html)
750
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Ux/TablePanel.html)
749
751
 
750
752
  ### List
751
753
 
752
- ![list](http://hummel.link/Ui-Bibz/1.1.3/images/list.png)
754
+ ![list](http://hummel.link/Ui-Bibz/1.1.4/images/list.png)
753
755
 
754
756
  Par défaut une liste à pour tag ```<li>```.
755
757
  Mais elle peut se transformer en lien ```<a>``` à travers l'option ```type:```.
@@ -770,11 +772,11 @@ list_group do |lg|
770
772
  end
771
773
  ```
772
774
 
773
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/List.html)
775
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/List.html)
774
776
 
775
777
  ### Nav
776
778
 
777
- ![nav](http://hummel.link/Ui-Bibz/1.1.3/images/nav.png)
779
+ ![nav](http://hummel.link/Ui-Bibz/1.1.4/images/nav.png)
778
780
 
779
781
  Par défaut la navigation comporte des onglets "tab".
780
782
  L'élément ```nav``` accepte en option les arguments :
@@ -794,11 +796,11 @@ nav(type: :pills, position: :justified) do |d|
794
796
  end
795
797
  ```
796
798
 
797
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Nav.html)
799
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Nav.html)
798
800
 
799
801
  ### Navbar
800
802
 
801
- ![navbar](http://hummel.link/Ui-Bibz/1.1.3/images/navbar.png)
803
+ ![navbar](http://hummel.link/Ui-Bibz/1.1.4/images/navbar.png)
802
804
 
803
805
  Par défaut la navigation comporte des onglets "tab".
804
806
  L'élément ```navbar``` accepte en option les arguments :
@@ -829,12 +831,12 @@ navbar(type: :inverse, position: :top) do |nb|
829
831
  end
830
832
  ```
831
833
 
832
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Navbar.html)
834
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Navbar.html)
833
835
 
834
836
 
835
837
  ### Etiquette
836
838
 
837
- ![list](http://hummel.link/Ui-Bibz/1.1.3/images/etiquette.png)
839
+ ![list](http://hummel.link/Ui-Bibz/1.1.4/images/etiquette.png)
838
840
 
839
841
 
840
842
  NB : Les méthodes ```Tag, label``` sont déjà utilisées par Rails.
@@ -851,7 +853,7 @@ etiquette 'label 2', state: :success
851
853
  etiquette 'label 2', state: :danger
852
854
  ```
853
855
 
854
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Etiquette.html)
856
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Etiquette.html)
855
857
 
856
858
  ### Row
857
859
 
@@ -864,7 +866,7 @@ end
864
866
  # => <div class='row toto'>content</div>
865
867
  ```
866
868
 
867
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Content.html)
869
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Content.html)
868
870
 
869
871
  ### Col
870
872
 
@@ -895,7 +897,7 @@ end
895
897
  # => <div class='col-xs-offset-1 col-md-3 test'>content</div>
896
898
  ```
897
899
 
898
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Core/Col.html)
900
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Col.html)
899
901
 
900
902
  ### Grid
901
903
 
@@ -961,7 +963,7 @@ grid do |g|
961
963
  end
962
964
  ```
963
965
 
964
- Voir la [doc](http://hummel.link/Ui-Bibz/1.1.3/UiBibz/Ui/Ux/Grid.html)
966
+ Voir la [doc](http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Ux/Grid.html)
965
967
 
966
968
  ### Arguments and Values
967
969
 
@@ -1016,6 +1018,7 @@ panel 'Exemple', { state: :success }, { class: 'exemple' }
1016
1018
  * [Ui Bibz v1.1.1](http://hummel.link/Ui-Bibz/1.1.1/index.html)
1017
1019
  * [Ui Bibz v1.1.2](http://hummel.link/Ui-Bibz/1.1.2/index.html)
1018
1020
  * [Ui Bibz v1.1.3](http://hummel.link/Ui-Bibz/1.1.3/index.html)
1021
+ * [Ui Bibz v1.1.4](http://hummel.link/Ui-Bibz/1.1.4/index.html)
1019
1022
 
1020
1023
  # Roadmap
1021
1024
 
data/doc/UiBibz.html CHANGED
@@ -104,7 +104,7 @@
104
104
  <dt id="VERSION-constant" class="">VERSION =
105
105
 
106
106
  </dt>
107
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.1.3</span><span class='tstring_end'>&quot;</span></span></pre></dd>
107
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.1.4</span><span class='tstring_end'>&quot;</span></span></pre></dd>
108
108
 
109
109
  </dl>
110
110
 
@@ -120,7 +120,7 @@
120
120
  </div>
121
121
 
122
122
  <div id="footer">
123
- Generated on Fri Sep 4 16:55:18 2015 by
123
+ Generated on Mon Sep 7 14:49:03 2015 by
124
124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
125
  0.8.7.6 (ruby-1.9.3).
126
126
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Fri Sep 4 16:55:18 2015 by
109
+ Generated on Mon Sep 7 14:49:03 2015 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.6 (ruby-1.9.3).
112
112
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Fri Sep 4 16:55:18 2015 by
109
+ Generated on Mon Sep 7 14:49:03 2015 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.6 (ruby-1.9.3).
112
112
  </div>
@@ -111,7 +111,7 @@
111
111
  </div>
112
112
 
113
113
  <div id="footer">
114
- Generated on Fri Sep 4 16:55:18 2015 by
114
+ Generated on Mon Sep 7 14:49:03 2015 by
115
115
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
116
  0.8.7.6 (ruby-1.9.3).
117
117
  </div>
@@ -145,12 +145,12 @@
145
145
  <pre class="lines">
146
146
 
147
147
 
148
- 111
149
- 112
150
- 113</pre>
148
+ 116
149
+ 117
150
+ 118</pre>
151
151
  </td>
152
152
  <td>
153
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/concerns/models/searchable.rb', line 111</span>
153
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/concerns/models/searchable.rb', line 116</span>
154
154
 
155
155
  <span class='kw'>def</span> <span class='id identifier rubyid_searchable_attributes'>searchable_attributes</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span>
156
156
  <span class='ivar'>@searchable_attributes</span> <span class='op'>||=</span> <span class='id identifier rubyid_args'>args</span>
@@ -165,7 +165,7 @@
165
165
  </div>
166
166
 
167
167
  <div id="footer">
168
- Generated on Fri Sep 4 16:55:18 2015 by
168
+ Generated on Mon Sep 7 14:49:03 2015 by
169
169
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
170
170
  0.8.7.6 (ruby-1.9.3).
171
171
  </div>