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

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
@@ -24,6 +24,7 @@
24
24
  */
25
25
  import { Action } from '@ngrx/store';
26
26
  import { MinimalNodeEntity } from '@alfresco/js-api';
27
+ import { ModalConfiguration } from '../models/modal-configuration';
27
28
  export declare enum NodeActionTypes {
28
29
  SetSelection = "SET_SELECTED_NODES",
29
30
  Delete = "DELETE_NODES",
@@ -43,7 +44,10 @@ export declare enum NodeActionTypes {
43
44
  EditOffline = "EDIT_OFFLINE",
44
45
  UnlockForWriting = "UNLOCK_WRITE_LOCK",
45
46
  AddFavorite = "ADD_FAVORITE",
46
- RemoveFavorite = "REMOVE_FAVORITE"
47
+ RemoveFavorite = "REMOVE_FAVORITE",
48
+ ChangeAspects = "ASPECT_LIST",
49
+ ExpandInfoDrawer = "EXPAND_INFO_DRAWER",
50
+ ManageRules = "MANAGE_RULES"
47
51
  }
48
52
  export declare class SetSelectedNodesAction implements Action {
49
53
  payload: MinimalNodeEntity[];
@@ -72,8 +76,9 @@ export declare class PurgeDeletedNodesAction implements Action {
72
76
  }
73
77
  export declare class DownloadNodesAction implements Action {
74
78
  payload: MinimalNodeEntity[];
79
+ configuration?: ModalConfiguration;
75
80
  readonly type = NodeActionTypes.Download;
76
- constructor(payload?: MinimalNodeEntity[]);
81
+ constructor(payload?: MinimalNodeEntity[], configuration?: ModalConfiguration);
77
82
  }
78
83
  export declare class CreateFolderAction implements Action {
79
84
  payload: string;
@@ -82,13 +87,15 @@ export declare class CreateFolderAction implements Action {
82
87
  }
83
88
  export declare class EditFolderAction implements Action {
84
89
  payload: MinimalNodeEntity;
90
+ configuration?: ModalConfiguration;
85
91
  readonly type = NodeActionTypes.EditFolder;
86
- constructor(payload: MinimalNodeEntity);
92
+ constructor(payload: MinimalNodeEntity, configuration?: ModalConfiguration);
87
93
  }
88
94
  export declare class ShareNodeAction implements Action {
89
95
  payload: MinimalNodeEntity;
96
+ configuration?: ModalConfiguration;
90
97
  readonly type = NodeActionTypes.Share;
91
- constructor(payload: MinimalNodeEntity);
98
+ constructor(payload: MinimalNodeEntity, configuration?: ModalConfiguration);
92
99
  }
93
100
  export declare class UnshareNodesAction implements Action {
94
101
  payload: Array<MinimalNodeEntity>;
@@ -97,19 +104,26 @@ export declare class UnshareNodesAction implements Action {
97
104
  }
98
105
  export declare class CopyNodesAction implements Action {
99
106
  payload: Array<MinimalNodeEntity>;
107
+ configuration?: ModalConfiguration;
100
108
  readonly type = NodeActionTypes.Copy;
101
- constructor(payload: Array<MinimalNodeEntity>);
109
+ constructor(payload: Array<MinimalNodeEntity>, configuration?: ModalConfiguration);
102
110
  }
103
111
  export declare class MoveNodesAction implements Action {
104
112
  payload: Array<MinimalNodeEntity>;
113
+ configuration?: ModalConfiguration;
105
114
  readonly type = NodeActionTypes.Move;
106
- constructor(payload: Array<MinimalNodeEntity>);
115
+ constructor(payload: Array<MinimalNodeEntity>, configuration?: ModalConfiguration);
107
116
  }
108
117
  export declare class ManagePermissionsAction implements Action {
109
118
  payload: MinimalNodeEntity;
110
119
  readonly type = NodeActionTypes.ManagePermissions;
111
120
  constructor(payload: MinimalNodeEntity);
112
121
  }
122
+ export declare class ExpandInfoDrawerAction implements Action {
123
+ payload: MinimalNodeEntity;
124
+ readonly type = NodeActionTypes.ExpandInfoDrawer;
125
+ constructor(payload: MinimalNodeEntity);
126
+ }
113
127
  export declare class PrintFileAction implements Action {
114
128
  payload: MinimalNodeEntity;
115
129
  readonly type = NodeActionTypes.PrintFile;
@@ -117,8 +131,9 @@ export declare class PrintFileAction implements Action {
117
131
  }
118
132
  export declare class ManageVersionsAction implements Action {
119
133
  payload: MinimalNodeEntity;
134
+ configuration?: ModalConfiguration;
120
135
  readonly type = NodeActionTypes.ManageVersions;
121
- constructor(payload: MinimalNodeEntity);
136
+ constructor(payload: MinimalNodeEntity, configuration?: ModalConfiguration);
122
137
  }
123
138
  export declare class EditOfflineAction implements Action {
124
139
  payload: any;
@@ -140,3 +155,14 @@ export declare class RemoveFavoriteAction implements Action {
140
155
  readonly type = NodeActionTypes.RemoveFavorite;
141
156
  constructor(payload: Array<MinimalNodeEntity>);
142
157
  }
158
+ export declare class ManageAspectsAction implements Action {
159
+ payload: MinimalNodeEntity;
160
+ configuration?: ModalConfiguration;
161
+ readonly type = NodeActionTypes.ChangeAspects;
162
+ constructor(payload: MinimalNodeEntity, configuration?: ModalConfiguration);
163
+ }
164
+ export declare class ManageRulesAction implements Action {
165
+ payload: MinimalNodeEntity;
166
+ readonly type = NodeActionTypes.ManageRules;
167
+ constructor(payload: MinimalNodeEntity);
168
+ }
@@ -0,0 +1,31 @@
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 RouterActionTypes {
26
+ NavigateUrl = "NAVIGATE_URL",
27
+ NavigateRoute = "NAVIGATE_ROUTE",
28
+ NavigateFolder = "NAVIGATE_FOLDER",
29
+ NavigateParentFolder = "NAVIGATE_PARENT_FOLDER",
30
+ NavigateToPreviousPage = "NAVIGATE_TO_PREVIOUS_PAGE"
31
+ }
@@ -24,12 +24,7 @@
24
24
  */
25
25
  import { Action } from '@ngrx/store';
26
26
  import { MinimalNodeEntity } from '@alfresco/js-api';
27
- export declare enum RouterActionTypes {
28
- NavigateUrl = "NAVIGATE_URL",
29
- NavigateRoute = "NAVIGATE_ROUTE",
30
- NavigateFolder = "NAVIGATE_FOLDER",
31
- NavigateParentFolder = "NAVIGATE_PARENT_FOLDER"
32
- }
27
+ import { RouterActionTypes } from './router-action-types';
33
28
  export declare class NavigateUrlAction implements Action {
34
29
  payload: string;
35
30
  readonly type = RouterActionTypes.NavigateUrl;
@@ -50,3 +45,7 @@ export declare class NavigateToParentFolder implements Action {
50
45
  readonly type = RouterActionTypes.NavigateParentFolder;
51
46
  constructor(payload: MinimalNodeEntity);
52
47
  }
48
+ export declare class NavigateToPreviousPage implements Action {
49
+ readonly type = RouterActionTypes.NavigateToPreviousPage;
50
+ constructor();
51
+ }
@@ -25,10 +25,7 @@
25
25
  import { Action } from '@ngrx/store';
26
26
  import { SearchOptionModel } from '../models/search-option.model';
27
27
  export declare enum SearchActionTypes {
28
- SearchByTerm = "SEARCH_BY_TERM",
29
- ToggleFilter = "TOGGLE_SEARCH_FILTER",
30
- ShowFilter = "SHOW_SEARCH_FILTER",
31
- HideFilter = "HIDE_SEARCH_FILTER"
28
+ SearchByTerm = "SEARCH_BY_TERM"
32
29
  }
33
30
  export declare class SearchByTermAction implements Action {
34
31
  payload: string;
@@ -36,12 +33,3 @@ export declare class SearchByTermAction implements Action {
36
33
  readonly type = SearchActionTypes.SearchByTerm;
37
34
  constructor(payload: string, searchOptions?: SearchOptionModel[]);
38
35
  }
39
- export declare class ToggleSearchFilterAction implements Action {
40
- readonly type = SearchActionTypes.ToggleFilter;
41
- }
42
- export declare class ShowSearchFilterAction implements Action {
43
- readonly type = SearchActionTypes.ShowFilter;
44
- }
45
- export declare class HideSearchFilterAction implements Action {
46
- readonly type = SearchActionTypes.HideFilter;
47
- }
@@ -30,9 +30,9 @@ export declare enum SnackbarActionTypes {
30
30
  }
31
31
  export interface SnackbarAction extends Action {
32
32
  payload: string;
33
- params?: Object;
33
+ params?: any;
34
34
  userAction?: SnackbarUserAction;
35
- duration: number;
35
+ duration?: number;
36
36
  }
37
37
  export declare class SnackbarUserAction {
38
38
  title: string;
@@ -41,25 +41,22 @@ export declare class SnackbarUserAction {
41
41
  }
42
42
  export declare class SnackbarInfoAction implements SnackbarAction {
43
43
  payload: string;
44
- params?: Object;
44
+ params?: any;
45
45
  readonly type = SnackbarActionTypes.Info;
46
46
  userAction?: SnackbarUserAction;
47
- duration: number;
48
- constructor(payload: string, params?: Object);
47
+ constructor(payload: string, params?: any);
49
48
  }
50
49
  export declare class SnackbarWarningAction implements SnackbarAction {
51
50
  payload: string;
52
- params?: Object;
51
+ params?: any;
53
52
  readonly type = SnackbarActionTypes.Warning;
54
53
  userAction?: SnackbarUserAction;
55
- duration: number;
56
- constructor(payload: string, params?: Object);
54
+ constructor(payload: string, params?: any);
57
55
  }
58
56
  export declare class SnackbarErrorAction implements SnackbarAction {
59
57
  payload: string;
60
- params?: Object;
58
+ params?: any;
61
59
  readonly type = SnackbarActionTypes.Error;
62
60
  userAction?: SnackbarUserAction;
63
- duration: number;
64
- constructor(payload: string, params?: Object);
61
+ constructor(payload: string, params?: any);
65
62
  }
@@ -0,0 +1,30 @@
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 TemplateActionTypes {
26
+ FileFromTemplate = "FILE_FROM_TEMPLATE",
27
+ FolderFromTemplate = "FOLDER_FROM_TEMPLATE",
28
+ CreateFromTemplate = "CREATE_FROM_TEMPLATE",
29
+ CreateFromTemplateSuccess = "CREATE_FROM_TEMPLATE_SUCCESS"
30
+ }
@@ -24,12 +24,7 @@
24
24
  */
25
25
  import { Action } from '@ngrx/store';
26
26
  import { Node } from '@alfresco/js-api';
27
- export declare enum TemplateActionTypes {
28
- FileFromTemplate = "FILE_FROM_TEMPLATE",
29
- FolderFromTemplate = "FOLDER_FROM_TEMPLATE",
30
- CreateFromTemplate = "CREATE_FROM_TEMPLATE",
31
- CreateFromTemplateSuccess = "CREATE_FROM_TEMPLATE_SUCCESS"
32
- }
27
+ import { TemplateActionTypes } from './template-action-types';
33
28
  export declare class FileFromTemplate implements Action {
34
29
  readonly type = TemplateActionTypes.FileFromTemplate;
35
30
  constructor();
@@ -23,6 +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
+ import { ModalConfiguration } from '../models/modal-configuration';
26
27
  export declare enum UploadActionTypes {
27
28
  UploadFiles = "UPLOAD_FILES",
28
29
  UploadFolder = "UPLOAD_FOLDER",
@@ -40,6 +41,7 @@ export declare class UploadFolderAction implements Action {
40
41
  }
41
42
  export declare class UploadFileVersionAction implements Action {
42
43
  payload: CustomEvent;
44
+ configuration?: ModalConfiguration;
43
45
  readonly type = UploadActionTypes.UploadFileVersion;
44
- constructor(payload: CustomEvent);
46
+ constructor(payload: CustomEvent, configuration?: ModalConfiguration);
45
47
  }
@@ -30,6 +30,7 @@ export declare enum ViewerActionTypes {
30
30
  ViewNodeVersion = "VIEW_NODE_VERSION",
31
31
  FullScreen = "FULLSCREEN_VIEWER",
32
32
  ClosePreview = "CLOSE_PREVIEW",
33
+ RefreshPreview = "REFRESH_PREVIEW",
33
34
  PluginPreview = "PLUGIN_PREVIEW"
34
35
  }
35
36
  export interface ViewNodeExtras {
@@ -65,6 +66,11 @@ export declare class ClosePreviewAction implements Action {
65
66
  readonly type = ViewerActionTypes.ClosePreview;
66
67
  constructor(payload?: MinimalNodeEntity);
67
68
  }
69
+ export declare class RefreshPreviewAction implements Action {
70
+ payload?: MinimalNodeEntity;
71
+ readonly type = ViewerActionTypes.RefreshPreview;
72
+ constructor(payload?: MinimalNodeEntity);
73
+ }
68
74
  export declare class PluginPreviewAction implements Action {
69
75
  pluginRoute: string;
70
76
  nodeId: string;
@@ -24,9 +24,12 @@
24
24
  */
25
25
  import { Actions } from '@ngrx/effects';
26
26
  import { MatDialog } from '@angular/material/dialog';
27
+ import * as i0 from "@angular/core";
27
28
  export declare class DialogEffects {
28
29
  private actions$;
29
30
  private matDialog;
30
31
  constructor(actions$: Actions, matDialog: MatDialog);
31
- closeAll$: import("rxjs").Observable<void>;
32
+ closeAll$: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogEffects, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogEffects>;
32
35
  }
@@ -1,41 +1,23 @@
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
1
  import { Router } from '@angular/router';
26
2
  import { Actions } from '@ngrx/effects';
27
3
  import { Store } from '@ngrx/store';
28
4
  import { AppStore } from '../states/app.state';
5
+ import { Location } from '@angular/common';
6
+ import * as i0 from "@angular/core";
29
7
  export declare class RouterEffects {
30
8
  private store;
31
9
  private actions$;
32
10
  private router;
33
- constructor(store: Store<AppStore>, actions$: Actions, router: Router);
34
- navigateUrl$: import("rxjs").Observable<void>;
35
- navigateRoute$: import("rxjs").Observable<void>;
36
- navigateToFolder$: import("rxjs").Observable<void>;
37
- navigateToParentFolder$: import("rxjs").Observable<void>;
11
+ private location;
12
+ constructor(store: Store<AppStore>, actions$: Actions, router: Router, location: Location);
13
+ navigateUrl$: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
14
+ navigateRoute$: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
15
+ navigateToFolder$: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
16
+ navigateToParentFolder$: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
17
+ navigateToPreviousPage$: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
38
18
  private navigateToFolder;
39
19
  private navigateToParentFolder;
40
20
  private isLibraryContent;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterEffects, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouterEffects>;
41
23
  }
@@ -27,15 +27,18 @@ import { MatSnackBar } from '@angular/material/snack-bar';
27
27
  import { Actions } from '@ngrx/effects';
28
28
  import { Store } from '@ngrx/store';
29
29
  import { AppStore } from '../states/app.state';
30
+ import * as i0 from "@angular/core";
30
31
  export declare class SnackbarEffects {
31
32
  private store;
32
33
  private actions$;
33
34
  private snackBar;
34
35
  private translationService;
35
36
  constructor(store: Store<AppStore>, actions$: Actions, snackBar: MatSnackBar, translationService: TranslationService);
36
- infoEffect: import("rxjs").Observable<void>;
37
- warningEffect: import("rxjs").Observable<void>;
38
- errorEffect: import("rxjs").Observable<void>;
37
+ infoEffect: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
38
+ warningEffect: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
39
+ errorEffect: import("rxjs").Observable<void> & import("@ngrx/effects").CreateEffectMetadata;
39
40
  private showSnackBar;
40
41
  private translate;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarEffects, never>;
43
+ static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarEffects>;
41
44
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@alfresco/aca-shared/store" />
4
5
  export * from './public-api';
@@ -0,0 +1,3 @@
1
+ export interface ModalConfiguration {
2
+ focusedElementOnCloseSelector?: string;
3
+ }
@@ -22,6 +22,10 @@
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
+ export * from './actions/app-action-types';
26
+ export * from './actions/context-menu-action-types';
27
+ export * from './actions/router-action-types';
28
+ export * from './actions/template-action-types';
25
29
  export * from './actions/app.actions';
26
30
  export * from './actions/library.actions';
27
31
  export * from './actions/node.actions';
@@ -25,10 +25,12 @@
25
25
  import { AppStore } from '../states/app.state';
26
26
  export declare const selectApp: (state: AppStore) => import("../states/app.state").AppState;
27
27
  export declare const getHeaderColor: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
28
+ export declare const getHeaderTextColor: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
28
29
  export declare const getAppName: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
29
30
  export declare const getLogoPath: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
31
+ export declare const getCustomCssPath: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
32
+ export declare const getCustomWebFontPath: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
30
33
  export declare const getHeaderImagePath: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
31
- export declare const getLanguagePickerState: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
32
34
  export declare const getUserProfile: import("@ngrx/store").MemoizedSelector<AppStore, import("@alfresco/adf-extensions").ProfileState, import("@ngrx/store").DefaultProjectorFn<import("@alfresco/adf-extensions").ProfileState>>;
33
35
  export declare const getCurrentFolder: import("@ngrx/store").MemoizedSelector<AppStore, import("@alfresco/js-api").MinimalNode, import("@ngrx/store").DefaultProjectorFn<import("@alfresco/js-api").MinimalNode>>;
34
36
  export declare const getCurrentVersion: import("@ngrx/store").MemoizedSelector<AppStore, import("@alfresco/js-api").VersionEntry, import("@ngrx/store").DefaultProjectorFn<import("@alfresco/js-api").VersionEntry>>;
@@ -36,11 +38,14 @@ export declare const getAppSelection: import("@ngrx/store").MemoizedSelector<App
36
38
  export declare const getSharedUrl: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
37
39
  export declare const getNavigationState: import("@ngrx/store").MemoizedSelector<AppStore, import("@alfresco/adf-extensions").NavigationState, import("@ngrx/store").DefaultProjectorFn<import("@alfresco/adf-extensions").NavigationState>>;
38
40
  export declare const isInfoDrawerOpened: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
41
+ export declare const infoDrawerPreview: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
39
42
  export declare const showFacetFilter: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
40
43
  export declare const getDocumentDisplayMode: import("@ngrx/store").MemoizedSelector<AppStore, string, import("@ngrx/store").DefaultProjectorFn<string>>;
41
44
  export declare const getRepositoryStatus: import("@ngrx/store").MemoizedSelector<AppStore, import("@alfresco/js-api").RepositoryInfo, import("@ngrx/store").DefaultProjectorFn<import("@alfresco/js-api").RepositoryInfo>>;
42
45
  export declare const isQuickShareEnabled: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
43
46
  export declare const isAdmin: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
47
+ export declare const getFileUploadingDialog: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
48
+ export declare const showLoaderSelector: import("@ngrx/store").MemoizedSelector<AppStore, boolean, import("@ngrx/store").DefaultProjectorFn<boolean>>;
44
49
  export declare const getSideNavState: import("@ngrx/store").MemoizedSelector<AppStore, {
45
50
  selection: import("@alfresco/adf-extensions").SelectionState;
46
51
  navigation: import("@alfresco/adf-extensions").NavigationState;
@@ -24,22 +24,29 @@
24
24
  */
25
25
  import { SelectionState, ProfileState, NavigationState } from '@alfresco/adf-extensions';
26
26
  import { RepositoryInfo, VersionEntry } from '@alfresco/js-api';
27
+ import { InjectionToken } from '@angular/core';
28
+ export declare const STORE_INITIAL_APP_DATA: InjectionToken<AppState>;
27
29
  export interface AppState {
28
30
  appName: string;
29
31
  headerColor: string;
32
+ headerTextColor: string;
30
33
  logoPath: string;
34
+ customCssPath: string;
35
+ webFontPath: string;
31
36
  headerImagePath: string;
32
- languagePicker: boolean;
33
37
  sharedUrl: string;
34
38
  currentNodeVersion: VersionEntry;
35
39
  selection: SelectionState;
36
40
  user: ProfileState;
37
41
  navigation: NavigationState;
38
42
  infoDrawerOpened: boolean;
43
+ infoDrawerPreview: boolean;
39
44
  infoDrawerMetadataAspect: string;
40
45
  showFacetFilter: boolean;
41
46
  documentDisplayMode: string;
42
47
  repository: RepositoryInfo;
48
+ fileUploadingDialog: boolean;
49
+ showLoader: boolean;
43
50
  }
44
51
  export interface AppStore {
45
52
  app: AppState;
@@ -1,26 +1,7 @@
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
- */
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@ngrx/effects";
25
3
  export declare class SharedStoreModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedStoreModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedStoreModule, never, [typeof i1.EffectsFeatureModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedStoreModule>;
26
7
  }