blazer 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of blazer might be problematic. Click here for more details.

Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +14 -8
  5. data/app/assets/javascripts/blazer/Chart.js +13794 -12099
  6. data/app/assets/javascripts/blazer/Sortable.js +3695 -1526
  7. data/app/assets/javascripts/blazer/chartkick.js +296 -46
  8. data/app/assets/javascripts/blazer/daterangepicker.js +194 -269
  9. data/app/assets/javascripts/blazer/jquery.js +1150 -642
  10. data/app/assets/javascripts/blazer/moment-timezone-with-data.js +621 -287
  11. data/app/assets/javascripts/blazer/moment.js +5085 -2460
  12. data/app/assets/stylesheets/blazer/daterangepicker.css +394 -253
  13. data/app/controllers/blazer/base_controller.rb +4 -4
  14. data/app/controllers/blazer/dashboards_controller.rb +4 -1
  15. data/app/mailers/blazer/slack_notifier.rb +1 -1
  16. data/app/views/blazer/_variables.html.erb +3 -1
  17. data/app/views/blazer/dashboards/show.html.erb +1 -1
  18. data/app/views/blazer/queries/run.html.erb +5 -5
  19. data/lib/blazer/version.rb +1 -1
  20. data/lib/generators/blazer/templates/install.rb.tt +2 -2
  21. data/licenses/LICENSE-ace.txt +24 -0
  22. data/licenses/LICENSE-bootstrap.txt +21 -0
  23. data/licenses/LICENSE-chart.js.txt +9 -0
  24. data/licenses/LICENSE-chartkick.js.txt +22 -0
  25. data/licenses/LICENSE-daterangepicker.txt +21 -0
  26. data/licenses/LICENSE-fuzzysearch.txt +20 -0
  27. data/licenses/LICENSE-highlight.js.txt +29 -0
  28. data/licenses/LICENSE-jquery-ujs.txt +20 -0
  29. data/licenses/LICENSE-jquery.txt +20 -0
  30. data/licenses/LICENSE-moment-timezone.txt +20 -0
  31. data/licenses/LICENSE-moment.txt +22 -0
  32. data/licenses/LICENSE-selectize.txt +202 -0
  33. data/licenses/LICENSE-sortable.txt +21 -0
  34. data/licenses/LICENSE-stickytableheaders.txt +20 -0
  35. data/licenses/LICENSE-stupidtable.txt +19 -0
  36. data/licenses/LICENSE-vue.txt +21 -0
  37. metadata +18 -2
@@ -3,267 +3,408 @@
3
3
  color: inherit;
4
4
  background-color: #fff;
5
5
  border-radius: 4px;
6
+ border: 1px solid #ddd;
6
7
  width: 278px;
7
- padding: 4px;
8
- margin-top: 1px;
8
+ max-width: none;
9
+ padding: 0;
10
+ margin-top: 7px;
9
11
  top: 100px;
10
12
  left: 20px;
11
- /* Calendars */ }
12
- .daterangepicker:before, .daterangepicker:after {
13
- position: absolute;
14
- display: inline-block;
15
- border-bottom-color: rgba(0, 0, 0, 0.2);
16
- content: ''; }
17
- .daterangepicker:before {
18
- top: -7px;
19
- border-right: 7px solid transparent;
20
- border-left: 7px solid transparent;
21
- border-bottom: 7px solid #ccc; }
22
- .daterangepicker:after {
23
- top: -6px;
24
- border-right: 6px solid transparent;
25
- border-bottom: 6px solid #fff;
26
- border-left: 6px solid transparent; }
27
- .daterangepicker.opensleft:before {
28
- right: 9px; }
29
- .daterangepicker.opensleft:after {
30
- right: 10px; }
31
- .daterangepicker.openscenter:before {
32
- left: 0;
33
- right: 0;
34
- width: 0;
35
- margin-left: auto;
36
- margin-right: auto; }
37
- .daterangepicker.openscenter:after {
38
- left: 0;
39
- right: 0;
40
- width: 0;
41
- margin-left: auto;
42
- margin-right: auto; }
43
- .daterangepicker.opensright:before {
44
- left: 9px; }
45
- .daterangepicker.opensright:after {
46
- left: 10px; }
47
- .daterangepicker.dropup {
48
- margin-top: -5px; }
49
- .daterangepicker.dropup:before {
50
- top: initial;
51
- bottom: -7px;
52
- border-bottom: initial;
53
- border-top: 7px solid #ccc; }
54
- .daterangepicker.dropup:after {
55
- top: initial;
56
- bottom: -6px;
57
- border-bottom: initial;
58
- border-top: 6px solid #fff; }
59
- .daterangepicker.dropdown-menu {
60
- max-width: none;
61
- z-index: 3001; }
62
- .daterangepicker.single .ranges, .daterangepicker.single .calendar {
63
- float: none; }
64
- .daterangepicker.show-calendar .calendar {
65
- display: block; }
66
- .daterangepicker .calendar {
67
- display: none;
68
- max-width: 270px;
69
- margin: 4px; }
70
- .daterangepicker .calendar.single .calendar-table {
71
- border: none; }
72
- .daterangepicker .calendar th, .daterangepicker .calendar td {
73
- white-space: nowrap;
74
- text-align: center;
75
- min-width: 32px; }
76
- .daterangepicker .calendar-table {
77
- border: 1px solid #fff;
78
- padding: 4px;
79
- border-radius: 4px;
80
- background-color: #fff; }
81
- .daterangepicker table {
82
- width: 100%;
83
- margin: 0; }
84
- .daterangepicker td, .daterangepicker th {
85
- text-align: center;
86
- width: 20px;
87
- height: 20px;
88
- border-radius: 4px;
89
- border: 1px solid transparent;
90
- white-space: nowrap;
91
- cursor: pointer; }
92
- .daterangepicker td.available:hover, .daterangepicker th.available:hover {
93
- background-color: #eee;
94
- border-color: transparent;
95
- color: inherit; }
96
- .daterangepicker td.week, .daterangepicker th.week {
97
- font-size: 80%;
98
- color: #ccc; }
99
- .daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {
100
- background-color: #fff;
101
- border-color: transparent;
102
- color: #999; }
103
- .daterangepicker td.in-range {
104
- background-color: #ebf4f8;
105
- border-color: transparent;
106
- color: #000;
107
- border-radius: 0; }
108
- .daterangepicker td.start-date {
109
- border-radius: 4px 0 0 4px; }
110
- .daterangepicker td.end-date {
111
- border-radius: 0 4px 4px 0; }
112
- .daterangepicker td.start-date.end-date {
113
- border-radius: 4px; }
114
- .daterangepicker td.active, .daterangepicker td.active:hover {
115
- background-color: #357ebd;
116
- border-color: transparent;
117
- color: #fff; }
118
- .daterangepicker th.month {
119
- width: auto; }
120
- .daterangepicker td.disabled, .daterangepicker option.disabled {
121
- color: #999;
122
- cursor: not-allowed;
123
- text-decoration: line-through; }
124
- .daterangepicker select.monthselect, .daterangepicker select.yearselect {
125
- font-size: 12px;
126
- padding: 1px;
127
- height: auto;
128
- margin: 0;
129
- cursor: default; }
130
- .daterangepicker select.monthselect {
131
- margin-right: 2%;
132
- width: 56%; }
133
- .daterangepicker select.yearselect {
134
- width: 40%; }
135
- .daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {
136
- width: 50px;
137
- margin-bottom: 0; }
138
- .daterangepicker .input-mini {
139
- border: 1px solid #ccc;
140
- border-radius: 4px;
141
- color: #555;
142
- height: 30px;
143
- line-height: 30px;
144
- display: block;
145
- vertical-align: middle;
146
- margin: 0 0 5px 0;
147
- padding: 0 6px 0 28px;
148
- width: 100%; }
149
- .daterangepicker .input-mini.active {
150
- border: 1px solid #08c;
151
- border-radius: 4px; }
152
- .daterangepicker .daterangepicker_input {
153
- position: relative; }
154
- .daterangepicker .daterangepicker_input i {
155
- position: absolute;
156
- left: 8px;
157
- top: 8px; }
158
- .daterangepicker.rtl .input-mini {
159
- padding-right: 28px;
160
- padding-left: 6px; }
161
- .daterangepicker.rtl .daterangepicker_input i {
162
- left: auto;
163
- right: 8px; }
164
- .daterangepicker .calendar-time {
165
- text-align: center;
166
- margin: 5px auto;
167
- line-height: 30px;
168
- position: relative;
169
- padding-left: 28px; }
170
- .daterangepicker .calendar-time select.disabled {
171
- color: #ccc;
172
- cursor: not-allowed; }
173
-
174
- .ranges {
175
- font-size: 11px;
13
+ z-index: 3001;
14
+ display: none;
15
+ font-family: arial;
16
+ font-size: 15px;
17
+ line-height: 1em;
18
+ }
19
+
20
+ .daterangepicker:before, .daterangepicker:after {
21
+ position: absolute;
22
+ display: inline-block;
23
+ border-bottom-color: rgba(0, 0, 0, 0.2);
24
+ content: '';
25
+ }
26
+
27
+ .daterangepicker:before {
28
+ top: -7px;
29
+ border-right: 7px solid transparent;
30
+ border-left: 7px solid transparent;
31
+ border-bottom: 7px solid #ccc;
32
+ }
33
+
34
+ .daterangepicker:after {
35
+ top: -6px;
36
+ border-right: 6px solid transparent;
37
+ border-bottom: 6px solid #fff;
38
+ border-left: 6px solid transparent;
39
+ }
40
+
41
+ .daterangepicker.opensleft:before {
42
+ right: 9px;
43
+ }
44
+
45
+ .daterangepicker.opensleft:after {
46
+ right: 10px;
47
+ }
48
+
49
+ .daterangepicker.openscenter:before {
50
+ left: 0;
51
+ right: 0;
52
+ width: 0;
53
+ margin-left: auto;
54
+ margin-right: auto;
55
+ }
56
+
57
+ .daterangepicker.openscenter:after {
58
+ left: 0;
59
+ right: 0;
60
+ width: 0;
61
+ margin-left: auto;
62
+ margin-right: auto;
63
+ }
64
+
65
+ .daterangepicker.opensright:before {
66
+ left: 9px;
67
+ }
68
+
69
+ .daterangepicker.opensright:after {
70
+ left: 10px;
71
+ }
72
+
73
+ .daterangepicker.drop-up {
74
+ margin-top: -7px;
75
+ }
76
+
77
+ .daterangepicker.drop-up:before {
78
+ top: initial;
79
+ bottom: -7px;
80
+ border-bottom: initial;
81
+ border-top: 7px solid #ccc;
82
+ }
83
+
84
+ .daterangepicker.drop-up:after {
85
+ top: initial;
86
+ bottom: -6px;
87
+ border-bottom: initial;
88
+ border-top: 6px solid #fff;
89
+ }
90
+
91
+ .daterangepicker.single .daterangepicker .ranges, .daterangepicker.single .drp-calendar {
176
92
  float: none;
177
- margin: 4px;
178
- text-align: left; }
179
- .ranges ul {
180
- list-style: none;
181
- margin: 0 auto;
182
- padding: 0;
183
- width: 100%; }
184
- .ranges li {
185
- font-size: 13px;
186
- background-color: #f5f5f5;
187
- border: 1px solid #f5f5f5;
188
- border-radius: 4px;
189
- color: #08c;
190
- padding: 3px 12px;
191
- margin-bottom: 8px;
192
- cursor: pointer; }
193
- .ranges li:hover {
194
- background-color: #08c;
195
- border: 1px solid #08c;
196
- color: #fff; }
197
- .ranges li.active {
198
- background-color: #08c;
199
- border: 1px solid #08c;
200
- color: #fff; }
93
+ }
94
+
95
+ .daterangepicker.single .drp-selected {
96
+ display: none;
97
+ }
98
+
99
+ .daterangepicker.show-calendar .drp-calendar {
100
+ display: block;
101
+ }
102
+
103
+ .daterangepicker.show-calendar .drp-buttons {
104
+ display: block;
105
+ }
106
+
107
+ .daterangepicker.auto-apply .drp-buttons {
108
+ display: none;
109
+ }
110
+
111
+ .daterangepicker .drp-calendar {
112
+ display: none;
113
+ max-width: 270px;
114
+ }
115
+
116
+ .daterangepicker .drp-calendar.left {
117
+ padding: 8px 0 8px 8px;
118
+ }
119
+
120
+ .daterangepicker .drp-calendar.right {
121
+ padding: 8px;
122
+ }
123
+
124
+ .daterangepicker .drp-calendar.single .calendar-table {
125
+ border: none;
126
+ }
127
+
128
+ .daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span {
129
+ color: #fff;
130
+ border: solid black;
131
+ border-width: 0 2px 2px 0;
132
+ border-radius: 0;
133
+ display: inline-block;
134
+ padding: 3px;
135
+ }
136
+
137
+ .daterangepicker .calendar-table .next span {
138
+ transform: rotate(-45deg);
139
+ -webkit-transform: rotate(-45deg);
140
+ }
141
+
142
+ .daterangepicker .calendar-table .prev span {
143
+ transform: rotate(135deg);
144
+ -webkit-transform: rotate(135deg);
145
+ }
146
+
147
+ .daterangepicker .calendar-table th, .daterangepicker .calendar-table td {
148
+ white-space: nowrap;
149
+ text-align: center;
150
+ vertical-align: middle;
151
+ min-width: 32px;
152
+ width: 32px;
153
+ height: 24px;
154
+ line-height: 24px;
155
+ font-size: 12px;
156
+ border-radius: 4px;
157
+ border: 1px solid transparent;
158
+ white-space: nowrap;
159
+ cursor: pointer;
160
+ }
161
+
162
+ .daterangepicker .calendar-table {
163
+ border: 1px solid #fff;
164
+ border-radius: 4px;
165
+ background-color: #fff;
166
+ }
167
+
168
+ .daterangepicker .calendar-table table {
169
+ width: 100%;
170
+ margin: 0;
171
+ border-spacing: 0;
172
+ border-collapse: collapse;
173
+ }
174
+
175
+ .daterangepicker td.available:hover, .daterangepicker th.available:hover {
176
+ background-color: #eee;
177
+ border-color: transparent;
178
+ color: inherit;
179
+ }
180
+
181
+ .daterangepicker td.week, .daterangepicker th.week {
182
+ font-size: 80%;
183
+ color: #ccc;
184
+ }
185
+
186
+ .daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {
187
+ background-color: #fff;
188
+ border-color: transparent;
189
+ color: #999;
190
+ }
191
+
192
+ .daterangepicker td.in-range {
193
+ background-color: #ebf4f8;
194
+ border-color: transparent;
195
+ color: #000;
196
+ border-radius: 0;
197
+ }
198
+
199
+ .daterangepicker td.start-date {
200
+ border-radius: 4px 0 0 4px;
201
+ }
202
+
203
+ .daterangepicker td.end-date {
204
+ border-radius: 0 4px 4px 0;
205
+ }
206
+
207
+ .daterangepicker td.start-date.end-date {
208
+ border-radius: 4px;
209
+ }
210
+
211
+ .daterangepicker td.active, .daterangepicker td.active:hover {
212
+ background-color: #357ebd;
213
+ border-color: transparent;
214
+ color: #fff;
215
+ }
216
+
217
+ .daterangepicker th.month {
218
+ width: auto;
219
+ }
220
+
221
+ .daterangepicker td.disabled, .daterangepicker option.disabled {
222
+ color: #999;
223
+ cursor: not-allowed;
224
+ text-decoration: line-through;
225
+ }
226
+
227
+ .daterangepicker select.monthselect, .daterangepicker select.yearselect {
228
+ font-size: 12px;
229
+ padding: 1px;
230
+ height: auto;
231
+ margin: 0;
232
+ cursor: default;
233
+ }
234
+
235
+ .daterangepicker select.monthselect {
236
+ margin-right: 2%;
237
+ width: 56%;
238
+ }
239
+
240
+ .daterangepicker select.yearselect {
241
+ width: 40%;
242
+ }
243
+
244
+ .daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {
245
+ width: 50px;
246
+ margin: 0 auto;
247
+ background: #eee;
248
+ border: 1px solid #eee;
249
+ padding: 2px;
250
+ outline: 0;
251
+ font-size: 12px;
252
+ }
253
+
254
+ .daterangepicker .calendar-time {
255
+ text-align: center;
256
+ margin: 4px auto 0 auto;
257
+ line-height: 30px;
258
+ position: relative;
259
+ }
260
+
261
+ .daterangepicker .calendar-time select.disabled {
262
+ color: #ccc;
263
+ cursor: not-allowed;
264
+ }
265
+
266
+ .daterangepicker .drp-buttons {
267
+ clear: both;
268
+ text-align: right;
269
+ padding: 8px;
270
+ border-top: 1px solid #ddd;
271
+ display: none;
272
+ line-height: 12px;
273
+ vertical-align: middle;
274
+ }
275
+
276
+ .daterangepicker .drp-selected {
277
+ display: inline-block;
278
+ font-size: 12px;
279
+ padding-right: 8px;
280
+ }
281
+
282
+ .daterangepicker .drp-buttons .btn {
283
+ margin-left: 8px;
284
+ font-size: 12px;
285
+ font-weight: bold;
286
+ padding: 4px 8px;
287
+ }
288
+
289
+ .daterangepicker.show-ranges.single.rtl .drp-calendar.left {
290
+ border-right: 1px solid #ddd;
291
+ }
292
+
293
+ .daterangepicker.show-ranges.single.ltr .drp-calendar.left {
294
+ border-left: 1px solid #ddd;
295
+ }
296
+
297
+ .daterangepicker.show-ranges.rtl .drp-calendar.right {
298
+ border-right: 1px solid #ddd;
299
+ }
300
+
301
+ .daterangepicker.show-ranges.ltr .drp-calendar.left {
302
+ border-left: 1px solid #ddd;
303
+ }
304
+
305
+ .daterangepicker .ranges {
306
+ float: none;
307
+ text-align: left;
308
+ margin: 0;
309
+ }
310
+
311
+ .daterangepicker.show-calendar .ranges {
312
+ margin-top: 8px;
313
+ }
314
+
315
+ .daterangepicker .ranges ul {
316
+ list-style: none;
317
+ margin: 0 auto;
318
+ padding: 0;
319
+ width: 100%;
320
+ }
321
+
322
+ .daterangepicker .ranges li {
323
+ font-size: 12px;
324
+ padding: 8px 12px;
325
+ cursor: pointer;
326
+ }
327
+
328
+ .daterangepicker .ranges li:hover {
329
+ background-color: #eee;
330
+ }
331
+
332
+ .daterangepicker .ranges li.active {
333
+ background-color: #08c;
334
+ color: #fff;
335
+ }
201
336
 
202
337
  /* Larger Screen Styling */
203
338
  @media (min-width: 564px) {
204
339
  .daterangepicker {
205
- width: auto; }
206
- .daterangepicker .ranges ul {
207
- width: 160px; }
208
- .daterangepicker.single .ranges ul {
209
- width: 100%; }
210
- .daterangepicker.single .calendar.left {
211
- clear: none; }
212
- .daterangepicker.single.ltr .ranges, .daterangepicker.single.ltr .calendar {
213
- float: left; }
214
- .daterangepicker.single.rtl .ranges, .daterangepicker.single.rtl .calendar {
215
- float: right; }
216
- .daterangepicker.ltr {
217
- direction: ltr;
218
- text-align: left; }
219
- .daterangepicker.ltr .calendar.left {
220
- clear: left;
221
- margin-right: 0; }
222
- .daterangepicker.ltr .calendar.left .calendar-table {
223
- border-right: none;
224
- border-top-right-radius: 0;
225
- border-bottom-right-radius: 0; }
226
- .daterangepicker.ltr .calendar.right {
227
- margin-left: 0; }
228
- .daterangepicker.ltr .calendar.right .calendar-table {
229
- border-left: none;
230
- border-top-left-radius: 0;
231
- border-bottom-left-radius: 0; }
232
- .daterangepicker.ltr .left .daterangepicker_input {
233
- padding-right: 12px; }
234
- .daterangepicker.ltr .calendar.left .calendar-table {
235
- padding-right: 12px; }
236
- .daterangepicker.ltr .ranges, .daterangepicker.ltr .calendar {
237
- float: left; }
238
- .daterangepicker.rtl {
239
- direction: rtl;
240
- text-align: right; }
241
- .daterangepicker.rtl .calendar.left {
242
- clear: right;
243
- margin-left: 0; }
244
- .daterangepicker.rtl .calendar.left .calendar-table {
245
- border-left: none;
246
- border-top-left-radius: 0;
247
- border-bottom-left-radius: 0; }
248
- .daterangepicker.rtl .calendar.right {
249
- margin-right: 0; }
250
- .daterangepicker.rtl .calendar.right .calendar-table {
251
- border-right: none;
252
- border-top-right-radius: 0;
253
- border-bottom-right-radius: 0; }
254
- .daterangepicker.rtl .left .daterangepicker_input {
255
- padding-left: 12px; }
256
- .daterangepicker.rtl .calendar.left .calendar-table {
257
- padding-left: 12px; }
258
- .daterangepicker.rtl .ranges, .daterangepicker.rtl .calendar {
259
- text-align: right;
260
- float: right; } }
340
+ width: auto;
341
+ }
342
+
343
+ .daterangepicker .ranges ul {
344
+ width: 140px;
345
+ }
346
+
347
+ .daterangepicker.single .ranges ul {
348
+ width: 100%;
349
+ }
350
+
351
+ .daterangepicker.single .drp-calendar.left {
352
+ clear: none;
353
+ }
354
+
355
+ .daterangepicker.single .ranges, .daterangepicker.single .drp-calendar {
356
+ float: left;
357
+ }
358
+
359
+ .daterangepicker {
360
+ direction: ltr;
361
+ text-align: left;
362
+ }
363
+
364
+ .daterangepicker .drp-calendar.left {
365
+ clear: left;
366
+ margin-right: 0;
367
+ }
368
+
369
+ .daterangepicker .drp-calendar.left .calendar-table {
370
+ border-right: none;
371
+ border-top-right-radius: 0;
372
+ border-bottom-right-radius: 0;
373
+ }
374
+
375
+ .daterangepicker .drp-calendar.right {
376
+ margin-left: 0;
377
+ }
378
+
379
+ .daterangepicker .drp-calendar.right .calendar-table {
380
+ border-left: none;
381
+ border-top-left-radius: 0;
382
+ border-bottom-left-radius: 0;
383
+ }
384
+
385
+ .daterangepicker .drp-calendar.left .calendar-table {
386
+ padding-right: 8px;
387
+ }
388
+
389
+ .daterangepicker .ranges, .daterangepicker .drp-calendar {
390
+ float: left;
391
+ }
392
+ }
393
+
261
394
  @media (min-width: 730px) {
262
395
  .daterangepicker .ranges {
263
- width: auto; }
264
- .daterangepicker.ltr .ranges {
265
- float: left; }
396
+ width: auto;
397
+ }
398
+
399
+ .daterangepicker .ranges {
400
+ float: left;
401
+ }
402
+
266
403
  .daterangepicker.rtl .ranges {
267
- float: right; }
268
- .daterangepicker .calendar.left {
269
- clear: none !important; } }
404
+ float: right;
405
+ }
406
+
407
+ .daterangepicker .drp-calendar.left {
408
+ clear: none !important;
409
+ }
410
+ }