slickgrid 2.3.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +20 -0
  4. data/README.md +30 -0
  5. data/lib/slickgrid.rb +6 -0
  6. data/lib/slickgrid/version.rb +3 -0
  7. data/slickgrid.gemspec +20 -0
  8. data/vendor/assets/images/slickgrid/CheckboxN.png +0 -0
  9. data/vendor/assets/images/slickgrid/CheckboxY.png +0 -0
  10. data/vendor/assets/images/slickgrid/GrpCheckboxN.png +0 -0
  11. data/vendor/assets/images/slickgrid/GrpCheckboxY.png +0 -0
  12. data/vendor/assets/images/slickgrid/actions.gif +0 -0
  13. data/vendor/assets/images/slickgrid/ajax-loader-small.gif +0 -0
  14. data/vendor/assets/images/slickgrid/arrow-right.gif +0 -0
  15. data/vendor/assets/images/slickgrid/arrow_redo.png +0 -0
  16. data/vendor/assets/images/slickgrid/arrow_right_peppermint.png +0 -0
  17. data/vendor/assets/images/slickgrid/arrow_right_spearmint.png +0 -0
  18. data/vendor/assets/images/slickgrid/arrow_undo.png +0 -0
  19. data/vendor/assets/images/slickgrid/bullet_blue.png +0 -0
  20. data/vendor/assets/images/slickgrid/bullet_star.png +0 -0
  21. data/vendor/assets/images/slickgrid/bullet_toggle_minus.png +0 -0
  22. data/vendor/assets/images/slickgrid/bullet_toggle_plus.png +0 -0
  23. data/vendor/assets/images/slickgrid/calendar.gif +0 -0
  24. data/vendor/assets/images/slickgrid/collapse.gif +0 -0
  25. data/vendor/assets/images/slickgrid/comment_yellow.gif +0 -0
  26. data/vendor/assets/images/slickgrid/delete.png +0 -0
  27. data/vendor/assets/images/slickgrid/down.gif +0 -0
  28. data/vendor/assets/images/slickgrid/drag-handle.png +0 -0
  29. data/vendor/assets/images/slickgrid/editor-helper-bg.gif +0 -0
  30. data/vendor/assets/images/slickgrid/expand.gif +0 -0
  31. data/vendor/assets/images/slickgrid/header-bg.gif +0 -0
  32. data/vendor/assets/images/slickgrid/header-columns-bg.gif +0 -0
  33. data/vendor/assets/images/slickgrid/header-columns-over-bg.gif +0 -0
  34. data/vendor/assets/images/slickgrid/help.png +0 -0
  35. data/vendor/assets/images/slickgrid/info.gif +0 -0
  36. data/vendor/assets/images/slickgrid/listview.gif +0 -0
  37. data/vendor/assets/images/slickgrid/pencil.gif +0 -0
  38. data/vendor/assets/images/slickgrid/row-over-bg.gif +0 -0
  39. data/vendor/assets/images/slickgrid/sort-asc.gif +0 -0
  40. data/vendor/assets/images/slickgrid/sort-asc.png +0 -0
  41. data/vendor/assets/images/slickgrid/sort-desc.gif +0 -0
  42. data/vendor/assets/images/slickgrid/sort-desc.png +0 -0
  43. data/vendor/assets/images/slickgrid/stripes.png +0 -0
  44. data/vendor/assets/images/slickgrid/tag_red.png +0 -0
  45. data/vendor/assets/images/slickgrid/tick.png +0 -0
  46. data/vendor/assets/images/slickgrid/user_identity.gif +0 -0
  47. data/vendor/assets/images/slickgrid/user_identity_plus.gif +0 -0
  48. data/vendor/assets/javascripts/slickgrid.js +5 -0
  49. data/vendor/assets/javascripts/slickgrid/controls/columnpicker.js +221 -0
  50. data/vendor/assets/javascripts/slickgrid/controls/gridmenu.js +429 -0
  51. data/vendor/assets/javascripts/slickgrid/controls/pager.js +154 -0
  52. data/vendor/assets/javascripts/slickgrid/core.js +493 -0
  53. data/vendor/assets/javascripts/slickgrid/dataview.js +1220 -0
  54. data/vendor/assets/javascripts/slickgrid/editors.js +640 -0
  55. data/vendor/assets/javascripts/slickgrid/formatters.js +65 -0
  56. data/vendor/assets/javascripts/slickgrid/grid.js +3990 -0
  57. data/vendor/assets/javascripts/slickgrid/groupitemmetadataprovider.js +172 -0
  58. data/vendor/assets/javascripts/slickgrid/plugins/autotooltips.js +83 -0
  59. data/vendor/assets/javascripts/slickgrid/plugins/cellcopymanager.js +88 -0
  60. data/vendor/assets/javascripts/slickgrid/plugins/cellexternalcopymanager.js +452 -0
  61. data/vendor/assets/javascripts/slickgrid/plugins/cellrangedecorator.js +72 -0
  62. data/vendor/assets/javascripts/slickgrid/plugins/cellrangeselector.js +123 -0
  63. data/vendor/assets/javascripts/slickgrid/plugins/cellselectionmodel.js +168 -0
  64. data/vendor/assets/javascripts/slickgrid/plugins/checkboxselectcolumn.js +202 -0
  65. data/vendor/assets/javascripts/slickgrid/plugins/draggablegrouping.js +207 -0
  66. data/vendor/assets/javascripts/slickgrid/plugins/headerbuttons.js +177 -0
  67. data/vendor/assets/javascripts/slickgrid/plugins/headermenu.js +296 -0
  68. data/vendor/assets/javascripts/slickgrid/plugins/rowdetailview.js +455 -0
  69. data/vendor/assets/javascripts/slickgrid/plugins/rowmovemanager.js +138 -0
  70. data/vendor/assets/javascripts/slickgrid/plugins/rowselectionmodel.js +191 -0
  71. data/vendor/assets/javascripts/slickgrid/remotemodel.js +169 -0
  72. data/vendor/assets/stylesheets/slickgrid.scss +1 -0
  73. data/vendor/assets/stylesheets/slickgrid/controls/columnpicker.css +46 -0
  74. data/vendor/assets/stylesheets/slickgrid/controls/gridmenu.css +113 -0
  75. data/vendor/assets/stylesheets/slickgrid/controls/pager.css +41 -0
  76. data/vendor/assets/stylesheets/slickgrid/default-theme.css +132 -0
  77. data/vendor/assets/stylesheets/slickgrid/grid.css +189 -0
  78. data/vendor/assets/stylesheets/slickgrid/plugins/headerbuttons.css +39 -0
  79. data/vendor/assets/stylesheets/slickgrid/plugins/headermenu.css +59 -0
  80. data/vendor/assets/stylesheets/slickgrid/plugins/rowdetailview.css +39 -0
  81. metadata +165 -0
@@ -0,0 +1 @@
1
+ //= require_tree ./slickgrid
@@ -0,0 +1,46 @@
1
+ .slick-columnpicker {
2
+ border: 1px solid #718BB7;
3
+ background: #f0f0f0;
4
+ padding: 6px;
5
+ -moz-box-shadow: 2px 2px 2px silver;
6
+ -webkit-box-shadow: 2px 2px 2px silver;
7
+ box-shadow: 2px 2px 2px silver;
8
+ min-width: 150px;
9
+ cursor: default;
10
+ position:absolute;
11
+ z-index:20;
12
+ overflow:auto;
13
+ resize: both;
14
+ }
15
+
16
+ .slick-columnpicker > .close {
17
+ float: right;
18
+ }
19
+
20
+ .slick-columnpicker .title {
21
+ font-size: 16px;
22
+ width: 60%;
23
+ border-bottom: solid 1px #d6d6d6;
24
+ margin-bottom: 10px;
25
+ }
26
+
27
+ .slick-columnpicker li {
28
+ list-style: none;
29
+ margin: 0;
30
+ padding: 0;
31
+ background: none;
32
+ }
33
+
34
+ .slick-columnpicker input {
35
+ margin: 4px;
36
+ }
37
+
38
+ .slick-columnpicker li a {
39
+ display: block;
40
+ padding: 4px;
41
+ font-weight: bold;
42
+ }
43
+
44
+ .slick-columnpicker li a:hover {
45
+ background: white;
46
+ }
@@ -0,0 +1,113 @@
1
+ .slick-gridmenu {
2
+ border: 1px solid #718BB7;
3
+ background: #f0f0f0;
4
+ padding: 6px;
5
+ -moz-box-shadow: 2px 2px 2px silver;
6
+ -webkit-box-shadow: 2px 2px 2px silver;
7
+ box-shadow: 2px 2px 2px silver;
8
+ min-width: 180px;
9
+ cursor: default;
10
+ position:absolute;
11
+ z-index:20;
12
+ overflow:auto;
13
+ resize: both;
14
+ }
15
+
16
+ .slick-gridmenu-button {
17
+ position: absolute;
18
+ cursor: pointer;
19
+ right: 0;
20
+ padding: 0 2px;
21
+ top: 0;
22
+ background-color: transparent;
23
+ cursor: pointer;
24
+ border: 0;
25
+ margin-top: 5px;
26
+ width: 16px;
27
+ }
28
+
29
+ .slick-gridmenu > .close {
30
+ float: right;
31
+ }
32
+
33
+ .slick-gridmenu .title {
34
+ font-size: 16px;
35
+ width: calc(100% - 30px);
36
+ border-bottom: solid 1px #d6d6d6;
37
+ margin-bottom: 5px;
38
+ }
39
+
40
+ .slick-gridmenu li {
41
+ list-style: none;
42
+ margin: 0;
43
+ padding: 0;
44
+ background: none;
45
+ }
46
+
47
+ .slick-gridmenu input {
48
+ margin: 4px;
49
+ }
50
+
51
+ .slick-gridmenu li a {
52
+ display: block;
53
+ padding: 4px;
54
+ font-weight: bold;
55
+ }
56
+
57
+ .slick-gridmenu li a:hover {
58
+ background: white;
59
+ }
60
+
61
+
62
+ .slick-gridmenu-custom {
63
+ margin-bottom: 10px;
64
+ }
65
+
66
+ /* Menu */
67
+ .slick-gridmenu- {
68
+ position: absolute;
69
+ display: inline-block;
70
+ margin: 0;
71
+ padding: 2px;
72
+ cursor: default;
73
+ }
74
+
75
+
76
+ /* Menu items */
77
+ .slick-gridmenu-item {
78
+ list-style: none;
79
+ margin: 0;
80
+ cursor: pointer;
81
+ padding: 2px 4px;
82
+ border: 1px solid transparent;
83
+ border-radius: 3px;
84
+ }
85
+ .slick-gridmenu-item:hover {
86
+ border-color: silver;
87
+ background: white;
88
+ }
89
+ .slick-gridmenu-item-disabled {
90
+ border-color: transparent !important;
91
+ background: inherit !important;
92
+ }
93
+
94
+ .slick-gridmenu-icon {
95
+ display: inline-block;
96
+ width: 14px;
97
+ height: 14px;
98
+ vertical-align: middle;
99
+ margin-right: 4px;
100
+ background-repeat: no-repeat;
101
+ background-position: center center;
102
+ }
103
+
104
+ .slick-gridmenu-content {
105
+ display: inline-block;
106
+ vertical-align: middle;
107
+ }
108
+
109
+
110
+ /* Disabled */
111
+ .slick-gridmenu-item-disabled {
112
+ color: silver;
113
+ }
@@ -0,0 +1,41 @@
1
+ .slick-pager {
2
+ width: 100%;
3
+ height: 26px;
4
+ border: 1px solid gray;
5
+ border-top: 0;
6
+ background: url('../slickgrid/header-columns-bg.gif') repeat-x center bottom;
7
+ vertical-align: middle;
8
+ }
9
+
10
+ .slick-pager .slick-pager-status {
11
+ display: inline-block;
12
+ padding: 6px;
13
+ }
14
+
15
+ .slick-pager .ui-icon-container {
16
+ display: inline-block;
17
+ margin: 2px;
18
+ border-color: gray;
19
+ }
20
+
21
+ .slick-pager .slick-pager-nav {
22
+ display: inline-block;
23
+ float: left;
24
+ padding: 2px;
25
+ }
26
+
27
+ .slick-pager .slick-pager-settings {
28
+ display: block;
29
+ float: right;
30
+ padding: 2px;
31
+ }
32
+
33
+ .slick-pager .slick-pager-settings * {
34
+ vertical-align: middle;
35
+ }
36
+
37
+ .slick-pager .slick-pager-settings a {
38
+ padding: 2px;
39
+ text-decoration: underline;
40
+ cursor: pointer;
41
+ }
@@ -0,0 +1,132 @@
1
+ /*
2
+ IMPORTANT:
3
+ In order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.
4
+ No built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS
5
+ classes should alter those!
6
+ */
7
+
8
+ .slick-header-columns {
9
+ background: url('slickgrid/header-columns-bg.gif') repeat-x center bottom;
10
+ border-bottom: 1px solid silver;
11
+ }
12
+
13
+ .slick-header-column {
14
+ background: url('slickgrid/header-columns-bg.gif') repeat-x center bottom;
15
+ border-right: 1px solid silver;
16
+ }
17
+
18
+ .slick-header-column:hover, .slick-header-column-active {
19
+ background: white url('slickgrid/header-columns-over-bg.gif') repeat-x center bottom;
20
+ }
21
+
22
+ .slick-headerrow {
23
+ background: #fafafa;
24
+ }
25
+
26
+ .slick-headerrow-column {
27
+ background: #fafafa;
28
+ border-bottom: 0;
29
+ height: 100%;
30
+ }
31
+
32
+ .slick-row.ui-state-active {
33
+ background: #F5F7D7;
34
+ }
35
+
36
+ .slick-row {
37
+ position: absolute;
38
+ background: white;
39
+ border: 0px;
40
+ line-height: 20px;
41
+ }
42
+
43
+ .slick-row.selected {
44
+ z-index: 10;
45
+ background: #DFE8F6;
46
+ }
47
+
48
+ .slick-cell {
49
+ padding-left: 4px;
50
+ padding-right: 4px;
51
+ }
52
+
53
+ .slick-group {
54
+ border-bottom: 2px solid silver;
55
+ }
56
+
57
+ .slick-group-toggle {
58
+ width: 9px;
59
+ height: 9px;
60
+ margin-right: 5px;
61
+ }
62
+
63
+ .slick-group-toggle.expanded {
64
+ background: url(slickgrid/collapse.gif) no-repeat center center;
65
+ }
66
+
67
+ .slick-group-toggle.collapsed {
68
+ background: url(slickgrid/expand.gif) no-repeat center center;
69
+ }
70
+
71
+ .slick-group-totals {
72
+ color: gray;
73
+ background: white;
74
+ }
75
+
76
+ .slick-group-select-checkbox {
77
+ width: 13px;
78
+ height: 13px;
79
+ margin: 3px 10px 0 0;
80
+ display: inline-block;
81
+ }
82
+ .slick-group-select-checkbox.checked {
83
+ background: url(slickgrid/GrpCheckboxY.png) no-repeat center center;
84
+ }
85
+
86
+ .slick-group-select-checkbox.unchecked {
87
+ background: url(slickgrid/GrpCheckboxN.png) no-repeat center center;
88
+ }
89
+
90
+ .slick-cell.selected {
91
+ background-color: beige;
92
+ }
93
+
94
+ .slick-cell.active {
95
+ border-color: gray;
96
+ border-style: solid;
97
+ }
98
+
99
+ .slick-sortable-placeholder {
100
+ background: silver !important;
101
+ }
102
+
103
+ .slick-row.odd {
104
+ background: #fafafa;
105
+ }
106
+
107
+ .slick-row.ui-state-active {
108
+ background: #F5F7D7;
109
+ }
110
+
111
+ .slick-row.loading {
112
+ opacity: 0.5;
113
+ filter: alpha(opacity = 50);
114
+ }
115
+
116
+ .slick-cell.invalid {
117
+ border-color: red;
118
+ -moz-animation-duration: 0.2s;
119
+ -webkit-animation-duration: 0.2s;
120
+ -moz-animation-name: slickgrid-invalid-hilite;
121
+ -webkit-animation-name: slickgrid-invalid-hilite;
122
+ }
123
+
124
+ @-moz-keyframes slickgrid-invalid-hilite {
125
+ from { box-shadow: 0 0 6px red; }
126
+ to { box-shadow: none; }
127
+ }
128
+
129
+ @-webkit-keyframes slickgrid-invalid-hilite {
130
+ from { box-shadow: 0 0 6px red; }
131
+ to { box-shadow: none; }
132
+ }
@@ -0,0 +1,189 @@
1
+ /*
2
+ IMPORTANT:
3
+ In order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.
4
+ No built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS
5
+ classes should alter those!
6
+ */
7
+
8
+ .slick-header.ui-state-default, .slick-headerrow.ui-state-default, .slick-footerrow.ui-state-default, .slick-top-panel-scroller.ui-state-default {
9
+ width: 100%;
10
+ overflow: auto;
11
+ position: relative;
12
+ border-left: 0px !important;
13
+ }
14
+
15
+ .slick-header.ui-state-default {
16
+ overflow: inherit;
17
+ }
18
+
19
+ .slick-header::-webkit-scrollbar, .slick-headerrow::-webkit-scrollbar, .slick-footerrow::-webkit-scrollbar {
20
+ display: none
21
+ }
22
+
23
+ .slick-header-columns, .slick-headerrow-columns, .slick-footerrow-columns {
24
+ position: relative;
25
+ white-space: nowrap;
26
+ cursor: default;
27
+ overflow: hidden;
28
+ }
29
+
30
+ .slick-header-column.ui-state-default {
31
+ position: relative;
32
+ display: inline-block;
33
+ /*box-sizing: content-box !important; use this for Firefox! */
34
+ overflow: hidden;
35
+ -o-text-overflow: ellipsis;
36
+ text-overflow: ellipsis;
37
+ height: 16px;
38
+ line-height: 16px;
39
+ margin: 0;
40
+ padding: 4px;
41
+ border-right: 1px solid silver;
42
+ border-left: 0px !important;
43
+ border-top: 0px !important;
44
+ border-bottom: 0px !important;
45
+ float: left;
46
+ }
47
+
48
+ .slick-headerrow-column.ui-state-default, .slick-footerrow-column.ui-state-default {
49
+ padding: 4px;
50
+ }
51
+
52
+ .slick-header-column-sorted {
53
+ font-style: italic;
54
+ }
55
+
56
+ .slick-sort-indicator {
57
+ display: inline-block;
58
+ width: 8px;
59
+ height: 5px;
60
+ margin-left: 4px;
61
+ margin-top: 6px;
62
+ float: left;
63
+ }
64
+
65
+ .slick-sort-indicator-numbered {
66
+ display: inline-block;
67
+ width: 8px;
68
+ height: 5px;
69
+ margin-left: 4px;
70
+ margin-top: 0;
71
+ padding-left: 1px;
72
+ line-height: 20px;
73
+ float: left;
74
+ font-family: Arial;
75
+ font-style: normal;
76
+ font-weight: bold;
77
+ color: #6190CD;
78
+ }
79
+
80
+ .slick-sort-indicator-desc {
81
+ background: url(slickgrid/sort-desc.gif);
82
+ }
83
+
84
+ .slick-sort-indicator-asc {
85
+ background: url(slickgrid/sort-asc.gif);
86
+ }
87
+
88
+ .slick-resizable-handle {
89
+ position: absolute;
90
+ font-size: 0.1px;
91
+ display: block;
92
+ cursor: col-resize;
93
+ width: 9px;
94
+ right: -5px;
95
+ top: 0;
96
+ height: 100%;
97
+ z-index: 1;
98
+ }
99
+
100
+ .slick-sortable-placeholder {
101
+ background: silver;
102
+ }
103
+
104
+ .grid-canvas {
105
+ position: relative;
106
+ outline: 0;
107
+ }
108
+
109
+ .slick-row.ui-widget-content, .slick-row.ui-state-active {
110
+ position: absolute;
111
+ border: 0px;
112
+ width: 100%;
113
+ }
114
+
115
+ .slick-cell, .slick-headerrow-column , .slick-footerrow-column{
116
+ position: absolute;
117
+ border: 1px solid transparent;
118
+ border-right: 1px dotted silver;
119
+ border-bottom-color: silver;
120
+ overflow: hidden;
121
+ -o-text-overflow: ellipsis;
122
+ text-overflow: ellipsis;
123
+ vertical-align: middle;
124
+ z-index: 1;
125
+ padding: 1px 2px 2px 1px;
126
+ margin: 0;
127
+ white-space: nowrap;
128
+ cursor: default;
129
+ }
130
+ .slick-cell, .slick-headerrow-column{
131
+ border-bottom-color: silver;
132
+ }
133
+ .slick-footerrow-column {
134
+ border-top-color: silver;
135
+ }
136
+
137
+ .slick-group {
138
+ }
139
+
140
+ .slick-group-toggle {
141
+ display: inline-block;
142
+ }
143
+
144
+ .slick-cell.highlighted {
145
+ background: lightskyblue;
146
+ background: rgba(0, 0, 255, 0.2);
147
+ -webkit-transition: all 0.5s;
148
+ -moz-transition: all 0.5s;
149
+ -o-transition: all 0.5s;
150
+ transition: all 0.5s;
151
+ }
152
+
153
+ .slick-cell.flashing {
154
+ border: 1px solid red !important;
155
+ }
156
+
157
+ .slick-cell.editable {
158
+ z-index: 11;
159
+ overflow: visible;
160
+ background: white;
161
+ border-color: black;
162
+ border-style: solid;
163
+ }
164
+
165
+ .slick-cell:focus {
166
+ outline: none;
167
+ }
168
+
169
+ .slick-reorder-proxy {
170
+ display: inline-block;
171
+ background: blue;
172
+ opacity: 0.15;
173
+ filter: alpha(opacity = 15);
174
+ cursor: move;
175
+ }
176
+
177
+ .slick-reorder-guide {
178
+ display: inline-block;
179
+ height: 2px;
180
+ background: blue;
181
+ opacity: 0.7;
182
+ filter: alpha(opacity = 70);
183
+ }
184
+
185
+ .slick-selection {
186
+ z-index: 10;
187
+ position: absolute;
188
+ border: 2px dashed black;
189
+ }