63 Commits

Author SHA1 Message Date
carson
afa6658648 test case for equality expression in conditional 2021-01-01 20:09:43 -07:00
carson
79038d62e3 support from clause for triggers
also fixed pretty ugly bugs when parsing multple trigger definitions
2021-01-01 18:52:15 -07:00
1cg
cc092ed9a0
Merge branch 'dev' into bencroker-patch-2 2020-12-29 10:08:34 -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
Ben Croker
0f226d29dd
Added test 2020-12-19 10:18:42 +01:00
carson
230e2f65df support a CSS selector in the hx-swap-oob attributes 2020-12-11 15:33:24 -07:00
carson
b96e5e771e allow hx-swap-oob to be at any level in returned content 2020-12-11 15:00:44 -07:00
carson
d464b91d1e Add braces test 2020-11-15 17:56:23 -07: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
2209c4bf6f switch semantics: hx-vars overrides any input 2020-11-15 06:23:04 -07:00
carson
f7617a4653 do not fire requests when element is no longer in DOM
fixes https://github.com/bigskysoftware/htmx/issues/222
2020-11-05 08:39:33 -07:00
carson
d67634e678 test scrolledIntoView 2020-10-19 09:49:55 -06:00
carson
1cb756c05e add test for SSE swapping 2020-10-19 08:20:16 -06:00
carson
165586b777 docs and tests for trigger filters 2020-10-17 13:21:15 -06:00
carson
6c8c124c42 Merge branch 'dev' into feature_event_filtering
# Conflicts:
#	src/htmx.js
2020-10-17 08:22:48 -06:00
carson
d018ef4f0f catch on history cache save
fixes https://github.com/bigskysoftware/htmx/issues/209
2020-10-13 17:02:15 -06:00
carson
18220b3283 hook in tokenizer implementation 2020-10-04 18:26:17 -06:00
carson
bf5e1804ac strip the request class from content before snapshotting for history
includes both a logical and perf test, to make sure we perform reasonably well with large page sizes

fixes https://github.com/bigskysoftware/htmx/issues/200
2020-09-22 09:40:38 -06:00
carson
7d49d5ab58 bump to 0.1.2 and add test for namespaced event and extension 2020-09-18 09:30:00 -06:00
carson
8ac2baf586 switch to colon separator for sse and ws to avoid comma issues w/ URLs 2020-09-15 12:22:54 -06:00
nyash
7e35a2ac41
add hx-target find selector test 2020-08-31 10:34:08 +02:00
carson
416ee3dde2 fix test 2020-06-30 12:17:34 -07:00
carson
b22b1d104c Merge remote-tracking branch 'origin/dev' into dev 2020-06-30 10:45:38 -07:00
carson
4f3cf2d889 Move events from <event name>.htmx (jQuery style) to htmx:<event name> (zepto style)
fixes https://github.com/bigskysoftware/htmx/issues/109
2020-06-30 10:45:30 -07:00
chg20
2fbe230853
Merge pull request #122 from bencroker/patch-8
Allowed `hx-push-url` to accept a string
2020-06-28 22:17:24 -07: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
Ben Croker
a4a550d9ea
Added test for when string 2020-06-26 15:52:21 +02:00
carson
99d18d347f test fix 2020-06-17 15:35:58 -07:00
chg20
025b043918
Merge branch 'dev' into json-parse 2020-06-17 15:28:33 -07:00
carson
6083a2ea74 remove bad console logs 2020-06-17 14:58:38 -07:00
carson
b07ed32dc4 selector implementation for processNode 2020-06-17 13:42:18 -07:00
carson
b6f1c834cf include perf tests 2020-06-17 12:30:52 -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
carson
296f354fef fix throttle and make the trigger spec test actually work 2020-06-11 09:45:42 -07:00
carson
96c9623a3d test fix 2020-06-11 06:55:50 -07:00
carson
1f62541094 support throttle modifier in trigger definition
https://github.com/bigskysoftware/htmx/issues/88
2020-06-11 06:21:49 -07:00
carson
4ef719e63a support hx-swap="none"
fixes https://github.com/bigskysoftware/htmx/issues/89
2020-06-11 06:02:23 -07:00
carson
a65c37ec4f Include full path w/ variables when pushing a GET
Fixes https://github.com/bigskysoftware/htmx/issues/58
2020-06-10 16:37:03 -07: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
Robert Schroll
1060c9e88a Avoid throwing errors when parsing malformed JSON
Instead, treat it as if no value was present.
2020-06-08 00:55:09 -07:00
acnebs
d01025823e Rename custom HTTP headers to no longer start with X-
This convention is deprecated, as per this RFC from the IETF: 
https://tools.ietf.org/html/rfc6648
2020-05-28 01:29:51 +01:00
carson
9a4ad77d5d WebSocket and SSE connection closing on element replacement 2020-05-26 06:34:41 -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
cbe8cd9fce fix triggers test 2020-05-24 21:57:20 -07:00
carson
8a6a6f8016 web socket support 2020-05-24 21:41:44 -07:00
carson
860d263d4d pull hx-classes out to an extension 2020-05-24 17:04:59 -07:00
Robert Schroll
2ad1202978 Handle multiple triggers
Triggers are separated by commas, and each will get handled with its
own options.  If we are unable to parse any triggers, the default
trigger for each element is used.
2020-05-23 18:08:54 -07:00
Robert Schroll
0b0be4193a Change trigger spec for repeated and SSE events 2020-05-23 18:08:54 -07:00