Sidebar Tab Application
Svelte error when instantiating a component that wasn't bundled in the same module
Backspace doesn't work on TJSProseMirror components if content is blank when edit button is clicked
Why is this update causing a duplicate Actor sheet to be opened?
<i class="fas fa-lock" on:click="{toggleLock}" />
<i class="fas fa-lock" on:click="{toggleLock}" />
TJSProseMirror for arrays?
fieldName={
system.rulesElement[${idx}].message}
...Lancer system & TRL
Why is this element not reactive?
<TJSSelect options="{manaTypes}" bind:value='{$doc.system.manaType}' />
<TJSSelect options="{manaTypes}" bind:value='{$doc.system.manaType}' />
$doc
comes from context:...How does essential-esm-svelte App Position work?
Can I mix and match standard foundry views with Svelte components?
Is there a multi-select component?
How to reset filter for Embedded collection?
type
of item, rather than via a text field.
My tabs are two separate components. So I have registered the typeFilter in both
Comp1 (shows all items)...Can't seem to write item values to the item database?
For my next trick, I would like to create an inventory list of items from the character
Release: TRL 0.0.22 / `svelte-standard` 0.0.18 (codename: Echo)
container queries
. While this component TJSColordPicker
is in svelte-standard
the main export is currently commented out. I am submitting a PR tomorrow to add container query support to Svelte that I have been refining since December. It hopefully will make it through the review process and I'll post an update to TRL / svelte-standard w/ the mainline Svelte release supporting it. The color picker component made it clear that proper keyboard navigation was lacking in TRL. It's completely lacking in core Foundry; in fact you need to redefine the core key binding for the tab
key from Cycle Canvas View
to be able to navigate by keyboard. A comprehensive system for advanced focus management and focus trapping in applications and TJSContextMenu / TJSMenu are now enabled by default; several new options in SvelteApplication to control focus management: focusAuto
, focusKeep
, focusTrap
with auto & trap set to true. All relevant components from svelte-standard
have key activation baked into the components. Any components that needed to be brought up to solid release parity like TJSContextMenu are now complete. CSS variables were overhauled and there is now increased cohesion between all components for focus-visible
/ keyboard navigation with default variables that can broadly control the look and feel across your entire package. Major refactoring to TJSDialog now makes it super flexible and powerful and I'll certainly expand on the options available now.
Relevant Code Changes (these are required):...How to integrate TyphonJS Actor sheet with 3rd party modules?
Tokenizer
https://github.com/MrPrimate/tokenizer.
I'm not sure if this is a TyphonJS / Svelte question or a more basic Foundry system dev question. What I'm trying to do is to get an Actor profile image similar to the default one in D&D 5e system, which can then support 3rd party modules that allow customisation of the profile. I'm not sure what approach to take for this, so some guidance would be much appreciated!...How to include static assets?
/assets
folder to the project root, and referring to it like this:
<img src="/assets/logo.webp" />
<img src="/assets/logo.webp" />
How to get dev env Hot Module Reload working?
yarn dev
but it opens in a browser window and I therefor can't login as gamemaster
because I'm already logged in to the main app on that account.
I created a second user also with gamemaster
privs and that then seems to enable HMR in the browser, but not in the Desktop App....Is there a way to get Pug templates working?
pug
to be installed. I've done that but VsCode seems to be formatting pug
markup incorrectly.
Pug is an indent-senstive format but it's taking this:
```
<ApplicationShell bind:elementRoot>
.flexcol...SCSS build problem with demin075.png
vite.config.mjs
:
```
server:
proxy:
"^(/systems/surge/style.css)": "http://localhost:30000",...Welcome to the TRL Forum channel.