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.
@@ -42,6 +42,7 @@ export interface IDDAction {
42
42
  alternateNoClose?: boolean;
43
43
  href?: string;
44
44
  hrefReplace?: boolean;
45
+ key?: string | number;
45
46
  }
46
47
  export interface ISpinItem<T = number> {
47
48
  hidden?: boolean;
@@ -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
@@ -280,7 +280,7 @@
280
280
  }
281
281
  show = false
282
282
  }
283
- }, 500)
283
+ }, 200)
284
284
  })
285
285
  }
286
286
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",