intelliwaketssveltekitv25 0.1.29 → 0.1.30
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.
package/dist/Definitions.d.ts
CHANGED
package/dist/DropDown.svelte
CHANGED
|
@@ -223,6 +223,8 @@
|
|
|
223
223
|
|
|
224
224
|
let indentsExist = $derived(ddActions.some((ddAction) => ddAction.active && ddAction.indented))
|
|
225
225
|
|
|
226
|
+
// let useKeys = $derived(visibleDDActions.reduce((result, action) => result && (!!action.key && visibleDDActions.filter(subAction => subAction.key === action.key).length < 2), true))
|
|
227
|
+
|
|
226
228
|
</script>
|
|
227
229
|
|
|
228
230
|
<svelte:window bind:innerHeight={windowH} />
|
|
@@ -282,7 +284,7 @@
|
|
|
282
284
|
{#if actions}
|
|
283
285
|
{@render actions()}
|
|
284
286
|
{/if}
|
|
285
|
-
{#each visibleDDActions as ddAction, i (ddAction)}
|
|
287
|
+
{#each visibleDDActions as ddAction, i (ddAction.key ?? ddAction)}
|
|
286
288
|
{@const isDisabled = ddAction.disabled || (!ddAction.action && !ddAction.href)}
|
|
287
289
|
{#if !!ddAction.header}
|
|
288
290
|
<div
|