fancytree-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +50 -0
  6. data/Rakefile +1 -0
  7. data/fancytree-rails.gemspec +27 -0
  8. data/lib/fancytree-rails.rb +1 -0
  9. data/lib/fancytree/rails.rb +7 -0
  10. data/lib/fancytree/rails/engine.rb +4 -0
  11. data/lib/fancytree/rails/version.rb +6 -0
  12. data/vendor/assets/javascripts/fancytree.js +2 -0
  13. data/vendor/assets/javascripts/fancytree/jquery.fancytree-all.js +5366 -0
  14. data/vendor/assets/javascripts/fancytree/jquery.fancytree-all.min.js +6 -0
  15. data/vendor/assets/javascripts/fancytree/jquery.fancytree-all.min.js.map +1 -0
  16. data/vendor/assets/javascripts/fancytree/jquery.fancytree.js +3715 -0
  17. data/vendor/assets/javascripts/fancytree/jquery.fancytree.min.js +6 -0
  18. data/vendor/assets/javascripts/fancytree/jquery.fancytree.min.js.map +1 -0
  19. data/vendor/assets/stylesheets/skin-awesome/ui.fancytree.css +272 -0
  20. data/vendor/assets/stylesheets/skin-lion/icons.gif +0 -0
  21. data/vendor/assets/stylesheets/skin-lion/loading.gif +0 -0
  22. data/vendor/assets/stylesheets/skin-lion/ui.fancytree-org.css +460 -0
  23. data/vendor/assets/stylesheets/skin-lion/ui.fancytree.css +453 -0
  24. data/vendor/assets/stylesheets/skin-themeroller/icons.gif +0 -0
  25. data/vendor/assets/stylesheets/skin-themeroller/loading.gif +0 -0
  26. data/vendor/assets/stylesheets/skin-themeroller/ui.fancytree-org.css +505 -0
  27. data/vendor/assets/stylesheets/skin-themeroller/ui.fancytree.css +505 -0
  28. data/vendor/assets/stylesheets/skin-vista/icons.gif +0 -0
  29. data/vendor/assets/stylesheets/skin-vista/loading.gif +0 -0
  30. data/vendor/assets/stylesheets/skin-vista/ui.fancytree-org.css +610 -0
  31. data/vendor/assets/stylesheets/skin-vista/ui.fancytree.css +459 -0
  32. data/vendor/assets/stylesheets/skin-win7/icons.gif +0 -0
  33. data/vendor/assets/stylesheets/skin-win7/loading.gif +0 -0
  34. data/vendor/assets/stylesheets/skin-win7/ui.fancytree-org.css +592 -0
  35. data/vendor/assets/stylesheets/skin-win7/ui.fancytree.css +523 -0
  36. data/vendor/assets/stylesheets/skin-win8/icons.gif +0 -0
  37. data/vendor/assets/stylesheets/skin-win8/loading.gif +0 -0
  38. data/vendor/assets/stylesheets/skin-win8/ui.fancytree-org.css +602 -0
  39. data/vendor/assets/stylesheets/skin-win8/ui.fancytree.css +470 -0
  40. data/vendor/assets/stylesheets/skin-xp/icons-rtl.gif +0 -0
  41. data/vendor/assets/stylesheets/skin-xp/icons.gif +0 -0
  42. data/vendor/assets/stylesheets/skin-xp/loading.gif +0 -0
  43. data/vendor/assets/stylesheets/skin-xp/ui.fancytree-org.css +578 -0
  44. data/vendor/assets/stylesheets/skin-xp/ui.fancytree.css +450 -0
  45. data/vendor/assets/stylesheets/skin-xp/vline-rtl.gif +0 -0
  46. data/vendor/assets/stylesheets/skin-xp/vline.gif +0 -0
  47. data/vendor/assets/stylesheets/ui.fancytree.css +3 -0
  48. metadata +166 -0
@@ -0,0 +1,610 @@
1
+ /*
2
+ * Fancytree Vista styles
3
+
4
+ See also: http://www.colorzilla.com/gradient-editor/
5
+
6
+ both:
7
+ unselected background: #FCFCFC 'nearly white'
8
+ hover bar (unselected, inactive): #F8FCFE..#EFF9FE (border: #D8F0FA) 'very light blue'
9
+ active node: #F6FBFD..#D5EFFC (border: #99DEFD) 'light blue'
10
+ active node with hover: #F2F9FD..#C4E8FA (border: #B6E6FB)
11
+
12
+ Tree view:
13
+ active node, tree inactive: #FAFAFB..#E5E5E5 (border: #D9D9D9) 'light gray, selected, but tree not active'
14
+
15
+ List view:
16
+ selected bar: --> active bar
17
+ focus bar: active + border 1px dotted #090402 (inside the blue border)
18
+
19
+ table left/right border: #EDEDED 'light gray'
20
+ */
21
+ .ui-helper-hidden {
22
+ display: none;
23
+ }
24
+
25
+ .fancytree-container
26
+ {
27
+ font-family: tahoma, arial, helvetica;
28
+ font-size: 10pt; /* font size should not be too big */
29
+ white-space: nowrap;
30
+ padding: 3px;
31
+ margin: 0; /* issue 201 */
32
+ background-color: white;
33
+ border: 1px dotted gray;
34
+ overflow: auto;
35
+ height: 100%; /* issue 263 */
36
+ }
37
+
38
+ ul.fancytree-container ul
39
+ {
40
+ padding: 0 0 0 16px;
41
+ margin: 0;
42
+ }
43
+
44
+ ul.fancytree-container li
45
+ {
46
+ list-style-image: none;
47
+ list-style-position: outside;
48
+ list-style-type: none;
49
+ -moz-background-clip:border;
50
+ -moz-background-inline-policy: continuous;
51
+ -moz-background-origin: padding;
52
+ background-attachment: scroll;
53
+ background-color: transparent;
54
+ background-position: 0 0;
55
+ background-repeat: repeat-y;
56
+ background-image: none; /* no v-lines */
57
+
58
+ margin:0;
59
+ padding:1px 0 0 0;
60
+ }
61
+ /* Suppress lines for last child node */
62
+ ul.fancytree-container li.fancytree-lastsib
63
+ {
64
+ background-image: none;
65
+ }
66
+ /* Suppress lines if level is fixed expanded (option minExpandLevel) */
67
+ ul.fancytree-no-connector > li
68
+ {
69
+ background-image: none;
70
+ }
71
+
72
+ /* Style, when control is disabled */
73
+ .ui-fancytree-disabled ul.fancytree-container
74
+ {
75
+ opacity: 0.5;
76
+ /* filter: alpha(opacity=50); /* Yields a css warning */
77
+ background-color: silver;
78
+ }
79
+
80
+
81
+ /*******************************************************************************
82
+ * Common icon definitions
83
+ */
84
+ span.fancytree-empty,
85
+ span.fancytree-vline,
86
+ /*span.fancytree-connector,*/
87
+ span.fancytree-expander,
88
+ span.fancytree-icon,
89
+ span.fancytree-checkbox,
90
+ span.fancytree-radio,
91
+ span.fancytree-drag-helper-img,
92
+ #fancytree-drop-marker
93
+ {
94
+ width: 16px;
95
+ height: 16px;
96
+ /* display: -moz-inline-box; /* @ FF 1+2 removed for issue 221*/
97
+ /* -moz-box-align: start; /* issue 221 */
98
+ display: inline-block; /* Required to make a span sizeable */
99
+ vertical-align: top;
100
+ background-repeat: no-repeat;
101
+ background-position: left;
102
+ background-image: url("icons.gif");
103
+ background-position: 0 0;
104
+ }
105
+ /** Used by iconclass option */
106
+ span.fancytree-custom-icon {
107
+ display: inline-block;
108
+ }
109
+ /** Used by 'icon' node option: */
110
+ .fancytree-container img
111
+ {
112
+ width: 16px;
113
+ height: 16px;
114
+ margin-left: 3px;
115
+ vertical-align: top;
116
+ border-style: none;
117
+ }
118
+
119
+
120
+ /*******************************************************************************
121
+ * Lines and connectors
122
+ */
123
+ /* span.fancytree-connector
124
+ {
125
+ background-image: none;
126
+ }
127
+ */
128
+ /*******************************************************************************
129
+ * Expander icon
130
+ * Note: IE6 doesn't correctly evaluate multiples class names,
131
+ * so we create combined class names that can be used in the CSS.
132
+ *
133
+ * Prefix: fancytree-exp-
134
+ * 1st character: 'e': expanded, 'c': collapsed, 'n': no children
135
+ * 2nd character (optional): 'd': lazy (Delayed)
136
+ * 3rd character (optional): 'l': Last sibling
137
+ */
138
+
139
+ span.fancytree-expander
140
+ {
141
+ background-position: 0px -80px;
142
+ cursor: pointer;
143
+ }
144
+ span.fancytree-expander:hover
145
+ {
146
+ background-position: -16px -80px;
147
+ }
148
+ .fancytree-exp-n span.fancytree-expander:hover /* Collapsed, not delayed, not last sibling */
149
+ {
150
+ background-position: -16px -80px;
151
+ }
152
+ .fancytree-exp-cl span.fancytree-expander /* Collapsed, not delayed, last sibling */
153
+ {
154
+ }
155
+ .fancytree-exp-cd span.fancytree-expander /* Collapsed, delayed, not last sibling */
156
+ {
157
+ }
158
+ .fancytree-exp-cdl span.fancytree-expander /* Collapsed, delayed, last sibling */
159
+ {
160
+ }
161
+ .fancytree-exp-e span.fancytree-expander, /* Expanded, not delayed, not last sibling */
162
+ .fancytree-exp-ed span.fancytree-expander, /* Expanded, delayed, not last sibling */
163
+ .fancytree-exp-el span.fancytree-expander, /* Expanded, not delayed, last sibling */
164
+ .fancytree-exp-edl span.fancytree-expander /* Expanded, delayed, last sibling */
165
+ {
166
+ background-position: -32px -80px;
167
+ }
168
+ .fancytree-exp-e span.fancytree-expander:hover, /* Expanded, not delayed, not last sibling */
169
+ .fancytree-exp-ed span.fancytree-expander:hover, /* Expanded, delayed, not last sibling */
170
+ .fancytree-exp-el span.fancytree-expander:hover, /* Expanded, not delayed, last sibling */
171
+ .fancytree-exp-edl span.fancytree-expander:hover /* Expanded, delayed, last sibling */
172
+ {
173
+ background-position: -48px -80px;
174
+ }
175
+ .fancytree-loading span.fancytree-expander /* 'Loading' status overrides all others */
176
+ {
177
+ background-position: 0 0;
178
+ background-image: url("loading.gif");
179
+ }
180
+
181
+ .fancytree-exp-n span.fancytree-expander, /* Connector instead of expander, if node has no children */
182
+ .fancytree-exp-nl span.fancytree-expander
183
+ {
184
+ background-image: none;
185
+ cursor: default;
186
+ }
187
+
188
+
189
+ /*******************************************************************************
190
+ * Checkbox icon
191
+ */
192
+ span.fancytree-checkbox
193
+ {
194
+ margin-left: 3px;
195
+ background-position: 0px -32px;
196
+ }
197
+ span.fancytree-checkbox:hover
198
+ {
199
+ background-position: -16px -32px;
200
+ }
201
+
202
+ .fancytree-partsel span.fancytree-checkbox
203
+ {
204
+ background-position: -64px -32px;
205
+ }
206
+ .fancytree-partsel span.fancytree-checkbox:hover
207
+ {
208
+ background-position: -80px -32px;
209
+ }
210
+
211
+ .fancytree-selected span.fancytree-checkbox
212
+ {
213
+ background-position: -32px -32px;
214
+ }
215
+ .fancytree-selected span.fancytree-checkbox:hover
216
+ {
217
+ background-position: -48px -32px;
218
+ }
219
+
220
+ /*******************************************************************************
221
+ * Radiobutton icon
222
+ * This is a customization, that may be activated by overriding the 'checkbox'
223
+ * class name as 'fancytree-radio' in the tree options.
224
+ */
225
+ .fancytree-radio span.fancytree-checkbox
226
+ {
227
+ margin-left: 3px;
228
+ background-position: 0px -48px;
229
+ }
230
+ .fancytree-radio span.fancytree-checkbox:hover
231
+ {
232
+ background-position: -16px -48px;
233
+ }
234
+
235
+ .fancytree-radio .fancytree-partsel span.fancytree-checkbox
236
+ {
237
+ background-position: -64px -48px;
238
+ }
239
+ .fancytree-radio .fancytree-partsel span.fancytree-checkbox:hover
240
+ {
241
+ background-position: -80px -48px;
242
+ }
243
+
244
+ .fancytree-radio .fancytree-selected span.fancytree-checkbox
245
+ {
246
+ background-position: -32px -48px;
247
+ }
248
+ .fancytree-radio .fancytree-selected span.fancytree-checkbox:hover
249
+ {
250
+ background-position: -48px -48px;
251
+ }
252
+
253
+ /*
254
+ span.fancytree-radio
255
+ {
256
+ margin-left: 3px;
257
+ background-position: 0px -48px;
258
+ }
259
+ span.fancytree-radio:hover
260
+ {
261
+ background-position: -16px -48px;
262
+ }
263
+
264
+ .fancytree-partsel span.fancytree-radio
265
+ {
266
+ background-position: -64px -48px;
267
+ }
268
+ .fancytree-partsel span.fancytree-radio:hover
269
+ {
270
+ background-position: -80px -48px;
271
+ }
272
+
273
+ .fancytree-selected span.fancytree-radio
274
+ {
275
+ background-position: -32px -48px;
276
+ }
277
+ .fancytree-selected span.fancytree-radio:hover
278
+ {
279
+ background-position: -48px -48px;
280
+ }
281
+ */
282
+
283
+
284
+ /*******************************************************************************
285
+ * Node type icon
286
+ * Note: IE6 doesn't correctly evaluate multiples class names,
287
+ * so we create combined class names that can be used in the CSS.
288
+ *
289
+ * Prefix: fancytree-ico-
290
+ * 1st character: 'e': expanded, 'c': collapsed
291
+ * 2nd character (optional): 'f': folder
292
+ */
293
+
294
+ span.fancytree-icon /* Default icon */
295
+ {
296
+ margin-left: 3px;
297
+ background-position: 0px 0px;
298
+ }
299
+
300
+ .fancytree-has-children span.fancytree-icon /* Default icon */
301
+ {
302
+ /* background-position: 0px -16px; */
303
+ }
304
+
305
+ .fancytree-ico-cf span.fancytree-icon /* Collapsed Folder */
306
+ {
307
+ background-position: 0px -16px;
308
+ }
309
+
310
+ .fancytree-ico-ef span.fancytree-icon /* Expanded Folder */
311
+ {
312
+ background-position: -64px -16px;
313
+ }
314
+
315
+ /* Status node icons */
316
+
317
+ .fancytree-statusnode-wait span.fancytree-icon
318
+ {
319
+ background-image: url("loading.gif");
320
+ }
321
+
322
+ .fancytree-statusnode-error span.fancytree-icon
323
+ {
324
+ background-position: 0px -112px;
325
+ /* background-image: url("ltError.gif");*/
326
+ }
327
+
328
+ /*******************************************************************************
329
+ * Node titles
330
+ */
331
+
332
+ span.fancytree-title
333
+ {
334
+ display: inline-block;
335
+ }
336
+ /* Remove blue color and underline from title links */
337
+ a.fancytree-title
338
+ {
339
+ text-decoration: none;
340
+ }
341
+
342
+ .fancytree-title
343
+ {
344
+ display: inline-block; /* Better alignment, when title contains <br> */
345
+ /* vertical-align: top;*/
346
+ padding-left: 3px;
347
+ padding-right: 3px; /* Otherwise italic font will be outside bounds */
348
+ /* line-height: 16px; /* should be the same as img height, in case 16 px */
349
+ color: black; /* inherit doesn't work on IE */
350
+ vertical-align: top;
351
+ margin: 0px;
352
+ margin-left: 3px;
353
+ /* outline: 0; /* @ Firefox, prevent dotted border after click */
354
+ /* Set transparent border to prevent jumping when active node gets a border
355
+ (we can do this, because this theme doesn't use vertical lines)
356
+ */
357
+ border: 1px solid white; /* Note: 'transparent' would not work in IE6 */
358
+ cursor: pointer;
359
+ }
360
+
361
+ .fancytree-title:hover
362
+ {
363
+ /* text-decoration: underline; */
364
+ background-color: #F2F7FD; /* light blue */
365
+ border-color: #B8D6FB; /* darker light blue */
366
+ }
367
+
368
+ .fancytree-folder .fancytree-title
369
+ {
370
+ /* font-weight: bold; */ /* custom */
371
+ }
372
+
373
+ a.fancytree-title:focus,
374
+ span.fancytree-focused a:link, /* @IE */
375
+ span.fancytree-focused span.fancytree-title
376
+ {
377
+ background-color: #EFEBDE; /* gray */
378
+ outline: 1px dotted gray;
379
+ }
380
+
381
+ span.fancytree-has-children span.fancytree-title
382
+ {
383
+ /* font-style: oblique; /* custom: */
384
+ }
385
+
386
+ span.fancytree-expanded span.fancytree-title
387
+ {
388
+ }
389
+
390
+ span.fancytree-selected span.fancytree-title
391
+ {
392
+ /* color: green; */
393
+ font-style: italic;
394
+ }
395
+
396
+ span.fancytree-active span.fancytree-title
397
+ {
398
+ border: 1px solid #99DEFD;
399
+ background-color: #D8F0FA;
400
+ }
401
+
402
+ /*******************************************************************************
403
+ * 'table' extension
404
+ */
405
+
406
+ /*
407
+ table.fancytree-ext-table {
408
+ border-collapse: collapse;
409
+ width: 100%;
410
+ }
411
+ table.fancytree-ext-table tbody tr:nth-child(even){
412
+ background-color: #f4f4f8;
413
+ }
414
+ table.fancytree-ext-table tbody tr td {
415
+ border: 1px solid lightgray;
416
+ }
417
+ */
418
+ table.fancytree-ext-table {
419
+ border-collapse: collapse;
420
+ }
421
+ table.fancytree-ext-table tbody tr.fancytree-focused {
422
+ background-color: #99DEFD;
423
+ }
424
+ table.fancytree-ext-table tbody tr.fancytree-active {
425
+ background-color: royalblue;
426
+ }
427
+ table.fancytree-ext-table tbody tr.fancytree-selected {
428
+ background-color: #99FDDE;
429
+ }
430
+
431
+ /*******************************************************************************
432
+ * 'columnview' extension
433
+ */
434
+
435
+ /*
436
+ table.fancytree-ext-columnview {
437
+ border-collapse: collapse;
438
+ width: 100%;
439
+ }
440
+ */
441
+ table.fancytree-ext-columnview td >ul
442
+ {
443
+ padding: 0;
444
+ }
445
+ table.fancytree-ext-columnview td >ul li
446
+ {
447
+ list-style-image: none;
448
+ list-style-position: outside;
449
+ list-style-type: none;
450
+ -moz-background-clip:border;
451
+ -moz-background-inline-policy: continuous;
452
+ -moz-background-origin: padding;
453
+ background-attachment: scroll;
454
+ background-color: transparent;
455
+ background-position: 0 0;
456
+ background-repeat: repeat-y;
457
+ background-image: none; /* no v-lines */
458
+
459
+ margin: 0;
460
+ padding: 1px 0 0 0;
461
+ }
462
+ /*
463
+ table.fancytree-ext-columnview tbody tr[0] {
464
+ height: 200px;
465
+ }
466
+ */
467
+ table.fancytree-ext-columnview tbody tr td {
468
+ border: 1px solid gray;
469
+ vertical-align: top;
470
+ overflow: auto;
471
+ }
472
+ table.fancytree-ext-columnview span.fancytree-node {
473
+ position: relative; /* allow positioning of embedded spans*/
474
+ display: inline-block;
475
+ width: 100%;
476
+ }
477
+ table.fancytree-ext-columnview span.fancytree-node a{
478
+ border: 1px solid transparent;
479
+ background-color: transparent;
480
+ }
481
+ table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {
482
+ background-color: #ccc;
483
+ }
484
+ table.fancytree-ext-columnview span.fancytree-node.fancytree-active {
485
+ background-color: royalblue;
486
+ }
487
+ table.fancytree-ext-columnview span.fancytree-cv-right {
488
+ background-position: 0px -80px;
489
+ position: absolute;
490
+ right: 3px;
491
+ }
492
+
493
+
494
+ /*******************************************************************************
495
+ * 'filter' extension
496
+ */
497
+ .fancytree-ext-filter .fancytree-node .fancytree-title {
498
+ color: silver;
499
+ font-weight: lighter;
500
+ }
501
+ .fancytree-ext-filter .fancytree-node.fancytree-submatch .fancytree-title {
502
+ color: black;
503
+ font-weight: normal;
504
+ }
505
+ .fancytree-ext-filter .fancytree-node.fancytree-match .fancytree-title {
506
+ color: black;
507
+ font-weight: bold;
508
+ }
509
+
510
+
511
+ /*******************************************************************************
512
+ * Drag'n'drop support
513
+ */
514
+
515
+ /*** Helper object ************************************************************/
516
+ div.fancytree-drag-helper
517
+ {
518
+ }
519
+ div.fancytree-drag-helper a
520
+ {
521
+ border: 1px solid gray;
522
+ background-color: white;
523
+ padding-left: 5px;
524
+ padding-right: 5px;
525
+ opacity: 0.8;
526
+ }
527
+ span.fancytree-drag-helper-img
528
+ {
529
+ /*
530
+ position: relative;
531
+ left: -16px;
532
+ */
533
+ }
534
+ div.fancytree-drag-helper /*.fancytree-drop-accept*/
535
+ {
536
+ /* border-color: green;
537
+ background-color: red;*/
538
+ }
539
+ div.fancytree-drop-accept span.fancytree-drag-helper-img
540
+ {
541
+ background-position: -32px -112px;
542
+ }
543
+ div.fancytree-drag-helper.fancytree-drop-reject
544
+ {
545
+ border-color: red;
546
+ }
547
+ div.fancytree-drop-reject span.fancytree-drag-helper-img
548
+ {
549
+ background-position: -16px -112px;
550
+ }
551
+
552
+ /*** Drop marker icon *********************************************************/
553
+
554
+ #fancytree-drop-marker
555
+ {
556
+ width: 24px;
557
+ position: absolute;
558
+ background-position: 0 -128px;
559
+ margin: 0;
560
+ }
561
+ #fancytree-drop-marker.fancytree-drop-after,
562
+ #fancytree-drop-marker.fancytree-drop-before
563
+ {
564
+ width:64px;
565
+ background-position: 0 -144px;
566
+ }
567
+ #fancytree-drop-marker.fancytree-drop-copy
568
+ {
569
+ background-position: -64px -128px;
570
+ }
571
+ #fancytree-drop-marker.fancytree-drop-move
572
+ {
573
+ background-position: -64px -128px;
574
+ }
575
+
576
+ /*** Source node while dragging ***********************************************/
577
+
578
+ span.fancytree-drag-source
579
+ {
580
+ /* border: 1px dotted gray; */
581
+ background-color: #e0e0e0;
582
+ }
583
+ span.fancytree-drag-source a
584
+ {
585
+ color: gray;
586
+ }
587
+
588
+ /*** Target node while dragging cursor is over it *****************************/
589
+
590
+ span.fancytree-drop-target
591
+ {
592
+ /*border: 1px solid gray;*/
593
+ }
594
+ span.fancytree-drop-target a
595
+ {
596
+ }
597
+ span.fancytree-drop-target.fancytree-drop-accept a
598
+ {
599
+ /*border: 1px solid green;*/
600
+ background-color: #3169C6 !important;
601
+ color: white !important; /* @ IE6 */
602
+ text-decoration: none;
603
+ }
604
+ span.fancytree-drop-target.fancytree-drop-reject
605
+ {
606
+ /*border: 1px solid red;*/
607
+ }
608
+ span.fancytree-drop-target.fancytree-drop-after a
609
+ {
610
+ }