@pristy/pristy-libvue 2.13.1 → 2.13.3
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/{ActivityHistory-B2Q_KPgq.js → ActivityHistory-DJkFfYop.js} +2 -2
- package/dist/{ActivityHistory-B2Q_KPgq.js.map → ActivityHistory-DJkFfYop.js.map} +1 -1
- package/dist/{BookmarksComponent-CH6C610k.js → BookmarksComponent-AFxnbtQ4.js} +2 -2
- package/dist/{BookmarksComponent-CH6C610k.js.map → BookmarksComponent-AFxnbtQ4.js.map} +1 -1
- package/dist/{ChartWrapper-9_OMNfve.js → ChartWrapper-BmWphXJq.js} +2 -2
- package/dist/{ChartWrapper-9_OMNfve.js.map → ChartWrapper-BmWphXJq.js.map} +1 -1
- package/dist/{DisplayFileInDashboardComponent-DAGf93p1.js → DisplayFileInDashboardComponent-CFPiEmbZ.js} +26 -26
- package/dist/{DisplayFileInDashboardComponent-DAGf93p1.js.map → DisplayFileInDashboardComponent-CFPiEmbZ.js.map} +1 -1
- package/dist/{ExternalApps-CDgcn-xT.js → ExternalApps-Byi2sWD-.js} +2 -2
- package/dist/{ExternalApps-CDgcn-xT.js.map → ExternalApps-Byi2sWD-.js.map} +1 -1
- package/dist/{FavoriteList-_o1b_3M6.js → FavoriteList-Dpp_6gdp.js} +2 -2
- package/dist/{FavoriteList-_o1b_3M6.js.map → FavoriteList-Dpp_6gdp.js.map} +1 -1
- package/dist/{MarkdownComponent-HDsmEstP.js → MarkdownComponent-B-EWpfO_.js} +2 -2
- package/dist/{MarkdownComponent-HDsmEstP.js.map → MarkdownComponent-B-EWpfO_.js.map} +1 -1
- package/dist/{SearchInput-BRyM-u9n.js → SearchInput-BwBvj649.js} +2 -2
- package/dist/{SearchInput-BRyM-u9n.js.map → SearchInput-BwBvj649.js.map} +1 -1
- package/dist/{UnknownBlockType-DHYCEVc8.js → UnknownBlockType-CXh2evhi.js} +2 -2
- package/dist/{UnknownBlockType-DHYCEVc8.js.map → UnknownBlockType-CXh2evhi.js.map} +1 -1
- package/dist/{index-DjfgA8_z.js → index-XzeBXF5E.js} +4460 -4340
- package/dist/index-XzeBXF5E.js.map +1 -0
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +74 -73
- package/dist/pristy-libvue.umd.js +24 -24
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/AlfrescoApi.d.ts +2 -1
- package/dist/src/AlfrescoApi.d.ts.map +1 -1
- package/dist/src/services/PdfConfigService.d.ts +32 -0
- package/dist/src/services/PdfConfigService.d.ts.map +1 -0
- package/dist/src/stores/config.d.ts +3 -0
- package/dist/src/stores/config.d.ts.map +1 -1
- package/dist/src/stores/favorites.d.ts +25 -0
- package/dist/src/stores/favorites.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-DjfgA8_z.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlfrescoApi, ContentApi, UploadApi, RenditionsApi, NodesApi, SitesApi, SearchApi, PeopleApi, FavoritesApi, TrashcanApi, GroupsApi, SharedlinksApi, VersionsApi, ActionsApi, CategoriesApi, CommentsApi, DownloadsApi, TagsApi, AspectsApi, TypesApi, WebscriptApi, ActivitiesApi, DiscoveryApi, AuthenticationApi } from '@alfresco/js-api';
|
|
1
|
+
import { AlfrescoApi, ContentApi, UploadApi, RenditionsApi, NodesApi, SitesApi, SearchApi, PeopleApi, PreferencesApi, FavoritesApi, TrashcanApi, GroupsApi, SharedlinksApi, VersionsApi, ActionsApi, CategoriesApi, CommentsApi, DownloadsApi, TagsApi, AspectsApi, TypesApi, WebscriptApi, ActivitiesApi, DiscoveryApi, AuthenticationApi } from '@alfresco/js-api';
|
|
2
2
|
export const alfrescoApi: AlfrescoApi;
|
|
3
3
|
export const contentApi: ContentApi;
|
|
4
4
|
export const uploadApi: UploadApi;
|
|
@@ -7,6 +7,7 @@ export const nodesApi: NodesApi;
|
|
|
7
7
|
export const sitesApi: SitesApi;
|
|
8
8
|
export const searchApi: SearchApi;
|
|
9
9
|
export const peopleApi: PeopleApi;
|
|
10
|
+
export const preferencesApi: PreferencesApi;
|
|
10
11
|
export const favoritesApi: FavoritesApi;
|
|
11
12
|
export const trashcanApi: TrashcanApi;
|
|
12
13
|
export const groupsApi: GroupsApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlfrescoApi.d.ts","sourceRoot":"","sources":["../../src/AlfrescoApi.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AlfrescoApi.d.ts","sourceRoot":"","sources":["../../src/AlfrescoApi.js"],"names":[],"mappings":"AA4CA,sCAA6C;AAE7C,oCAAsD;AAEtD,kCAAoD;AAEpD,0CAA4D;AAE5D,gCAAkD;AAElD,gCAAkD;AAElD,kCAAoD;AAEpD,kCAAoD;AAEpD,4CAA8D;AAE9D,wCAA0D;AAE1D,sCAAwD;AAExD,kCAAoD;AAEpD,4CAA8D;AAE9D,sCAAwD;AAExD,oCAAsD;AAEtD,0CAA4D;AAE5D,sCAAwD;AAExD,wCAA0D;AAE1D,8BAAgD;AAEhD,oCAAsD;AAEtD,gCAAkD;AAElD,wCAA0D;AAE1D,0CAA4D;AAE5D,wCAA0D;AAE1D,kDAAoE;4BAlD7D,kBAAkB;2BAAlB,kBAAkB;0BAAlB,kBAAkB;8BAAlB,kBAAkB;yBAAlB,kBAAkB;yBAAlB,kBAAkB;0BAAlB,kBAAkB;0BAAlB,kBAAkB;+BAAlB,kBAAkB;6BAAlB,kBAAkB;4BAAlB,kBAAkB;0BAAlB,kBAAkB;+BAAlB,kBAAkB;4BAAlB,kBAAkB;2BAAlB,kBAAkB;8BAAlB,kBAAkB;4BAAlB,kBAAkB;6BAAlB,kBAAkB;wBAAlB,kBAAkB;2BAAlB,kBAAkB;yBAAlB,kBAAkB;6BAAlB,kBAAkB;8BAAlB,kBAAkB;6BAAlB,kBAAkB;kCAAlB,kBAAkB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Build the parameters passed to pdf.js getDocument (via usePDF).
|
|
4
|
+
*
|
|
5
|
+
* Since pdf.js 5.x, JPEG2000 (and JBIG2 / ICC color) images are decoded by
|
|
6
|
+
* WASM modules (openjpeg.wasm, qcms_bg.wasm) that pdf.js fetches at runtime
|
|
7
|
+
* from `wasmUrl`. When wasmUrl is left undefined it defaults to null, so the
|
|
8
|
+
* worker tries to fetch "nullopenjpeg.wasm", fails, and JPEG2000 images are
|
|
9
|
+
* not rendered (the rest of the page still renders). We therefore point
|
|
10
|
+
* wasmUrl at "<BASE_URL>pdfjs/wasm/", where vite-plugin-static-copy serves the
|
|
11
|
+
* pdfjs-dist/wasm/* files in the consuming app.
|
|
12
|
+
*
|
|
13
|
+
* BASE_URL is the consuming app's Vite base (e.g. "/media/"). It is read from
|
|
14
|
+
* the ConfigStore at runtime because this library is consumed as a pre-built
|
|
15
|
+
* bundle, so import.meta.env.BASE_URL would be frozen to the library's own
|
|
16
|
+
* base instead of the app's.
|
|
17
|
+
*
|
|
18
|
+
* @param {string|object} src - A PDF URL or a DocumentInitParameters object.
|
|
19
|
+
* @returns {object} DocumentInitParameters including wasmUrl.
|
|
20
|
+
*/
|
|
21
|
+
export function buildPdfSource(src: string | object): object;
|
|
22
|
+
/**
|
|
23
|
+
* Reactive variant of buildPdfSource for callsites that pass a ref to usePDF
|
|
24
|
+
* (so pdf.js reloads when the URL changes). Returns a computed that yields the
|
|
25
|
+
* enriched parameters when the source has a value, or null otherwise so that
|
|
26
|
+
* usePDF skips loading.
|
|
27
|
+
*
|
|
28
|
+
* @param {import('vue').Ref<string|object|null>} srcRef - Reactive PDF source.
|
|
29
|
+
* @returns {import('vue').ComputedRef<object|null>}
|
|
30
|
+
*/
|
|
31
|
+
export function buildPdfSourceRef(srcRef: Ref<string | object | null>): ComputedRef<object | null>;
|
|
32
|
+
//# sourceMappingURL=PdfConfigService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfConfigService.d.ts","sourceRoot":"","sources":["../../../src/services/PdfConfigService.js"],"names":[],"mappings":";AAmBA;;;;;;;;;;;;;;;;;;GAkBG;AACH,oCAHW,MAAM,GAAC,MAAM,GACX,MAAM,CAQlB;AAED;;;;;;;;GAQG;AACH,0CAHW,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,GAAC,MAAM,GAAC,IAAI,CAAC,GACnC,OAAO,KAAK,EAAE,WAAW,CAAC,MAAM,GAAC,IAAI,CAAC,CAOlD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StoreDefinition, PiniaCustomStateProperties } from 'pinia';
|
|
2
2
|
export const useConfigStore: StoreDefinition<"ConfigStore", {
|
|
3
3
|
INSTANCE_NAME: string;
|
|
4
|
+
BASE_URL: string;
|
|
4
5
|
APP_ROOT_TITLE: string;
|
|
5
6
|
ALFRESCO_HOST: string;
|
|
6
7
|
ESPACES_HOST: string;
|
|
@@ -97,6 +98,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
|
|
|
97
98
|
}, {
|
|
98
99
|
oidc: (state: {
|
|
99
100
|
INSTANCE_NAME: string;
|
|
101
|
+
BASE_URL: string;
|
|
100
102
|
APP_ROOT_TITLE: string;
|
|
101
103
|
ALFRESCO_HOST: string;
|
|
102
104
|
ESPACES_HOST: string;
|
|
@@ -192,6 +194,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
|
|
|
192
194
|
LIST_PROCEDURES: any[];
|
|
193
195
|
} & PiniaCustomStateProperties<{
|
|
194
196
|
INSTANCE_NAME: string;
|
|
197
|
+
BASE_URL: string;
|
|
195
198
|
APP_ROOT_TITLE: string;
|
|
196
199
|
ALFRESCO_HOST: string;
|
|
197
200
|
ESPACES_HOST: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8LI;;OAEG;;IAkBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GAiC1B"}
|
|
@@ -3,33 +3,47 @@ export const useFavoritesStore: StoreDefinition<"FavoritesStore", {
|
|
|
3
3
|
favorites: any[];
|
|
4
4
|
loaded: boolean;
|
|
5
5
|
loading: boolean;
|
|
6
|
+
loadError: boolean;
|
|
7
|
+
repairableGuid: any;
|
|
6
8
|
}, {
|
|
7
9
|
siteFavorites: (state: {
|
|
8
10
|
favorites: any[];
|
|
9
11
|
loaded: boolean;
|
|
10
12
|
loading: boolean;
|
|
13
|
+
loadError: boolean;
|
|
14
|
+
repairableGuid: any;
|
|
11
15
|
} & PiniaCustomStateProperties<{
|
|
12
16
|
favorites: any[];
|
|
13
17
|
loaded: boolean;
|
|
14
18
|
loading: boolean;
|
|
19
|
+
loadError: boolean;
|
|
20
|
+
repairableGuid: any;
|
|
15
21
|
}>) => any[];
|
|
16
22
|
fileFavorites: (state: {
|
|
17
23
|
favorites: any[];
|
|
18
24
|
loaded: boolean;
|
|
19
25
|
loading: boolean;
|
|
26
|
+
loadError: boolean;
|
|
27
|
+
repairableGuid: any;
|
|
20
28
|
} & PiniaCustomStateProperties<{
|
|
21
29
|
favorites: any[];
|
|
22
30
|
loaded: boolean;
|
|
23
31
|
loading: boolean;
|
|
32
|
+
loadError: boolean;
|
|
33
|
+
repairableGuid: any;
|
|
24
34
|
}>) => any[];
|
|
25
35
|
folderFavorites: (state: {
|
|
26
36
|
favorites: any[];
|
|
27
37
|
loaded: boolean;
|
|
28
38
|
loading: boolean;
|
|
39
|
+
loadError: boolean;
|
|
40
|
+
repairableGuid: any;
|
|
29
41
|
} & PiniaCustomStateProperties<{
|
|
30
42
|
favorites: any[];
|
|
31
43
|
loaded: boolean;
|
|
32
44
|
loading: boolean;
|
|
45
|
+
loadError: boolean;
|
|
46
|
+
repairableGuid: any;
|
|
33
47
|
}>) => any[];
|
|
34
48
|
}, {
|
|
35
49
|
/**
|
|
@@ -39,6 +53,17 @@ export const useFavoritesStore: StoreDefinition<"FavoritesStore", {
|
|
|
39
53
|
* @returns {Promise<Array>} The favorites array
|
|
40
54
|
*/
|
|
41
55
|
loadFavorites(force?: boolean): Promise<any[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Remove favorites whose target node no longer resolves (e.g. deleted),
|
|
58
|
+
* which otherwise make the all-or-nothing list endpoint return 400.
|
|
59
|
+
*
|
|
60
|
+
* The endpoint stops at the first bad favorite, so orphans are discovered
|
|
61
|
+
* one at a time: delete the known one, reload, and repeat while a new
|
|
62
|
+
* repairable guid surfaces. Bounded by MAX_REPAIR_ITERATIONS.
|
|
63
|
+
*
|
|
64
|
+
* @returns {Promise<number>} The number of orphan favorites removed
|
|
65
|
+
*/
|
|
66
|
+
repairOrphanFavorites(): Promise<number>;
|
|
42
67
|
/**
|
|
43
68
|
* Add a favorite entry to the local cache after a successful API create.
|
|
44
69
|
* @param {Object} entry - The favorite entry returned by the API
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../../src/stores/favorites.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../../src/stores/favorites.js"],"names":[],"mappings":";AAmGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;;;;;OAKG;0BAFQ,OAAO,GACL,OAAO,OAAO;IA8E3B;;;;;;;;;OASG;6BADU,OAAO,CAAC,MAAM,CAAC;IAqC5B;;;OAGG;;IAKH;;;OAGG;wCADQ,MAAM;IAQjB;;OAEG;;GAUJ"}
|