@anzusystems/common-admin 1.47.0-beta.dev-1784059869 → 1.47.0-beta.dev-1784059870
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/common-admin.d.ts +4 -2
- package/dist/common-admin.js +2679 -2669
- package/dist/common-admin.js.map +1 -1
- package/package.json +1 -1
package/dist/common-admin.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { MaybeRef } from 'vue';
|
|
|
21
21
|
import { Method } from 'axios';
|
|
22
22
|
import { OpUnitType } from 'dayjs';
|
|
23
23
|
import { Promisify } from '@vueuse/core';
|
|
24
|
+
import { Promisify as Promisify_2 } from '@vueuse/shared';
|
|
24
25
|
import { PublicProps } from 'vue';
|
|
25
26
|
import { QUnitType } from 'dayjs';
|
|
26
27
|
import { Reactive } from 'vue';
|
|
@@ -4824,7 +4825,7 @@ export declare function defineBreadcrumbs(items: ComputedRef<Array<BreadcrumbIte
|
|
|
4824
4825
|
export declare function defineCached<I extends DocId | IntegerId, T extends Record<DocId | IntegerId, any>, M extends Record<DocId | IntegerId, any>>(mapFullToMinimal: (source: T) => M, mapIdToMinimal: (id: I) => M, fetchCallback: (ids: I[]) => Promise<T[]>, idProp?: string, maxLimit?: number): {
|
|
4825
4826
|
cache: Ref<Map<I, CachedItem<M>>, Map<I, CachedItem<M>>>;
|
|
4826
4827
|
toFetch: Ref<Set<I>, Set<I>>;
|
|
4827
|
-
fetch: () => Promise<T[]
|
|
4828
|
+
fetch: () => Promisify_2<Promise<T[]>>;
|
|
4828
4829
|
immediateFetch: () => Promise<T[]>;
|
|
4829
4830
|
add: (...args: AddToCachedArgs<I>) => void;
|
|
4830
4831
|
addManual: (data: T) => void;
|
|
@@ -4833,6 +4834,7 @@ export declare function defineCached<I extends DocId | IntegerId, T extends Reco
|
|
|
4833
4834
|
get: (id: I | null | undefined) => CachedItem<M> | undefined;
|
|
4834
4835
|
clear: () => void;
|
|
4835
4836
|
isLoaded: (id: I | null | undefined) => boolean;
|
|
4837
|
+
isUnresolved: (id: I | null | undefined) => boolean;
|
|
4836
4838
|
};
|
|
4837
4839
|
|
|
4838
4840
|
/**
|
|
@@ -9790,7 +9792,7 @@ export declare function useDamAuthorType(): {
|
|
|
9790
9792
|
export declare const useDamCachedUsers: () => {
|
|
9791
9793
|
addManualToCachedUsers: (data: DamUser) => void;
|
|
9792
9794
|
addToCachedUsers: (...args: AddToCachedArgs<number>) => void;
|
|
9793
|
-
fetchCachedUsers: () => Promise<DamUser[]
|
|
9795
|
+
fetchCachedUsers: () => Promisify_2<Promise<DamUser[]>>;
|
|
9794
9796
|
cachedUsers: Ref<Map<number, CachedItem<AnzuUserMinimal>>, Map<number, CachedItem<AnzuUserMinimal>>>;
|
|
9795
9797
|
hasCachedUser: (id: number | null | undefined) => boolean;
|
|
9796
9798
|
getCachedUser: (id: number | null | undefined) => CachedItem<AnzuUserMinimal> | undefined;
|