mdd 3.1.1 → 3.1.2
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.
- checksums.yaml +4 -4
- data/app/helpers/mdwa_helper.rb +13 -4
- data/app/views/template/mdwa/_autocomplete_multiple_tag.html.erb +3 -3
- data/app/views/template/mdwa/_autocomplete_remote_multiple_tag.html.erb +5 -2
- data/app/views/template/mdwa/_autocomplete_remote_tag.html.erb +21 -1
- data/lib/generators/mdwa/sandbox/sandbox_generator.rb +30 -7
- data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/login_manifest.js +1 -1
- data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/system_manifest.js +1 -1
- data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/ajaxloader.js +16 -16
- data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/all_pages.js +34 -30
- data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/batch_update.js +35 -0
- data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/xls_export.js +14 -0
- data/lib/generators/mdwa/sandbox/templates/app/assets/stylesheets/jquery/{jquery-ui-1.10.0.custom.css → jquery-ui.css} +60 -57
- data/lib/generators/mdwa/sandbox/templates/app/assets/stylesheets/mdwa/login/login.css +26 -2
- data/lib/generators/mdwa/sandbox/templates/app/assets/stylesheets/mdwa/system_manifest.css +1 -0
- data/lib/generators/mdwa/sandbox/templates/app/assets/stylesheets/mdwa/template/backend.css.erb +11 -91
- data/lib/generators/mdwa/sandbox/templates/app/assets/stylesheets/mdwa/template/menu.css +86 -0
- data/lib/generators/mdwa/sandbox/templates/app/assets/stylesheets/mdwa/template/template.css.erb +71 -18
- data/lib/generators/mdwa/sandbox/templates/app/controllers/a/backend_controller.rb +14 -0
- data/lib/generators/mdwa/sandbox/templates/app/models/permission.rb +2 -2
- data/lib/generators/mdwa/sandbox/templates/app/views/layouts/login.html.erb +4 -1
- data/lib/generators/mdwa/sandbox/templates/app/views/layouts/public.html.erb +3 -3
- data/lib/generators/mdwa/sandbox/templates/app/views/layouts/system.html.erb +6 -4
- data/lib/generators/mdwa/sandbox/templates/app/views/template/mdwa/_login_text.html.erb +4 -0
- data/lib/generators/mdwa/sandbox/templates/app/views/template/mdwa/_menubar.html.erb +3 -0
- data/lib/generators/mdwa/sandbox/templates/app/views/template/mdwa/menubar/_administrators.html.erb +10 -0
- data/lib/generators/mdwa/sandbox/templates/config/initializers/mime_types.rb +2 -0
- data/lib/generators/mdwa/sandbox/templates/config/locales/mdwa.en.yml +8 -0
- data/lib/generators/mdwa/sandbox/templates/deploy.sh +17 -0
- data/lib/generators/mdwa/templates/templates/scaffold/controller.erb +23 -5
- data/lib/generators/mdwa/templates/templates/scaffold/model.erb +61 -19
- data/lib/generators/mdwa/templates/templates/scaffold/views/_form.html.erb +3 -5
- data/lib/generators/mdwa/templates/templates/scaffold/views/_form_fields.html.erb +23 -15
- data/lib/generators/mdwa/templates/templates/scaffold/views/_list.html.erb +38 -26
- data/lib/generators/mdwa/templates/templates/scaffold/views/batch_update.js.erb +3 -0
- data/lib/generators/mdwa/templates/templates/scaffold/views/index.html.erb +19 -4
- data/lib/generators/mdwa/templates/templates/scaffold/views/index.xls.erb +23 -0
- data/lib/generators/mdwa/templates/templates/scaffold/views/menu/menu.html.erb +13 -0
- data/lib/generators/mdwa/templates/templates_generator.rb +5 -0
- data/lib/generators/mdwa/transform/transform_generator.rb +91 -49
- data/lib/generators/mdwa/translate/templates/br/config/initializers/inflections.rb +58 -0
- data/lib/generators/mdwa/translate/templates/br/config/locales/devise.pt-BR.yml +59 -0
- data/lib/generators/mdwa/translate/templates/br/config/locales/mdwa.pt-BR.yml +294 -0
- data/lib/generators/mdwa/translate/templates/br/config/locales/mdwa.specific.pt-BR.yml +2 -0
- data/lib/generators/mdwa/translate/translate_generator.rb +38 -0
- data/lib/mdwa/dsl/entity.rb +1 -0
- data/lib/mdwa/generators/model_attribute.rb +5 -3
- data/lib/mdwa/version.rb +1 -1
- data/mdd.gemspec +4 -1
- data/test/entity_actions_test.rb +0 -1
- data/test/entity_attributes_options_test.rb +1 -2
- data/test/entity_specifications_test.rb +0 -1
- data/test/entity_status_test.rb +40 -0
- data/test/entity_test.rb +6 -7
- data/test/layout_test.rb +0 -1
- data/test/process_test.rb +0 -1
- data/test/requirements_test.rb +0 -1
- data/test/users_test.rb +0 -1
- metadata +52 -8
- data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/jquery/jquery.popup_window.js +0 -62
- data/lib/generators/mdwa/sandbox/templates/app/views/template/_leftbar.html.erb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab255edf08e646a2ec7de103dafd791b76a0dcbb
|
4
|
+
data.tar.gz: 272da5bcce16ac2e8307f0b37181f3d94748102a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaf0e2552c9ea969af26c3a779fea1f83e6ebfcbb8614a6477ff196facce326f2c392e36361d8e5fe77d873261276d9fb03711c05b613b2f8b9827731ad54e8d
|
7
|
+
data.tar.gz: 6d08505e76a2ae80c8c0e6312d9cb6e0c9e3f2459b4b2ef3544322a34029192c4bf8812a8e8d8693d6f88883eabc852462c704e70830a133e4af675067edae38
|
data/app/helpers/mdwa_helper.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
module MdwaHelper
|
2
2
|
|
3
|
-
def pagination_footer( object_list )
|
3
|
+
def pagination_footer( object_list, parameters = {} )
|
4
4
|
|
5
|
+
parameters[:per_page] = WillPaginate.per_page if parameters[:per_page].blank?
|
5
6
|
options = [
|
6
|
-
[
|
7
|
-
[(
|
8
|
-
[(
|
7
|
+
[parameters[:per_page], parameters[:per_page]],
|
8
|
+
[(parameters[:per_page]*2.5).to_i, (parameters[:per_page]*2.5).to_i],
|
9
|
+
[(parameters[:per_page]*5).to_i, (parameters[:per_page]*5).to_i],
|
9
10
|
[I18n.t('will_paginate.all'), object_list.count]
|
10
11
|
]
|
11
12
|
|
@@ -44,5 +45,13 @@ module MdwaHelper
|
|
44
45
|
|
45
46
|
return "#{path}/#{size}/#{ext}_file.png"
|
46
47
|
end
|
48
|
+
|
49
|
+
def check_all_th
|
50
|
+
check_box_tag "check_all", '', false, { :onclick => "checkOrUncheckAll( $(\"#check_all\").prop( \"checked\" ) )" }
|
51
|
+
end
|
52
|
+
|
53
|
+
def check_all_td( id, checked = false )
|
54
|
+
check_box_tag "cid[]", id, checked, { :id => "cb#{id}", :class => "cid" }
|
55
|
+
end
|
47
56
|
|
48
57
|
end
|
@@ -40,9 +40,9 @@
|
|
40
40
|
}
|
41
41
|
});
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
$(document).on('click', "<%= ul %> a", function() {
|
44
|
+
$(this).parent().remove();
|
45
|
+
});
|
46
46
|
});
|
47
47
|
|
48
48
|
</script>
|
@@ -21,7 +21,10 @@
|
|
21
21
|
source: function( request, response ) {
|
22
22
|
// delegate back to autocomplete, but extract the last term
|
23
23
|
$.getJSON( '<%= source_path %>', {
|
24
|
-
term: extractLastAutocompleteRemoteMultiple( request.term )
|
24
|
+
term: extractLastAutocompleteRemoteMultiple( request.term ),
|
25
|
+
<% if defined? additional_params %>
|
26
|
+
<%= additional_params.collect{|key, value| "#{key.to_s}: $(\"##{value.to_s}\").val()".html_safe}.join(',').html_safe %>
|
27
|
+
<% end %>
|
25
28
|
}, response );
|
26
29
|
},
|
27
30
|
focus: function() {
|
@@ -41,7 +44,7 @@
|
|
41
44
|
}
|
42
45
|
});
|
43
46
|
|
44
|
-
$( "
|
47
|
+
$(document).on('click', "<%= ul %> a", function() {
|
45
48
|
$(this).parent().remove();
|
46
49
|
});
|
47
50
|
});
|
@@ -2,7 +2,26 @@
|
|
2
2
|
$(function() {
|
3
3
|
$('<%= dom_element %>').autocomplete({
|
4
4
|
minLength: 0,
|
5
|
-
source:
|
5
|
+
source: function(request, response) {
|
6
|
+
$.ajax({
|
7
|
+
url: '<%= source_path %>',
|
8
|
+
dataType: 'json',
|
9
|
+
data: {
|
10
|
+
term: request.term,
|
11
|
+
<% if defined? additional_params %>
|
12
|
+
<%= additional_params.collect{|key, value| "#{key.to_s}: $(\"##{value.to_s}\").val()".html_safe}.join(',').html_safe %>
|
13
|
+
<% end %>
|
14
|
+
},
|
15
|
+
success: function(data) {
|
16
|
+
response($.map(data, function(item) {
|
17
|
+
return {
|
18
|
+
label: item.label,
|
19
|
+
value: item.value
|
20
|
+
}
|
21
|
+
}));
|
22
|
+
}
|
23
|
+
});
|
24
|
+
},
|
6
25
|
focus: function( event, ui ) {
|
7
26
|
$( '<%= dom_element %>' ).val( ui.item.label );
|
8
27
|
return false;
|
@@ -19,6 +38,7 @@
|
|
19
38
|
$('<%= dom_element_id %>').val("").trigger('change');
|
20
39
|
}
|
21
40
|
});
|
41
|
+
|
22
42
|
});
|
23
43
|
|
24
44
|
</script>
|
@@ -23,12 +23,15 @@ module Mdwa
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def gem_dependencies
|
26
|
-
gem 'devise'
|
27
26
|
gem 'cancan'
|
28
|
-
gem '
|
27
|
+
gem 'devise'
|
28
|
+
gem 'delayed_job_active_record'
|
29
|
+
gem 'jquery-ui-rails'
|
29
30
|
gem 'nested_form'
|
30
31
|
gem 'require_all'
|
32
|
+
gem 'rails-settings-cached', '0.2.4'
|
31
33
|
gem 'rspec-rails', :group => [:test, :development]
|
34
|
+
gem 'will_paginate'
|
32
35
|
|
33
36
|
inside Rails.root do
|
34
37
|
run "bundle install"
|
@@ -56,6 +59,14 @@ module Mdwa
|
|
56
59
|
end
|
57
60
|
end
|
58
61
|
|
62
|
+
def generated_stuff
|
63
|
+
generate 'settings Settings'
|
64
|
+
generate 'delayed_job:active_record'
|
65
|
+
rake 'db:migrate' if ask_question( "Run rake db:migrate?" )
|
66
|
+
|
67
|
+
copy_file 'deploy.sh', 'deploy.sh'
|
68
|
+
end
|
69
|
+
|
59
70
|
def images
|
60
71
|
if ask_question("Create images?")
|
61
72
|
directory 'app/assets/images/mdwa', 'app/assets/images/mdwa'
|
@@ -102,8 +113,17 @@ module Mdwa
|
|
102
113
|
end
|
103
114
|
|
104
115
|
if ask_question("Include layout selector in ApplicationController?")
|
105
|
-
|
106
|
-
"\n\n layout :select_layout\n"
|
116
|
+
inject_into_file 'app/controllers/application_controller.rb', after: "protect_from_forgery" do
|
117
|
+
"\n\n layout :select_layout\n\n" +
|
118
|
+
" private
|
119
|
+
|
120
|
+
def after_sign_out_path_for(user)
|
121
|
+
if user.to_sym.eql?(:a_user)
|
122
|
+
return a_root_path
|
123
|
+
else
|
124
|
+
return root_path
|
125
|
+
end
|
126
|
+
end"
|
107
127
|
end
|
108
128
|
end
|
109
129
|
end
|
@@ -125,8 +145,9 @@ module Mdwa
|
|
125
145
|
end
|
126
146
|
|
127
147
|
if ask_question("Generate views?")
|
128
|
-
copy_file 'app/views/template/
|
129
|
-
|
148
|
+
copy_file 'app/views/template/mdwa/_menubar.html.erb', 'app/views/template/mdwa/_menubar.html.erb'
|
149
|
+
copy_file 'app/views/template/mdwa/_login_text.html.erb', 'app/views/template/mdwa/_login_text.html.erb'
|
150
|
+
directory 'app/views/template/mdwa/menubar', 'app/views/template/mdwa/menubar'
|
130
151
|
directory 'app/views/public', 'app/views/public'
|
131
152
|
directory 'app/views/a/administrators', 'app/views/a/administrators'
|
132
153
|
directory 'app/views/a/home', 'app/views/a/home'
|
@@ -140,6 +161,7 @@ module Mdwa
|
|
140
161
|
copy_file 'config/initializers/mdwa_inflections.rb', 'config/initializers/mdwa_inflections.rb'
|
141
162
|
copy_file 'config/initializers/mdwa_layout.rb', 'config/initializers/mdwa_layout.rb'
|
142
163
|
copy_file 'config/initializers/will_paginate.rb', 'config/initializers/mdwa_will_paginate.rb'
|
164
|
+
copy_file 'config/initializers/mime_types.rb', 'config/initializers/mdwa_mime_types.rb'
|
143
165
|
|
144
166
|
# language files
|
145
167
|
copy_file 'config/locales/devise.en.yml', 'config/locales/devise.en.yml'
|
@@ -162,7 +184,7 @@ module Mdwa
|
|
162
184
|
production << " #####################"
|
163
185
|
production << " assets << 'mdwa/login_manifest.css'"
|
164
186
|
production << " assets << 'mdwa/public_manifest.css'"
|
165
|
-
production << " assets << 'mdwa/system_manifest.
|
187
|
+
production << " assets << 'mdwa/system_manifest.css'"
|
166
188
|
production << " config.assets.precompile += assets"
|
167
189
|
production << "\n"
|
168
190
|
inject_into_file 'config/environments/production.rb', production.join("\n"), :after => "config.assets.digest = true\n"
|
@@ -221,6 +243,7 @@ module Mdwa
|
|
221
243
|
|
222
244
|
rake "db:seed" if ask_question( "Run rake db:seeds?" )
|
223
245
|
end
|
246
|
+
|
224
247
|
|
225
248
|
def testes
|
226
249
|
# Install Rspec as the default testing framework
|
data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/ajaxloader.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
$(function() {
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
$('body').append("<div id='ajax-loader'></div>");
|
4
|
+
$('#ajax-loader').css( {
|
5
|
+
'background': 'url(/assets/mdwa/ajax-loader.gif) no-repeat scroll 0 0 transparent',
|
6
|
+
'display': 'none',
|
7
|
+
'height': '42px',
|
8
|
+
'left': '50%',
|
9
|
+
'position': 'fixed',
|
10
|
+
'text-align': 'center',
|
11
|
+
'top': '50%',
|
12
|
+
'width': '42px',
|
13
|
+
'z-index': '10001'
|
14
14
|
});
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
$(document).bind("ajaxSend", function() {
|
17
|
+
$('#ajax-loader').show();
|
18
|
+
}).bind("ajaxComplete", function() {
|
19
|
+
$('#ajax-loader').hide();
|
20
|
+
});
|
21
21
|
});
|
data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/all_pages.js
CHANGED
@@ -1,39 +1,39 @@
|
|
1
1
|
$(function() {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
|
3
|
+
// all .toggle links must have a rel attribute to identify what element will toggle
|
4
|
+
$(document).on("click",'a.toggle', function() {
|
5
|
+
$($(this).attr('rel')).toggle();
|
6
|
+
});
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
// open modalbox
|
9
|
+
$('.lightbox, .fancybox').fancybox({
|
10
|
+
closeClick: false,
|
11
|
+
autoSize: true
|
12
|
+
});
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
// datepicker input text field
|
15
|
+
loadDatepickers();
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
// notices fadeout
|
18
|
+
$(document).on("click",'a#system_notice_close, #system_notice', function() {
|
19
|
+
$('#system_notice').remove();
|
20
|
+
});
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
// ajax forms cancel button closes modal window
|
23
|
+
$(document).on("click",'.mdwa_ajax a.cancel', function() {
|
24
|
+
$.fancybox.close(true);
|
25
|
+
});
|
26
26
|
|
27
|
-
|
27
|
+
// set focus on modalbox form
|
28
28
|
$(document).bind("ajaxComplete", function() {
|
29
29
|
setFocusOnForm();
|
30
30
|
});
|
31
|
-
|
31
|
+
|
32
32
|
});
|
33
33
|
|
34
34
|
function checkOrUncheckAll( to_be_checked ){
|
35
35
|
var to_be_checked = to_be_checked || false;
|
36
|
-
$( ".cid" ).
|
36
|
+
$( ".cid" ).prop( "checked", to_be_checked ).trigger('change');
|
37
37
|
}
|
38
38
|
|
39
39
|
function defineAction( form, action, confirmation ) {
|
@@ -42,26 +42,30 @@ function defineAction( form, action, confirmation ) {
|
|
42
42
|
response = confirm("Are you sure?");
|
43
43
|
}
|
44
44
|
if( response ) {
|
45
|
-
$( "#" + form ).
|
45
|
+
$( "#" + form ).prop( "action", action);
|
46
46
|
$( "#" + form ).submit();
|
47
47
|
}
|
48
48
|
}
|
49
49
|
|
50
50
|
function defineOrder( form, action, id ) {
|
51
|
-
$( "#" + form ).
|
52
|
-
$( "#cb" + id ).
|
51
|
+
$( "#" + form ).prop( "action", action);
|
52
|
+
$( "#cb" + id ).prop( "checked", true);
|
53
53
|
$( "#" + form ).submit();
|
54
54
|
}
|
55
55
|
|
56
56
|
function deleteSystemNotice() {
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
$('#system_notice').fadeOut('slow', function() {
|
58
|
+
$('#system_notice').remove();
|
59
|
+
});
|
60
60
|
}
|
61
61
|
|
62
62
|
// focus on the first text input field in the first field on the page
|
63
63
|
function setFocusOnForm() {
|
64
|
-
|
64
|
+
$(':input:enabled:visible:first', "div.filtros").focus();
|
65
65
|
$(':input:enabled:visible:first', "div.mdwa_new").focus();
|
66
66
|
$(':input:enabled:visible:first', "div.mdwa_edit").focus();
|
67
67
|
}
|
68
|
+
|
69
|
+
function loadDatepickers() {
|
70
|
+
$('.datepicker').datepicker();
|
71
|
+
}
|
data/lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/batch_update.js
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
$(document).ready(function() {
|
2
|
+
$(document).on('click', 'a.batch_update', function(event) {
|
3
|
+
|
4
|
+
event.preventDefault();
|
5
|
+
|
6
|
+
if( !confirm('Are you sure?') ) return false;
|
7
|
+
|
8
|
+
// seleciona os inputs checados
|
9
|
+
var input_container = $(this).attr('input_container');
|
10
|
+
if($(this).attr('input_container') == null) input_container = ''
|
11
|
+
if( $(input_container + ' input[type="checkbox"].cid:checked').length == 0 ) return false;
|
12
|
+
|
13
|
+
var ids = new Array();
|
14
|
+
$(input_container + ' input[type="checkbox"].cid:checked').each(function() {
|
15
|
+
ids.push($(this).val());
|
16
|
+
});
|
17
|
+
|
18
|
+
var url = $(this).attr('href');
|
19
|
+
var attribute = $(this).attr('attribute');
|
20
|
+
var value = $(this).attr('value');
|
21
|
+
|
22
|
+
$.ajax({
|
23
|
+
url: url,
|
24
|
+
type: 'POST',
|
25
|
+
dataType: 'script',
|
26
|
+
data: {
|
27
|
+
ids: ids,
|
28
|
+
attribute: attribute,
|
29
|
+
value: value
|
30
|
+
}
|
31
|
+
});
|
32
|
+
|
33
|
+
return false;
|
34
|
+
});
|
35
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
$(document).ready( function() {
|
2
|
+
|
3
|
+
$(document).on('click', 'a.export.xls', function() {
|
4
|
+
var form = '#' + $(this).attr('form');
|
5
|
+
var url = $(form).attr('action') + '.xls?';
|
6
|
+
$(form).find('input[type="text"], input[type="hidden"], input[type="email"], select').each(function(index) {
|
7
|
+
if(index != 0) url += '&';
|
8
|
+
url += $(this).attr('id') + '=' + $(this).val();
|
9
|
+
});
|
10
|
+
url += '&skip_pagination=1';
|
11
|
+
window.location = url;
|
12
|
+
});
|
13
|
+
|
14
|
+
});
|
@@ -1,8 +1,8 @@
|
|
1
|
-
/*! jQuery UI - v1.10.
|
1
|
+
/*! jQuery UI - v1.10.3 - 2013-05-24
|
2
2
|
* http://jqueryui.com
|
3
3
|
* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css
|
4
|
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=
|
5
|
-
* Copyright
|
4
|
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Helvetica%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=2px&bgColorHeader=dddddd&bgTextureHeader=highlight_soft&bgImgOpacityHeader=50&borderColorHeader=dddddd&fcHeader=444444&iconColorHeader=0073ea&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=dddddd&fcContent=444444&iconColorContent=ff0084&bgColorDefault=f6f6f6&bgTextureDefault=highlight_soft&bgImgOpacityDefault=100&borderColorDefault=dddddd&fcDefault=0073ea&iconColorDefault=666666&bgColorHover=0073ea&bgTextureHover=highlight_soft&bgImgOpacityHover=25&borderColorHover=0073ea&fcHover=ffffff&iconColorHover=ffffff&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=dddddd&fcActive=ff0084&iconColorActive=454545&bgColorHighlight=ffffff&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=cccccc&fcHighlight=444444&iconColorHighlight=0073ea&bgColorError=ffffff&bgTextureError=flat&bgImgOpacityError=55&borderColorError=ff0084&fcError=222222&iconColorError=ff0084&bgColorOverlay=eeeeee&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=80&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=60&thicknessShadow=4px&offsetTopShadow=-4px&offsetLeftShadow=-4px&cornerRadiusShadow=0px
|
5
|
+
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
|
6
6
|
|
7
7
|
/* Layout helpers
|
8
8
|
----------------------------------*/
|
@@ -33,6 +33,7 @@
|
|
33
33
|
.ui-helper-clearfix:after {
|
34
34
|
content: "";
|
35
35
|
display: table;
|
36
|
+
border-collapse: collapse;
|
36
37
|
}
|
37
38
|
.ui-helper-clearfix:after {
|
38
39
|
clear: both;
|
@@ -538,6 +539,8 @@ button.ui-button::-moz-focus-inner {
|
|
538
539
|
margin: 0;
|
539
540
|
padding: 0;
|
540
541
|
width: 100%;
|
542
|
+
/* support: IE10, see #8844 */
|
543
|
+
list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
|
541
544
|
}
|
542
545
|
.ui-menu .ui-menu-divider {
|
543
546
|
margin: 5px -2px 5px -2px;
|
@@ -600,7 +603,7 @@ button.ui-button::-moz-focus-inner {
|
|
600
603
|
height: 100%;
|
601
604
|
}
|
602
605
|
.ui-progressbar .ui-progressbar-overlay {
|
603
|
-
background: url(
|
606
|
+
background: url(/assets/mdwa/jquery-ui/animated-overlay.gif);
|
604
607
|
height: 100%;
|
605
608
|
filter: alpha(opacity=25);
|
606
609
|
opacity: 0.25;
|
@@ -740,7 +743,7 @@ button.ui-button::-moz-focus-inner {
|
|
740
743
|
position: relative;
|
741
744
|
top: 0;
|
742
745
|
margin: 1px .2em 0 0;
|
743
|
-
border-bottom: 0;
|
746
|
+
border-bottom-width: 0;
|
744
747
|
padding: 0;
|
745
748
|
white-space: nowrap;
|
746
749
|
}
|
@@ -783,7 +786,7 @@ body .ui-tooltip {
|
|
783
786
|
/* Component containers
|
784
787
|
----------------------------------*/
|
785
788
|
.ui-widget {
|
786
|
-
font-family:
|
789
|
+
font-family: Helvetica,Arial,sans-serif;
|
787
790
|
font-size: 1.1em;
|
788
791
|
}
|
789
792
|
.ui-widget .ui-widget {
|
@@ -793,25 +796,25 @@ body .ui-tooltip {
|
|
793
796
|
.ui-widget select,
|
794
797
|
.ui-widget textarea,
|
795
798
|
.ui-widget button {
|
796
|
-
font-family:
|
799
|
+
font-family: Helvetica,Arial,sans-serif;
|
797
800
|
font-size: 1em;
|
798
801
|
}
|
799
802
|
.ui-widget-content {
|
800
803
|
border: 1px solid #dddddd;
|
801
|
-
background: #
|
802
|
-
color: #
|
804
|
+
background: #ffffff url(/assets/mdwa/jquery-ui/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;
|
805
|
+
color: #444444;
|
803
806
|
}
|
804
807
|
.ui-widget-content a {
|
805
|
-
color: #
|
808
|
+
color: #444444;
|
806
809
|
}
|
807
810
|
.ui-widget-header {
|
808
|
-
border: 1px solid #
|
809
|
-
background: #
|
810
|
-
color: #
|
811
|
+
border: 1px solid #dddddd;
|
812
|
+
background: #dddddd url(/assets/mdwa/jquery-ui/ui-bg_highlight-soft_50_dddddd_1x100.png) 50% 50% repeat-x;
|
813
|
+
color: #444444;
|
811
814
|
font-weight: bold;
|
812
815
|
}
|
813
816
|
.ui-widget-header a {
|
814
|
-
color: #
|
817
|
+
color: #444444;
|
815
818
|
}
|
816
819
|
|
817
820
|
/* Interaction states
|
@@ -819,15 +822,15 @@ body .ui-tooltip {
|
|
819
822
|
.ui-state-default,
|
820
823
|
.ui-widget-content .ui-state-default,
|
821
824
|
.ui-widget-header .ui-state-default {
|
822
|
-
border: 1px solid #
|
823
|
-
background: #f6f6f6 url(assets/mdwa/jquery-ui/ui-
|
825
|
+
border: 1px solid #dddddd;
|
826
|
+
background: #f6f6f6 url(/assets/mdwa/jquery-ui/ui-bg_highlight-soft_100_f6f6f6_1x100.png) 50% 50% repeat-x;
|
824
827
|
font-weight: bold;
|
825
|
-
color: #
|
828
|
+
color: #0073ea;
|
826
829
|
}
|
827
830
|
.ui-state-default a,
|
828
831
|
.ui-state-default a:link,
|
829
832
|
.ui-state-default a:visited {
|
830
|
-
color: #
|
833
|
+
color: #0073ea;
|
831
834
|
text-decoration: none;
|
832
835
|
}
|
833
836
|
.ui-state-hover,
|
@@ -836,30 +839,30 @@ body .ui-tooltip {
|
|
836
839
|
.ui-state-focus,
|
837
840
|
.ui-widget-content .ui-state-focus,
|
838
841
|
.ui-widget-header .ui-state-focus {
|
839
|
-
border: 1px solid #
|
840
|
-
background: #
|
842
|
+
border: 1px solid #0073ea;
|
843
|
+
background: #0073ea url(/assets/mdwa/jquery-ui/ui-bg_highlight-soft_25_0073ea_1x100.png) 50% 50% repeat-x;
|
841
844
|
font-weight: bold;
|
842
|
-
color: #
|
845
|
+
color: #ffffff;
|
843
846
|
}
|
844
847
|
.ui-state-hover a,
|
845
848
|
.ui-state-hover a:hover,
|
846
849
|
.ui-state-hover a:link,
|
847
850
|
.ui-state-hover a:visited {
|
848
|
-
color: #
|
851
|
+
color: #ffffff;
|
849
852
|
text-decoration: none;
|
850
853
|
}
|
851
854
|
.ui-state-active,
|
852
855
|
.ui-widget-content .ui-state-active,
|
853
856
|
.ui-widget-header .ui-state-active {
|
854
|
-
border: 1px solid #
|
855
|
-
background: #ffffff url(assets/mdwa/jquery-ui/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
|
857
|
+
border: 1px solid #dddddd;
|
858
|
+
background: #ffffff url(/assets/mdwa/jquery-ui/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
|
856
859
|
font-weight: bold;
|
857
|
-
color: #
|
860
|
+
color: #ff0084;
|
858
861
|
}
|
859
862
|
.ui-state-active a,
|
860
863
|
.ui-state-active a:link,
|
861
864
|
.ui-state-active a:visited {
|
862
|
-
color: #
|
865
|
+
color: #ff0084;
|
863
866
|
text-decoration: none;
|
864
867
|
}
|
865
868
|
|
@@ -868,31 +871,31 @@ body .ui-tooltip {
|
|
868
871
|
.ui-state-highlight,
|
869
872
|
.ui-widget-content .ui-state-highlight,
|
870
873
|
.ui-widget-header .ui-state-highlight {
|
871
|
-
border: 1px solid #
|
872
|
-
background: #
|
873
|
-
color: #
|
874
|
+
border: 1px solid #cccccc;
|
875
|
+
background: #ffffff url(/assets/mdwa/jquery-ui/ui-bg_flat_55_ffffff_40x100.png) 50% 50% repeat-x;
|
876
|
+
color: #444444;
|
874
877
|
}
|
875
878
|
.ui-state-highlight a,
|
876
879
|
.ui-widget-content .ui-state-highlight a,
|
877
880
|
.ui-widget-header .ui-state-highlight a {
|
878
|
-
color: #
|
881
|
+
color: #444444;
|
879
882
|
}
|
880
883
|
.ui-state-error,
|
881
884
|
.ui-widget-content .ui-state-error,
|
882
885
|
.ui-widget-header .ui-state-error {
|
883
|
-
border: 1px solid #
|
884
|
-
background: #
|
885
|
-
color: #
|
886
|
+
border: 1px solid #ff0084;
|
887
|
+
background: #ffffff url(/assets/mdwa/jquery-ui/ui-bg_flat_55_ffffff_40x100.png) 50% 50% repeat-x;
|
888
|
+
color: #222222;
|
886
889
|
}
|
887
890
|
.ui-state-error a,
|
888
891
|
.ui-widget-content .ui-state-error a,
|
889
892
|
.ui-widget-header .ui-state-error a {
|
890
|
-
color: #
|
893
|
+
color: #222222;
|
891
894
|
}
|
892
895
|
.ui-state-error-text,
|
893
896
|
.ui-widget-content .ui-state-error-text,
|
894
897
|
.ui-widget-header .ui-state-error-text {
|
895
|
-
color: #
|
898
|
+
color: #222222;
|
896
899
|
}
|
897
900
|
.ui-priority-primary,
|
898
901
|
.ui-widget-content .ui-priority-primary,
|
@@ -924,34 +927,34 @@ body .ui-tooltip {
|
|
924
927
|
.ui-icon {
|
925
928
|
width: 16px;
|
926
929
|
height: 16px;
|
927
|
-
background-position: 16px 16px;
|
928
930
|
}
|
929
931
|
.ui-icon,
|
930
932
|
.ui-widget-content .ui-icon {
|
931
|
-
background-image: url(assets/mdwa/jquery-ui/ui-
|
933
|
+
background-image: url(/assets/mdwa/jquery-ui/ui-icons_ff0084_256x240.png);
|
932
934
|
}
|
933
935
|
.ui-widget-header .ui-icon {
|
934
|
-
background-image: url(assets/mdwa/jquery-ui/ui-
|
936
|
+
background-image: url(/assets/mdwa/jquery-ui/ui-icons_0073ea_256x240.png);
|
935
937
|
}
|
936
938
|
.ui-state-default .ui-icon {
|
937
|
-
background-image: url(assets/mdwa/jquery-ui/ui-
|
939
|
+
background-image: url(/assets/mdwa/jquery-ui/ui-icons_666666_256x240.png);
|
938
940
|
}
|
939
941
|
.ui-state-hover .ui-icon,
|
940
942
|
.ui-state-focus .ui-icon {
|
941
|
-
background-image: url(assets/mdwa/jquery-ui/ui-
|
943
|
+
background-image: url(/assets/mdwa/jquery-ui/ui-icons_ffffff_256x240.png);
|
942
944
|
}
|
943
945
|
.ui-state-active .ui-icon {
|
944
|
-
background-image: url(assets/mdwa/jquery-ui/ui-
|
946
|
+
background-image: url(/assets/mdwa/jquery-ui/ui-icons_454545_256x240.png);
|
945
947
|
}
|
946
948
|
.ui-state-highlight .ui-icon {
|
947
|
-
background-image: url(assets/mdwa/jquery-ui/ui-
|
949
|
+
background-image: url(/assets/mdwa/jquery-ui/ui-icons_0073ea_256x240.png);
|
948
950
|
}
|
949
951
|
.ui-state-error .ui-icon,
|
950
952
|
.ui-state-error-text .ui-icon {
|
951
|
-
background-image: url(assets/mdwa/jquery-ui/ui-
|
953
|
+
background-image: url(/assets/mdwa/jquery-ui/ui-icons_ff0084_256x240.png);
|
952
954
|
}
|
953
955
|
|
954
956
|
/* positioning */
|
957
|
+
.ui-icon-blank { background-position: 16px 16px; }
|
955
958
|
.ui-icon-carat-1-n { background-position: 0 0; }
|
956
959
|
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
957
960
|
.ui-icon-carat-1-e { background-position: -32px 0; }
|
@@ -1137,38 +1140,38 @@ body .ui-tooltip {
|
|
1137
1140
|
.ui-corner-top,
|
1138
1141
|
.ui-corner-left,
|
1139
1142
|
.ui-corner-tl {
|
1140
|
-
border-top-left-radius:
|
1143
|
+
border-top-left-radius: 2px;
|
1141
1144
|
}
|
1142
1145
|
.ui-corner-all,
|
1143
1146
|
.ui-corner-top,
|
1144
1147
|
.ui-corner-right,
|
1145
1148
|
.ui-corner-tr {
|
1146
|
-
border-top-right-radius:
|
1149
|
+
border-top-right-radius: 2px;
|
1147
1150
|
}
|
1148
1151
|
.ui-corner-all,
|
1149
1152
|
.ui-corner-bottom,
|
1150
1153
|
.ui-corner-left,
|
1151
1154
|
.ui-corner-bl {
|
1152
|
-
border-bottom-left-radius:
|
1155
|
+
border-bottom-left-radius: 2px;
|
1153
1156
|
}
|
1154
1157
|
.ui-corner-all,
|
1155
1158
|
.ui-corner-bottom,
|
1156
1159
|
.ui-corner-right,
|
1157
1160
|
.ui-corner-br {
|
1158
|
-
border-bottom-right-radius:
|
1161
|
+
border-bottom-right-radius: 2px;
|
1159
1162
|
}
|
1160
1163
|
|
1161
1164
|
/* Overlays */
|
1162
1165
|
.ui-widget-overlay {
|
1163
|
-
background: #
|
1164
|
-
opacity: .
|
1165
|
-
filter: Alpha(Opacity=
|
1166
|
+
background: #eeeeee url(/assets/mdwa/jquery-ui/ui-bg_flat_0_eeeeee_40x100.png) 50% 50% repeat-x;
|
1167
|
+
opacity: .8;
|
1168
|
+
filter: Alpha(Opacity=80);
|
1166
1169
|
}
|
1167
1170
|
.ui-widget-shadow {
|
1168
|
-
margin: -
|
1169
|
-
padding:
|
1170
|
-
background: #
|
1171
|
-
opacity: .
|
1172
|
-
filter: Alpha(Opacity=
|
1173
|
-
border-radius:
|
1174
|
-
}
|
1171
|
+
margin: -4px 0 0 -4px;
|
1172
|
+
padding: 4px;
|
1173
|
+
background: #aaaaaa url(/assets/mdwa/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
|
1174
|
+
opacity: .6;
|
1175
|
+
filter: Alpha(Opacity=60);
|
1176
|
+
border-radius: 0px;
|
1177
|
+
}
|