handsontable_rails 0.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.
@@ -0,0 +1 @@
1
+ *= require 'jquery.handsontable.full'
@@ -0,0 +1,492 @@
1
+ /**
2
+ * Handsontable 0.10.0-beta3
3
+ * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
4
+ *
5
+ * Copyright 2012, Marcin Warpechowski
6
+ * Licensed under the MIT license.
7
+ * http://handsontable.com/
8
+ *
9
+ * Date: Wed Oct 30 2013 03:16:48 GMT+0100 (Central European Standard Time)
10
+ */
11
+
12
+ .handsontable {
13
+ position: relative;
14
+ }
15
+
16
+ .handsontable.htAutoColumnSize {
17
+ visibility: hidden;
18
+ left: 0;
19
+ position: absolute;
20
+ top: 0;
21
+ }
22
+
23
+ .handsontable table,
24
+ .handsontable tbody,
25
+ .handsontable thead,
26
+ .handsontable td,
27
+ .handsontable th,
28
+ .handsontable div {
29
+ box-sizing: content-box;
30
+ -webkit-box-sizing: content-box;
31
+ -moz-box-sizing: content-box;
32
+ }
33
+
34
+ .handsontable table.htCore {
35
+ border-collapse: separate;
36
+ /*it must be separate, otherwise there are offset miscalculations in WebKit: http://stackoverflow.com/questions/2655987/border-collapse-differences-in-ff-and-webkit*/
37
+ position: relative;
38
+ /*this actually only changes appearance of user selection - does not make text unselectable
39
+ -webkit-user-select: none;
40
+ -khtml-user-select: none;
41
+ -moz-user-select: none;
42
+ -o-user-select: none;
43
+ -ms-user-select: none;
44
+ /*user-select: none; /*no browser supports unprefixed version*/
45
+ border-spacing: 0;
46
+ margin: 0;
47
+ border-width: 0;
48
+ table-layout: fixed;
49
+ width: 0;
50
+ outline-width: 0;
51
+ /* reset bootstrap table style. for more info see: https://github.com/warpech/jquery-handsontable/issues/224 */
52
+ max-width: none;
53
+ max-height: none;
54
+ }
55
+
56
+ .handsontable col {
57
+ width: 50px;
58
+ }
59
+
60
+ .handsontable col.rowHeader {
61
+ width: 50px;
62
+ }
63
+
64
+ .handsontable th,
65
+ .handsontable td {
66
+ border-right: 1px solid #CCC;
67
+ border-bottom: 1px solid #CCC;
68
+ height: 22px;
69
+ empty-cells: show;
70
+ line-height: 21px;
71
+ padding: 0 4px 0 4px;
72
+ /* top, bottom padding different than 0 is handled poorly by FF with HTML5 doctype */
73
+ background-color: #FFF;
74
+ vertical-align: top;
75
+ overflow: hidden;
76
+ outline-width: 0;
77
+ white-space: pre-line;
78
+ /* preserve new line character in cell */
79
+ }
80
+
81
+ .handsontable td.htInvalid {
82
+ -webkit-transition: background 0.75s ease;
83
+ transition: background 0.75s ease;
84
+ background-color: #ff4c42;
85
+ }
86
+
87
+ .handsontable th:last-child {
88
+ /*Foundation framework fix*/
89
+ border-right: 1px solid #CCC;
90
+ border-bottom: 1px solid #CCC;
91
+ }
92
+
93
+ .handsontable tr:first-child th.htNoFrame,
94
+ .handsontable th:first-child.htNoFrame,
95
+ .handsontable th.htNoFrame {
96
+ border-left-width: 0;
97
+ background-color: white;
98
+ border-color: #FFF;
99
+ }
100
+
101
+ .handsontable th:first-child,
102
+ .handsontable td:first-child,
103
+ .handsontable .htNoFrame + th,
104
+ .handsontable .htNoFrame + td {
105
+ border-left: 1px solid #CCC;
106
+ }
107
+
108
+ .handsontable tr:first-child th,
109
+ .handsontable tr:first-child td {
110
+ border-top: 1px solid #CCC;
111
+ }
112
+
113
+ .handsontable thead tr:last-child th {
114
+ border-bottom-width: 0;
115
+ }
116
+
117
+ .handsontable thead tr.lastChild th {
118
+ border-bottom-width: 0;
119
+ }
120
+
121
+ .handsontable th {
122
+ background-color: #EEE;
123
+ color: #222;
124
+ text-align: center;
125
+ font-weight: normal;
126
+ white-space: nowrap;
127
+ }
128
+
129
+ .handsontable thead th {
130
+ padding: 0;
131
+ }
132
+
133
+ .handsontable th.active {
134
+ background-color: #CCC;
135
+ }
136
+
137
+ .handsontable thead th .relative {
138
+ position: relative;
139
+ padding: 2px 4px;
140
+ }
141
+
142
+ /* plugins */
143
+
144
+ .handsontable .manualColumnMover {
145
+ position: absolute;
146
+ left: 0;
147
+ top: 0;
148
+ background-color: transparent;
149
+ width: 5px;
150
+ height: 25px;
151
+ z-index: 999;
152
+ cursor: move;
153
+ }
154
+
155
+ .handsontable th .manualColumnMover:hover,
156
+ .handsontable th .manualColumnMover.active {
157
+ background-color: #88F;
158
+ }
159
+
160
+ .handsontable .manualColumnResizer {
161
+ position: absolute;
162
+ top: 0;
163
+ cursor: col-resize;
164
+ }
165
+
166
+ .handsontable .manualColumnResizerHandle {
167
+ background-color: transparent;
168
+ width: 5px;
169
+ height: 25px;
170
+ }
171
+
172
+ .handsontable .manualColumnResizer:hover .manualColumnResizerHandle,
173
+ .handsontable .manualColumnResizer.active .manualColumnResizerHandle {
174
+ background-color: #AAB;
175
+ }
176
+
177
+ .handsontable .manualColumnResizerLine {
178
+ position: absolute;
179
+ right: 0;
180
+ top: 0;
181
+ background-color: #AAB;
182
+ display: none;
183
+ width: 0;
184
+ border-right: 1px dashed #777;
185
+ }
186
+
187
+ .handsontable .manualColumnResizer.active .manualColumnResizerLine {
188
+ display: block;
189
+ }
190
+
191
+ .handsontable .columnSorting:hover {
192
+ text-decoration: underline;
193
+ cursor: pointer;
194
+ }
195
+
196
+ /* border line */
197
+
198
+ .handsontable .wtBorder {
199
+ position: absolute;
200
+ font-size: 0;
201
+ }
202
+
203
+ .handsontable td.area {
204
+ background-color: #EEF4FF;
205
+ }
206
+
207
+ /* fill handle */
208
+
209
+ .handsontable .wtBorder.corner {
210
+ font-size: 0;
211
+ cursor: crosshair;
212
+ }
213
+
214
+ .handsontable .htBorder.htFillBorder {
215
+ background: red;
216
+ width: 1px;
217
+ height: 1px;
218
+ }
219
+
220
+ .handsontableInput {
221
+ border: 2px solid #5292F7;
222
+ outline-width: 0;
223
+ margin: 0;
224
+ 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) */
229
+ font-size: inherit;
230
+ -webkit-box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
231
+ box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
232
+ resize: none;
233
+ /*below are needed to overwrite stuff added by jQuery UI Bootstrap theme*/
234
+ display: inline-block;
235
+ color: #000;
236
+ border-radius: 0;
237
+ }
238
+
239
+ .handsontableInputHolder {
240
+ position: absolute;
241
+ top: 0;
242
+ left: 0;
243
+ z-index: 100;
244
+ }
245
+
246
+ .htSelectEditor {
247
+ -webkit-appearance: menulist-button !important;
248
+ position: absolute;
249
+ }
250
+
251
+ /*
252
+ TextRenderer readOnly cell
253
+ */
254
+
255
+ .handsontable .htDimmed {
256
+ font-style: italic;
257
+ color: #777;
258
+ }
259
+
260
+ /*
261
+ TextRenderer placeholder value
262
+ */
263
+
264
+ .handsontable .htPlaceholder {
265
+ color: #999;
266
+ }
267
+
268
+ /*
269
+ AutocompleteRenderer down arrow
270
+ */
271
+
272
+ .handsontable .htAutocompleteArrow {
273
+ float: right;
274
+ font-size: 10px;
275
+ color: #EEE;
276
+ cursor: default;
277
+ width: 16px;
278
+ text-align: center;
279
+ }
280
+
281
+ .handsontable td .htAutocompleteArrow:hover {
282
+ color: #777;
283
+ }
284
+
285
+ /*
286
+ CheckboxRenderer
287
+ */
288
+
289
+ .handsontable .htCheckboxRendererInput.noValue {
290
+ opacity: 0.5;
291
+ }
292
+
293
+ /*
294
+ NumericRenderer
295
+ */
296
+
297
+ .handsontable .htNumeric {
298
+ text-align: right;
299
+ }
300
+
301
+ /* typeahead rules. Needed only if you are using the autocomplete feature */
302
+
303
+ .handsontable .typeahead {
304
+ position: absolute;
305
+ z-index: 10;
306
+ top: 100%;
307
+ left: 0;
308
+ float: left;
309
+ display: none;
310
+ min-width: 160px;
311
+ padding: 4px 0;
312
+ margin: 2px 0 0 0;
313
+ list-style: none;
314
+ background-color: white;
315
+ border-color: #CCC;
316
+ border-color: rgba(0, 0, 0, 0.2);
317
+ border-style: solid;
318
+ border-width: 1px;
319
+ -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
320
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
321
+ -webkit-background-clip: padding-box;
322
+ background-clip: padding-box;
323
+ border-radius: 4px;
324
+ }
325
+
326
+ .handsontable .typeahead li {
327
+ line-height: 18px;
328
+ min-height: 18px;
329
+ display: list-item;
330
+ margin: 0;
331
+ }
332
+
333
+ .handsontable .typeahead a {
334
+ display: block;
335
+ padding: 3px 15px;
336
+ clear: both;
337
+ font-weight: normal;
338
+ line-height: 18px;
339
+ min-height: 18px;
340
+ color: #333;
341
+ white-space: nowrap;
342
+ }
343
+
344
+ .handsontable .typeahead li > a:hover,
345
+ .handsontable .typeahead .active > a,
346
+ .handsontable .typeahead .active > a:hover {
347
+ color: white;
348
+ text-decoration: none;
349
+ background-color: #08C;
350
+ }
351
+
352
+ .handsontable .typeahead a {
353
+ color: #08C;
354
+ text-decoration: none;
355
+ }
356
+
357
+ /*context menu rules*/
358
+
359
+ ul.context-menu-list {
360
+ color: black;
361
+ }
362
+
363
+ ul.context-menu-list li {
364
+ margin-bottom: 0;
365
+ /*Foundation framework fix*/
366
+ }
367
+
368
+ /**
369
+ * dragdealer
370
+ */
371
+
372
+ .handsontable .dragdealer {
373
+ position: relative;
374
+ width: 9px;
375
+ height: 9px;
376
+ background: #F8F8F8;
377
+ border: 1px solid #DDD;
378
+ }
379
+
380
+ .handsontable .dragdealer .handle {
381
+ position: absolute;
382
+ width: 9px;
383
+ height: 9px;
384
+ background: #C5C5C5;
385
+ }
386
+
387
+ .handsontable .dragdealer .disabled {
388
+ background: #898989;
389
+ }
390
+
391
+ /**
392
+ * Handsontable in Handsontable
393
+ */
394
+
395
+ .handsontable .handsontable .wtHider {
396
+ padding: 0 0 5px 0;
397
+ }
398
+
399
+ .handsontable .handsontable table {
400
+ -webkit-box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
401
+ box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);
402
+ }
403
+
404
+ /**
405
+ * Handsontable listbox theme
406
+ */
407
+
408
+ .handsontable.listbox {
409
+ margin: 0;
410
+ }
411
+
412
+ .handsontable.listbox table {
413
+ border: 1px solid #ccc;
414
+ border-collapse: separate;
415
+ background: white;
416
+ }
417
+
418
+ .handsontable.listbox th,
419
+ .handsontable.listbox tr:first-child th,
420
+ .handsontable.listbox tr:last-child th,
421
+ .handsontable.listbox tr:first-child td,
422
+ .handsontable.listbox td {
423
+ border-width: 0;
424
+ }
425
+
426
+ .handsontable.listbox th,
427
+ .handsontable.listbox td {
428
+ white-space: nowrap;
429
+ text-overflow: ellipsis;
430
+ }
431
+
432
+ .handsontable.listbox td.htDimmed {
433
+ cursor: default;
434
+ color: inherit;
435
+ font-style: inherit;
436
+ }
437
+
438
+ .handsontable.listbox .wtBorder {
439
+ visibility: hidden;
440
+ }
441
+
442
+ .handsontable.listbox .current {
443
+ font-weight: bold;
444
+ }
445
+
446
+ .handsontable.listbox tr:hover td {
447
+ background: #eee;
448
+ }
449
+
450
+ .htContextMenu {
451
+ display: none;
452
+ position: absolute;
453
+ }
454
+
455
+ .handsontable .htContextMenu table.htCore {
456
+ outline: 1px solid #bbb;
457
+ }
458
+
459
+ .handsontable .htContextMenu table tbody tr td {
460
+ background: white;
461
+ border-width: 0;
462
+ padding: 4px 6px 0px 6px;
463
+ cursor: pointer;
464
+ overflow: hidden;
465
+ white-space: nowrap;
466
+ text-overflow: ellipsis;
467
+ }
468
+
469
+ .handsontable .htContextMenu table tbody tr td.htDimmed{
470
+ font-style: normal;
471
+ color: #323232;
472
+ }
473
+
474
+ .handsontable .htContextMenu table tbody tr td:hover {
475
+ background: rgb(233, 233, 233);
476
+ }
477
+
478
+ .handsontable .htContextMenu table tbody tr td.htSeparator {
479
+ border-top: 1px solid #bbb;
480
+ height: 0;
481
+ padding: 0;
482
+ }
483
+
484
+ .handsontable .htContextMenu table tbody tr td.htDisabled {
485
+ color: #999;
486
+ }
487
+
488
+ .handsontable .htContextMenu table tbody tr td.htDisabled:hover {
489
+ background: white;
490
+ color: #999;
491
+ cursor: default;
492
+ }
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: handsontable_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - jackie lee
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-25 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: mount jquery-handsontable to rails`
47
+ email:
48
+ - 894849464@qq.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - Gemfile
55
+ - LICENSE.txt
56
+ - README.md
57
+ - Rakefile
58
+ - handsontable_rails.gemspec
59
+ - lib/handsontable_rails.rb
60
+ - lib/handsontable_rails/version.rb
61
+ - vendor/assets/javascripts/handsontable_rails.js
62
+ - vendor/assets/javascripts/jquery.handsontable.full.js
63
+ - vendor/assets/stylesheets/handsontable_rails.css
64
+ - vendor/assets/stylesheets/jquery.handsontable.full.css
65
+ homepage: ''
66
+ licenses:
67
+ - MIT
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubyforge_project:
86
+ rubygems_version: 1.8.24
87
+ signing_key:
88
+ specification_version: 3
89
+ summary: ''
90
+ test_files: []