intelliwaketssveltekitv25 1.0.11 → 1.0.13

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.
@@ -75,7 +75,7 @@ export type TListGroupItem = {
75
75
  selected?: boolean;
76
76
  href?: string;
77
77
  strikeThrough?: boolean;
78
- linkClick?: (() => void | Promise<void>);
78
+ linkClick?: () => void | Promise<void>;
79
79
  /** undefined = don't show, null = show with spinner, number (0, 1, etc.) = show */
80
80
  badgeValue?: number | string | null;
81
81
  badgeColor?: TDefaultColorPalate | null;
@@ -149,6 +149,7 @@ export type TTableCol<T extends Record<string, any> = Record<string, any>> = Par
149
149
  export declare const ShowActivityOverlay: Pick<Writable<number>, "subscribe"> & {
150
150
  show: () => void;
151
151
  hide: () => void;
152
+ execute: <T = void>(action: () => Promise<T>) => Promise<T>;
152
153
  reset: () => void;
153
154
  };
154
155
  export interface IMessageBoxStore {
@@ -30,6 +30,12 @@ const storeActivityOverlay = () => {
30
30
  subscribe,
31
31
  show: () => update((prevState) => (prevState < 0 ? 1 : prevState + 1)),
32
32
  hide: () => update((prevState) => (prevState < 2 ? 0 : prevState - 1)),
33
+ execute: async (action) => {
34
+ update((prevState) => (prevState < 0 ? 1 : prevState + 1));
35
+ const result = await action();
36
+ update((prevState) => (prevState < 2 ? 0 : prevState - 1));
37
+ return result;
38
+ },
33
39
  reset: () => set(0)
34
40
  };
35
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "!dist/**/*.spec.*"
15
15
  ],
16
16
  "peerDependencies": {
17
- "@solidbasisventures/intelliwaketsfoundation": "^5.13.1",
17
+ "@solidbasisventures/intelliwaketsfoundation": "^5.13.10",
18
18
  "@sveltejs/kit": "^2.43.6",
19
19
  "svelte": "^5.39.7"
20
20
  },
@@ -59,7 +59,7 @@
59
59
  "tailwindcss": "^4.1.8",
60
60
  "typescript": "^5.8.3",
61
61
  "typescript-eslint": "^8.32.1",
62
- "vite": "^6.3.6",
62
+ "vite": "^6.4.1",
63
63
  "vitest": "^3.1.3"
64
64
  },
65
65
  "publishConfig": {