runeforge 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
<calendar-date
|
|
113
113
|
class="cally rounded-box border border-base-300 bg-base-100 shadow-sm"
|
|
114
114
|
value={String(record[field.attribute] ?? '')}
|
|
115
|
-
onchange={(e: Event) => { record[field.attribute] = (e as
|
|
115
|
+
onchange={(e: Event) => { record[field.attribute] = (e.currentTarget as HTMLElement & { value: string }).value; }}
|
|
116
116
|
>
|
|
117
117
|
<svg aria-label={strings.previous} class="fill-current size-4" {...{"slot": "previous"}} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15.75 19.5 8.25 12l7.5-7.5"/></svg>
|
|
118
118
|
<svg aria-label={strings.next} class="fill-current size-4" {...{"slot": "next"}} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m8.25 4.5 7.5 7.5-7.5 7.5"/></svg>
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
|
|
44
44
|
$effect(() => {
|
|
45
45
|
if (!calendarEl) return;
|
|
46
|
-
function handler(
|
|
47
|
-
const value = (
|
|
46
|
+
function handler() {
|
|
47
|
+
const value = (calendarEl as HTMLElement & { value: string }).value ?? '';
|
|
48
48
|
const [from = '', to = ''] = value.split('/');
|
|
49
49
|
filter.setDateRange(column.attribute, from, to);
|
|
50
50
|
onchange?.();
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
<calendar-month></calendar-month>
|
|
108
108
|
</calendar-range>
|
|
109
109
|
{#if dateRange.from || dateRange.to}
|
|
110
|
-
<p class="mt-2 text-xs text-base-content/60">
|
|
110
|
+
<p class="mt-2 text-center text-xs text-base-content/60">
|
|
111
111
|
{dateRange.from || '…'} → {dateRange.to || '…'}
|
|
112
112
|
</p>
|
|
113
113
|
{/if}
|