@functionalcms/svelte-components 4.10.37 → 4.10.39
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.
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import Select from './Select.svelte';
|
|
6
6
|
import Switch from './Switch.svelte';
|
|
7
7
|
import { Placement } from '../Styling.js';
|
|
8
|
-
import { addTransactionSupport } from 'ioredis/built/transaction.js';
|
|
9
8
|
import Button from './Button.svelte';
|
|
10
9
|
|
|
11
10
|
interface FormButton {
|
|
@@ -24,7 +23,7 @@
|
|
|
24
23
|
|
|
25
24
|
let {
|
|
26
25
|
buttons = [],
|
|
27
|
-
schema,
|
|
26
|
+
schema = [],
|
|
28
27
|
action = '',
|
|
29
28
|
buttonsContainer = '',
|
|
30
29
|
buttonPosition = Placement.Bottom
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
</div>
|
|
40
39
|
{/snippet}
|
|
41
40
|
|
|
42
|
-
<form method="POST"
|
|
41
|
+
<form method="POST" {action}>
|
|
43
42
|
<fieldset>
|
|
44
43
|
{#if buttonPosition === Placement.Top}
|
|
45
44
|
{@render renderButtons()}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
let dynamicComponentRefs = $state([]); //https://svelte.dev/tutorial/component-this
|
|
22
22
|
let tabButtonRefs: Array<HTMLButtonElement> = $state([]);
|
|
23
|
-
let activePanel = $state(
|
|
23
|
+
let activePanel: Tab = $state(tabs[0]);
|
|
24
24
|
|
|
25
25
|
const baseStyles = () => `tabs ${isVerticalOrientation ? 'tabs-vertical' : ''}`;
|
|
26
26
|
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
{:else} -->
|
|
169
169
|
<button
|
|
170
170
|
bind:this={tabButtonRefs[i]}
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
onclick={() => selectTab(i)}
|
|
172
|
+
onkeydown={(e) => handleKeyDown(e, i)}
|
|
173
173
|
disabled={tab.isDisabled}
|
|
174
174
|
class={tabButtonClasses(tab)}
|
|
175
175
|
role="tab"
|