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