@pristy/pristy-libvue 2.21.1 → 3.0.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 (162) hide show
  1. package/dist/{ActivityHistory-BGjkKWml.js → ActivityHistory-CSXt9uFw.js} +2 -2
  2. package/dist/{ActivityHistory-BGjkKWml.js.map → ActivityHistory-CSXt9uFw.js.map} +1 -1
  3. package/dist/{BookmarksComponent-DHIe0ttf.js → BookmarksComponent-DqfEIox4.js} +2 -2
  4. package/dist/{BookmarksComponent-DHIe0ttf.js.map → BookmarksComponent-DqfEIox4.js.map} +1 -1
  5. package/dist/{ChartWrapper-Zs8fU_KC.js → ChartWrapper-B7VmrsEX.js} +2 -2
  6. package/dist/{ChartWrapper-Zs8fU_KC.js.map → ChartWrapper-B7VmrsEX.js.map} +1 -1
  7. package/dist/{DisplayFileInDashboardComponent-VTGlXPxP.js → DisplayFileInDashboardComponent-BAdDKnJN.js} +3 -3
  8. package/dist/{DisplayFileInDashboardComponent-VTGlXPxP.js.map → DisplayFileInDashboardComponent-BAdDKnJN.js.map} +1 -1
  9. package/dist/{ExternalApps-B2alflcL.js → ExternalApps-CQZwIifu.js} +2 -2
  10. package/dist/{ExternalApps-B2alflcL.js.map → ExternalApps-CQZwIifu.js.map} +1 -1
  11. package/dist/{FavoriteList-CcY7AFMX.js → FavoriteList-CTY_2bWP.js} +2 -2
  12. package/dist/{FavoriteList-CcY7AFMX.js.map → FavoriteList-CTY_2bWP.js.map} +1 -1
  13. package/dist/{MarkdownComponent-LDoBl43h.js → MarkdownComponent-DWluCXX2.js} +2 -2
  14. package/dist/{MarkdownComponent-LDoBl43h.js.map → MarkdownComponent-DWluCXX2.js.map} +1 -1
  15. package/dist/{PDFComponent-BXyQNUhl.js → PDFComponent-DhmdtX95.js} +3 -3
  16. package/dist/{PDFComponent-BXyQNUhl.js.map → PDFComponent-DhmdtX95.js.map} +1 -1
  17. package/dist/{PdfConfigService-BKVsjC1W.js → PdfConfigService-huVsU23i.js} +2 -2
  18. package/dist/{PdfConfigService-BKVsjC1W.js.map → PdfConfigService-huVsU23i.js.map} +1 -1
  19. package/dist/{PdfToolsComponent-BC45mg3C.js → PdfToolsComponent-CXuz7xuL.js} +736 -731
  20. package/dist/PdfToolsComponent-CXuz7xuL.js.map +1 -0
  21. package/dist/PlanTreePdfService-Ck4hUN2b.js +76 -0
  22. package/dist/PlanTreePdfService-Ck4hUN2b.js.map +1 -0
  23. package/dist/{SearchInput-C3A2rG7G.js → SearchInput-57Z8q77p.js} +2 -2
  24. package/dist/{SearchInput-C3A2rG7G.js.map → SearchInput-57Z8q77p.js.map} +1 -1
  25. package/dist/{UnknownBlockType-CK5rOiTB.js → UnknownBlockType-BtnOApwP.js} +2 -2
  26. package/dist/{UnknownBlockType-CK5rOiTB.js.map → UnknownBlockType-BtnOApwP.js.map} +1 -1
  27. package/dist/{index-CPjFX5To.js → index-Coh4LtRJ.js} +14415 -11122
  28. package/dist/index-Coh4LtRJ.js.map +1 -0
  29. package/dist/pristy-libvue.css +1 -1
  30. package/dist/pristy-libvue.es.js +204 -185
  31. package/dist/pristy-libvue.umd.js +24 -23
  32. package/dist/pristy-libvue.umd.js.map +1 -1
  33. package/dist/src/AlfrescoApi.d.ts +2 -1
  34. package/dist/src/AlfrescoApi.d.ts.map +1 -1
  35. package/dist/src/components/FolderUpload.vue.d.ts +34 -1
  36. package/dist/src/components/FolderUpload.vue.d.ts.map +1 -1
  37. package/dist/src/components/IconPickerDialog.vue.d.ts +1 -1
  38. package/dist/src/components/IndexAwaitOverlay.vue.d.ts +12 -0
  39. package/dist/src/components/IndexAwaitOverlay.vue.d.ts.map +1 -0
  40. package/dist/src/components/TreeExplorer.vue.d.ts +6 -1
  41. package/dist/src/components/TreeExplorer.vue.d.ts.map +1 -1
  42. package/dist/src/components/UploadStatus.vue.d.ts +34 -1
  43. package/dist/src/components/UploadStatus.vue.d.ts.map +1 -1
  44. package/dist/src/components/classification/AdminClassificationPage.vue.d.ts +126 -1
  45. package/dist/src/components/classification/AdminClassificationPage.vue.d.ts.map +1 -1
  46. package/dist/src/components/classification/AiSuggestionsPanel.vue.d.ts +12 -0
  47. package/dist/src/components/classification/AiSuggestionsPanel.vue.d.ts.map +1 -0
  48. package/dist/src/components/classification/FieldForm.vue.d.ts +1 -0
  49. package/dist/src/components/classification/FieldForm.vue.d.ts.map +1 -1
  50. package/dist/src/components/classification/MetadataFormFields.vue.d.ts +42 -1
  51. package/dist/src/components/classification/MetadataFormFields.vue.d.ts.map +1 -1
  52. package/dist/src/components/classification/NatureForm.vue.d.ts +2 -0
  53. package/dist/src/components/classification/NatureForm.vue.d.ts.map +1 -1
  54. package/dist/src/components/classification/NatureSelector.vue.d.ts +11 -0
  55. package/dist/src/components/classification/NatureSelector.vue.d.ts.map +1 -1
  56. package/dist/src/components/classification/PlanInformationPanel.vue.d.ts +58 -0
  57. package/dist/src/components/classification/PlanInformationPanel.vue.d.ts.map +1 -0
  58. package/dist/src/components/classification/PlanSuggestInput.vue.d.ts +22 -0
  59. package/dist/src/components/classification/PlanSuggestInput.vue.d.ts.map +1 -0
  60. package/dist/src/components/classification/PlanTreePanel.vue.d.ts +47 -0
  61. package/dist/src/components/classification/PlanTreePanel.vue.d.ts.map +1 -0
  62. package/dist/src/components/classification/UploadPlanPopup.vue.d.ts +5 -1
  63. package/dist/src/components/classification/UploadPlanPopup.vue.d.ts.map +1 -1
  64. package/dist/src/components/dashboard/DashboardAdminPage.vue.d.ts +13 -8
  65. package/dist/src/components/dashboard/DashboardAdminPage.vue.d.ts.map +1 -1
  66. package/dist/src/components/dashboard/editor/BlockConfigEditor.vue.d.ts +7 -2
  67. package/dist/src/components/dashboard/editor/BlockConfigEditor.vue.d.ts.map +1 -1
  68. package/dist/src/components/dashboard/editor/DashboardEditor.vue.d.ts +13 -8
  69. package/dist/src/components/dashboard/editor/DashboardEditor.vue.d.ts.map +1 -1
  70. package/dist/src/components/dashboard/editor/block-configs/ExternalAppsConfig.vue.d.ts +1 -1
  71. package/dist/src/components/dashboard/editor/grid/BlockTypeSelector.vue.d.ts +1 -1
  72. package/dist/src/components/dashboard/editor/grid/GridBlock.vue.d.ts +2 -2
  73. package/dist/src/components/dashboard/editor/grid/GridEditor.vue.d.ts +5 -5
  74. package/dist/src/components/layouts/AppLayout.vue.d.ts +62 -1
  75. package/dist/src/components/layouts/AppLayout.vue.d.ts.map +1 -1
  76. package/dist/src/components/layouts/AppMobileLayout.vue.d.ts +61 -2
  77. package/dist/src/components/layouts/AppMobileLayout.vue.d.ts.map +1 -1
  78. package/dist/src/components/layouts/AppSidebar.vue.d.ts +1 -0
  79. package/dist/src/components/layouts/AppSubmenu.vue.d.ts +11 -0
  80. package/dist/src/components/layouts/AppSubmenu.vue.d.ts.map +1 -1
  81. package/dist/src/components/layouts/SidebarProfileSection.vue.d.ts.map +1 -1
  82. package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts +20 -5
  83. package/dist/src/components/navigation/ContentGridView.vue.d.ts +13 -1
  84. package/dist/src/components/navigation/ContentGridView.vue.d.ts.map +1 -1
  85. package/dist/src/components/navigation/ContentListView.vue.d.ts.map +1 -1
  86. package/dist/src/components/navigation/ContentTableView.vue.d.ts +20 -5
  87. package/dist/src/components/navigation/DynamicContentView.vue.d.ts +82 -15
  88. package/dist/src/components/navigation/DynamicContentView.vue.d.ts.map +1 -1
  89. package/dist/src/components/navigation/PreviewPanel.vue.d.ts +2 -2
  90. package/dist/src/components/pdfTools/PdfToolsComponent.vue.d.ts +2 -0
  91. package/dist/src/components/pdfTools/PdfToolsComponent.vue.d.ts.map +1 -1
  92. package/dist/src/components/pdfTools/PdfToolsLoading.vue.d.ts +4 -0
  93. package/dist/src/components/pdfTools/PdfToolsLoading.vue.d.ts.map +1 -0
  94. package/dist/src/components/popup/CopyOrMovePopup.vue.d.ts +18 -3
  95. package/dist/src/components/popup/CopyOrMovePopup.vue.d.ts.map +1 -1
  96. package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts +69 -3
  97. package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts.map +1 -1
  98. package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts +14 -5
  99. package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts.map +1 -1
  100. package/dist/src/components/search/AdvancedViewPanel.vue.d.ts +14 -5
  101. package/dist/src/components/search/AdvancedViewPanel.vue.d.ts.map +1 -1
  102. package/dist/src/components/search/SaveViewPopup.vue.d.ts +4 -2
  103. package/dist/src/components/search/SaveViewPopup.vue.d.ts.map +1 -1
  104. package/dist/src/components/viewer/AudioPlayer.vue.d.ts +2 -2
  105. package/dist/src/components/viewer/lazyPdfComponents.d.ts +2 -0
  106. package/dist/src/components/viewer/lazyPdfComponents.d.ts.map +1 -1
  107. package/dist/src/components/views/PredefinedViewsPanel.vue.d.ts +1 -1
  108. package/dist/src/components/views/PredefinedViewsPanel.vue.d.ts.map +1 -1
  109. package/dist/src/components/workspace/WorkspaceCard.vue.d.ts +148 -1
  110. package/dist/src/components/workspace/WorkspaceCard.vue.d.ts.map +1 -1
  111. package/dist/src/components/workspace/WorkspaceList.vue.d.ts +94 -1
  112. package/dist/src/composables/useClassificationPlan.d.ts.map +1 -1
  113. package/dist/src/i18n/index.d.ts +252 -4
  114. package/dist/src/i18n/index.d.ts.map +1 -1
  115. package/dist/src/index.d.ts +8 -1
  116. package/dist/src/index.d.ts.map +1 -1
  117. package/dist/src/services/AiImportService.d.ts +125 -0
  118. package/dist/src/services/AiImportService.d.ts.map +1 -0
  119. package/dist/src/services/AiMetadataService.d.ts +81 -0
  120. package/dist/src/services/AiMetadataService.d.ts.map +1 -0
  121. package/dist/src/services/AlfrescoFileService.d.ts.map +1 -1
  122. package/dist/src/services/ClassificationFileService.d.ts +17 -2
  123. package/dist/src/services/ClassificationFileService.d.ts.map +1 -1
  124. package/dist/src/services/ClassificationService.d.ts +5 -0
  125. package/dist/src/services/ClassificationService.d.ts.map +1 -1
  126. package/dist/src/services/ErrorService.d.ts.map +1 -1
  127. package/dist/src/services/IconeService.d.ts.map +1 -1
  128. package/dist/src/services/IndexAwaitService.d.ts +61 -0
  129. package/dist/src/services/IndexAwaitService.d.ts.map +1 -0
  130. package/dist/src/services/NodeDragService.d.ts +93 -0
  131. package/dist/src/services/NodeDragService.d.ts.map +1 -0
  132. package/dist/src/services/PdfInsertService.d.ts +2 -0
  133. package/dist/src/services/PdfInsertService.d.ts.map +1 -0
  134. package/dist/src/services/PlanSuggestService.d.ts +29 -0
  135. package/dist/src/services/PlanSuggestService.d.ts.map +1 -0
  136. package/dist/src/services/PlanTreePdfService.d.ts +26 -0
  137. package/dist/src/services/PlanTreePdfService.d.ts.map +1 -0
  138. package/dist/src/services/WorkspaceService.d.ts +42 -0
  139. package/dist/src/services/WorkspaceService.d.ts.map +1 -1
  140. package/dist/src/stores/aiImport.d.ts +43 -0
  141. package/dist/src/stores/aiImport.d.ts.map +1 -0
  142. package/dist/src/stores/indexAwait.d.ts +83 -0
  143. package/dist/src/stores/indexAwait.d.ts.map +1 -0
  144. package/dist/src/stores/navigation.d.ts +12 -1
  145. package/dist/src/stores/navigation.d.ts.map +1 -1
  146. package/dist/src/stores/upload.d.ts +86 -4
  147. package/dist/src/stores/upload.d.ts.map +1 -1
  148. package/dist/src/stores/user.d.ts +23 -5
  149. package/dist/src/stores/user.d.ts.map +1 -1
  150. package/dist/src/utils/classificationPlanUtils.d.ts +44 -1
  151. package/dist/src/utils/classificationPlanUtils.d.ts.map +1 -1
  152. package/dist/src/utils/indexAwaitReducer.d.ts +56 -0
  153. package/dist/src/utils/indexAwaitReducer.d.ts.map +1 -0
  154. package/dist/src/utils/planTree.d.ts +35 -0
  155. package/dist/src/utils/planTree.d.ts.map +1 -0
  156. package/dist/src/utils/treeA11y.d.ts +17 -0
  157. package/dist/src/utils/treeA11y.d.ts.map +1 -0
  158. package/dist/src/utils/workspaceAppearance.d.ts +16 -0
  159. package/dist/src/utils/workspaceAppearance.d.ts.map +1 -0
  160. package/package.json +7 -7
  161. package/dist/PdfToolsComponent-BC45mg3C.js.map +0 -1
  162. package/dist/index-CPjFX5To.js.map +0 -1
@@ -0,0 +1,81 @@
1
+ /**
2
+ * @param {Object} field a classification plan field
3
+ * @param {{dictionaries?: Array, lexicons?: Array}} sources
4
+ * @returns {?Object} the field as the Pristy Core endpoint describes it, or null when it cannot be suggested
5
+ */
6
+ export function toFieldSpec(field: any, sources: {
7
+ dictionaries?: any[];
8
+ lexicons?: any[];
9
+ }): any | null;
10
+ /**
11
+ * @param {Object} options
12
+ * @param {Array<Object>} options.fields the plan fields shown in the form
13
+ * @param {Object} options.metadata the current form values, by field name
14
+ * @param {Set<string>} [options.disabledFields] fields the user cannot change, never sent
15
+ * @param {Array<string>} [options.requiredFields]
16
+ * @param {Array} [options.dictionaries]
17
+ * @param {Array} [options.lexicons]
18
+ * @param {string} [options.nature] the nature label
19
+ * @param {string} [options.locale]
20
+ * @returns {{nature: ?string, locale: string, fields: Array<Object>, values: Object}}
21
+ */
22
+ export function buildSuggestionRequest({ fields, metadata, disabledFields, requiredFields, dictionaries, lexicons, nature, locale, }: {
23
+ fields: Array<any>;
24
+ metadata: any;
25
+ disabledFields?: Set<string>;
26
+ requiredFields?: Array<string>;
27
+ dictionaries?: any[];
28
+ lexicons?: any[];
29
+ nature?: string;
30
+ locale?: string;
31
+ }): {
32
+ nature: string | null;
33
+ locale: string;
34
+ fields: Array<any>;
35
+ values: any;
36
+ };
37
+ /**
38
+ * @param {*} value a suggested value, as the endpoint returns it
39
+ * @param {Object} spec the field spec it was requested with
40
+ * @returns {*} the value in the shape the form inputs expect
41
+ */
42
+ export function toFormValue(value: any, spec: any): any;
43
+ /**
44
+ * @param {Object} request the request sent, see {@link buildSuggestionRequest}
45
+ * @param {Object} answer the endpoint answer
46
+ * @returns {Array<Object>} one row per suggested field, in form order: `name`, `label`, `spec`,
47
+ * `current`, `proposed` (form shape), `kind`, `confidence`, `reason`, `accepted`
48
+ */
49
+ export function buildReview(request: any, answer: any): Array<any>;
50
+ /**
51
+ * @param {Object} metadata the current form values
52
+ * @param {Array<Object>} rows the reviewed rows, see {@link buildReview}
53
+ * @returns {{metadata: Object, applied: Set<string>}} the new form values and the fields changed
54
+ */
55
+ export function applyAccepted(metadata: any, rows: Array<any>): {
56
+ metadata: any;
57
+ applied: Set<string>;
58
+ };
59
+ /**
60
+ * @param {*} value a current or proposed value
61
+ * @param {Object} spec its field spec
62
+ * @param {string} locale
63
+ * @returns {string} the value as shown to the user
64
+ */
65
+ export function displayValue(value: any, spec: any, locale: string): string;
66
+ /**
67
+ * @param {Error} error a rejection of {@link fetchSuggestions}
68
+ * @returns {string} the i18n key describing it
69
+ */
70
+ export function errorKey(error: Error): string;
71
+ /**
72
+ * @param {string} nodeId the document
73
+ * @param {Object} request see {@link buildSuggestionRequest}
74
+ * @returns {Promise<Object>} the endpoint answer; rejects with an Error carrying `status`
75
+ */
76
+ export function fetchSuggestions(nodeId: string, request: any): Promise<any>;
77
+ export const AI_METADATA_CAPABILITY: "ai.metadata-suggestions";
78
+ export const KIND_FILL: "fill";
79
+ export const KIND_CORRECTION: "correction";
80
+ export const KIND_CONFIRMED: "confirmed";
81
+ //# sourceMappingURL=AiMetadataService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AiMetadataService.d.ts","sourceRoot":"","sources":["../../../src/services/AiMetadataService.js"],"names":[],"mappings":"AA4GA;;;;GAIG;AACH,iDAHW;IAAC,YAAY,CAAC,QAAQ;IAAC,QAAQ,CAAC,QAAO;CAAC,GACtC,UAAO,CAyBnB;AAeD;;;;;;;;;;;GAWG;AACH,sIAVG;IAA+B,MAAM,EAA7B,KAAK,KAAQ;IACG,QAAQ;IACF,cAAc,GAApC,GAAG,CAAC,MAAM,CAAC;IACa,cAAc,GAAtC,KAAK,CAAC,MAAM,CAAC;IACG,YAAY;IACZ,QAAQ;IACP,MAAM,GAAvB,MAAM;IACW,MAAM,GAAvB,MAAM;CACd,GAAU;IAAC,MAAM,EAAG,MAAM,OAAA,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,KAAK,KAAQ,CAAC;IAAC,MAAM,MAAQ;CAAC,CA2BpF;AAuCD;;;;GAIG;AACH,mCAJW,GAAC,cAEC,GAAC,CAoBb;AAED;;;;;GAKG;AACH,wDAHa,KAAK,KAAQ,CAiCzB;AAED;;;;GAIG;AACH,mDAHW,KAAK,KAAQ,GACX;IAAC,QAAQ,MAAS;IAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAC,CAYpD;AAED;;;;;GAKG;AACH,oCALW,GAAC,qBAED,MAAM,GACJ,MAAM,CA4BlB;AAED;;;GAGG;AACH,gCAHW,KAAK,GACH,MAAM,CAIlB;AAED;;;;GAIG;AACH,yCAJW,MAAM,iBAEJ,OAAO,KAAQ,CAoB3B;AAlWD,qCAAsC,yBAAyB,CAAC;AAEhE,wBAAyB,MAAM,CAAC;AAChC,8BAA+B,YAAY,CAAC;AAC5C,6BAA8B,WAAW,CAAC"}
@@ -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;;;;;;;;;;;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
+ {"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,qCAaC;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,0BASC;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;qBAlmBoB,WAAW"}
@@ -1,3 +1,5 @@
1
+ export const CONFLICT_VERSION: "version";
2
+ export const CONFLICT_INCREMENT: "increment";
1
3
  declare const _default: ClassificationFileService;
2
4
  export default _default;
3
5
  /**
@@ -42,9 +44,21 @@ declare class ClassificationFileService {
42
44
  * @param {Object} metadata - New metadata properties
43
45
  * @param {string} newFileName - New file name (optional)
44
46
  * @param {Object} nature - Nature object with type and aspects
45
- * @returns {Promise<Object>} The updated node
47
+ * @param {string} [destinationNodeId] - Root replacing the document library
48
+ * @param {?string} [onConflict] - What to do when the target folder already holds
49
+ * that name: null throws a conflict error, {@link CONFLICT_INCREMENT} picks a free
50
+ * name, {@link CONFLICT_VERSION} makes the document a new version of the existing one
51
+ * @returns {Promise<{targetFolderId: string, nodeId: string, name: string, replaced: boolean}>}
52
+ * `nodeId` is the filed document: the existing one when it received a new version
53
+ * @throws {Error} with `conflict: true` and the conflicting `name` when no
54
+ * `onConflict` is given and the name is taken
46
55
  */
47
- requalifyDocument(nodeId: string, workspaceSiteId: string, pathFull: any[], metadata: any, newFileName: string, nature: any, destinationNodeId: any): Promise<any>;
56
+ requalifyDocument(nodeId: string, workspaceSiteId: string, pathFull: any[], metadata: any, newFileName: string, nature: any, destinationNodeId?: string, onConflict?: string | null): Promise<{
57
+ targetFolderId: string;
58
+ nodeId: string;
59
+ name: string;
60
+ replaced: boolean;
61
+ }>;
48
62
  /**
49
63
  * Uploads files with metadata according to a classification plan using the injector.
50
64
  * Delegates to the upload store to leverage worker-based implementation for better
@@ -56,5 +70,6 @@ declare class ClassificationFileService {
56
70
  * @param {Object[]} fileRenames Array of objects with original and new names.
57
71
  */
58
72
  uploadWithPlan(workspaceSiteId: string, pathFull: any[], files: File[], metadata: any, fileRenames: any[], destinationNodeId: any): Promise<void>;
73
+ #private;
59
74
  }
60
75
  //# sourceMappingURL=ClassificationFileService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClassificationFileService.d.ts","sourceRoot":"","sources":["../../../src/services/ClassificationFileService.js"],"names":[],"mappings":";;AAuBA;;;;GAIG;AACH;IACE;;;;;;;OAOG;IACH,gCAJW,MAAM,YACN,KAAQ,GACN,OAAO,CAAC,MAAM,CAAC,CA0C3B;IAED;;;;OAIG;IACH,sCAHW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAM3B;IAED;;;;;;;;;;OAUG;IACH,oCARW,MAAM,YACN,KAAQ,kBACR,MAAM,YACN,MAAM,uDAGJ,OAAO,KAAQ,CAoE3B;IAED;;;;;;;;;;OAUG;IACH,0BARW,MAAM,mBACN,MAAM,YACN,KAAQ,8BAER,MAAM,wCAEJ,OAAO,KAAQ,CA0C3B;IAED;;;;;;;;;OASG;IACH,gCANW,MAAM,YACN,KAAQ,SACR,IAAI,EAAE,8BAEN,KAAQ,yCAmBlB;CACF"}
1
+ {"version":3,"file":"ClassificationFileService.d.ts","sourceRoot":"","sources":["../../../src/services/ClassificationFileService.js"],"names":[],"mappings":"AAuBA,+BAAgC,SAAS,CAAC;AAC1C,iCAAkC,WAAW,CAAC;;;AAI9C;;;;GAIG;AACH;IACE;;;;;;;OAOG;IACH,gCAJW,MAAM,YACN,KAAQ,GACN,OAAO,CAAC,MAAM,CAAC,CA0C3B;IAED;;;;OAIG;IACH,sCAHW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAM3B;IAED;;;;;;;;;;OAUG;IACH,oCARW,MAAM,YACN,KAAQ,kBACR,MAAM,YACN,MAAM,uDAGJ,OAAO,KAAQ,CAoE3B;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,0BAfW,MAAM,mBACN,MAAM,YACN,KAAQ,8BAER,MAAM,mCAEN,MAAM,eACL,MAAM,OAAA,GAGL,OAAO,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAC,CAAC,CAmD9F;IAsCD;;;;;;;;;OASG;IACH,gCANW,MAAM,YACN,KAAQ,SACR,IAAI,EAAE,8BAEN,KAAQ,yCAmBlB;;CACF"}
@@ -19,6 +19,11 @@ declare class ClassificationService {
19
19
  * @returns {Promise<string[]>} A promise that resolves with an array of filenames.
20
20
  */
21
21
  listPlans(): Promise<string[]>;
22
+ /**
23
+ * @param {string} filename The name of the plan file.
24
+ * @returns {Promise<?string>} the node id of the plan file, or null when it does not exist
25
+ */
26
+ getPlanNodeId(filename: string): Promise<string | null>;
22
27
  /**
23
28
  * Fetches a classification plan along with its allowableOperations.
24
29
  * @param {string} filename The name of the plan file.
@@ -1 +1 @@
1
- {"version":3,"file":"ClassificationService.d.ts","sourceRoot":"","sources":["../../../src/services/ClassificationService.js"],"names":[],"mappings":";;AAuBA;IACE;;;;OAIG;IACH,kBAHW,MAAM,GACJ,OAAO,CAAC,GAAG,CAAC,CAOxB;IAED;;;;;OAKG;IACH,mBAJW,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CASzB;IAED;;;OAGG;IACH,aAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAU7B;IAED;;;;OAIG;IACH,iCAHW,MAAM,GACJ,OAAO,CAAC;QAAC,OAAO,EAAE,GAAG,CAAC;QAAC,mBAAmB,EAAE,MAAM,EAAE,CAAA;KAAC,CAAC,CAUlE;IAED;;;;;;OAMG;IACH,mBAFa,OAAO,CAAC,KAAQ,CAAC,CAwB7B;;CAuBF"}
1
+ {"version":3,"file":"ClassificationService.d.ts","sourceRoot":"","sources":["../../../src/services/ClassificationService.js"],"names":[],"mappings":";;AAuBA;IACE;;;;OAIG;IACH,kBAHW,MAAM,GACJ,OAAO,CAAC,GAAG,CAAC,CAOxB;IAED;;;;;OAKG;IACH,mBAJW,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CASzB;IAED;;;OAGG;IACH,aAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAU7B;IAED;;;OAGG;IACH,wBAHW,MAAM,GACJ,OAAO,CAAE,MAAM,OAAA,CAAC,CAK5B;IAED;;;;OAIG;IACH,iCAHW,MAAM,GACJ,OAAO,CAAC;QAAC,OAAO,EAAE,GAAG,CAAC;QAAC,mBAAmB,EAAE,MAAM,EAAE,CAAA;KAAC,CAAC,CAUlE;IAED;;;;;;OAMG;IACH,mBAFa,OAAO,CAAC,KAAQ,CAAC,CAwB7B;;CAyBF"}
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorService.d.ts","sourceRoot":"","sources":["../../../src/services/ErrorService.js"],"names":[],"mappings":"AAoFA;;;;;;;;;;;GAWG;AACH,uCATW,MAAM,SAEd;IAAsB,MAAM,EAApB,MAAM;IACS,QAAQ,GAC/B;QAAgC,KAAK,GACrC;YAAsC,OAAO,GAArC,MAAM;SACd;KAAA;IAA6B,OAAO,EAA5B,MAAM,MAAO;CACrB,GAAS,WAAW,CAgCtB;AAoFD,2CAyCC;;;AAvOD;;;;;GAKG;AACH;IACE,iDAIC;IAFC,UAAgB;IAChB,WAAkB;CAErB;AAgGD;;;;;GAKG;AACH;IACE,kCAwBC;IAED,iDAUC;IAED,6CAcC;IAED,uCAkBC;CACF"}
1
+ {"version":3,"file":"ErrorService.d.ts","sourceRoot":"","sources":["../../../src/services/ErrorService.js"],"names":[],"mappings":"AAwFA;;;;;;;;;;;GAWG;AACH,uCATW,MAAM,SAEd;IAAsB,MAAM,EAApB,MAAM;IACS,QAAQ,GAC/B;QAAgC,KAAK,GACrC;YAAsC,OAAO,GAArC,MAAM;SACd;KAAA;IAA6B,OAAO,EAA5B,MAAM,MAAO;CACrB,GAAS,WAAW,CAgCtB;AAoFD,2CAyCC;;;AA3OD;;;;;GAKG;AACH;IACE,iDAIC;IAFC,UAAgB;IAChB,WAAkB;CAErB;AAoGD;;;;;GAKG;AACH;IACE,kCAwBC;IAED,iDAUC;IAED,6CAcC;IAED,uCAkBC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"IconeService.d.ts","sourceRoot":"","sources":["../../../src/services/IconeService.js"],"names":[],"mappings":";;AAoBA;;;GAGG;AACH;IACE,2BA6LC;IAED,6BA2HC;CACF"}
1
+ {"version":3,"file":"IconeService.d.ts","sourceRoot":"","sources":["../../../src/services/IconeService.js"],"names":[],"mappings":";;AAoBA;;;GAGG;AACH;IACE,2BA8LC;IAED,6BA4HC;CACF"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @param {?string} base the Alfresco host, `ALFRESCO_HOST`; the page origin when empty
3
+ * @returns {string} the `ws(s)://` URL of the index await socket
4
+ */
5
+ export function indexAwaitSocketUrl(base: string | null): string;
6
+ /**
7
+ * @param {*} nodeIds
8
+ * @returns {string[]} the non-empty string ids, each once, in their first order
9
+ */
10
+ export function uniqueNodeIds(nodeIds: any): string[];
11
+ /**
12
+ * @param {string[]} nodeIds
13
+ * @param {number} [size]
14
+ * @returns {string[][]} consecutive slices of at most `size` ids
15
+ */
16
+ export function splitBatches(nodeIds: string[], size?: number): string[][];
17
+ export { INDEX_AWAIT_STATUS } from '../../utils/indexAwaitReducer.js';
18
+ export const INDEX_AWAIT_CAPABILITY: "solr.index-await";
19
+ export const INDEX_AWAIT_SOCKET_PATH: "/alfresco/pristy-ws/index-await";
20
+ export const DEFAULT_TIMEOUT: 20000;
21
+ export const CLOSE_MARGIN: 5000;
22
+ export const MAX_BATCH: 1000;
23
+ export const LISTING_SOURCE: Readonly<{
24
+ DB: "db";
25
+ SEARCH: "search";
26
+ }>;
27
+ declare const _default: IndexAwaitService;
28
+ export default _default;
29
+ /**
30
+ * Waits until nodes are returned by a search, through the Pristy Core
31
+ * `index-await` WebSocket. See `docs/IndexAwait.md`.
32
+ */
33
+ declare class IndexAwaitService {
34
+ /**
35
+ * @returns {Promise<boolean>} true when the Pristy Core announces `solr.index-await`
36
+ */
37
+ isAvailable(): Promise<boolean>;
38
+ /**
39
+ * @param {string[]} nodeIds node UUIDs of `workspace://SpacesStore`
40
+ * @param {{timeout?: number, onProgress?: function({done: number, total: number}): void}} [options]
41
+ * @returns {Promise<{status: string, searchable: string[], errors: Array<{nodeId: string, verdict: ?string}>, rejected: string[], pending: string[]}>}
42
+ * never rejects; `status` is `done`, `timeout` or `unavailable`
43
+ */
44
+ awaitSearchable(nodeIds: string[], { timeout, onProgress }?: {
45
+ timeout?: number;
46
+ onProgress?: (arg0: {
47
+ done: number;
48
+ total: number;
49
+ }) => void;
50
+ }): Promise<{
51
+ status: string;
52
+ searchable: string[];
53
+ errors: Array<{
54
+ nodeId: string;
55
+ verdict: string | null;
56
+ }>;
57
+ rejected: string[];
58
+ pending: string[];
59
+ }>;
60
+ }
61
+ //# sourceMappingURL=IndexAwaitService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndexAwaitService.d.ts","sourceRoot":"","sources":["../../../src/services/IndexAwaitService.js"],"names":[],"mappings":"AA6CA;;;GAGG;AACH,0CAHY,MAAM,OAAA,GACL,MAAM,CAMlB;AAED;;;GAGG;AACH,uCAHW,GAAC,GACC,MAAM,EAAE,CASpB;AAED;;;;GAIG;AACH,sCAJW,MAAM,EAAE,SACR,MAAM,GACJ,MAAM,EAAE,EAAE,CAQtB;;AAjDD,qCAAsC,kBAAkB,CAAC;AACzD,sCAAuC,iCAAiC,CAAC;AACzE,8BAA+B,KAAK,CAAC;AACrC,2BAA4B,IAAI,CAAC;AACjC,wBAAyB,IAAI,CAAC;AAE9B;;;GAGG;;;AAqGH;;;GAGG;AACH;IACE;;OAEG;IACH,eAFa,OAAO,CAAC,OAAO,CAAC,CAI5B;IAED;;;;;OAKG;IACH,yBALW,MAAM,EAAE,4BACR;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,CAAS,IAA6B,EAA7B;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAG,IAAI,CAAA;KAAC,GAC5E,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,KAAK,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAG,MAAM,OAAA,CAAA;SAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAC,CAAC,CAsErJ;CACF"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Nodes carried by a drag started on `node`: the whole selection when the
3
+ * node belongs to it, the node alone otherwise.
4
+ * @param {Object} node
5
+ * @param {Array} selectedNodes
6
+ * @return {Array}
7
+ */
8
+ export function draggedNodes(node: any, selectedNodes?: any[]): any[];
9
+ /**
10
+ * Fill a `dragstart` event with the Pristy nodes being dragged.
11
+ * @param {DragEvent} event
12
+ * @param {Object} node
13
+ * @param {Array} selectedNodes
14
+ */
15
+ export function startNodeDrag(event: DragEvent, node: any, selectedNodes?: any[]): void;
16
+ /**
17
+ * Forget the nodes of the drag in progress.
18
+ */
19
+ export function endNodeDrag(): void;
20
+ /**
21
+ * Whether a node is part of the drag in progress.
22
+ * @param {string} id
23
+ * @return {boolean}
24
+ */
25
+ export function isDragged(id: string): boolean;
26
+ /**
27
+ * Pass-through attributes making a DataTable row draggable.
28
+ * @param {Object} node
29
+ * @return {Object}
30
+ */
31
+ export function draggableRowAttrs(node: any): any;
32
+ /**
33
+ * Capture-phase `dragstart` handler for a DataTable root.
34
+ * @param {DragEvent} event
35
+ * @param {Array} nodes the rows of the table
36
+ * @param {Array} selectedNodes
37
+ */
38
+ export function startRowDrag(event: DragEvent, nodes: any[], selectedNodes?: any[]): void;
39
+ /**
40
+ * Whether a drag event carries Pristy nodes. Readable during `dragover`,
41
+ * where the payload itself is not.
42
+ * @param {DragEvent} event
43
+ * @return {boolean}
44
+ */
45
+ export function isNodeDrag(event: DragEvent): boolean;
46
+ /**
47
+ * Read the Pristy nodes of a `drop` event.
48
+ * @param {DragEvent} event
49
+ * @return {Array} empty when the event carries no Pristy nodes
50
+ */
51
+ export function readNodeDrag(event: DragEvent): any[];
52
+ /**
53
+ * Attributes making a folder row or card a drop target for Pristy nodes.
54
+ * @param {Object} folder
55
+ * @param {Function} onDrop called with (nodes, folder)
56
+ * @return {Object} empty for a file
57
+ */
58
+ export function folderDropAttrs(folder: any, onDrop: Function): any;
59
+ /**
60
+ * Attributes making a PDF row or card a drop target for PDF files only.
61
+ * @param {Object} file
62
+ * @param {Function} onDrop called with (nodes, file)
63
+ * @return {Object} empty for anything but a PDF file
64
+ */
65
+ export function pdfDropAttrs(file: any, onDrop: Function): any;
66
+ /**
67
+ * Drop target attributes of a content row or card: a folder takes any node,
68
+ * a PDF file takes PDF files, anything else takes nothing.
69
+ * @param {Object} node
70
+ * @param {Function} onDrop called with (nodes, node)
71
+ * @return {Object}
72
+ */
73
+ export function dropTargetAttrs(node: any, onDrop: Function): any;
74
+ export const NODE_DRAG_MIME: "application/x-pristy-nodes";
75
+ export const DROP_TARGET_CLASS: "node-drop-target";
76
+ export const PDF_MIME: "application/pdf";
77
+ export const NODE_ID_ATTRIBUTE: "data-node-id";
78
+ declare namespace _default {
79
+ export { NODE_DRAG_MIME };
80
+ export { draggedNodes };
81
+ export { draggableRowAttrs };
82
+ export { dropTargetAttrs };
83
+ export { endNodeDrag };
84
+ export { folderDropAttrs };
85
+ export { pdfDropAttrs };
86
+ export { isDragged };
87
+ export { startRowDrag };
88
+ export { startNodeDrag };
89
+ export { isNodeDrag };
90
+ export { readNodeDrag };
91
+ }
92
+ export default _default;
93
+ //# sourceMappingURL=NodeDragService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeDragService.d.ts","sourceRoot":"","sources":["../../../src/services/NodeDragService.js"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AACH,sEAKC;AAED;;;;;GAKG;AACH,qCAJW,SAAS,0CAcnB;AAED;;GAEG;AACH,oCAEC;AAED;;;;GAIG;AACH,8BAHW,MAAM,GACL,OAAO,CAIlB;AAID;;;;GAIG;AACH,kDAQC;AAED;;;;;GAKG;AACH,oCAJW,SAAS,6CAgBnB;AAED;;;;;GAKG;AACH,kCAHW,SAAS,GACR,OAAO,CAQlB;AAED;;;;GAIG;AACH,oCAHW,SAAS,SAanB;AA8CD;;;;;GAKG;AACH,oEAKC;AAED;;;;;GAKG;AACH,+DASC;AAED;;;;;;GAMG;AACH,kEAIC;AA9ND,6BAA8B,4BAA4B,CAAC;AAE3D,gCAAiC,kBAAkB,CAAC;AAEpD,uBAAwB,iBAAiB,CAAC;AAiE1C,gCAAiC,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export function parseNodeId(text: string): string | null;
2
+ //# sourceMappingURL=PdfInsertService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PdfInsertService.d.ts","sourceRoot":"","sources":["../../../src/services/PdfInsertService.js"],"names":[],"mappings":"AAwBO,kCAHI,MAAM,GACJ,MAAM,GAAC,IAAI,CA+BvB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Build the search body listing the nodes that carry a value for `property`.
3
+ * @param {Object} params
4
+ * @param {string} params.property - property QName, e.g. "ent:nomTiers"
5
+ * @param {string} [params.prefix] - what the user typed so far
6
+ * @param {string} [params.siteId] - workspace short name restricting the search
7
+ * @returns {Object} body for searchApi.search
8
+ */
9
+ export function buildSuggestQuery({ property, prefix, siteId }: {
10
+ property: string;
11
+ prefix?: string;
12
+ siteId?: string;
13
+ }): any;
14
+ /**
15
+ * Distinct values of `property` among the search entries, sorted, those
16
+ * starting with `prefix` first.
17
+ * @param {Array} entries - searchApi result entries
18
+ * @param {string} property
19
+ * @param {string} [prefix]
20
+ * @returns {string[]}
21
+ */
22
+ export function distinctValues(entries: any[], property: string, prefix?: string): string[];
23
+ /**
24
+ * Values already entered for `property` in the workspace.
25
+ * @param {Object} params - see buildSuggestQuery
26
+ * @returns {Promise<string[]>}
27
+ */
28
+ export function suggestValues(params: any): Promise<string[]>;
29
+ //# sourceMappingURL=PlanSuggestService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanSuggestService.d.ts","sourceRoot":"","sources":["../../../src/services/PlanSuggestService.js"],"names":[],"mappings":"AA0BA;;;;;;;GAOG;AACH,gEALG;IAAuB,QAAQ,EAAvB,MAAM;IACU,MAAM,GAAtB,MAAM;IACU,MAAM,GAAtB,MAAM;CACd,OAqBF;AAED;;;;;;;GAOG;AACH,yDAJW,MAAM,WACN,MAAM,GACJ,MAAM,EAAE,CA0BpB;AAED;;;;GAIG;AACH,4CAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAS7B"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @param {string} text
3
+ * @param {Object} font
4
+ * @param {number} size
5
+ * @param {number} width the room available
6
+ * @returns {string[]} the text cut at spaces into lines fitting that width; a
7
+ * word longer than the width stays whole
8
+ */
9
+ export function wrapText(text: string, font: any, size: number, width: number): string[];
10
+ /**
11
+ * @param {Object} options
12
+ * @param {string} options.title
13
+ * @param {string} [options.subtitle]
14
+ * @param {Array<Object>} options.lines as returned by `planTreeLines`
15
+ * @param {Object} options.texts the translated words: `dynamic`, `missing`,
16
+ * `hidden`, `natureCount(count)` and `page(number, total)`
17
+ * @returns {Promise<Uint8Array>} an A4 PDF listing the plan folder tree,
18
+ * folders in bold followed by their nature count, natures with their code
19
+ */
20
+ export function buildPlanTreePdf({ title, subtitle, lines, texts }: {
21
+ title: string;
22
+ subtitle?: string;
23
+ lines: Array<any>;
24
+ texts: any;
25
+ }): Promise<Uint8Array>;
26
+ //# sourceMappingURL=PlanTreePdfService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanTreePdfService.d.ts","sourceRoot":"","sources":["../../../src/services/PlanTreePdfService.js"],"names":[],"mappings":"AA+CA;;;;;;;GAOG;AACH,+BAPW,MAAM,mBAEN,MAAM,SACN,MAAM,GACJ,MAAM,EAAE,CAoBpB;AAED;;;;;;;;;GASG;AACH,oEARG;IAAwB,KAAK,EAArB,MAAM;IACW,QAAQ,GAAzB,MAAM;IACiB,KAAK,EAA5B,KAAK,KAAQ;IACG,KAAK;CAE7B,GAAU,OAAO,CAAC,UAAU,CAAC,CA4F/B"}
@@ -9,18 +9,60 @@ declare class WorkspaceService {
9
9
  lruWorkspaces: QuickLRU<any, any>;
10
10
  getWorkspaces(): Promise<any>;
11
11
  searchAllWorkspaces(extraQuery?: string): Promise<any>;
12
+ /**
13
+ * Finds the sites whose short name, title or description contain a term,
14
+ * searched by the server so that it reaches beyond the listing limit.
15
+ * @param {string} term at least 2 characters, escaped by the server
16
+ * @param {number} maxItems maximum number of sites returned
17
+ * @returns {Promise<{sites: Array, hasMoreItems: boolean}>} sites shaped
18
+ * like `getWorkspaces()` entries, role included
19
+ */
20
+ findWorkspaces(term: string, maxItems: number): Promise<{
21
+ sites: any[];
22
+ hasMoreItems: boolean;
23
+ }>;
24
+ /**
25
+ * Fetches the site nodes of the given guids, shaped like
26
+ * `searchAllWorkspaces()` entries.
27
+ * @param {Array<string>} guids site node guids
28
+ * @returns {Promise<Array>} the site nodes found
29
+ */
30
+ searchWorkspaceNodes(guids: Array<string>): Promise<any[]>;
31
+ _toWorkspaceNode(entry: any): any;
12
32
  /**
13
33
  * Call sitesApi.getSite to get Site
14
34
  * @param id siteid
15
35
  * @returns {Promise<Site>}
16
36
  */
17
37
  getWorkspace(id: any): Promise<Site>;
38
+ /**
39
+ * @param {string} id site short name
40
+ * @returns {Promise<{count: number, members: Array<{id: string, name: string}>}>}
41
+ * how many members the site has, and its first three
42
+ */
43
+ getWorkspaceMemberSummary(id: string): Promise<{
44
+ count: number;
45
+ members: Array<{
46
+ id: string;
47
+ name: string;
48
+ }>;
49
+ }>;
18
50
  getWorkspaceMemberships(id: any): Promise<any>;
19
51
  getWorkspaceMembershipsWithOpts(id: any, opts: any): Promise<any>;
20
52
  getWorkspaceGroupsWithOpts(id: any, opts: any): Promise<any>;
21
53
  getWorkspaceGroups(id: any): Promise<any>;
22
54
  createWorkspace(id: any, title: any, descr: any, visibility: any): Promise< SiteEntry>;
55
+ /**
56
+ * Invalidate cache entries listing workspaces or describing one of them
57
+ * @private
58
+ */
59
+ private _invalidateWorkspacesCache;
23
60
  requestJoinWorkspace(personId: any, siteId: any): Promise< SiteMembershipRequestEntry>;
61
+ /**
62
+ * @returns {Promise<Set<string>>} short names of the moderated sites the
63
+ * current user asked to join and is still waiting for
64
+ */
65
+ getPendingJoinRequests(): Promise<Set<string>>;
24
66
  /**
25
67
  * Invalidate cache entries for workspace members
26
68
  * @private
@@ -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,CA+C1B;IAED;;;;;;;;;;;OAWG;IACH,mBAJW,MAAM,aACN,MAAM,GACJ,OAAO,OAAO,CAoD1B;IAED,iEAMC;IAED,mFAIC;CACF;qBA5doB,WAAW"}
1
+ {"version":3,"file":"WorkspaceService.d.ts","sourceRoot":"","sources":["../../../src/services/WorkspaceService.js"],"names":[],"mappings":";;;AAuBA;;GAEG;AACH;IAEI,kCAGE;IAEJ,8BAqBC;IAED,uDAiCC;IAED;;;;;;;OAOG;IACH,qBALW,MAAM,YACN,MAAM,GACJ,OAAO,CAAC;QAAC,KAAK,QAAQ;QAAC,YAAY,EAAE,OAAO,CAAA;KAAC,CAAC,CAa1D;IAED;;;;;OAKG;IACH,4BAHW,KAAK,CAAC,MAAM,CAAC,GACX,OAAO,OAAO,CA8B1B;IAED,kCAKC;IAED;;;;OAIG;IACH,uBAFa,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED;;;;OAIG;IACH,8BAJW,MAAM,GACJ,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,KAAK,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAC,CAAC,CAAA;KAAC,CAAC,CA4BhF;IAED,+CAkBC;IAED,kEAeC;IAED,6DAgBC;IAED,0CAkBC;IAED,iHAiBC;IAED;;;OAGG;IACH,mCAYC;IAED,iHAqBC;IAED;;;OAGG;IACH,0BAHa,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAqBhC;IAED;;;OAGG;IACH,gCAeC;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,iEAYC;IAED,mFAUC;CACF;qBA7nBoB,WAAW"}
@@ -0,0 +1,43 @@
1
+ import { StoreDefinition, PiniaCustomStateProperties } from 'pinia';
2
+ export const UPLOAD_SENDING: "sending";
3
+ export const UPLOAD_SENT: "sent";
4
+ export const UPLOAD_FAILED: "failed";
5
+ /**
6
+ * Files being sent to the AI import folder. The upload goes on in the background,
7
+ * so the import page lists them before their node exists. See `docs/AiImport.md`.
8
+ */
9
+ export const useAiImportStore: StoreDefinition<"AiImportStore", {
10
+ folderId: any;
11
+ uploads: any[];
12
+ }, {
13
+ pendingUploads: (state: {
14
+ folderId: any;
15
+ uploads: any[];
16
+ } & PiniaCustomStateProperties<{
17
+ folderId: any;
18
+ uploads: any[];
19
+ }>) => any[];
20
+ }, {
21
+ resolveFolder(): Promise<any>;
22
+ /**
23
+ * Resolves the import folder and the plan, then sends the files one by one
24
+ * without waiting for them.
25
+ *
26
+ * @param {File[]} files
27
+ * @param {{siteId: string, planName: string}} target
28
+ * @returns {Promise<string>} the import folder id, once the upload has started
29
+ */
30
+ startImport(files: File[], target: {
31
+ siteId: string;
32
+ planName: string;
33
+ }): Promise<string>;
34
+ sendAll(folderId: any, batch: any, context: any): Promise<void>;
35
+ /**
36
+ * Forgets the uploads whose node is now listed.
37
+ *
38
+ * @param {Set<string>} listedIds node ids present in the folder listing
39
+ */
40
+ forgetListed(listedIds: Set<string>): void;
41
+ dismiss(key: any): void;
42
+ }>;
43
+ //# sourceMappingURL=aiImport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aiImport.d.ts","sourceRoot":"","sources":["../../../src/stores/aiImport.js"],"names":[],"mappings":";AAoBA,6BAA8B,SAAS,CAAC;AACxC,0BAA2B,MAAM,CAAC;AAClC,4BAA6B,QAAQ,CAAC;AAItC;;;GAGG;AACH;;;;;;;;;;;;;IAkBI;;;;;;;OAOG;uBAHQ,IAAI,EAAE,UACN;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,GAChC,OAAO,CAAC,MAAM,CAAC;;IAuC5B;;;;OAIG;4BADQ,GAAG,CAAC,MAAM,CAAC;;GAYvB"}
@@ -0,0 +1,83 @@
1
+ import { StoreDefinition, PiniaCustomStateProperties } from 'pinia';
2
+ export const INDEX_AWAIT_PHASE: Readonly<{
3
+ IDLE: "idle";
4
+ WAITING: "waiting";
5
+ SLOW: "slow";
6
+ }>;
7
+ export const useIndexAwaitStore: StoreDefinition<"indexAwait", {
8
+ phase: "idle";
9
+ done: number;
10
+ total: number;
11
+ }, {
12
+ visible: (state: {
13
+ phase: "idle";
14
+ done: number;
15
+ total: number;
16
+ } & PiniaCustomStateProperties<{
17
+ phase: "idle";
18
+ done: number;
19
+ total: number;
20
+ }>) => boolean;
21
+ isSlow: (state: {
22
+ phase: "idle";
23
+ done: number;
24
+ total: number;
25
+ } & PiniaCustomStateProperties<{
26
+ phase: "idle";
27
+ done: number;
28
+ total: number;
29
+ }>) => boolean;
30
+ }, {
31
+ /**
32
+ * Waits until nodes just changed are searchable, then reruns the page's
33
+ * query. See `docs/IndexAwait.md` for the decision table.
34
+ *
35
+ * @param {string[]} nodeIds
36
+ * @param {{listingSource?: string, onRefresh?: Function, onUnavailable?: Function, refreshOnDone?: boolean, timeout?: number, background?: boolean}} [options]
37
+ * @returns {Promise<{status: string, searchable: string[], errors: Array<Object>, rejected: string[], pending: string[]}>}
38
+ * never rejects; `status` is `skipped`, `done`, `timeout`, `unavailable` or `background`
39
+ */
40
+ waitFor(nodeIds: string[], { listingSource, onRefresh, onUnavailable, refreshOnDone, timeout, background, }?: {
41
+ listingSource?: string;
42
+ onRefresh?: Function;
43
+ onUnavailable?: Function;
44
+ refreshOnDone?: boolean;
45
+ timeout?: number;
46
+ background?: boolean;
47
+ }): Promise<{
48
+ status: string;
49
+ searchable: string[];
50
+ errors: Array<any>;
51
+ rejected: string[];
52
+ pending: string[];
53
+ }>;
54
+ beginWait(ids: any, background: any, resolve: any): {
55
+ id: any;
56
+ ids: any;
57
+ done: number;
58
+ total: any;
59
+ background: any;
60
+ backgroundFromStart: any;
61
+ resolve: any;
62
+ };
63
+ updateWait(waitId: any, done: any): void;
64
+ settleWait(wait: any, result: any, { onRefresh, onUnavailable, refreshOnDone }: {
65
+ onRefresh: any;
66
+ onUnavailable: any;
67
+ refreshOnDone: any;
68
+ }): Promise<void>;
69
+ endWait(waitId: any): void;
70
+ syncProgress(): void;
71
+ /**
72
+ * Hides the slow message and reruns the query of the page that waited.
73
+ *
74
+ * @returns {Promise<void>}
75
+ */
76
+ reload(): Promise<void>;
77
+ /**
78
+ * Closes the overlay: every running wait goes on in the background and
79
+ * refreshes its page silently when it ends.
80
+ */
81
+ dismiss(): void;
82
+ }>;
83
+ //# sourceMappingURL=indexAwait.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexAwait.d.ts","sourceRoot":"","sources":["../../../src/stores/indexAwait.js"],"names":[],"mappings":";AAwBA;;;;GAIG;AAkCH;;;;;;;;;;;;;;;;;;;;;;;;IAWI;;;;;;;;OAQG;qBAJQ,MAAM,EAAE,qFACR;QAAC,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,WAAW;QAAC,aAAa,CAAC,WAAW;QAAC,aAAa,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAC,GACvI,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,KAAK,KAAQ,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAC,CAAC;;;;;;;;;;;;;;;;;;IAwI1H;;;;OAIG;cADU,OAAO,CAAC,IAAI,CAAC;IAQ1B;;;OAGG;;GAWJ"}
@@ -57,7 +57,18 @@ export const useNavigationStore: StoreDefinition<"NavigationStore", {
57
57
  * @return Promise
58
58
  */
59
59
  load(workspaceId: any, folderId: any, force: any): Promise<void> | Promise<Node>;
60
- loadWithOpts(workspaceId: any, folderId: any, force: any, opts: any): Promise<void> | Promise<Node>;
60
+ /**
61
+ * Load a workspace or personal space folder and its children.
62
+ * Only the latest call writes the state: a call answered after a newer
63
+ * one started, or after a newer call found the state already current,
64
+ * changes nothing and resolves with `undefined`.
65
+ * @param workspaceId Current Workspace id, or null for the user home
66
+ * @param folderId Current Folder id (optional)
67
+ * @param force force load (reload) data
68
+ * @param opts options for getChildrenWithOpts
69
+ * @return {Promise<Object|undefined>} the folder node loaded
70
+ */
71
+ loadWithOpts(workspaceId: any, folderId: any, force: any, opts: any): Promise<any | undefined>;
61
72
  /**
62
73
  * Silently refresh children for ghost node polling.
63
74
  * Does NOT set loading = true (no skeleton flash).
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/stores/navigation.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;;;;;;;;;;;;;;;;;;;;IA2BI;;;;;;OAMG;;;IAkJH;;;;;;OAMG;;IA4BH;;;;;;OAMG;;GA4GJ"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/stores/navigation.js"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH;;;;;;;;;;;;;;;;;;;;IA2BI;;;;;;OAMG;;IAiEH;;;;;;;;;;OAUG;0EADS,OAAO,CAAC,MAAO,SAAS,CAAC;IA2FrC;;;;;;OAMG;;IA4BH;;;;;;OAMG;;GA4GJ"}