100 Commits

Author SHA1 Message Date
carson
70d770a1b5 Add support for the hx-vars attribute, for including dynamically computed values in requests
Fixes https://github.com/bigskysoftware/htmx/issues/120
2020-06-28 17:07:39 -07:00
carson
eb04ab5b3e add scroll and view modifiers to hx-swap 2020-06-23 14:25:56 -07:00
carson
2524fcf436 rename test 2020-06-17 18:37:02 -07:00
chg20
6c8930028c
Merge pull request #94 from twidi/handle-events-and-content-after-handleSwap-extensions
Handle events and content after `handleSwap` in extensions
2020-06-17 18:05:45 -07:00
carson
b6f1c834cf include perf tests 2020-06-17 12:30:52 -07:00
chg20
64f263f778
Merge pull request #82 from 36864/dev
Add an extension to include the commonly-used X-Requested-With header
2020-06-15 18:25:07 -07:00
carson
0ac641b63f remove the hx-error-url attribute in favor of hyperscript
add basic hyperscript compatibility testing
2020-06-12 13:42:55 -07:00
Stephane Angel (Twidi)
86febd3efc
Extension.handleSwap: trigger events for extensions defined on parents
If an element is replaced by an extension in `handleSwap`, the events
(`afterSwap.htmx` and `afterSettle.htmx`) were not received by the
`onLoad` method of extensions defined on parents of the target, because
theses extensions were retrieved after the replacement, and so it was
not possible to get through the parents, the target not being in the dom
anymore.

This commits loads the extensions for the target and save them in
`eventDetail` before doing the swap, so they are accessible in
`triggerEvent`, and passed to `withExtensions` that use this list if
passed (else load them).

A new test is added that fails without the updates in `htmx.js`.
2020-06-12 01:20:13 +02:00
carson
2305aed18e Move X-HTTP-Method-Override out to an extension
fixes https://github.com/bigskysoftware/htmx/issues/86
2020-06-10 16:01:56 -07:00
36864
92561e193c Add an extension to include the commonly-used X-Requested-With header 2020-06-05 15:44:02 +01:00
carson
7b7f00baa0 include-vals extension + docs cleanup 2020-05-26 10:19:39 -07:00
carson
ec6ec68a1e remove-me extension 2020-05-26 08:36:14 -07:00
carson
821ae457f0 handle bad extensions gracefully 2020-05-26 08:11:32 -07:00
carson
666b4cbaa8 add tests for SSE and standardize syntax with websockets 2020-05-25 21:56:29 -07:00
carson
51697abff6 revert settle attribute swapping so internals work + hx-ws tests (ugh) 2020-05-25 19:46:10 -07:00
carson
7036557cba oob swapping fixes and firm up the settle step quite a bit 2020-05-25 16:34:19 -07:00
carson
860d263d4d pull hx-classes out to an extension 2020-05-24 17:04:59 -07:00
carson
23a9a33486 path-deps extension
fixes https://github.com/bigskysoftware/htmx/issues/21
2020-05-23 17:06:20 -07:00
carson
468c405d02 fix https://github.com/bigskysoftware/htmx/issues/33 - include empty input values in request 2020-05-23 09:23:29 -07:00
carson
cdb80690e9 support client side templating via an extension 2020-05-23 08:33:25 -07:00
carson
2110d49ee1 include extensions in dist 2020-05-22 21:50:01 -07:00
carson
3eb4a56e28 patch from @cscortes adding the json-enc extension 2020-05-22 19:41:42 -07:00
carson
ef152a73b9 Clean up URL parameter handling & tests, support anchors 2020-05-22 13:42:57 -07:00
carson
b96b9e3e32 support morphdom swapping as an extension
fixes https://github.com/bigskysoftware/htmx/issues/6
2020-05-22 11:18:39 -07:00
carson
033af9a8d2 htmx extension mechanism 2020-05-22 10:53:10 -07:00
carson
3aa8c64754 le big re-rename 2020-05-17 05:22:19 -07:00
carson
e1e4f25b0e regigger tests and add manual tests for hard-to-test things like prompt and confirm 2020-05-16 15:40:15 -07:00
carson
b50e6a7a35 Paramter testing 2020-05-15 06:34:54 -07:00
carson
5f9f1940b1 Clean up parameter inclusion logic and update demos to use GET where appropriate, rather than hiding from my bad design choices
Add API test + fixes and update all files
2020-05-14 17:10:24 -07:00
carson
36bd9a25ca event testing 2020-05-13 13:57:52 -07:00
carson
ba5cb7105a organize tests 2020-05-13 09:12:31 -07:00
carson
4b2ace772b polling test 2020-05-13 09:06:24 -07:00
carson
00e2249f0b history testing and rework 2020-05-13 06:45:43 -07:00
carson
033792fdc0 attribute tests 2020-05-12 17:33:32 -07:00
carson
7173b7bb80 more docs, move kt-history-elt back to an attribute 2020-05-10 08:14:34 -07:00
carson
2c75621526 Documentation update, make kt-indicator usable out of the box, standardize class names 2020-05-09 19:51:30 -07:00
carson
d08110ed22 remove attributes in favor of a single kt-trigger attribute w/ some syntax 2020-05-09 13:40:52 -07:00
carson
cd1319e135 test the IE SVG fix 2020-05-07 14:02:44 -07:00
carson
b003ccadf8 le big rename 2020-05-06 17:16:20 -07:00
carson
fe9dbb8b3e lots of work:
* reworked the swap code did away with merge in favor of general attributes swapping
* updated docs
* changed hx-swap-direct to hx-swap-oob
* updated build script to create a .gz so I can know what size that is
* cleaned up code so it's easier to follow
2020-05-04 17:55:19 -07:00
carson
9e8f101c0f infrastructure for copying out a version of htmx for testing in the broader browser world 2020-05-02 14:31:05 -07:00
carson
d1b37b387b hx-boost attribute 2020-05-02 05:31:18 -07:00
carson
2714c03f7c hx-direct-swap attribute 2020-05-01 09:37:24 -07:00
carson
9f9dc5ce71 lots of stuff 2020-05-01 04:50:16 -07:00
carson
04964d9e39 Input value support 2020-04-30 16:04:21 -07:00
carson
2c394e9dae Verb support for non-GET calls 2020-04-30 10:13:36 -07:00
carson
2adff95fdd support css class based indicators 2020-04-28 20:02:11 -07:00
carson
d90b9063d4 initial history support 2020-04-28 16:42:18 -07:00
carson
466df7fe46 Support X-HX-Trigger header 2020-04-27 17:16:34 -07:00
carson
962803b640 separate tests 2020-04-27 15:58:10 -07:00