@pristy/pristy-libvue 3.3.2 → 3.4.1
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/README.md +2 -0
- package/dist/{ActivityHistory-mPCJixsu.js → ActivityHistory-9hWDtWvp.js} +2 -2
- package/dist/{ActivityHistory-mPCJixsu.js.map → ActivityHistory-9hWDtWvp.js.map} +1 -1
- package/dist/{BookmarksComponent-xDUbiTVV.js → BookmarksComponent-D9kAS8IY.js} +2 -2
- package/dist/{BookmarksComponent-xDUbiTVV.js.map → BookmarksComponent-D9kAS8IY.js.map} +1 -1
- package/dist/{ChartWrapper-BSZ2RaKH.js → ChartWrapper-DshurUsP.js} +2 -2
- package/dist/{ChartWrapper-BSZ2RaKH.js.map → ChartWrapper-DshurUsP.js.map} +1 -1
- package/dist/{DisplayFileInDashboardComponent-CqHoGf2Q.js → DisplayFileInDashboardComponent-Bjwm06hm.js} +3 -3
- package/dist/{DisplayFileInDashboardComponent-CqHoGf2Q.js.map → DisplayFileInDashboardComponent-Bjwm06hm.js.map} +1 -1
- package/dist/{ExternalApps-BK_066QL.js → ExternalApps-rA-RF22d.js} +2 -2
- package/dist/{ExternalApps-BK_066QL.js.map → ExternalApps-rA-RF22d.js.map} +1 -1
- package/dist/{FavoriteList-JUAJUJr4.js → FavoriteList-DSjAVtm5.js} +2 -2
- package/dist/{FavoriteList-JUAJUJr4.js.map → FavoriteList-DSjAVtm5.js.map} +1 -1
- package/dist/{MarkdownComponent-D_fqYWV_.js → MarkdownComponent-B-4hruiO.js} +2 -2
- package/dist/{MarkdownComponent-D_fqYWV_.js.map → MarkdownComponent-B-4hruiO.js.map} +1 -1
- package/dist/{PDFComponent-B4yA2RzZ.js → PDFComponent-JWWuw0-r.js} +3 -3
- package/dist/{PDFComponent-B4yA2RzZ.js.map → PDFComponent-JWWuw0-r.js.map} +1 -1
- package/dist/{PdfConfigService-Dv6LG1qD.js → PdfConfigService-B8ICPhuV.js} +2 -2
- package/dist/{PdfConfigService-Dv6LG1qD.js.map → PdfConfigService-B8ICPhuV.js.map} +1 -1
- package/dist/{PdfToolsComponent-CDWy61FX.js → PdfToolsComponent-L7RPTvsf.js} +3 -3
- package/dist/{PdfToolsComponent-CDWy61FX.js.map → PdfToolsComponent-L7RPTvsf.js.map} +1 -1
- package/dist/{PlanTreePdfService-DA5BC0I2.js → PlanTreePdfService-lAxfSl8a.js} +2 -2
- package/dist/{PlanTreePdfService-DA5BC0I2.js.map → PlanTreePdfService-lAxfSl8a.js.map} +1 -1
- package/dist/{SearchInput-D-ECPIYd.js → SearchInput-BOPfGO3Q.js} +2 -2
- package/dist/{SearchInput-D-ECPIYd.js.map → SearchInput-BOPfGO3Q.js.map} +1 -1
- package/dist/{UnknownBlockType-C5JDcmf_.js → UnknownBlockType-DsX1IaRB.js} +2 -2
- package/dist/{UnknownBlockType-C5JDcmf_.js.map → UnknownBlockType-DsX1IaRB.js.map} +1 -1
- package/dist/components/UploadStatus.vue.d.ts +4 -0
- package/dist/components/UploadStatus.vue.d.ts.map +1 -1
- package/dist/components/classification/AdminClassificationPage.vue.d.ts +2 -2
- package/dist/components/classification/FieldForm.vue.d.ts +1 -1
- package/dist/components/classification/PlanAiContextPanel.vue.d.ts +1 -1
- package/dist/components/navigation/ColumnTogglePanel.vue.d.ts +9 -0
- package/dist/components/navigation/ColumnTogglePanel.vue.d.ts.map +1 -1
- package/dist/components/navigation/ContentCompactTableView.vue.d.ts +6 -0
- package/dist/components/navigation/ContentCompactTableView.vue.d.ts.map +1 -1
- package/dist/components/navigation/ContentTableView.vue.d.ts +6 -0
- package/dist/components/navigation/ContentTableView.vue.d.ts.map +1 -1
- package/dist/components/navigation/DynamicContentView.vue.d.ts +11 -1
- package/dist/components/navigation/DynamicContentView.vue.d.ts.map +1 -1
- package/dist/components/popup/ProcessingRequestPopup.vue.d.ts +56 -0
- package/dist/components/popup/ProcessingRequestPopup.vue.d.ts.map +1 -0
- package/dist/components/processing/ProcessingParamsForm.vue.d.ts +55 -0
- package/dist/components/processing/ProcessingParamsForm.vue.d.ts.map +1 -0
- package/dist/components/processing/ProcessingStatusTag.vue.d.ts +36 -0
- package/dist/components/processing/ProcessingStatusTag.vue.d.ts.map +1 -0
- package/dist/components/processing/ProcessingTaskList.vue.d.ts +116 -0
- package/dist/components/processing/ProcessingTaskList.vue.d.ts.map +1 -0
- package/dist/{dracula-BbtD8yvj.js → dracula-9PbzuloK.js} +2 -2
- package/dist/{dracula-BbtD8yvj.js.map → dracula-9PbzuloK.js.map} +1 -1
- package/dist/{github-eAHreirM.js → github-DhUXHHwg.js} +2 -2
- package/dist/{github-eAHreirM.js.map → github-DhUXHHwg.js.map} +1 -1
- package/dist/i18n/index.d.ts +144 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/{index-Cx1jO8jm.js → index-CBbKYoKH.js} +13694 -12645
- package/dist/index-CBbKYoKH.js.map +1 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/{nord-DSvqR8Ul.js → nord-RHaux6Ss.js} +2 -2
- package/dist/{nord-DSvqR8Ul.js.map → nord-RHaux6Ss.js.map} +1 -1
- package/dist/{one-BnndR5mM.js → one-DVOpzSu-.js} +2 -2
- package/dist/{one-BnndR5mM.js.map → one-DVOpzSu-.js.map} +1 -1
- package/dist/pages/LoginPage.vue.d.ts +20 -18
- package/dist/pages/LoginPage.vue.d.ts.map +1 -1
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +296 -269
- package/dist/pristy-libvue.umd.js +36 -36
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/services/DateFormatPreferenceService.d.ts +41 -0
- package/dist/services/DateFormatPreferenceService.d.ts.map +1 -0
- package/dist/services/ModelTitleService.d.ts +15 -0
- package/dist/services/ModelTitleService.d.ts.map +1 -0
- package/dist/services/ProcessingParamsService.d.ts +53 -0
- package/dist/services/ProcessingParamsService.d.ts.map +1 -0
- package/dist/services/ProcessingTaskService.d.ts +114 -0
- package/dist/services/ProcessingTaskService.d.ts.map +1 -0
- package/dist/services/ZipDownloadService.d.ts +18 -3
- package/dist/services/ZipDownloadService.d.ts.map +1 -1
- package/dist/{solarized-BdT-Wbvz.js → solarized-BOpdGncH.js} +2 -2
- package/dist/{solarized-BdT-Wbvz.js.map → solarized-BOpdGncH.js.map} +1 -1
- package/dist/stores/export.d.ts +20 -1
- package/dist/stores/export.d.ts.map +1 -1
- package/dist/utils/localizedText.d.ts +12 -0
- package/dist/utils/localizedText.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/index-Cx1jO8jm.js.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The identifier of the date format chosen by the user, a key of
|
|
3
|
+
* `DATE_FORMATS`. Reactive: a render reading it updates when it changes.
|
|
4
|
+
*
|
|
5
|
+
* @returns {string}
|
|
6
|
+
*/
|
|
7
|
+
export function getDateFormat(): string;
|
|
8
|
+
/**
|
|
9
|
+
* Chooses the date format and saves it in the browser. An unknown
|
|
10
|
+
* identifier is ignored.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} format - A key of `DATE_FORMATS`
|
|
13
|
+
*/
|
|
14
|
+
export function setDateFormat(format: string): void;
|
|
15
|
+
/**
|
|
16
|
+
* Formats a date in the local time zone with the format chosen by the user.
|
|
17
|
+
*
|
|
18
|
+
* @param {string|number|Date} value
|
|
19
|
+
* @param {string} [format] - A key of `DATE_FORMATS`, the user's choice by default
|
|
20
|
+
* @returns {string} An empty string for a missing or invalid date
|
|
21
|
+
*/
|
|
22
|
+
export function formatPreferredDate(value: string | number | Date, format?: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* The `localStorage` key holding the date format chosen by the user.
|
|
25
|
+
*/
|
|
26
|
+
export const DATE_FORMAT_STORAGE_KEY: "dateFormat";
|
|
27
|
+
/**
|
|
28
|
+
* Date formats offered in the column settings, by identifier, as
|
|
29
|
+
* `@vueuse/core` `formatDate` patterns.
|
|
30
|
+
*/
|
|
31
|
+
export const DATE_FORMATS: {
|
|
32
|
+
dmy: string;
|
|
33
|
+
"dmy-time": string;
|
|
34
|
+
ymd: string;
|
|
35
|
+
"ymd-time": string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The date format used until the user chooses one.
|
|
39
|
+
*/
|
|
40
|
+
export const DEFAULT_DATE_FORMAT: "dmy";
|
|
41
|
+
//# sourceMappingURL=DateFormatPreferenceService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateFormatPreferenceService.d.ts","sourceRoot":"","sources":["../../src/services/DateFormatPreferenceService.js"],"names":[],"mappings":"AAmDA;;;;;GAKG;AACH,iCAFa,MAAM,CAIlB;AAED;;;;;GAKG;AACH,sCAFW,MAAM,QAYhB;AAED;;;;;;GAMG;AACH,2CAJW,MAAM,GAAC,MAAM,GAAC,IAAI,WAClB,MAAM,GACJ,MAAM,CAWlB;AA5ED;;GAEG;AACH,sCAAuC,YAAY,CAAC;AAEpD;;;GAGG;AACH;;;;;EAKE;AAEF;;GAEG;AACH,kCAAmC,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Title of an aspect or a type as declared in its Alfresco content model.
|
|
3
|
+
* The first call starts the lookup and returns null; the title is cached and
|
|
4
|
+
* reactive, so a render reading it updates once the answer arrives.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} qname prefixed name, e.g. "pm:pdc"
|
|
7
|
+
* @param {"aspect"|"type"} [kind] which dictionary to read
|
|
8
|
+
* @returns {string|null} the title, null while unknown or when the model has none
|
|
9
|
+
*/
|
|
10
|
+
export function modelTitle(qname: string, kind?: "aspect" | "type"): string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Forget every cached title.
|
|
13
|
+
*/
|
|
14
|
+
export function clearModelTitles(): void;
|
|
15
|
+
//# sourceMappingURL=ModelTitleService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelTitleService.d.ts","sourceRoot":"","sources":["../../src/services/ModelTitleService.js"],"names":[],"mappings":"AAsCA;;;;;;;;GAQG;AACH,kCAJW,MAAM,SACN,QAAQ,GAAC,MAAM,GACb,MAAM,GAAC,IAAI,CAYvB;AAED;;GAEG;AACH,yCAEC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {?Object} schema a descriptor `paramsSchema`
|
|
3
|
+
* @param {?string} locale the current locale
|
|
4
|
+
* @returns {Array<{name: string, kind: string, integer: boolean, label: string, help: ?string, required: boolean, options: Array, minimum: ?number, maximum: ?number, pattern: ?string, default: *}>}
|
|
5
|
+
* one field per top-level property of a known kind, in schema order
|
|
6
|
+
*/
|
|
7
|
+
export function processingParamFields(schema: any | null, locale: string | null): Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
kind: string;
|
|
10
|
+
integer: boolean;
|
|
11
|
+
label: string;
|
|
12
|
+
help: string | null;
|
|
13
|
+
required: boolean;
|
|
14
|
+
options: any[];
|
|
15
|
+
minimum: number | null;
|
|
16
|
+
maximum: number | null;
|
|
17
|
+
pattern: string | null;
|
|
18
|
+
default: any;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* @param {Object} field a field of {@link processingParamFields}
|
|
22
|
+
* @returns {*} the value the form starts with: the boolean default, else null
|
|
23
|
+
*/
|
|
24
|
+
export function initialProcessingParamValue(field: any): any;
|
|
25
|
+
/**
|
|
26
|
+
* @param {Object} field a field of {@link processingParamFields}
|
|
27
|
+
* @param {*} value the value entered
|
|
28
|
+
* @returns {?string} a {@link PROCESSING_PARAM_ERROR} value, null when accepted
|
|
29
|
+
*/
|
|
30
|
+
export function checkProcessingParam(field: any, value: any): string | null;
|
|
31
|
+
/**
|
|
32
|
+
* @param {Array<Object>} fields the fields of {@link processingParamFields}
|
|
33
|
+
* @param {Object} values the entered values by field name
|
|
34
|
+
* @returns {Object} the filled fields only, strings trimmed, so that the
|
|
35
|
+
* worker defaults apply to the others
|
|
36
|
+
*/
|
|
37
|
+
export function collectProcessingParams(fields: Array<any>, values: any): any;
|
|
38
|
+
export namespace PROCESSING_PARAM_KIND {
|
|
39
|
+
let BOOLEAN: string;
|
|
40
|
+
let ENUM: string;
|
|
41
|
+
let NUMBER: string;
|
|
42
|
+
let STRING: string;
|
|
43
|
+
}
|
|
44
|
+
export namespace PROCESSING_PARAM_ERROR {
|
|
45
|
+
export let REQUIRED: string;
|
|
46
|
+
let ENUM_1: string;
|
|
47
|
+
export { ENUM_1 as ENUM };
|
|
48
|
+
export let INTEGER: string;
|
|
49
|
+
export let MINIMUM: string;
|
|
50
|
+
export let MAXIMUM: string;
|
|
51
|
+
export let PATTERN: string;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=ProcessingParamsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessingParamsService.d.ts","sourceRoot":"","sources":["../../src/services/ProcessingParamsService.js"],"names":[],"mappings":"AAoEA;;;;;GAKG;AACH,8CALW,UAAO,UACN,MAAM,OAAA,GACL,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAG,MAAM,OAAA,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,QAAQ;IAAC,OAAO,EAAG,MAAM,OAAA,CAAC;IAAC,OAAO,EAAG,MAAM,OAAA,CAAC;IAAC,OAAO,EAAG,MAAM,OAAA,CAAC;IAAC,OAAO,EAAE,GAAC,CAAA;CAAC,CAAC,CAwCpM;AAED;;;GAGG;AACH,yDAFa,GAAC,CAMb;AAuBD;;;;GAIG;AACH,wDAHW,GAAC,GACE,MAAM,OAAA,CA6BnB;AAED;;;;;GAKG;AACH,gDALW,KAAK,KAAQ,oBAcvB"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {*} error a rejection of `webscriptApi.executeWebScript`, or a ProcessingError
|
|
3
|
+
* @returns {ProcessingError} the error with its HTTP status and the API message
|
|
4
|
+
*/
|
|
5
|
+
export function processingError(error: any): ProcessingError;
|
|
6
|
+
/**
|
|
7
|
+
* @param {*} error a rejection of this service
|
|
8
|
+
* @param {function(string, Object=): string} t the caller's translation function
|
|
9
|
+
* @returns {string} the toast text: the API message for a 400, a dedicated
|
|
10
|
+
* message for 403, 404 and 409, a generic one otherwise
|
|
11
|
+
*/
|
|
12
|
+
export function processingErrorMessage(error: any, t: (arg0: string, arg1: any | undefined) => string): string;
|
|
13
|
+
/**
|
|
14
|
+
* @param {{task: string, title: ?Object}} item a task of the list or its details
|
|
15
|
+
* @param {?string} locale
|
|
16
|
+
* @returns {string} the localized processing title, or the processing name
|
|
17
|
+
* when the descriptor is unknown or has no title
|
|
18
|
+
*/
|
|
19
|
+
export function processingTitle(item: {
|
|
20
|
+
task: string;
|
|
21
|
+
title: any | null;
|
|
22
|
+
}, locale: string | null): string;
|
|
23
|
+
/**
|
|
24
|
+
* Statuses of a processing task, in lifecycle order.
|
|
25
|
+
*/
|
|
26
|
+
export const PROCESSING_STATUSES: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Statuses after which a task no longer changes and can be retried.
|
|
29
|
+
*/
|
|
30
|
+
export const FINAL_PROCESSING_STATUSES: string[];
|
|
31
|
+
/**
|
|
32
|
+
* The largest page `GET /pristy/tasks` serves.
|
|
33
|
+
*/
|
|
34
|
+
export const MAX_PROCESSING_PAGE_SIZE: 100;
|
|
35
|
+
/**
|
|
36
|
+
* The largest `skip` `GET /pristy/tasks` accepts; a larger one answers 400.
|
|
37
|
+
*/
|
|
38
|
+
export const MAX_PROCESSING_SKIP: 10000;
|
|
39
|
+
/**
|
|
40
|
+
* A refused or failed call to the processing API.
|
|
41
|
+
*/
|
|
42
|
+
export class ProcessingError extends Error {
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} message
|
|
45
|
+
* @param {?number} status the HTTP status, null for a network failure
|
|
46
|
+
* @param {?string} serverMessage the `error` text of the API answer
|
|
47
|
+
* @param {*} cause the original rejection
|
|
48
|
+
*/
|
|
49
|
+
constructor(message: string, status: number | null, serverMessage: string | null, cause: any);
|
|
50
|
+
status: number;
|
|
51
|
+
serverMessage: string;
|
|
52
|
+
cause: any;
|
|
53
|
+
}
|
|
54
|
+
declare const _default: ProcessingTaskService;
|
|
55
|
+
export default _default;
|
|
56
|
+
/**
|
|
57
|
+
* Requests and follows processing tasks through the Pristy Kafka REST API.
|
|
58
|
+
* Every method rejects with a {@link ProcessingError}. See `docs/Processings.md`.
|
|
59
|
+
*/
|
|
60
|
+
declare class ProcessingTaskService {
|
|
61
|
+
/**
|
|
62
|
+
* @param {string} [nodeId] keeps the processings the user can request on this document
|
|
63
|
+
* @returns {Promise<Array<{name: string, version: number, title: Object, description: Object, output: string, timeout: string, paramsSchema: ?Object}>>}
|
|
64
|
+
*/
|
|
65
|
+
listTypes(nodeId?: string): Promise<Array<{
|
|
66
|
+
name: string;
|
|
67
|
+
version: number;
|
|
68
|
+
title: any;
|
|
69
|
+
description: any;
|
|
70
|
+
output: string;
|
|
71
|
+
timeout: string;
|
|
72
|
+
paramsSchema: any | null;
|
|
73
|
+
}>>;
|
|
74
|
+
/**
|
|
75
|
+
* @param {string} task the processing name
|
|
76
|
+
* @param {string} nodeId the target document
|
|
77
|
+
* @param {Object} [params] the parameters; the worker defaults apply to the missing ones
|
|
78
|
+
* @returns {Promise<{taskId: string}>}
|
|
79
|
+
*/
|
|
80
|
+
request(task: string, nodeId: string, params?: any): Promise<{
|
|
81
|
+
taskId: string;
|
|
82
|
+
}>;
|
|
83
|
+
/**
|
|
84
|
+
* @param {{status?: string, task?: string, requestedBy?: string, nodeId?: string, skip?: number, max?: number}} [query]
|
|
85
|
+
* empty criteria are left out
|
|
86
|
+
* @returns {Promise<{items: Array<Object>, skip: number, max: ?number, hasMore: boolean}>}
|
|
87
|
+
*/
|
|
88
|
+
list(query?: {
|
|
89
|
+
status?: string;
|
|
90
|
+
task?: string;
|
|
91
|
+
requestedBy?: string;
|
|
92
|
+
nodeId?: string;
|
|
93
|
+
skip?: number;
|
|
94
|
+
max?: number;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
items: Array<any>;
|
|
97
|
+
skip: number;
|
|
98
|
+
max: number | null;
|
|
99
|
+
hasMore: boolean;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* @param {string} taskId
|
|
103
|
+
* @returns {Promise<Object>} the task details, `title`, `targetName` and `output` included
|
|
104
|
+
*/
|
|
105
|
+
get(taskId: string): Promise<any>;
|
|
106
|
+
/**
|
|
107
|
+
* @param {string} taskId a task in a final status
|
|
108
|
+
* @returns {Promise<{taskId: string}>} the new task
|
|
109
|
+
*/
|
|
110
|
+
retry(taskId: string): Promise<{
|
|
111
|
+
taskId: string;
|
|
112
|
+
}>;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=ProcessingTaskService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessingTaskService.d.ts","sourceRoot":"","sources":["../../src/services/ProcessingTaskService.js"],"names":[],"mappings":"AA0FA;;;GAGG;AACH,uCAHW,GAAC,GACC,eAAe,CAmB3B;AAED;;;;;GAKG;AACH,8CALW,GAAC,KACD,CAAS,IAAM,EAAN,MAAM,EAAE,IAAO,EAAP,eAAO,KAAG,MAAM,GAC/B,MAAM,CAYlB;AAED;;;;;GAKG;AACH,sCALW;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,UAAO,CAAA;CAAC,UAC7B,MAAM,OAAA,GACL,MAAM,CAKlB;AA9GD;;GAEG;AACH,2CAME;AAEF;;GAEG;AACH,iDAA4E;AAE5E;;GAEG;AACH,uCAAwC,GAAG,CAAC;AAE5C;;GAEG;AACH,kCAAmC,KAAK,CAAC;AAEzC;;GAEG;AACH;IACE;;;;;OAKG;IACH,qBALW,MAAM,UACL,MAAM,OAAA,iBACN,MAAM,OAAA,SACP,GAAC,EAQX;IAHC,eAAoB;IACpB,sBAAkC;IAClC,WAAkB;CAErB;;;AA+GD;;;GAGG;AACH;IACE;;;OAGG;IACH,mBAHW,MAAM,GACJ,OAAO,CAAC,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,MAAS;QAAC,WAAW,MAAS;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,UAAO,CAAA;KAAC,CAAC,CAAC,CAQvJ;IAED;;;;;OAKG;IACH,cALW,MAAM,UACN,MAAM,iBAEJ,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,CAAC,CAIrC;IAED;;;;OAIG;IACH,aAJW;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAC,GAElG,OAAO,CAAC;QAAC,KAAK,EAAE,KAAK,KAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAG,MAAM,OAAA,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,CAAC,CAWzF;IAED;;;OAGG;IACH,YAHW,MAAM,GACJ,OAAO,KAAQ,CAI3B;IAED;;;OAGG;IACH,cAHW,MAAM,GACJ,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAC,CAAC,CAIrC;CACF"}
|
|
@@ -34,16 +34,31 @@ export function waitForZip(downloadId: string, options?: {
|
|
|
34
34
|
sleep?: Function;
|
|
35
35
|
}): Promise<any>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
* @param {string} nodeId
|
|
38
|
+
* @returns {string} the URL of the node content, as an attachment
|
|
39
|
+
*/
|
|
40
|
+
export function nodeContentUrl(nodeId: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* Fetches a built zip, reporting the bytes received. See {@link fetchContent}.
|
|
39
43
|
*
|
|
40
44
|
* @param {string} downloadId
|
|
45
|
+
* @param {Function} [onProgress] called with `{loaded, total}`
|
|
46
|
+
* @returns {Promise<Blob>}
|
|
47
|
+
*/
|
|
48
|
+
export function fetchZip(downloadId: string, onProgress?: Function): Promise<Blob>;
|
|
49
|
+
/**
|
|
50
|
+
* Fetches a repository content, reporting the bytes received: the
|
|
51
|
+
* `@alfresco/js-api` client reports upload progress only. See `docs/Export.md`.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} url a content URL of the repository
|
|
41
54
|
* @param {Function} [onProgress] called with `{loaded, total}`, `total` null
|
|
42
55
|
* when the server sends no `Content-Length`
|
|
56
|
+
* @param {string} [fallbackType] the blob type when the server sends no
|
|
57
|
+
* `Content-Type`
|
|
43
58
|
* @returns {Promise<Blob>} rejects with an Error carrying `reason`
|
|
44
59
|
* {@link ZIP_FAILURE}.FAILED when refused
|
|
45
60
|
*/
|
|
46
|
-
export function
|
|
61
|
+
export function fetchContent(url: string, onProgress?: Function, fallbackType?: string): Promise<Blob>;
|
|
47
62
|
/**
|
|
48
63
|
* Hands a blob to the browser as a file download.
|
|
49
64
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZipDownloadService.d.ts","sourceRoot":"","sources":["../../src/services/ZipDownloadService.js"],"names":[],"mappings":"AA8BA;;;;GAIG;AACH,mCAJW,MAAM,UACN,GAAC,GACC,KAAK,CAIjB;AAED;;;GAGG;AACH,0BAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;AAUD;;;;;;;;;GASG;AACH,uCAPW,MAAM,YACN;IAAC,UAAU,CAAC,WAAW;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAG,MAAM,OAAA,CAAC;IAAC,KAAK,CAAC,WAAU;CAAC,GAGxG,OAAO,KAAQ,CAkD3B;AAED
|
|
1
|
+
{"version":3,"file":"ZipDownloadService.d.ts","sourceRoot":"","sources":["../../src/services/ZipDownloadService.js"],"names":[],"mappings":"AA8BA;;;;GAIG;AACH,mCAJW,MAAM,UACN,GAAC,GACC,KAAK,CAIjB;AAED;;;GAGG;AACH,0BAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;GAKG;AACH,sCAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;AAUD;;;;;;;;;GASG;AACH,uCAPW,MAAM,YACN;IAAC,UAAU,CAAC,WAAW;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAG,MAAM,OAAA,CAAC;IAAC,KAAK,CAAC,WAAU;CAAC,GAGxG,OAAO,KAAQ,CAkD3B;AAED;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,0BAEJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;;;;;;;;GAWG;AACH,kCARW,MAAM,wCAGN,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CA8BzB;AAED;;;;;GAKG;AACH,+BAHW,IAAI,QACJ,MAAM,QAYhB;AAnMD;;;;;;GAMG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as e } from "./index-
|
|
1
|
+
import { q as e } from "./index-CBbKYoKH.js";
|
|
2
2
|
const r = {
|
|
3
3
|
comment: "#93a1a1",
|
|
4
4
|
keyword: "#859900",
|
|
@@ -44,4 +44,4 @@ const r = {
|
|
|
44
44
|
export {
|
|
45
45
|
t as default
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=solarized-
|
|
47
|
+
//# sourceMappingURL=solarized-BOpdGncH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solarized-
|
|
1
|
+
{"version":3,"file":"solarized-BOpdGncH.js","sources":["../src/composables/editorThemes/solarized.js"],"sourcesContent":["/*\n Copyright (C) 2026 - Jeci SARL - https://jeci.fr\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as\n published by the Free Software Foundation, either version 3 of the\n License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/agpl-3.0.html.\n*/\n\nimport { buildEditorTheme } from \"@/composables/editorThemes/buildEditorTheme.js\";\n\nconst accents = {\n comment: \"#93a1a1\",\n keyword: \"#859900\",\n string: \"#2aa198\",\n number: \"#d33682\",\n function: \"#268bd2\",\n type: \"#b58900\",\n property: \"#268bd2\",\n tag: \"#268bd2\",\n attribute: \"#b58900\",\n heading: \"#cb4b16\",\n link: \"#6c71c4\",\n code: \"#2aa198\",\n list: \"#cb4b16\",\n invalid: \"#dc322f\",\n};\n\nexport default {\n light: buildEditorTheme({\n ...accents,\n dark: false,\n background: \"#fdf6e3\",\n foreground: \"#657b83\",\n gutterBackground: \"#eee8d5\",\n gutterForeground: \"#93a1a1\",\n activeLine: \"#eee8d5\",\n selection: \"#e3dcc6\",\n cursor: \"#586e75\",\n variable: \"#657b83\",\n }),\n dark: buildEditorTheme({\n ...accents,\n dark: true,\n comment: \"#586e75\",\n background: \"#002b36\",\n foreground: \"#839496\",\n gutterBackground: \"#073642\",\n gutterForeground: \"#586e75\",\n activeLine: \"#073642\",\n selection: \"#0a4a5c\",\n cursor: \"#93a1a1\",\n variable: \"#839496\",\n }),\n};\n"],"names":["accents","solarized","buildEditorTheme"],"mappings":";AAmBA,MAAMA,IAAU;AAAA,EACd,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,KAAK;AAAA,EACL,WAAW;AAAA,EACX,SAAS;AAAA,EACT,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AACX,GAEAC,IAAe;AAAA,EACb,OAAOC,EAAiB;AAAA,IACtB,GAAGF;AAAA,IACH,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,UAAU;AAAA,EACd,CAAG;AAAA,EACD,MAAME,EAAiB;AAAA,IACrB,GAAGF;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,UAAU;AAAA,EACd,CAAG;AACH;"}
|
package/dist/stores/export.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ export const EXPORT_STATUS: Readonly<{
|
|
|
7
7
|
CANCELLED: "cancelled";
|
|
8
8
|
FAILED: "failed";
|
|
9
9
|
}>;
|
|
10
|
+
export const EXPORT_KIND: Readonly<{
|
|
11
|
+
ZIP: "zip";
|
|
12
|
+
FILE: "file";
|
|
13
|
+
}>;
|
|
10
14
|
export const AUTO_DOWNLOAD_DELAY: 5000;
|
|
11
15
|
export const STALL_TIMEOUT: number;
|
|
12
16
|
/**
|
|
@@ -44,7 +48,22 @@ export const useExportStore: StoreDefinition<"export", {
|
|
|
44
48
|
start(nodeIds: string[], name: string): Promise<any>;
|
|
45
49
|
fail(job: any, error: any): void;
|
|
46
50
|
/**
|
|
47
|
-
* Downloads the
|
|
51
|
+
* Downloads the content of a node, or its rendition, and follows it like
|
|
52
|
+
* an export.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} nodeId
|
|
55
|
+
* @param {string} name the file name offered to the user
|
|
56
|
+
* @param {{rendition?: string}} [options] `rendition` downloads that
|
|
57
|
+
* rendition instead of the content, created first when missing
|
|
58
|
+
* @returns {Promise<Object>} the job once settled
|
|
59
|
+
*/
|
|
60
|
+
downloadNode(nodeId: string, name: string, { rendition }?: {
|
|
61
|
+
rendition?: string;
|
|
62
|
+
}): Promise<any>;
|
|
63
|
+
fetchBlob(job: any, onProgress: any): Promise<Blob>;
|
|
64
|
+
/**
|
|
65
|
+
* Downloads the zip of a job being prepared, ready or already downloaded,
|
|
66
|
+
* or the file of a file job again.
|
|
48
67
|
*
|
|
49
68
|
* @param {number} jobId
|
|
50
69
|
* @returns {Promise<void>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/stores/export.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/stores/export.js"],"names":[],"mappings":";AA6BA;;;;;;;GAOG;AAEH;;;GAGG;AAEH,kCAAmC,IAAI,CAAC;AACxC,mCAA2C;AAe3C;;;;GAIG;AACH;;;;;;;;;;;;;;;;;;;IAWI;;;;;;;OAOG;mBAHQ,MAAM,EAAE,QACR,MAAM,GACJ,OAAO,KAAQ;;IA4D5B;;;;;;;;;OASG;yBALQ,MAAM,QACN,MAAM,kBACN;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAC,GAElB,OAAO,KAAQ;;IAkC5B;;;;;;OAMG;oBAFQ,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC;IA+B1B;;;OAGG;kBAFQ,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC;IAY1B;;OAEG;;;GAqBJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picks the text of a value localized by language, such as a processing
|
|
3
|
+
* descriptor `title` or a parameter `x-title` (`{"fr": "...", "en": "..."}`).
|
|
4
|
+
*
|
|
5
|
+
* @param {*} value an object keyed by language, or a plain string
|
|
6
|
+
* @param {?string} locale the current locale, `fr`, `en` or a regional form such as `fr-FR`
|
|
7
|
+
* @returns {?string} the text of the locale's language, else French, else
|
|
8
|
+
* English, else the first text found; a non-blank string as is; null when
|
|
9
|
+
* the value holds no text
|
|
10
|
+
*/
|
|
11
|
+
export function localizedText(value: any, locale: string | null): string | null;
|
|
12
|
+
//# sourceMappingURL=localizedText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localizedText.d.ts","sourceRoot":"","sources":["../../src/utils/localizedText.js"],"names":[],"mappings":"AAuBA;;;;;;;;;GASG;AACH,qCANW,GAAC,UACA,MAAM,OAAA,GACJ,MAAM,OAAA,CAoBnB"}
|