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 Event & { detail: { value: string } }).detail.value; }}
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(e: Event) {
47
- const value = (e as CustomEvent<{ value: string }>).detail?.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}
@@ -23,7 +23,7 @@
23
23
  } = $props();
24
24
  </script>
25
25
 
26
- <tbody>
26
+ <tbody data-testid="paginated-table-body">
27
27
  {#if rows.length === 0}
28
28
  <tr>
29
29
  <td colspan={colCount} class="py-10 text-center text-base-content/50">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runeforge",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "SvelteKit toolkit for building metadata-driven CRUD interfaces with tables, forms, and actions",
5
5
  "license": "MIT",
6
6
  "author": "Ezequiel Puerta",