angular-strap-rails 2.0.1

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 (52) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.gitignore +17 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +45 -0
  7. data/Rakefile +1 -0
  8. data/angular-strap-rails.gemspec +15 -0
  9. data/lib/angular-strap-rails.rb +8 -0
  10. data/lib/angular-strap-rails/version.rb +5 -0
  11. data/vendor/.DS_Store +0 -0
  12. data/vendor/assets/.DS_Store +0 -0
  13. data/vendor/assets/javascripts/.DS_Store +0 -0
  14. data/vendor/assets/javascripts/angular-strap.coffee +0 -0
  15. data/vendor/assets/javascripts/angular-strap/.DS_Store +0 -0
  16. data/vendor/assets/javascripts/angular-strap/datepicker.coffee +11 -0
  17. data/vendor/assets/javascripts/angular-strap/modal.coffee +9 -0
  18. data/vendor/assets/javascripts/dist/angular-strap.js +3682 -0
  19. data/vendor/assets/javascripts/dist/angular-strap.tpl.js +100 -0
  20. data/vendor/assets/javascripts/dist/modules/affix.js +191 -0
  21. data/vendor/assets/javascripts/dist/modules/alert.js +114 -0
  22. data/vendor/assets/javascripts/dist/modules/alert.tpl.js +14 -0
  23. data/vendor/assets/javascripts/dist/modules/aside.js +96 -0
  24. data/vendor/assets/javascripts/dist/modules/aside.tpl.js +14 -0
  25. data/vendor/assets/javascripts/dist/modules/button.js +141 -0
  26. data/vendor/assets/javascripts/dist/modules/date-parser.js +150 -0
  27. data/vendor/assets/javascripts/dist/modules/datepicker.js +583 -0
  28. data/vendor/assets/javascripts/dist/modules/datepicker.tpl.js +14 -0
  29. data/vendor/assets/javascripts/dist/modules/debounce.js +60 -0
  30. data/vendor/assets/javascripts/dist/modules/dimensions.js +142 -0
  31. data/vendor/assets/javascripts/dist/modules/dropdown.js +124 -0
  32. data/vendor/assets/javascripts/dist/modules/dropdown.tpl.js +14 -0
  33. data/vendor/assets/javascripts/dist/modules/modal.js +282 -0
  34. data/vendor/assets/javascripts/dist/modules/modal.tpl.js +14 -0
  35. data/vendor/assets/javascripts/dist/modules/navbar.js +55 -0
  36. data/vendor/assets/javascripts/dist/modules/parse-options.js +51 -0
  37. data/vendor/assets/javascripts/dist/modules/popover.js +100 -0
  38. data/vendor/assets/javascripts/dist/modules/popover.tpl.js +14 -0
  39. data/vendor/assets/javascripts/dist/modules/raf.js +45 -0
  40. data/vendor/assets/javascripts/dist/modules/scrollspy.js +229 -0
  41. data/vendor/assets/javascripts/dist/modules/select.js +281 -0
  42. data/vendor/assets/javascripts/dist/modules/select.tpl.js +14 -0
  43. data/vendor/assets/javascripts/dist/modules/tab.js +69 -0
  44. data/vendor/assets/javascripts/dist/modules/tab.tpl.js +14 -0
  45. data/vendor/assets/javascripts/dist/modules/timepicker.js +430 -0
  46. data/vendor/assets/javascripts/dist/modules/timepicker.tpl.js +14 -0
  47. data/vendor/assets/javascripts/dist/modules/tooltip.js +405 -0
  48. data/vendor/assets/javascripts/dist/modules/tooltip.tpl.js +14 -0
  49. data/vendor/assets/javascripts/dist/modules/typeahead.js +225 -0
  50. data/vendor/assets/javascripts/dist/modules/typeahead.tpl.js +14 -0
  51. data/vendor/assets/stylesheets/angular-strap.css +564 -0
  52. metadata +94 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * angular-strap
3
+ * @version v2.0.1 - 2014-04-10
4
+ * @link http://mgcrea.github.io/angular-strap
5
+ * @author Olivier Louvignes (olivier@mg-crea.com)
6
+ * @license MIT License, http://www.opensource.org/licenses/MIT
7
+ */
8
+ 'use strict';
9
+ angular.module('mgcrea.ngStrap.typeahead').run([
10
+ '$templateCache',
11
+ function ($templateCache) {
12
+ $templateCache.put('typeahead/typeahead.tpl.html', '<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a></li></ul>');
13
+ }
14
+ ]);
@@ -0,0 +1,564 @@
1
+ .carousel-inner>.item>a>img,.carousel-inner>.item>img,.thumbnail a>img,.thumbnail>img {
2
+ display:block;
3
+ max-width:100%;
4
+ height:auto;
5
+ }
6
+
7
+ .btn-group-lg>.btn {
8
+ font-size:18px;
9
+ line-height:1.33;
10
+ border-radius:6px;
11
+ padding:10px 16px;
12
+ }
13
+
14
+ .btn-group-sm>.btn {
15
+ font-size:12px;
16
+ line-height:1.5;
17
+ border-radius:3px;
18
+ padding:5px 10px;
19
+ }
20
+
21
+ .btn-group-xs>.btn {
22
+ font-size:12px;
23
+ line-height:1.5;
24
+ border-radius:3px;
25
+ padding:1px 5px;
26
+ }
27
+
28
+ .btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before {
29
+ content:" ";
30
+ display:table;
31
+ }
32
+
33
+ .btn-group-vertical>.btn-group:after,.btn-toolbar:after,.container-fluid:after,.container:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after {
34
+ clear:both;
35
+ }
36
+
37
+ .bs-masthead {
38
+ position:relative;
39
+ text-align:center;
40
+ text-shadow:0 1px 0 rgba(0,0,0,.15);
41
+ padding:30px 15px;
42
+ }
43
+
44
+ .bs-masthead h1 {
45
+ font-size:50px;
46
+ line-height:1;
47
+ color:#fff;
48
+ }
49
+
50
+ .bs-masthead .btn-outline-inverse {
51
+ margin:10px;
52
+ }
53
+
54
+ .bs-masthead-links {
55
+ margin-top:20px;
56
+ margin-bottom:40px;
57
+ list-style:none;
58
+ text-align:center;
59
+ padding:0 15px;
60
+ }
61
+
62
+ .bs-masthead-links li {
63
+ display:inline;
64
+ }
65
+
66
+ .bs-masthead-links li+li {
67
+ margin-left:20px;
68
+ }
69
+
70
+ .bs-docs-nav {
71
+ background-color:#b94846;
72
+ -webkit-box-shadow:0 1px 0 rgba(255,255,255,.1);
73
+ box-shadow:0 1px 0 rgba(255,255,255,.1);
74
+ text-shadow:0 -1px 0 rgba(0,0,0,.15);
75
+ border-color:#a33f3e;
76
+ }
77
+
78
+ .bs-docs-nav .navbar-collapse {
79
+ border-color:#a33f3e;
80
+ }
81
+
82
+ .bs-docs-nav .navbar-nav>li>a {
83
+ -webkit-transition:color .15s linear;
84
+ transition:color .15s linear;
85
+ color:#f9f1f1;
86
+ }
87
+
88
+ .bs-docs-nav .navbar-nav>.active>a,.bs-docs-nav .navbar-nav>.active>a:hover {
89
+ background-color:#a33f3e;
90
+ color:#fff;
91
+ }
92
+
93
+ .bs-docs-nav .navbar-toggle {
94
+ border-color:#b94846;
95
+ }
96
+
97
+ .bs-docs-nav .navbar-toggle:hover {
98
+ background-color:#a33f3e;
99
+ border-color:#a33f3e;
100
+ }
101
+
102
+ .bs-sidenav {
103
+ margin-top:40px;
104
+ margin-bottom:20px;
105
+ width:124px;
106
+ }
107
+
108
+ .bs-sidebar .nav>li>a {
109
+ display:block;
110
+ font-size:13px;
111
+ font-weight:500;
112
+ color:#999;
113
+ text-align:right;
114
+ padding:4px 15px;
115
+ }
116
+
117
+ .bs-sidebar .nav>li>a:focus,.bs-sidebar .nav>li>a:hover {
118
+ padding-right:14px;
119
+ color:#b94846;
120
+ text-decoration:none;
121
+ background-color:transparent;
122
+ border-right:1px solid #b94846;
123
+ }
124
+
125
+ .bs-sidebar .nav>.active:focus>a,.bs-sidebar .nav>.active:hover>a,.bs-sidebar .nav>.active>a {
126
+ padding-right:13px;
127
+ font-weight:700;
128
+ color:#b94846;
129
+ background-color:transparent;
130
+ border-right:2px solid #b94846;
131
+ }
132
+
133
+ .bs-sidebar .nav .nav {
134
+ display:none;
135
+ padding-bottom:10px;
136
+ }
137
+
138
+ .bs-sidebar .nav .nav>li>a {
139
+ padding-top:2px;
140
+ padding-bottom:2px;
141
+ padding-right:30px;
142
+ font-size:12px;
143
+ font-weight:400;
144
+ }
145
+
146
+ .bs-sidebar .nav .nav>li>a:focus,.bs-sidebar .nav .nav>li>a:hover {
147
+ padding-right:29px;
148
+ }
149
+
150
+ .bs-sidebar .nav .nav>.active:focus>a,.bs-sidebar .nav .nav>.active:hover>a,.bs-sidebar .nav .nav>.active>a {
151
+ font-weight:500;
152
+ padding-right:28px;
153
+ }
154
+
155
+ .bs-example {
156
+ position:relative;
157
+ background-color:#fafafa;
158
+ -webkit-box-shadow:inset 0 3px 6px rgba(0,0,0,.05);
159
+ box-shadow:inset 0 3px 6px rgba(0,0,0,.05);
160
+ border-color:#e5e5e5 #eee #eee;
161
+ border-style:solid;
162
+ border-width:1px 0;
163
+ margin:0 -15px 15px;
164
+ padding:45px 15px 15px;
165
+ }
166
+
167
+ .bs-example:after {
168
+ content:"Example";
169
+ position:absolute;
170
+ top:15px;
171
+ left:15px;
172
+ font-size:12px;
173
+ font-weight:700;
174
+ color:#bbb;
175
+ text-transform:uppercase;
176
+ letter-spacing:1px;
177
+ }
178
+
179
+ .bs-example+.highlight {
180
+ border-radius:0;
181
+ position:relative;
182
+ border-width:0 0 1px;
183
+ margin:-15px -15px 15px;
184
+ }
185
+
186
+ .bs-example .container {
187
+ width:auto;
188
+ }
189
+
190
+ .bs-example>.alert:last-child,.bs-example>.form-control:last-child,.bs-example>.jumbotron:last-child,.bs-example>.list-group:last-child,.bs-example>.navbar:last-child,.bs-example>.panel:last-child,.bs-example>.progress:last-child,.bs-example>.table-responsive:last-child>.table,.bs-example>.table:last-child,.bs-example>.well:last-child,.bs-example>blockquote:last-child,.bs-example>ol:last-child,.bs-example>p:last-child,.bs-example>ul:last-child {
191
+ margin-bottom:0;
192
+ }
193
+
194
+ .bs-example>p>.close {
195
+ float:none;
196
+ }
197
+
198
+ .bs-example .nav-tabs {
199
+ margin-bottom:15px;
200
+ }
201
+
202
+ .bs-old-docs {
203
+ color:#787878;
204
+ background-color:#fafafa;
205
+ border-top:1px solid #fff;
206
+ border-bottom:1px solid #e6e6e6;
207
+ padding:15px 20px;
208
+ }
209
+
210
+ .bs-old-docs strong {
211
+ color:#545454;
212
+ }
213
+
214
+ .bs-footer {
215
+ padding-top:40px;
216
+ padding-bottom:30px;
217
+ margin-top:100px;
218
+ color:#787878;
219
+ text-align:center;
220
+ border-top:1px solid #e6e6e6;
221
+ }
222
+
223
+ .footer-links {
224
+ padding-left:0;
225
+ margin:10px 0;
226
+ }
227
+
228
+ .footer-links li {
229
+ display:inline;
230
+ padding:0 2px;
231
+ }
232
+
233
+ .footer-links li:first-child {
234
+ padding-left:0;
235
+ }
236
+
237
+ .am-fade.aside-backdrop,.am-fade.modal-backdrop {
238
+ background-color:rgba(0,0,0,.5);
239
+ }
240
+
241
+ .bs-docs-aside {
242
+ min-width:200px;
243
+ }
244
+
245
+ h1[id] {
246
+ padding-top:80px;
247
+ margin-top:-45px;
248
+ }
249
+
250
+ h2[id] {
251
+ padding-top:60px;
252
+ margin-top:-45px;
253
+ }
254
+
255
+ .bs-header {
256
+ font-size:16px;
257
+ text-align:center;
258
+ text-shadow:0 1px 0 rgba(0,0,0,.15);
259
+ padding:30px 15px 40px;
260
+ }
261
+
262
+ .bs-header p {
263
+ font-weight:300;
264
+ line-height:1.5;
265
+ }
266
+
267
+ .highlight {
268
+ display:none;
269
+ margin-bottom:14px;
270
+ background-color:#f6f6f8;
271
+ border:1px solid #e2e2e9;
272
+ border-radius:4px;
273
+ padding:9px 14px;
274
+ }
275
+
276
+ .highlight pre {
277
+ margin-top:0;
278
+ margin-bottom:0;
279
+ background-color:transparent;
280
+ border:0;
281
+ white-space:nowrap;
282
+ padding:0;
283
+ }
284
+
285
+ .highlight pre code {
286
+ font-size:inherit;
287
+ color:#333;
288
+ }
289
+
290
+ .highlight pre .lineno {
291
+ display:inline-block;
292
+ width:22px;
293
+ padding-right:5px;
294
+ margin-right:10px;
295
+ text-align:right;
296
+ color:#bebec5;
297
+ }
298
+
299
+ input.ng-dirty.ng-invalid,select.ng-dirty.ng-invalid,textarea.ng-dirty.ng-invalid {
300
+ color:#b94a48;
301
+ border-color:#ee5f5b;
302
+ }
303
+
304
+ input.ng-dirty.ng-invalid:focus,select.ng-dirty.ng-invalid:focus,textarea.ng-dirty.ng-invalid:focus {
305
+ -webkit-box-shadow:0 0 6px #f8b9b7;
306
+ box-shadow:0 0 6px #f8b9b7;
307
+ border-color:#e9322d;
308
+ }
309
+
310
+ input:focus.ng-pristine.ng-invalid,select:focus.ng-pristine.ng-invalid,textarea:focus.ng-pristine.ng-invalid {
311
+ color:#555;
312
+ border:1px solid #ccc;
313
+ -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
314
+ box-shadow:inset 0 1px 1px rgba(0,0,0,.075);
315
+ -webkit-transition:border linear .2s,-webkit-box-shadow linear .2s;
316
+ transition:border linear .2s,box-shadow linear .2s;
317
+ }
318
+
319
+ input:focus.ng-pristine.ng-invalid:focus,select:focus.ng-pristine.ng-invalid:focus,textarea:focus.ng-pristine.ng-invalid:focus {
320
+ -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);
321
+ box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);
322
+ border-color:rgba(82,168,236,.8);
323
+ }
324
+
325
+ body .modal {
326
+ overflow-y:hidden;
327
+ }
328
+
329
+ body.modal-open {
330
+ overflow-y:visible!important;
331
+ }
332
+
333
+ .lt-ie9 .bs-sidebar {
334
+ display:none!important;
335
+ }
336
+
337
+ .datepicker.dropdown-menu {
338
+ width:250px;
339
+ height:270px;
340
+ }
341
+
342
+ .datepicker.dropdown-menu tbody {
343
+ height:180px;
344
+ }
345
+
346
+ .datepicker.dropdown-menu.datepicker-mode-1 tbody button,.datepicker.dropdown-menu.datepicker-mode-2 tbody button {
347
+ height:65px;
348
+ }
349
+
350
+ .timepicker.dropdown-menu {
351
+ padding:0 4px;
352
+ }
353
+
354
+ .select.dropdown-menu.select-multiple li>i {
355
+ color:#fff;
356
+ display:none;
357
+ position:absolute;
358
+ top:5px;
359
+ right:10px;
360
+ }
361
+
362
+ .select.dropdown-menu.select-multiple li.active>i {
363
+ display:block;
364
+ }
365
+
366
+ .bs-example-scope {
367
+ font-size:85%;
368
+ }
369
+
370
+ .bs-example-scope+.bs-example {
371
+ margin:-15px -15px 15px;
372
+ }
373
+
374
+ .bs-example-scope+.bs-example+.highlight>pre {
375
+ border-radius:0 0 4px 4px;
376
+ }
377
+
378
+ .aside.bs-docs-aside .aside-header {
379
+ background:#b94846;
380
+ }
381
+
382
+ .aside.bs-docs-aside .nav {
383
+ margin:0;
384
+ }
385
+
386
+ .bs-docs-social {
387
+ max-height:200px;
388
+ }
389
+
390
+ .bs-docs-social ul {
391
+ list-style:none;
392
+ padding:1em 0 0;
393
+ }
394
+
395
+ .bs-docs-social ul li {
396
+ height:30px;
397
+ }
398
+
399
+ .bs-docs-home,.bs-header {
400
+ color:#fff;
401
+ background:#b94846 url(../images/triangular-red.png);
402
+ padding-bottom:20px;
403
+ }
404
+
405
+ pre>code {
406
+ background:0 0;
407
+ }
408
+
409
+ .bs-example+.highlight code {
410
+ padding:2.5em .5em 1em;
411
+ }
412
+
413
+ .bs-example+.highlight:after {
414
+ content:"Source";
415
+ position:absolute;
416
+ top:15px;
417
+ left:15px;
418
+ font-size:12px;
419
+ font-weight:700;
420
+ color:#bbb;
421
+ text-transform:uppercase;
422
+ letter-spacing:1px;
423
+ }
424
+
425
+ .edit-plunkr,a[ng-click],input[type=checkbox] {
426
+ cursor:pointer;
427
+ }
428
+
429
+ .twitter-follow-button {
430
+ position:relative;
431
+ top:5px;
432
+ margin-left:10px;
433
+ }
434
+
435
+ .bs-masthead-links a,.bs-docs-nav .navbar-brand,.bs-docs-nav .navbar-nav>li>a:hover,.bs-header h1 {
436
+ color:#fff;
437
+ }
438
+
439
+ .bs-header .container,.select.dropdown-menu.select-multiple li {
440
+ position:relative;
441
+ }
442
+
443
+ [tabindex="-1"],.btn[bs-select] {
444
+ outline:0;
445
+ }
446
+
447
+ .datepicker.dropdown-menu button,.timepicker.dropdown-menu button {
448
+ outline:0;
449
+ border:0;
450
+ }
451
+
452
+ .datepicker.dropdown-menu tbody button,.timepicker.dropdown-menu tbody button {
453
+ padding:6px;
454
+ }
455
+
456
+ @media min-width768px{
457
+ .bs-masthead {
458
+ text-align:left;
459
+ padding-top:140px;
460
+ padding-bottom:140px;
461
+ }
462
+
463
+ .bs-masthead h1 {
464
+ font-size:100px;
465
+ }
466
+
467
+ .bs-masthead .lead {
468
+ margin-right:25%;
469
+ font-size:30px;
470
+ }
471
+
472
+ .bs-masthead .btn-outline-inverse {
473
+ width:auto;
474
+ font-size:21px;
475
+ margin:20px 5px 20px 0;
476
+ padding:18px 24px;
477
+ }
478
+
479
+ .bs-masthead-links {
480
+ text-align:left;
481
+ padding:0;
482
+ }
483
+
484
+ .bs-example {
485
+ margin-left:0;
486
+ margin-right:0;
487
+ background-color:#fff;
488
+ border-radius:4px 4px 0 0;
489
+ -webkit-box-shadow:none;
490
+ box-shadow:none;
491
+ border-color:#ddd;
492
+ border-width:1px;
493
+ }
494
+
495
+ .bs-example+.highlight {
496
+ margin-top:-16px;
497
+ margin-left:0;
498
+ margin-right:0;
499
+ border-bottom-left-radius:4px;
500
+ border-bottom-right-radius:4px;
501
+ border-width:1px;
502
+ }
503
+
504
+ .bs-footer {
505
+ text-align:left;
506
+ }
507
+
508
+ .bs-footer p {
509
+ margin-bottom:0;
510
+ }
511
+
512
+ .bs-header {
513
+ font-size:21px;
514
+ text-align:left;
515
+ }
516
+
517
+ .bs-header h1 {
518
+ font-size:60px;
519
+ line-height:1;
520
+ }
521
+ }
522
+
523
+ @media max-width991px{
524
+ .navbar-toggle {
525
+ margin-left:15px;
526
+ display:block!important;
527
+ float:left;
528
+ }
529
+
530
+ .bs-sidebar.affix {
531
+ position:static!important;
532
+ }
533
+
534
+ .bs-docs-social ul li {
535
+ display:inline-block;
536
+ }
537
+ }
538
+
539
+ @media min-width992px{
540
+ .bs-sidebar .nav>.active>ul {
541
+ display:block;
542
+ }
543
+
544
+ .bs-sidebar.affix .bs-sidenav,.bs-sidebar.affix-bottom .bs-sidenav {
545
+ margin-top:0;
546
+ margin-bottom:0;
547
+ }
548
+
549
+ .bs-header h1,.bs-header p {
550
+ margin-right:300px;
551
+ }
552
+ }
553
+
554
+ @media min-width1200px{
555
+ .bs-sidebar {
556
+ margin-right:30px;
557
+ }
558
+ }
559
+
560
+ @media min-width481px{
561
+ .highlight {
562
+ display:block;
563
+ }
564
+ }