upjs-rails 0.11.1 → 0.12.0
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/CHANGELOG.md +50 -0
- data/dist/up-bootstrap.js +9 -17
- data/dist/up-bootstrap.min.js +1 -1
- data/dist/up.js +384 -458
- data/dist/up.min.js +2 -2
- data/lib/assets/javascripts/up/boot.js.coffee +2 -2
- data/lib/assets/javascripts/up/browser.js.coffee +2 -2
- data/lib/assets/javascripts/up/bus.js.coffee +39 -88
- data/lib/assets/javascripts/up/flow.js.coffee +25 -33
- data/lib/assets/javascripts/up/form.js.coffee +2 -2
- data/lib/assets/javascripts/up/history.js.coffee +8 -7
- data/lib/assets/javascripts/up/layout.js.coffee +19 -18
- data/lib/assets/javascripts/up/link.js.coffee +2 -2
- data/lib/assets/javascripts/up/magic.js.coffee +41 -27
- data/lib/assets/javascripts/up/modal.js.coffee +74 -57
- data/lib/assets/javascripts/up/motion.js.coffee +11 -10
- data/lib/assets/javascripts/up/navigation.js.coffee +11 -10
- data/lib/assets/javascripts/up/popup.js.coffee +19 -16
- data/lib/assets/javascripts/up/proxy.js.coffee +17 -16
- data/lib/assets/javascripts/up/tooltip.js.coffee +28 -14
- data/lib/assets/javascripts/up/util.js.coffee +14 -22
- data/lib/assets/javascripts/up-bootstrap/layout-ext.js.coffee +5 -6
- data/lib/assets/javascripts/up-bootstrap/modal-ext.js.coffee +8 -8
- data/lib/assets/javascripts/up-bootstrap/navigation-ext.js.coffee +2 -5
- data/lib/assets/javascripts/up.js.coffee +0 -1
- data/lib/upjs/rails/version.rb +1 -1
- data/spec_app/Gemfile.lock +1 -1
- data/spec_app/spec/javascripts/up/bus_spec.js.coffee +43 -6
- data/spec_app/spec/javascripts/up/flow_spec.js.coffee +1 -1
- data/spec_app/spec/javascripts/up/history_spec.js.coffee +3 -3
- data/spec_app/spec/javascripts/up/layout_spec.js.coffee +9 -11
- data/spec_app/spec/javascripts/up/link_spec.js.coffee +7 -9
- data/spec_app/spec/javascripts/up/magic_spec.js.coffee +5 -5
- data/spec_app/spec/javascripts/up/modal_spec.js.coffee +8 -10
- data/spec_app/spec/javascripts/up/navigation_spec.js.coffee +13 -13
- data/spec_app/spec/javascripts/up/popup_spec.js.coffee +1 -5
- data/spec_app/spec/javascripts/up/proxy_spec.js.coffee +51 -52
- data/spec_app/spec/javascripts/up/tooltip_spec.js.coffee +19 -5
- data/spec_app/spec/javascripts/up/util_spec.js.coffee +14 -23
- metadata +1 -3
- data/lib/assets/javascripts/up/slot.js.coffee +0 -63
- data/spec_app/spec/javascripts/up/slot_spec.js.coffee +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b92f1a5f0bbaa4e375c121941f69f046f720c722
|
4
|
+
data.tar.gz: ddd4812c22d9ae7a2745037564f147a3523e344c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39452897102d34f99bda5eae970cf67538d906600d1b94d2768041c835ab5d91ba20c01c5137e27208817858edc38480a81b1274d747fa3569c35e8484bfcf58
|
7
|
+
data.tar.gz: 4c9005ede5ab2d3835e34c2d2df5c60d5fa38d8936dad005975d5ca08e0787325f03c70ce52989cdf9340cd23e55bb9a09f9041b227dbc5b69a51b2aecf1b9dc
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,56 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
This project mostly adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
7
|
|
8
|
+
0.12.0
|
9
|
+
------
|
10
|
+
|
11
|
+
### Compatible changes
|
12
|
+
|
13
|
+
- Up.js can now be used with [`jQuery.noConflict()`](https://api.jquery.com/jquery.noconflict/).
|
14
|
+
|
15
|
+
|
16
|
+
### Incompatible changes
|
17
|
+
|
18
|
+
- Remove the `up.`slot, which was poorly implemented, untested, and not much better than the `:empty` pseudo-selector
|
19
|
+
which has great browser support
|
20
|
+
- Replaced the `up.bus.on(...)` event registry with vanilla DOM events bound to `document`. Also renamed
|
21
|
+
events in the process.
|
22
|
+
|
23
|
+
Instead of the old ...
|
24
|
+
|
25
|
+
up.bus.on('fragment:ready', function($fragment) {
|
26
|
+
...
|
27
|
+
};
|
28
|
+
|
29
|
+
... you now need to write ...
|
30
|
+
|
31
|
+
$(document).on('up:fragment:inserted', function(event) {
|
32
|
+
var $fragment = $(this);
|
33
|
+
...
|
34
|
+
};
|
35
|
+
|
36
|
+
... or shorter:
|
37
|
+
|
38
|
+
up.on('up:fragment:inserted', function(event, $fragment) {
|
39
|
+
...
|
40
|
+
};
|
41
|
+
- Renamed `up.ready` to `up.hello`. This will emit an `up:event:inserted` event for the given element,
|
42
|
+
causing it to be compiled etc.
|
43
|
+
- `up.popup.open` has been renamed to `up.popup.attach`.
|
44
|
+
- `up.modal.open` has been split into two methods `up.modal.visit(url)` and `up.modal.follow($link)`.
|
45
|
+
- `up.tooltip.open` has been renamed to `up.tooltip.attach`.
|
46
|
+
- Tooltips now escape HTML by default; To use HTML content, use an `[up-tooltip-html]` attribute instead.
|
47
|
+
- Module configurations are now simple properties like `up.layout.config` instead of methods like `up.layout.defaults(...)`.
|
48
|
+
|
49
|
+
Instead of the old ...
|
50
|
+
|
51
|
+
up.layout.defaults({ snap: 100 });
|
52
|
+
|
53
|
+
... you now need to write:
|
54
|
+
|
55
|
+
up.layout.config.snap = 100;
|
56
|
+
|
57
|
+
|
8
58
|
0.11.1
|
9
59
|
------
|
10
60
|
|
data/dist/up-bootstrap.js
CHANGED
@@ -1,29 +1,21 @@
|
|
1
1
|
(function() {
|
2
|
-
|
2
|
+
up.layout.config.fixedTop.push('.navbar-fixed-top');
|
3
3
|
|
4
|
-
|
4
|
+
up.layout.config.fixedBottom.push('.navbar-fixed-bottom');
|
5
5
|
|
6
|
-
up.layout.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
up.layout.config.anchoredRight.push('.navbar-fixed-top');
|
7
|
+
|
8
|
+
up.layout.config.anchoredRight.push('.navbar-fixed-bottom');
|
9
|
+
|
10
|
+
up.layout.config.anchoredRight.push('.footer');
|
11
11
|
|
12
12
|
}).call(this);
|
13
13
|
(function() {
|
14
|
-
up.modal.
|
15
|
-
template: "<div class=\"up-modal\">\n <div class=\"up-modal-dialog modal-dialog\">\n <div class=\"up-modal-content modal-content\"></div>\n </div>\n</div>"
|
16
|
-
});
|
14
|
+
up.modal.config.template = "<div class=\"up-modal\">\n <div class=\"up-modal-dialog modal-dialog\">\n <div class=\"up-modal-content modal-content\"></div>\n </div>\n</div>";
|
17
15
|
|
18
16
|
}).call(this);
|
19
17
|
(function() {
|
20
|
-
|
21
|
-
|
22
|
-
defaults = up.navigation.defaults();
|
23
|
-
|
24
|
-
up.navigation.defaults({
|
25
|
-
currentClasses: defaults.currentClasses.concat(['active'])
|
26
|
-
});
|
18
|
+
up.navigation.config.currentClasses.push('active');
|
27
19
|
|
28
20
|
}).call(this);
|
29
21
|
(function() {
|
data/dist/up-bootstrap.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(){
|
1
|
+
(function(){up.layout.config.fixedTop.push(".navbar-fixed-top"),up.layout.config.fixedBottom.push(".navbar-fixed-bottom"),up.layout.config.anchoredRight.push(".navbar-fixed-top"),up.layout.config.anchoredRight.push(".navbar-fixed-bottom"),up.layout.config.anchoredRight.push(".footer")}).call(this),function(){up.modal.config.template='<div class="up-modal">\n <div class="up-modal-dialog modal-dialog">\n <div class="up-modal-content modal-content"></div>\n </div>\n</div>'}.call(this),function(){up.navigation.config.currentClasses.push("active")}.call(this),function(){}.call(this);
|