rails_handsontable 0.0.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,23 @@
1
- /**
2
- * Handsontable 0.10.3
1
+ /*!
2
+ * Handsontable 0.11.4
3
3
  * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
4
4
  *
5
- * Copyright 2012, Marcin Warpechowski
5
+ * Copyright 2012-2014 Marcin Warpechowski
6
6
  * Licensed under the MIT license.
7
7
  * http://handsontable.com/
8
8
  *
9
- * Date: Mon Feb 10 2014 14:15:11 GMT+0100 (CET)
9
+ * Date: Tue Oct 07 2014 21:47:07 GMT+0200 (CEST)
10
10
  */
11
11
 
12
12
  .handsontable {
13
13
  position: relative;
14
14
  }
15
+ .handsontable .hide{
16
+ display: none;
17
+ }
18
+ .handsontable .relative {
19
+ position: relative;
20
+ }
15
21
 
16
22
  .handsontable.htAutoColumnSize {
17
23
  visibility: hidden;
@@ -48,7 +54,7 @@
48
54
  table-layout: fixed;
49
55
  width: 0;
50
56
  outline-width: 0;
51
- /* reset bootstrap table style. for more info see: https://github.com/warpech/jquery-handsontable/issues/224 */
57
+ /* reset bootstrap table style. for more info see: https://github.com/handsontable/jquery-handsontable/issues/224 */
52
58
  max-width: none;
53
59
  max-height: none;
54
60
  }
@@ -79,9 +85,11 @@
79
85
  }
80
86
 
81
87
  .handsontable td.htInvalid {
82
- -webkit-transition: background 0.75s ease;
83
- transition: background 0.75s ease;
84
- background-color: #ff4c42;
88
+ background-color: #ff4c42 !important; /*gives priority over td.area selection background*/
89
+ }
90
+
91
+ .handsontable td.htNoWrap {
92
+ white-space: nowrap;
85
93
  }
86
94
 
87
95
  .handsontable th:last-child {
@@ -135,14 +143,13 @@
135
143
  }
136
144
 
137
145
  .handsontable thead th .relative {
138
- position: relative;
139
146
  padding: 2px 4px;
140
147
  }
141
148
 
142
149
  /* plugins */
143
150
 
144
151
  .handsontable .manualColumnMover {
145
- position: absolute;
152
+ position: fixed;
146
153
  left: 0;
147
154
  top: 0;
148
155
  background-color: transparent;
@@ -152,39 +159,92 @@
152
159
  cursor: move;
153
160
  }
154
161
 
155
- .handsontable th .manualColumnMover:hover,
156
- .handsontable th .manualColumnMover.active {
162
+ .handsontable .manualRowMover {
163
+ position: fixed;
164
+ left: -4px;
165
+ top: 0;
166
+ background-color: transparent;
167
+ height: 5px;
168
+ width: 50px;
169
+ z-index: 999;
170
+ cursor: move;
171
+ }
172
+
173
+ .handsontable .manualColumnMoverGuide,
174
+ .handsontable .manualRowMoverGuide {
175
+ position: fixed;
176
+ left: 0;
177
+ top: 0;
178
+ background-color: #CCC;
179
+ width: 25px;
180
+ height: 25px;
181
+ opacity: 0.7;
182
+ display: none;
183
+ }
184
+
185
+ .handsontable .manualColumnMoverGuide.active,
186
+ .handsontable .manualRowMoverGuide.active {
187
+ display: block;
188
+ }
189
+
190
+ .handsontable .manualColumnMover:hover,
191
+ .handsontable .manualColumnMover.active,
192
+ .handsontable .manualRowMover:hover,
193
+ .handsontable .manualRowMover.active{
157
194
  background-color: #88F;
158
195
  }
159
196
 
197
+ /* row + column resizer*/
198
+
160
199
  .handsontable .manualColumnResizer {
161
- position: absolute;
200
+ position: fixed;
162
201
  top: 0;
163
202
  cursor: col-resize;
164
- }
165
-
166
- .handsontable .manualColumnResizerHandle {
167
- background-color: transparent;
203
+ z-index: 110;
168
204
  width: 5px;
169
205
  height: 25px;
170
206
  }
171
207
 
172
- .handsontable .manualColumnResizer:hover .manualColumnResizerHandle,
173
- .handsontable .manualColumnResizer.active .manualColumnResizerHandle {
208
+ .handsontable .manualRowResizer {
209
+ position: fixed;
210
+ left: 0;
211
+ cursor: row-resize;
212
+ z-index: 110;
213
+ height: 5px;
214
+ width: 50px;
215
+ }
216
+
217
+ .handsontable .manualColumnResizer:hover,
218
+ .handsontable .manualColumnResizer.active,
219
+ .handsontable .manualRowResizer:hover,
220
+ .handsontable .manualRowResizer.active {
174
221
  background-color: #AAB;
175
222
  }
176
223
 
177
- .handsontable .manualColumnResizerLine {
178
- position: absolute;
224
+ .handsontable .manualColumnResizerGuide {
225
+ position: fixed;
179
226
  right: 0;
180
227
  top: 0;
181
228
  background-color: #AAB;
182
229
  display: none;
183
230
  width: 0;
184
231
  border-right: 1px dashed #777;
232
+ margin-left: 5px;
185
233
  }
186
234
 
187
- .handsontable .manualColumnResizer.active .manualColumnResizerLine {
235
+ .handsontable .manualRowResizerGuide {
236
+ position: fixed;
237
+ left: 0;
238
+ bottom: 0;
239
+ background-color: #AAB;
240
+ display: none;
241
+ height: 0;
242
+ border-bottom: 1px dashed #777;
243
+ margin-top: 5px;
244
+ }
245
+
246
+ .handsontable .manualColumnResizerGuide.active,
247
+ .handsontable .manualRowResizerGuide.active {
188
248
  display: block;
189
249
  }
190
250
 
@@ -199,6 +259,9 @@
199
259
  position: absolute;
200
260
  font-size: 0;
201
261
  }
262
+ .handsontable .wtBorder.hidden{
263
+ display:none !important;
264
+ }
202
265
 
203
266
  .handsontable td.area {
204
267
  background-color: #EEF4FF;
@@ -222,10 +285,8 @@
222
285
  outline-width: 0;
223
286
  margin: 0;
224
287
  padding: 1px 4px 0 2px;
225
- font-family: Arial, Helvetica, sans-serif;
226
- /*repeat from .handsontable (inherit doesn't work with IE<8) */
227
- line-height: 1.3em;
228
- /*repeat from .handsontable (inherit doesn't work with IE<8) */
288
+ font-family: inherit;
289
+ line-height: inherit;
229
290
  font-size: inherit;
230
291
  -webkit-box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
231
292
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
@@ -258,6 +319,42 @@ TextRenderer readOnly cell
258
319
  color: #777;
259
320
  }
260
321
 
322
+ .handsontable .htSubmenu :after{
323
+ content: '▶';
324
+ color: #777;
325
+ position: absolute;
326
+ right: 5px;
327
+ }
328
+
329
+
330
+ /*
331
+ TextRenderer horizontal alignment
332
+ */
333
+ .handsontable .htLeft{
334
+ text-align: left;
335
+ }
336
+ .handsontable .htCenter{
337
+ text-align: center;
338
+ }
339
+ .handsontable .htRight{
340
+ text-align: right;
341
+ }
342
+ .handsontable .htJustify{
343
+ text-align: justify;
344
+ }
345
+ /*
346
+ TextRenderer vertical alignment
347
+ */
348
+ .handsontable .htTop{
349
+ vertical-align: top;
350
+ }
351
+ .handsontable .htMiddle{
352
+ vertical-align: middle;
353
+ }
354
+ .handsontable .htBottom{
355
+ vertical-align: bottom;
356
+ }
357
+
261
358
  /*
262
359
  TextRenderer placeholder value
263
360
  */
@@ -299,38 +396,19 @@ NumericRenderer
299
396
  text-align: right;
300
397
  }
301
398
 
302
- /*context menu rules*/
303
-
304
- ul.context-menu-list {
305
- color: black;
306
- }
307
-
308
- ul.context-menu-list li {
309
- margin-bottom: 0;
310
- /*Foundation framework fix*/
311
- }
312
-
313
- /**
314
- * dragdealer
315
- */
316
-
317
- .handsontable .dragdealer {
399
+ /*
400
+ Comment For Cell
401
+ */
402
+ .htCommentCell{
318
403
  position: relative;
319
- width: 9px;
320
- height: 9px;
321
- background: #F8F8F8;
322
- border: 1px solid #DDD;
323
404
  }
324
-
325
- .handsontable .dragdealer .handle {
405
+ .htCommentCell:after{
406
+ content: '';
326
407
  position: absolute;
327
- width: 9px;
328
- height: 9px;
329
- background: #C5C5C5;
330
- }
331
-
332
- .handsontable .dragdealer .disabled {
333
- background: #898989;
408
+ top: 0;
409
+ right: 0;
410
+ border-left: 6px solid transparent;
411
+ border-top: 6px solid red;
334
412
  }
335
413
 
336
414
  /**
@@ -346,6 +424,17 @@ ul.context-menu-list li {
346
424
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
347
425
  }
348
426
 
427
+ /**
428
+ * Autocomplete Editor
429
+ */
430
+ .handsontable .autocompleteEditor.handsontable {
431
+ padding-right: 17px;
432
+ }
433
+ .handsontable .autocompleteEditor.handsontable.htMacScroll {
434
+ padding-right: 15px;
435
+ }
436
+
437
+
349
438
  /**
350
439
  * Handsontable listbox theme
351
440
  */
@@ -354,7 +443,7 @@ ul.context-menu-list li {
354
443
  margin: 0;
355
444
  }
356
445
 
357
- .handsontable.listbox table {
446
+ .handsontable.listbox .ht_master table {
358
447
  border: 1px solid #ccc;
359
448
  border-collapse: separate;
360
449
  background: white;
@@ -392,6 +481,25 @@ ul.context-menu-list li {
392
481
  .htContextMenu {
393
482
  display: none;
394
483
  position: absolute;
484
+ z-index: 1060; /*needs to be higher than 1050 - z-index for Twitter Bootstrap modal (#1569)*/
485
+ }
486
+
487
+ .htContextMenu .ht_clone_top,
488
+ .htContextMenu .ht_clone_left,
489
+ .htContextMenu .ht_clone_corner {
490
+ display: none;
491
+ }
492
+
493
+ .ht_clone_top {
494
+ z-index: 101;
495
+ }
496
+
497
+ .ht_clone_left {
498
+ z-index: 102;
499
+ }
500
+
501
+ .ht_clone_corner {
502
+ z-index: 103;
395
503
  }
396
504
 
397
505
  .htContextMenu table.htCore {
@@ -421,7 +529,8 @@ ul.context-menu-list li {
421
529
  color: #323232;
422
530
  }
423
531
 
424
- .htContextMenu table tbody tr td.current{
532
+ .htContextMenu table tbody tr td.current,
533
+ .htContextMenu table tbody tr td.zeroclipboard-is-hover {
425
534
  background: rgb(233, 233, 233);
426
535
  }
427
536
 
@@ -440,6 +549,220 @@ ul.context-menu-list li {
440
549
  color: #999;
441
550
  cursor: default;
442
551
  }
552
+ .htContextMenu table tbody tr td div{
553
+ padding-left: 10px;
554
+ }
555
+ .htContextMenu table tbody tr td div span.selected{
556
+ margin-top: -2px;
557
+ position: absolute;
558
+ left: 4px;
559
+ }
560
+
561
+ .handsontable td.htSearchResult {
562
+ background: #fcedd9;
563
+ color: #583707;
564
+ }
565
+
566
+ /*
567
+ Cell borders
568
+ */
569
+ .htBordered{
570
+ /*box-sizing: border-box !important;*/
571
+ border-width: 1px;
572
+ }
573
+ .htBordered.htTopBorderSolid{
574
+ border-top-style: solid;
575
+ border-top-color: #000;
576
+ }
577
+ .htBordered.htRightBorderSolid{
578
+ border-right-style: solid;
579
+ border-right-color: #000;
580
+ }
581
+ .htBordered.htBottomBorderSolid{
582
+ border-bottom-style: solid;
583
+ border-bottom-color: #000;
584
+ }
585
+ .htBordered.htLeftBorderSolid{
586
+ border-left-style: solid;
587
+ border-left-color: #000;
588
+ }
589
+
590
+ .htCommentTextArea{
591
+ background-color: #FFFACD;
592
+ box-shadow: 1px 1px 2px #bbb;
593
+ font-family: 'Arial';
594
+ -webkit-box-shadow: 1px 1px 2px #bbb;
595
+ -moz-box-shadow: 1px 1px 2px #bbb;
596
+
597
+ }
598
+
599
+ /* Grouping indicators */
600
+ .handsontable colgroup col.rowHeader.htGroupCol {
601
+ width: 25px !important;
602
+ }
603
+ .handsontable colgroup col.rowHeader.htGroupColClosest {
604
+ width: 30px !important;
605
+ }
606
+
607
+ .handsontable .htGroupIndicatorContainer {
608
+ background: #fff;
609
+ border: 0px;
610
+ padding-bottom: 0px;
611
+ vertical-align: bottom;
612
+ position: relative;
613
+ }
614
+
615
+ .handsontable thead .htGroupIndicatorContainer {
616
+ vertical-align: top;
617
+ border-bottom: 0px;
618
+ }
619
+
620
+ .handsontable tbody tr th:nth-last-child(2) {
621
+ border-right: 1px solid #CCC;
622
+ }
623
+
624
+ .handsontable thead tr:nth-last-child(2) th {
625
+ border-bottom: 1px solid #CCC;
626
+ padding-bottom: 5px;
627
+ }
628
+
629
+
630
+ .ht_clone_corner thead tr th:nth-last-child(2) {
631
+ border-right: 1px solid #CCC;
632
+ }
633
+
634
+ .htVerticalGroup {
635
+ height: 100%;
636
+ }
637
+
638
+ .htHorizontalGroup {
639
+ width: 100%;
640
+ height: 100%;
641
+ }
642
+
643
+ .htVerticalGroup:not(.htCollapseButton):after {
644
+ content: "";
645
+ height: 100%;
646
+ width: 1px;
647
+ display: block;
648
+ background: #ccc;
649
+ margin-left: 5px;
650
+ }
651
+
652
+ .htHorizontalGroup:not(.htCollapseButton):after {
653
+ content: "";
654
+ width: 100%;
655
+ height: 1px;
656
+ display: block;
657
+ background: #ccc;
658
+ margin-top: 20%;
659
+ }
660
+
661
+ .htCollapseButton {
662
+ width: 10px;
663
+ height: 10px;
664
+ line-height: 10px;
665
+ text-align: center;
666
+ border-radius: 5px;
667
+ border: 1px solid #f3f3f3;
668
+ -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
669
+ box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
670
+ cursor: pointer;
671
+ margin-bottom: 3px;
672
+ position: relative;
673
+ }
674
+
675
+ .htCollapseButton:after {
676
+ content: "";
677
+ height: 300%;
678
+ width: 1px;
679
+ display: block;
680
+ background: #ccc;
681
+ margin-left: 4px;
682
+ position: absolute;
683
+ /*top: -300%;*/
684
+ bottom: 10px;
685
+ }
686
+
687
+
688
+ thead .htCollapseButton {
689
+ right: 5px;
690
+ position: absolute;
691
+ top: 5px;
692
+ background: #fff;
693
+ }
694
+
695
+ thead .htCollapseButton:after {
696
+ height: 1px;
697
+ width: 700%;
698
+ right: 10px;
699
+ top: 4px;
700
+ }
701
+
702
+ .handsontable tr th .htGroupStart:after {
703
+ background: transparent;
704
+ border-left: 1px solid #ccc;
705
+ border-top: 1px solid #ccc;
706
+ width: 5px;
707
+ position: relative;
708
+ top: 50%;
709
+ }
710
+
711
+ .handsontable thead tr th .htGroupStart:after {
712
+ background: transparent;
713
+ border-left: 1px solid #ccc;
714
+ border-top: 1px solid #ccc;
715
+ height: 5px;
716
+ width: 50%;
717
+ position: relative;
718
+ top: 0px;
719
+ left: 50%;
720
+ }
721
+
722
+ .handsontable .htGroupLevelTrigger {
723
+ -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
724
+ box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
725
+ width: 15px;
726
+ height: 15px;
727
+ margin: 4px auto;
728
+ padding: 0px;
729
+ line-height: 15px;
730
+ cursor: pointer;
731
+ }
732
+
733
+ .handsontable tr th .htExpandButton {
734
+ position: absolute;
735
+ width: 10px;
736
+ height: 10px;
737
+ line-height: 10px;
738
+ text-align: center;
739
+ border-radius: 5px;
740
+ border: 1px solid #f3f3f3;
741
+ -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
742
+ box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
743
+ cursor: pointer;
744
+ top: 0px;
745
+ display: none;
746
+ }
747
+
748
+ .handsontable thead tr th .htExpandButton {
749
+ /*left: 5px;*/
750
+ top: 5px;
751
+ }
752
+
753
+ .handsontable tr th .htExpandButton.clickable {
754
+ display: block;
755
+ }
756
+
757
+ .handsontable col.hidden {
758
+ width: 0px !important;
759
+ }
760
+
761
+ .handsontable tr.hidden,
762
+ .handsontable tr.hidden td,
763
+ .handsontable tr.hidden th {
764
+ display: none;
765
+ }
443
766
 
444
767
  /*WalkontableDebugOverlay*/
445
768
 
@@ -487,4 +810,4 @@ ul.context-menu-list li {
487
810
  display: block;
488
811
  opacity: 1;
489
812
  }
490
- }
813
+ }