upjs-rails 0.14.1 → 0.15.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 +80 -0
- data/dist/up.js +388 -123
- data/dist/up.min.js +2 -2
- data/lib/assets/javascripts/up/browser.js.coffee +57 -8
- data/lib/assets/javascripts/up/form.js.coffee +129 -47
- data/lib/assets/javascripts/up/modal.js.coffee +10 -5
- data/lib/assets/javascripts/up/motion.js.coffee +2 -3
- data/lib/assets/javascripts/up/navigation.js.coffee +2 -2
- data/lib/assets/javascripts/up/popup.js.coffee +77 -22
- data/lib/assets/javascripts/up/proxy.js.coffee +0 -1
- data/lib/assets/javascripts/up/syntax.js.coffee +2 -0
- data/lib/assets/javascripts/up/util.js.coffee +15 -13
- 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 +13 -11
- data/spec_app/spec/javascripts/up/form_spec.js.coffee +87 -3
- data/spec_app/spec/javascripts/up/modal_spec.js.coffee +32 -6
- data/spec_app/spec/javascripts/up/motion_spec.js.coffee +2 -2
- data/spec_app/spec/javascripts/up/popup_spec.js.coffee +45 -2
- metadata +2 -3
- data/design/up-validate.js.coffee +0 -284
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3236d5a2595b25031bbd784cb06b5e90a0c08ef
|
4
|
+
data.tar.gz: f11c58099db9cdc7ae20a83e0589d9d8ff593c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 193e9bf8f0bcf3c69dd1cea471a7e718580a943ed0987d184b8dda2ae839f025c06497bbf0134d5e9ee50ada583f19b3a61aa2008f4485e9e1dce247f05f258d
|
7
|
+
data.tar.gz: 8818d2d7966e2fbb0e7fbe343ac94ccd7886103d409c28184f842b8804f63133e446f790efc1efccfe8c4229a15b5b7bd42300331819d73917571f983f36ac85
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,34 @@ 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.15.0
|
9
|
+
------
|
10
|
+
|
11
|
+
### Compatible changes
|
12
|
+
|
13
|
+
- New function [`up.autosubmit`](/up.autosubmit) and select [`[up-autosubmit]`] to
|
14
|
+
observe a form or field and submit the form when a value changes.
|
15
|
+
- [`up.observe`](/up.observe) and [`[up-observe]`](/up-observe) can now be applied
|
16
|
+
to `<form>` tags. The callback is run when any field in the form changes.
|
17
|
+
- New function [`up.browser.canPushState`](/up.browser.canPushState) to detect
|
18
|
+
if the browser supports `history.pushState`.
|
19
|
+
- New function [`up.browser.canCssTransition`](/up.browser.canCssTransition) to
|
20
|
+
detect if the browser supports animation with CSS transitions.
|
21
|
+
- New function [`up.browser.canInputEvent`](/up.browser.canInputEvent) to
|
22
|
+
detect if the browser supports the `input` event.
|
23
|
+
- Allow to [configure a default delay](/up.form.config) for [`up.observe`](/up.observe).
|
24
|
+
- [Popups](/up.popup) now have events [`up:popup:open`](/up:popup:open),
|
25
|
+
[`up:popup:opened`](/up:popup:opened), [`up:popup:close`](/up:popup:close)
|
26
|
+
and [`up:popup:closed`](/up:popup:closed).
|
27
|
+
- The destructor returned by [`up.observe`](/up.observe) now properly unregisters
|
28
|
+
event listeners.
|
29
|
+
|
30
|
+
### Breaking changes
|
31
|
+
|
32
|
+
- [`up.observe`](/up.observe) now takes the callback function as a last argument.
|
33
|
+
The callback can now longer be passed as a `.change` option.
|
34
|
+
|
35
|
+
|
8
36
|
0.14.0
|
9
37
|
------
|
10
38
|
|
@@ -363,3 +391,55 @@ Refactored internals. No API changes.
|
|
363
391
|
### Compatible changes
|
364
392
|
|
365
393
|
- Bugfix: Don't consider forms with an `up-target` attribute to be a link.
|
394
|
+
|
395
|
+
|
396
|
+
0.7.0
|
397
|
+
-----
|
398
|
+
|
399
|
+
### Compatible changes
|
400
|
+
|
401
|
+
- New selector [`[up-expand]`](/up-expand) to enlarge click areas
|
402
|
+
|
403
|
+
|
404
|
+
0.6.5
|
405
|
+
-----
|
406
|
+
|
407
|
+
### Compatible changes
|
408
|
+
|
409
|
+
- Animation options for `up.tooltip.open`
|
410
|
+
- Consider the left mouse button clicked when `event.button` is undefined (as happens with `.click()``)
|
411
|
+
|
412
|
+
### Breaking changes
|
413
|
+
|
414
|
+
- Rename option `.origin` to `.position` in `up.popup` and `up.tooltip`
|
415
|
+
|
416
|
+
|
417
|
+
0.6.4
|
418
|
+
-----
|
419
|
+
|
420
|
+
### Compatible changes
|
421
|
+
|
422
|
+
- Don't follow links while CTRL, Meta or Shift keys are pressed
|
423
|
+
|
424
|
+
|
425
|
+
0.6.3
|
426
|
+
-----
|
427
|
+
|
428
|
+
### Compatible changes
|
429
|
+
|
430
|
+
- Show backtraces for Up.js errors
|
431
|
+
|
432
|
+
### Breaking changes
|
433
|
+
|
434
|
+
- Rename method `up.awaken` to `up.compiler`
|
435
|
+
|
436
|
+
|
437
|
+
0.6.2
|
438
|
+
-----
|
439
|
+
|
440
|
+
### Compatible changes
|
441
|
+
|
442
|
+
- Option to have a custom HTTP method for `up.follow`
|
443
|
+
- No longer preloads links with unsafe HTTP methods
|
444
|
+
|
445
|
+
|