diff --git a/src/lib/components/budgets/BudgetForm.svelte b/src/lib/components/budgets/BudgetForm.svelte new file mode 100644 index 0000000..21f6c0b --- /dev/null +++ b/src/lib/components/budgets/BudgetForm.svelte @@ -0,0 +1,205 @@ + + +
diff --git a/src/lib/components/budgets/LimitCell.svelte b/src/lib/components/budgets/LimitCell.svelte new file mode 100644 index 0000000..7f8b25e --- /dev/null +++ b/src/lib/components/budgets/LimitCell.svelte @@ -0,0 +1,148 @@ + + +{#if editing} + + {line.cur.symbol} + + +{:else} + +{/if} +{#if busy} + Saving +{:else if problem} + {problem} +{/if} diff --git a/src/lib/components/budgets/MeterBar.svelte b/src/lib/components/budgets/MeterBar.svelte new file mode 100644 index 0000000..d6cef7d --- /dev/null +++ b/src/lib/components/budgets/MeterBar.svelte @@ -0,0 +1,42 @@ + + + diff --git a/src/lib/components/budgets/NoBudget.svelte b/src/lib/components/budgets/NoBudget.svelte new file mode 100644 index 0000000..934972a --- /dev/null +++ b/src/lib/components/budgets/NoBudget.svelte @@ -0,0 +1,68 @@ + + ++ Nothing budgeted in {pool.cur.code} for this period. Budgets spent + {money(spent)} + in {pool.cur.code}. +
+ {:else} ++ All expenses in {pool.cur.code}: + {money(allSpent)}. + {#if outside > 0} + {money(outside)} + of it has no budget{noBudgetCount + ? ` (${noBudgetCount} transactions in all currencies)` + : ""} + {/if} +
+ {/if} +Nothing spent yet.
+ {/if} +No expenses yet.
+ {/if} +Nothing in this range.
+ {/if} +No tags look alike.
+ {/if} +{tag.error.message}
+{/if} + +| + Description + | +{attributes.description} | +
|---|---|
| + Date + | +{formatDate(attributes.date)} | +
| + {row.label} + | +
+ |
+
| + Sub-tags + | ++ {#each children as child, i (child.id)} + {child.attributes.tag.slice(name.length + 1)}{i < children.length - 1 ? ", " : ""} + {/each} + | +
| + No transactions in this range. + | +|
No transactions yet.
+ {/if} +