900 Commits

Author SHA1 Message Date
carson
09392e96ad update htmx for external testing 2020-05-23 22:31:11 -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
carson
23a9a33486 path-deps extension
fixes https://github.com/bigskysoftware/htmx/issues/21
2020-05-23 17:06:20 -07:00
Ben Croker
4b9bd81a02
Renamed Current-URL header to X-HX-Current-URL 2020-05-23 19:44:26 +02: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
ba6d38e9dd Fix https://github.com/bigskysoftware/htmx/issues/19
clean up uses of getRawAttribute() and add a `data-*` test for all attribute tests.
2020-05-23 04:52:52 -07:00
carson
5e4a904718 ignore ctrl-click on boosted anchors 2020-05-22 21:59:30 -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
59444e8f44 fix https://github.com/bigskysoftware/htmx/issues/23
use the current URL if the path is missing or empty, like anchors do
2020-05-22 18:25:31 -07:00
carson
ef152a73b9 Clean up URL parameter handling & tests, support anchors 2020-05-22 13:42:57 -07:00
carson
033af9a8d2 htmx extension mechanism 2020-05-22 10:53:10 -07:00
carson
8ceb39cf1d Merge remote-tracking branch 'origin/dev' into dev 2020-05-21 11:15:54 -07:00
carson
b2890e3cf1 Fix https://github.com/bigskysoftware/htmx/issues/22
include values in proper form order if the element is enclosed in one
2020-05-21 11:15:45 -07:00
chg20
3da43b0c76
Merge pull request #18 from rschroll/empty-header
Allow request to have empty header values
2020-05-21 10:59:02 -07:00
Robert Schroll
a33bc0aae6 Allow request to have empty header values
This may happen with a prompt with nothing entered, for example.
2020-05-17 14:46:48 -07:00
Robert Schroll
d43e312763 Cancel the AJAX request when user cancels prompt
The prompt command returns null in this case.  Note that empty string
is a valid return value, so we can't just check the boolean nature of
the return.
2020-05-17 14:16:48 -07:00
carson
52f58241f6 bump version remove js version property 2020-05-17 07:01:01 -07:00
carson
5f7174c1f9 More renaming cleanup 2020-05-17 05:53:08 -07:00
carson
3aa8c64754 le big re-rename 2020-05-17 05:22:19 -07:00
carson
4ebdabd227 Merge remote-tracking branch 'origin/dev' into dev 2020-05-16 14:30:33 -07:00
carson
6e06c0df87 Better style handling:
* inject the style as a stand alone element
* support the meta directive to not include the default style

fixes https://github.com/bigskysoftware/kutty/issues/13
2020-05-16 14:30:25 -07:00
chg20
2f21351f6e
Merge pull request #12 from rschroll/prompt
Avoid shadowing the global prompt function
2020-05-16 14:10:10 -07:00
Robert Schroll
1cd6ba3750 Avoid shadowing the global prompt function
The prompt variable inside issueAjaxRequest shadowed the prompt function
that it was attempting to use, thereby breaking the use of kt-prompt.
2020-05-16 12:13:32 -07:00
carson
390ac2443b copy children collection so merging oob node doesn't screw up iteration
fixes https://github.com/bigskysoftware/kutty/issues/4
2020-05-16 06:54:33 -07:00
carson
fd6e3f68d8 version bump and start using dev branch like a civilized human 2020-05-15 19:25:52 -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
a3c9cf6b6a Clean up parameter inclusion logic and update demos to use GET where appropriate, rather than hiding from my bad design choices
Added value-select.md demo
2020-05-14 15:34:47 -07:00
carson
53cd87465c swap and API fixes 2020-05-14 11:51:15 -07:00
carson
91772b2d45 tests 2020-05-14 06:28:24 -07:00
Carson Gross
6fb48ff132 ie11 fixes 2020-05-13 20:42:48 -07:00
carson
1d2e2c788b test fix 2020-05-13 19:52:51 -07:00
carson
91fea14951 small API and docs 2020-05-13 17:58:06 -07:00
carson
36bd9a25ca event testing 2020-05-13 13:57:52 -07:00
carson
e5d8d87523 Improve ability to modify request via events 2020-05-13 10:38:44 -07:00
carson
5da5dc6063 general updates 2020-05-13 09:53:27 -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
74d4481ada event docs 2020-05-12 09:53:33 -07:00
carson
130fec1c2c progress bar demo and fixes 2020-05-12 05:50:28 -07:00
carson
a39c7a16b7 more docs 2020-05-11 20:23:06 -07:00
carson
1424497145 active search, refine kt-params add "kutty.logAll()" for debugging 2020-05-11 16:41:59 -07:00
carson
0787596e78 Fix revealed logic include infinit scroll example 2020-05-11 11:27:08 -07:00
carson
a1b37e5d2c click-to-load demo 2020-05-10 16:09:55 -07:00
carson
7173b7bb80 more docs, move kt-history-elt back to an attribute 2020-05-10 08:14:34 -07:00
carson
cbeac1035f fix history 2020-05-10 06:41:04 -07:00
carson
2cf6023eb7 Fix swapping of table elements (jQuery is smart)
Fix including input values (checkboxes, etc.) (jQuery is smart)
Add bulk update demo (needs docs)
2020-05-10 05:50:54 -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