@alfresco/aca-shared 2.0.1 → 4.0.0-A.2-9920

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 (220) hide show
  1. package/README.md +2 -1
  2. package/{esm2015/alfresco-aca-shared.js → esm2020/alfresco-aca-shared.mjs} +0 -0
  3. package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +74 -0
  4. package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +160 -0
  5. package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +10 -0
  6. package/esm2020/lib/components/generic-error/generic-error.component.mjs +42 -0
  7. package/esm2020/lib/components/generic-error/generic-error.module.mjs +45 -0
  8. package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +124 -0
  9. package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +47 -0
  10. package/esm2020/lib/components/locked-by/locked-by.component.mjs +53 -0
  11. package/esm2020/lib/components/locked-by/locked-by.module.mjs +45 -0
  12. package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +49 -0
  13. package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +41 -0
  14. package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +41 -0
  15. package/esm2020/lib/components/page-layout/page-layout.component.mjs +41 -0
  16. package/esm2020/lib/components/page-layout/page-layout.module.mjs +45 -0
  17. package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +47 -0
  18. package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +58 -0
  19. package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +67 -0
  20. package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +78 -0
  21. package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +69 -0
  22. package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +107 -0
  23. package/{esm2015/lib/components/info-drawer/shared-info-drawer.module.js → esm2020/lib/directives/contextmenu/contextmenu.module.mjs} +17 -15
  24. package/esm2020/lib/directives/pagination.directive.mjs +55 -0
  25. package/esm2020/lib/directives/shared.directives.module.mjs +42 -0
  26. package/esm2020/lib/models/modal-configuration.mjs +2 -0
  27. package/{esm2015/lib/models/types.js → esm2020/lib/models/types.mjs} +1 -0
  28. package/{esm2015/lib/models/viewer.rules.js → esm2020/lib/models/viewer.rules.mjs} +2 -1
  29. package/esm2020/lib/routing/shared.guard.mjs +49 -0
  30. package/esm2020/lib/services/alfresco-office-extension.service.mjs +64 -0
  31. package/esm2020/lib/services/app-hook.service.mjs +88 -0
  32. package/esm2020/lib/services/app.extension.service.mjs +453 -0
  33. package/esm2020/lib/services/app.service.mjs +213 -0
  34. package/esm2020/lib/services/content-api.service.mjs +268 -0
  35. package/{esm2015/lib/services/node-permission.service.js → esm2020/lib/services/node-permission.service.mjs} +9 -7
  36. package/esm2020/lib/services/router.extension.service.mjs +106 -0
  37. package/esm2020/lib/shared.module.mjs +49 -0
  38. package/esm2020/lib/testing/lib-testing-module.mjs +118 -0
  39. package/{esm2015/store/actions/contextmenu.actions.js → esm2020/lib/testing/translation.service.mjs} +19 -9
  40. package/{esm2015/lib/utils/node.utils.js → esm2020/lib/utils/node.utils.mjs} +0 -0
  41. package/esm2020/public-api.mjs +63 -0
  42. package/{esm2015/rules/alfresco-aca-shared-rules.js → esm2020/rules/alfresco-aca-shared-rules.mjs} +0 -0
  43. package/esm2020/rules/app.rules.mjs +503 -0
  44. package/esm2020/rules/navigation.rules.mjs +152 -0
  45. package/{esm2015/rules/public-api.js → esm2020/rules/public-api.mjs} +0 -0
  46. package/{esm2015/store/states/app.state.js → esm2020/rules/repository.rules.mjs} +10 -1
  47. package/esm2020/rules/user.rules.mjs +30 -0
  48. package/esm2020/store/actions/app-action-types.mjs +48 -0
  49. package/esm2020/store/actions/app.actions.mjs +135 -0
  50. package/esm2020/store/actions/context-menu-action-types.mjs +29 -0
  51. package/esm2020/store/actions/contextmenu.actions.mjs +32 -0
  52. package/esm2020/store/actions/library.actions.mjs +64 -0
  53. package/{esm2015/store/actions/metadata-aspect.actions.js → esm2020/store/actions/metadata-aspect.actions.mjs} +0 -0
  54. package/esm2020/store/actions/node.actions.mjs +189 -0
  55. package/{esm2015/lib/components/generic-error/generic-error.module.js → esm2020/store/actions/router-action-types.mjs} +9 -15
  56. package/esm2020/store/actions/router.actions.mjs +55 -0
  57. package/esm2020/store/actions/search.actions.mjs +36 -0
  58. package/esm2020/store/actions/snackbar.actions.mjs +58 -0
  59. package/esm2020/store/actions/template-action-types.mjs +32 -0
  60. package/{esm2015/lib/components/generic-error/generic-error.component.js → esm2020/store/actions/template.actions.mjs} +21 -17
  61. package/esm2020/store/actions/upload.actions.mjs +50 -0
  62. package/esm2020/store/actions/viewer.actions.mjs +82 -0
  63. package/{esm2015/store/alfresco-aca-shared-store.js → esm2020/store/alfresco-aca-shared-store.mjs} +0 -0
  64. package/esm2020/store/effects/dialog.effects.mjs +45 -0
  65. package/esm2020/store/effects/router.effects.mjs +117 -0
  66. package/esm2020/store/effects/snackbar.effects.mjs +86 -0
  67. package/{esm2015/store/models/delete-status.model.js → esm2020/store/models/delete-status.model.mjs} +1 -0
  68. package/{esm2015/store/models/deleted-node-info.model.js → esm2020/store/models/deleted-node-info.model.mjs} +1 -0
  69. package/esm2020/store/models/modal-configuration.mjs +2 -0
  70. package/{esm2015/store/models/node-info.model.js → esm2020/store/models/node-info.model.mjs} +1 -0
  71. package/{esm2015/store/models/search-option.model.js → esm2020/store/models/search-option.model.mjs} +0 -0
  72. package/esm2020/store/public-api.mjs +50 -0
  73. package/esm2020/store/selectors/app.selectors.mjs +60 -0
  74. package/esm2020/store/states/app.state.mjs +27 -0
  75. package/esm2020/store/store.module.mjs +43 -0
  76. package/fesm2015/alfresco-aca-shared-rules.mjs +751 -0
  77. package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -0
  78. package/fesm2015/{alfresco-aca-shared-store.js → alfresco-aca-shared-store.mjs} +302 -276
  79. package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -0
  80. package/fesm2015/alfresco-aca-shared.mjs +2726 -0
  81. package/fesm2015/alfresco-aca-shared.mjs.map +1 -0
  82. package/{fesm2015/alfresco-aca-shared-rules.js → fesm2020/alfresco-aca-shared-rules.mjs} +220 -150
  83. package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -0
  84. package/fesm2020/alfresco-aca-shared-store.mjs +1406 -0
  85. package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -0
  86. package/fesm2020/alfresco-aca-shared.mjs +2841 -0
  87. package/fesm2020/alfresco-aca-shared.mjs.map +1 -0
  88. package/{alfresco-aca-shared.d.ts → index.d.ts} +1 -0
  89. package/lib/adf-extensions/extensions-data-loader.guard.d.ts +4 -1
  90. package/lib/components/document-base-page/document-base-page.component.d.ts +74 -0
  91. package/lib/components/document-base-page/document-base-page.service.d.ts +5 -0
  92. package/lib/components/generic-error/generic-error.component.d.ts +3 -24
  93. package/lib/components/generic-error/generic-error.module.d.ts +8 -24
  94. package/lib/components/info-drawer/info-drawer.component.d.ts +6 -0
  95. package/lib/components/info-drawer/shared-info-drawer.module.d.ts +11 -24
  96. package/lib/components/locked-by/locked-by.component.d.ts +5 -30
  97. package/lib/components/locked-by/locked-by.module.d.ts +8 -24
  98. package/lib/components/page-layout/page-layout-content.component.d.ts +3 -24
  99. package/lib/components/page-layout/page-layout-error.component.d.ts +3 -24
  100. package/lib/components/page-layout/page-layout-header.component.d.ts +3 -24
  101. package/lib/components/page-layout/page-layout.component.d.ts +3 -24
  102. package/lib/components/page-layout/page-layout.module.d.ts +9 -24
  103. package/lib/components/tool-bar/shared-toolbar.module.d.ts +11 -24
  104. package/lib/components/tool-bar/toolbar-action/toolbar-action.component.d.ts +7 -2
  105. package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +5 -25
  106. package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +13 -7
  107. package/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.d.ts +7 -27
  108. package/lib/directives/contextmenu/contextmenu.directive.d.ts +5 -1
  109. package/lib/directives/contextmenu/contextmenu.module.d.ts +5 -24
  110. package/lib/directives/pagination.directive.d.ts +3 -0
  111. package/lib/directives/shared.directives.module.d.ts +6 -24
  112. package/lib/models/modal-configuration.d.ts +3 -0
  113. package/lib/models/viewer.rules.d.ts +4 -0
  114. package/lib/routing/shared.guard.d.ts +3 -24
  115. package/lib/services/alfresco-office-extension.service.d.ts +11 -0
  116. package/lib/services/app-hook.service.d.ts +55 -0
  117. package/lib/services/app.extension.service.d.ts +30 -45
  118. package/lib/services/app.service.d.ts +42 -6
  119. package/lib/services/content-api.service.d.ts +34 -25
  120. package/lib/services/node-permission.service.d.ts +3 -24
  121. package/lib/services/router.extension.service.d.ts +3 -24
  122. package/lib/shared.module.d.ts +5 -0
  123. package/lib/testing/lib-testing-module.d.ts +43 -0
  124. package/lib/testing/translation.service.d.ts +10 -0
  125. package/package.json +57 -18
  126. package/public-api.d.ts +7 -1
  127. package/rules/app.rules.d.ts +104 -30
  128. package/rules/{alfresco-aca-shared-rules.d.ts → index.d.ts} +1 -0
  129. package/rules/navigation.rules.d.ts +6 -6
  130. package/rules/repository.rules.d.ts +2 -1
  131. package/rules/user.rules.d.ts +1 -1
  132. package/store/actions/app-action-types.d.ts +46 -0
  133. package/store/actions/app.actions.d.ts +19 -18
  134. package/{lib/routing/app.routes.strategy.d.ts → store/actions/context-menu-action-types.d.ts} +2 -15
  135. package/store/actions/contextmenu.actions.d.ts +1 -3
  136. package/store/actions/library.actions.d.ts +3 -1
  137. package/store/actions/node.actions.d.ts +33 -7
  138. package/store/actions/router-action-types.d.ts +31 -0
  139. package/store/actions/router.actions.d.ts +5 -6
  140. package/store/actions/search.actions.d.ts +1 -13
  141. package/store/actions/snackbar.actions.d.ts +8 -11
  142. package/store/actions/template-action-types.d.ts +30 -0
  143. package/store/actions/template.actions.d.ts +1 -6
  144. package/store/actions/upload.actions.d.ts +3 -1
  145. package/store/actions/viewer.actions.d.ts +6 -0
  146. package/store/effects/dialog.effects.d.ts +4 -1
  147. package/store/effects/router.effects.d.ts +11 -29
  148. package/store/effects/snackbar.effects.d.ts +6 -3
  149. package/store/{alfresco-aca-shared-store.d.ts → index.d.ts} +1 -0
  150. package/store/models/modal-configuration.d.ts +3 -0
  151. package/store/public-api.d.ts +4 -0
  152. package/store/selectors/app.selectors.d.ts +6 -1
  153. package/store/states/app.state.d.ts +8 -1
  154. package/store/store.module.d.ts +5 -24
  155. package/alfresco-aca-shared.metadata.json +0 -1
  156. package/bundles/alfresco-aca-shared-rules.umd.js +0 -745
  157. package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
  158. package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -125
  159. package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
  160. package/bundles/alfresco-aca-shared-store.umd.js +0 -1784
  161. package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
  162. package/bundles/alfresco-aca-shared-store.umd.min.js +0 -462
  163. package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
  164. package/bundles/alfresco-aca-shared.umd.js +0 -2523
  165. package/bundles/alfresco-aca-shared.umd.js.map +0 -1
  166. package/bundles/alfresco-aca-shared.umd.min.js +0 -740
  167. package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
  168. package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -74
  169. package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -105
  170. package/esm2015/lib/components/locked-by/locked-by.component.js +0 -54
  171. package/esm2015/lib/components/locked-by/locked-by.module.js +0 -38
  172. package/esm2015/lib/components/page-layout/page-layout-content.component.js +0 -43
  173. package/esm2015/lib/components/page-layout/page-layout-error.component.js +0 -37
  174. package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -37
  175. package/esm2015/lib/components/page-layout/page-layout.component.js +0 -44
  176. package/esm2015/lib/components/page-layout/page-layout.module.js +0 -40
  177. package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -42
  178. package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -57
  179. package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -66
  180. package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -55
  181. package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -65
  182. package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -97
  183. package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -38
  184. package/esm2015/lib/directives/pagination.directive.js +0 -55
  185. package/esm2015/lib/directives/shared.directives.module.js +0 -37
  186. package/esm2015/lib/routing/app.routes.strategy.js +0 -105
  187. package/esm2015/lib/routing/shared.guard.js +0 -50
  188. package/esm2015/lib/services/app.extension.service.js +0 -398
  189. package/esm2015/lib/services/app.service.js +0 -69
  190. package/esm2015/lib/services/content-api.service.js +0 -205
  191. package/esm2015/lib/services/router.extension.service.js +0 -110
  192. package/esm2015/lib/shared.module.js +0 -44
  193. package/esm2015/public-api.js +0 -57
  194. package/esm2015/rules/app.rules.js +0 -420
  195. package/esm2015/rules/navigation.rules.js +0 -164
  196. package/esm2015/rules/repository.rules.js +0 -32
  197. package/esm2015/rules/user.rules.js +0 -32
  198. package/esm2015/store/actions/app.actions.js +0 -130
  199. package/esm2015/store/actions/library.actions.js +0 -63
  200. package/esm2015/store/actions/node.actions.js +0 -161
  201. package/esm2015/store/actions/router.actions.js +0 -56
  202. package/esm2015/store/actions/search.actions.js +0 -54
  203. package/esm2015/store/actions/snackbar.actions.js +0 -61
  204. package/esm2015/store/actions/template.actions.js +0 -54
  205. package/esm2015/store/actions/upload.actions.js +0 -49
  206. package/esm2015/store/actions/viewer.actions.js +0 -75
  207. package/esm2015/store/effects/dialog.effects.js +0 -49
  208. package/esm2015/store/effects/router.effects.js +0 -132
  209. package/esm2015/store/effects/snackbar.effects.js +0 -90
  210. package/esm2015/store/public-api.js +0 -46
  211. package/esm2015/store/selectors/app.selectors.js +0 -80
  212. package/esm2015/store/store.module.js +0 -37
  213. package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
  214. package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
  215. package/fesm2015/alfresco-aca-shared.js +0 -2167
  216. package/fesm2015/alfresco-aca-shared.js.map +0 -1
  217. package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
  218. package/rules/package.json +0 -11
  219. package/store/alfresco-aca-shared-store.metadata.json +0 -1
  220. package/store/package.json +0 -11
@@ -0,0 +1,10 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TranslateServiceMock extends TranslateService {
5
+ constructor();
6
+ get(key: string | Array<string>): Observable<string | any>;
7
+ instant(key: string | Array<string>): string | any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslateServiceMock, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<TranslateServiceMock>;
10
+ }
package/package.json CHANGED
@@ -1,26 +1,65 @@
1
1
  {
2
2
  "name": "@alfresco/aca-shared",
3
- "version": "2.0.1",
3
+ "version": "4.0.0-A.2-9920",
4
+ "commit": "",
5
+ "license": "LGPL-3.0",
4
6
  "peerDependencies": {
5
- "@angular/common": ">=10.0.4",
6
- "@angular/core": ">=10.0.4",
7
- "@angular/material": ">=10.0.2",
8
- "@ngrx/effects": ">=9.2.0",
9
- "@ngrx/store": ">=9.2.0",
10
- "@alfresco/adf-extensions": ">=4.0.0",
11
- "@alfresco/js-api": ">=4.0.0",
12
- "rxjs": ">=6.6.2",
13
- "@ngx-translate/core": ">=13.0.0"
7
+ "@alfresco/adf-content-services": "6.0.0-A.1-37376",
8
+ "@alfresco/adf-core": "6.0.0-A.1-37376",
9
+ "@alfresco/adf-extensions": "6.0.0-A.1-37376",
10
+ "@alfresco/js-api": "5.2.0",
11
+ "@angular/animations": "14.1.2",
12
+ "@angular/cdk": "14.1.2",
13
+ "@angular/common": "14.1.2",
14
+ "@angular/compiler": "14.1.2",
15
+ "@angular/core": "14.1.2",
16
+ "@angular/flex-layout": "^14.0.0-beta.40",
17
+ "@angular/forms": "14.1.2",
18
+ "@angular/material": "14.1.2",
19
+ "@ngrx/effects": "^14.2.0",
20
+ "@ngrx/router-store": "^14.2.0",
21
+ "@ngrx/store": "^14.2.0",
22
+ "@ngx-translate/core": "^14.0.0",
23
+ "rxjs": "6.6.6",
24
+ "zone.js": "0.11.8"
25
+ },
26
+ "module": "fesm2015/alfresco-aca-shared.mjs",
27
+ "es2020": "fesm2020/alfresco-aca-shared.mjs",
28
+ "esm2020": "esm2020/alfresco-aca-shared.mjs",
29
+ "fesm2020": "fesm2020/alfresco-aca-shared.mjs",
30
+ "fesm2015": "fesm2015/alfresco-aca-shared.mjs",
31
+ "typings": "index.d.ts",
32
+ "exports": {
33
+ "./package.json": {
34
+ "default": "./package.json"
35
+ },
36
+ ".": {
37
+ "types": "./index.d.ts",
38
+ "esm2020": "./esm2020/alfresco-aca-shared.mjs",
39
+ "es2020": "./fesm2020/alfresco-aca-shared.mjs",
40
+ "es2015": "./fesm2015/alfresco-aca-shared.mjs",
41
+ "node": "./fesm2015/alfresco-aca-shared.mjs",
42
+ "default": "./fesm2020/alfresco-aca-shared.mjs"
43
+ },
44
+ "./rules": {
45
+ "types": "./rules/index.d.ts",
46
+ "esm2020": "./esm2020/rules/alfresco-aca-shared-rules.mjs",
47
+ "es2020": "./fesm2020/alfresco-aca-shared-rules.mjs",
48
+ "es2015": "./fesm2015/alfresco-aca-shared-rules.mjs",
49
+ "node": "./fesm2015/alfresco-aca-shared-rules.mjs",
50
+ "default": "./fesm2020/alfresco-aca-shared-rules.mjs"
51
+ },
52
+ "./store": {
53
+ "types": "./store/index.d.ts",
54
+ "esm2020": "./esm2020/store/alfresco-aca-shared-store.mjs",
55
+ "es2020": "./fesm2020/alfresco-aca-shared-store.mjs",
56
+ "es2015": "./fesm2015/alfresco-aca-shared-store.mjs",
57
+ "node": "./fesm2015/alfresco-aca-shared-store.mjs",
58
+ "default": "./fesm2020/alfresco-aca-shared-store.mjs"
59
+ }
14
60
  },
15
- "main": "bundles/alfresco-aca-shared.umd.js",
16
- "module": "fesm2015/alfresco-aca-shared.js",
17
- "es2015": "fesm2015/alfresco-aca-shared.js",
18
- "esm2015": "esm2015/alfresco-aca-shared.js",
19
- "fesm2015": "fesm2015/alfresco-aca-shared.js",
20
- "typings": "alfresco-aca-shared.d.ts",
21
- "metadata": "alfresco-aca-shared.metadata.json",
22
61
  "sideEffects": false,
23
62
  "dependencies": {
24
63
  "tslib": "^2.0.0"
25
64
  }
26
- }
65
+ }
package/public-api.d.ts CHANGED
@@ -39,18 +39,24 @@ export * from './lib/components/tool-bar/toolbar-menu/toolbar-menu.component';
39
39
  export * from './lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component';
40
40
  export * from './lib/components/info-drawer/info-drawer.component';
41
41
  export * from './lib/components/info-drawer/shared-info-drawer.module';
42
+ export * from './lib/components/document-base-page/document-base-page.component';
43
+ export * from './lib/components/document-base-page/document-base-page.service';
42
44
  export * from './lib/directives/contextmenu/contextmenu.directive';
43
45
  export * from './lib/directives/contextmenu/contextmenu.module';
44
46
  export * from './lib/directives/pagination.directive';
45
47
  export * from './lib/directives/shared.directives.module';
46
48
  export * from './lib/models/types';
47
49
  export * from './lib/models/viewer.rules';
48
- export * from './lib/routing/app.routes.strategy';
50
+ export * from './lib/models/modal-configuration';
49
51
  export * from './lib/routing/shared.guard';
50
52
  export * from './lib/services/app.service';
51
53
  export * from './lib/services/content-api.service';
52
54
  export * from './lib/services/node-permission.service';
53
55
  export * from './lib/services/app.extension.service';
54
56
  export * from './lib/services/router.extension.service';
57
+ export * from './lib/services/app-hook.service';
58
+ export * from './lib/services/alfresco-office-extension.service';
55
59
  export * from './lib/utils/node.utils';
56
60
  export * from './lib/shared.module';
61
+ export * from './lib/testing/lib-testing-module';
62
+ export * from './lib/testing/translation.service';
@@ -22,17 +22,63 @@
22
22
  * You should have received a copy of the GNU Lesser General Public License
23
23
  * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
24
24
  */
25
+ import { AppConfigService } from '@alfresco/adf-core';
25
26
  import { RuleContext } from '@alfresco/adf-extensions';
27
+ export declare const supportedExtensions: {
28
+ doc: string;
29
+ docx: string;
30
+ docm: string;
31
+ dot: string;
32
+ dotx: string;
33
+ dotm: string;
34
+ rtf: string;
35
+ xls: string;
36
+ xlsx: string;
37
+ xlsb: string;
38
+ xlsm: string;
39
+ xlt: string;
40
+ xltx: string;
41
+ xltm: string;
42
+ xlam: string;
43
+ ppt: string;
44
+ pptx: string;
45
+ pot: string;
46
+ potx: string;
47
+ potm: string;
48
+ pptm: string;
49
+ pps: string;
50
+ ppsx: string;
51
+ ppam: string;
52
+ ppsm: string;
53
+ sldx: string;
54
+ sldm: string;
55
+ vsd: string;
56
+ vss: string;
57
+ vst: string;
58
+ vsdx: string;
59
+ vsdm: string;
60
+ vssx: string;
61
+ vssm: string;
62
+ vstx: string;
63
+ vstm: string;
64
+ };
65
+ export declare function getFileExtension(fileName: string): string | null;
26
66
  export interface AcaRuleContext extends RuleContext {
27
- languagePicker: boolean;
28
67
  withCredentials: boolean;
68
+ appConfig: AppConfigService;
29
69
  }
70
+ /**
71
+ * Checks if the content plugin is enabled.
72
+ * JSON ref: `app.isContentServiceEnabled`
73
+ */
74
+ export declare const isContentServiceEnabled: () => boolean;
30
75
  /**
31
76
  * Checks if user can copy selected node.
32
77
  * JSON ref: `app.canCopyNode`
78
+ *
33
79
  * @param context Rule execution context
34
80
  */
35
- export declare function canCopyNode(context: RuleContext): boolean;
81
+ export declare const canCopyNode: (context: RuleContext) => boolean;
36
82
  /**
37
83
  * Checks if user can mark selected nodes as **Favorite**.
38
84
  * JSON ref: `app.selection.canAddFavorite`
@@ -47,18 +93,19 @@ export declare function canRemoveFavorite(context: RuleContext): boolean;
47
93
  * Checks if user can share selected file.
48
94
  * JSON ref: `app.selection.file.canShare`
49
95
  */
50
- export declare function canShareFile(context: RuleContext): boolean;
96
+ export declare const canShareFile: (context: RuleContext) => boolean;
51
97
  /**
52
98
  * Checks if user can perform "Join" or "Cancel Join Request" on a library.
53
99
  * JSON ref: `canToggleJoinLibrary`
54
100
  */
55
- export declare function canToggleJoinLibrary(context: RuleContext): boolean;
101
+ export declare const canToggleJoinLibrary: (context: RuleContext) => boolean;
56
102
  /**
57
103
  * Checks if user can edit the selected folder.
58
104
  * JSON ref: `canEditFolder`
105
+ *
59
106
  * @param context Rule execution context
60
107
  */
61
- export declare function canEditFolder(context: RuleContext): boolean;
108
+ export declare const canEditFolder: (context: RuleContext) => boolean;
62
109
  /**
63
110
  * Checks if the selected file is already shared.
64
111
  * JSON ref: `app.selection.file.isShared`
@@ -78,7 +125,7 @@ export declare function canUnshareNodes(context: RuleContext): boolean;
78
125
  * Checks if user selected anything.
79
126
  * JSON ref: `app.selection.notEmpty`
80
127
  */
81
- export declare function hasSelection(context: RuleContext): boolean;
128
+ export declare const hasSelection: (context: RuleContext) => boolean;
82
129
  /**
83
130
  * Checks if user can create a new folder with current path.
84
131
  * JSON ref: `app.navigation.folder.canCreate`
@@ -98,12 +145,12 @@ export declare function canDownloadSelection(context: RuleContext): boolean;
98
145
  * Checks if user has selected a folder.
99
146
  * JSON ref: `app.selection.folder`
100
147
  */
101
- export declare function hasFolderSelected(context: RuleContext): boolean;
148
+ export declare const hasFolderSelected: (context: RuleContext) => boolean;
102
149
  /**
103
150
  * Checks if user has selected a library (site).
104
151
  * JSON ref: `app.selection.library`
105
152
  */
106
- export declare function hasLibrarySelected(context: RuleContext): boolean;
153
+ export declare const hasLibrarySelected: (context: RuleContext) => boolean;
107
154
  /**
108
155
  * Checks if user has selected a **private** library (site)
109
156
  * JSON ref: `app.selection.isPrivateLibrary`
@@ -118,17 +165,18 @@ export declare function hasLibraryRole(context: RuleContext): boolean;
118
165
  * Checks if the selected library has no **role** property defined.
119
166
  * JSON ref: `app.selection.hasNoLibraryRole`
120
167
  */
121
- export declare function hasNoLibraryRole(context: RuleContext): boolean;
168
+ export declare const hasNoLibraryRole: (context: RuleContext) => boolean;
122
169
  /**
123
170
  * Checks if user has selected a file.
124
171
  * JSON ref: `app.selection.file`
125
172
  */
126
- export declare function hasFileSelected(context: RuleContext): boolean;
173
+ export declare const hasFileSelected: (context: RuleContext) => boolean;
127
174
  /**
128
175
  * Checks if user can update the first selected node.
129
176
  * JSON ref: `app.selection.first.canUpdate`
130
177
  */
131
178
  export declare function canUpdateSelectedNode(context: RuleContext): boolean;
179
+ export declare function isMultiselection(context: RuleContext): boolean;
132
180
  /**
133
181
  * Checks if user can update the first selected folder.
134
182
  * JSON ref: `app.selection.folder.canUpdate`
@@ -143,18 +191,18 @@ export declare function hasLockedFiles(context: RuleContext): boolean;
143
191
  * Checks if the selected file has **write** or **read-only** locks specified.
144
192
  * JSON ref: `app.selection.file.isLocked`
145
193
  */
146
- export declare function isWriteLocked(context: RuleContext): boolean;
194
+ export declare const isWriteLocked: (context: RuleContext) => boolean;
147
195
  /**
148
196
  * Checks if the selected file has **write** or **read-only** locks specified,
149
197
  * and that current user is the owner of the lock.
150
198
  * JSON ref: `app.selection.file.isLockOwner`
151
199
  */
152
- export declare function isUserWriteLockOwner(context: RuleContext): boolean;
200
+ export declare const isUserWriteLockOwner: (context: RuleContext) => boolean;
153
201
  /**
154
202
  * Checks if user can lock selected file.
155
203
  * JSON ref: `app.selection.file.canLock`
156
204
  */
157
- export declare function canLockFile(context: RuleContext): boolean;
205
+ export declare const canLockFile: (context: RuleContext) => boolean;
158
206
  /**
159
207
  * Checks if user can unlock selected file.
160
208
  * JSON ref: `app.selection.file.canUnlock`
@@ -168,72 +216,98 @@ export declare function canUploadVersion(context: RuleContext): boolean;
168
216
  /**
169
217
  * Checks if user has trashcan item selected.
170
218
  * JSON ref: `isTrashcanItemSelected`
219
+ *
171
220
  * @param context Rule execution context
172
221
  */
173
- export declare function isTrashcanItemSelected(context: RuleContext): boolean;
222
+ export declare const isTrashcanItemSelected: (context: RuleContext) => boolean;
174
223
  /**
175
224
  * Checks if user can view the file.
176
225
  * JSON ref: `canViewFile`
226
+ *
177
227
  * @param context Rule execution context
178
228
  */
179
- export declare function canViewFile(context: RuleContext): boolean;
229
+ export declare const canViewFile: (context: RuleContext) => boolean;
180
230
  /**
181
231
  * Checks if user can **Leave** selected library.
182
232
  * JSON ref: `canLeaveLibrary`
233
+ *
183
234
  * @param context Rule execution context
184
235
  */
185
- export declare function canLeaveLibrary(context: RuleContext): boolean;
236
+ export declare const canLeaveLibrary: (context: RuleContext) => boolean;
186
237
  /**
187
238
  * Checks if user can toggle shared link mode.
188
239
  * JSON ref: `canToggleSharedLink`
240
+ *
189
241
  * @param context Rule execution context
190
242
  */
191
- export declare function canToggleSharedLink(context: RuleContext): boolean;
243
+ export declare const canToggleSharedLink: (context: RuleContext) => boolean;
192
244
  /**
193
245
  * Checks if user can show **Info Drawer** for the selected node.
194
246
  * JSON ref: `canShowInfoDrawer`
247
+ *
195
248
  * @param context Rule execution context
196
249
  */
197
- export declare function canShowInfoDrawer(context: RuleContext): boolean;
250
+ export declare const canShowInfoDrawer: (context: RuleContext) => boolean;
198
251
  /**
199
252
  * Checks if user can manage file versions for the selected node.
200
253
  * JSON ref: `canManageFileVersions`
254
+ *
201
255
  * @param context Rule execution context
202
256
  */
203
- export declare function canManageFileVersions(context: RuleContext): boolean;
257
+ export declare const canManageFileVersions: (context: RuleContext) => boolean;
258
+ /**
259
+ * Checks if user can edit aspects for the selected node.
260
+ * JSON ref: `canEditAspects`
261
+ *
262
+ * @param context Rule execution context
263
+ */
264
+ export declare const canEditAspects: (context: RuleContext) => boolean;
204
265
  /**
205
266
  * Checks if user can manage permissions for the selected node.
206
267
  * JSON ref: `canManagePermissions`
268
+ *
207
269
  * @param context Rule execution context
208
270
  */
209
- export declare function canManagePermissions(context: RuleContext): boolean;
271
+ export declare const canManagePermissions: (context: RuleContext) => boolean;
210
272
  /**
211
273
  * Checks if user can toggle **Edit Offline** mode for selected node.
212
274
  * JSON ref: `canToggleEditOffline`
275
+ *
213
276
  * @param context Rule execution context
214
277
  */
215
- export declare function canToggleEditOffline(context: RuleContext): boolean;
278
+ export declare const canToggleEditOffline: (context: RuleContext) => boolean;
216
279
  /**
217
280
  * @deprecated Uses workarounds for for recent files and search api issues.
218
281
  * Checks if user can toggle **Favorite** state for a node.
219
282
  * @param context Rule execution context
220
283
  */
221
- export declare function canToggleFavorite(context: RuleContext): boolean;
222
- /**
223
- * Checks if application should render language picker menu.
224
- * JSON ref: `canShowLanguagePicker`
225
- * @param context Rule execution context
226
- */
227
- export declare function canShowLanguagePicker(context: AcaRuleContext): boolean;
284
+ export declare const canToggleFavorite: (context: RuleContext) => boolean;
228
285
  /**
229
286
  * Checks if application should render logout option.
230
287
  * JSON ref: `canShowLogout`
288
+ *
231
289
  * @param context Rule execution context
232
290
  */
233
- export declare function canShowLogout(context: AcaRuleContext): boolean;
291
+ export declare const canShowLogout: (context: AcaRuleContext) => boolean;
234
292
  /**
235
293
  * Checks if user is library manager
236
294
  * JSON ref: `isLibraryManager`
295
+ *
296
+ * @param context Rule execution context
297
+ */
298
+ export declare const isLibraryManager: (context: RuleContext) => boolean;
299
+ /**
300
+ * Checks if the preview button for search results can be showed
301
+ * JSON ref: `canInfoPreview`
302
+ *
303
+ * @param context Rule execution context
304
+ */
305
+ export declare const canInfoPreview: (context: RuleContext) => boolean;
306
+ export declare const showInfoSelectionButton: (context: RuleContext) => boolean;
307
+ /**
308
+ * Checks if the file can be opened with MS Office
309
+ * JSON ref: `aos.canOpenWithOffice`
310
+ *
237
311
  * @param context Rule execution context
238
312
  */
239
- export declare function isLibraryManager(context: RuleContext): boolean;
313
+ export declare function canOpenWithOffice(context: RuleContext): boolean;
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@alfresco/aca-shared/rules" />
4
5
  export * from './public-api';
@@ -37,7 +37,7 @@ export declare function isFavorites(context: RuleContext): boolean;
37
37
  * Checks if the activated route is not **Favorites**.
38
38
  * JSON ref: `app.navigation.isNotFavorites`
39
39
  */
40
- export declare function isNotFavorites(context: RuleContext): boolean;
40
+ export declare const isNotFavorites: (context: RuleContext) => boolean;
41
41
  /**
42
42
  * Checks if a **Shared Files** route is activated.
43
43
  * JSON ref: `app.navigation.isSharedFiles`
@@ -47,7 +47,7 @@ export declare function isSharedFiles(context: RuleContext): boolean;
47
47
  * Checks if the activated route is not **Shared Files**.
48
48
  * JSON ref: `app.navigation.isNotSharedFiles`
49
49
  */
50
- export declare function isNotSharedFiles(context: RuleContext): boolean;
50
+ export declare const isNotSharedFiles: (context: RuleContext) => boolean;
51
51
  /**
52
52
  * Checks if a **Trashcan** route is activated.
53
53
  * JSON ref: `app.navigation.isTrashcan`
@@ -57,7 +57,7 @@ export declare function isTrashcan(context: RuleContext): boolean;
57
57
  * Checks if the activated route is not **Trashcan**.
58
58
  * JSON ref: `app.navigation.isNotTrashcan`
59
59
  */
60
- export declare function isNotTrashcan(context: RuleContext): boolean;
60
+ export declare const isNotTrashcan: (context: RuleContext) => boolean;
61
61
  /**
62
62
  * Checks if a **Personal Files** route is activated.
63
63
  * JSON ref: `app.navigation.isPersonalFiles`
@@ -77,7 +77,7 @@ export declare function isLibraries(context: RuleContext): boolean;
77
77
  * Checks if the activated route is neither **Libraries** nor **Library Search Results**.
78
78
  * JSON ref: `app.navigation.isNotLibraries`
79
79
  */
80
- export declare function isNotLibraries(context: RuleContext): boolean;
80
+ export declare const isNotLibraries: (context: RuleContext) => boolean;
81
81
  /**
82
82
  * Checks if a **Recent Files** route is activated.
83
83
  * JSON ref: `app.navigation.isRecentFiles`
@@ -87,7 +87,7 @@ export declare function isRecentFiles(context: RuleContext): boolean;
87
87
  * Checks if the activated route is not **Recent Files**.
88
88
  * JSON ref: `app.navigation.isNotRecentFiles`
89
89
  */
90
- export declare function isNotRecentFiles(context: RuleContext): boolean;
90
+ export declare const isNotRecentFiles: (context: RuleContext) => boolean;
91
91
  /**
92
92
  * Checks if a **Search Results** route is activated.
93
93
  * JSON ref: `app.navigation.isSearchResults`
@@ -97,7 +97,7 @@ export declare function isSearchResults(context: RuleContext): boolean;
97
97
  * Checks if the activated route is not **Search Results**.
98
98
  * JSON ref: `app.navigation.isNotSearchResults`
99
99
  */
100
- export declare function isNotSearchResults(context: RuleContext): boolean;
100
+ export declare const isNotSearchResults: (context: RuleContext) => boolean;
101
101
  /**
102
102
  * Checks if a **Shared Preview** route is activated.
103
103
  * JSON ref: `app.navigation.isSharedPreview`
@@ -27,4 +27,5 @@ import { RuleContext } from '@alfresco/adf-extensions';
27
27
  * Checks if the quick share repository option is enabled or not.
28
28
  * JSON ref: `repository.isQuickShareEnabled`
29
29
  */
30
- export declare function hasQuickShareEnabled(context: RuleContext): boolean;
30
+ export declare const hasQuickShareEnabled: (context: RuleContext) => boolean;
31
+ export declare function isMajorVersionAvailable(context: RuleContext, versionNumber: string): boolean;
@@ -27,4 +27,4 @@ import { RuleContext } from '@alfresco/adf-extensions';
27
27
  * Checks if user is admin.
28
28
  * JSON ref: `user.isAdmin`
29
29
  */
30
- export declare function isAdmin(context: RuleContext): boolean;
30
+ export declare const isAdmin: (context: RuleContext) => boolean;
@@ -0,0 +1,46 @@
1
+ /*!
2
+ * @license
3
+ * Alfresco Example Content Application
4
+ *
5
+ * Copyright (C) 2005 - 2020 Alfresco Software Limited
6
+ *
7
+ * This file is part of the Alfresco Example Content Application.
8
+ * If the software was purchased under a paid Alfresco license, the terms of
9
+ * the paid license agreement will prevail. Otherwise, the software is
10
+ * provided under the following open source license terms:
11
+ *
12
+ * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
13
+ * it under the terms of the GNU Lesser General Public License as published by
14
+ * the Free Software Foundation, either version 3 of the License, or
15
+ * (at your option) any later version.
16
+ *
17
+ * The Alfresco Example Content Application is distributed in the hope that it will be useful,
18
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ * GNU Lesser General Public License for more details.
21
+ *
22
+ * You should have received a copy of the GNU Lesser General Public License
23
+ * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
24
+ */
25
+ export declare enum AppActionTypes {
26
+ SetSettingsParameter = "SET_SETTINGS_PARAMETER",
27
+ SetInitialState = "SET_INITIAL_STATE",
28
+ SetHeaderColor = "SET_HEADER_COLOR",
29
+ SetCurrentFolder = "SET_CURRENT_FOLDER",
30
+ SetCurrentVersion = "SET_CURRENT_VERSION",
31
+ SetCurrentUrl = "SET_CURRENT_URL",
32
+ SetUserProfile = "SET_USER_PROFILE",
33
+ SetRepositoryInfo = "SET_REPOSITORY_INFO",
34
+ ToggleInfoDrawer = "TOGGLE_INFO_DRAWER",
35
+ ToggleDocumentDisplayMode = "TOGGLE_DOCUMENT_DISPLAY_MODE",
36
+ Logout = "LOGOUT",
37
+ ReloadDocumentList = "RELOAD_DOCUMENT_LIST",
38
+ ResetSelection = "RESET_SELECTION",
39
+ SetInfoDrawerState = "SET_INFO_DRAWER_STATE",
40
+ SetInfoDrawerMetadataAspect = "SET_INFO_DRAWER_METADATA_ASPECT",
41
+ CloseModalDialogs = "CLOSE_MODAL_DIALOGS",
42
+ SetFileUploadingDialog = "SET_FILE_UPLOADING_DIALOG",
43
+ ShowInfoDrawerPreview = "SHOW_INFO_DRAWER_PREVIEW",
44
+ SetInfoDrawerPreviewState = "SET_INFO_DRAWER_PREVIEW_STATE",
45
+ ShowLoaderAction = "SHOW_LOADER"
46
+ }
@@ -25,24 +25,7 @@
25
25
  import { Action } from '@ngrx/store';
26
26
  import { Node, Person, Group, RepositoryInfo, VersionEntry } from '@alfresco/js-api';
27
27
  import { AppState } from '../states/app.state';
28
- export declare enum AppActionTypes {
29
- SetSettingsParameter = "SET_SETTINGS_PARAMETER",
30
- SetInitialState = "SET_INITIAL_STATE",
31
- SetHeaderColor = "SET_HEADER_COLOR",
32
- SetCurrentFolder = "SET_CURRENT_FOLDER",
33
- SetCurrentVersion = "SET_CURRENT_VERSION",
34
- SetCurrentUrl = "SET_CURRENT_URL",
35
- SetUserProfile = "SET_USER_PROFILE",
36
- SetRepositoryInfo = "SET_REPOSITORY_INFO",
37
- ToggleInfoDrawer = "TOGGLE_INFO_DRAWER",
38
- ToggleDocumentDisplayMode = "TOGGLE_DOCUMENT_DISPLAY_MODE",
39
- Logout = "LOGOUT",
40
- ReloadDocumentList = "RELOAD_DOCUMENT_LIST",
41
- ResetSelection = "RESET_SELECTION",
42
- SetInfoDrawerState = "SET_INFO_DRAWER_STATE",
43
- SetInfoDrawerMetadataAspect = "SET_INFO_DRAWER_METADATA_ASPECT",
44
- CloseModalDialogs = "CLOSE_MODAL_DIALOGS"
45
- }
28
+ import { AppActionTypes } from './app-action-types';
46
29
  export declare class SetSettingsParameterAction implements Action {
47
30
  payload: {
48
31
  name: string;
@@ -122,3 +105,21 @@ export declare class SetRepositoryInfoAction implements Action {
122
105
  readonly type = AppActionTypes.SetRepositoryInfo;
123
106
  constructor(payload: RepositoryInfo);
124
107
  }
108
+ export declare class SetFileUploadingDialogAction implements Action {
109
+ payload: boolean;
110
+ readonly type = AppActionTypes.SetFileUploadingDialog;
111
+ constructor(payload: boolean);
112
+ }
113
+ export declare class ShowInfoDrawerPreviewAction implements Action {
114
+ readonly type = AppActionTypes.ShowInfoDrawerPreview;
115
+ }
116
+ export declare class SetInfoDrawerPreviewStateAction implements Action {
117
+ payload: boolean;
118
+ readonly type = AppActionTypes.SetInfoDrawerPreviewState;
119
+ constructor(payload: boolean);
120
+ }
121
+ export declare class ShowLoaderAction implements Action {
122
+ payload: boolean;
123
+ readonly type = AppActionTypes.ShowLoaderAction;
124
+ constructor(payload: boolean);
125
+ }
@@ -22,19 +22,6 @@
22
22
  * You should have received a copy of the GNU Lesser General Public License
23
23
  * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
24
24
  */
25
- import { RouteReuseStrategy, DetachedRouteHandle, ActivatedRouteSnapshot } from '@angular/router';
26
- export declare class AppRouteReuseStrategy implements RouteReuseStrategy {
27
- private routeCache;
28
- resetCache(): void;
29
- private deactivateComponent;
30
- shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
31
- shouldDetach(route: ActivatedRouteSnapshot): boolean;
32
- store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void;
33
- shouldAttach(route: ActivatedRouteSnapshot): boolean;
34
- retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle;
35
- private addRedirectsRecursively;
36
- private getFullRouteUrl;
37
- private getFullRouteUrlPaths;
38
- private getRouteUrlPaths;
39
- private getRouteData;
25
+ export declare enum ContextMenuActionTypes {
26
+ ContextMenu = "CONTEXT_MENU"
40
27
  }
@@ -23,9 +23,7 @@
23
23
  * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
24
24
  */
25
25
  import { Action } from '@ngrx/store';
26
- export declare enum ContextMenuActionTypes {
27
- ContextMenu = "CONTEXT_MENU"
28
- }
26
+ import { ContextMenuActionTypes } from './context-menu-action-types';
29
27
  export declare class ContextMenu implements Action {
30
28
  event: MouseEvent;
31
29
  readonly type = ContextMenuActionTypes.ContextMenu;
@@ -24,6 +24,7 @@
24
24
  */
25
25
  import { Action } from '@ngrx/store';
26
26
  import { SiteBody } from '@alfresco/js-api';
27
+ import { ModalConfiguration } from '../models/modal-configuration';
27
28
  export declare enum LibraryActionTypes {
28
29
  Delete = "DELETE_LIBRARY",
29
30
  Create = "CREATE_LIBRARY",
@@ -52,6 +53,7 @@ export declare class UpdateLibraryAction implements Action {
52
53
  }
53
54
  export declare class LeaveLibraryAction implements Action {
54
55
  payload?: string;
56
+ configuration?: ModalConfiguration;
55
57
  readonly type = LibraryActionTypes.Leave;
56
- constructor(payload?: string);
58
+ constructor(payload?: string, configuration?: ModalConfiguration);
57
59
  }