formagic 0.1.0 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/formagic/form.coffee +31 -11
  3. data/app/assets/javascripts/formagic/inputs/checkbox.coffee +1 -0
  4. data/app/assets/javascripts/formagic/inputs/date.coffee +28 -3
  5. data/app/assets/javascripts/formagic/inputs/datetime.coffee +30 -2
  6. data/app/assets/javascripts/formagic/inputs/document.coffee +110 -0
  7. data/app/assets/javascripts/formagic/inputs/documents.coffee +39 -13
  8. data/app/assets/javascripts/formagic/inputs/documents_reorder.coffee +1 -1
  9. data/app/assets/javascripts/formagic/inputs/file.coffee +3 -0
  10. data/app/assets/javascripts/formagic/inputs/html.coffee +1 -0
  11. data/app/assets/javascripts/formagic/inputs/redactor.coffee +1 -0
  12. data/app/assets/javascripts/formagic/inputs/redactor_character.coffee +16 -14
  13. data/app/assets/javascripts/formagic/inputs/select2.coffee +1 -1
  14. data/app/assets/javascripts/formagic/inputs/string.coffee +5 -4
  15. data/app/assets/javascripts/formagic/inputs/text.coffee +4 -3
  16. data/app/assets/javascripts/formagic/inputs/url.coffee +37 -0
  17. data/app/assets/javascripts/formagic.coffee +2 -1
  18. data/app/assets/javascripts/vendor/ace.js +811 -577
  19. data/app/assets/javascripts/vendor/mode-html.js +24 -25
  20. data/app/assets/javascripts/vendor/mode-markdown.js +25 -26
  21. data/app/assets/javascripts/vendor/redactor.table.js +338 -0
  22. data/app/assets/stylesheets/formagic/date.scss +1 -0
  23. data/app/assets/stylesheets/formagic/file.scss +7 -0
  24. data/app/assets/stylesheets/formagic/form.scss +15 -10
  25. data/app/assets/stylesheets/formagic/image.scss +4 -0
  26. data/app/assets/stylesheets/formagic/label.scss +27 -0
  27. data/app/assets/stylesheets/formagic/nested-form.scss +3 -3
  28. data/app/assets/stylesheets/formagic/select2.scss +19 -1
  29. data/app/assets/stylesheets/formagic.scss +2 -1
  30. data/lib/formagic/version.rb +1 -1
  31. metadata +6 -3
  32. /data/app/assets/stylesheets/formagic/{redactor.scss → redactor1.scss} +0 -0
@@ -0,0 +1,27 @@
1
+ .form {
2
+
3
+ label {
4
+ display : block;
5
+
6
+ a { color : $positiveColor; }
7
+
8
+ .input-actions {
9
+ float : right;
10
+ font-size : .8em;
11
+
12
+ a {
13
+ color : $stableColor;
14
+ margin : 0 0 0 .75em;
15
+ border : 1px solid $lightColor;
16
+ border-radius : 4px;
17
+ padding : .25em .75em;
18
+ }
19
+
20
+ a:hover {
21
+ color : $positiveColor;
22
+ border-color : $positiveColor;
23
+ }
24
+ }
25
+ }
26
+
27
+ }
@@ -5,9 +5,9 @@
5
5
  & > ul { margin: 0; padding: 0; }
6
6
  & > ul > li { list-style-type: none; margin-top: 1em; @include position(relative); border: 1px solid $neutralColor; }
7
7
  & > ul > li:first-child { margin-top: 0; }
8
- & > ul > li > .icon-reorder { left: 0; top: 1em; }
8
+ & > ul > li > .icon-reorder { left: 0; top: 1em; z-index: 1; }
9
9
  & > ul li.reorderable { background-color: $white; }
10
- & > ul li.reorderable > .input-stacked:first-child { padding-left: 2.4em; }
10
+ & > ul li.reorderable > .input-stacked:first-of-type { padding-left: 2.4em; }
11
11
  }
12
12
 
13
13
  .nested-form-new {
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  .nested-form-delete {
19
- @include position(absolute, .35em .3em null null); border-radius: 1em;
19
+ @include position(absolute, .35em .3em null null); border-radius: 1em; z-index: 1;
20
20
  @include hide-text; width: 1.5em; height: 1.5em; background-color: rgba(0,0,0,.05);
21
21
  &:before { content: '\00d7'; color: $stableColor; line-height: 1.35em; @include position(absolute, null 7px null null); }
22
22
  &:hover { background-color: $positiveColor; &:before { color: $white; } }
@@ -77,12 +77,12 @@
77
77
 
78
78
  .select2-container--default .select2-selection--single .select2-selection__arrow {
79
79
  left: 1px;
80
- top: -1px;
81
80
  }
82
81
 
83
82
  .select2-container .select2-selection--single .select2-selection__rendered {
84
83
  padding-left: 20px;
85
84
  padding-right: 8px;
85
+ padding-top: 2px;
86
86
  }
87
87
 
88
88
  .select2-search--dropdown {
@@ -90,6 +90,24 @@
90
90
  margin: 0 -1px;
91
91
  }
92
92
 
93
+ .select2-container .select2-search--inline {
94
+ padding-left: .5em;
95
+ }
96
+
97
+ .select2-container--default .select2-selection--multiple {
98
+ border-radius: 0;
99
+ }
100
+
101
+ .select2-container .select2-selection--multiple {
102
+ min-height: 28px;
103
+ }
104
+
105
+ .select2-container--default .select2-search--inline .select2-search__field,
106
+ .select2-container--default .select2-selection--multiple .select2-selection__choice {
107
+ margin-top: 3px;
108
+ }
109
+
110
+
93
111
 
94
112
 
95
113
 
@@ -1,4 +1,5 @@
1
1
  @import "formagic/form";
2
+ @import "formagic/label";
2
3
  @import "formagic/checkbox";
3
4
  @import "formagic/color";
4
5
  @import "formagic/date";
@@ -7,7 +8,7 @@
7
8
  @import "formagic/image";
8
9
  @import "formagic/list";
9
10
  @import "formagic/nested-form";
10
- @import "formagic/redactor";
11
+ @import "formagic/redactor1";
11
12
  @import "formagic/select";
12
13
  @import "formagic/select2";
13
14
  @import "formagic/string";
@@ -1,3 +1,3 @@
1
1
  module Formagic
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formagic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,7 @@ files:
86
86
  - app/assets/javascripts/formagic/inputs/string.coffee
87
87
  - app/assets/javascripts/formagic/inputs/text.coffee
88
88
  - app/assets/javascripts/formagic/inputs/time.coffee
89
+ - app/assets/javascripts/formagic/inputs/url.coffee
89
90
  - app/assets/javascripts/vendor/ace.js
90
91
  - app/assets/javascripts/vendor/datedropper.js
91
92
  - app/assets/javascripts/vendor/jquery.scrollparent.js
@@ -96,6 +97,7 @@ files:
96
97
  - app/assets/javascripts/vendor/mode-markdown.js
97
98
  - app/assets/javascripts/vendor/moment.js
98
99
  - app/assets/javascripts/vendor/redactor.fixedtoolbar.js
100
+ - app/assets/javascripts/vendor/redactor.table.js
99
101
  - app/assets/javascripts/vendor/select2.js
100
102
  - app/assets/stylesheets/formagic.scss
101
103
  - app/assets/stylesheets/formagic/checkbox.scss
@@ -105,9 +107,10 @@ files:
105
107
  - app/assets/stylesheets/formagic/form.scss
106
108
  - app/assets/stylesheets/formagic/group.scss
107
109
  - app/assets/stylesheets/formagic/image.scss
110
+ - app/assets/stylesheets/formagic/label.scss
108
111
  - app/assets/stylesheets/formagic/list.scss
109
112
  - app/assets/stylesheets/formagic/nested-form.scss
110
- - app/assets/stylesheets/formagic/redactor.scss
113
+ - app/assets/stylesheets/formagic/redactor1.scss
111
114
  - app/assets/stylesheets/formagic/select.scss
112
115
  - app/assets/stylesheets/formagic/select2.scss
113
116
  - app/assets/stylesheets/formagic/string.scss