intelliwaketssveltekitv25 1.0.12 → 1.0.14
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
|
@@ -75,7 +75,7 @@ export type TListGroupItem = {
|
|
|
75
75
|
selected?: boolean;
|
|
76
76
|
href?: string;
|
|
77
77
|
strikeThrough?: boolean;
|
|
78
|
-
linkClick?: (
|
|
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,7 +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: (action: () => Promise<
|
|
152
|
+
execute: <T = void>(action: () => Promise<T>) => Promise<T>;
|
|
153
153
|
reset: () => void;
|
|
154
154
|
};
|
|
155
155
|
export interface IMessageBoxStore {
|
package/dist/Definitions.js
CHANGED
|
@@ -32,8 +32,9 @@ const storeActivityOverlay = () => {
|
|
|
32
32
|
hide: () => update((prevState) => (prevState < 2 ? 0 : prevState - 1)),
|
|
33
33
|
execute: async (action) => {
|
|
34
34
|
update((prevState) => (prevState < 0 ? 1 : prevState + 1));
|
|
35
|
-
await action();
|
|
35
|
+
const result = await action();
|
|
36
36
|
update((prevState) => (prevState < 2 ? 0 : prevState - 1));
|
|
37
|
+
return result;
|
|
37
38
|
},
|
|
38
39
|
reset: () => set(0)
|
|
39
40
|
};
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
function getKey(listItem: TListGroupItem) {
|
|
111
|
-
return listItem.key ?? `${listItem.value ?? 'v'}:${titleString(listItem.title) ?? listItem.paneName ?? 't'}:${titleString(listItem.sub_title) ?? 'st'}:${listItem.badgeValue ?? 'bv'}:${listItem.rightText ?? 'rt'}}`
|
|
111
|
+
return listItem.key ?? `${listItem.value ?? 'v'}:${titleString(listItem.title) ?? listItem.paneName ?? 't'}:${titleString(listItem.sub_title) ?? 'st'}:${listItem.badgeValue ?? 'bv'}:${listItem.rightText ?? 'rt'}:${listItem.section ?? 'sect'}}`
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
function sectionClick(section: string) {
|