@pristy/pristy-libvue 2.5.4 → 2.7.0

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 (150) hide show
  1. package/README.md +80 -17
  2. package/dist/{jszip.min-8PfeYdht.js → jszip.min-BrmBkVmG.js} +35 -32
  3. package/dist/jszip.min-BrmBkVmG.js.map +1 -0
  4. package/dist/pristy-libvue.css +1 -1
  5. package/dist/pristy-libvue.es.js +32277 -173
  6. package/dist/pristy-libvue.es.js.map +1 -1
  7. package/dist/pristy-libvue.umd.js +27 -26
  8. package/dist/pristy-libvue.umd.js.map +1 -1
  9. package/dist/src/components/CodeMirrorEditor.vue.d.ts +3 -0
  10. package/dist/src/components/CodeMirrorEditor.vue.d.ts.map +1 -1
  11. package/dist/src/components/DiffViewerDialog.vue.d.ts +2 -0
  12. package/dist/src/components/DiffViewerDialog.vue.d.ts.map +1 -1
  13. package/dist/src/components/FolderUpload.vue.d.ts +1 -0
  14. package/dist/src/components/HelpKeyMessage.vue.d.ts.map +1 -1
  15. package/dist/src/components/SelectionStatus.vue.d.ts +1 -1
  16. package/dist/src/components/UploadStatus.vue.d.ts +1 -0
  17. package/dist/src/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts +1 -1
  18. package/dist/src/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts.map +1 -1
  19. package/dist/src/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts +1 -1
  20. package/dist/src/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts.map +1 -1
  21. package/dist/src/components/chat/ChatInput.vue.d.ts.map +1 -1
  22. package/dist/src/components/chat/ChatPanel.vue.d.ts.map +1 -1
  23. package/dist/src/components/classification/AdminClassificationPage.vue.d.ts +31 -3
  24. package/dist/src/components/classification/AdminClassificationPage.vue.d.ts.map +1 -1
  25. package/dist/src/components/classification/EmplacementForm.vue.d.ts +14 -2
  26. package/dist/src/components/classification/EmplacementForm.vue.d.ts.map +1 -1
  27. package/dist/src/components/classification/FieldForm.vue.d.ts +5 -0
  28. package/dist/src/components/classification/FieldForm.vue.d.ts.map +1 -1
  29. package/dist/src/components/classification/MetadataFormFields.vue.d.ts +277 -1
  30. package/dist/src/components/classification/MetadataFormFields.vue.d.ts.map +1 -1
  31. package/dist/src/components/classification/NatureForm.vue.d.ts +14 -2
  32. package/dist/src/components/classification/NatureForm.vue.d.ts.map +1 -1
  33. package/dist/src/components/classification/NatureSelector.vue.d.ts +277 -1
  34. package/dist/src/components/classification/NatureSelector.vue.d.ts.map +1 -1
  35. package/dist/src/components/classification/UploadPlanPopup.vue.d.ts +18 -6881
  36. package/dist/src/components/classification/UploadPlanPopup.vue.d.ts.map +1 -1
  37. package/dist/src/components/config/ArrayEditor.vue.d.ts.map +1 -1
  38. package/dist/src/components/config/ConfigSplitView.vue.d.ts.map +1 -1
  39. package/dist/src/components/config/ConfigUpload.vue.d.ts +2 -2
  40. package/dist/src/components/config/ListVersionConfig.vue.d.ts.map +1 -1
  41. package/dist/src/components/layouts/AppLayout.vue.d.ts +63 -3
  42. package/dist/src/components/layouts/AppLayout.vue.d.ts.map +1 -1
  43. package/dist/src/components/layouts/AppMobileLayout.vue.d.ts +1 -0
  44. package/dist/src/components/layouts/AppMobileLayout.vue.d.ts.map +1 -1
  45. package/dist/src/components/layouts/AppSidebar.vue.d.ts +42 -0
  46. package/dist/src/components/layouts/AppSidebar.vue.d.ts.map +1 -1
  47. package/dist/src/components/layouts/AppSubmenu.vue.d.ts.map +1 -1
  48. package/dist/src/components/layouts/AppTopbar.vue.d.ts +2 -1
  49. package/dist/src/components/layouts/AppTopbar.vue.d.ts.map +1 -1
  50. package/dist/src/components/layouts/SidebarProfileSection.vue.d.ts +49 -0
  51. package/dist/src/components/layouts/SidebarProfileSection.vue.d.ts.map +1 -0
  52. package/dist/src/components/navigation/ColumnTogglePanel.vue.d.ts +2 -0
  53. package/dist/src/components/navigation/ColumnTogglePanel.vue.d.ts.map +1 -1
  54. package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts +140 -31
  55. package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts.map +1 -1
  56. package/dist/src/components/navigation/ContentFiltersHeader.vue.d.ts +1 -24
  57. package/dist/src/components/navigation/ContentFiltersHeader.vue.d.ts.map +1 -1
  58. package/dist/src/components/navigation/ContentGridView.vue.d.ts +7 -2
  59. package/dist/src/components/navigation/ContentGridView.vue.d.ts.map +1 -1
  60. package/dist/src/components/navigation/ContentListView.vue.d.ts +3 -2
  61. package/dist/src/components/navigation/ContentListView.vue.d.ts.map +1 -1
  62. package/dist/src/components/navigation/ContentTableView.vue.d.ts +155 -23
  63. package/dist/src/components/navigation/ContentTableView.vue.d.ts.map +1 -1
  64. package/dist/src/components/navigation/ContentToolbar.vue.d.ts +19 -0
  65. package/dist/src/components/navigation/ContentToolbar.vue.d.ts.map +1 -0
  66. package/dist/src/components/navigation/DynamicContentView.vue.d.ts +340 -93
  67. package/dist/src/components/navigation/DynamicContentView.vue.d.ts.map +1 -1
  68. package/dist/src/components/navigation/LayoutSelector.vue.d.ts +1 -0
  69. package/dist/src/components/navigation/LayoutSelector.vue.d.ts.map +1 -1
  70. package/dist/src/components/navigation/PreviewPanel.vue.d.ts +41 -2
  71. package/dist/src/components/navigation/PreviewPanel.vue.d.ts.map +1 -1
  72. package/dist/src/components/navigation/SelectionBar.vue.d.ts +90 -0
  73. package/dist/src/components/navigation/SelectionBar.vue.d.ts.map +1 -0
  74. package/dist/src/components/pdfTools/PdfToolsComponent.vue.d.ts.map +1 -1
  75. package/dist/src/components/popup/CopyOrMovePopup.vue.d.ts.map +1 -1
  76. package/dist/src/components/popup/CreateWorkflowPopup.vue.d.ts +1 -0
  77. package/dist/src/components/popup/CreateWorkflowPopup.vue.d.ts.map +1 -1
  78. package/dist/src/components/popup/ImportNewVersionPopup.vue.d.ts +2 -2
  79. package/dist/src/components/popup/ImportNewVersionPopup.vue.d.ts.map +1 -1
  80. package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts +4 -2
  81. package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts.map +1 -1
  82. package/dist/src/components/popup/MemberListPopup.vue.d.ts +4 -2
  83. package/dist/src/components/popup/MemberListPopup.vue.d.ts.map +1 -1
  84. package/dist/src/components/popup/SendMailPopup.vue.d.ts +3 -0
  85. package/dist/src/components/popup/SendMailPopup.vue.d.ts.map +1 -1
  86. package/dist/src/components/popup/ShareLinkPopup.vue.d.ts.map +1 -1
  87. package/dist/src/components/search/AddCriterionPopup.vue.d.ts +6 -0
  88. package/dist/src/components/search/AddCriterionPopup.vue.d.ts.map +1 -1
  89. package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts +7 -1
  90. package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts.map +1 -1
  91. package/dist/src/components/search/AdvancedViewPanel.vue.d.ts +9 -3
  92. package/dist/src/components/search/AdvancedViewPanel.vue.d.ts.map +1 -1
  93. package/dist/src/components/search/FavoriteViewMenu.vue.d.ts +1 -0
  94. package/dist/src/components/search/FavoriteViewMenu.vue.d.ts.map +1 -1
  95. package/dist/src/components/search/SaveViewPopup.vue.d.ts.map +1 -1
  96. package/dist/src/components/search/UserViewsFavoritesPanel.vue.d.ts +1 -0
  97. package/dist/src/components/search/UserViewsFavoritesPanel.vue.d.ts.map +1 -1
  98. package/dist/src/components/search/ViewResultsPanel.vue.d.ts +1 -1
  99. package/dist/src/components/users/MemberList.vue.d.ts +4 -2
  100. package/dist/src/components/users/MemberList.vue.d.ts.map +1 -1
  101. package/dist/src/components/viewer/ImageViewer.vue.d.ts.map +1 -1
  102. package/dist/src/components/viewer/PDFComponent.vue.d.ts +41 -2
  103. package/dist/src/components/viewer/PDFComponent.vue.d.ts.map +1 -1
  104. package/dist/src/components/viewer/VideoPlayer.vue.d.ts.map +1 -1
  105. package/dist/src/components/workspace/WorkspaceCard.vue.d.ts.map +1 -1
  106. package/dist/src/composables/useAuth.d.ts +4 -0
  107. package/dist/src/composables/useAuth.d.ts.map +1 -0
  108. package/dist/src/composables/useClassificationPlan.d.ts +3 -1
  109. package/dist/src/composables/useClassificationPlan.d.ts.map +1 -1
  110. package/dist/src/composables/useCodeMirror.d.ts.map +1 -1
  111. package/dist/src/composables/useCollabEditor.d.ts +1 -0
  112. package/dist/src/composables/useCollabEditor.d.ts.map +1 -1
  113. package/dist/src/composables/useCollabWebSocket.d.ts.map +1 -1
  114. package/dist/src/composables/useColumnFilter.d.ts +27 -0
  115. package/dist/src/composables/useColumnFilter.d.ts.map +1 -0
  116. package/dist/src/composables/useLayout.d.ts +21 -1
  117. package/dist/src/composables/useLayout.d.ts.map +1 -1
  118. package/dist/src/composables/useMarkdownPreview.d.ts.map +1 -1
  119. package/dist/src/i18n/index.d.ts +276 -0
  120. package/dist/src/i18n/index.d.ts.map +1 -1
  121. package/dist/src/index.d.ts +119 -111
  122. package/dist/src/index.d.ts.map +1 -1
  123. package/dist/src/services/AlfrescoFileService.d.ts +6 -0
  124. package/dist/src/services/AlfrescoFileService.d.ts.map +1 -1
  125. package/dist/src/services/AlfrescoNodeService.d.ts +8 -0
  126. package/dist/src/services/AlfrescoNodeService.d.ts.map +1 -1
  127. package/dist/src/services/ClassificationFileService.d.ts.map +1 -1
  128. package/dist/src/services/CollabBackupService.d.ts +27 -0
  129. package/dist/src/services/CollabBackupService.d.ts.map +1 -0
  130. package/dist/src/services/FormatService.d.ts.map +1 -1
  131. package/dist/src/services/UserViewService.d.ts.map +1 -1
  132. package/dist/src/services/WorkflowService.d.ts.map +1 -1
  133. package/dist/src/services/WorkspaceService.d.ts.map +1 -1
  134. package/dist/src/stores/config.d.ts +51 -0
  135. package/dist/src/stores/config.d.ts.map +1 -1
  136. package/dist/src/stores/taskNotification.d.ts +9 -0
  137. package/dist/src/stores/taskNotification.d.ts.map +1 -0
  138. package/dist/src/stores/upload.d.ts +9 -0
  139. package/dist/src/stores/upload.d.ts.map +1 -1
  140. package/dist/src/stores/user.d.ts.map +1 -1
  141. package/dist/src/typedef.d.ts +367 -0
  142. package/dist/src/typedef.d.ts.map +1 -0
  143. package/dist/src/utils/classificationPlanUtils.d.ts +4 -1
  144. package/dist/src/utils/classificationPlanUtils.d.ts.map +1 -1
  145. package/package.json +12 -12
  146. package/dist/index-BbVzbEij.js +0 -78797
  147. package/dist/index-BbVzbEij.js.map +0 -1
  148. package/dist/jszip.min-8PfeYdht.js.map +0 -1
  149. package/dist/src/components/classification/RequalifyPlanPopup.vue.d.ts +0 -6839
  150. package/dist/src/components/classification/RequalifyPlanPopup.vue.d.ts.map +0 -1
@@ -0,0 +1,367 @@
1
+ import { NodeEntry, Node, NodeBodyCreate, NodeBodyUpdate, PersonEntry, SiteEntry, FavoriteEntry, VersionEntry, SharedLinkEntry } from '@alfresco/js-api';
2
+ import { RouteLocationRaw } from 'vue-router';
3
+ type NodeEntry = NodeEntry;
4
+ type AlfrescoNode = Node;
5
+ type NodeBodyCreate = NodeBodyCreate;
6
+ type NodeBodyUpdate = NodeBodyUpdate;
7
+ type PersonEntry = PersonEntry;
8
+ type SiteEntry = SiteEntry;
9
+ type FavoriteEntry = FavoriteEntry;
10
+ type VersionEntry = VersionEntry;
11
+ type SharedLinkEntry = SharedLinkEntry;
12
+ /**
13
+ * File content metadata attached to a node.
14
+ */
15
+ type ContentInfo = {
16
+ /**
17
+ * - e.g. "application/pdf", "image/png"
18
+ */
19
+ mimeType: string;
20
+ sizeInBytes: number;
21
+ encoding?: string;
22
+ };
23
+ /**
24
+ * A single element in a node's path hierarchy.
25
+ */
26
+ type PathElement = {
27
+ id: string;
28
+ name: string;
29
+ nodeType: string;
30
+ };
31
+ /**
32
+ * Hierarchical path information for a node.
33
+ */
34
+ type PathInfo = {
35
+ /**
36
+ * - Full slash-separated path
37
+ */
38
+ name: string;
39
+ elements: PathElement[];
40
+ };
41
+ /**
42
+ * Lightweight user reference (createdByUser, modifiedByUser, lockOwner…).
43
+ */
44
+ type UserInfo = {
45
+ /**
46
+ * - Username
47
+ */
48
+ id: string;
49
+ displayName: string;
50
+ };
51
+ /**
52
+ * Full person record returned by the People API.
53
+ */
54
+ type Person = {
55
+ /**
56
+ * - Username
57
+ */
58
+ id: string;
59
+ displayName: string;
60
+ firstName: string;
61
+ lastName: string;
62
+ email: string;
63
+ properties?: any;
64
+ aspectNames?: string[];
65
+ capabilities?: any;
66
+ };
67
+ /**
68
+ * Person search/select result used in member pickers.
69
+ */
70
+ type PersonSearchResult = {
71
+ id: string;
72
+ firstname: string;
73
+ lastname: string;
74
+ email: string;
75
+ /**
76
+ * - Formatted as "FirstName LastName (username - email)"
77
+ */
78
+ label: string;
79
+ group: false;
80
+ };
81
+ /**
82
+ * Group search/select result used in member pickers.
83
+ */
84
+ type GroupSearchResult = {
85
+ id: string;
86
+ label: string;
87
+ group: true;
88
+ };
89
+ /**
90
+ * Alfresco node enriched with Pristy-specific fields.
91
+ */
92
+ type Node = {
93
+ id: string;
94
+ name: string;
95
+ /**
96
+ * - e.g. "cm:folder", "cm:content", "st:site"
97
+ */
98
+ nodeType: string;
99
+ isFile: boolean;
100
+ isFolder: boolean;
101
+ isLocked?: boolean;
102
+ content?: ContentInfo;
103
+ /**
104
+ * - Namespaced properties (cm:, st:, pm:, pk:)
105
+ */
106
+ properties?: any;
107
+ aspectNames?: string[];
108
+ isFavorite?: boolean;
109
+ path?: PathInfo;
110
+ /**
111
+ * - e.g. ["create","update","delete"]
112
+ */
113
+ allowableOperations?: string[];
114
+ permissions?: any;
115
+ /**
116
+ * - ISO 8601
117
+ */
118
+ createdAt?: string;
119
+ /**
120
+ * - ISO 8601
121
+ */
122
+ modifiedAt?: string;
123
+ createdByUser?: UserInfo;
124
+ modifiedByUser?: UserInfo;
125
+ };
126
+ /**
127
+ * A node version entry from the version history.
128
+ */
129
+ type Version = {
130
+ /**
131
+ * - e.g. "1.0", "1.1"
132
+ */
133
+ versionLabel: string;
134
+ name: string;
135
+ nodeType: string;
136
+ isFile: boolean;
137
+ /**
138
+ * - ISO 8601
139
+ */
140
+ createdAt: string;
141
+ createdByUser: UserInfo;
142
+ properties?: any;
143
+ aspectNames?: string[];
144
+ };
145
+ /**
146
+ * A rendition (transformed version) of a node.
147
+ */
148
+ type Rendition = {
149
+ /**
150
+ * - e.g. "pdf", "doclib", "imgpreview"
151
+ */
152
+ id: string;
153
+ status: "CREATED" | "NOT_CREATED" | "IN_PROGRESS";
154
+ url?: string;
155
+ };
156
+ /**
157
+ * A public shared link for a node.
158
+ */
159
+ type SharedLink = {
160
+ id: string;
161
+ nodeId: string;
162
+ /**
163
+ * - ISO 8601 or null
164
+ */
165
+ expiresAt?: string | null;
166
+ };
167
+ /**
168
+ * An Alfresco site (workspace).
169
+ */
170
+ type Site = {
171
+ id: string;
172
+ guid: string;
173
+ title: string;
174
+ description?: string;
175
+ visibility: "PUBLIC" | "MODERATED" | "PRIVATE";
176
+ /**
177
+ * - Current user's role
178
+ */
179
+ role?: string;
180
+ properties?: any;
181
+ };
182
+ /**
183
+ * A site membership entry.
184
+ */
185
+ type SiteMembership = {
186
+ /**
187
+ * - User or group ID
188
+ */
189
+ id: string;
190
+ role: "SiteManager" | "SiteCollaborator" | "SiteConsumer" | "SiteContributor";
191
+ person?: Person;
192
+ };
193
+ /**
194
+ * A user favorite entry.
195
+ */
196
+ type Favorite = {
197
+ id: string;
198
+ targetGuid: string;
199
+ target: {
200
+ site?: {
201
+ guid: string;
202
+ title: string;
203
+ id: string;
204
+ };
205
+ folder?: {
206
+ guid: string;
207
+ id: string;
208
+ name: string;
209
+ };
210
+ file?: {
211
+ guid: string;
212
+ id: string;
213
+ name: string;
214
+ };
215
+ };
216
+ };
217
+ /**
218
+ * Pagination metadata returned by list endpoints.
219
+ */
220
+ type PaginationInfo = {
221
+ /**
222
+ * - Items in current page
223
+ */
224
+ count: number;
225
+ hasMoreItems: boolean;
226
+ totalItems: number;
227
+ skipCount: number;
228
+ maxItems: number;
229
+ };
230
+ /**
231
+ * Standard list wrapper returned by Alfresco REST endpoints.
232
+ */
233
+ type PaginatedList<T> = {
234
+ entries: {
235
+ entry: T;
236
+ }[];
237
+ pagination: PaginationInfo;
238
+ };
239
+ /**
240
+ * Result of fetching children for a folder or workspace.
241
+ */
242
+ type ChildrenResult = {
243
+ children: Node[];
244
+ pagination: PaginationInfo;
245
+ /**
246
+ * - Present when navigating a site root
247
+ */
248
+ documentLibrary?: Node;
249
+ };
250
+ /**
251
+ * A search facet query definition (from config).
252
+ */
253
+ type FacetQuery = {
254
+ /**
255
+ * - i18n key
256
+ */
257
+ label: string;
258
+ /**
259
+ * - Alfresco AFTS query
260
+ */
261
+ query: string;
262
+ /**
263
+ * - Grouping key
264
+ */
265
+ group: string;
266
+ };
267
+ /**
268
+ * A search facet field definition (from config).
269
+ */
270
+ type FacetField = {
271
+ field: string;
272
+ mincount: number;
273
+ /**
274
+ * - i18n key
275
+ */
276
+ label: string;
277
+ };
278
+ /**
279
+ * A criterion in a saved user view.
280
+ */
281
+ type ViewCriterion = {
282
+ field: string;
283
+ operator: string;
284
+ value: any;
285
+ };
286
+ /**
287
+ * A location in a saved user view.
288
+ */
289
+ type ViewLocation = {
290
+ /**
291
+ * - Node ID
292
+ */
293
+ id: string;
294
+ name: string;
295
+ path?: string;
296
+ };
297
+ /**
298
+ * A saved search/view definition.
299
+ */
300
+ type SavedView = {
301
+ name: string;
302
+ criteria: ViewCriterion[];
303
+ locations: ViewLocation[];
304
+ favorite?: boolean;
305
+ };
306
+ /**
307
+ * A menu item definition used by ActionMenu.
308
+ */
309
+ type ActionMenuItem = {
310
+ label?: string;
311
+ /**
312
+ * - Remixicon class (ri-*)
313
+ */
314
+ icon?: string;
315
+ route?: RouteLocationRaw;
316
+ /**
317
+ * - External URL
318
+ */
319
+ url?: string;
320
+ visible?: boolean;
321
+ /**
322
+ * - Renders a divider instead of an item
323
+ */
324
+ separator?: boolean;
325
+ /**
326
+ * - Nested sub-items
327
+ */
328
+ items?: ActionMenuItem[];
329
+ };
330
+ /**
331
+ * An Alfresco property definition from the model API.
332
+ */
333
+ type PropertyDefinition = {
334
+ /**
335
+ * - e.g. "cm:title"
336
+ */
337
+ key: string;
338
+ title: string;
339
+ /**
340
+ * - e.g. "d:text", "d:date", "d:int"
341
+ */
342
+ dataType: string;
343
+ mandatory: boolean;
344
+ };
345
+ /**
346
+ * An Alfresco type definition from the model API.
347
+ */
348
+ type TypeDefinition = {
349
+ id: string;
350
+ title: string;
351
+ description?: string;
352
+ properties?: {
353
+ [x: string]: PropertyDefinition;
354
+ };
355
+ };
356
+ /**
357
+ * An Alfresco aspect definition from the model API.
358
+ */
359
+ type AspectDefinition = {
360
+ id: string;
361
+ title: string;
362
+ description?: string;
363
+ properties?: {
364
+ [x: string]: PropertyDefinition;
365
+ };
366
+ };
367
+ //# sourceMappingURL=typedef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typedef.d.ts","sourceRoot":"","sources":["../../src/typedef.js"],"names":[],"mappings":"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"}
@@ -8,9 +8,12 @@ export function extractVariables(template: string): string[];
8
8
  /**
9
9
  * Resolve a template string by replacing ${var} placeholders with values.
10
10
  * Supports the :upper filter.
11
+ * When a variable has no value, uses the field's default if available.
12
+ * Applies prefix/suffix around the resolved value (only if non-empty).
11
13
  * @param {string} template
12
14
  * @param {Object} values - key/value map of field values
15
+ * @param {Array} [fields] - optional array of field definitions (with default, prefix, suffix)
13
16
  * @returns {string}
14
17
  */
15
- export function resolveTemplate(template: string, values: any): string;
18
+ export function resolveTemplate(template: string, values: any, fields?: any[]): string;
16
19
  //# 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;;;;;;GAMG;AACH,0CAJW,MAAM,gBAEJ,MAAM,CAqBlB"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pristy/pristy-libvue",
3
- "version": "2.5.4",
3
+ "version": "2.7.0",
4
4
  "description": "Core library used by all Pristy applications",
5
5
  "homepage": "https://pristy.fr/en/",
6
6
  "author": "JECI SARL",
@@ -25,7 +25,7 @@
25
25
  "./dist/pristy-libvue.css": "./dist/pristy-libvue.css"
26
26
  },
27
27
  "unpkg": "./dist/pristy-libvue.umd.js",
28
- "jsdelivr": "./dist/pristy-libvye.umd.js",
28
+ "jsdelivr": "./dist/pristy-libvue.umd.js",
29
29
  "scripts": {
30
30
  "build:library": "vite build",
31
31
  "build:dev": "vite build --minify false --sourcemap true",
@@ -54,10 +54,10 @@
54
54
  "@codemirror/search": "^6.6.0",
55
55
  "@codemirror/state": "^6.6.0",
56
56
  "@codemirror/theme-one-dark": "^6.1.3",
57
- "@codemirror/view": "^6.41.0",
57
+ "@codemirror/view": "^6.41.1",
58
58
  "codemirror": "6.0.2",
59
59
  "vue": "^3.5.22",
60
- "vue-i18n": "^11.3.0",
60
+ "vue-i18n": "^11.3.2",
61
61
  "vue-router": "^4.6.4"
62
62
  },
63
63
  "resolutions": {
@@ -71,20 +71,20 @@
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.14.0",
75
- "dompurify": "^3.3.3",
74
+ "axios": "^1.15.1",
75
+ "dompurify": "^3.4.0",
76
76
  "email-validator": "^2.0.4",
77
77
  "highlight.js": "^11.11.1",
78
78
  "jszip": "^3.10.1",
79
79
  "keycloak-js": "^26.2.3",
80
80
  "marked": "^16.4.2",
81
- "marked-highlight": "^2.2.3",
81
+ "marked-highlight": "^2.2.4",
82
82
  "p-limit": "^6.2.0",
83
83
  "pdf-lib": "^1.17.1",
84
84
  "pinia": "^2.3.1",
85
- "primevue": "^4.5.4",
85
+ "primevue": "^4.5.5",
86
86
  "quick-lru": "^7.3.0",
87
- "sanitize-html": "^2.17.2",
87
+ "sanitize-html": "^2.17.3",
88
88
  "type-check": "^0.4.0",
89
89
  "vue-draggable-next": "^2.3.0"
90
90
  },
@@ -92,7 +92,7 @@
92
92
  "@codemirror/collab": "^6.1.1",
93
93
  "@eslint/js": "^9.37.0",
94
94
  "@vitejs/plugin-legacy": "^7.2.1",
95
- "@vitejs/plugin-vue": "^6.0.5",
95
+ "@vitejs/plugin-vue": "^6.0.6",
96
96
  "@vitest/coverage-v8": "^3.2.4",
97
97
  "eslint": "^9.39.4",
98
98
  "eslint-config-prettier": "^10.1.8",
@@ -102,11 +102,11 @@
102
102
  "eslint-plugin-promise": "^7.2.1",
103
103
  "eslint-plugin-vue": "^9.33.0",
104
104
  "jsdom": "^27.4.0",
105
- "prettier": "^3.8.1",
105
+ "prettier": "^3.8.3",
106
106
  "rollup-plugin-visualizer": "^6.0.11",
107
107
  "sass": "^1.99.0",
108
108
  "svgo": "^4.0.1",
109
- "vite": "^7.3.1",
109
+ "vite": "^7.3.2",
110
110
  "vite-plugin-dts": "^4.5.4",
111
111
  "vitest": "^3.2.4"
112
112
  },