ui_bibz 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +8 -8
  2. data/.yardoc/checksums +4 -4
  3. data/.yardoc/objects/root.dat +0 -0
  4. data/Gemfile.lock +1 -1
  5. data/README.md +42 -41
  6. data/doc/UiBibz.html +2 -2
  7. data/doc/UiBibz/Concerns.html +1 -1
  8. data/doc/UiBibz/Concerns/Models.html +1 -1
  9. data/doc/UiBibz/Concerns/Models/Searchable.html +1 -1
  10. data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +5 -5
  11. data/doc/UiBibz/Helpers.html +1 -1
  12. data/doc/UiBibz/Helpers/MetaHelper.html +1 -1
  13. data/doc/UiBibz/Helpers/UiCoreHelper.html +1 -1
  14. data/doc/UiBibz/Helpers/UiUxHelper.html +1 -1
  15. data/doc/UiBibz/Helpers/UtilsHelper.html +1 -1
  16. data/doc/UiBibz/Rails.html +1 -1
  17. data/doc/UiBibz/Rails/Engine.html +1 -1
  18. data/doc/UiBibz/Ui.html +1 -1
  19. data/doc/UiBibz/Ui/Base.html +1 -1
  20. data/doc/UiBibz/Ui/Core.html +1 -1
  21. data/doc/UiBibz/Ui/Core/Alert.html +1 -1
  22. data/doc/UiBibz/Ui/Core/Bar.html +1 -1
  23. data/doc/UiBibz/Ui/Core/Breadcrumb.html +1 -1
  24. data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +1 -1
  25. data/doc/UiBibz/Ui/Core/Button.html +1 -1
  26. data/doc/UiBibz/Ui/Core/ButtonDropdown.html +1 -1
  27. data/doc/UiBibz/Ui/Core/ButtonGroup.html +1 -1
  28. data/doc/UiBibz/Ui/Core/ButtonLink.html +1 -1
  29. data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +1 -1
  30. data/doc/UiBibz/Ui/Core/Col.html +1 -1
  31. data/doc/UiBibz/Ui/Core/Component.html +1 -1
  32. data/doc/UiBibz/Ui/Core/Dropdown.html +1 -1
  33. data/doc/UiBibz/Ui/Core/DropdownDivider.html +1 -1
  34. data/doc/UiBibz/Ui/Core/DropdownHeader.html +1 -1
  35. data/doc/UiBibz/Ui/Core/DropdownLink.html +1 -1
  36. data/doc/UiBibz/Ui/Core/Glyph.html +1 -1
  37. data/doc/UiBibz/Ui/Core/Jumbotron.html +1 -1
  38. data/doc/UiBibz/Ui/Core/Label.html +1 -1
  39. data/doc/UiBibz/Ui/Core/List.html +1 -1
  40. data/doc/UiBibz/Ui/Core/ListGroup.html +1 -1
  41. data/doc/UiBibz/Ui/Core/Nav.html +1 -1
  42. data/doc/UiBibz/Ui/Core/NavDropdown.html +1 -1
  43. data/doc/UiBibz/Ui/Core/NavLink.html +1 -1
  44. data/doc/UiBibz/Ui/Core/Navbar.html +1 -1
  45. data/doc/UiBibz/Ui/Core/NavbarForm.html +1 -1
  46. data/doc/UiBibz/Ui/Core/NavbarNav.html +1 -1
  47. data/doc/UiBibz/Ui/Core/NavbarText.html +1 -1
  48. data/doc/UiBibz/Ui/Core/Panel.html +1 -1
  49. data/doc/UiBibz/Ui/Core/ProgressBar.html +1 -1
  50. data/doc/UiBibz/Ui/Core/Row.html +1 -1
  51. data/doc/UiBibz/Ui/Core/Stars.html +1 -1
  52. data/doc/UiBibz/Ui/Ux.html +1 -1
  53. data/doc/UiBibz/Ui/Ux/Actionable.html +1 -1
  54. data/doc/UiBibz/Ui/Ux/Actions.html +34 -34
  55. data/doc/UiBibz/Ui/Ux/Column.html +1 -1
  56. data/doc/UiBibz/Ui/Ux/Columns.html +1 -1
  57. data/doc/UiBibz/Ui/Ux/Grid.html +1 -1
  58. data/doc/UiBibz/Ui/Ux/Paginable.html +1 -1
  59. data/doc/UiBibz/Ui/Ux/Searchable.html +1 -1
  60. data/doc/UiBibz/Ui/Ux/Sortable.html +1 -1
  61. data/doc/UiBibz/Ui/Ux/Store.html +1 -1
  62. data/doc/UiBibz/Ui/Ux/Table.html +1 -1
  63. data/doc/UiBibz/Ui/Ux/TablePagination.html +1 -1
  64. data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +1 -1
  65. data/doc/UiBibz/Ui/Ux/TablePanel.html +1 -1
  66. data/doc/UiBibz/Ui/Ux/TableSearchField.html +1 -1
  67. data/doc/UiBibz/Utils.html +1 -1
  68. data/doc/UiBibz/Utils/Internationalization.html +1 -1
  69. data/doc/_index.html +1 -1
  70. data/doc/file.README.html +43 -42
  71. data/doc/index.html +43 -42
  72. data/doc/top-level-namespace.html +1 -1
  73. data/lib/ui_bibz/concerns/models/searchable.rb +6 -4
  74. data/lib/ui_bibz/ui/ux/table/components/actions.rb +3 -0
  75. data/lib/ui_bibz/ui/ux/table/extensions/sortable.rb +1 -0
  76. data/lib/ui_bibz/version.rb +1 -1
  77. data/test/ui/table_test.rb +2 -2
  78. metadata +2 -2
@@ -61,7 +61,7 @@
61
61
 
62
62
  <iframe id="search_frame"></iframe>
63
63
 
64
- <div id="content"><div id='filecontents'><p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/ui-bibz-logo-without-border.gif" alt="Ui Bibz logo"></p>
64
+ <div id="content"><div id='filecontents'><p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/ui-bibz-logo-without-border.gif" alt="Ui Bibz logo"></p>
65
65
 
66
66
  <p><a href="http://badge.fury.io/rb/ui_bibz"><img src="https://badge.fury.io/rb/ui_bibz.svg" alt="Gem Version"></a>
67
67
  <a href="https://travis-ci.org/thooams/Ui-Bibz"><img src="https://travis-ci.org/thooams/Ui-Bibz.svg" alt="Build Status"></a>
@@ -193,7 +193,7 @@ application ces 3-4 lignes:</p>
193
193
 
194
194
  <h3>Alert</h3>
195
195
 
196
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/alert.png" alt="alert"></p>
196
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/alert.png" alt="alert"></p>
197
197
 
198
198
  <p>L&#39;élément <code>notify</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
199
199
 
@@ -205,11 +205,11 @@ application ces 3-4 lignes:</p>
205
205
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_notify'>notify</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Alert</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:info</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>eye</span><span class='tstring_end'>'</span></span>
206
206
  </code></pre>
207
207
 
208
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Alert.html">doc</a></p>
208
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Alert.html">doc</a></p>
209
209
 
210
210
  <h3>Breadcrumb (fil d&#39;ariane)</h3>
211
211
 
212
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/breadcrumb.png" alt="breadcrumb"></p>
212
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/breadcrumb.png" alt="breadcrumb"></p>
213
213
 
214
214
  <p>L&#39;élément <code>breadcrumb</code> à pour enfant l&#39;élément <code>link</code> qui accepte pour option un Hash avec les clefs :</p>
215
215
 
@@ -228,13 +228,13 @@ application ces 3-4 lignes:</p>
228
228
  <span class='kw'>end</span>
229
229
  </code></pre>
230
230
 
231
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Breadcrumb.html">doc</a></p>
231
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Breadcrumb.html">doc</a></p>
232
232
 
233
233
  <h3>Buttons (Boutons)</h3>
234
234
 
235
235
  <h4>Button</h4>
236
236
 
237
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/button.png" alt="button"></p>
237
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/button.png" alt="button"></p>
238
238
 
239
239
  <p>L&#39;élément <code>button</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
240
240
 
@@ -248,14 +248,14 @@ application ces 3-4 lignes:</p>
248
248
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button'>button</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>state:</span> <span class='symbol'>:danger</span><span class='comma'>,</span> <span class='label'>size:</span> <span class='symbol'>:xs</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>star</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span> <span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>my-button</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
249
249
  </code></pre>
250
250
 
251
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Button.html">doc</a></p>
251
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Button.html">doc</a></p>
252
252
 
253
253
  <h4>Button Dropdown</h4>
254
254
 
255
255
  <p>L&#39;élément <code>button_dropdown</code> accepte pour options les mêmes clefs que l&#39;élément
256
256
  <a href="#dropdown">dropdown</a>.</p>
257
257
 
258
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/button_dropdown.png" alt="button_link"></p>
258
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/button_dropdown.png" alt="button_link"></p>
259
259
 
260
260
  <pre class="code ruby"><code class="ruby">button_dropdown 'Button Dropdown' do |bd|
261
261
  bd.link Link 1', '#'
@@ -267,11 +267,11 @@ application ces 3-4 lignes:</p>
267
267
  end
268
268
  </code></pre>
269
269
 
270
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
270
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
271
271
 
272
272
  <h4>Button group</h4>
273
273
 
274
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/button_group.png" alt="button_group"></p>
274
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/button_group.png" alt="button_group"></p>
275
275
 
276
276
  <p>L&#39;élément <code>button_group</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
277
277
 
@@ -306,22 +306,22 @@ end
306
306
  <span class='kw'>end</span>
307
307
  </code></pre>
308
308
 
309
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonGroup.html">doc</a></p>
309
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/ButtonGroup.html">doc</a></p>
310
310
 
311
311
  <h4>Button Link (Lien Bouton)</h4>
312
312
 
313
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/button_link.png" alt="button_link"></p>
313
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/button_link.png" alt="button_link"></p>
314
314
 
315
315
  <p>L&#39;élément <code>button_link</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
316
316
 
317
317
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_button_link'>button_link</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#button</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:primary</span><span class='comma'>,</span> <span class='label'>glyph:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>star</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='lbrace'>{</span> <span class='label'>class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>my-button</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
318
318
  </code></pre>
319
319
 
320
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
320
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/ButtonLink.html">doc</a></p>
321
321
 
322
322
  <h4>Button Split Dropdown</h4>
323
323
 
324
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/button_split_dropdown.png" alt="button_group"></p>
324
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/button_split_dropdown.png" alt="button_group"></p>
325
325
 
326
326
  <p>L&#39;élément <code>button_split_dropdown</code>accepte pour options les mêmes clefs
327
327
  que l&#39;élément <a href="#dropdown">dropdown</a>.</p>
@@ -337,7 +337,7 @@ que l&#39;élément <a href="#dropdown">dropdown</a>.</p>
337
337
  <span class='kw'>end</span>
338
338
  </code></pre>
339
339
 
340
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ButtonSplitDropdown.html">doc</a></p>
340
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/ButtonSplitDropdown.html">doc</a></p>
341
341
 
342
342
  <h3>Dropdown</h3>
343
343
 
@@ -376,11 +376,11 @@ d.list '--'
376
376
  ...
377
377
  </code></pre>
378
378
 
379
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Dropdown.html">doc</a></p>
379
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Dropdown.html">doc</a></p>
380
380
 
381
381
  <h3>Progress Bar</h3>
382
382
 
383
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/progress_bar.png" alt="glyph"></p>
383
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/progress_bar.png" alt="glyph"></p>
384
384
 
385
385
  <p>L&#39;élément <code>progress_bar</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
386
386
 
@@ -409,11 +409,11 @@ d.list '--'
409
409
  <span class='kw'>end</span>
410
410
  </code></pre>
411
411
 
412
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/ProgressBar.html">doc</a></p>
412
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/ProgressBar.html">doc</a></p>
413
413
 
414
414
  <h3>Glyph</h3>
415
415
 
416
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/glyph.png" alt="glyph"></p>
416
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/glyph.png" alt="glyph"></p>
417
417
 
418
418
  <p>Les glyphs utilisés proviennent de <a href="http://fontawesome.io/">Font Awesome</a>.
419
419
  L&#39;élément <code>glyph</code> peut contenir un hash pour <code>content</code>
@@ -429,11 +429,11 @@ L&#39;élément <code>glyph</code> à pour <code>options</code> un Hash acceptan
429
429
  glyph { name: 'star', size: 3, type: 'fw' }
430
430
  </code></pre>
431
431
 
432
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Glyph.html">doc</a></p>
432
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Glyph.html">doc</a></p>
433
433
 
434
434
  <h3>Stars</h3>
435
435
 
436
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/stars.png" alt="stars"></p>
436
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/stars.png" alt="stars"></p>
437
437
 
438
438
  <p>L&#39;élément <code>stars</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
439
439
 
@@ -451,11 +451,11 @@ glyph { name: 'star', size: 3, type: 'fw' }
451
451
  <span class='kw'>end</span>
452
452
  </code></pre>
453
453
 
454
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Stars.html">doc</a></p>
454
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Stars.html">doc</a></p>
455
455
 
456
456
  <h3>Panel</h3>
457
457
 
458
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/panel.png" alt="panel"></p>
458
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/panel.png" alt="panel"></p>
459
459
 
460
460
  <p>L&#39;élément <code>panel</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
461
461
 
@@ -483,11 +483,11 @@ panel({ tap: true, state: :danger, table_options: { actionable: true } }, { clas
483
483
  end
484
484
  </code></pre>
485
485
 
486
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Panel.html">doc</a></p>
486
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Panel.html">doc</a></p>
487
487
 
488
488
  <h3>Table</h3>
489
489
 
490
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/table.png" alt="table"></p>
490
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/table.png" alt="table"></p>
491
491
 
492
492
  <p>L&#39;élément <code>table</code> est un tableau composé d&#39;une recherche, une pagination et un trie de colonnes intégrées.
493
493
  Le tableau est compatible <a href="http://guides.rubyonrails.org/i18n.html">I18n</a>.
@@ -523,7 +523,7 @@ faire une recherche sur les attributs souhaités.</p>
523
523
 
524
524
  <p>Un champ recherche est disponible dans la vue :</p>
525
525
 
526
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/table_search_field.png" alt="table_search_field"></p>
526
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/table_search_field.png" alt="table_search_field"></p>
527
527
 
528
528
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_table_search_field'>table_search_field</span> <span class='label'>store:</span> <span class='ivar'>@documents</span>
529
529
  </code></pre>
@@ -535,7 +535,7 @@ faire une recherche sur les attributs souhaités.</p>
535
535
 
536
536
  <p>Un champs select par page est disponible dans la vue :</p>
537
537
 
538
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/table_pagination_per_page.png" alt="table_search_field"></p>
538
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/table_pagination_per_page.png" alt="table_search_field"></p>
539
539
 
540
540
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_table_pagination_per_page'>table_pagination_per_page</span> <span class='label'>store:</span> <span class='ivar'>@documents</span>
541
541
  </code></pre>
@@ -785,11 +785,11 @@ activerecord:
785
785
  ...
786
786
  </code></pre>
787
787
 
788
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Ux/Table.html">doc</a></p>
788
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Ux/Table.html">doc</a></p>
789
789
 
790
790
  <h3>Table Panel</h3>
791
791
 
792
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/table_panel.png" alt="table_panel"></p>
792
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/table_panel.png" alt="table_panel"></p>
793
793
 
794
794
  <p>Le composant <code>table_panel</code> est un <a href="#table">tableau</a> dans un <a href="#panel">panel</a>.</p>
795
795
 
@@ -815,11 +815,11 @@ table_panel({ store: @users, tap: true, glyph: 'home', state: :danger }) do |g|
815
815
  end
816
816
  </code></pre>
817
817
 
818
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Ux/TablePanel.html">doc</a></p>
818
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Ux/TablePanel.html">doc</a></p>
819
819
 
820
820
  <h3>List</h3>
821
821
 
822
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/list.png" alt="list"></p>
822
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/list.png" alt="list"></p>
823
823
 
824
824
  <p>Par défaut une liste à pour tag <code>&lt;li&gt;</code>.
825
825
  Mais elle peut se transformer en lien <code>&lt;a&gt;</code> à travers l&#39;option <code>type:</code>.
@@ -839,11 +839,11 @@ Par défaut le tag <code>&lt;li&gt;</code> est présent.</p>
839
839
  <span class='kw'>end</span>
840
840
  </code></pre>
841
841
 
842
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/List.html">doc</a></p>
842
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/List.html">doc</a></p>
843
843
 
844
844
  <h3>Nav</h3>
845
845
 
846
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/nav.png" alt="nav"></p>
846
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/nav.png" alt="nav"></p>
847
847
 
848
848
  <p>Par défaut la navigation comporte des onglets &quot;tab&quot;.
849
849
  L&#39;élément <code>nav</code> accepte en option les arguments :</p>
@@ -864,11 +864,11 @@ L&#39;élément <code>nav</code> accepte en option les arguments :</p>
864
864
  <span class='kw'>end</span>
865
865
  </code></pre>
866
866
 
867
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Nav.html">doc</a></p>
867
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Nav.html">doc</a></p>
868
868
 
869
869
  <h3>Navbar</h3>
870
870
 
871
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/navbar.png" alt="navbar"></p>
871
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/navbar.png" alt="navbar"></p>
872
872
 
873
873
  <p>Par défaut la navigation comporte des onglets &quot;tab&quot;.
874
874
  L&#39;élément <code>navbar</code> accepte en option les arguments :</p>
@@ -902,11 +902,11 @@ L&#39;élément <code>navbar</code> accepte en option les arguments :</p>
902
902
  <span class='kw'>end</span>
903
903
  </code></pre>
904
904
 
905
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Navbar.html">doc</a></p>
905
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Navbar.html">doc</a></p>
906
906
 
907
907
  <h3>Etiquette</h3>
908
908
 
909
- <p><img src="http://hummel.link/Ui-Bibz/1.1.4/images/etiquette.png" alt="list"></p>
909
+ <p><img src="http://hummel.link/Ui-Bibz/1.1.5/images/etiquette.png" alt="list"></p>
910
910
 
911
911
  <p>NB : Les méthodes <code>Tag, label</code> sont déjà utilisées par Rails.
912
912
  L&#39;élément <code>etiquette</code> à pour <code>options</code> un Hash acceptant les clefs :</p>
@@ -923,7 +923,7 @@ L&#39;élément <code>etiquette</code> à pour <code>options</code> un Hash acce
923
923
  <span class='id identifier rubyid_etiquette'>etiquette</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label 2</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>state:</span> <span class='symbol'>:danger</span>
924
924
  </code></pre>
925
925
 
926
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Etiquette.html">doc</a></p>
926
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Etiquette.html">doc</a></p>
927
927
 
928
928
  <h3>Row</h3>
929
929
 
@@ -935,7 +935,7 @@ L&#39;élément <code>etiquette</code> à pour <code>options</code> un Hash acce
935
935
  <span class='comment'># =&gt; &lt;div class='row toto'&gt;content&lt;/div&gt;
936
936
  </span></code></pre>
937
937
 
938
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Content.html">doc</a></p>
938
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Content.html">doc</a></p>
939
939
 
940
940
  <h3>Col</h3>
941
941
 
@@ -968,7 +968,7 @@ col.</p>
968
968
  <span class='comment'># =&gt; &lt;div class='col-xs-offset-1 col-md-3 test'&gt;content&lt;/div&gt;
969
969
  </span></code></pre>
970
970
 
971
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Core/Col.html">doc</a></p>
971
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Core/Col.html">doc</a></p>
972
972
 
973
973
  <h3>Grid</h3>
974
974
 
@@ -1037,7 +1037,7 @@ le nombre de colonnes occupées par la vue.</p>
1037
1037
  <span class='kw'>end</span>
1038
1038
  </code></pre>
1039
1039
 
1040
- <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.4/UiBibz/Ui/Ux/Grid.html">doc</a></p>
1040
+ <p>Voir la <a href="http://hummel.link/Ui-Bibz/1.1.5/UiBibz/Ui/Ux/Grid.html">doc</a></p>
1041
1041
 
1042
1042
  <h3>Arguments and Values</h3>
1043
1043
 
@@ -1104,6 +1104,7 @@ comme ci-dessous.</p>
1104
1104
  <li><a href="http://hummel.link/Ui-Bibz/1.1.2/index.html">Ui Bibz v1.1.2</a></li>
1105
1105
  <li><a href="http://hummel.link/Ui-Bibz/1.1.3/index.html">Ui Bibz v1.1.3</a></li>
1106
1106
  <li><a href="http://hummel.link/Ui-Bibz/1.1.4/index.html">Ui Bibz v1.1.4</a></li>
1107
+ <li><a href="http://hummel.link/Ui-Bibz/1.1.5/index.html">Ui Bibz v1.1.5</a></li>
1107
1108
  </ul>
1108
1109
 
1109
1110
  <h1>Roadmap</h1>
@@ -1119,7 +1120,7 @@ comme ci-dessous.</p>
1119
1120
  </div></div>
1120
1121
 
1121
1122
  <div id="footer">
1122
- Generated on Mon Sep 7 14:49:03 2015 by
1123
+ Generated on Wed Sep 9 10:27:08 2015 by
1123
1124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1124
1125
  0.8.7.6 (ruby-1.9.3).
1125
1126
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Mon Sep 7 14:49:03 2015 by
106
+ Generated on Wed Sep 9 10:27:08 2015 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.7.6 (ruby-1.9.3).
109
109
  </div>
@@ -32,9 +32,11 @@ module UiBibz::Concerns::Models::Searchable
32
32
  # If there is more one table in html page
33
33
  def self.initialize_params
34
34
  unless self.is_good_store_id?
35
- @params[:search] = nil
36
- @params[:per_page] = nil
37
- @params[:page] = nil
35
+ @params[:search] = nil
36
+ @params[:per_page] = nil
37
+ @params[:page] = nil
38
+ @params[:sort] = nil
39
+ @params[:direction] = nil
38
40
  end
39
41
  end
40
42
 
@@ -59,7 +61,7 @@ module UiBibz::Concerns::Models::Searchable
59
61
  sq = "SELECT * FROM (#{ sql.group(table_name + '.id').to_sql }) countable ORDER BY countable.count #{ @params[:direction] || asc }"
60
62
  self.paginate_by_sql(sq, :page => @params[:page], per_page: @session[:per_page])
61
63
  else
62
- sql.order(order_sql).paginate(:page => @params[:page], per_page: @session[:per_page])
64
+ sql.reorder(order_sql).paginate(:page => @params[:page], per_page: @session[:per_page])
63
65
  end
64
66
 
65
67
  end
@@ -1,3 +1,6 @@
1
+ require 'ui_bibz/ui/core/dropdown/components/dropdown_header'
2
+ require 'ui_bibz/ui/core/dropdown/components/dropdown_divider'
3
+ require 'ui_bibz/ui/core/dropdown/components/dropdown_link'
1
4
  module UiBibz::Ui::Ux
2
5
  class Actions
3
6
 
@@ -52,6 +52,7 @@ module UiBibz::Ui::Ux
52
52
  }
53
53
  args = args.merge({ custom_sort: true, column_name: @column.data_index }) if @column.custom_sort
54
54
  args = args.merge({ parent: true }) if @column.parent
55
+ args = args.merge({ store_id: @store.id }) unless @store.id.nil?
55
56
  args
56
57
  end
57
58
 
@@ -1,3 +1,3 @@
1
1
  module UiBibz
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
@@ -24,7 +24,7 @@ class TableTest < ActionView::TestCase
24
24
 
25
25
  test 'table search field' do
26
26
  actual = UiBibz::Ui::Ux::TableSearchField.new({ store: @users}).render
27
- expected = "<form class=\"form-table-search-field\" action=\"/users\" 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=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by name_fr and name_en...\" /><span class=\"clear-search-btn input-group-addon\"><i class=\"glyph fa fa-times-circle\"></i></span></div></form>"
27
+ expected = "<form class=\"form-table-search-field\" action=\"/users\" 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=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><span class=\"clear-search-btn input-group-addon\"><i class=\"glyph fa fa-times-circle\"></i></span></div></form>"
28
28
 
29
29
  assert_equal expected, actual
30
30
  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::Searchable.new(@store, options).render
99
- expected = "<div><div class=\"title\">Users list</div><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=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by name_fr and name_en...\" /><span class=\"clear-search-btn input-group-addon\"><i class=\"glyph fa fa-times-circle\"></i></span></div><br class=\"ui-bibz-clear\" /></div>"
99
+ expected = "<div><div class=\"title\">Users list</div><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=\"search\" value=\"Name fr\" name=\"search\" class=\"form-control\" placeholder=\"Search by Name fr and Name en...\" /><span class=\"clear-search-btn input-group-addon\"><i class=\"glyph fa fa-times-circle\"></i></span></div><br class=\"ui-bibz-clear\" /></div>"
100
100
 
101
101
  assert_equal expected, actual
102
102
  end
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: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-07 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails