unpoly-rails 0.57.0 → 0.60.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of unpoly-rails might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +393 -1
- data/Gemfile.lock +5 -2
- data/README.md +1 -1
- data/README_RAILS.md +1 -1
- data/Rakefile +10 -1
- data/design/es6.js +32 -0
- data/design/ie11.txt +9 -0
- data/design/measure_jquery/element_list.js +41 -0
- data/design/measure_jquery/up.on_vs_addEventListener.js +56 -0
- data/design/todo_jquery.txt +13 -0
- data/dist/unpoly-bootstrap3.js +8 -8
- data/dist/unpoly-bootstrap3.min.js +1 -1
- data/dist/unpoly.css +22 -20
- data/dist/unpoly.js +6990 -5336
- data/dist/unpoly.min.css +1 -1
- data/dist/unpoly.min.js +4 -4
- data/lib/assets/javascripts/unpoly-bootstrap3/viewport-ext.coffee +5 -0
- data/lib/assets/javascripts/unpoly.coffee +8 -6
- data/lib/assets/javascripts/unpoly/browser.coffee.erb +23 -118
- data/lib/assets/javascripts/unpoly/classes/body_shifter.coffee +36 -0
- data/lib/assets/javascripts/unpoly/classes/cache.coffee +4 -4
- data/lib/assets/javascripts/unpoly/classes/compile_pass.coffee +45 -39
- data/lib/assets/javascripts/unpoly/classes/config.coffee +9 -0
- data/lib/assets/javascripts/unpoly/classes/css_transition.coffee +18 -27
- data/lib/assets/javascripts/unpoly/classes/divertible_chain.coffee +39 -0
- data/lib/assets/javascripts/unpoly/classes/event_listener.coffee +116 -0
- data/lib/assets/javascripts/unpoly/classes/extract_cascade.coffee +8 -8
- data/lib/assets/javascripts/unpoly/classes/extract_plan.coffee +19 -19
- data/lib/assets/javascripts/unpoly/classes/field_observer.coffee +54 -31
- data/lib/assets/javascripts/unpoly/classes/{focus_tracker.coffee → focus_follower.coffee} +2 -2
- data/lib/assets/javascripts/unpoly/classes/follow_variant.coffee +25 -25
- data/lib/assets/javascripts/unpoly/classes/html_parser.coffee +4 -11
- data/lib/assets/javascripts/unpoly/classes/motion_controller.coffee +157 -0
- data/lib/assets/javascripts/unpoly/classes/params.coffee.erb +525 -0
- data/lib/assets/javascripts/unpoly/classes/record.coffee +8 -2
- data/lib/assets/javascripts/unpoly/classes/rect.js +21 -0
- data/lib/assets/javascripts/unpoly/classes/request.coffee +41 -35
- data/lib/assets/javascripts/unpoly/classes/response.coffee +7 -3
- data/lib/assets/javascripts/unpoly/classes/reveal_motion.coffee +102 -0
- data/lib/assets/javascripts/unpoly/classes/scroll_motion.coffee +67 -0
- data/lib/assets/javascripts/unpoly/classes/selector.coffee +60 -0
- data/lib/assets/javascripts/unpoly/classes/tether.coffee +105 -0
- data/lib/assets/javascripts/unpoly/classes/url_set.coffee +12 -7
- data/lib/assets/javascripts/unpoly/element.coffee.erb +1126 -0
- data/lib/assets/javascripts/unpoly/event.coffee.erb +437 -0
- data/lib/assets/javascripts/unpoly/feedback.coffee +73 -94
- data/lib/assets/javascripts/unpoly/form.coffee.erb +188 -181
- data/lib/assets/javascripts/unpoly/{dom.coffee.erb → fragment.coffee.erb} +250 -283
- data/lib/assets/javascripts/unpoly/framework.coffee +67 -0
- data/lib/assets/javascripts/unpoly/history.coffee +29 -28
- data/lib/assets/javascripts/unpoly/legacy.coffee +60 -0
- data/lib/assets/javascripts/unpoly/link.coffee.erb +127 -119
- data/lib/assets/javascripts/unpoly/log.coffee +99 -19
- data/lib/assets/javascripts/unpoly/modal.coffee.erb +95 -118
- data/lib/assets/javascripts/unpoly/motion.coffee.erb +158 -138
- data/lib/assets/javascripts/unpoly/namespace.coffee.erb +0 -5
- data/lib/assets/javascripts/unpoly/popup.coffee.erb +119 -102
- data/lib/assets/javascripts/unpoly/protocol.coffee +11 -15
- data/lib/assets/javascripts/unpoly/proxy.coffee +62 -65
- data/lib/assets/javascripts/unpoly/radio.coffee +3 -5
- data/lib/assets/javascripts/unpoly/rails.coffee +8 -9
- data/lib/assets/javascripts/unpoly/syntax.coffee.erb +173 -125
- data/lib/assets/javascripts/unpoly/toast.coffee +25 -24
- data/lib/assets/javascripts/unpoly/tooltip.coffee +89 -79
- data/lib/assets/javascripts/unpoly/util.coffee.erb +579 -1074
- data/lib/assets/javascripts/unpoly/{layout.coffee.erb → viewport.coffee.erb} +334 -264
- data/lib/assets/stylesheets/unpoly/dom.sass +1 -1
- data/lib/assets/stylesheets/unpoly/layout.sass +2 -0
- data/lib/assets/stylesheets/unpoly/popup.sass +0 -1
- data/lib/assets/stylesheets/unpoly/tooltip.sass +17 -12
- data/lib/unpoly/rails/version.rb +1 -1
- data/package.json +1 -2
- data/spec_app/Gemfile +2 -1
- data/spec_app/Gemfile.lock +38 -27
- data/spec_app/app/assets/javascripts/integration_test.coffee +1 -0
- data/spec_app/app/assets/javascripts/jasmine_specs.coffee +1 -2
- data/spec_app/app/assets/stylesheets/integration_test.sass +14 -1
- data/spec_app/app/controllers/scroll_test_controller.rb +5 -0
- data/spec_app/app/views/css_test/modal.erb +6 -6
- data/spec_app/app/views/css_test/popup.erb +44 -18
- data/spec_app/app/views/css_test/tooltip.erb +23 -4
- data/spec_app/app/views/error_test/trigger.erb +1 -1
- data/spec_app/app/views/form_test/basics/new.erb +1 -3
- data/spec_app/app/views/pages/start.erb +9 -2
- data/spec_app/app/views/reveal_test/long1.erb +1 -1
- data/spec_app/app/views/reveal_test/long2.erb +1 -1
- data/spec_app/app/views/reveal_test/within_document_viewport.erb +24 -0
- data/spec_app/app/views/reveal_test/within_overflowing_div_viewport.erb +28 -0
- data/spec_app/app/views/scroll_test/long1.erb +30 -0
- data/spec_app/config/routes.rb +1 -0
- data/spec_app/spec/javascripts/helpers/agent_detector.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/async_sequence.js.coffee +1 -0
- data/spec_app/spec/javascripts/helpers/browser_switches.js.coffee +17 -5
- data/spec_app/spec/javascripts/helpers/enable_logging.js.coffee +1 -1
- data/spec_app/spec/javascripts/helpers/fixture.js.coffee +25 -0
- data/spec_app/spec/javascripts/helpers/jquery_no_conflict.js +1 -0
- data/spec_app/spec/javascripts/helpers/last_request.js.coffee +1 -0
- data/spec_app/spec/javascripts/helpers/mock_ajax.js.coffee +1 -1
- data/spec_app/spec/javascripts/helpers/parse_form_data.js.coffee +2 -2
- data/spec_app/spec/javascripts/helpers/protect_jasmine_runner.coffee +4 -1
- data/spec_app/spec/javascripts/helpers/remove_body_margin.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/reset_history.js.coffee +2 -1
- data/spec_app/spec/javascripts/helpers/reset_knife.js.coffee +2 -2
- data/spec_app/spec/javascripts/helpers/reset_up.js.coffee +18 -11
- data/spec_app/spec/javascripts/helpers/restore_body_scroll.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/show_lib_versions.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/spec_util.coffee +47 -0
- data/spec_app/spec/javascripts/helpers/to_be_around.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_be_array.coffee +5 -0
- data/spec_app/spec/javascripts/helpers/to_be_attached.coffee +6 -2
- data/spec_app/spec/javascripts/helpers/to_be_blank.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_be_detached.coffee +6 -2
- data/spec_app/spec/javascripts/helpers/to_be_element.js.coffee +8 -0
- data/spec_app/spec/javascripts/helpers/to_be_error.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_be_given.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_be_hidden.js.coffee +8 -0
- data/spec_app/spec/javascripts/helpers/to_be_missing.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_be_present.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_be_scrolled_to.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_be_visible.js.coffee +9 -0
- data/spec_app/spec/javascripts/helpers/to_contain.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_end_with.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_equal_jquery.js.coffee +1 -2
- data/spec_app/spec/javascripts/helpers/to_equal_node_list.coffee +7 -0
- data/spec_app/spec/javascripts/helpers/to_equal_via_is_equal.js.coffee +7 -0
- data/spec_app/spec/javascripts/helpers/to_have_class.js.coffee +10 -0
- data/spec_app/spec/javascripts/helpers/to_have_descendant.js.coffee +10 -0
- data/spec_app/spec/javascripts/helpers/to_have_length.js.coffee +8 -0
- data/spec_app/spec/javascripts/helpers/to_have_opacity.coffee +7 -3
- data/spec_app/spec/javascripts/helpers/to_have_own_property.js.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_have_request_method.js.coffee +1 -0
- data/spec_app/spec/javascripts/helpers/to_have_text.js.coffee +9 -0
- data/spec_app/spec/javascripts/helpers/to_have_unhandled_rejections.coffee +0 -21
- data/spec_app/spec/javascripts/helpers/to_match_list.coffee +14 -0
- data/spec_app/spec/javascripts/helpers/to_match_selector.coffee +3 -0
- data/spec_app/spec/javascripts/helpers/to_match_text.js.coffee +4 -1
- data/spec_app/spec/javascripts/helpers/to_match_url.coffee +1 -0
- data/spec_app/spec/javascripts/helpers/trigger.js.coffee +91 -7
- data/spec_app/spec/javascripts/helpers/wait_until_dom_ready.js.coffee +3 -0
- data/spec_app/spec/javascripts/up/browser_spec.js.coffee +23 -90
- data/spec_app/spec/javascripts/up/classes/cache_spec.js.coffee +3 -0
- data/spec_app/spec/javascripts/up/classes/config_spec.coffee +24 -0
- data/spec_app/spec/javascripts/up/classes/divertible_chain_spec.coffee +45 -0
- data/spec_app/spec/javascripts/up/classes/focus_tracker_spec.coffee +5 -2
- data/spec_app/spec/javascripts/up/classes/params_spec.coffee +557 -0
- data/spec_app/spec/javascripts/up/classes/request_spec.coffee +7 -4
- data/spec_app/spec/javascripts/up/classes/scroll_motion_spec.js.coffee +51 -0
- data/spec_app/spec/javascripts/up/classes/store/memory_spec.js.coffee +3 -0
- data/spec_app/spec/javascripts/up/classes/store/session_spec.js.coffee +3 -2
- data/spec_app/spec/javascripts/up/element_spec.coffee +897 -0
- data/spec_app/spec/javascripts/up/event_spec.js.coffee +496 -0
- data/spec_app/spec/javascripts/up/feedback_spec.js.coffee +69 -48
- data/spec_app/spec/javascripts/up/form_spec.js.coffee +252 -194
- data/spec_app/spec/javascripts/up/{dom_spec.js.coffee → fragment_spec.js.coffee} +381 -388
- data/spec_app/spec/javascripts/up/history_spec.js.coffee +21 -19
- data/spec_app/spec/javascripts/up/jquery_spec.js.coffee +4 -0
- data/spec_app/spec/javascripts/up/legacy_spec.js.coffee +27 -0
- data/spec_app/spec/javascripts/up/link_spec.js.coffee +163 -160
- data/spec_app/spec/javascripts/up/log_spec.js.coffee +85 -12
- data/spec_app/spec/javascripts/up/modal_spec.js.coffee +141 -123
- data/spec_app/spec/javascripts/up/motion_spec.js.coffee +117 -113
- data/spec_app/spec/javascripts/up/popup_spec.js.coffee +60 -77
- data/spec_app/spec/javascripts/up/protocol_spec.js.coffee +1 -0
- data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +85 -78
- data/spec_app/spec/javascripts/up/radio_spec.js.coffee +29 -22
- data/spec_app/spec/javascripts/up/rails_spec.js.coffee +14 -13
- data/spec_app/spec/javascripts/up/spec_spec.js.coffee +9 -0
- data/spec_app/spec/javascripts/up/syntax_spec.js.coffee +96 -66
- data/spec_app/spec/javascripts/up/toast_spec.js.coffee +37 -0
- data/spec_app/spec/javascripts/up/tooltip_spec.js.coffee +31 -47
- data/spec_app/spec/javascripts/up/util_spec.js.coffee +725 -562
- data/spec_app/spec/javascripts/up/{layout_spec.js.coffee → viewport_spec.js.coffee} +175 -149
- metadata +57 -19
- data/lib/assets/javascripts/unpoly-bootstrap3/layout-ext.coffee +0 -5
- data/lib/assets/javascripts/unpoly/bus.coffee.erb +0 -518
- data/lib/assets/javascripts/unpoly/classes/extract_step.coffee +0 -4
- data/lib/assets/javascripts/unpoly/classes/motion_tracker.coffee +0 -125
- data/lib/assets/javascripts/unpoly/params.coffee.erb +0 -522
- data/spec_app/spec/javascripts/helpers/append_fixture.js.coffee +0 -8
- data/spec_app/spec/javascripts/up/bus_spec.js.coffee +0 -210
- data/spec_app/spec/javascripts/up/namespace_spec.js.coffee +0 -9
- data/spec_app/spec/javascripts/up/params_spec.coffee +0 -768
- data/spec_app/vendor/asset-libs/jasmine-fixture-1.3.4/jasmine-fixture.js +0 -433
- data/spec_app/vendor/asset-libs/jasmine-jquery-2.1.1/.bower.json +0 -26
- data/spec_app/vendor/asset-libs/jasmine-jquery-2.1.1/jasmine-jquery.js +0 -838
@@ -1,5 +1,5 @@
|
|
1
1
|
.up-insertion
|
2
2
|
// The element must not display inline, since inline elements have no height:
|
3
3
|
// https://www.w3.org/TR/CSS2/visudet.html#inline-non-replaced
|
4
|
-
// This causes u.measure in up.
|
4
|
+
// This causes u.measure in up.viewport.reveal to return an element with a top, but a zero height.
|
5
5
|
display: inline-block
|
@@ -1,16 +1,11 @@
|
|
1
1
|
$stratum: 30000
|
2
|
-
$distance-from-
|
3
|
-
$corner-size:
|
2
|
+
$distance-from-origin: 10px
|
3
|
+
$corner-size: 6px
|
4
4
|
$background-color: #111
|
5
5
|
|
6
6
|
.up-tooltip
|
7
|
-
position: absolute
|
8
7
|
z-index: $stratum
|
9
|
-
|
10
|
-
color: white
|
11
|
-
padding: 6px 9px
|
12
|
-
white-space: nowrap
|
13
|
-
pointer-events: none
|
8
|
+
position: relative
|
14
9
|
|
15
10
|
&:after
|
16
11
|
content: ''
|
@@ -21,7 +16,8 @@ $background-color: #111
|
|
21
16
|
border: $corner-size solid transparent
|
22
17
|
|
23
18
|
&[up-position=top]
|
24
|
-
margin-
|
19
|
+
margin-bottom: $distance-from-origin
|
20
|
+
|
25
21
|
&:after
|
26
22
|
border-top-color: $background-color
|
27
23
|
border-bottom-width: 0
|
@@ -30,7 +26,8 @@ $background-color: #111
|
|
30
26
|
margin-left: -$corner-size
|
31
27
|
|
32
28
|
&[up-position=left]
|
33
|
-
margin-
|
29
|
+
margin-right: $distance-from-origin
|
30
|
+
|
34
31
|
&:after
|
35
32
|
border-left-color: $background-color
|
36
33
|
border-right-width: 0
|
@@ -39,7 +36,8 @@ $background-color: #111
|
|
39
36
|
margin-top: -$corner-size
|
40
37
|
|
41
38
|
&[up-position=right]
|
42
|
-
margin-left: $distance-from-
|
39
|
+
margin-left: $distance-from-origin
|
40
|
+
|
43
41
|
&:after
|
44
42
|
border-right-color: $background-color
|
45
43
|
border-left-width: 0
|
@@ -48,10 +46,17 @@ $background-color: #111
|
|
48
46
|
margin-top: -$corner-size
|
49
47
|
|
50
48
|
&[up-position=bottom]
|
51
|
-
margin-top: $distance-from-
|
49
|
+
margin-top: $distance-from-origin
|
50
|
+
|
52
51
|
&:after
|
53
52
|
border-bottom-color: $background-color
|
54
53
|
border-top-width: 0
|
55
54
|
top: -$corner-size
|
56
55
|
left: 50%
|
57
56
|
margin-left: -$corner-size
|
57
|
+
|
58
|
+
.up-tooltip-content
|
59
|
+
background-color: $background-color
|
60
|
+
color: white
|
61
|
+
padding: 6px 9px
|
62
|
+
white-space: nowrap
|
data/lib/unpoly/rails/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "unpoly",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.60.0",
|
4
4
|
"description": "Unobtrusive JavaScript framework",
|
5
5
|
"main": "dist/unpoly.js",
|
6
6
|
"files": [
|
@@ -34,6 +34,5 @@
|
|
34
34
|
},
|
35
35
|
"homepage": "https://unpoly.com",
|
36
36
|
"dependencies": {
|
37
|
-
"jquery": ">=1.9.0"
|
38
37
|
}
|
39
38
|
}
|
data/spec_app/Gemfile
CHANGED
@@ -23,7 +23,8 @@ gem 'sprockets', '=2.12.3'
|
|
23
23
|
group :development, :test do
|
24
24
|
gem 'byebug'
|
25
25
|
gem 'web-console', '~> 2.0'
|
26
|
-
gem 'jasmine-rails'
|
26
|
+
gem 'jasmine-rails', git: 'https://github.com/triskweline/jasmine-rails.git', branch: 'hk/jasmine3'
|
27
|
+
gem 'jasmine-core', '<3'
|
27
28
|
end
|
28
29
|
|
29
30
|
group :test do
|
data/spec_app/Gemfile.lock
CHANGED
@@ -1,7 +1,18 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/triskweline/jasmine-rails.git
|
3
|
+
revision: d0f337e7c2ccf72de88dfcb5da4a1ecceba45326
|
4
|
+
branch: hk/jasmine3
|
5
|
+
specs:
|
6
|
+
jasmine-rails (0.14.7)
|
7
|
+
jasmine-core (>= 1.3, < 4.0)
|
8
|
+
phantomjs (>= 1.9)
|
9
|
+
railties (>= 3.2.0)
|
10
|
+
sprockets-rails
|
11
|
+
|
1
12
|
PATH
|
2
13
|
remote: ..
|
3
14
|
specs:
|
4
|
-
unpoly-rails (0.
|
15
|
+
unpoly-rails (0.60.0)
|
5
16
|
rails (>= 3)
|
6
17
|
|
7
18
|
GEM
|
@@ -56,19 +67,21 @@ GEM
|
|
56
67
|
columnize (~> 0.8)
|
57
68
|
debugger-linecache (~> 1.2)
|
58
69
|
slop (~> 3.6)
|
59
|
-
coffee-rails (4.1.
|
70
|
+
coffee-rails (4.1.1)
|
60
71
|
coffee-script (>= 2.2.0)
|
61
|
-
railties (>= 4.0.0, < 5.
|
62
|
-
coffee-script (2.
|
72
|
+
railties (>= 4.0.0, < 5.1.x)
|
73
|
+
coffee-script (2.4.1)
|
63
74
|
coffee-script-source
|
64
75
|
execjs
|
65
|
-
coffee-script-source (1.
|
76
|
+
coffee-script-source (1.12.2)
|
66
77
|
columnize (0.9.0)
|
78
|
+
concurrent-ruby (1.1.4)
|
79
|
+
crass (1.0.4)
|
67
80
|
debug_inspector (0.0.2)
|
68
81
|
debugger-linecache (1.2.0)
|
69
82
|
diff-lcs (1.2.5)
|
70
83
|
erubis (2.7.0)
|
71
|
-
execjs (2.
|
84
|
+
execjs (2.7.0)
|
72
85
|
globalid (0.3.6)
|
73
86
|
activesupport (>= 4.1.0)
|
74
87
|
haml (4.1.0.beta.1)
|
@@ -86,31 +99,28 @@ GEM
|
|
86
99
|
haml (>= 4.0.0.rc.1)
|
87
100
|
hpricot (~> 0.8.6)
|
88
101
|
ruby_parser (~> 3.1.1)
|
89
|
-
i18n (0.
|
90
|
-
|
91
|
-
jasmine-
|
92
|
-
jasmine-core (>= 1.3, < 3.0)
|
93
|
-
phantomjs (>= 1.9)
|
94
|
-
railties (>= 3.2.0)
|
95
|
-
sprockets-rails
|
102
|
+
i18n (0.9.5)
|
103
|
+
concurrent-ruby (~> 1.0)
|
104
|
+
jasmine-core (2.99.2)
|
96
105
|
jquery-rails (4.3.1)
|
97
106
|
rails-dom-testing (>= 1, < 3)
|
98
107
|
railties (>= 4.2.0)
|
99
108
|
thor (>= 0.14, < 2.0)
|
100
109
|
json (1.8.6)
|
101
110
|
libv8 (3.16.14.3)
|
102
|
-
loofah (2.
|
111
|
+
loofah (2.2.3)
|
112
|
+
crass (~> 1.0.2)
|
103
113
|
nokogiri (>= 1.5.9)
|
104
114
|
mail (2.6.3)
|
105
115
|
mime-types (>= 1.16, < 3)
|
106
116
|
mime-types (2.99)
|
107
|
-
mini_portile2 (2.
|
108
|
-
minitest (5.
|
109
|
-
multi_json (1.
|
110
|
-
nokogiri (1.
|
111
|
-
mini_portile2 (~> 2.
|
117
|
+
mini_portile2 (2.4.0)
|
118
|
+
minitest (5.11.3)
|
119
|
+
multi_json (1.13.1)
|
120
|
+
nokogiri (1.9.1)
|
121
|
+
mini_portile2 (~> 2.4.0)
|
112
122
|
phantomjs (2.1.1.0)
|
113
|
-
rack (1.6.
|
123
|
+
rack (1.6.11)
|
114
124
|
rack-test (0.6.3)
|
115
125
|
rack (>= 1.0)
|
116
126
|
rails (4.2.0)
|
@@ -126,12 +136,12 @@ GEM
|
|
126
136
|
sprockets-rails
|
127
137
|
rails-deprecated_sanitizer (1.0.3)
|
128
138
|
activesupport (>= 4.2.0.alpha)
|
129
|
-
rails-dom-testing (1.0.
|
130
|
-
activesupport (>= 4.2.0
|
139
|
+
rails-dom-testing (1.0.9)
|
140
|
+
activesupport (>= 4.2.0, < 5.0)
|
131
141
|
nokogiri (~> 1.6)
|
132
142
|
rails-deprecated_sanitizer (>= 1.0.1)
|
133
|
-
rails-html-sanitizer (1.0.
|
134
|
-
loofah (~> 2.
|
143
|
+
rails-html-sanitizer (1.0.4)
|
144
|
+
loofah (~> 2.2, >= 2.2.2)
|
135
145
|
railties (4.2.0)
|
136
146
|
actionpack (= 4.2.0)
|
137
147
|
activesupport (= 4.2.0)
|
@@ -180,10 +190,10 @@ GEM
|
|
180
190
|
therubyracer (0.12.1)
|
181
191
|
libv8 (~> 3.16.14.0)
|
182
192
|
ref
|
183
|
-
thor (0.20.
|
193
|
+
thor (0.20.3)
|
184
194
|
thread_safe (0.3.6)
|
185
195
|
tilt (1.4.1)
|
186
|
-
tzinfo (1.2.
|
196
|
+
tzinfo (1.2.5)
|
187
197
|
thread_safe (~> 0.1)
|
188
198
|
uglifier (2.6.0)
|
189
199
|
execjs (>= 0.3.0)
|
@@ -203,7 +213,8 @@ DEPENDENCIES
|
|
203
213
|
byebug
|
204
214
|
coffee-rails (~> 4.1.0)
|
205
215
|
haml-rails
|
206
|
-
jasmine-
|
216
|
+
jasmine-core (< 3)
|
217
|
+
jasmine-rails!
|
207
218
|
jquery-rails
|
208
219
|
rails (= 4.2.0)
|
209
220
|
rake (< 11)
|
@@ -33,7 +33,7 @@ a
|
|
33
33
|
.fixed-top-bar,
|
34
34
|
.fixed-bottom-bar
|
35
35
|
position: fixed
|
36
|
-
z-index:
|
36
|
+
z-index: 999
|
37
37
|
top: 0
|
38
38
|
left: 0
|
39
39
|
right: 0
|
@@ -63,6 +63,10 @@ a
|
|
63
63
|
background-color: #37b
|
64
64
|
color: white
|
65
65
|
text-decoration: none
|
66
|
+
box-sizing: border-box
|
67
|
+
|
68
|
+
box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2), inset 0 -2px 5px rgba(0, 0, 0, 0.2)
|
69
|
+
|
66
70
|
&.up-current
|
67
71
|
background-color: #e21
|
68
72
|
&:hover
|
@@ -70,6 +74,15 @@ a
|
|
70
74
|
color: white
|
71
75
|
&.up-active
|
72
76
|
background-color: #ff0
|
77
|
+
&.-green
|
78
|
+
background-color: green
|
79
|
+
|
73
80
|
|
74
81
|
dt
|
75
82
|
font-weight: bold
|
83
|
+
|
84
|
+
.columns
|
85
|
+
display: flex
|
86
|
+
|
87
|
+
.columns--column
|
88
|
+
flex: 1 1 50%
|
@@ -3,12 +3,12 @@
|
|
3
3
|
up.compiler('.clamped-open', function($link) {
|
4
4
|
$link.on('click', function(event) {
|
5
5
|
event.preventDefault();
|
6
|
-
u.
|
7
|
-
u.
|
8
|
-
u.
|
9
|
-
u.
|
10
|
-
u.
|
11
|
-
u.
|
6
|
+
u.task(function() {
|
7
|
+
u.task(function() {
|
8
|
+
u.task(function() {
|
9
|
+
u.task(function() {
|
10
|
+
u.task(function() {
|
11
|
+
u.task(function() {
|
12
12
|
up.modal.follow($link, {
|
13
13
|
target: '.contents',
|
14
14
|
duration: 1000
|
@@ -1,15 +1,15 @@
|
|
1
1
|
<script>
|
2
2
|
var u = up.util;
|
3
|
-
up.compiler('.clamped-open', function(
|
4
|
-
|
3
|
+
up.compiler('.clamped-open', function(link) {
|
4
|
+
link.addEventListener('click', function(event) {
|
5
5
|
event.preventDefault();
|
6
|
-
u.
|
7
|
-
u.
|
8
|
-
u.
|
9
|
-
u.
|
10
|
-
u.
|
11
|
-
u.
|
12
|
-
up.popup.attach(
|
6
|
+
u.task(function() {
|
7
|
+
u.task(function() {
|
8
|
+
u.task(function() {
|
9
|
+
u.task(function() {
|
10
|
+
u.task(function() {
|
11
|
+
u.task(function() {
|
12
|
+
up.popup.attach(link, {
|
13
13
|
target: '.contents',
|
14
14
|
duration: 1000
|
15
15
|
});
|
@@ -24,32 +24,58 @@
|
|
24
24
|
</script>
|
25
25
|
|
26
26
|
|
27
|
-
<div class="fixed-top-bar">
|
28
|
-
<a class="button" href="/css_test/popup_contents?1" up-popup=".contents" up-position="top-left">
|
29
|
-
<a class="button" href="/css_test/popup_contents?2" up-popup=".contents" up-position="top-right">
|
30
|
-
<a class="button" href="/css_test/popup_contents?3" up-popup=".contents" up-position="bottom-right">
|
31
|
-
<a class="button" href="/css_test/popup_contents?4" up-popup=".contents" up-position="bottom-left">
|
27
|
+
<div class="fixed-top-bar" up-fixed="top">
|
28
|
+
<a class="button" href="/css_test/popup_contents?1" up-popup=".contents" up-position="top" up-align="left">top/left popup</a>
|
29
|
+
<a class="button" href="/css_test/popup_contents?2" up-popup=".contents" up-position="top" up-align="right">top/right popup</a>
|
30
|
+
<a class="button" href="/css_test/popup_contents?3" up-popup=".contents" up-position="bottom" up-align="right">bottom/right popup</a>
|
31
|
+
<a class="button" href="/css_test/popup_contents?4" up-popup=".contents" up-position="bottom" up-align="left">bottom/left popup</a>
|
32
32
|
</div>
|
33
33
|
|
34
34
|
<div class="spacer">
|
35
35
|
</div>
|
36
36
|
|
37
|
+
|
37
38
|
<div class="example">
|
38
|
-
<a class="button" href="/css_test/popup_contents?5" up-popup=".contents" up-position="top-left">
|
39
|
+
<a class="button" href="/css_test/popup_contents?5" up-popup=".contents" up-position="top" up-align="left">top/left popup</a>
|
40
|
+
<a class="button" href="/css_test/popup_contents?6" up-popup=".contents" up-position="top" up-align="center">top/center popup</a>
|
41
|
+
<a class="button" href="/css_test/popup_contents?7" up-popup=".contents" up-position="top" up-align="right">top/right popup</a>
|
39
42
|
</div>
|
40
43
|
|
41
44
|
<div class="example">
|
42
|
-
<a class="button" href="/css_test/popup_contents?
|
45
|
+
<a class="button" href="/css_test/popup_contents?8" up-popup=".contents" up-position="right" up-align="top">right/top popup</a>
|
46
|
+
<a class="button" href="/css_test/popup_contents?9" up-popup=".contents" up-position="right" up-align="center">right/center popup</a>
|
47
|
+
<a class="button" href="/css_test/popup_contents?a" up-popup=".contents" up-position="right" up-align="bottom">right/bottom popup</a>
|
43
48
|
</div>
|
44
49
|
|
45
50
|
<div class="example">
|
46
|
-
<a class="button" href="/css_test/popup_contents?
|
51
|
+
<a class="button" href="/css_test/popup_contents?b" up-popup=".contents" up-position="bottom" up-align="right"> bottom/right popup</a>
|
52
|
+
<a class="button" href="/css_test/popup_contents?c" up-popup=".contents" up-position="bottom" up-align="center">bottom/center popup</a>
|
53
|
+
<a class="button" href="/css_test/popup_contents?d" up-popup=".contents" up-position="bottom" up-align="left"> bottom/left popup</a>
|
47
54
|
</div>
|
48
55
|
|
49
56
|
<div class="example">
|
50
|
-
<a class="button" href="/css_test/popup_contents?
|
57
|
+
<a class="button" href="/css_test/popup_contents?e" up-popup=".contents" up-position="left" up-align="bottom">left/bottom popup</a>
|
58
|
+
<a class="button" href="/css_test/popup_contents?f" up-popup=".contents" up-position="left" up-align="top">left/top popup</a>
|
59
|
+
<a class="button" href="/css_test/popup_contents?g" up-popup=".contents" up-position="left" up-align="center">left/center popup</a>
|
51
60
|
</div>
|
52
61
|
|
62
|
+
|
53
63
|
<div class="example">
|
54
64
|
<a class="button clamped-open" href="/css_test/popup_contents">Clamped open</a>
|
55
65
|
</div>
|
66
|
+
|
67
|
+
<div class="example">
|
68
|
+
<div up-viewport style="height: 300px; width: 500px; overflow-y: scroll; background-color: rgba(0,0,0,0.2)">
|
69
|
+
<div class="spacer"></div>
|
70
|
+
<a class="button" href="/css_test/popup_contents?8" up-popup=".contents" up-position="bottom">Popup within a viewport that has no position</a>
|
71
|
+
<div class="spacer"></div>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div class="example">
|
76
|
+
<div up-viewport style="height: 300px; width: 500px; overflow-y: scroll; background-color: rgba(0,0,0,0.2); position: relative">
|
77
|
+
<div class="spacer"></div>
|
78
|
+
<a class="button" href="/css_test/popup_contents?8" up-popup=".contents" up-position="bottom">Popup within a viewport that has position</a>
|
79
|
+
<div class="spacer"></div>
|
80
|
+
</div>
|
81
|
+
</div>
|
@@ -9,21 +9,40 @@
|
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div class="example">
|
12
|
-
<a class="button" href="#" up-tooltip="Tooltip text" up-position="top">
|
12
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="top" up-align="left">top/left tooltip</a>
|
13
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="top" up-align="center">top/center tooltip</a>
|
14
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="top" up-align="right">top/right tooltip</a>
|
13
15
|
</div>
|
14
16
|
|
15
17
|
<div class="example">
|
16
|
-
<a class="button" href="#" up-tooltip="Tooltip text" up-position="
|
18
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="right" up-align="top">right/top tooltip</a>
|
19
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="right" up-align="center">right/center tooltip</a>
|
20
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="right" up-align="bottom">right/bottom tooltip</a>
|
17
21
|
</div>
|
18
22
|
|
19
23
|
<div class="example">
|
20
|
-
<a class="button" href="#" up-tooltip="Tooltip text" up-position="
|
24
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="bottom" up-align="right"> bottom/right tooltip</a>
|
25
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="bottom" up-align="center">bottom/center tooltip</a>
|
26
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="bottom" up-align="left"> bottom/left tooltip</a>
|
21
27
|
</div>
|
22
28
|
|
23
29
|
<div class="example">
|
24
|
-
<a class="button" href="#" up-tooltip="Tooltip text" up-position="
|
30
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="left" up-align="bottom">left/bottom tooltip</a>
|
31
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="left" up-align="top">left/top tooltip</a>
|
32
|
+
<a class="button" href="#" up-tooltip="Tooltip text" up-position="left" up-align="center">left/center tooltip</a>
|
25
33
|
</div>
|
26
34
|
|
27
35
|
<div class="example">
|
28
36
|
<% 1.upto(100) do |i| %><a class="button" href="#" up-tooltip="Tooltip <%= i %>"><%= i %></a><% end %>
|
29
37
|
</div>
|
38
|
+
|
39
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; left: 0; top: 0; z-index: 9999">Auto tooltip</a>-->
|
40
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; left: 0; bottom: 0; z-index: 9999">Auto tooltip</a>-->
|
41
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; left: 0; top: calc(50vh - 25px); z-index: 9999">Auto tooltip</a>-->
|
42
|
+
|
43
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; left: calc(50vw - 25px); top: 0; z-index: 9999">Auto tooltip</a>-->
|
44
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; left: calc(50vw - 25px); bottom: 0; z-index: 9999">Auto tooltip</a>-->
|
45
|
+
|
46
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; right: 0; top: 0; z-index: 9999">Auto tooltip</a>-->
|
47
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; right: 0; bottom: 0; z-index: 9999">Auto tooltip</a>-->
|
48
|
+
<!--<a class="button -green" href="#" up-tooltip="Tooltip text" style="position: fixed; right: 0; top: calc(50vh - 25px); z-index: 9999">Auto tooltip</a>-->
|