@alfresco/aca-shared 1.12.0 → 4.0.0-4895233349

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 (321) hide show
  1. package/README.md +7 -6
  2. package/esm2020/alfresco-aca-shared.mjs +5 -0
  3. package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +73 -0
  4. package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +176 -0
  5. package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +26 -0
  6. package/esm2020/lib/components/generic-error/generic-error.component.mjs +41 -0
  7. package/esm2020/lib/components/generic-error/generic-error.module.mjs +44 -0
  8. package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +123 -0
  9. package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +46 -0
  10. package/esm2020/lib/components/locked-by/locked-by.component.mjs +52 -0
  11. package/esm2020/lib/components/locked-by/locked-by.module.mjs +44 -0
  12. package/esm2020/lib/components/open-in-app/open-in-app.component.mjs +58 -0
  13. package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +48 -0
  14. package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +40 -0
  15. package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +40 -0
  16. package/esm2020/lib/components/page-layout/page-layout.component.mjs +57 -0
  17. package/esm2020/lib/components/page-layout/page-layout.module.mjs +47 -0
  18. package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +46 -0
  19. package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +59 -0
  20. package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +69 -0
  21. package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +82 -0
  22. package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +68 -0
  23. package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +106 -0
  24. package/esm2020/lib/directives/contextmenu/contextmenu.module.mjs +42 -0
  25. package/esm2020/lib/directives/pagination.directive.mjs +54 -0
  26. package/esm2020/lib/directives/shared.directives.module.mjs +41 -0
  27. package/esm2020/lib/models/modal-configuration.mjs +25 -0
  28. package/esm2020/lib/models/types.mjs +25 -0
  29. package/esm2020/lib/models/viewer.rules.mjs +25 -0
  30. package/esm2020/lib/routing/shared.guard.mjs +48 -0
  31. package/esm2020/lib/services/aca-file-auto-download.service.mjs +55 -0
  32. package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +107 -0
  33. package/esm2020/lib/services/alfresco-office-extension.service.mjs +63 -0
  34. package/esm2020/lib/services/app-hook.service.mjs +87 -0
  35. package/esm2020/lib/services/app.extension.service.mjs +444 -0
  36. package/esm2020/lib/services/app.service.mjs +223 -0
  37. package/esm2020/lib/services/content-api.service.mjs +266 -0
  38. package/esm2020/lib/services/node-permission.service.mjs +89 -0
  39. package/esm2020/lib/services/router.extension.service.mjs +105 -0
  40. package/esm2020/lib/shared.module.mjs +54 -0
  41. package/esm2020/lib/testing/lib-testing-module.mjs +115 -0
  42. package/esm2020/lib/utils/node.utils.mjs +42 -0
  43. package/esm2020/public-api.mjs +62 -0
  44. package/esm2020/rules/alfresco-aca-shared-rules.mjs +5 -0
  45. package/esm2020/rules/app.rules.mjs +526 -0
  46. package/esm2020/rules/navigation.rules.mjs +156 -0
  47. package/esm2020/rules/public-api.mjs +28 -0
  48. package/esm2020/rules/repository.rules.mjs +33 -0
  49. package/esm2020/rules/user.rules.mjs +29 -0
  50. package/esm2020/store/actions/app-action-types.mjs +46 -0
  51. package/esm2020/store/actions/app.actions.mjs +128 -0
  52. package/esm2020/store/actions/context-menu-action-types.mjs +28 -0
  53. package/esm2020/store/actions/contextmenu.actions.mjs +31 -0
  54. package/esm2020/store/actions/library.actions.mjs +63 -0
  55. package/esm2020/store/actions/metadata-aspect.actions.mjs +31 -0
  56. package/esm2020/store/actions/node.actions.mjs +188 -0
  57. package/esm2020/store/actions/router-action-types.mjs +32 -0
  58. package/esm2020/store/actions/router.actions.mjs +54 -0
  59. package/esm2020/store/actions/search.actions.mjs +41 -0
  60. package/esm2020/store/actions/snackbar.actions.mjs +57 -0
  61. package/esm2020/store/actions/template-action-types.mjs +31 -0
  62. package/esm2020/store/actions/template.actions.mjs +47 -0
  63. package/esm2020/store/actions/upload.actions.mjs +49 -0
  64. package/esm2020/store/actions/viewer.actions.mjs +81 -0
  65. package/esm2020/store/alfresco-aca-shared-store.mjs +5 -0
  66. package/esm2020/store/effects/dialog.effects.mjs +44 -0
  67. package/esm2020/store/effects/router.effects.mjs +116 -0
  68. package/esm2020/store/effects/snackbar.effects.mjs +85 -0
  69. package/esm2020/store/models/delete-status.model.mjs +25 -0
  70. package/esm2020/store/models/deleted-node-info.model.mjs +25 -0
  71. package/esm2020/store/models/modal-configuration.mjs +25 -0
  72. package/esm2020/store/models/node-info.model.mjs +25 -0
  73. package/esm2020/store/models/search-option.model.mjs +30 -0
  74. package/esm2020/store/public-api.mjs +49 -0
  75. package/esm2020/store/selectors/app.selectors.mjs +56 -0
  76. package/esm2020/store/states/app.state.mjs +26 -0
  77. package/esm2020/store/store.module.mjs +42 -0
  78. package/fesm2015/alfresco-aca-shared-rules.mjs +775 -0
  79. package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -0
  80. package/fesm2015/alfresco-aca-shared-store.mjs +1300 -0
  81. package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -0
  82. package/fesm2015/alfresco-aca-shared.mjs +2902 -0
  83. package/fesm2015/alfresco-aca-shared.mjs.map +1 -0
  84. package/fesm2020/alfresco-aca-shared-rules.mjs +771 -0
  85. package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -0
  86. package/fesm2020/alfresco-aca-shared-store.mjs +1376 -0
  87. package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -0
  88. package/fesm2020/alfresco-aca-shared.mjs +3049 -0
  89. package/fesm2020/alfresco-aca-shared.mjs.map +1 -0
  90. package/{rules/alfresco-aca-shared-rules.d.ts → index.d.ts} +1 -0
  91. package/lib/adf-extensions/extensions-data-loader.guard.d.ts +9 -7
  92. package/lib/components/document-base-page/document-base-page.component.d.ts +76 -0
  93. package/lib/components/document-base-page/document-base-page.service.d.ts +28 -0
  94. package/lib/components/generic-error/generic-error.component.d.ts +3 -24
  95. package/lib/components/generic-error/generic-error.module.d.ts +8 -24
  96. package/lib/components/info-drawer/info-drawer.component.d.ts +11 -6
  97. package/lib/components/info-drawer/shared-info-drawer.module.d.ts +11 -24
  98. package/lib/components/locked-by/locked-by.component.d.ts +5 -30
  99. package/lib/components/locked-by/locked-by.module.d.ts +8 -24
  100. package/lib/components/open-in-app/open-in-app.component.d.ts +16 -0
  101. package/lib/components/page-layout/page-layout-content.component.d.ts +3 -24
  102. package/lib/components/page-layout/page-layout-error.component.d.ts +3 -24
  103. package/lib/components/page-layout/page-layout-header.component.d.ts +3 -24
  104. package/lib/components/page-layout/page-layout.component.d.ts +18 -7
  105. package/lib/components/page-layout/page-layout.module.d.ts +12 -24
  106. package/lib/components/tool-bar/shared-toolbar.module.d.ts +11 -24
  107. package/lib/components/tool-bar/toolbar-action/toolbar-action.component.d.ts +16 -8
  108. package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +10 -25
  109. package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +25 -12
  110. package/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.d.ts +7 -27
  111. package/lib/directives/contextmenu/contextmenu.directive.d.ts +10 -7
  112. package/lib/directives/contextmenu/contextmenu.module.d.ts +5 -24
  113. package/lib/directives/pagination.directive.d.ts +8 -6
  114. package/lib/directives/shared.directives.module.d.ts +6 -24
  115. package/lib/models/modal-configuration.d.ts +26 -0
  116. package/lib/models/types.d.ts +5 -6
  117. package/lib/models/viewer.rules.d.ts +9 -6
  118. package/lib/routing/shared.guard.d.ts +5 -26
  119. package/lib/services/aca-file-auto-download.service.d.ts +13 -0
  120. package/lib/services/aca-mobile-app-switcher.service.d.ts +48 -0
  121. package/lib/services/alfresco-office-extension.service.d.ts +11 -0
  122. package/lib/services/app-hook.service.d.ts +55 -0
  123. package/lib/services/app.extension.service.d.ts +31 -53
  124. package/lib/services/app.service.d.ts +52 -13
  125. package/lib/services/content-api.service.d.ts +35 -25
  126. package/lib/services/node-permission.service.d.ts +3 -24
  127. package/lib/services/router.extension.service.d.ts +21 -0
  128. package/lib/shared.module.d.ts +16 -7
  129. package/lib/testing/lib-testing-module.d.ts +41 -0
  130. package/lib/utils/node.utils.d.ts +5 -6
  131. package/package.json +61 -21
  132. package/public-api.d.ts +24 -11
  133. package/rules/app.rules.d.ts +128 -36
  134. package/{store/alfresco-aca-shared-store.d.ts → rules/index.d.ts} +1 -0
  135. package/rules/navigation.rules.d.ts +12 -12
  136. package/rules/public-api.d.ts +5 -6
  137. package/rules/repository.rules.d.ts +7 -7
  138. package/rules/user.rules.d.ts +6 -7
  139. package/store/actions/app-action-types.d.ts +44 -0
  140. package/store/actions/app.actions.d.ts +30 -29
  141. package/store/actions/context-menu-action-types.d.ts +26 -0
  142. package/store/actions/contextmenu.actions.d.ts +6 -9
  143. package/store/actions/library.actions.d.ts +8 -7
  144. package/store/actions/metadata-aspect.actions.d.ts +5 -6
  145. package/store/actions/node.actions.d.ts +38 -13
  146. package/store/actions/router-action-types.d.ts +30 -0
  147. package/store/actions/router.actions.d.ts +10 -12
  148. package/store/actions/search.actions.d.ts +11 -19
  149. package/store/actions/snackbar.actions.d.ts +13 -17
  150. package/store/actions/template-action-types.d.ts +29 -0
  151. package/store/actions/template.actions.d.ts +6 -12
  152. package/store/actions/upload.actions.d.ts +8 -7
  153. package/store/actions/viewer.actions.d.ts +27 -7
  154. package/store/effects/dialog.effects.d.ts +9 -7
  155. package/store/effects/router.effects.d.ts +11 -29
  156. package/store/effects/snackbar.effects.d.ts +11 -9
  157. package/store/index.d.ts +5 -0
  158. package/store/models/delete-status.model.d.ts +5 -6
  159. package/store/models/deleted-node-info.model.d.ts +5 -6
  160. package/store/models/modal-configuration.d.ts +26 -0
  161. package/store/models/node-info.model.d.ts +5 -6
  162. package/store/models/search-option.model.d.ts +5 -6
  163. package/store/public-api.d.ts +9 -6
  164. package/store/selectors/app.selectors.d.ts +35 -25
  165. package/store/states/app.state.d.ts +14 -10
  166. package/store/store.module.d.ts +5 -24
  167. package/alfresco-aca-shared.d.ts +0 -11
  168. package/alfresco-aca-shared.metadata.json +0 -1
  169. package/bundles/alfresco-aca-shared-rules.umd.js +0 -895
  170. package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
  171. package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -75
  172. package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
  173. package/bundles/alfresco-aca-shared-store.umd.js +0 -1399
  174. package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
  175. package/bundles/alfresco-aca-shared-store.umd.min.js +0 -26
  176. package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
  177. package/bundles/alfresco-aca-shared.umd.js +0 -2845
  178. package/bundles/alfresco-aca-shared.umd.js.map +0 -1
  179. package/bundles/alfresco-aca-shared.umd.min.js +0 -27
  180. package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
  181. package/esm2015/alfresco-aca-shared.js +0 -16
  182. package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -106
  183. package/esm2015/lib/components/generic-error/generic-error.component.js +0 -52
  184. package/esm2015/lib/components/generic-error/generic-error.module.js +0 -43
  185. package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -179
  186. package/esm2015/lib/components/info-drawer/shared-info-drawer.module.js +0 -52
  187. package/esm2015/lib/components/locked-by/locked-by.component.js +0 -74
  188. package/esm2015/lib/components/locked-by/locked-by.module.js +0 -42
  189. package/esm2015/lib/components/page-layout/page-layout-content.component.js +0 -53
  190. package/esm2015/lib/components/page-layout/page-layout-error.component.js +0 -43
  191. package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -41
  192. package/esm2015/lib/components/page-layout/page-layout.component.js +0 -52
  193. package/esm2015/lib/components/page-layout/page-layout.module.js +0 -54
  194. package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -56
  195. package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -81
  196. package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -96
  197. package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -69
  198. package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -95
  199. package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -156
  200. package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -42
  201. package/esm2015/lib/directives/pagination.directive.js +0 -93
  202. package/esm2015/lib/directives/shared.directives.module.js +0 -41
  203. package/esm2015/lib/models/types.js +0 -67
  204. package/esm2015/lib/models/viewer.rules.js +0 -40
  205. package/esm2015/lib/routing/app.routes.strategy.js +0 -207
  206. package/esm2015/lib/routing/shared.guard.js +0 -70
  207. package/esm2015/lib/services/app.extension.service.js +0 -686
  208. package/esm2015/lib/services/app.service.js +0 -95
  209. package/esm2015/lib/services/content-api.service.js +0 -331
  210. package/esm2015/lib/services/node-permission.service.js +0 -133
  211. package/esm2015/lib/shared.module.js +0 -51
  212. package/esm2015/lib/utils/node.utils.js +0 -53
  213. package/esm2015/public-api.js +0 -53
  214. package/esm2015/rules/alfresco-aca-shared-rules.js +0 -9
  215. package/esm2015/rules/app.rules.js +0 -563
  216. package/esm2015/rules/navigation.rules.js +0 -211
  217. package/esm2015/rules/public-api.js +0 -33
  218. package/esm2015/rules/repository.rules.js +0 -38
  219. package/esm2015/rules/user.rules.js +0 -38
  220. package/esm2015/store/actions/app.actions.js +0 -234
  221. package/esm2015/store/actions/contextmenu.actions.js +0 -49
  222. package/esm2015/store/actions/library.actions.js +0 -111
  223. package/esm2015/store/actions/metadata-aspect.actions.js +0 -46
  224. package/esm2015/store/actions/node.actions.js +0 -337
  225. package/esm2015/store/actions/router.actions.js +0 -97
  226. package/esm2015/store/actions/search.actions.js +0 -83
  227. package/esm2015/store/actions/snackbar.actions.js +0 -138
  228. package/esm2015/store/actions/template.actions.js +0 -85
  229. package/esm2015/store/actions/upload.actions.js +0 -81
  230. package/esm2015/store/actions/viewer.actions.js +0 -115
  231. package/esm2015/store/alfresco-aca-shared-store.js +0 -9
  232. package/esm2015/store/effects/dialog.effects.js +0 -72
  233. package/esm2015/store/effects/router.effects.js +0 -192
  234. package/esm2015/store/effects/snackbar.effects.js +0 -144
  235. package/esm2015/store/models/delete-status.model.js +0 -55
  236. package/esm2015/store/models/deleted-node-info.model.js +0 -41
  237. package/esm2015/store/models/node-info.model.js +0 -45
  238. package/esm2015/store/models/search-option.model.js +0 -52
  239. package/esm2015/store/public-api.js +0 -50
  240. package/esm2015/store/selectors/app.selectors.js +0 -82
  241. package/esm2015/store/states/app.state.js +0 -71
  242. package/esm2015/store/store.module.js +0 -43
  243. package/esm5/alfresco-aca-shared.js +0 -16
  244. package/esm5/lib/adf-extensions/extensions-data-loader.guard.js +0 -115
  245. package/esm5/lib/components/generic-error/generic-error.component.js +0 -54
  246. package/esm5/lib/components/generic-error/generic-error.module.js +0 -47
  247. package/esm5/lib/components/info-drawer/info-drawer.component.js +0 -209
  248. package/esm5/lib/components/info-drawer/shared-info-drawer.module.js +0 -56
  249. package/esm5/lib/components/locked-by/locked-by.component.js +0 -80
  250. package/esm5/lib/components/locked-by/locked-by.module.js +0 -46
  251. package/esm5/lib/components/page-layout/page-layout-content.component.js +0 -53
  252. package/esm5/lib/components/page-layout/page-layout-error.component.js +0 -45
  253. package/esm5/lib/components/page-layout/page-layout-header.component.js +0 -45
  254. package/esm5/lib/components/page-layout/page-layout.component.js +0 -54
  255. package/esm5/lib/components/page-layout/page-layout.module.js +0 -58
  256. package/esm5/lib/components/tool-bar/shared-toolbar.module.js +0 -60
  257. package/esm5/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -88
  258. package/esm5/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -103
  259. package/esm5/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -80
  260. package/esm5/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -103
  261. package/esm5/lib/directives/contextmenu/contextmenu.directive.js +0 -187
  262. package/esm5/lib/directives/contextmenu/contextmenu.module.js +0 -46
  263. package/esm5/lib/directives/pagination.directive.js +0 -97
  264. package/esm5/lib/directives/shared.directives.module.js +0 -45
  265. package/esm5/lib/models/types.js +0 -67
  266. package/esm5/lib/models/viewer.rules.js +0 -40
  267. package/esm5/lib/routing/app.routes.strategy.js +0 -268
  268. package/esm5/lib/routing/shared.guard.js +0 -77
  269. package/esm5/lib/services/app.extension.service.js +0 -835
  270. package/esm5/lib/services/app.service.js +0 -100
  271. package/esm5/lib/services/content-api.service.js +0 -495
  272. package/esm5/lib/services/node-permission.service.js +0 -161
  273. package/esm5/lib/shared.module.js +0 -58
  274. package/esm5/lib/utils/node.utils.js +0 -53
  275. package/esm5/public-api.js +0 -53
  276. package/esm5/rules/alfresco-aca-shared-rules.js +0 -9
  277. package/esm5/rules/app.rules.js +0 -563
  278. package/esm5/rules/navigation.rules.js +0 -211
  279. package/esm5/rules/public-api.js +0 -33
  280. package/esm5/rules/repository.rules.js +0 -38
  281. package/esm5/rules/user.rules.js +0 -38
  282. package/esm5/store/actions/app.actions.js +0 -232
  283. package/esm5/store/actions/contextmenu.actions.js +0 -48
  284. package/esm5/store/actions/library.actions.js +0 -108
  285. package/esm5/store/actions/metadata-aspect.actions.js +0 -45
  286. package/esm5/store/actions/node.actions.js +0 -322
  287. package/esm5/store/actions/router.actions.js +0 -93
  288. package/esm5/store/actions/search.actions.js +0 -87
  289. package/esm5/store/actions/snackbar.actions.js +0 -130
  290. package/esm5/store/actions/template.actions.js +0 -87
  291. package/esm5/store/actions/upload.actions.js +0 -78
  292. package/esm5/store/actions/viewer.actions.js +0 -109
  293. package/esm5/store/alfresco-aca-shared-store.js +0 -9
  294. package/esm5/store/effects/dialog.effects.js +0 -71
  295. package/esm5/store/effects/router.effects.js +0 -207
  296. package/esm5/store/effects/snackbar.effects.js +0 -154
  297. package/esm5/store/models/delete-status.model.js +0 -55
  298. package/esm5/store/models/deleted-node-info.model.js +0 -41
  299. package/esm5/store/models/node-info.model.js +0 -45
  300. package/esm5/store/models/search-option.model.js +0 -52
  301. package/esm5/store/public-api.js +0 -50
  302. package/esm5/store/selectors/app.selectors.js +0 -82
  303. package/esm5/store/states/app.state.js +0 -71
  304. package/esm5/store/store.module.js +0 -47
  305. package/fesm2015/alfresco-aca-shared-rules.js +0 -827
  306. package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
  307. package/fesm2015/alfresco-aca-shared-store.js +0 -1354
  308. package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
  309. package/fesm2015/alfresco-aca-shared.js +0 -2096
  310. package/fesm2015/alfresco-aca-shared.js.map +0 -1
  311. package/fesm5/alfresco-aca-shared-rules.js +0 -827
  312. package/fesm5/alfresco-aca-shared-rules.js.map +0 -1
  313. package/fesm5/alfresco-aca-shared-store.js +0 -1278
  314. package/fesm5/alfresco-aca-shared-store.js.map +0 -1
  315. package/fesm5/alfresco-aca-shared.js +0 -2637
  316. package/fesm5/alfresco-aca-shared.js.map +0 -1
  317. package/lib/routing/app.routes.strategy.d.ts +0 -40
  318. package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
  319. package/rules/package.json +0 -13
  320. package/store/alfresco-aca-shared-store.metadata.json +0 -1
  321. package/store/package.json +0 -13
@@ -1,1278 +0,0 @@
1
- import { MatDialog } from '@angular/material/dialog';
2
- import { Router } from '@angular/router';
3
- import { __decorate, __metadata } from 'tslib';
4
- import { TranslationService } from '@alfresco/adf-core';
5
- import { MatSnackBar } from '@angular/material/snack-bar';
6
- import { map } from 'rxjs/operators';
7
- import { Store, createSelector } from '@ngrx/store';
8
- import { Injectable, NgModule } from '@angular/core';
9
- import { Effect, Actions, ofType, EffectsModule } from '@ngrx/effects';
10
-
11
- /**
12
- * @fileoverview added by tsickle
13
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
14
- */
15
- /*!
16
- * @license
17
- * Alfresco Example Content Application
18
- *
19
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
20
- *
21
- * This file is part of the Alfresco Example Content Application.
22
- * If the software was purchased under a paid Alfresco license, the terms of
23
- * the paid license agreement will prevail. Otherwise, the software is
24
- * provided under the following open source license terms:
25
- *
26
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
27
- * it under the terms of the GNU Lesser General Public License as published by
28
- * the Free Software Foundation, either version 3 of the License, or
29
- * (at your option) any later version.
30
- *
31
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
32
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
33
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
- * GNU Lesser General Public License for more details.
35
- *
36
- * You should have received a copy of the GNU Lesser General Public License
37
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
38
- */
39
- /** @enum {string} */
40
- var AppActionTypes = {
41
- SetSettingsParameter: 'SET_SETTINGS_PARAMETER',
42
- SetInitialState: 'SET_INITIAL_STATE',
43
- SetHeaderColor: 'SET_HEADER_COLOR',
44
- SetCurrentFolder: 'SET_CURRENT_FOLDER',
45
- SetCurrentUrl: 'SET_CURRENT_URL',
46
- SetUserProfile: 'SET_USER_PROFILE',
47
- SetRepositoryInfo: 'SET_REPOSITORY_INFO',
48
- ToggleInfoDrawer: 'TOGGLE_INFO_DRAWER',
49
- ToggleDocumentDisplayMode: 'TOGGLE_DOCUMENT_DISPLAY_MODE',
50
- Logout: 'LOGOUT',
51
- ReloadDocumentList: 'RELOAD_DOCUMENT_LIST',
52
- ResetSelection: 'RESET_SELECTION',
53
- SetInfoDrawerState: 'SET_INFO_DRAWER_STATE',
54
- SetInfoDrawerMetadataAspect: 'SET_INFO_DRAWER_METADATA_ASPECT',
55
- CloseModalDialogs: 'CLOSE_MODAL_DIALOGS',
56
- };
57
- var SetSettingsParameterAction = /** @class */ (function () {
58
- function SetSettingsParameterAction(payload) {
59
- this.payload = payload;
60
- this.type = AppActionTypes.SetSettingsParameter;
61
- }
62
- return SetSettingsParameterAction;
63
- }());
64
- var SetInitialStateAction = /** @class */ (function () {
65
- function SetInitialStateAction(payload) {
66
- this.payload = payload;
67
- this.type = AppActionTypes.SetInitialState;
68
- }
69
- return SetInitialStateAction;
70
- }());
71
- var SetHeaderColorAction = /** @class */ (function () {
72
- function SetHeaderColorAction(color) {
73
- this.color = color;
74
- this.type = AppActionTypes.SetHeaderColor;
75
- }
76
- return SetHeaderColorAction;
77
- }());
78
- var SetCurrentFolderAction = /** @class */ (function () {
79
- function SetCurrentFolderAction(payload) {
80
- this.payload = payload;
81
- this.type = AppActionTypes.SetCurrentFolder;
82
- }
83
- return SetCurrentFolderAction;
84
- }());
85
- var SetCurrentUrlAction = /** @class */ (function () {
86
- function SetCurrentUrlAction(payload) {
87
- this.payload = payload;
88
- this.type = AppActionTypes.SetCurrentUrl;
89
- }
90
- return SetCurrentUrlAction;
91
- }());
92
- var SetUserProfileAction = /** @class */ (function () {
93
- function SetUserProfileAction(payload) {
94
- this.payload = payload;
95
- this.type = AppActionTypes.SetUserProfile;
96
- }
97
- return SetUserProfileAction;
98
- }());
99
- var ToggleInfoDrawerAction = /** @class */ (function () {
100
- function ToggleInfoDrawerAction() {
101
- this.type = AppActionTypes.ToggleInfoDrawer;
102
- }
103
- return ToggleInfoDrawerAction;
104
- }());
105
- var ToggleDocumentDisplayMode = /** @class */ (function () {
106
- function ToggleDocumentDisplayMode() {
107
- this.type = AppActionTypes.ToggleDocumentDisplayMode;
108
- }
109
- return ToggleDocumentDisplayMode;
110
- }());
111
- var LogoutAction = /** @class */ (function () {
112
- function LogoutAction() {
113
- this.type = AppActionTypes.Logout;
114
- }
115
- return LogoutAction;
116
- }());
117
- var ReloadDocumentListAction = /** @class */ (function () {
118
- function ReloadDocumentListAction(payload) {
119
- this.payload = payload;
120
- this.type = AppActionTypes.ReloadDocumentList;
121
- }
122
- return ReloadDocumentListAction;
123
- }());
124
- var ResetSelectionAction = /** @class */ (function () {
125
- function ResetSelectionAction(payload) {
126
- this.payload = payload;
127
- this.type = AppActionTypes.ResetSelection;
128
- }
129
- return ResetSelectionAction;
130
- }());
131
- var SetInfoDrawerStateAction = /** @class */ (function () {
132
- function SetInfoDrawerStateAction(payload) {
133
- this.payload = payload;
134
- this.type = AppActionTypes.SetInfoDrawerState;
135
- }
136
- return SetInfoDrawerStateAction;
137
- }());
138
- var CloseModalDialogsAction = /** @class */ (function () {
139
- function CloseModalDialogsAction() {
140
- this.type = AppActionTypes.CloseModalDialogs;
141
- }
142
- return CloseModalDialogsAction;
143
- }());
144
- var SetRepositoryInfoAction = /** @class */ (function () {
145
- function SetRepositoryInfoAction(payload) {
146
- this.payload = payload;
147
- this.type = AppActionTypes.SetRepositoryInfo;
148
- }
149
- return SetRepositoryInfoAction;
150
- }());
151
-
152
- /**
153
- * @fileoverview added by tsickle
154
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
155
- */
156
- /*!
157
- * @license
158
- * Alfresco Example Content Application
159
- *
160
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
161
- *
162
- * This file is part of the Alfresco Example Content Application.
163
- * If the software was purchased under a paid Alfresco license, the terms of
164
- * the paid license agreement will prevail. Otherwise, the software is
165
- * provided under the following open source license terms:
166
- *
167
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
168
- * it under the terms of the GNU Lesser General Public License as published by
169
- * the Free Software Foundation, either version 3 of the License, or
170
- * (at your option) any later version.
171
- *
172
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
173
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
174
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
175
- * GNU Lesser General Public License for more details.
176
- *
177
- * You should have received a copy of the GNU Lesser General Public License
178
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
179
- */
180
- /** @enum {string} */
181
- var LibraryActionTypes = {
182
- Delete: 'DELETE_LIBRARY',
183
- Create: 'CREATE_LIBRARY',
184
- Navigate: 'NAVIGATE_LIBRARY',
185
- Update: 'UPDATE_LIBRARY',
186
- Leave: 'LEAVE_LIBRARY',
187
- };
188
- var DeleteLibraryAction = /** @class */ (function () {
189
- function DeleteLibraryAction(payload) {
190
- this.payload = payload;
191
- this.type = LibraryActionTypes.Delete;
192
- }
193
- return DeleteLibraryAction;
194
- }());
195
- var CreateLibraryAction = /** @class */ (function () {
196
- function CreateLibraryAction() {
197
- this.type = LibraryActionTypes.Create;
198
- }
199
- return CreateLibraryAction;
200
- }());
201
- var NavigateLibraryAction = /** @class */ (function () {
202
- function NavigateLibraryAction(payload, route) {
203
- this.payload = payload;
204
- this.route = route;
205
- this.type = LibraryActionTypes.Navigate;
206
- }
207
- return NavigateLibraryAction;
208
- }());
209
- var UpdateLibraryAction = /** @class */ (function () {
210
- function UpdateLibraryAction(payload) {
211
- this.payload = payload;
212
- this.type = LibraryActionTypes.Update;
213
- }
214
- return UpdateLibraryAction;
215
- }());
216
- var LeaveLibraryAction = /** @class */ (function () {
217
- function LeaveLibraryAction(payload) {
218
- this.payload = payload;
219
- this.type = LibraryActionTypes.Leave;
220
- }
221
- return LeaveLibraryAction;
222
- }());
223
-
224
- /**
225
- * @fileoverview added by tsickle
226
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
227
- */
228
- /*!
229
- * @license
230
- * Alfresco Example Content Application
231
- *
232
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
233
- *
234
- * This file is part of the Alfresco Example Content Application.
235
- * If the software was purchased under a paid Alfresco license, the terms of
236
- * the paid license agreement will prevail. Otherwise, the software is
237
- * provided under the following open source license terms:
238
- *
239
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
240
- * it under the terms of the GNU Lesser General Public License as published by
241
- * the Free Software Foundation, either version 3 of the License, or
242
- * (at your option) any later version.
243
- *
244
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
245
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
246
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
247
- * GNU Lesser General Public License for more details.
248
- *
249
- * You should have received a copy of the GNU Lesser General Public License
250
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
251
- */
252
- /** @enum {string} */
253
- var NodeActionTypes = {
254
- SetSelection: 'SET_SELECTED_NODES',
255
- Delete: 'DELETE_NODES',
256
- UndoDelete: 'UNDO_DELETE_NODES',
257
- RestoreDeleted: 'RESTORE_DELETED_NODES',
258
- PurgeDeleted: 'PURGE_DELETED_NODES',
259
- Download: 'DOWNLOAD_NODES',
260
- CreateFolder: 'CREATE_FOLDER',
261
- EditFolder: 'EDIT_FOLDER',
262
- Share: 'SHARE_NODE',
263
- Unshare: 'UNSHARE_NODES',
264
- Copy: 'COPY_NODES',
265
- Move: 'MOVE_NODES',
266
- ManagePermissions: 'MANAGE_PERMISSIONS',
267
- PrintFile: 'PRINT_FILE',
268
- ManageVersions: 'MANAGE_VERSIONS',
269
- EditOffline: 'EDIT_OFFLINE',
270
- UnlockForWriting: 'UNLOCK_WRITE_LOCK',
271
- AddFavorite: 'ADD_FAVORITE',
272
- RemoveFavorite: 'REMOVE_FAVORITE',
273
- };
274
- var SetSelectedNodesAction = /** @class */ (function () {
275
- function SetSelectedNodesAction(payload) {
276
- if (payload === void 0) { payload = []; }
277
- this.payload = payload;
278
- this.type = NodeActionTypes.SetSelection;
279
- }
280
- return SetSelectedNodesAction;
281
- }());
282
- var DeleteNodesAction = /** @class */ (function () {
283
- function DeleteNodesAction(payload) {
284
- if (payload === void 0) { payload = []; }
285
- this.payload = payload;
286
- this.type = NodeActionTypes.Delete;
287
- }
288
- return DeleteNodesAction;
289
- }());
290
- var UndoDeleteNodesAction = /** @class */ (function () {
291
- function UndoDeleteNodesAction(payload) {
292
- if (payload === void 0) { payload = []; }
293
- this.payload = payload;
294
- this.type = NodeActionTypes.UndoDelete;
295
- }
296
- return UndoDeleteNodesAction;
297
- }());
298
- var RestoreDeletedNodesAction = /** @class */ (function () {
299
- function RestoreDeletedNodesAction(payload) {
300
- this.payload = payload;
301
- this.type = NodeActionTypes.RestoreDeleted;
302
- }
303
- return RestoreDeletedNodesAction;
304
- }());
305
- var PurgeDeletedNodesAction = /** @class */ (function () {
306
- function PurgeDeletedNodesAction(payload) {
307
- this.payload = payload;
308
- this.type = NodeActionTypes.PurgeDeleted;
309
- }
310
- return PurgeDeletedNodesAction;
311
- }());
312
- var DownloadNodesAction = /** @class */ (function () {
313
- function DownloadNodesAction(payload) {
314
- if (payload === void 0) { payload = []; }
315
- this.payload = payload;
316
- this.type = NodeActionTypes.Download;
317
- }
318
- return DownloadNodesAction;
319
- }());
320
- var CreateFolderAction = /** @class */ (function () {
321
- function CreateFolderAction(payload) {
322
- this.payload = payload;
323
- this.type = NodeActionTypes.CreateFolder;
324
- }
325
- return CreateFolderAction;
326
- }());
327
- var EditFolderAction = /** @class */ (function () {
328
- function EditFolderAction(payload) {
329
- this.payload = payload;
330
- this.type = NodeActionTypes.EditFolder;
331
- }
332
- return EditFolderAction;
333
- }());
334
- var ShareNodeAction = /** @class */ (function () {
335
- function ShareNodeAction(payload) {
336
- this.payload = payload;
337
- this.type = NodeActionTypes.Share;
338
- }
339
- return ShareNodeAction;
340
- }());
341
- var UnshareNodesAction = /** @class */ (function () {
342
- function UnshareNodesAction(payload) {
343
- this.payload = payload;
344
- this.type = NodeActionTypes.Unshare;
345
- }
346
- return UnshareNodesAction;
347
- }());
348
- var CopyNodesAction = /** @class */ (function () {
349
- function CopyNodesAction(payload) {
350
- this.payload = payload;
351
- this.type = NodeActionTypes.Copy;
352
- }
353
- return CopyNodesAction;
354
- }());
355
- var MoveNodesAction = /** @class */ (function () {
356
- function MoveNodesAction(payload) {
357
- this.payload = payload;
358
- this.type = NodeActionTypes.Move;
359
- }
360
- return MoveNodesAction;
361
- }());
362
- var ManagePermissionsAction = /** @class */ (function () {
363
- function ManagePermissionsAction(payload) {
364
- this.payload = payload;
365
- this.type = NodeActionTypes.ManagePermissions;
366
- }
367
- return ManagePermissionsAction;
368
- }());
369
- var PrintFileAction = /** @class */ (function () {
370
- function PrintFileAction(payload) {
371
- this.payload = payload;
372
- this.type = NodeActionTypes.PrintFile;
373
- }
374
- return PrintFileAction;
375
- }());
376
- var ManageVersionsAction = /** @class */ (function () {
377
- function ManageVersionsAction(payload) {
378
- this.payload = payload;
379
- this.type = NodeActionTypes.ManageVersions;
380
- }
381
- return ManageVersionsAction;
382
- }());
383
- var EditOfflineAction = /** @class */ (function () {
384
- function EditOfflineAction(payload) {
385
- this.payload = payload;
386
- this.type = NodeActionTypes.EditOffline;
387
- }
388
- return EditOfflineAction;
389
- }());
390
- var UnlockWriteAction = /** @class */ (function () {
391
- function UnlockWriteAction(payload) {
392
- this.payload = payload;
393
- this.type = NodeActionTypes.UnlockForWriting;
394
- }
395
- return UnlockWriteAction;
396
- }());
397
- var AddFavoriteAction = /** @class */ (function () {
398
- function AddFavoriteAction(payload) {
399
- this.payload = payload;
400
- this.type = NodeActionTypes.AddFavorite;
401
- }
402
- return AddFavoriteAction;
403
- }());
404
- var RemoveFavoriteAction = /** @class */ (function () {
405
- function RemoveFavoriteAction(payload) {
406
- this.payload = payload;
407
- this.type = NodeActionTypes.RemoveFavorite;
408
- }
409
- return RemoveFavoriteAction;
410
- }());
411
-
412
- /**
413
- * @fileoverview added by tsickle
414
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
415
- */
416
- /*!
417
- * @license
418
- * Alfresco Example Content Application
419
- *
420
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
421
- *
422
- * This file is part of the Alfresco Example Content Application.
423
- * If the software was purchased under a paid Alfresco license, the terms of
424
- * the paid license agreement will prevail. Otherwise, the software is
425
- * provided under the following open source license terms:
426
- *
427
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
428
- * it under the terms of the GNU Lesser General Public License as published by
429
- * the Free Software Foundation, either version 3 of the License, or
430
- * (at your option) any later version.
431
- *
432
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
433
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
434
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
435
- * GNU Lesser General Public License for more details.
436
- *
437
- * You should have received a copy of the GNU Lesser General Public License
438
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
439
- */
440
- /** @enum {string} */
441
- var RouterActionTypes = {
442
- NavigateUrl: 'NAVIGATE_URL',
443
- NavigateRoute: 'NAVIGATE_ROUTE',
444
- NavigateFolder: 'NAVIGATE_FOLDER',
445
- NavigateParentFolder: 'NAVIGATE_PARENT_FOLDER',
446
- };
447
- var NavigateUrlAction = /** @class */ (function () {
448
- function NavigateUrlAction(payload) {
449
- this.payload = payload;
450
- this.type = RouterActionTypes.NavigateUrl;
451
- }
452
- return NavigateUrlAction;
453
- }());
454
- var NavigateRouteAction = /** @class */ (function () {
455
- function NavigateRouteAction(payload) {
456
- this.payload = payload;
457
- this.type = RouterActionTypes.NavigateRoute;
458
- }
459
- return NavigateRouteAction;
460
- }());
461
- var NavigateToFolder = /** @class */ (function () {
462
- function NavigateToFolder(payload) {
463
- this.payload = payload;
464
- this.type = RouterActionTypes.NavigateFolder;
465
- }
466
- return NavigateToFolder;
467
- }());
468
- var NavigateToParentFolder = /** @class */ (function () {
469
- function NavigateToParentFolder(payload) {
470
- this.payload = payload;
471
- this.type = RouterActionTypes.NavigateParentFolder;
472
- }
473
- return NavigateToParentFolder;
474
- }());
475
-
476
- /**
477
- * @fileoverview added by tsickle
478
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
479
- */
480
- /*!
481
- * @license
482
- * Alfresco Example Content Application
483
- *
484
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
485
- *
486
- * This file is part of the Alfresco Example Content Application.
487
- * If the software was purchased under a paid Alfresco license, the terms of
488
- * the paid license agreement will prevail. Otherwise, the software is
489
- * provided under the following open source license terms:
490
- *
491
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
492
- * it under the terms of the GNU Lesser General Public License as published by
493
- * the Free Software Foundation, either version 3 of the License, or
494
- * (at your option) any later version.
495
- *
496
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
497
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
498
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
499
- * GNU Lesser General Public License for more details.
500
- *
501
- * You should have received a copy of the GNU Lesser General Public License
502
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
503
- */
504
- /** @enum {string} */
505
- var SearchActionTypes = {
506
- SearchByTerm: 'SEARCH_BY_TERM',
507
- ToggleFilter: 'TOGGLE_SEARCH_FILTER',
508
- ShowFilter: 'SHOW_SEARCH_FILTER',
509
- HideFilter: 'HIDE_SEARCH_FILTER',
510
- };
511
- var SearchByTermAction = /** @class */ (function () {
512
- function SearchByTermAction(payload, searchOptions) {
513
- this.payload = payload;
514
- this.searchOptions = searchOptions;
515
- this.type = SearchActionTypes.SearchByTerm;
516
- }
517
- return SearchByTermAction;
518
- }());
519
- var ToggleSearchFilterAction = /** @class */ (function () {
520
- function ToggleSearchFilterAction() {
521
- this.type = SearchActionTypes.ToggleFilter;
522
- }
523
- return ToggleSearchFilterAction;
524
- }());
525
- var ShowSearchFilterAction = /** @class */ (function () {
526
- function ShowSearchFilterAction() {
527
- this.type = SearchActionTypes.ShowFilter;
528
- }
529
- return ShowSearchFilterAction;
530
- }());
531
- var HideSearchFilterAction = /** @class */ (function () {
532
- function HideSearchFilterAction() {
533
- this.type = SearchActionTypes.HideFilter;
534
- }
535
- return HideSearchFilterAction;
536
- }());
537
-
538
- /**
539
- * @fileoverview added by tsickle
540
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
541
- */
542
- /*!
543
- * @license
544
- * Alfresco Example Content Application
545
- *
546
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
547
- *
548
- * This file is part of the Alfresco Example Content Application.
549
- * If the software was purchased under a paid Alfresco license, the terms of
550
- * the paid license agreement will prevail. Otherwise, the software is
551
- * provided under the following open source license terms:
552
- *
553
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
554
- * it under the terms of the GNU Lesser General Public License as published by
555
- * the Free Software Foundation, either version 3 of the License, or
556
- * (at your option) any later version.
557
- *
558
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
559
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
560
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
561
- * GNU Lesser General Public License for more details.
562
- *
563
- * You should have received a copy of the GNU Lesser General Public License
564
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
565
- */
566
- /** @enum {string} */
567
- var SnackbarActionTypes = {
568
- Info: 'SNACKBAR_INFO',
569
- Warning: 'SNACKBAR_WARNING',
570
- Error: 'SNACKBAR_ERROR',
571
- };
572
- var SnackbarUserAction = /** @class */ (function () {
573
- function SnackbarUserAction(title, action) {
574
- this.title = title;
575
- this.action = action;
576
- }
577
- return SnackbarUserAction;
578
- }());
579
- var SnackbarInfoAction = /** @class */ (function () {
580
- function SnackbarInfoAction(payload, params) {
581
- this.payload = payload;
582
- this.params = params;
583
- this.type = SnackbarActionTypes.Info;
584
- this.duration = 4000;
585
- }
586
- return SnackbarInfoAction;
587
- }());
588
- var SnackbarWarningAction = /** @class */ (function () {
589
- function SnackbarWarningAction(payload, params) {
590
- this.payload = payload;
591
- this.params = params;
592
- this.type = SnackbarActionTypes.Warning;
593
- this.duration = 4000;
594
- }
595
- return SnackbarWarningAction;
596
- }());
597
- var SnackbarErrorAction = /** @class */ (function () {
598
- function SnackbarErrorAction(payload, params) {
599
- this.payload = payload;
600
- this.params = params;
601
- this.type = SnackbarActionTypes.Error;
602
- this.duration = 4000;
603
- }
604
- return SnackbarErrorAction;
605
- }());
606
-
607
- /**
608
- * @fileoverview added by tsickle
609
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
610
- */
611
- /*!
612
- * @license
613
- * Alfresco Example Content Application
614
- *
615
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
616
- *
617
- * This file is part of the Alfresco Example Content Application.
618
- * If the software was purchased under a paid Alfresco license, the terms of
619
- * the paid license agreement will prevail. Otherwise, the software is
620
- * provided under the following open source license terms:
621
- *
622
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
623
- * it under the terms of the GNU Lesser General Public License as published by
624
- * the Free Software Foundation, either version 3 of the License, or
625
- * (at your option) any later version.
626
- *
627
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
628
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
629
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
630
- * GNU Lesser General Public License for more details.
631
- *
632
- * You should have received a copy of the GNU Lesser General Public License
633
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
634
- */
635
- /** @enum {string} */
636
- var UploadActionTypes = {
637
- UploadFiles: 'UPLOAD_FILES',
638
- UploadFolder: 'UPLOAD_FOLDER',
639
- UploadFileVersion: 'UPLOAD_FILE_VERSION',
640
- };
641
- var UploadFilesAction = /** @class */ (function () {
642
- function UploadFilesAction(payload) {
643
- this.payload = payload;
644
- this.type = UploadActionTypes.UploadFiles;
645
- }
646
- return UploadFilesAction;
647
- }());
648
- var UploadFolderAction = /** @class */ (function () {
649
- function UploadFolderAction(payload) {
650
- this.payload = payload;
651
- this.type = UploadActionTypes.UploadFolder;
652
- }
653
- return UploadFolderAction;
654
- }());
655
- var UploadFileVersionAction = /** @class */ (function () {
656
- function UploadFileVersionAction(payload) {
657
- this.payload = payload;
658
- this.type = UploadActionTypes.UploadFileVersion;
659
- }
660
- return UploadFileVersionAction;
661
- }());
662
-
663
- /**
664
- * @fileoverview added by tsickle
665
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
666
- */
667
- /*!
668
- * @license
669
- * Alfresco Example Content Application
670
- *
671
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
672
- *
673
- * This file is part of the Alfresco Example Content Application.
674
- * If the software was purchased under a paid Alfresco license, the terms of
675
- * the paid license agreement will prevail. Otherwise, the software is
676
- * provided under the following open source license terms:
677
- *
678
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
679
- * it under the terms of the GNU Lesser General Public License as published by
680
- * the Free Software Foundation, either version 3 of the License, or
681
- * (at your option) any later version.
682
- *
683
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
684
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
685
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
686
- * GNU Lesser General Public License for more details.
687
- *
688
- * You should have received a copy of the GNU Lesser General Public License
689
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
690
- */
691
- /** @enum {string} */
692
- var ViewerActionTypes = {
693
- ViewFile: 'VIEW_FILE',
694
- ViewNode: 'VIEW_NODE',
695
- FullScreen: 'FULLSCREEN_VIEWER',
696
- ClosePreview: 'CLOSE_PREVIEW',
697
- };
698
- var ViewFileAction = /** @class */ (function () {
699
- function ViewFileAction(payload, parentId) {
700
- this.payload = payload;
701
- this.parentId = parentId;
702
- this.type = ViewerActionTypes.ViewFile;
703
- }
704
- return ViewFileAction;
705
- }());
706
- var ViewNodeAction = /** @class */ (function () {
707
- function ViewNodeAction(nodeId, viewNodeExtras) {
708
- this.nodeId = nodeId;
709
- this.viewNodeExtras = viewNodeExtras;
710
- this.type = ViewerActionTypes.ViewNode;
711
- }
712
- return ViewNodeAction;
713
- }());
714
- var FullscreenViewerAction = /** @class */ (function () {
715
- function FullscreenViewerAction(payload) {
716
- this.payload = payload;
717
- this.type = ViewerActionTypes.FullScreen;
718
- }
719
- return FullscreenViewerAction;
720
- }());
721
- var ClosePreviewAction = /** @class */ (function () {
722
- function ClosePreviewAction(payload) {
723
- this.payload = payload;
724
- this.type = ViewerActionTypes.ClosePreview;
725
- }
726
- return ClosePreviewAction;
727
- }());
728
-
729
- /**
730
- * @fileoverview added by tsickle
731
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
732
- */
733
- /*!
734
- * @license
735
- * Alfresco Example Content Application
736
- *
737
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
738
- *
739
- * This file is part of the Alfresco Example Content Application.
740
- * If the software was purchased under a paid Alfresco license, the terms of
741
- * the paid license agreement will prevail. Otherwise, the software is
742
- * provided under the following open source license terms:
743
- *
744
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
745
- * it under the terms of the GNU Lesser General Public License as published by
746
- * the Free Software Foundation, either version 3 of the License, or
747
- * (at your option) any later version.
748
- *
749
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
750
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
751
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
752
- * GNU Lesser General Public License for more details.
753
- *
754
- * You should have received a copy of the GNU Lesser General Public License
755
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
756
- */
757
- /** @type {?} */
758
- var SET_INFO_DRAWER_METADATA_ASPECT = 'SET_INFO_DRAWER_METADATA_ASPECT';
759
- var SetInfoDrawerMetadataAspectAction = /** @class */ (function () {
760
- function SetInfoDrawerMetadataAspectAction(payload) {
761
- this.payload = payload;
762
- this.type = SET_INFO_DRAWER_METADATA_ASPECT;
763
- }
764
- return SetInfoDrawerMetadataAspectAction;
765
- }());
766
-
767
- /**
768
- * @fileoverview added by tsickle
769
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
770
- */
771
- /*!
772
- * @license
773
- * Alfresco Example Content Application
774
- *
775
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
776
- *
777
- * This file is part of the Alfresco Example Content Application.
778
- * If the software was purchased under a paid Alfresco license, the terms of
779
- * the paid license agreement will prevail. Otherwise, the software is
780
- * provided under the following open source license terms:
781
- *
782
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
783
- * it under the terms of the GNU Lesser General Public License as published by
784
- * the Free Software Foundation, either version 3 of the License, or
785
- * (at your option) any later version.
786
- *
787
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
788
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
789
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
790
- * GNU Lesser General Public License for more details.
791
- *
792
- * You should have received a copy of the GNU Lesser General Public License
793
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
794
- */
795
- /** @enum {string} */
796
- var TemplateActionTypes = {
797
- FileFromTemplate: 'FILE_FROM_TEMPLATE',
798
- FolderFromTemplate: 'FOLDER_FROM_TEMPLATE',
799
- CreateFromTemplate: 'CREATE_FROM_TEMPLATE',
800
- CreateFromTemplateSuccess: 'CREATE_FROM_TEMPLATE_SUCCESS',
801
- };
802
- var FileFromTemplate = /** @class */ (function () {
803
- function FileFromTemplate() {
804
- this.type = TemplateActionTypes.FileFromTemplate;
805
- }
806
- return FileFromTemplate;
807
- }());
808
- var FolderFromTemplate = /** @class */ (function () {
809
- function FolderFromTemplate() {
810
- this.type = TemplateActionTypes.FolderFromTemplate;
811
- }
812
- return FolderFromTemplate;
813
- }());
814
- var CreateFromTemplate = /** @class */ (function () {
815
- function CreateFromTemplate(payload) {
816
- this.payload = payload;
817
- this.type = TemplateActionTypes.CreateFromTemplate;
818
- }
819
- return CreateFromTemplate;
820
- }());
821
- var CreateFromTemplateSuccess = /** @class */ (function () {
822
- function CreateFromTemplateSuccess(node) {
823
- this.node = node;
824
- this.type = TemplateActionTypes.CreateFromTemplateSuccess;
825
- }
826
- return CreateFromTemplateSuccess;
827
- }());
828
-
829
- /**
830
- * @fileoverview added by tsickle
831
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
832
- */
833
- /*!
834
- * @license
835
- * Alfresco Example Content Application
836
- *
837
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
838
- *
839
- * This file is part of the Alfresco Example Content Application.
840
- * If the software was purchased under a paid Alfresco license, the terms of
841
- * the paid license agreement will prevail. Otherwise, the software is
842
- * provided under the following open source license terms:
843
- *
844
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
845
- * it under the terms of the GNU Lesser General Public License as published by
846
- * the Free Software Foundation, either version 3 of the License, or
847
- * (at your option) any later version.
848
- *
849
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
850
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
851
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
852
- * GNU Lesser General Public License for more details.
853
- *
854
- * You should have received a copy of the GNU Lesser General Public License
855
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
856
- */
857
- /** @enum {string} */
858
- var ContextMenuActionTypes = {
859
- ContextMenu: 'CONTEXT_MENU',
860
- };
861
- var ContextMenu = /** @class */ (function () {
862
- function ContextMenu(event) {
863
- this.event = event;
864
- this.type = ContextMenuActionTypes.ContextMenu;
865
- }
866
- return ContextMenu;
867
- }());
868
-
869
- /**
870
- * @fileoverview added by tsickle
871
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
872
- */
873
- var DialogEffects = /** @class */ (function () {
874
- function DialogEffects(actions$, matDialog) {
875
- var _this = this;
876
- this.actions$ = actions$;
877
- this.matDialog = matDialog;
878
- this.closeAll$ = this.actions$.pipe(ofType(AppActionTypes.CloseModalDialogs), map(function () { return _this.matDialog.closeAll(); }));
879
- }
880
- DialogEffects.decorators = [
881
- { type: Injectable }
882
- ];
883
- /** @nocollapse */
884
- DialogEffects.ctorParameters = function () { return [
885
- { type: Actions },
886
- { type: MatDialog }
887
- ]; };
888
- __decorate([
889
- Effect({ dispatch: false }),
890
- __metadata("design:type", Object)
891
- ], DialogEffects.prototype, "closeAll$", void 0);
892
- return DialogEffects;
893
- }());
894
-
895
- /**
896
- * @fileoverview added by tsickle
897
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
898
- */
899
- var RouterEffects = /** @class */ (function () {
900
- function RouterEffects(store, actions$, router) {
901
- var _this = this;
902
- this.store = store;
903
- this.actions$ = actions$;
904
- this.router = router;
905
- this.navigateUrl$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateUrl), map(function (action) {
906
- if (action.payload) {
907
- _this.router.navigateByUrl(action.payload);
908
- }
909
- }));
910
- this.navigateRoute$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateRoute), map(function (action) {
911
- _this.router.navigate(action.payload);
912
- }));
913
- this.navigateToFolder$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateFolder), map(function (action) {
914
- if (action.payload && action.payload.entry) {
915
- _this.navigateToFolder(action.payload.entry);
916
- }
917
- }));
918
- this.navigateToParentFolder$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateParentFolder), map(function (action) {
919
- if (action.payload && action.payload.entry) {
920
- _this.navigateToParentFolder(action.payload.entry);
921
- }
922
- }));
923
- }
924
- /**
925
- * @private
926
- * @param {?} node
927
- * @return {?}
928
- */
929
- RouterEffects.prototype.navigateToFolder = /**
930
- * @private
931
- * @param {?} node
932
- * @return {?}
933
- */
934
- function (node) {
935
- var _this = this;
936
- /** @type {?} */
937
- var link = null;
938
- var path = node.path, id = node.id;
939
- if (path && path.name && path.elements) {
940
- /** @type {?} */
941
- var isLibraryPath = this.isLibraryContent(path);
942
- /** @type {?} */
943
- var parent_1 = path.elements[path.elements.length - 1];
944
- /** @type {?} */
945
- var area = isLibraryPath ? '/libraries' : '/personal-files';
946
- if (!isLibraryPath) {
947
- link = [area, id];
948
- }
949
- else {
950
- // parent.id could be 'Site' folder or child as 'documentLibrary'
951
- link = [area, parent_1.name === 'Sites' ? {} : id];
952
- }
953
- setTimeout(function () {
954
- _this.router.navigate(link);
955
- }, 10);
956
- }
957
- else {
958
- this.router.navigate(['/personal-files', node.id]);
959
- }
960
- };
961
- /**
962
- * @private
963
- * @param {?} node
964
- * @return {?}
965
- */
966
- RouterEffects.prototype.navigateToParentFolder = /**
967
- * @private
968
- * @param {?} node
969
- * @return {?}
970
- */
971
- function (node) {
972
- var _this = this;
973
- /** @type {?} */
974
- var link = null;
975
- var path = node.path;
976
- if (path && path.name && path.elements) {
977
- /** @type {?} */
978
- var isLibraryPath = this.isLibraryContent(path);
979
- /** @type {?} */
980
- var parent_2 = path.elements[path.elements.length - 1];
981
- /** @type {?} */
982
- var area = isLibraryPath ? '/libraries' : '/personal-files';
983
- if (!isLibraryPath) {
984
- link = [area, parent_2.id];
985
- }
986
- else {
987
- // parent.id could be 'Site' folder or child as 'documentLibrary'
988
- link = [area, parent_2.name === 'Sites' ? {} : parent_2.id];
989
- }
990
- setTimeout(function () {
991
- _this.router.navigate(link);
992
- }, 10);
993
- }
994
- else {
995
- this.store.dispatch(new SnackbarErrorAction('APP.MESSAGES.ERRORS.CANNOT_NAVIGATE_LOCATION'));
996
- }
997
- };
998
- /**
999
- * @private
1000
- * @param {?} path
1001
- * @return {?}
1002
- */
1003
- RouterEffects.prototype.isLibraryContent = /**
1004
- * @private
1005
- * @param {?} path
1006
- * @return {?}
1007
- */
1008
- function (path) {
1009
- if (path &&
1010
- path.elements.length >= 2 &&
1011
- path.elements[1].name === 'Sites') {
1012
- return true;
1013
- }
1014
- return false;
1015
- };
1016
- RouterEffects.decorators = [
1017
- { type: Injectable }
1018
- ];
1019
- /** @nocollapse */
1020
- RouterEffects.ctorParameters = function () { return [
1021
- { type: Store },
1022
- { type: Actions },
1023
- { type: Router }
1024
- ]; };
1025
- __decorate([
1026
- Effect({ dispatch: false }),
1027
- __metadata("design:type", Object)
1028
- ], RouterEffects.prototype, "navigateUrl$", void 0);
1029
- __decorate([
1030
- Effect({ dispatch: false }),
1031
- __metadata("design:type", Object)
1032
- ], RouterEffects.prototype, "navigateRoute$", void 0);
1033
- __decorate([
1034
- Effect({ dispatch: false }),
1035
- __metadata("design:type", Object)
1036
- ], RouterEffects.prototype, "navigateToFolder$", void 0);
1037
- __decorate([
1038
- Effect({ dispatch: false }),
1039
- __metadata("design:type", Object)
1040
- ], RouterEffects.prototype, "navigateToParentFolder$", void 0);
1041
- return RouterEffects;
1042
- }());
1043
-
1044
- /**
1045
- * @fileoverview added by tsickle
1046
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1047
- */
1048
- var SnackbarEffects = /** @class */ (function () {
1049
- function SnackbarEffects(store, actions$, snackBar, translationService) {
1050
- var _this = this;
1051
- this.store = store;
1052
- this.actions$ = actions$;
1053
- this.snackBar = snackBar;
1054
- this.translationService = translationService;
1055
- this.infoEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Info), map(function (action) {
1056
- _this.showSnackBar(action, 'info-snackbar');
1057
- }));
1058
- this.warningEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Warning), map(function (action) {
1059
- _this.showSnackBar(action, 'warning-snackbar');
1060
- }));
1061
- this.errorEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Error), map(function (action) {
1062
- _this.showSnackBar(action, 'error-snackbar');
1063
- }));
1064
- }
1065
- /**
1066
- * @private
1067
- * @param {?} action
1068
- * @param {?} panelClass
1069
- * @return {?}
1070
- */
1071
- SnackbarEffects.prototype.showSnackBar = /**
1072
- * @private
1073
- * @param {?} action
1074
- * @param {?} panelClass
1075
- * @return {?}
1076
- */
1077
- function (action, panelClass) {
1078
- var _this = this;
1079
- /** @type {?} */
1080
- var message = this.translate(action.payload, action.params);
1081
- /** @type {?} */
1082
- var actionName = null;
1083
- if (action.userAction) {
1084
- actionName = this.translate(action.userAction.title);
1085
- }
1086
- /** @type {?} */
1087
- var snackBarRef = this.snackBar.open(message, actionName, {
1088
- duration: action.duration || 4000,
1089
- panelClass: panelClass
1090
- });
1091
- if (action.userAction) {
1092
- snackBarRef.onAction().subscribe(function () {
1093
- _this.store.dispatch(action.userAction.action);
1094
- });
1095
- }
1096
- };
1097
- /**
1098
- * @private
1099
- * @param {?} message
1100
- * @param {?=} params
1101
- * @return {?}
1102
- */
1103
- SnackbarEffects.prototype.translate = /**
1104
- * @private
1105
- * @param {?} message
1106
- * @param {?=} params
1107
- * @return {?}
1108
- */
1109
- function (message, params) {
1110
- return this.translationService.instant(message, params);
1111
- };
1112
- SnackbarEffects.decorators = [
1113
- { type: Injectable }
1114
- ];
1115
- /** @nocollapse */
1116
- SnackbarEffects.ctorParameters = function () { return [
1117
- { type: Store },
1118
- { type: Actions },
1119
- { type: MatSnackBar },
1120
- { type: TranslationService }
1121
- ]; };
1122
- __decorate([
1123
- Effect({ dispatch: false }),
1124
- __metadata("design:type", Object)
1125
- ], SnackbarEffects.prototype, "infoEffect", void 0);
1126
- __decorate([
1127
- Effect({ dispatch: false }),
1128
- __metadata("design:type", Object)
1129
- ], SnackbarEffects.prototype, "warningEffect", void 0);
1130
- __decorate([
1131
- Effect({ dispatch: false }),
1132
- __metadata("design:type", Object)
1133
- ], SnackbarEffects.prototype, "errorEffect", void 0);
1134
- return SnackbarEffects;
1135
- }());
1136
-
1137
- /**
1138
- * @fileoverview added by tsickle
1139
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1140
- */
1141
-
1142
- /**
1143
- * @fileoverview added by tsickle
1144
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1145
- */
1146
-
1147
- /**
1148
- * @fileoverview added by tsickle
1149
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1150
- */
1151
-
1152
- /**
1153
- * @fileoverview added by tsickle
1154
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1155
- */
1156
- /*!
1157
- * @license
1158
- * Alfresco Example Content Application
1159
- *
1160
- * Copyright (C) 2005 - 2020 Alfresco Software Limited
1161
- *
1162
- * This file is part of the Alfresco Example Content Application.
1163
- * If the software was purchased under a paid Alfresco license, the terms of
1164
- * the paid license agreement will prevail. Otherwise, the software is
1165
- * provided under the following open source license terms:
1166
- *
1167
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
1168
- * it under the terms of the GNU Lesser General Public License as published by
1169
- * the Free Software Foundation, either version 3 of the License, or
1170
- * (at your option) any later version.
1171
- *
1172
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
1173
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
1174
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1175
- * GNU Lesser General Public License for more details.
1176
- *
1177
- * You should have received a copy of the GNU Lesser General Public License
1178
- * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
1179
- */
1180
- /** @enum {string} */
1181
- var SearchOptionIds = {
1182
- Files: 'content',
1183
- Folders: 'folder',
1184
- Libraries: 'libraries',
1185
- };
1186
-
1187
- /**
1188
- * @fileoverview added by tsickle
1189
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1190
- */
1191
- /** @type {?} */
1192
- var selectApp = function (state) { return state.app; };
1193
- /** @type {?} */
1194
- var getHeaderColor = createSelector(selectApp, function (state) { return state.headerColor; });
1195
- /** @type {?} */
1196
- var getAppName = createSelector(selectApp, function (state) { return state.appName; });
1197
- /** @type {?} */
1198
- var getLogoPath = createSelector(selectApp, function (state) { return state.logoPath; });
1199
- /** @type {?} */
1200
- var getHeaderImagePath = createSelector(selectApp, function (state) { return state.headerImagePath; });
1201
- /** @type {?} */
1202
- var getLanguagePickerState = createSelector(selectApp, function (state) { return state.languagePicker; });
1203
- /** @type {?} */
1204
- var getUserProfile = createSelector(selectApp, function (state) { return state.user; });
1205
- /** @type {?} */
1206
- var getCurrentFolder = createSelector(selectApp, function (state) { return state.navigation.currentFolder; });
1207
- /** @type {?} */
1208
- var getAppSelection = createSelector(selectApp, function (state) { return state.selection; });
1209
- /** @type {?} */
1210
- var getSharedUrl = createSelector(selectApp, function (state) { return state.sharedUrl; });
1211
- /** @type {?} */
1212
- var getNavigationState = createSelector(selectApp, function (state) { return state.navigation; });
1213
- /** @type {?} */
1214
- var isInfoDrawerOpened = createSelector(selectApp, function (state) { return state.infoDrawerOpened; });
1215
- /** @type {?} */
1216
- var showFacetFilter = createSelector(selectApp, function (state) { return state.showFacetFilter; });
1217
- /** @type {?} */
1218
- var getDocumentDisplayMode = createSelector(selectApp, function (state) { return state.documentDisplayMode; });
1219
- /** @type {?} */
1220
- var getRepositoryStatus = createSelector(selectApp, function (state) { return state.repository; });
1221
- /** @type {?} */
1222
- var isQuickShareEnabled = createSelector(getRepositoryStatus, function (info) { return info.status.isQuickShareEnabled; });
1223
- /** @type {?} */
1224
- var isAdmin = createSelector(selectApp, function (state) { return state.user.isAdmin; });
1225
- /** @type {?} */
1226
- var getSideNavState = createSelector(getAppSelection, getNavigationState, function (selection, navigation) {
1227
- return {
1228
- selection: selection,
1229
- navigation: navigation
1230
- };
1231
- });
1232
- /** @type {?} */
1233
- var getRuleContext = createSelector(getAppSelection, getNavigationState, getUserProfile, getRepositoryStatus, function (selection, navigation, profile, repository) {
1234
- return {
1235
- selection: selection,
1236
- navigation: navigation,
1237
- profile: profile,
1238
- repository: repository
1239
- };
1240
- });
1241
- /** @type {?} */
1242
- var infoDrawerMetadataAspect = createSelector(selectApp, function (state) { return state.infoDrawerMetadataAspect; });
1243
-
1244
- /**
1245
- * @fileoverview added by tsickle
1246
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1247
- */
1248
-
1249
- /**
1250
- * @fileoverview added by tsickle
1251
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1252
- */
1253
- var SharedStoreModule = /** @class */ (function () {
1254
- function SharedStoreModule() {
1255
- }
1256
- SharedStoreModule.decorators = [
1257
- { type: NgModule, args: [{
1258
- imports: [
1259
- EffectsModule.forFeature([SnackbarEffects, DialogEffects, RouterEffects])
1260
- ]
1261
- },] }
1262
- ];
1263
- return SharedStoreModule;
1264
- }());
1265
-
1266
- /**
1267
- * @fileoverview added by tsickle
1268
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1269
- */
1270
-
1271
- /**
1272
- * @fileoverview added by tsickle
1273
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1274
- */
1275
-
1276
- export { AppActionTypes, SetSettingsParameterAction, SetInitialStateAction, SetHeaderColorAction, SetCurrentFolderAction, SetCurrentUrlAction, SetUserProfileAction, ToggleInfoDrawerAction, ToggleDocumentDisplayMode, LogoutAction, ReloadDocumentListAction, ResetSelectionAction, SetInfoDrawerStateAction, CloseModalDialogsAction, SetRepositoryInfoAction, LibraryActionTypes, DeleteLibraryAction, CreateLibraryAction, NavigateLibraryAction, UpdateLibraryAction, LeaveLibraryAction, NodeActionTypes, SetSelectedNodesAction, DeleteNodesAction, UndoDeleteNodesAction, RestoreDeletedNodesAction, PurgeDeletedNodesAction, DownloadNodesAction, CreateFolderAction, EditFolderAction, ShareNodeAction, UnshareNodesAction, CopyNodesAction, MoveNodesAction, ManagePermissionsAction, PrintFileAction, ManageVersionsAction, EditOfflineAction, UnlockWriteAction, AddFavoriteAction, RemoveFavoriteAction, RouterActionTypes, NavigateUrlAction, NavigateRouteAction, NavigateToFolder, NavigateToParentFolder, SearchActionTypes, SearchByTermAction, ToggleSearchFilterAction, ShowSearchFilterAction, HideSearchFilterAction, SnackbarActionTypes, SnackbarUserAction, SnackbarInfoAction, SnackbarWarningAction, SnackbarErrorAction, UploadActionTypes, UploadFilesAction, UploadFolderAction, UploadFileVersionAction, ViewerActionTypes, ViewFileAction, ViewNodeAction, FullscreenViewerAction, ClosePreviewAction, SET_INFO_DRAWER_METADATA_ASPECT, SetInfoDrawerMetadataAspectAction, TemplateActionTypes, FileFromTemplate, FolderFromTemplate, CreateFromTemplate, CreateFromTemplateSuccess, ContextMenuActionTypes, ContextMenu, DialogEffects, RouterEffects, SnackbarEffects, SearchOptionIds, selectApp, getHeaderColor, getAppName, getLogoPath, getHeaderImagePath, getLanguagePickerState, getUserProfile, getCurrentFolder, getAppSelection, getSharedUrl, getNavigationState, isInfoDrawerOpened, showFacetFilter, getDocumentDisplayMode, getRepositoryStatus, isQuickShareEnabled, isAdmin, getSideNavState, getRuleContext, infoDrawerMetadataAspect, SharedStoreModule };
1277
-
1278
- //# sourceMappingURL=alfresco-aca-shared-store.js.map