-
Notifications
You must be signed in to change notification settings - Fork 1
Release: v1.0.2 #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Release: v1.0.2 #19
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
49935d9
chore: update comment
jorenrui 3b9864b
feat: add custom events
jorenrui 9de0652
refactor: update initial value of update and reload
jorenrui 374701e
refactor: encapsulate minijs properties/methods
jorenrui f45eb52
refactor: rename parent to group
jorenrui baa101f
feat: evaluate :group attr on load
jorenrui 5b6bb76
refactor: make isNativeVariable a helper
jorenrui af54dbb
refactor: relocate ignored ids to lexer
jorenrui a693e66
refactor: rename this.base to this.entity
jorenrui b85ca1d
fix: entity undefined in events
jorenrui 115c6e7
chore: setup path alias
jorenrui 3dad3e1
refactor: use alias imports
jorenrui d83ba95
refactor: extract variables logic from entity
jorenrui b91a66d
refactor: relocate state of variables
jorenrui 3f25d2a
fix: group variables not working
jorenrui df4c0a2
refactor: expose main on debug true
jorenrui db507b2
feat: track variables per entity attribute
jorenrui 0a1cfbd
fix: check if region is selected
jorenrui 39866e6
refactor: update usage of attribute variables and attach helpers
jorenrui 200e85f
optimization: only re-evaluate relevant attributes on state update
jorenrui d1ca1a0
feat: dispose attributes and events on observer remove attribute
jorenrui 3c6054e
docs: relocate installation steps
jorenrui f42c86c
refactor: update text in changing id demo
jorenrui 757e3f7
feat: initialize variables on attribute change
jorenrui 23f7e52
optimize: grouped usage of new Set
jorenrui f033eca
fix: missing group variables
jorenrui f467db0
refactor: update accordion
jorenrui ed27712
refactor: rename groupID to entityID in disposeEntityVariable
jorenrui 101a6de
Merge branch 'jr.refactor/group-variables' into jr.refactor/entity-va…
jorenrui 1f820e5
refactor: update variable checker and waiting for promises
jorenrui 7e018d6
fix: update isNativeVariable checker
jorenrui a6adeed
Merge pull request #20 from Group-One-Technology/jr.refactor/group-va…
jorenrui bcb1765
fix: missing async await for state.evaluate promise
jorenrui 3db67f4
Merge pull request #21 from Group-One-Technology/jr.refactor/entity-v…
jorenrui 2efa956
build: automated tests ci
jorenrui 723d5c4
docs: add description
jorenrui 8581287
build: remove pull_request on the trigger
jorenrui 76d24c3
build: fix extra = operator
jorenrui 5a0dc37
build: update github.ref to a string
jorenrui 98dd0c8
build: fix duplicate actions running
jorenrui 152ead4
fix: remove promises on attributes evaluate
jorenrui c651a29
fix: revert removal of grid class in accordion
jorenrui File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Mini Custom Events</title> | ||
<script src="/dist/minijs.umd.js"></script> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
</head> | ||
<body class="p-40"> | ||
<script> | ||
MiniJS.extendEvents({ ':htmx:afteronload': 'htmx:afterOnLoad' }) | ||
</script> | ||
|
||
<button | ||
:htmx:afteronload="console.log('custom event!', event)" | ||
:click="const event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent('htmx:afterOnLoad', true, true, { name: 'htmx:afterOnLoad' }); | ||
this.dispatchEvent(event)" | ||
> | ||
Click Me | ||
</button> | ||
</body> | ||
</html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.