@pristy/pristy-libvue 2.12.0 → 2.13.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.
Files changed (64) hide show
  1. package/dist/{ActivityHistory-Dod2uLRS.js → ActivityHistory-B2Q_KPgq.js} +2 -2
  2. package/dist/{ActivityHistory-Dod2uLRS.js.map → ActivityHistory-B2Q_KPgq.js.map} +1 -1
  3. package/dist/{BookmarksComponent-BZ75OZuG.js → BookmarksComponent-CH6C610k.js} +2 -2
  4. package/dist/{BookmarksComponent-BZ75OZuG.js.map → BookmarksComponent-CH6C610k.js.map} +1 -1
  5. package/dist/{ChartWrapper-BHzSiaHp.js → ChartWrapper-9_OMNfve.js} +2 -2
  6. package/dist/{ChartWrapper-BHzSiaHp.js.map → ChartWrapper-9_OMNfve.js.map} +1 -1
  7. package/dist/{DisplayFileInDashboardComponent--aI8fcfV.js → DisplayFileInDashboardComponent-DAGf93p1.js} +2 -2
  8. package/dist/{DisplayFileInDashboardComponent--aI8fcfV.js.map → DisplayFileInDashboardComponent-DAGf93p1.js.map} +1 -1
  9. package/dist/{ExternalApps-Dkpo7w49.js → ExternalApps-CDgcn-xT.js} +2 -2
  10. package/dist/{ExternalApps-Dkpo7w49.js.map → ExternalApps-CDgcn-xT.js.map} +1 -1
  11. package/dist/{FavoriteList-CfK5vTWD.js → FavoriteList-_o1b_3M6.js} +2 -2
  12. package/dist/{FavoriteList-CfK5vTWD.js.map → FavoriteList-_o1b_3M6.js.map} +1 -1
  13. package/dist/{MarkdownComponent-Dd3KWcDV.js → MarkdownComponent-HDsmEstP.js} +2 -2
  14. package/dist/{MarkdownComponent-Dd3KWcDV.js.map → MarkdownComponent-HDsmEstP.js.map} +1 -1
  15. package/dist/{SearchInput-DrhF_V64.js → SearchInput-BRyM-u9n.js} +2 -2
  16. package/dist/{SearchInput-DrhF_V64.js.map → SearchInput-BRyM-u9n.js.map} +1 -1
  17. package/dist/{UnknownBlockType-8Mqo_7b4.js → UnknownBlockType-DHYCEVc8.js} +2 -2
  18. package/dist/{UnknownBlockType-8Mqo_7b4.js.map → UnknownBlockType-DHYCEVc8.js.map} +1 -1
  19. package/dist/{index-Dj0iUeS4.js → index-DjfgA8_z.js} +11200 -10788
  20. package/dist/index-DjfgA8_z.js.map +1 -0
  21. package/dist/pristy-libvue.css +1 -1
  22. package/dist/pristy-libvue.es.js +88 -85
  23. package/dist/pristy-libvue.umd.js +24 -24
  24. package/dist/pristy-libvue.umd.js.map +1 -1
  25. package/dist/src/components/classification/MetadataFormFields.vue.d.ts +9 -0
  26. package/dist/src/components/classification/MetadataFormFields.vue.d.ts.map +1 -1
  27. package/dist/src/components/classification/NatureSelector.vue.d.ts +9 -0
  28. package/dist/src/components/classification/NatureSelector.vue.d.ts.map +1 -1
  29. package/dist/src/components/classification/UploadPlanPopup.vue.d.ts.map +1 -1
  30. package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts +14 -0
  31. package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts.map +1 -1
  32. package/dist/src/components/navigation/ContentGridView.vue.d.ts +6 -2
  33. package/dist/src/components/navigation/ContentListView.vue.d.ts +6 -2
  34. package/dist/src/components/navigation/ContentTableView.vue.d.ts +20 -2
  35. package/dist/src/components/navigation/ContentTableView.vue.d.ts.map +1 -1
  36. package/dist/src/components/navigation/DynamicContentView.vue.d.ts +39 -5
  37. package/dist/src/components/navigation/DynamicContentView.vue.d.ts.map +1 -1
  38. package/dist/src/composables/useColumnFilter.d.ts +3 -0
  39. package/dist/src/composables/useColumnFilter.d.ts.map +1 -1
  40. package/dist/src/composables/useGhostNodes.d.ts +2 -2
  41. package/dist/src/composables/useGhostNodes.d.ts.map +1 -1
  42. package/dist/src/i18n/index.d.ts +10 -0
  43. package/dist/src/i18n/index.d.ts.map +1 -1
  44. package/dist/src/index.d.ts +2 -1
  45. package/dist/src/index.d.ts.map +1 -1
  46. package/dist/src/services/AftsQueryBuilder.d.ts.map +1 -1
  47. package/dist/src/services/AlfrescoFileService.d.ts +55 -8
  48. package/dist/src/services/AlfrescoFileService.d.ts.map +1 -1
  49. package/dist/src/services/GhostMatcher.d.ts.map +1 -1
  50. package/dist/src/services/MenuService.d.ts.map +1 -1
  51. package/dist/src/services/PeopleService.d.ts +5 -1
  52. package/dist/src/services/PeopleService.d.ts.map +1 -1
  53. package/dist/src/services/PreviewService.d.ts +36 -0
  54. package/dist/src/services/PreviewService.d.ts.map +1 -0
  55. package/dist/src/services/WorkspaceService.d.ts.map +1 -1
  56. package/dist/src/services/aliasMap.d.ts +20 -0
  57. package/dist/src/services/aliasMap.d.ts.map +1 -0
  58. package/dist/src/stores/config.d.ts +3 -0
  59. package/dist/src/stores/config.d.ts.map +1 -1
  60. package/dist/src/stores/user.d.ts.map +1 -1
  61. package/dist/src/utils/classificationPlanUtils.d.ts +32 -0
  62. package/dist/src/utils/classificationPlanUtils.d.ts.map +1 -1
  63. package/package.json +7 -7
  64. package/dist/index-Dj0iUeS4.js.map +0 -1
@@ -16,6 +16,19 @@ declare class AlfrescoFileService {
16
16
  uploadFile(nodeId: any, opts: any, file: any): any;
17
17
  createRendition(nodeId: any, rendition: any): Promise<any>;
18
18
  createAllRendition(nodeId: any): Promise<any>;
19
+ /**
20
+ * Request creation of the wanted renditions, but only those that are both
21
+ * applicable to the node (present in listRenditions) and not yet created.
22
+ *
23
+ * Unlike {@link createAllRendition}, this never asks Alfresco to transform a
24
+ * type that cannot produce the rendition (archives, binaries, ...), avoiding
25
+ * the failed createRendition calls that polluted the logs.
26
+ *
27
+ * @param nodeId
28
+ * @param wanted rendition ids to ensure, default ["doclib", "imgpreview"]
29
+ * @returns {Promise<*>}
30
+ */
31
+ createMissingRenditions(nodeId: any, wanted?: string[]): Promise<any>;
19
32
  _createRendition(nodeId: any, renditionBodyCreate: any): Promise<any>;
20
33
  createVersionRendition(nodeId: any, versionId: any, rendition: any): Promise<any>;
21
34
  getVersionRendition(nodeId: any, versionId: any, renditionId: any): Promise< RenditionEntry>;
@@ -36,20 +49,54 @@ declare class AlfrescoFileService {
36
49
  onImageLoadFailure(event: Event, node: any): void;
37
50
  isThumbnailSupported(node: any): any;
38
51
  /**
39
- * Get rendition of the selected node. The method will retry 5 times, waiting for rendition to be created
52
+ * Status of a rendition from a listRenditions/listVersionRenditions response.
53
+ * @param paging RenditionPaging response
54
+ * @param rendition the rendition id (e.g. "pdf")
55
+ * @returns {string|null} "CREATED" / "NOT_CREATED", or null when the rendition
56
+ * is not applicable to the node (i.e. cannot be produced for its mimetype)
57
+ */
58
+ _findRenditionStatus(paging: any, rendition: any): string | null;
59
+ /**
60
+ * Build the error thrown when a rendition cannot be produced for a node.
61
+ * Callers can detect it via `error.code === "RENDITION_NOT_AVAILABLE"` to
62
+ * show the default icon / a download-only view instead of retrying.
63
+ */
64
+ _renditionNotAvailable(nodeId: any, rendition: any): Error;
65
+ /**
66
+ * Poll a not-yet-created rendition until it becomes CREATED, then resolve its
67
+ * content URL. Rejects once retries are exhausted.
68
+ * @param getRendition () => Promise<RenditionEntry>
69
+ * @param getUrl () => string content URL once the rendition is ready
70
+ * @param rendition the rendition id, for logging
71
+ */
72
+ _waitForRendition(getRendition: any, getUrl: any, rendition: any): any;
73
+ /**
74
+ * Resolve the content URL of a node rendition.
75
+ *
76
+ * Lists the renditions applicable to the node first: listRenditions returns
77
+ * every rendition *possible* for the node's source mimetype, each with a
78
+ * status (CREATED / NOT_CREATED). We decide up-front instead of blindly
79
+ * requesting a rendition for a type that cannot produce it (which only
80
+ * generated errors and log noise):
81
+ * - rendition absent from the list -> reject with RENDITION_NOT_AVAILABLE
82
+ * - CREATED -> return its content URL
83
+ * - NOT_CREATED -> request creation, then wait until ready
84
+ *
40
85
  * @param nodeId
41
- * @param rendition default to pdf"
42
- * @returns {Promise<unknown>}
86
+ * @param rendition default "pdf"
87
+ * @returns {Promise<string>} the rendition content URL
43
88
  */
44
- getRenditionUrl(nodeId: any, rendition?: string): Promise<unknown>;
89
+ getRenditionUrl(nodeId: any, rendition?: string): Promise<string>;
45
90
  /**
46
- * Get rendition of the selected version. The method will retry 5 times, waiting for rendition to be created
91
+ * Resolve the content URL of a version rendition. Same strategy as
92
+ * {@link getRenditionUrl}, using the version rendition endpoints.
93
+ *
47
94
  * @param nodeId
48
95
  * @param versionId
49
- * @param rendition default to pdf"
50
- * @returns {*}
96
+ * @param rendition default "pdf"
97
+ * @returns {Promise<string>} the rendition content URL
51
98
  */
52
- getVersionRenditionUrl(nodeId: any, versionId: any, rendition?: string): any;
99
+ getVersionRenditionUrl(nodeId: any, versionId: any, rendition?: string): Promise<string>;
53
100
  getProtocolForFileExtension(fileExtension: any): any;
54
101
  getFileExtension(fileName: any): any;
55
102
  isDoc(item: any): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"AlfrescoFileService.d.ts","sourceRoot":"","sources":["../../../src/services/AlfrescoFileService.js"],"names":[],"mappings":";;;AAiCA;;GAEG;AACH;IAEI,4BAGE;IAEF,4BAAkC;IAClC,qCAGE;IAEJ,kCAQC;IAED,gCAQC;IAED,gCAQC;IAED,uDAQC;IAED,mDAeC;IAED,2DAIC;IAED,8CASC;IAED,sEAeC;IAED,kFAIC;IAED,uHAEC;IAED;;;;;OAKG;IACH,+BAFW,KAAK,QAkBf;IAED;;;;;;OAMG;IACH,0BAHW,KAAK,mBAkCf;IAED,qCAYC;IAED;;;;;OAKG;IACH,kDAFa,OAAO,CAAC,OAAO,CAAC,CA0C5B;IAED;;;;;;OAMG;IACH,yEAFa,GAAC,CA6Cb;IACD,qDAwCC;IACD,qCAMC;IACD,0BAOC;IACD,mCAqBC;IACD,wCAYC;IACD,sCA+BC;IACD,+EAcC;IACD,qBAEC;IACD,mBAEC;IACD,uBAEC;IACD,kCAqCC;IACD;;;;;;OAMG;IACH,+BALW,MAAM,QACN,MAAM,QACN,IAAI,gBAUd;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,yBAdG;QAAqB,UAAU;QACV,UAAU;QAKT,UAAU;QACV,UAAU;QACV,UAAU;KAEhC,GAAU,MAAM,CAmBlB;IAED;;;;OAIG;IACH,qDAQC;CACF;qBA3iBoB,WAAW"}
1
+ {"version":3,"file":"AlfrescoFileService.d.ts","sourceRoot":"","sources":["../../../src/services/AlfrescoFileService.js"],"names":[],"mappings":";;;AAiCA;;GAEG;AACH;IAEI,4BAGE;IAEF,4BAAkC;IAClC,qCAGE;IAEJ,kCAQC;IAED,gCAQC;IAED,gCAQC;IAED,uDAQC;IAED,mDAeC;IAED,2DAIC;IAED,8CASC;IAED;;;;;;;;;;;OAWG;IACH,yDAFa,OAAO,CAAC,GAAC,CAAC,CAkBtB;IAED,sEAeC;IAED,kFAIC;IAED,uHAEC;IAED;;;;;OAKG;IACH,+BAFW,KAAK,QAkBf;IAED;;;;;;OAMG;IACH,0BAHW,KAAK,mBAoCf;IAED,qCAYC;IAED;;;;;;OAMG;IACH,mDAHa,MAAM,GAAC,IAAI,CAMvB;IAED;;;;OAIG;IACH,2DAMC;IAED;;;;;;OAMG;IACH,uEAsBC;IAED;;;;;;;;;;;;;;;OAeG;IACH,kDAFa,OAAO,CAAC,MAAM,CAAC,CAkB3B;IAED;;;;;;;;OAQG;IACH,yEAFa,OAAO,CAAC,MAAM,CAAC,CAqB3B;IACD,qDAwCC;IACD,qCAMC;IACD,0BAOC;IACD,mCAqBC;IACD,wCAYC;IACD,sCA+BC;IACD,+EAcC;IACD,qBAEC;IACD,mBAEC;IACD,uBAEC;IACD,kCAqCC;IACD;;;;;;OAMG;IACH,+BALW,MAAM,QACN,MAAM,QACN,IAAI,gBAUd;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,yBAdG;QAAqB,UAAU;QACV,UAAU;QAKT,UAAU;QACV,UAAU;QACV,UAAU;KAEhC,GAAU,MAAM,CAmBlB;IAED;;;;OAIG;IACH,qDAQC;CACF;qBA/lBoB,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"GhostMatcher.d.ts","sourceRoot":"","sources":["../../../src/services/GhostMatcher.js"],"names":[],"mappings":";;AAqLA;;;;GAIG;AACH;IACE;;;;;OAKG;IACH,oDAFa,OAAO,CAkBnB;IAED;;;;;OAKG;IACH,6CAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,OAAO,CAInB;IAID,uDA6BC;IAED,gDAyBC;IAID,qDAMC;IAED,6DAiBC;IAED,2CAYC;IAED,uDA2BC;IAED,yEAYC;IAED,uDA8BC;IAED,uDAiCC;CACF"}
1
+ {"version":3,"file":"GhostMatcher.d.ts","sourceRoot":"","sources":["../../../src/services/GhostMatcher.js"],"names":[],"mappings":";;AAqKA;;;;GAIG;AACH;IACE;;;;;OAKG;IACH,oDAFa,OAAO,CAkBnB;IAED;;;;;OAKG;IACH,6CAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;;;OAKG;IACH,oCAHW,MAAM,GACJ,OAAO,CAInB;IAID,uDA6BC;IAED,gDAyBC;IAID,qDAMC;IAED,6DAiBC;IAED,2CAYC;IAED,uDA6BC;IAED,yEAYC;IAED,uDA8BC;IAED,uDAiCC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuService.d.ts","sourceRoot":"","sources":["../../../src/services/MenuService.js"],"names":[],"mappings":";;AAsBA;;GAEG;AACH;IAEI,mCAGE;IAEJ,wBAEC;IAED,qCAsBC;IAED;;;;;;;;SAeC;IAED,gDAgBC;IAED,8CAkBC;IAED,8CA8BC;IAED;;;;OAIG;IACH;;;;;;;;;;MAgBC;IAED;;;;;;;;;;;;;;;;;;MAkCC;CACF;qBA1LoB,WAAW"}
1
+ {"version":3,"file":"MenuService.d.ts","sourceRoot":"","sources":["../../../src/services/MenuService.js"],"names":[],"mappings":";;AAsBA;;GAEG;AACH;IAEI,mCAGE;IAEJ,wBAEC;IAED,qCAkBC;IAED;;;;;;;;SAeC;IAED,gDAgBC;IAED,8CAkBC;IAED,8CA8BC;IAED;;;;OAIG;IACH;;;;;;;;;;MAgBC;IAED;;;;;;;;;;;;;;;;;;MAkCC;CACF;qBAtLoB,WAAW"}
@@ -15,7 +15,11 @@ declare class PeopleService {
15
15
  listUsers(refresh?: boolean): Promise<any>;
16
16
  listUsersWithOpts(opts: any, refresh?: boolean): Promise<any>;
17
17
  capitalizeFirstLetter(string: any): any;
18
- searchUser(userInput: any, sort: any, opts?: {}): Promise< ResultSetPaging>;
18
+ searchUser(userInput: any, sort: any, opts?: {}): Promise< ResultSetPaging> | Promise<{
19
+ list: {
20
+ entries: any[];
21
+ };
22
+ }>;
19
23
  getUserGroups(userId: any, refresh?: boolean): Promise<any>;
20
24
  }
21
25
  //# sourceMappingURL=PeopleService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PeopleService.d.ts","sourceRoot":"","sources":["../../../src/services/PeopleService.js"],"names":[],"mappings":";;;AAqBA;;GAEG;AACH;IAEI,wCAGE;IACF,8BAGE;IAGJ,mCAkBC;IAED,sDAeC;IAED,2FAkBC;IAED,yDAgBC;IAED,2CAmBC;IAED,8DAkBC;IAED,wCAEC;IAED,sGA8CC;IAED,4DAeC;CACF;qBAzMoB,WAAW"}
1
+ {"version":3,"file":"PeopleService.d.ts","sourceRoot":"","sources":["../../../src/services/PeopleService.js"],"names":[],"mappings":";;;AAqBA;;GAEG;AACH;IAEI,wCAGE;IACF,8BAGE;IAGJ,mCAkBC;IAED,sDAeC;IAED,2FAkBC;IAED,yDAgBC;IAED,2CAmBC;IAED,8DAkBC;IAED,wCAEC;IAED;;;;OAsEC;IAED,4DAeC;CACF;qBAjOoB,WAAW"}
@@ -0,0 +1,36 @@
1
+ declare const _default: PreviewService;
2
+ export default _default;
3
+ /**
4
+ * Service deciding whether a node can be previewed in the browser.
5
+ *
6
+ * Some file types are rendered natively (images, videos, PDF). Every other
7
+ * type relies on a server-side "pdf" rendition produced by Alfresco's
8
+ * transform service. Asking Alfresco to create that rendition for a type it
9
+ * cannot transform (archives, binaries, ...) generates noise in the logs and
10
+ * dead-end viewers.
11
+ *
12
+ * `listRenditions` (GET /nodes/{id}/renditions) returns only the renditions
13
+ * applicable to the node's source mimetype and does NOT trigger any transform,
14
+ * so it is a cheap, side-effect-free way to know up-front whether a "pdf"
15
+ * rendition is available. Results are cached per mimetype for the session and
16
+ * are reusable across apps (espaces, marches, media, ...).
17
+ */
18
+ declare class PreviewService {
19
+ previewableByMimeType: Map<any, any>;
20
+ /**
21
+ * Types rendered directly by the front-end, without a server-side rendition.
22
+ * @param {string} mimeType
23
+ * @returns {boolean}
24
+ */
25
+ isNativelyPreviewable(mimeType: string): boolean;
26
+ /**
27
+ * Tell whether the given node can be previewed (natively or through a "pdf"
28
+ * rendition). Never throws: on error it returns false so callers can fall
29
+ * back to a download-only view.
30
+ *
31
+ * @param {object} node a node with `id` and `content.mimeType`
32
+ * @returns {Promise<boolean>}
33
+ */
34
+ isPreviewable(node: object): Promise<boolean>;
35
+ }
36
+ //# sourceMappingURL=PreviewService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewService.d.ts","sourceRoot":"","sources":["../../../src/services/PreviewService.js"],"names":[],"mappings":";;AAkBA;;;;;;;;;;;;;;GAcG;AACH;IAGI,qCAAsC;IAGxC;;;;OAIG;IACH,gCAHW,MAAM,GACJ,OAAO,CAWnB;IAED;;;;;;;OAOG;IACH,oBAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CA4B5B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceService.d.ts","sourceRoot":"","sources":["../../../src/services/WorkspaceService.js"],"names":[],"mappings":";;;AAqBA;;GAEG;AACH;IAEI,kCAGE;IAEJ,8BAqBC;IAED,uDAoCC;IAED;;;;OAIG;IACH,uBAFa,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED,+CAkBC;IAED,kEAeC;IAED,6DAgBC;IAED,0CAkBC;IAED,iHAWC;IAED,iHAeC;IAED;;;OAGG;IACH,gCAcC;IAED,2GAgBC;IAED,4GAgBC;IAED,qHAeC;IAED,sHAeC;IAED,6DAUC;IAED,+DAUC;IAED,iGAgBC;IAED,6FAUC;IAED;;;;;OAKG;IACH,kBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CA2C1B;IAED;;;;;;;;;;;OAWG;IACH,mBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CA+C1B;IAED,iEAMC;IAED,mFAIC;CACF;qBAndoB,WAAW"}
1
+ {"version":3,"file":"WorkspaceService.d.ts","sourceRoot":"","sources":["../../../src/services/WorkspaceService.js"],"names":[],"mappings":";;;AAqBA;;GAEG;AACH;IAEI,kCAGE;IAEJ,8BAqBC;IAED,uDAoCC;IAED;;;;OAIG;IACH,uBAFa,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED,+CAkBC;IAED,kEAeC;IAED,6DAgBC;IAED,0CAkBC;IAED,iHAWC;IAED,iHAeC;IAED;;;OAGG;IACH,gCAcC;IAED,2GAgBC;IAED,4GAgBC;IAED,qHAeC;IAED,sHAeC;IAED,6DAUC;IAED,+DAUC;IAED,iGAgBC;IAED,6FAUC;IAED;;;;;OAKG;IACH,kBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CA+C1B;IAED;;;;;;;;;;;OAWG;IACH,mBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CAoD1B;IAED,iEAMC;IAED,mFAIC;CACF;qBA5doB,WAAW"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Resolves a property alias to its full field name.
3
+ * @param {string} prop - The property name or alias.
4
+ * @returns {string} The resolved field name.
5
+ */
6
+ export function resolveAlias(prop: string): string;
7
+ export namespace ALIAS_MAP {
8
+ let modifiedat: string;
9
+ let createdat: string;
10
+ let createdbyuser: string;
11
+ let modifiedbyuser: string;
12
+ let name: string;
13
+ let title: string;
14
+ let description: string;
15
+ let mimetype: string;
16
+ let encoding: string;
17
+ let sizeinbytes: string;
18
+ let type: string;
19
+ }
20
+ //# sourceMappingURL=aliasMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aliasMap.d.ts","sourceRoot":"","sources":["../../../src/services/aliasMap.js"],"names":[],"mappings":"AAmCA;;;;GAIG;AACH,mCAHW,MAAM,GACJ,MAAM,CAOlB"}
@@ -84,6 +84,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
84
84
  WORKSPACE_TYPE_ACTES_ENABLED: boolean;
85
85
  WORKSPACE_TYPE_GALLERY_ENABLED: boolean;
86
86
  CLASSIFICATION_PLAN_ENABLED: boolean;
87
+ FILENAME_NATURE_DETECTION: boolean;
87
88
  DASHBOARD_PERSONAL_ENABLED: boolean;
88
89
  CLASSIFICATION_PLAN_NAME: string;
89
90
  CLASSIFICATION_PLAN_ALLOW_NO_NATURE: boolean;
@@ -179,6 +180,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
179
180
  WORKSPACE_TYPE_ACTES_ENABLED: boolean;
180
181
  WORKSPACE_TYPE_GALLERY_ENABLED: boolean;
181
182
  CLASSIFICATION_PLAN_ENABLED: boolean;
183
+ FILENAME_NATURE_DETECTION: boolean;
182
184
  DASHBOARD_PERSONAL_ENABLED: boolean;
183
185
  CLASSIFICATION_PLAN_NAME: string;
184
186
  CLASSIFICATION_PLAN_ALLOW_NO_NATURE: boolean;
@@ -273,6 +275,7 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
273
275
  WORKSPACE_TYPE_ACTES_ENABLED: boolean;
274
276
  WORKSPACE_TYPE_GALLERY_ENABLED: boolean;
275
277
  CLASSIFICATION_PLAN_ENABLED: boolean;
278
+ FILENAME_NATURE_DETECTION: boolean;
276
279
  DASHBOARD_PERSONAL_ENABLED: boolean;
277
280
  CLASSIFICATION_PLAN_NAME: string;
278
281
  CLASSIFICATION_PLAN_ALLOW_NO_NATURE: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyLI;;OAEG;;IAiBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GAgC1B"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0LI;;OAEG;;IAiBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GAgC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/stores/user.js"],"names":[],"mappings":";AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBI;;;OAGG;cADS,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAqC7C;;;OAGG;uBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,CAAC;IA0BhC;;;;OAIG;2BADS,OAAO,CAAC,IAAI,CAAC;IA0BzB;;;;;OAKG;6BAFQ,GAAG,GACF,OAAO,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,CAAC;IASjC;;;OAGG;oBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,GAAG,SAAS,CAAC;IAwC5C;;;OAGG;iBADS,OAAO,CAAC,MAAM,CAAC;IAyC3B;;;OAGG;;IAqBH;;;;;OAKG;gBAHQ,MAAM,YACN,MAAM,GACL,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IASnC;;;;;OAKG;gBAHQ,MAAM,KACN,MAAM,GACL,OAAO,CAAC,GAAG,CAAC;IAcxB;;;OAGG;oBADS,OAAO,CAAC,IAAI,CAAC;IAUzB;;;;OAIG;2BAFQ,MAAM,GACL,OAAO,CAAC,MAAM,CAAC;GAwB5B"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/stores/user.js"],"names":[],"mappings":";AAsCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBI;;;OAGG;cADS,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAqC7C;;;OAGG;uBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,CAAC;IA0BhC;;;;OAIG;2BADS,OAAO,CAAC,IAAI,CAAC;IA0BzB;;;;;OAKG;6BAFQ,GAAG,GACF,OAAO,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,CAAC;IASjC;;;OAGG;oBADS,OAAO,CAAC;QAAC,EAAE,EAAC,MAAM,CAAA;KAAC,GAAG,SAAS,CAAC;IAwC5C;;;OAGG;iBADS,OAAO,CAAC,MAAM,CAAC;IAyC3B;;;OAGG;;IAoBH;;;;;OAKG;gBAHQ,MAAM,YACN,MAAM,GACL,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IASnC;;;;;OAKG;gBAHQ,MAAM,KACN,MAAM,GACL,OAAO,CAAC,GAAG,CAAC;IAcxB;;;OAGG;oBADS,OAAO,CAAC,IAAI,CAAC;IAUzB;;;;OAIG;2BAFQ,MAAM,GACL,OAAO,CAAC,MAAM,CAAC;GAwB5B"}
@@ -46,4 +46,36 @@ export function buildIncrementedName(baseName: string, increment: number, extens
46
46
  * @returns {string[]} - deduplicated names, in the same order
47
47
  */
48
48
  export function deduplicateFileNames(newNames: string[], existingNames: string[]): string[];
49
+ /**
50
+ * Build a regex from a nature's cm:name template string.
51
+ * Each ${field} placeholder becomes a named capture group.
52
+ * @param {string} template - e.g. "${NUMMARCHE}_${NATURE}"
53
+ * @param {Map<string, Object>} fieldMap - Map of field name → field definition
54
+ * @returns {{ regex: RegExp, fieldNames: Array<{groupName: string, fieldName: string}> } | null}
55
+ */
56
+ export function buildTemplateRegex(template: string, fieldMap: Map<string, any>): {
57
+ regex: RegExp;
58
+ fieldNames: Array<{
59
+ groupName: string;
60
+ fieldName: string;
61
+ }>;
62
+ } | null;
63
+ /**
64
+ * Compute the specificity score of a template string.
65
+ * Specificity = length of static text (everything outside ${…}) after removing underscores.
66
+ * @param {string} template - e.g. "${NUM}-FAC-${NATURE}"
67
+ * @returns {number}
68
+ */
69
+ export function computeTemplateSpecificity(template: string): number;
70
+ /**
71
+ * Detect a document nature by matching a filename against nature templates.
72
+ * @param {string} filename - filename with extension
73
+ * @param {Array} natures - array of nature definitions (with metadata["cm:name"].template)
74
+ * @param {Array} fields - array of field definitions
75
+ * @returns {{ nature: Object, extractedMetadata: Object } | null}
76
+ */
77
+ export function detectNatureFromFilename(filename: string, natures: any[], fields: any[]): {
78
+ nature: any;
79
+ extractedMetadata: any;
80
+ } | null;
49
81
  //# sourceMappingURL=classificationPlanUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"classificationPlanUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/classificationPlanUtils.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,2CAHW,MAAM,GACJ,MAAM,EAAE,CASpB;AAED;;;;;;;;;GASG;AACH,0CALW,MAAM,gCAGJ,MAAM,CAkClB;AAED;;;;;;;GAOG;AACH,wCAHW,MAAM,GACJ;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAYtE;AAED;;;;;;;;GAQG;AACH,+CALW,MAAM,aACN,MAAM,aACN,MAAM,GACJ,MAAM,CAOlB;AAED;;;;;GAKG;AACH,+CAJW,MAAM,EAAE,iBACR,MAAM,EAAE,GACN,MAAM,EAAE,CA4CpB"}
1
+ {"version":3,"file":"classificationPlanUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/classificationPlanUtils.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,2CAHW,MAAM,GACJ,MAAM,EAAE,CASpB;AAED;;;;;;;;;GASG;AACH,0CALW,MAAM,gCAGJ,MAAM,CAkClB;AAED;;;;;;;GAOG;AACH,wCAHW,MAAM,GACJ;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAYtE;AAED;;;;;;;;GAQG;AACH,+CALW,MAAM,aACN,MAAM,aACN,MAAM,GACJ,MAAM,CAOlB;AAED;;;;;GAKG;AACH,+CAJW,MAAM,EAAE,iBACR,MAAM,EAAE,GACN,MAAM,EAAE,CA4CpB;AAED;;;;;;GAMG;AACH,6CAJW,MAAM,YACN,GAAG,CAAC,MAAM,MAAS,GACjB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAC,CAAC,CAAA;CAAE,GAAG,IAAI,CA0D/F;AAED;;;;;GAKG;AACH,qDAHW,MAAM,GACJ,MAAM,CAKlB;AAED;;;;;;GAMG;AACH,mDALW,MAAM,kCAGJ;IAAE,MAAM,MAAS;IAAC,iBAAiB,MAAQ;CAAE,GAAG,IAAI,CAoDhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pristy/pristy-libvue",
3
- "version": "2.12.0",
3
+ "version": "2.13.1",
4
4
  "description": "Core library used by all Pristy applications",
5
5
  "homepage": "https://pristy.fr/en/",
6
6
  "author": "JECI SARL",
@@ -51,28 +51,28 @@
51
51
  "@codemirror/legacy-modes": "^6.5.3",
52
52
  "@codemirror/lint": "^6.9.7",
53
53
  "@codemirror/merge": "^6.12.2",
54
- "@codemirror/search": "^6.7.0",
54
+ "@codemirror/search": "^6.7.1",
55
55
  "@codemirror/state": "^6.6.0",
56
56
  "@codemirror/theme-one-dark": "^6.1.3",
57
57
  "@codemirror/view": "^6.43.1",
58
58
  "codemirror": "6.0.2",
59
59
  "vue": "^3.5.22",
60
- "vue-i18n": "^11.4.5",
60
+ "vue-i18n": "^11.4.6",
61
61
  "vue-router": "^4.6.4"
62
62
  },
63
63
  "resolutions": {
64
64
  "@codemirror/state": "6.5.2"
65
65
  },
66
66
  "dependencies": {
67
- "@alfresco/js-api": "^9.4.1",
67
+ "@alfresco/js-api": "^9.5.0",
68
68
  "@codemirror/language-data": "^6.5.2",
69
69
  "@primeuix/themes": "^2.0.3",
70
70
  "@primevue/core": "^4.3.3",
71
71
  "@tato30/vue-pdf": "^1.11.5",
72
72
  "@vueuse/core": "^12.8.2",
73
73
  "async-retry": "^1.3.3",
74
- "axios": "^1.17.0",
75
- "dompurify": "^3.4.9",
74
+ "axios": "^1.18.0",
75
+ "dompurify": "^3.4.11",
76
76
  "email-validator": "^2.0.4",
77
77
  "highlight.js": "^11.11.1",
78
78
  "jszip": "^3.10.1",
@@ -104,7 +104,7 @@
104
104
  "jsdom": "^27.4.0",
105
105
  "prettier": "^3.8.4",
106
106
  "rollup-plugin-visualizer": "^6.0.11",
107
- "sass": "^1.100.0",
107
+ "sass": "^1.101.0",
108
108
  "svgo": "^4.0.1",
109
109
  "vite": "^7.3.5",
110
110
  "vite-plugin-dts": "^4.5.4",