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