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