Ján Regeš
34582b839c
extensions: added new extension 'multi-swap' with mocha tests and docs ( #1096 )
...
* extensions: added new extension 'multi-swap' with mocha tests and docs
* multi-swap extension: removed forgotten debug console.log()
* multi-swap extension: removed forgotten debug comment from mocha test
2022-10-23 08:59:03 -06:00
Carson Gross
05619c5bec
support the hx-select-oob
attribute
2022-05-31 13:30:34 -06:00
David Guillot
be85c2c191
feat(ext): add disable-element extension ( #869 )
...
* feat(ext): add disable-element extension
* fixup! feat(ext): add disable-element extension
2022-04-08 13:13:03 -06:00
Denis Palashevskii
70b4ad16f0
Add data-loading-aria-busy directive for loading-states extension ( #864 )
...
* Add data-loading-aria-busy directive for loading-states extension; add tests for the extension
* Update docs
* Fix tests of scoped loading states
* Commit test files
* Improve delay tests by using sinon timer
* Add reference to MDN about `aria-busy` attribute
2022-04-07 13:34:41 -06:00
Ben Pate
546e346e98
Restore hx-ws and hx-sse tags ( #811 )
...
absolute 👑
* Restore WS and SSE code
First pass at restoring removed ws and sse code. More to come.
* More progress on WS and SSE restore
* Update htmx.js
crucial whitespace
* Update documentation
* Combine SSE and WS servers into single "realtime" demo
* Realtime Test Server Updates
- separated tests for old- and new- style calling
- updated intro content and stylesheet
- removed extensions from manual test suite
* Remove SSE/WS from manual tests
2022-02-12 11:11:30 -07:00
carson
baa84e7803
get old sse syntax working
2022-02-04 19:16:13 -07:00
carson
c7f4f360d1
Merge branch 'dev' into pull/753
...
# Conflicts:
# src/htmx.js
2022-02-04 11:16:59 -07:00
alfonsrv
bce4baa20c
Rename hx-inherit to hx-disinherit
2022-01-25 23:27:39 +01:00
carson
e6751be2ee
first pass at hx-sync
attribute
2022-01-17 13:11:09 -07:00
alfonsrv
fb78c826d1
Adding preliminary hx-inherit tests
2022-01-05 23:50:13 +01:00
Godefroid Chapelle
b25d95993c
Circle CI first step
2021-12-15 18:46:24 +01:00
carson
c77cb83c54
clean up tests for 1.5.0
release
2021-07-12 10:48:53 -06:00
carson
a4a9d2d733
support for hx-request
attribute with the following config values:
...
* `timeout` - the request timeout
* `credentials` - send credentials w/ the request
* `noHeaders` - do not send any non-standard headers with the request
We also support the `htmx.config.timeout` configuration value for setting the default timeout
2021-07-07 06:37:40 -06:00
carson
0488f233ae
bump version + disable-htmx
security feature
2021-04-04 04:03:52 -06:00
carson
5a68871ac3
find the correct element to trigger after request events on
2021-02-23 14:01:35 -07:00
carson
d2b1e10719
all for want of a p: don't blow history out on first successful cache usage :/
...
potentially fixes https://github.com/bigskysoftware/htmx/issues/370
2021-02-18 11:13:15 -07:00
carson
3c3cd304ae
add test for hx-headers
2021-02-05 11:00:03 -07:00
Ben Pate
3022030505
Add test cases
...
Manual test cases for now.
2021-01-01 21:54:49 -07:00
carson
5fd24a7096
support the hx-preserve
attribute
...
fixes https://github.com/bigskysoftware/htmx/issues/284
2020-12-24 06:36:15 -07:00
1cg
fa1db3b290
Merge pull request #225 from ChexWarrior/224-unlock-request-after-xhr-abort
...
End request lock when xmlHttpRequest is aborted
awesome, thank you!
2020-11-15 19:22:20 -07:00
Andrew Lehman
cc13cf721c
Add test to list of manual tests
2020-11-15 21:09:07 -05:00
carson
5acd554a5c
Two-fer:
...
* Implement `hx-vals` which is a JSON-only (and therefore safer) version of `hx-vars`
* Port all internal evals to use `Function` instead
May fix https://github.com/bigskysoftware/htmx/issues/213
2020-11-15 17:54:54 -07:00
carson
ab88b86109
add event-header extension
2020-10-05 08:29:09 -06:00
carson
586829e097
temporary commit for supporting lexing
2020-10-04 09:39:10 -06:00
carson
a01fac40a2
htmx integration with the HTML validation API
2020-09-29 16:17:37 -06:00
Ben Pate
9b28ddc129
Import Test Cases
...
These three test cases demonstrate SSE using a remote service.
2020-09-13 19:21:35 -06:00
carson
45f3909b9c
Update htmx to latest hyperscript, fix tests
2020-09-11 08:00:45 -06:00
Ben Pate
09be7fff0d
Added Tests
...
- added new scroll test
- renamed original test (because now there are two manual tests for scrolling)
2020-09-02 11:12:48 -06:00
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