patternfly-sass 3.13.0 → 3.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/patternfly-functions.js +1137 -0
  3. data/assets/javascripts/patternfly-functions.min.js +1 -0
  4. data/assets/javascripts/patternfly-settings.js +506 -0
  5. data/assets/javascripts/patternfly-settings.min.js +1 -0
  6. data/assets/javascripts/patternfly.dataTables.pfEmpty.js +244 -0
  7. data/assets/javascripts/patternfly.dataTables.pfEmpty.min.js +1 -0
  8. data/assets/javascripts/patternfly.dataTables.pfFilter.js +421 -0
  9. data/assets/javascripts/patternfly.dataTables.pfFilter.min.js +1 -0
  10. data/assets/javascripts/patternfly.dataTables.pfResize.js +214 -0
  11. data/assets/javascripts/patternfly.dataTables.pfResize.min.js +1 -0
  12. data/assets/javascripts/patternfly.dataTables.pfSelect.js +281 -0
  13. data/assets/javascripts/patternfly.dataTables.pfSelect.min.js +1 -0
  14. data/assets/javascripts/patternfly.js +692 -652
  15. data/assets/javascripts/patternfly.min.js +2 -2
  16. data/assets/stylesheets/_patternfly.scss +1 -0
  17. data/assets/stylesheets/patternfly/_datatables.scss +17 -49
  18. data/assets/stylesheets/patternfly/_table-view.scss +170 -0
  19. data/bower.json +1 -1
  20. data/lib/patternfly-sass/version.rb +2 -2
  21. data/package.json +70 -0
  22. data/spec/html/about-modal.html +1 -0
  23. data/spec/html/accordions.html +1 -0
  24. data/spec/html/alerts.html +1 -0
  25. data/spec/html/area-charts.html +1 -0
  26. data/spec/html/badges.html +1 -0
  27. data/spec/html/bar-charts.html +1 -0
  28. data/spec/html/basic.html +368 -418
  29. data/spec/html/blank-slate.html +2 -1
  30. data/spec/html/bootstrap-combobox.html +1 -0
  31. data/spec/html/bootstrap-datepicker.html +1 -0
  32. data/spec/html/bootstrap-select.html +1 -0
  33. data/spec/html/bootstrap-switch.html +1 -0
  34. data/spec/html/bootstrap-touchspin.html +1 -0
  35. data/spec/html/bootstrap-treeview-2.html +1 -0
  36. data/spec/html/bootstrap-treeview.html +1 -0
  37. data/spec/html/breadcrumbs.html +1 -0
  38. data/spec/html/buttons.html +1 -0
  39. data/spec/html/card-view-card-variations.html +1 -0
  40. data/spec/html/card-view-multi-select.html +1 -0
  41. data/spec/html/card-view-single-select.html +1 -0
  42. data/spec/html/cards.html +1 -0
  43. data/spec/html/code.html +1 -0
  44. data/spec/html/dashboard.html +1 -0
  45. data/spec/html/dist/css/patternfly-additions.css +143 -52
  46. data/spec/html/dist/css/patternfly-additions.css.map +1 -1
  47. data/spec/html/dist/css/patternfly-additions.min.css +1 -1
  48. data/spec/html/dist/css/patternfly-additions.min.css.map +1 -1
  49. data/spec/html/dist/css/patternfly.min.css +2 -2
  50. data/spec/html/dist/css/patternfly.min.css.map +1 -1
  51. data/spec/html/donut-charts.html +1 -0
  52. data/spec/html/dropdowns.html +1 -0
  53. data/spec/html/form.html +1 -0
  54. data/spec/html/forms.html +1 -0
  55. data/spec/html/horizontal-navigation.html +1 -0
  56. data/spec/html/icons.html +1 -0
  57. data/spec/html/index.html +10 -6
  58. data/spec/html/infotip.html +1 -0
  59. data/spec/html/labels.html +1 -0
  60. data/spec/html/line-charts.html +1 -0
  61. data/spec/html/list-group.html +1 -0
  62. data/spec/html/list-view-compound-expansion.html +1 -0
  63. data/spec/html/list-view-rows.html +1 -0
  64. data/spec/html/list-view-simple-expansion.html +1 -0
  65. data/spec/html/list-view.html +1 -0
  66. data/spec/html/login.html +1 -0
  67. data/spec/html/modals.html +1 -0
  68. data/spec/html/navbar.html +1 -0
  69. data/spec/html/notification-drawer-horizontal-nav.html +1 -0
  70. data/spec/html/notification-drawer-vertical-nav.html +1 -0
  71. data/spec/html/pagination.html +1 -0
  72. data/spec/html/panels.html +1 -0
  73. data/spec/html/pie-charts.html +1 -0
  74. data/spec/html/popovers.html +1 -0
  75. data/spec/html/progress-bars.html +1 -0
  76. data/spec/html/search.html +1 -0
  77. data/spec/html/spinner.html +1 -0
  78. data/spec/html/tab.html +373 -420
  79. data/spec/html/{datatables-columns.html → table-view-columns.html} +9 -7
  80. data/spec/html/table-view-navbar.html +532 -0
  81. data/spec/html/table-view.html +422 -0
  82. data/spec/html/tables.html +1 -0
  83. data/spec/html/tabs.html +1 -0
  84. data/spec/html/time-picker.html +1 -0
  85. data/spec/html/toast.html +1 -0
  86. data/spec/html/toolbar.html +1 -0
  87. data/spec/html/tooltip.html +1 -0
  88. data/spec/html/typography-2.html +1 -1
  89. data/spec/html/typography.html +1 -0
  90. data/spec/html/utilization-bar-charts.html +1 -0
  91. data/spec/html/vertical-navigation-primary-only.html +1 -0
  92. data/spec/html/vertical-navigation-with-badges.html +1 -0
  93. data/spec/html/vertical-navigation-with-secondary.html +1 -0
  94. data/spec/html/vertical-navigation-with-tertiary-no-icons.html +1 -0
  95. data/spec/html/vertical-navigation-with-tertiary-pins.html +1 -0
  96. data/spec/html/wizard.html +1 -0
  97. metadata +22 -6
  98. data/spec/html/datatables.html +0 -472
@@ -25,6 +25,7 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
@@ -25,9 +25,15 @@
25
25
  <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
26
  <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
27
  <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
+ <link href="tests.css" rel="stylesheet" media="screen, print">
28
29
  <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
29
30
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
30
31
  <script src="//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
32
+ <script src="//cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js"></script>
33
+ <script src="../../dist/js/patternfly.dataTables.pfEmpty.js"></script>
34
+ <script src="../../dist/js/patternfly.dataTables.pfFilter.js"></script>
35
+ <script src="../../dist/js/patternfly.dataTables.pfResize.js"></script>
36
+ <script src="../../dist/js/patternfly.dataTables.pfSelect.js"></script>
31
37
  <script src="../../dist/js/patternfly.min.js"></script>
32
38
  </head>
33
39
  <div class="toast-notifications-list-pf">
@@ -144,435 +150,379 @@
144
150
  <li>Basic</li>
145
151
  </ol>
146
152
  <h1>Basic</h1>
147
- <table class="datatable table table-striped table-bordered">
153
+ <!-- Toolbar -->
154
+ <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
155
+ <div class="col-sm-12">
156
+ <form class="toolbar-pf-actions">
157
+ <div class="form-group toolbar-pf-filter">
158
+ <label class="sr-only" for="filter">Rendering Engine</label>
159
+ <div class="input-group">
160
+ <div class="input-group-btn">
161
+ <button type="button" class="btn btn-default dropdown-toggle" id="filter" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Rendering Engine <span class="caret"></span></button>
162
+ <ul class="dropdown-menu">
163
+ <li><a href="#" id="filter1">Rendering Engine</a></li>
164
+ <li><a href="#" id="filter2">Browser</a></li>
165
+ <li><a href="#" id="filter3">Platform(s)</a></li>
166
+ <li><a href="#" id="filter4">Engine Version</a></li>
167
+ <li><a href="#" id="filter5">CSS Grade</a></li>
168
+ </ul>
169
+ </div>
170
+ <input type="text" class="form-control" placeholder="Filter By Rendering Engine..." autocomplete="off" id="filterInput">
171
+ </div>
172
+ </div>
173
+ <div class="form-group">
174
+ <button class="btn btn-default" type="button" id="deleteRows1">Delete Rows</button>
175
+ <button class="btn btn-default" type="button" id="restoreRows1" disabled>Restore Rows</button>
176
+ <div class="dropdown btn-group dropdown-kebab-pf">
177
+ <button class="btn btn-link dropdown-toggle" type="button" id="dropdownKebab" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
178
+ <span class="fa fa-ellipsis-v"></span>
179
+ </button>
180
+ <ul class="dropdown-menu " aria-labelledby="dropdownKebab">
181
+ <li><a href="#">Action</a></li>
182
+ <li><a href="#">Another action</a></li>
183
+ <li><a href="#">Something else here</a></li>
184
+ <li role="separator" class="divider"></li>
185
+ <li><a href="#">Separated link</a></li>
186
+ </ul>
187
+ </div>
188
+
189
+ </div>
190
+ <div class="toolbar-pf-action-right">
191
+ <div class="form-group toolbar-pf-find">
192
+ <button class="btn btn-link btn-find" type="button">
193
+ <span class="fa fa-search"></span>
194
+ </button>
195
+ <div class="find-pf-dropdown-container">
196
+ <input type="text" class="form-control" id="find" placeholder="Find By Keyword...">
197
+ <div class="find-pf-buttons">
198
+ <span class="find-pf-nums">1 of 3</span>
199
+ <button class="btn btn-link" type="button">
200
+ <span class="fa fa-angle-up"></span>
201
+ </button>
202
+ <button class="btn btn-link" type="button">
203
+ <span class="fa fa-angle-down"></span>
204
+ </button>
205
+ <button class="btn btn-link btn-find-close" type="button">
206
+ <span class="pficon pficon-close"></span>
207
+ </button>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ </form>
213
+ <div class="row toolbar-pf-results">
214
+ <div class="col-sm-9">
215
+ <div class="hidden">
216
+ <h5>0 Results</h5>
217
+ <p>Active filters:</p>
218
+ <ul class="list-inline"></ul>
219
+ <p><a href="#">Clear All Filters</a></p>
220
+ </div>
221
+ </div>
222
+ <div class="col-sm-3 table-view-pf-select-results">
223
+ <strong>0</strong> of <strong>0</strong> selected
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+
229
+ <!-- Table HTML -->
230
+ <table class="table table-striped table-bordered table-hover" id="table1">
148
231
  <thead>
149
232
  <tr>
150
- <th>Rendering engine</th>
233
+ <th><label class="sr-only" for="selectAll">Select all rows</label><input type="checkbox" id="selectAll" name="selectAll"></th>
234
+ <th>Rendering Engine</th>
151
235
  <th>Browser</th>
152
236
  <th>Platform(s)</th>
153
- <th>Engine version</th>
154
- <th>CSS grade</th>
237
+ <th>Engine Version</th>
238
+ <th>CSS Grade</th>
239
+ <th colspan="2">Actions</th>
155
240
  </tr>
156
241
  </thead>
157
- <tbody>
158
- <tr>
159
- <td>Trident</td>
160
- <td>
161
- Internet
162
- Explorer
163
- 4.0
164
- </td>
165
- <td>Win 95+</td>
166
- <td>4</td>
167
- <td>X</td>
168
- </tr>
169
- <tr>
170
- <td>Trident</td>
171
- <td>Internet
172
- Explorer 5.0</td>
173
- <td>Win 95+</td>
174
- <td>5</td>
175
- <td>C</td>
176
- </tr>
177
- <tr>
178
- <td>Trident</td>
179
- <td>Internet
180
- Explorer 5.5</td>
181
- <td>Win 95+</td>
182
- <td>5.5</td>
183
- <td>A</td>
184
- </tr>
185
- <tr>
186
- <td>Trident</td>
187
- <td>Internet
188
- Explorer 6</td>
189
- <td>Win 98+</td>
190
- <td>6</td>
191
- <td>A</td>
192
- </tr>
193
- <tr>
194
- <td>Trident</td>
195
- <td>Internet Explorer 7</td>
196
- <td>Win XP SP2+</td>
197
- <td>7</td>
198
- <td>A</td>
199
- </tr>
200
- <tr>
201
- <td>Trident</td>
202
- <td>AOL browser (AOL desktop)</td>
203
- <td>Win XP</td>
204
- <td>6</td>
205
- <td>A</td>
206
- </tr>
207
- <tr>
208
- <td>Gecko</td>
209
- <td>Firefox 1.0</td>
210
- <td>Win 98+ / OSX.2+</td>
211
- <td>1.7</td>
212
- <td>A</td>
213
- </tr>
214
- <tr>
215
- <td>Gecko</td>
216
- <td>Firefox 1.5</td>
217
- <td>Win 98+ / OSX.2+</td>
218
- <td>1.8</td>
219
- <td>A</td>
220
- </tr>
221
- <tr>
222
- <td>Gecko</td>
223
- <td>Firefox 2.0</td>
224
- <td>Win 98+ / OSX.2+</td>
225
- <td>1.8</td>
226
- <td>A</td>
227
- </tr>
228
- <tr>
229
- <td>Gecko</td>
230
- <td>Firefox 3.0</td>
231
- <td>Win 2k+ / OSX.3+</td>
232
- <td>1.9</td>
233
- <td>A</td>
234
- </tr>
235
- <tr>
236
- <td>Gecko</td>
237
- <td>Camino 1.0</td>
238
- <td>OSX.2+</td>
239
- <td>1.8</td>
240
- <td>A</td>
241
- </tr>
242
- <tr>
243
- <td>Gecko</td>
244
- <td>Camino 1.5</td>
245
- <td>OSX.3+</td>
246
- <td>1.8</td>
247
- <td>A</td>
248
- </tr>
249
- <tr>
250
- <td>Gecko</td>
251
- <td>Netscape 7.2</td>
252
- <td>Win 95+ / Mac OS 8.6-9.2</td>
253
- <td>1.7</td>
254
- <td>A</td>
255
- </tr>
256
- <tr>
257
- <td>Gecko</td>
258
- <td>Netscape Browser 8</td>
259
- <td>Win 98SE+</td>
260
- <td>1.7</td>
261
- <td>A</td>
262
- </tr>
263
- <tr>
264
- <td>Gecko</td>
265
- <td>Netscape Navigator 9</td>
266
- <td>Win 98+ / OSX.2+</td>
267
- <td>1.8</td>
268
- <td>A</td>
269
- </tr>
270
- <tr>
271
- <td>Gecko</td>
272
- <td>Mozilla 1.0</td>
273
- <td>Win 95+ / OSX.1+</td>
274
- <td>1</td>
275
- <td>A</td>
276
- </tr>
277
- <tr>
278
- <td>Gecko</td>
279
- <td>Mozilla 1.1</td>
280
- <td>Win 95+ / OSX.1+</td>
281
- <td>1.1</td>
282
- <td>A</td>
283
- </tr>
284
- <tr>
285
- <td>Gecko</td>
286
- <td>Mozilla 1.2</td>
287
- <td>Win 95+ / OSX.1+</td>
288
- <td>1.2</td>
289
- <td>A</td>
290
- </tr>
291
- <tr>
292
- <td>Gecko</td>
293
- <td>Mozilla 1.3</td>
294
- <td>Win 95+ / OSX.1+</td>
295
- <td>1.3</td>
296
- <td>A</td>
297
- </tr>
298
- <tr>
299
- <td>Gecko</td>
300
- <td>Mozilla 1.4</td>
301
- <td>Win 95+ / OSX.1+</td>
302
- <td>1.4</td>
303
- <td>A</td>
304
- </tr>
305
- <tr>
306
- <td>Gecko</td>
307
- <td>Mozilla 1.5</td>
308
- <td>Win 95+ / OSX.1+</td>
309
- <td>1.5</td>
310
- <td>A</td>
311
- </tr>
312
- <tr>
313
- <td>Gecko</td>
314
- <td>Mozilla 1.6</td>
315
- <td>Win 95+ / OSX.1+</td>
316
- <td>1.6</td>
317
- <td>A</td>
318
- </tr>
319
- <tr>
320
- <td>Gecko</td>
321
- <td>Mozilla 1.7</td>
322
- <td>Win 98+ / OSX.1+</td>
323
- <td>1.7</td>
324
- <td>A</td>
325
- </tr>
326
- <tr>
327
- <td>Gecko</td>
328
- <td>Mozilla 1.8</td>
329
- <td>Win 98+ / OSX.1+</td>
330
- <td>1.8</td>
331
- <td>A</td>
332
- </tr>
333
- <tr>
334
- <td>Gecko</td>
335
- <td>Seamonkey 1.1</td>
336
- <td>Win 98+ / OSX.2+</td>
337
- <td>1.8</td>
338
- <td>A</td>
339
- </tr>
340
- <tr>
341
- <td>Gecko</td>
342
- <td>Epiphany 2.20</td>
343
- <td>Gnome</td>
344
- <td>1.8</td>
345
- <td>A</td>
346
- </tr>
347
- <tr>
348
- <td>Webkit</td>
349
- <td>Safari 1.2</td>
350
- <td>OSX.3</td>
351
- <td>125.5</td>
352
- <td>A</td>
353
- </tr>
354
- <tr>
355
- <td>Webkit</td>
356
- <td>Safari 1.3</td>
357
- <td>OSX.3</td>
358
- <td>312.8</td>
359
- <td>A</td>
360
- </tr>
361
- <tr>
362
- <td>Webkit</td>
363
- <td>Safari 2.0</td>
364
- <td>OSX.4+</td>
365
- <td>419.3</td>
366
- <td>A</td>
367
- </tr>
368
- <tr>
369
- <td>Webkit</td>
370
- <td>Safari 3.0</td>
371
- <td>OSX.4+</td>
372
- <td>522.1</td>
373
- <td>A</td>
374
- </tr>
375
- <tr>
376
- <td>Webkit</td>
377
- <td>OmniWeb 5.5</td>
378
- <td>OSX.4+</td>
379
- <td>420</td>
380
- <td>A</td>
381
- </tr>
382
- <tr>
383
- <td>Webkit</td>
384
- <td>iPod Touch / iPhone</td>
385
- <td>iPod</td>
386
- <td>420.1</td>
387
- <td>A</td>
388
- </tr>
389
- <tr>
390
- <td>Webkit</td>
391
- <td>S60</td>
392
- <td>S60</td>
393
- <td>413</td>
394
- <td>A</td>
395
- </tr>
396
- <tr>
397
- <td>Presto</td>
398
- <td>Opera 7.0</td>
399
- <td>Win 95+ / OSX.1+</td>
400
- <td>-</td>
401
- <td>A</td>
402
- </tr>
403
- <tr>
404
- <td>Presto</td>
405
- <td>Opera 7.5</td>
406
- <td>Win 95+ / OSX.2+</td>
407
- <td>-</td>
408
- <td>A</td>
409
- </tr>
410
- <tr>
411
- <td>Presto</td>
412
- <td>Opera 8.0</td>
413
- <td>Win 95+ / OSX.2+</td>
414
- <td>-</td>
415
- <td>A</td>
416
- </tr>
417
- <tr>
418
- <td>Presto</td>
419
- <td>Opera 8.5</td>
420
- <td>Win 95+ / OSX.2+</td>
421
- <td>-</td>
422
- <td>A</td>
423
- </tr>
424
- <tr>
425
- <td>Presto</td>
426
- <td>Opera 9.0</td>
427
- <td>Win 95+ / OSX.3+</td>
428
- <td>-</td>
429
- <td>A</td>
430
- </tr>
431
- <tr>
432
- <td>Presto</td>
433
- <td>Opera 9.2</td>
434
- <td>Win 88+ / OSX.3+</td>
435
- <td>-</td>
436
- <td>A</td>
437
- </tr>
438
- <tr>
439
- <td>Presto</td>
440
- <td>Opera 9.5</td>
441
- <td>Win 88+ / OSX.3+</td>
442
- <td>-</td>
443
- <td>A</td>
444
- </tr>
445
- <tr>
446
- <td>Presto</td>
447
- <td>Opera for Wii</td>
448
- <td>Wii</td>
449
- <td>-</td>
450
- <td>A</td>
451
- </tr>
452
- <tr>
453
- <td>Presto</td>
454
- <td>Nokia N800</td>
455
- <td>N800</td>
456
- <td>-</td>
457
- <td>A</td>
458
- </tr>
459
- <tr>
460
- <td>Presto</td>
461
- <td>Nintendo DS browser</td>
462
- <td>Nintendo DS</td>
463
- <td>8.5</td>
464
- <td>C/A<sup>1</sup></td>
465
- </tr>
466
- <tr>
467
- <td>KHTML</td>
468
- <td>Konqureror 3.1</td>
469
- <td>KDE 3.1</td>
470
- <td>3.1</td>
471
- <td>C</td>
472
- </tr>
473
- <tr>
474
- <td>KHTML</td>
475
- <td>Konqureror 3.3</td>
476
- <td>KDE 3.3</td>
477
- <td>3.3</td>
478
- <td>A</td>
479
- </tr>
480
- <tr>
481
- <td>KHTML</td>
482
- <td>Konqureror 3.5</td>
483
- <td>KDE 3.5</td>
484
- <td>3.5</td>
485
- <td>A</td>
486
- </tr>
487
- <tr>
488
- <td>Tasman</td>
489
- <td>Internet Explorer 4.5</td>
490
- <td>Mac OS 8-9</td>
491
- <td>-</td>
492
- <td>X</td>
493
- </tr>
494
- <tr>
495
- <td>Tasman</td>
496
- <td>Internet Explorer 5.1</td>
497
- <td>Mac OS 7.6-9</td>
498
- <td>1</td>
499
- <td>C</td>
500
- </tr>
501
- <tr>
502
- <td>Tasman</td>
503
- <td>Internet Explorer 5.2</td>
504
- <td>Mac OS 8-X</td>
505
- <td>1</td>
506
- <td>C</td>
507
- </tr>
508
- <tr>
509
- <td>Misc</td>
510
- <td>NetFront 3.1</td>
511
- <td>Embedded devices</td>
512
- <td>-</td>
513
- <td>C</td>
514
- </tr>
515
- <tr>
516
- <td>Misc</td>
517
- <td>NetFront 3.4</td>
518
- <td>Embedded devices</td>
519
- <td>-</td>
520
- <td>A</td>
521
- </tr>
522
- <tr>
523
- <td>Misc</td>
524
- <td>Dillo 0.8</td>
525
- <td>Embedded devices</td>
526
- <td>-</td>
527
- <td>X</td>
528
- </tr>
529
- <tr>
530
- <td>Misc</td>
531
- <td>Links</td>
532
- <td>Text only</td>
533
- <td>-</td>
534
- <td>X</td>
535
- </tr>
536
- <tr>
537
- <td>Misc</td>
538
- <td>Lynx</td>
539
- <td>Text only</td>
540
- <td>-</td>
541
- <td>X</td>
542
- </tr>
543
- <tr>
544
- <td>Misc</td>
545
- <td>IE Mobile</td>
546
- <td>Windows Mobile 6</td>
547
- <td>-</td>
548
- <td>C</td>
549
- </tr>
550
- <tr>
551
- <td>Misc</td>
552
- <td>PSP browser</td>
553
- <td>PSP</td>
554
- <td>-</td>
555
- <td>C</td>
556
- </tr>
557
- <tr>
558
- <td>Other browsers</td>
559
- <td>All others</td>
560
- <td>-</td>
561
- <td>-</td>
562
- <td>U</td>
563
- </tr>
564
- </tbody>
565
242
  </table>
243
+
244
+ <!-- Blank Slate HTML -->
245
+ <div class="blank-slate-pf table-view-pf-empty hidden" id="emptyState1">
246
+ <div class="blank-slate-pf-icon">
247
+ <span class="pficon pficon pficon-add-circle-o"></span>
248
+ </div>
249
+ <h1>
250
+ Empty State Title
251
+ </h1>
252
+ <p>
253
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
254
+ </p>
255
+ <p>
256
+ Learn more about this <a href="#">on the documentation</a>.
257
+ </p>
258
+ <div class="blank-slate-pf-main-action">
259
+ <button class="btn btn-primary btn-lg"> Main Action </button>
260
+ </div>
261
+ <div class="blank-slate-pf-secondary-action">
262
+ <button class="btn btn-default"> Secondary Action </button> <button class="btn btn-default"> Secondary Action </button> <button class="btn btn-default"> Secondary Action </button>
263
+ </div>
264
+ </div>
265
+
266
+ <script>
267
+ $(document).ready(function() {
268
+
269
+ // JSON data for Table View
270
+ var dataSet = [{
271
+ engine: "Trident",
272
+ browser: "Internet Explorer 4.0",
273
+ platforms: "Win 95+",
274
+ version: "4",
275
+ grade: "X"
276
+ },{
277
+ engine: "Trident",
278
+ browser: "Internet Explorer 5.0",
279
+ platforms: "Win 95+",
280
+ version: "5",
281
+ grade: "C"
282
+ }, {
283
+ engine: "Trident",
284
+ browser: "Internet Explorer 5.5",
285
+ platforms: "Win 95+",
286
+ version: "5.5",
287
+ grade: "A"
288
+ }, {
289
+ engine: "Trident",
290
+ browser: "Internet Explorer 6",
291
+ platforms: "Win 98+",
292
+ version: "6",
293
+ grade: "A"
294
+ }, {
295
+ engine: "Trident",
296
+ browser: "Internet Explorer 7",
297
+ platforms: "Win XP SP2+",
298
+ version: "7",
299
+ grade: "A"
300
+ }, {
301
+ engine: "Trident",
302
+ browser: "AOL browser (AOL desktop)",
303
+ platforms: "Win XP",
304
+ version: "6",
305
+ grade: "A"
306
+ }, {
307
+ engine: "Gecko",
308
+ browser: "Firefox 1.0",
309
+ platforms: "Win 98+ / OSX.2+",
310
+ version: "1.7",
311
+ grade: "A"
312
+ }, {
313
+ engine: "Gecko",
314
+ browser: "Firefox 1.5",
315
+ platforms: "Win 98+ / OSX.2+",
316
+ version: "1.8",
317
+ grade: "A"
318
+ }, {
319
+ engine: "Gecko",
320
+ browser: "Firefox 2.0",
321
+ platforms: "Win 98+ / OSX.2+",
322
+ version: "1.8",
323
+ grade: "A"
324
+ }, {
325
+ engine: "Gecko",
326
+ browser: "Firefox 3.0",
327
+ platforms: "Win 2k+ / OSX.3+",
328
+ version: "1.9",
329
+ grade: "A"
330
+ }, {
331
+ engine: "Gecko",
332
+ browser: "Camino 1.0",
333
+ platforms: "OSX.2+",
334
+ version: "1.8",
335
+ grade: "A"
336
+ }, {
337
+ engine: "Gecko",
338
+ browser: "Camino 1.5",
339
+ platforms: "OSX.3+",
340
+ version: "1.8",
341
+ grade: "A"
342
+ }, {
343
+ engine: "Gecko",
344
+ browser: "Netscape 7.2",
345
+ platforms: "Win 95+ / Mac OS 8.6-9.2",
346
+ version: "1.7",
347
+ grade: "A"
348
+ }, {
349
+ engine: "Gecko",
350
+ browser: "Netscape Browser 8",
351
+ platforms: "Win 98SE+",
352
+ version: "1.7",
353
+ grade: "A"
354
+ }, {
355
+ engine: "Gecko",
356
+ browser: "Netscape Navigator 9",
357
+ platforms: "Win 98+ / OSX.2+",
358
+ version: "1.8",
359
+ grade: "A"
360
+ }, {
361
+ engine: "Gecko",
362
+ browser: "Mozilla 1.0",
363
+ platforms: "Win 95+ / OSX.1+",
364
+ version: "1",
365
+ grade: "A"
366
+ }, {
367
+ engine: "Gecko",
368
+ browser: "Mozilla 1.1",
369
+ platforms: "Win 95+ / OSX.1+",
370
+ version: "1.1",
371
+ grade: "A"
372
+ }, {
373
+ engine: "Gecko",
374
+ browser: "Mozilla 1.2",
375
+ platforms: "Win 95+ / OSX.1+",
376
+ version: "1.2",
377
+ grade: "A"
378
+ }];
379
+
380
+ // DataTable Config
381
+ $("#table1").DataTable({
382
+ columns: [
383
+ { data: null,
384
+ className: "table-view-pf-select",
385
+ render: function (data, type, full, meta) {
386
+ // Select row checkbox renderer
387
+ var id = "select" + meta.row;
388
+ return '<label class="sr-only" for="' + id + '">Select row ' + meta.row +
389
+ '</label><input type="checkbox" id="' + id + '" name="' + id + '">';
390
+ },
391
+ sortable: false
392
+ },
393
+ { data: "engine" },
394
+ { data: "browser" },
395
+ { data: "platforms" },
396
+ { data: "version" },
397
+ { data: "grade"},
398
+ { data: null,
399
+ className: "table-view-pf-actions",
400
+ render: function (data, type, full, meta) {
401
+ // Inline action button renderer
402
+ return '<div class="table-view-pf-btn"><button class="btn btn-default" type="button">Actions</button></div>';
403
+ }
404
+ }, {
405
+ data: null,
406
+ className: "table-view-pf-actions",
407
+ render: function (data, type, full, meta) {
408
+ // Inline action kebab renderer
409
+ return '<div class="dropdown dropdown-kebab-pf">' +
410
+ '<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">' +
411
+ '<span class="fa fa-ellipsis-v"></span></button>' +
412
+ '<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownKebabRight">' +
413
+ '<li><a href="#">Action</a></li>' +
414
+ '<li><a href="#">Another action</a></li>' +
415
+ '<li><a href="#">Something else here</a></li>' +
416
+ '<li role="separator" class="divider"></li>' +
417
+ '<li><a href="#">Separated link</a></li></ul></div>';
418
+ }
419
+ }
420
+ ],
421
+ data: dataSet,
422
+ dom: "t",
423
+ language: {
424
+ zeroRecords: "No records found"
425
+ },
426
+ order: [[ 1, 'asc' ]],
427
+ pfConfig: {
428
+ emptyStateSelector: "#emptyState1",
429
+ filterCols: [
430
+ null,
431
+ {
432
+ default: true,
433
+ optionSelector: "#filter1",
434
+ placeholder: "Filter By Rendering Engine..."
435
+ }, {
436
+ optionSelector: "#filter2",
437
+ placeholder: "Filter By Browser..."
438
+ }, {
439
+ optionSelector: "#filter3",
440
+ placeholder: "Filter By Platform(s)..."
441
+ }, {
442
+ optionSelector: "#filter4",
443
+ placeholder: "Filter By Engine Version..."
444
+ }, {
445
+ optionSelector: "#filter5",
446
+ placeholder: "Filter By CSS Grade..."
447
+ }
448
+ ],
449
+ toolbarSelector: "#toolbar1",
450
+ selectAllSelector: 'th:first-child input[type="checkbox"]'
451
+ },
452
+ select: {
453
+ selector: 'td:first-child input[type="checkbox"]',
454
+ style: 'multi'
455
+ },
456
+ });
457
+
458
+ /**
459
+ * Utility to show empty Table View
460
+ *
461
+ * @param {object} config - Config properties associated with a Table View
462
+ * @param {object} config.data - Data set for DataTable
463
+ * @param {string} config.deleteRowsSelector - Selector for delete rows control
464
+ * @param {string} config.restoreRowsSelector - Selector for restore rows control
465
+ * @param {string} config.tableSelector - Selector for the HTML table
466
+ */
467
+ var emptyTableViewUtil = function (config) {
468
+ var self = this;
469
+
470
+ this.dt = $(config.tableSelector).DataTable(); // DataTable
471
+ this.deleteRows = $(config.deleteRowsSelector); // Delete rows control
472
+ this.restoreRows = $(config.restoreRowsSelector); // Restore rows control
473
+
474
+ // Handle click on delete rows control
475
+ this.deleteRows.on('click', function() {
476
+ self.dt.clear().draw();
477
+ $(self.restoreRows).prop("disabled", false);
478
+ });
479
+
480
+ // Handle click on restore rows control
481
+ this.restoreRows.on('click', function() {
482
+ self.dt.rows.add(config.data).draw();
483
+ $(this).prop("disabled", true);
484
+ });
485
+
486
+ // Initialize restore rows
487
+ if (this.dt.data().length === 0) {
488
+ $(this.restoreRows).prop("disabled", false);
489
+ }
490
+ };
491
+
492
+ // Initialize empty Table View util
493
+ new emptyTableViewUtil({
494
+ data: dataSet,
495
+ deleteRowsSelector: "#deleteRows1",
496
+ restoreRowsSelector: "#restoreRows1",
497
+ tableSelector: "#table1"
498
+ });
499
+
500
+ /**
501
+ * Utility to find items in Table View
502
+ */
503
+ var findTableViewUtil = function (config) {
504
+ // Upon clicking the find button, show the find dropdown content
505
+ $(".btn-find").click(function () {
506
+ $(this).parent().find(".find-pf-dropdown-container").toggle();
507
+ });
508
+
509
+ // Upon clicking the find close button, hide the find dropdown content
510
+ $(".btn-find-close").click(function () {
511
+ $(".find-pf-dropdown-container").hide();
512
+ });
513
+ };
514
+
515
+ // Initialize find util
516
+ new findTableViewUtil();
517
+
518
+ });
519
+ </script>
520
+
521
+
566
522
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eget eros tincidunt, semper ante nec, dapibus ante.</p>
567
523
  </div><!-- /col -->
568
524
  </div><!-- /row -->
569
525
  </div><!-- /container -->
570
- <script>
571
- // Initialize Datatables
572
- $(document).ready( function() {
573
- $('.datatable').dataTable();
574
- });
575
- </script>
576
526
 
577
527
  </body>
578
528
  </html>