Releases: typhonjs-fvtt-lib/svelte
Releases · typhonjs-fvtt-lib/svelte
0.2.0-next.5
Release 0.2.0-next.5
- Out of the box Typescript / Foundry types support!
0.2.0-next.4
Release 0.2.0-next.4
- Fix bring to top pointer down with
capture
on app element.
0.2.0-next.3
Release 0.2.0-next.3
- Refactor application shell focus trapping.
0.2.0-next.2
Release 0.2.0-next.2
- Fixed
TJSGlassPane
removingpreventDefault
invoked forwheel
events in modal / capture mode which posts a warning in the dev console. IE you can't invokepreventDefault
for wheel events; see: https://chromestatus.com/feature/6662647093133312
0.2.0-next.1
Release 0.2.0-next.1 (major)
- Various sub-path refactoring / removals.
- Overall refinement / streamlining.
0.1.2
Release 0.1.2 (medium)
- Fixed min window height / width for app shells (global vs script space variable access)
- Fixed SvelteApplication render gating / render: false will short circuit properly when app not rendered.
- EmptyApplicationShell component can now be made resizable via setting the
resizable
app option. - Added
closeOnInput
prop to TJSGlassPane which firesclose:glasspane
event on pointer down event.- Added
modalOptions.closeOnInput
to TJSDialog data / close modal dialog on glasspane input.
- Added
- Upgraded TJSDialogData adding reactive accessors for all standard data. New
replace
function instead of accessor setting of all data. - Update types for transition / modal options for TJSDialog.
- Fixed application shell transition prop handling
defaultCloseAnimation
option not taking when set tofalse
w/ no transition defined.- separately defined in / out transitions works correctly.
DynReducerHelper.filters.regexObjectQuery
- Can now take "accessor" strings to lookup nested properties. Simply provide a string separated by
.
for each depth. - An additional option is available
accessWarn
when set to true will log warnings when property lookups fail.
- Can now take "accessor" strings to lookup nested properties. Simply provide a string separated by
0.1.1
0.1.0
0.0.22
Release 0.0.22 (major)
-
Advanced focus management including focus trapping for application shells.
- Check options
focusAuto
,focusKeep
,focusTrap
in SvelteApplicationoptions
/reactive
- By default
focusAuto
/focusTrap
is enabled for application shells. focusSource
for pass-through handling of returning focus to source of action on close.
- By default
- Note: To enable keyboard navigation by
tab
traversal you need to remove / reassign the Foundry key binding for
tab
.
- Check options
-
TJSDialog completely overhauled.
- Keeps the same configuration options / remove all JQuery support.
- New
wait
method w/ managed Promise handling.- Inside of dialog Svelte components access managed promise via
getContext('#managedPromise')
- Inside of dialog Svelte components access managed promise via
-
New options for application header button options:
- Left align buttons after title w/
alignLeft: true
. - Keep button when minimized w/
keepMinimized: true
. - Context menu / right click support w/
onContextMenu
callback. - Integrated keyboard handling.
- Left align buttons after title w/
-
CSS default variables (used across all components when text is focused / hovered):
--tjs-default-text-shadow-focus-hover
-> default value: '0 0 8px var(--color-shadow-primary)'
-
Undefined universal CSS variables for focus visible support / keyboard navigation:
--tjs-default-outline-focus-visible
: Defineoutline
for focused components.--tjs-default-transition-focus-visible
: Optionaltransition
to apply.--tjs-default-box-shadow-focus-visible
: Optional box-shadow to apply instead of outline.
-
Vite 4 support