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,470 @@
1
+ /*!
2
+ * Fancytree "Win8" skin.
3
+ *
4
+ * DON'T EDIT THE CSS FILE DIRECTLY, since it is automatically generated from
5
+ * the LESS templates.
6
+ */
7
+ /*******************************************************************************
8
+ * Common Styles for Fancytree Skins.
9
+ *
10
+ * This section is automatically generated from the `skin-common.less` template.
11
+ ******************************************************************************/
12
+ /*------------------------------------------------------------------------------
13
+ * Helpers
14
+ *----------------------------------------------------------------------------*/
15
+ .ui-helper-hidden {
16
+ display: none;
17
+ }
18
+ /*------------------------------------------------------------------------------
19
+ * Container and UL / LI
20
+ *----------------------------------------------------------------------------*/
21
+ ul.fancytree-container {
22
+ font-family: tahoma, arial, helvetica;
23
+ font-size: 10pt;
24
+ white-space: nowrap;
25
+ padding: 3px;
26
+ margin: 0;
27
+ background-color: white;
28
+ border: 1px dotted gray;
29
+ overflow: auto;
30
+ height: 100%;
31
+ }
32
+ ul.fancytree-container ul {
33
+ padding: 0 0 0 16px;
34
+ margin: 0;
35
+ }
36
+ ul.fancytree-container li {
37
+ list-style-image: none;
38
+ list-style-position: outside;
39
+ list-style-type: none;
40
+ -moz-background-clip: border;
41
+ -moz-background-inline-policy: continuous;
42
+ -moz-background-origin: padding;
43
+ background-attachment: scroll;
44
+ background-color: transparent;
45
+ background-position: 0px 0px;
46
+ background-repeat: repeat-y;
47
+ background-image: none;
48
+ margin: 0;
49
+ padding: 1px 0 0 0;
50
+ }
51
+ ul.fancytree-container li.fancytree-lastsib {
52
+ background-image: none;
53
+ }
54
+ ul.fancytree-no-connector > li {
55
+ background-image: none;
56
+ }
57
+ .ui-fancytree-disabled ul.fancytree-container {
58
+ opacity: 0.5;
59
+ background-color: silver;
60
+ }
61
+ /*------------------------------------------------------------------------------
62
+ * Common icon definitions
63
+ *----------------------------------------------------------------------------*/
64
+ span.fancytree-empty,
65
+ span.fancytree-vline,
66
+ span.fancytree-expander,
67
+ span.fancytree-icon,
68
+ span.fancytree-checkbox,
69
+ span.fancytree-radio,
70
+ span.fancytree-drag-helper-img,
71
+ #fancytree-drop-marker {
72
+ width: 16px;
73
+ height: 16px;
74
+ display: inline-block;
75
+ vertical-align: top;
76
+ background-repeat: no-repeat;
77
+ background-position: left;
78
+ background-image: url("icons.gif");
79
+ background-position: 0px 0px;
80
+ }
81
+ /* Used by iconclass option */
82
+ span.fancytree-custom-icon {
83
+ display: inline-block;
84
+ }
85
+ /* Used by 'icon' node option: */
86
+ .fancytree-container img {
87
+ width: 16px;
88
+ height: 16px;
89
+ margin-left: 3px;
90
+ vertical-align: top;
91
+ border-style: none;
92
+ }
93
+ /*------------------------------------------------------------------------------
94
+ * Expander icon
95
+ *
96
+ * Note: IE6 doesn't correctly evaluate multiples class names,
97
+ * so we create combined class names that can be used in the CSS.
98
+ *
99
+ * Prefix: fancytree-exp-
100
+ * 1st character: 'e': expanded, 'c': collapsed, 'n': no children
101
+ * 2nd character (optional): 'd': lazy (Delayed)
102
+ * 3rd character (optional): 'l': Last sibling
103
+ *----------------------------------------------------------------------------*/
104
+ span.fancytree-expander {
105
+ cursor: pointer;
106
+ }
107
+ .fancytree-exp-n span.fancytree-expander,
108
+ .fancytree-exp-nl span.fancytree-expander {
109
+ background-image: none;
110
+ cursor: default;
111
+ }
112
+ .fancytree-exp-n span.fancytree-expander,
113
+ .fancytree-exp-n span.fancytree-expander:hover {
114
+ background-position: 0px -64px;
115
+ }
116
+ .fancytree-exp-nl span.fancytree-expander,
117
+ .fancytree-exp-nl span.fancytree-expander:hover {
118
+ background-position: -16px -64px;
119
+ }
120
+ .fancytree-exp-c span.fancytree-expander {
121
+ background-position: 0px -80px;
122
+ }
123
+ .fancytree-exp-c span.fancytree-expander:hover {
124
+ background-position: -16px -80px;
125
+ }
126
+ .fancytree-exp-cl span.fancytree-expander {
127
+ background-position: 0px -96px;
128
+ }
129
+ .fancytree-exp-cl span.fancytree-expander:hover {
130
+ background-position: -16px -96px;
131
+ }
132
+ .fancytree-exp-cd span.fancytree-expander {
133
+ background-position: -64px -80px;
134
+ }
135
+ .fancytree-exp-cd span.fancytree-expander:hover {
136
+ background-position: -80px -80px;
137
+ }
138
+ .fancytree-exp-cdl span.fancytree-expander {
139
+ background-position: -64px -96px;
140
+ }
141
+ .fancytree-exp-cdl span.fancytree-expander:hover {
142
+ background-position: -80px -96px;
143
+ }
144
+ .fancytree-exp-e span.fancytree-expander,
145
+ .fancytree-exp-ed span.fancytree-expander {
146
+ background-position: -32px -80px;
147
+ }
148
+ .fancytree-exp-e span.fancytree-expander:hover,
149
+ .fancytree-exp-ed span.fancytree-expander:hover {
150
+ background-position: -48px -80px;
151
+ }
152
+ .fancytree-exp-el span.fancytree-expander,
153
+ .fancytree-exp-edl span.fancytree-expander {
154
+ background-position: -32px -96px;
155
+ }
156
+ .fancytree-exp-el span.fancytree-expander:hover,
157
+ .fancytree-exp-edl span.fancytree-expander:hover {
158
+ background-position: -48px -96px;
159
+ }
160
+ .fancytree-loading span.fancytree-expander {
161
+ background-image: url("loading.gif");
162
+ background-position: 0px 0px;
163
+ }
164
+ /*------------------------------------------------------------------------------
165
+ * Checkbox icon
166
+ *----------------------------------------------------------------------------*/
167
+ span.fancytree-checkbox {
168
+ margin-left: 3px;
169
+ background-position: 0px -32px;
170
+ }
171
+ span.fancytree-checkbox:hover {
172
+ background-position: -16px -32px;
173
+ }
174
+ .fancytree-partsel span.fancytree-checkbox {
175
+ background-position: -64px -32px;
176
+ }
177
+ .fancytree-partsel span.fancytree-checkbox:hover {
178
+ background-position: -80px -32px;
179
+ }
180
+ .fancytree-selected span.fancytree-checkbox {
181
+ background-position: -32px -32px;
182
+ }
183
+ .fancytree-selected span.fancytree-checkbox:hover {
184
+ background-position: -48px -32px;
185
+ }
186
+ /*------------------------------------------------------------------------------
187
+ * Radiobutton icon
188
+ * This is a customization, that may be activated by overriding the 'checkbox'
189
+ * class name as 'fancytree-radio' in the tree options.
190
+ *----------------------------------------------------------------------------*/
191
+ .fancytree-radio span.fancytree-checkbox {
192
+ margin-left: 3px;
193
+ background-position: 0px -48px;
194
+ }
195
+ .fancytree-radio span.fancytree-checkbox:hover {
196
+ background-position: -16px -48px;
197
+ }
198
+ .fancytree-radio .fancytree-partsel span.fancytree-checkbox {
199
+ background-position: -64px -48px;
200
+ }
201
+ .fancytree-radio .fancytree-partsel span.fancytree-checkbox:hover {
202
+ background-position: -80px -48px;
203
+ }
204
+ .fancytree-radio .fancytree-selected span.fancytree-checkbox {
205
+ background-position: -32px -48px;
206
+ }
207
+ .fancytree-radio .fancytree-selected span.fancytree-checkbox:hover {
208
+ background-position: -48px -48px;
209
+ }
210
+ /*------------------------------------------------------------------------------
211
+ * Node type icon
212
+ * Note: IE6 doesn't correctly evaluate multiples class names,
213
+ * so we create combined class names that can be used in the CSS.
214
+ *
215
+ * Prefix: fancytree-ico-
216
+ * 1st character: 'e': expanded, 'c': collapsed
217
+ * 2nd character (optional): 'f': folder
218
+ *----------------------------------------------------------------------------*/
219
+ span.fancytree-icon {
220
+ margin-left: 3px;
221
+ background-position: 0px 0px;
222
+ }
223
+ /* Documents */
224
+ .fancytree-ico-c span.fancytree-icon:hover {
225
+ background-position: -16px 0px;
226
+ }
227
+ .fancytree-has-children.fancytree-ico-c span.fancytree-icon {
228
+ background-position: -32px 0px;
229
+ }
230
+ .fancytree-has-children.fancytree-ico-c span.fancytree-icon:hover {
231
+ background-position: -48px 0px;
232
+ }
233
+ .fancytree-ico-e span.fancytree-icon {
234
+ background-position: -64px 0px;
235
+ }
236
+ .fancytree-ico-e span.fancytree-icon:hover {
237
+ background-position: -80px 0px;
238
+ }
239
+ /* Folders */
240
+ .fancytree-ico-cf span.fancytree-icon {
241
+ background-position: 0px -16px;
242
+ }
243
+ .fancytree-ico-cf span.fancytree-icon:hover {
244
+ background-position: -16px -16px;
245
+ }
246
+ .fancytree-has-children.fancytree-ico-cf span.fancytree-icon {
247
+ background-position: -32px -16px;
248
+ }
249
+ .fancytree-has-children.fancytree-ico-cf span.fancytree-icon:hover {
250
+ background-position: -48px -16px;
251
+ }
252
+ .fancytree-ico-ef span.fancytree-icon {
253
+ background-position: -64px -16px;
254
+ }
255
+ .fancytree-ico-ef span.fancytree-icon:hover {
256
+ background-position: -80px -16px;
257
+ }
258
+ /* Status node icons */
259
+ .fancytree-statusnode-wait span.fancytree-icon {
260
+ background-image: url("loading.gif");
261
+ }
262
+ .fancytree-statusnode-error span.fancytree-icon {
263
+ background-position: 0px -112px;
264
+ }
265
+ /*------------------------------------------------------------------------------
266
+ * Node titles and highlighting
267
+ *----------------------------------------------------------------------------*/
268
+ span.fancytree-node {
269
+ display: inline-block;
270
+ width: 100%;
271
+ }
272
+ span.fancytree-title {
273
+ display: inline-block;
274
+ padding-left: 3px;
275
+ padding-right: 3px;
276
+ color: black;
277
+ vertical-align: top;
278
+ margin: 0px;
279
+ margin-left: 3px;
280
+ cursor: pointer;
281
+ }
282
+ /*------------------------------------------------------------------------------
283
+ * Drag'n'drop support
284
+ *----------------------------------------------------------------------------*/
285
+ div.fancytree-drag-helper a {
286
+ border: 1px solid gray;
287
+ background-color: white;
288
+ padding-left: 5px;
289
+ padding-right: 5px;
290
+ opacity: 0.8;
291
+ }
292
+ div.fancytree-drag-helper.fancytree-drop-reject {
293
+ border-color: red;
294
+ }
295
+ div.fancytree-drop-accept span.fancytree-drag-helper-img {
296
+ background-position: -32px -112px;
297
+ }
298
+ div.fancytree-drop-reject span.fancytree-drag-helper-img {
299
+ background-position: -16px -112px;
300
+ }
301
+ /*** Drop marker icon *********************************************************/
302
+ #fancytree-drop-marker {
303
+ width: 32px;
304
+ position: absolute;
305
+ background-position: 0px -128px;
306
+ margin: 0;
307
+ }
308
+ #fancytree-drop-marker.fancytree-drop-after,
309
+ #fancytree-drop-marker.fancytree-drop-before {
310
+ width: 64px;
311
+ background-position: 0px -144px;
312
+ }
313
+ #fancytree-drop-marker.fancytree-drop-copy {
314
+ background-position: -64px -128px;
315
+ }
316
+ #fancytree-drop-marker.fancytree-drop-move {
317
+ background-position: -32px -128px;
318
+ }
319
+ /*** Source node while dragging ***********************************************/
320
+ span.fancytree-drag-source {
321
+ background-color: #e0e0e0;
322
+ }
323
+ span.fancytree-drag-source span.fancytree.title {
324
+ color: gray;
325
+ }
326
+ /*** Target node while dragging cursor is over it *****************************/
327
+ span.fancytree-drop-target.fancytree-drop-accept a {
328
+ background-color: #3169C6 !important;
329
+ color: white !important;
330
+ /* @ IE6 */
331
+ text-decoration: none;
332
+ }
333
+ /*------------------------------------------------------------------------------
334
+ * 'table' extension
335
+ *----------------------------------------------------------------------------*/
336
+ table.fancytree-ext-table {
337
+ border-collapse: collapse;
338
+ }
339
+ /*------------------------------------------------------------------------------
340
+ * 'columnview' extension
341
+ *----------------------------------------------------------------------------*/
342
+ table.fancytree-ext-columnview tbody tr td {
343
+ position: relative;
344
+ border: 1px solid gray;
345
+ vertical-align: top;
346
+ overflow: auto;
347
+ }
348
+ table.fancytree-ext-columnview tbody tr td > ul {
349
+ padding: 0;
350
+ }
351
+ table.fancytree-ext-columnview tbody tr td > ul li {
352
+ list-style-image: none;
353
+ list-style-position: outside;
354
+ list-style-type: none;
355
+ -moz-background-clip: border;
356
+ -moz-background-inline-policy: continuous;
357
+ -moz-background-origin: padding;
358
+ background-attachment: scroll;
359
+ background-color: transparent;
360
+ background-position: 0px 0px;
361
+ background-repeat: repeat-y;
362
+ background-image: none;
363
+ /* no v-lines */
364
+ margin: 0;
365
+ padding: 1px 0 0 0;
366
+ }
367
+ table.fancytree-ext-columnview span.fancytree-node {
368
+ position: relative;
369
+ /* allow positioning of embedded spans */
370
+ }
371
+ table.fancytree-ext-columnview span.fancytree-node.fancytree-expanded {
372
+ background-color: #CBE8F6;
373
+ }
374
+ table.fancytree-ext-columnview .fancytree-has-children span.fancytree-cv-right {
375
+ background-position: 0px -80px;
376
+ position: absolute;
377
+ right: 3px;
378
+ }
379
+ /*------------------------------------------------------------------------------
380
+ * 'filter' extension
381
+ *----------------------------------------------------------------------------*/
382
+ .fancytree-ext-filter span.fancytree-node span.fancytree-title {
383
+ color: silver;
384
+ font-weight: lighter;
385
+ }
386
+ .fancytree-ext-filter span.fancytree-node.fancytree-submatch span.fancytree-title {
387
+ color: black;
388
+ font-weight: normal;
389
+ }
390
+ .fancytree-ext-filter span.fancytree-node.fancytree-match span.fancytree-title {
391
+ color: black;
392
+ font-weight: bold;
393
+ }
394
+ /*******************************************************************************
395
+ * Styles specific to this skin.
396
+ *
397
+ * This section is automatically generated from the `ui-fancytree.less` template.
398
+ ******************************************************************************/
399
+ /*******************************************************************************
400
+ * Node titles
401
+ */
402
+ span.fancytree-node {
403
+ border: 1px solid transparent;
404
+ }
405
+ span.fancytree-node:hover {
406
+ background-color: #E5F3FB;
407
+ border-color: #70C0E7;
408
+ }
409
+ .fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-focused {
410
+ border-color: #3399FF;
411
+ }
412
+ span.fancytree-node.fancytree-active,
413
+ span.fancytree-node.fancytree-selected {
414
+ background-color: #F7F7F7;
415
+ border-color: #DEDEDE;
416
+ }
417
+ .fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-active,
418
+ .fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected,
419
+ span.fancytree-node.fancytree-active:hover,
420
+ span.fancytree-node.fancytree-selected:hover {
421
+ background-color: #CBE8F6;
422
+ border-color: #26A0DA;
423
+ }
424
+ .fancytree-node.fancytree-selected {
425
+ font-style: italic;
426
+ }
427
+ /*******************************************************************************
428
+ * 'table' extension
429
+ */
430
+ table.fancytree-ext-table tbody tr td {
431
+ border: 1px solid #EDEDED;
432
+ }
433
+ table.fancytree-ext-table tbody span.fancytree-node,
434
+ table.fancytree-ext-table tbody span.fancytree-node:hover {
435
+ border: none;
436
+ background: none;
437
+ }
438
+ table.fancytree-ext-table tbody span.fancytree-title:hover {
439
+ border: none;
440
+ background: inherit;
441
+ background: transparent;
442
+ background: none;
443
+ filter: none;
444
+ }
445
+ table.fancytree-ext-table tbody tr:hover {
446
+ background-color: #E5F3FB;
447
+ outline: 1px solid #70C0E7;
448
+ }
449
+ table.fancytree-ext-table tbody tr.fancytree-focused span.fancytree-title {
450
+ outline: 1px dotted black;
451
+ }
452
+ table.fancytree-ext-table tbody tr.fancytree-active:hover,
453
+ table.fancytree-ext-table tbody tr.fancytree-selected:hover {
454
+ background-color: #CBE8F6;
455
+ outline: 1px solid #26A0DA;
456
+ }
457
+ table.fancytree-ext-table tbody tr.fancytree-active {
458
+ background-color: #F7F7F7;
459
+ outline: 1px solid #DEDEDE;
460
+ }
461
+ table.fancytree-ext-table tbody tr.fancytree-selected {
462
+ background-color: #F7F7F7;
463
+ }
464
+ table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-active {
465
+ background-color: #CBE8F6;
466
+ outline: 1px solid #26A0DA;
467
+ }
468
+ table.fancytree-ext-table.fancytree-treefocus tbody tr.fancytree-selected {
469
+ background-color: #CBE8F6;
470
+ }