ui_bibz 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +68 -60
  3. data/app/assets/javascripts/input-connected.coffee +2 -0
  4. data/app/assets/javascripts/interface.coffee +12 -3
  5. data/app/assets/javascripts/ui_bibz.coffee +18 -21
  6. data/app/assets/stylesheets/_custom_variables.sass +3 -3
  7. data/app/assets/stylesheets/_panel.scss +1 -1
  8. data/app/assets/stylesheets/forms.sass +3 -5
  9. data/app/assets/stylesheets/navigations.sass +3 -0
  10. data/app/assets/stylesheets/notifications.sass +7 -0
  11. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +15 -6
  12. data/lib/ui_bibz/inputs/ui_bibz_inputs/base_input.rb +1 -1
  13. data/lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb +1 -1
  14. data/lib/ui_bibz/inputs/ui_bibz_inputs/string_input.rb +1 -7
  15. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb +1 -1
  16. data/lib/ui_bibz/rails/engine.rb +7 -0
  17. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +2 -2
  18. data/lib/ui_bibz/ui/core/component.rb +4 -4
  19. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +8 -1
  20. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +7 -1
  21. data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +51 -0
  22. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +2 -2
  23. data/lib/ui_bibz/ui/core/navigations/tab_group.rb +1 -1
  24. data/lib/ui_bibz/ui/core/notifications/alert.rb +6 -0
  25. data/lib/ui_bibz/ui/ux/tables/extensions/sortable.rb +4 -4
  26. data/lib/ui_bibz/version.rb +1 -1
  27. data/lib/ui_bibz.rb +27 -0
  28. data/test/dummy/config/environments/test.rb +1 -0
  29. data/test/ui/core/boxes/card_test.rb +1 -1
  30. data/test/ui/core/navigations/navbar_test.rb +1 -1
  31. data/test/ui/core/notifications/alert_test.rb +7 -0
  32. data/test/ui/ux/tables/table_test.rb +7 -6
  33. data/ui_bibz.gemspec +0 -1
  34. data/vendor/assets/javascripts/jquery-ui.min.js +5 -3
  35. data/vendor/assets/stylesheets/awesome-bootstrap-checkbox.css +327 -0
  36. data/vendor/assets/stylesheets/jquery-ui.css +609 -0
  37. metadata +6 -5
  38. data/lib/ui_bibz/inputs/ui_bibz_inputs/auto_complete_field_input.rb +0 -14
  39. data/vendor/assets/stylesheets/awesome-bootstrap-checkbox.scss +0 -270
@@ -1,270 +0,0 @@
1
-
2
- //
3
- // Checkboxes
4
- // --------------------------------------------------
5
-
6
-
7
- $font-family-icon: 'FontAwesome' !default;
8
- $fa-var-check: "\f00c" !default;
9
- $check-icon: $fa-var-check !default;
10
-
11
- @mixin checkbox-variant($parent, $color) {
12
- #{$parent} input[type="checkbox"]:checked + label,
13
- #{$parent} input[type="radio"]:checked + label {
14
- &::before {
15
- background-color: $color;
16
- border-color: $color;
17
- }
18
- &::after{
19
- color: #fff;
20
- }
21
- }
22
- }
23
-
24
- @mixin checkbox-variant-indeterminate($parent, $color) {
25
- #{$parent} input[type="checkbox"]:indeterminate + label,
26
- #{$parent} input[type="radio"]:indeterminate + label {
27
- &::before {
28
- background-color: $color;
29
- border-color: $color;
30
- }
31
- &::after{
32
- background-color: #fff;
33
- }
34
- }
35
- }
36
-
37
- .abc-checkbox{
38
- cursor: default;
39
- padding-left: 4px;
40
-
41
- label{
42
- cursor: pointer;
43
- display: inline;
44
- vertical-align: top;
45
- position: relative;
46
- padding-left: 5px;
47
-
48
- &::before{
49
- cursor: pointer;
50
- content: "";
51
- display: inline-block;
52
- position: absolute;
53
- width: 17px;
54
- height: 17px;
55
- top: 2px;
56
- left: 0;
57
- margin-left: -$form-check-input-gutter;
58
- border: 1px solid $input-border-color;
59
- border-radius: 3px;
60
- background-color: #fff;
61
- @include transition(border 0.15s ease-in-out, color 0.15s ease-in-out);
62
- }
63
-
64
- &::after{
65
- cursor: pointer;
66
- display: inline-block;
67
- position: absolute;
68
- width: 16px;
69
- height: 16px;
70
- left: 0;
71
- top: 2px;
72
- margin-left: -$form-check-input-gutter;
73
- padding-left: 3px;
74
- padding-top: 1px;
75
- font-size: 11px;
76
- color: $input-color;
77
- }
78
- }
79
-
80
- input[type="checkbox"],
81
- input[type="radio"] {
82
- position: static;
83
- margin-left: 0;
84
- cursor: pointer;
85
- opacity: 0;
86
- z-index: 1;
87
-
88
- &:focus + label::before{
89
- outline: thin dotted;
90
- outline: 5px auto -webkit-focus-ring-color;
91
- outline-offset: -2px;
92
- }
93
-
94
- &:checked + label::after{
95
- font-family: $font-family-icon;
96
- content: $check-icon;
97
- }
98
-
99
- &:indeterminate + label::after{
100
- display: block;
101
- content: "";
102
- width: 10px;
103
- height: 3px;
104
- background-color: #555555;
105
- border-radius: 2px;
106
- margin-left: -16.5px;
107
- margin-top: 7px;
108
- }
109
-
110
- &:disabled + label{
111
- opacity: 0.65;
112
-
113
- &::before{
114
- background-color: $input-disabled-bg;
115
- cursor: not-allowed;
116
- }
117
-
118
- &::after{
119
- cursor: not-allowed;
120
- }
121
- }
122
-
123
- }
124
-
125
- &.abc-checkbox-circle label::before{
126
- border-radius: 50%;
127
- }
128
-
129
- &.checkbox-inline{
130
- margin-top: 0;
131
- }
132
- }
133
-
134
- @include checkbox-variant('.abc-checkbox-primary', theme-color(primary));
135
- @include checkbox-variant('.abc-checkbox-danger', theme-color(danger));
136
- @include checkbox-variant('.abc-checkbox-info', theme-color(info));
137
- @include checkbox-variant('.abc-checkbox-warning', theme-color(warning));
138
- @include checkbox-variant('.abc-checkbox-success', theme-color(success));
139
-
140
-
141
- @include checkbox-variant-indeterminate('.abc-checkbox-primary', theme-color(primary));
142
- @include checkbox-variant-indeterminate('.abc-checkbox-danger', theme-color(danger));
143
- @include checkbox-variant-indeterminate('.abc-checkbox-info', theme-color(info));
144
- @include checkbox-variant-indeterminate('.abc-checkbox-warning', theme-color(warning));
145
- @include checkbox-variant-indeterminate('.abc-checkbox-success', theme-color(success));
146
-
147
- //
148
- // Radios
149
- // --------------------------------------------------
150
-
151
- @mixin radio-variant($parent, $color) {
152
- #{$parent} input[type="radio"]{
153
- + label{
154
- &::after{
155
- background-color: $color;
156
- }
157
- }
158
- &:checked + label{
159
- &::before {
160
- border-color: $color;
161
- }
162
- &::after{
163
- background-color: $color;
164
- }
165
- }
166
- }
167
- }
168
-
169
- .abc-radio{
170
- cursor: default;
171
- padding-left: 4px;
172
-
173
- label{
174
- cursor: pointer;
175
- display: inline;
176
- vertical-align: top;
177
- position: relative;
178
- padding-left: 5px;
179
-
180
- &::before{
181
- cursor: pointer;
182
- content: "";
183
- display: inline-block;
184
- position: absolute;
185
- width: 17px;
186
- height: 17px;
187
- top: 2px;
188
- left: 0;
189
- margin-left: -20px;
190
- border: 1px solid $input-border-color;
191
- border-radius: 50%;
192
- background-color: #fff;
193
- @include transition(border 0.15s ease-in-out);
194
- }
195
-
196
- &::after{
197
- cursor: pointer;
198
- display: inline-block;
199
- position: absolute;
200
- content: " ";
201
- width: 11px;
202
- height: 11px;
203
- left: 3px;
204
- top: 5px;
205
- margin-left: -20px;
206
- border-radius: 50%;
207
- background-color: $input-color;
208
- transform: scale(0, 0);
209
-
210
- transition: transform .1s cubic-bezier(.8,-0.33,.2,1.33);
211
- //curve - http://cubic-bezier.com/#.8,-0.33,.2,1.33
212
- }
213
- }
214
-
215
- input[type="radio"]{
216
- position: static;
217
- margin-left: 0;
218
- cursor: pointer;
219
- opacity: 0;
220
- z-index: 1;
221
-
222
- &:focus + label::before{
223
- outline: thin dotted;
224
- outline: 5px auto -webkit-focus-ring-color;
225
- outline-offset: -2px;
226
- }
227
-
228
- &:checked + label::after{
229
- transform: scale(1, 1);
230
- }
231
-
232
- &:disabled + label{
233
- opacity: 0.65;
234
-
235
- &::before{
236
- cursor: not-allowed;
237
- }
238
-
239
- &::after{
240
- cursor: not-allowed;
241
- }
242
- }
243
-
244
- }
245
-
246
- &.radio-inline{
247
- margin-top: 0;
248
- }
249
- }
250
-
251
- @include radio-variant('.abc-radio-primary', theme-color(primary));
252
- @include radio-variant('.abc-radio-danger', theme-color(danger));
253
- @include radio-variant('.abc-radio-info', theme-color(info));
254
- @include radio-variant('.abc-radio-warning', theme-color(warning));
255
- @include radio-variant('.abc-radio-success', theme-color(success));
256
-
257
-
258
- // Validation states
259
- // TODO: keep in sync with bootstrap since strange comment 'redo check markup lol crap'
260
- .form-check-input {
261
- .was-validated &:invalid,
262
- &.is-invalid {
263
- .abc-checkbox,
264
- .abc-radio {
265
- label &:before {
266
- border-color: $form-feedback-invalid-color;
267
- }
268
- }
269
- }
270
- }