@alfresco/aca-shared 4.4.1 → 4.5.0-10004013253
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.
- package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +2 -2
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +8 -6
- package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +2 -2
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +5 -6
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +2 -2
- package/esm2020/lib/components/open-in-app/open-in-app.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +2 -2
- package/esm2020/lib/components/toolbar/toolbar-action/toolbar-action.component.mjs +5 -6
- package/esm2020/lib/components/toolbar/toolbar-button/toolbar-button.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/toolbar-menu/toolbar-menu.component.mjs +6 -8
- package/esm2020/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.mjs +8 -10
- package/esm2020/lib/components/toolbar/toolbar.component.mjs +2 -2
- package/esm2020/lib/constants/index.mjs +25 -0
- package/esm2020/lib/constants/mime-types.mjs +213 -0
- package/esm2020/lib/deprecated/shared-toolbar.module.mjs +5 -28
- package/esm2020/lib/deprecated/shared.module.mjs +2 -2
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +2 -2
- package/esm2020/lib/directives/pagination.directive.mjs +2 -2
- package/esm2020/lib/models/types.mjs +2 -2
- package/esm2020/lib/models/viewer.rules.mjs +2 -2
- package/esm2020/lib/routing/plugin-enabled.guard.mjs +54 -0
- package/esm2020/lib/routing/shared.guard.mjs +2 -2
- package/esm2020/lib/services/aca-file-auto-download.service.mjs +2 -2
- package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +2 -2
- package/esm2020/lib/services/app-hook.service.mjs +2 -2
- package/esm2020/lib/services/app-settings.service.mjs +98 -0
- package/esm2020/lib/services/app.extension.service.mjs +3 -20
- package/esm2020/lib/services/app.service.mjs +18 -37
- package/esm2020/lib/services/content-api.service.mjs +2 -2
- package/esm2020/lib/services/node-permission.service.mjs +2 -2
- package/esm2020/lib/services/router.extension.service.mjs +2 -2
- package/esm2020/lib/testing/lib-testing-module.mjs +31 -9
- package/esm2020/lib/utils/node.utils.mjs +2 -2
- package/esm2020/public-api.mjs +5 -3
- package/esm2020/rules/app.rules.mjs +10 -24
- package/esm2020/rules/navigation.rules.mjs +2 -2
- package/esm2020/rules/public-api.mjs +2 -2
- package/esm2020/rules/repository.rules.mjs +2 -2
- package/esm2020/rules/user.rules.mjs +2 -2
- package/esm2020/store/actions/app-action-types.mjs +2 -3
- package/esm2020/store/actions/app.actions.mjs +2 -8
- package/esm2020/store/actions/context-menu-action-types.mjs +2 -2
- package/esm2020/store/actions/contextmenu.actions.mjs +2 -2
- package/esm2020/store/actions/library.actions.mjs +2 -2
- package/esm2020/store/actions/metadata-aspect.actions.mjs +2 -2
- package/esm2020/store/actions/node.actions.mjs +2 -2
- package/esm2020/store/actions/router-action-types.mjs +2 -2
- package/esm2020/store/actions/router.actions.mjs +2 -2
- package/esm2020/store/actions/search.actions.mjs +2 -2
- package/esm2020/store/actions/snackbar.actions.mjs +2 -2
- package/esm2020/store/actions/template-action-types.mjs +2 -2
- package/esm2020/store/actions/template.actions.mjs +2 -2
- package/esm2020/store/actions/upload.actions.mjs +2 -2
- package/esm2020/store/actions/viewer.actions.mjs +4 -4
- package/esm2020/store/effects/dialog.effects.mjs +2 -2
- package/esm2020/store/effects/router.effects.mjs +2 -2
- package/esm2020/store/effects/snackbar.effects.mjs +2 -2
- package/esm2020/store/models/delete-status.model.mjs +2 -2
- package/esm2020/store/models/deleted-node-info.model.mjs +2 -2
- package/esm2020/store/models/modal-configuration.mjs +2 -2
- package/esm2020/store/models/node-info.model.mjs +2 -2
- package/esm2020/store/models/search-option.model.mjs +2 -2
- package/esm2020/store/public-api.mjs +2 -2
- package/esm2020/store/selectors/app.selectors.mjs +4 -8
- package/esm2020/store/states/app.state.mjs +35 -2
- package/esm2020/store/store.module.mjs +2 -2
- package/fesm2015/alfresco-aca-shared-rules.mjs +14 -28
- package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -1
- package/fesm2015/alfresco-aca-shared-store.mjs +61 -39
- package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -1
- package/fesm2015/alfresco-aca-shared.mjs +445 -121
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared-rules.mjs +14 -28
- package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared-store.mjs +64 -42
- package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared.mjs +460 -142
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -1
- package/lib/adf-extensions/extensions-data-loader.guard.d.ts +1 -1
- package/lib/components/document-base-page/document-base-page.component.d.ts +1 -2
- package/lib/components/document-base-page/document-base-page.service.d.ts +1 -1
- package/lib/components/info-drawer/info-drawer.component.d.ts +1 -1
- package/lib/components/locked-by/locked-by.component.d.ts +1 -1
- package/lib/components/page-layout/page-layout.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar-action/toolbar-action.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar-menu/toolbar-menu.component.d.ts +1 -1
- package/lib/{models/modal-configuration.d.ts → constants/index.d.ts} +2 -4
- package/lib/constants/mime-types.d.ts +28 -0
- package/lib/deprecated/shared-toolbar.module.d.ts +5 -8
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +1 -1
- package/lib/directives/pagination.directive.d.ts +1 -1
- package/lib/models/types.d.ts +1 -17
- package/lib/models/viewer.rules.d.ts +1 -1
- package/lib/routing/plugin-enabled.guard.d.ts +35 -0
- package/lib/services/app-settings.service.d.ts +44 -0
- package/lib/services/app.extension.service.d.ts +2 -7
- package/lib/services/app.service.d.ts +7 -6
- package/lib/testing/lib-testing-module.d.ts +14 -2
- package/lib/utils/node.utils.d.ts +1 -1
- package/package.json +5 -5
- package/public-api.d.ts +4 -2
- package/rules/app.rules.d.ts +1 -7
- package/rules/navigation.rules.d.ts +1 -1
- package/rules/public-api.d.ts +1 -1
- package/rules/repository.rules.d.ts +1 -1
- package/rules/user.rules.d.ts +1 -1
- package/store/actions/app-action-types.d.ts +1 -2
- package/store/actions/app.actions.d.ts +1 -7
- package/store/actions/context-menu-action-types.d.ts +1 -1
- package/store/actions/contextmenu.actions.d.ts +1 -1
- package/store/actions/library.actions.d.ts +1 -1
- package/store/actions/metadata-aspect.actions.d.ts +1 -1
- package/store/actions/node.actions.d.ts +1 -1
- package/store/actions/router-action-types.d.ts +1 -1
- package/store/actions/router.actions.d.ts +1 -1
- package/store/actions/search.actions.d.ts +1 -1
- package/store/actions/snackbar.actions.d.ts +1 -1
- package/store/actions/template-action-types.d.ts +1 -1
- package/store/actions/template.actions.d.ts +1 -1
- package/store/actions/upload.actions.d.ts +1 -1
- package/store/actions/viewer.actions.d.ts +4 -4
- package/store/effects/dialog.effects.d.ts +1 -1
- package/store/effects/snackbar.effects.d.ts +1 -1
- package/store/models/delete-status.model.d.ts +1 -1
- package/store/models/deleted-node-info.model.d.ts +1 -1
- package/store/models/modal-configuration.d.ts +1 -1
- package/store/models/node-info.model.d.ts +1 -1
- package/store/models/search-option.model.d.ts +1 -1
- package/store/public-api.d.ts +1 -1
- package/store/selectors/app.selectors.d.ts +2 -7
- package/store/states/app.state.d.ts +5 -7
- package/esm2020/lib/models/modal-configuration.mjs +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alfresco-aca-shared-rules.mjs","sources":["../../../../projects/aca-shared/rules/src/navigation.rules.ts","../../../../projects/aca-shared/rules/src/repository.rules.ts","../../../../projects/aca-shared/rules/src/user.rules.ts","../../../../projects/aca-shared/rules/src/app.rules.ts","../../../../projects/aca-shared/rules/src/public-api.ts","../../../../projects/aca-shared/rules/src/alfresco-aca-shared-rules.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if a Preview route is activated.\n * JSON ref: `app.navigation.isPreview`\n */\nexport function isPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && (url.includes('/preview/') || url.includes('viewer:view') || url.includes('/view/'));\n}\n\n/**\n * Checks if a **Favorites** route is activated.\n * JSON ref: `app.navigation.isFavorites`\n */\nexport function isFavorites(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/favorites') && !isPreview(context);\n}\n\n/**\n * Checks if the activated route is not **Favorites**.\n * JSON ref: `app.navigation.isNotFavorites`\n */\nexport const isNotFavorites = (context: RuleContext): boolean => !isFavorites(context);\n\n/**\n * Checks if a **Shared Files** route is activated.\n * JSON ref: `app.navigation.isSharedFiles`\n */\nexport function isSharedFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/shared') && !isPreview(context);\n}\n\n/**\n * Checks if the activated route is not **Shared Files**.\n * JSON ref: `app.navigation.isNotSharedFiles`\n */\nexport const isNotSharedFiles = (context: RuleContext): boolean => !isSharedFiles(context);\n\n/**\n * Checks if a **Trashcan** route is activated.\n * JSON ref: `app.navigation.isTrashcan`\n */\nexport function isTrashcan(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/trashcan');\n}\n\n/**\n * Checks if the activated route is not **Trashcan**.\n * JSON ref: `app.navigation.isNotTrashcan`\n */\nexport const isNotTrashcan = (context: RuleContext): boolean => !isTrashcan(context);\n\n/**\n * Checks if a **Personal Files** route is activated.\n * JSON ref: `app.navigation.isPersonalFiles`\n */\nexport function isPersonalFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/personal-files');\n}\n\n/**\n * Checks if a **Library Files** route is activated.\n * JSON ref: `app.navigation.isLibraryFiles`\n */\nexport function isLibraryFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/libraries');\n}\n\n/**\n * Checks if a **Library Files** or **Library Search Result** route is activated.\n * JSON ref: `app.navigation.isLibraryFiles`\n */\nexport function isLibraries(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.endsWith('/libraries') || url?.startsWith('/search-libraries');\n}\n\nexport function isLibraryContent(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.endsWith('/libraries') || url?.includes('/libraries/') || url?.startsWith('/search-libraries');\n}\n\nexport function isDetails(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.includes('/details');\n}\n\n/**\n * Checks if the activated route is neither **Libraries** nor **Library Search Results**.\n * JSON ref: `app.navigation.isNotLibraries`\n */\nexport const isNotLibraries = (context: RuleContext): boolean => !isLibraries(context);\n\n/**\n * Checks if a **Recent Files** route is activated.\n * JSON ref: `app.navigation.isRecentFiles`\n */\nexport function isRecentFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/recent-files');\n}\n\n/**\n * Checks if the activated route is not **Recent Files**.\n * JSON ref: `app.navigation.isNotRecentFiles`\n */\nexport const isNotRecentFiles = (context: RuleContext): boolean => !isRecentFiles(context);\n\n/**\n * Checks if a **Search Results** route is activated.\n * JSON ref: `app.navigation.isSearchResults`\n */\nexport function isSearchResults(\n context: RuleContext\n // ...args: RuleParameter[]\n): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/search');\n}\n\n/**\n * Checks if the activated route is not **Search Results**.\n * JSON ref: `app.navigation.isNotSearchResults`\n */\nexport const isNotSearchResults = (context: RuleContext): boolean => !isSearchResults(context);\n\n/**\n * Checks if a **Shared Preview** route is activated.\n * JSON ref: `app.navigation.isSharedPreview`\n */\nexport function isSharedPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/shared/preview/') || (url?.startsWith('/shared') && url?.includes('viewer:view'));\n}\n\n/**\n * Checks if a **Favorites Preview** route is activated.\n * JSON ref: `app.navigation.isFavoritesPreview`\n */\nexport function isFavoritesPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/favorites/preview/') || (url?.startsWith('/favorites') && url?.includes('viewer:view'));\n}\n\n/**\n * Checks if a **Shared File Preview** route is activated.\n * JSON ref: `app.navigation.isFavoritesPreview`\n */\nexport function isSharedFileViewer(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/preview/s/');\n}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if the quick share repository option is enabled or not.\n * JSON ref: `repository.isQuickShareEnabled`\n */\nexport const hasQuickShareEnabled = (context: RuleContext): boolean => context.repository.status.isQuickShareEnabled;\n\nexport function isMajorVersionAvailable(context: RuleContext, versionNumber: string): boolean {\n const majorVersion = context.repository.version?.major ? parseInt(context.repository.version.major, 10) : 0;\n return majorVersion >= parseInt(versionNumber, 10);\n}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if user is admin.\n * JSON ref: `user.isAdmin`\n */\nexport const isAdmin = (context: RuleContext): boolean => context.profile.isAdmin;\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { AppConfigService } from '@alfresco/adf-core';\nimport { RuleContext } from '@alfresco/adf-extensions';\nimport * as navigation from './navigation.rules';\nimport * as repository from './repository.rules';\nimport { isAdmin } from './user.rules';\n\n/* cspell:disable */\nexport const supportedExtensions = {\n doc: 'ms-word',\n docx: 'ms-word',\n docm: 'ms-word',\n dot: 'ms-word',\n dotx: 'ms-word',\n dotm: 'ms-word',\n rtf: 'ms-word',\n xls: 'ms-excel',\n xlsx: 'ms-excel',\n xlsb: 'ms-excel',\n xlsm: 'ms-excel',\n xlt: 'ms-excel',\n xltx: 'ms-excel',\n xltm: 'ms-excel',\n xlam: 'ms-excel',\n ppt: 'ms-powerpoint',\n pptx: 'ms-powerpoint',\n pot: 'ms-powerpoint',\n potx: 'ms-powerpoint',\n potm: 'ms-powerpoint',\n pptm: 'ms-powerpoint',\n pps: 'ms-powerpoint',\n ppsx: 'ms-powerpoint',\n ppam: 'ms-powerpoint',\n ppsm: 'ms-powerpoint',\n sldx: 'ms-powerpoint',\n sldm: 'ms-powerpoint',\n vsd: 'ms-visio',\n vss: 'ms-visio',\n vst: 'ms-visio',\n vsdx: 'ms-visio',\n vsdm: 'ms-visio',\n vssx: 'ms-visio',\n vssm: 'ms-visio',\n vstx: 'ms-visio',\n vstm: 'ms-visio'\n};\n/* cspell:enable */\n\nexport function getFileExtension(fileName: string): string | null {\n if (fileName) {\n const match = fileName.toLowerCase().match(/\\.([^\\./\\?\\#]+)($|\\?|\\#)/);\n\n return match ? match[1] : null;\n }\n\n return null;\n}\n\nexport interface AcaRuleContext extends RuleContext {\n withCredentials: boolean;\n appConfig: AppConfigService;\n}\n\n/**\n * Checks if the content plugin is enabled.\n * JSON ref: `app.isContentServiceEnabled`\n */\nexport const isContentServiceEnabled = (context: AcaRuleContext): boolean => {\n const flag = context.appConfig.get<boolean | string>('plugins.contentService');\n return flag === true || flag === 'true';\n};\n\n/**\n * Checks if Search is supported for active view\n * JSON ref: `app.isSearchSupported`\n */\nexport const isSearchSupported = (context: RuleContext): boolean =>\n [navigation.isNotSearchResults(context) /* , !hasSelection(context)*/].every(Boolean);\n\n/**\n * Checks if upload action is supported for the given context\n * JSON ref: `app.isUploadSupported`\n *\n * @param context Rule execution context\n */\nexport const isUploadSupported = (context: AcaRuleContext): boolean =>\n [isContentServiceEnabled(context), navigation.isPersonalFiles(context) || navigation.isLibraryContent(context), canUpload(context)].every(Boolean);\n/**\n * Checks if user can copy selected node.\n * JSON ref: `app.canCopyNode`\n *\n * @param context Rule execution context\n */\nexport const canCopyNode = (context: RuleContext): boolean =>\n [hasSelection(context), navigation.isNotTrashcan(context), navigation.isNotLibraries(context)].every(Boolean);\n\n/**\n * Checks if user can mark selected nodes as **Favorite**.\n * JSON ref: `app.selection.canAddFavorite`\n */\nexport function canAddFavorite(context: RuleContext): boolean {\n if (!context.selection.isEmpty) {\n if (navigation.isFavorites(context) || navigation.isLibraries(context) || navigation.isTrashcan(context)) {\n return false;\n }\n return context.selection.nodes.some((node) => !node.entry.isFavorite);\n }\n return false;\n}\n\n/**\n * Checks if user can un-mark selected nodes as **Favorite**.\n * JSON ref: `app.selection.canRemoveFavorite`\n */\nexport function canRemoveFavorite(context: RuleContext): boolean {\n if (!context.selection.isEmpty && !navigation.isTrashcan(context)) {\n if (navigation.isFavorites(context)) {\n return true;\n }\n return context.selection.nodes.every((node) => node.entry.isFavorite);\n }\n return false;\n}\n\n/**\n * Checks if user can share selected file.\n * JSON ref: `app.selection.file.canShare`\n */\nexport const canShareFile = (context: RuleContext): boolean =>\n [context.selection.file, navigation.isNotTrashcan(context), repository.hasQuickShareEnabled(context), !isShared(context)].every(Boolean);\n\n/**\n * Checks if user can perform \"Join\" or \"Cancel Join Request\" on a library.\n * JSON ref: `canToggleJoinLibrary`\n */\nexport const canToggleJoinLibrary = (context: RuleContext): boolean =>\n [hasLibrarySelected(context), !isPrivateLibrary(context), hasNoLibraryRole(context)].every(Boolean) ||\n [hasLibrarySelected(context), isPrivateLibrary(context), hasNoLibraryRole(context), isAdmin(context)].every(Boolean);\n\n/**\n * Checks if user can edit the selected folder.\n * JSON ref: `canEditFolder`\n *\n * @param context Rule execution context\n */\nexport const canEditFolder = (context: RuleContext): boolean => [canUpdateSelectedFolder(context), navigation.isNotTrashcan(context)].every(Boolean);\n\n/**\n * Checks if the selected file is already shared.\n * JSON ref: `app.selection.file.isShared`\n */\nexport function isShared(context: RuleContext): boolean {\n if (navigation.isSharedFiles(context) && context.selection.file) {\n return true;\n }\n\n if (navigation.isNotTrashcan(context) && !context.selection.isEmpty && context.selection.file) {\n return !!context.selection.file.entry?.properties?.['qshare:sharedId'];\n }\n\n return false;\n}\n\n/**\n * Checks if user can delete selected nodes.\n * JSON ref: `app.selection.canDelete`\n */\nexport function canDeleteSelection(context: RuleContext): boolean {\n if (\n navigation.isNotTrashcan(context) &&\n navigation.isNotLibraries(context) &&\n navigation.isNotSearchResults(context) &&\n !context.selection.isEmpty\n ) {\n if (hasLockedFiles(context)) {\n return false;\n }\n\n // temp workaround for Favorites api\n if (navigation.isFavorites(context)) {\n return true;\n }\n\n if (navigation.isPreview(context)) {\n return context.permissions.check(context.selection.nodes, ['delete']);\n }\n\n // workaround for Shared Files\n if (navigation.isSharedFiles(context)) {\n return context.permissions.check(context.selection.nodes, ['delete'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n\n return context.permissions.check(context.selection.nodes, ['delete']);\n }\n return false;\n}\n\n/**\n * Checks if user can un-share selected nodes.\n * JSON ref: `app.selection.canUnshare`\n */\nexport function canUnshareNodes(context: RuleContext): boolean {\n if (!context.selection.isEmpty) {\n return context.permissions.check(context.selection.nodes, ['delete'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n return false;\n}\n\n/**\n * Checks if user selected anything.\n * JSON ref: `app.selection.notEmpty`\n */\nexport const hasSelection = (context: RuleContext): boolean => !context.selection.isEmpty;\n\n/**\n * Checks if user can create a new folder with current path.\n * JSON ref: `app.navigation.folder.canCreate`\n */\nexport function canCreateFolder(context: AcaRuleContext): boolean {\n if (isContentServiceEnabled(context) && (navigation.isPersonalFiles(context) || navigation.isLibraryContent(context))) {\n const { currentFolder } = context.navigation;\n\n if (currentFolder) {\n return context.permissions.check(currentFolder, ['create']);\n }\n }\n return false;\n}\n\n/**\n * Checks if user can create a Library\n * JSON ref: `app.canCreateLibrary`\n *\n * @param context Rule execution context\n */\nexport const canCreateLibrary = (context: AcaRuleContext): boolean =>\n [isContentServiceEnabled(context), navigation.isLibraries(context)].every(Boolean);\n\n/**\n * Checks if user can upload content to current folder.\n * JSON ref: `app.navigation.folder.canUpload`\n */\nexport function canUpload(context: AcaRuleContext): boolean {\n return canCreateFolder(context);\n}\n\n/**\n * Checks if user can download selected nodes (either files or folders).\n * JSON ref: `app.selection.canDownload`\n */\nexport function canDownloadSelection(context: RuleContext): boolean {\n if (!context.selection.isEmpty && navigation.isNotTrashcan(context)) {\n return context.selection.nodes.every((node: any) => node.entry && (node.entry.isFile || node.entry.isFolder || !!node.entry.nodeId));\n }\n return false;\n}\n\n/**\n * Checks if user has selected a folder.\n * JSON ref: `app.selection.folder`\n */\nexport const hasFolderSelected = (context: RuleContext): boolean => !!context.selection.folder;\n\n/**\n * Checks if user has selected a library (site).\n * JSON ref: `app.selection.library`\n */\nexport const hasLibrarySelected = (context: RuleContext): boolean => !!context.selection.library;\n\n/**\n * Checks if user has selected a **private** library (site)\n * JSON ref: `app.selection.isPrivateLibrary`\n */\nexport function isPrivateLibrary(context: RuleContext): boolean {\n return context.selection.library?.entry?.visibility === 'PRIVATE';\n}\n\n/**\n * Checks if the selected library has a **role** property defined.\n * JSON ref: `app.selection.hasLibraryRole`\n */\nexport function hasLibraryRole(context: RuleContext): boolean {\n const library = context.selection.library;\n return library ? !!library.entry?.role : false;\n}\n\n/**\n * Checks if the selected library has no **role** property defined.\n * JSON ref: `app.selection.hasNoLibraryRole`\n */\nexport const hasNoLibraryRole = (context: RuleContext): boolean => !hasLibraryRole(context);\n\n/**\n * Checks if user has selected a file.\n * JSON ref: `app.selection.file`\n */\nexport const hasFileSelected = (context: RuleContext): boolean => !!context?.selection?.file;\n\n/**\n * Checks if user can update the first selected node.\n * JSON ref: `app.selection.first.canUpdate`\n */\nexport function canUpdateSelectedNode(context: RuleContext): boolean {\n if (context.selection && !context.selection.isEmpty) {\n const node = context.selection.first;\n\n if (node?.entry.isFile && hasLockedFiles(context)) {\n return false;\n }\n\n return context.permissions.check(node, ['update']);\n }\n return false;\n}\n\nexport function isMultiselection(context: RuleContext): boolean {\n let isMultiNodeSelected = false;\n if (context.selection && !context.selection.isEmpty) {\n isMultiNodeSelected = context.selection.count > 1;\n }\n return isMultiNodeSelected;\n}\n\n/**\n * Checks if user can update the first selected folder.\n * JSON ref: `app.selection.folder.canUpdate`\n */\nexport function canUpdateSelectedFolder(context: RuleContext): boolean {\n const { folder } = context.selection;\n if (folder) {\n return (\n // workaround for Favorites Api\n navigation.isFavorites(context) || context.permissions.check(folder.entry, ['update'])\n );\n }\n return false;\n}\n\n/**\n * Checks if user has selected a **locked** file node.\n * JSON ref: `app.selection.file.isLocked`\n */\nexport function hasLockedFiles(context: RuleContext): boolean {\n if (context?.selection?.nodes) {\n return context.selection.nodes.some((node) => {\n if (!node.entry.isFile) {\n return false;\n }\n\n return node.entry.isLocked || node.entry.properties?.['cm:lockType'] === 'READ_ONLY_LOCK';\n });\n }\n\n return false;\n}\n\n/**\n * Checks if the selected file has **write** or **read-only** locks specified.\n * JSON ref: `app.selection.file.isLocked`\n */\nexport const isWriteLocked = (context: RuleContext): boolean =>\n !!(\n context?.selection?.file?.entry?.properties?.['cm:lockType'] === 'WRITE_LOCK' ||\n context?.selection?.file?.entry?.properties?.['cm:lockType'] === 'READ_ONLY_LOCK'\n );\n\n/**\n * Checks if the selected file has **write** or **read-only** locks specified,\n * and that current user is the owner of the lock.\n * JSON ref: `app.selection.file.isLockOwner`\n */\nexport const isUserWriteLockOwner = (context: RuleContext): boolean =>\n isWriteLocked(context) &&\n context.selection.file?.entry.properties['cm:lockOwner'] &&\n context.selection.file?.entry.properties['cm:lockOwner'].id === context.profile.id;\n\n/**\n * Checks if user can lock selected file.\n * JSON ref: `app.selection.file.canLock`\n */\nexport const canLockFile = (context: RuleContext): boolean => !isWriteLocked(context) && canUpdateSelectedNode(context);\n\n/**\n * Checks if user can unlock selected file.\n * JSON ref: `app.selection.file.canUnlock`\n */\nexport function canUnlockFile(context: RuleContext): boolean {\n const { file } = context.selection;\n return isWriteLocked(context) && (context.permissions.check(file?.entry, ['delete']) || isUserWriteLockOwner(context));\n}\n\n/**\n * Checks if user can upload a new version of the file.\n * JSON ref: `app.selection.file.canUploadVersion`\n */\nexport function canUploadVersion(context: RuleContext): boolean {\n if (navigation.isFavorites(context) || navigation.isSharedFiles(context)) {\n return hasFileSelected(context);\n }\n\n return [\n hasFileSelected(context),\n navigation.isNotTrashcan(context),\n isWriteLocked(context) ? isUserWriteLockOwner(context) : canUpdateSelectedNode(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user has trashcan item selected.\n * JSON ref: `isTrashcanItemSelected`\n *\n * @param context Rule execution context\n */\nexport const isTrashcanItemSelected = (context: RuleContext): boolean => [navigation.isTrashcan(context), hasSelection(context)].every(Boolean);\n\n/**\n * Checks if user can view the file.\n * JSON ref: `canViewFile`\n *\n * @param context Rule execution context\n */\nexport const canViewFile = (context: RuleContext): boolean => [hasFileSelected(context), navigation.isNotTrashcan(context)].every(Boolean);\n\n/**\n * Checks if user can **Leave** selected library.\n * JSON ref: `canLeaveLibrary`\n *\n * @param context Rule execution context\n */\nexport const canLeaveLibrary = (context: RuleContext): boolean => [hasLibrarySelected(context), hasLibraryRole(context)].every(Boolean);\n\n/**\n * Checks if user can toggle shared link mode.\n * JSON ref: `canToggleSharedLink`\n *\n * @param context Rule execution context\n */\nexport const canToggleSharedLink = (context: RuleContext): boolean =>\n [hasFileSelected(context), [canShareFile(context), isShared(context)].some(Boolean)].every(Boolean);\n\n/**\n * Checks if user can show **Info Drawer** for the selected node.\n * JSON ref: `canShowInfoDrawer`\n *\n * @param context Rule execution context\n */\nexport const canShowInfoDrawer = (context: RuleContext): boolean =>\n [hasSelection(context), navigation.isNotLibraries(context), navigation.isNotTrashcan(context)].every(Boolean);\n\n/**\n * Checks if user can manage file versions for the selected node.\n * JSON ref: `canManageFileVersions`\n *\n * @param context Rule execution context\n */\nexport const canManageFileVersions = (context: RuleContext): boolean =>\n [hasFileSelected(context), navigation.isNotTrashcan(context), !hasLockedFiles(context)].every(Boolean);\n\n/**\n * Checks if user can edit aspects for the selected node.\n * JSON ref: `canEditAspects`\n *\n * @param context Rule execution context\n */\nexport const canEditAspects = (context: RuleContext): boolean =>\n [\n !isMultiselection(context),\n canUpdateSelectedNode(context),\n !isWriteLocked(context),\n navigation.isNotTrashcan(context),\n repository.isMajorVersionAvailable(context, '7')\n ].every(Boolean);\n\nexport const editAspects = (context: RuleContext): boolean =>\n [\n canUpdateSelectedNode(context),\n !isWriteLocked(context),\n navigation.isNotTrashcan(context),\n repository.isMajorVersionAvailable(context, '7')\n ].every(Boolean);\n\nexport const canShowExpand = (context: RuleContext): boolean => [!navigation.isLibraries(context), !navigation.isDetails(context)].every(Boolean);\n\n/**\n * Checks if user can manage permissions for the selected node.\n * JSON ref: `canManagePermissions`\n *\n * @param context Rule execution context\n */\nexport const canManagePermissions = (context: RuleContext): boolean =>\n [canUpdateSelectedNode(context), navigation.isNotTrashcan(context), !isSmartFolder(context), !isMultiselection(context)].every(Boolean);\n\n/**\n * Checks if user can toggle **Edit Offline** mode for selected node.\n * JSON ref: `canToggleEditOffline`\n *\n * @param context Rule execution context\n */\nexport const canToggleEditOffline = (context: RuleContext): boolean =>\n [hasFileSelected(context), navigation.isNotTrashcan(context), canLockFile(context) || canUnlockFile(context)].every(Boolean);\n\n/**\n * @deprecated Uses workarounds for for recent files and search api issues.\n * Checks if user can toggle **Favorite** state for a node.\n * @param context Rule execution context\n */\nexport const canToggleFavorite = (context: RuleContext): boolean =>\n [\n [canAddFavorite(context), canRemoveFavorite(context)].some(Boolean),\n [navigation.isRecentFiles(context), navigation.isSharedFiles(context), navigation.isSearchResults(context), navigation.isFavorites(context)].some(\n Boolean\n )\n ].every(Boolean);\n\n/**\n * Checks if application should render logout option.\n * JSON ref: `canShowLogout`\n *\n * @param context Rule execution context\n */\nexport const canShowLogout = (context: AcaRuleContext): boolean => !context.withCredentials;\n\n/**\n * Checks if user is library manager\n * JSON ref: `isLibraryManager`\n *\n * @param context Rule execution context\n */\nexport const isLibraryManager = (context: RuleContext): boolean =>\n hasLibrarySelected(context) && (context.selection.library?.entry.role === 'SiteManager' || isAdmin(context));\n\n/**\n * Checks if the preview button for search results can be showed\n * JSON ref: `canInfoPreview`\n *\n * @param context Rule execution context\n */\nexport const canInfoPreview = (context: RuleContext): boolean => {\n const isSearchResult = navigation.isSearchResults(context);\n const isNotMultiselect = !isMultiselection(context);\n const isFileSelected = !hasFolderSelected(context);\n const isPreview = !navigation.isPreview(context);\n\n return isSearchResult && isNotMultiselect && isFileSelected && isPreview;\n};\n\nexport const showInfoSelectionButton = (context: RuleContext): boolean => navigation.isSearchResults(context) && !navigation.isPreview(context);\n\n/**\n * Checks if the file can be opened with MS Office\n * JSON ref: `aos.canOpenWithOffice`\n *\n * @param context Rule execution context\n */\nexport function canOpenWithOffice(context: AcaRuleContext): boolean {\n const flag = `${context.appConfig.get<boolean | string>('plugins.aosPlugin', false)}`;\n\n if (flag !== 'true') {\n return false;\n }\n\n if (context.navigation?.url?.startsWith('/trashcan')) {\n return false;\n }\n\n if (!context?.selection) {\n return false;\n }\n\n const { file } = context.selection;\n\n if (!file?.entry) {\n return false;\n }\n\n const extension = getFileExtension(file.entry.name);\n if (!extension || !supportedExtensions[extension]) {\n return false;\n }\n\n if (!file.entry.properties) {\n return false;\n }\n\n if (file.entry.isLocked) {\n return false;\n }\n\n if (file.entry.properties['cm:lockType'] === 'WRITE_LOCK' || file.entry.properties['cm:lockType'] === 'READ_ONLY_LOCK') {\n return false;\n }\n\n const lockOwner = file.entry.properties['cm:lockOwner'];\n if (lockOwner && lockOwner.id !== context.profile.id) {\n return false;\n }\n\n // workaround for Shared files\n if (context.navigation?.url?.startsWith('/shared')) {\n // eslint-disable-next-line no-prototype-builtins\n if (file.entry.hasOwnProperty('allowableOperationsOnTarget')) {\n return context.permissions.check(file, ['update'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n }\n\n return context.permissions.check(file, ['update']);\n}\n\nexport function isSmartFolder(context: RuleContext): boolean {\n if (!context.selection?.isEmpty) {\n const node = context.selection.first;\n if (!node?.entry.isFolder) {\n return false;\n }\n const nodeAspects = node.entry?.aspectNames ?? [];\n return nodeAspects.includes('smf:customConfigSmartFolder') || nodeAspects.includes('smf:systemConfigSmartFolder');\n }\n return false;\n}\n\nexport const areTagsEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.tagsEnabled', true);\n\nexport const areCategoriesEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.categoriesEnabled', true);\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport * from './app.rules';\nexport * from './navigation.rules';\nexport * from './repository.rules';\nexport * from './user.rules';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["navigation.isNotSearchResults","navigation.isPersonalFiles","navigation.isLibraryContent","navigation.isNotTrashcan","navigation.isNotLibraries","navigation.isFavorites","navigation.isLibraries","navigation.isTrashcan","repository.hasQuickShareEnabled","navigation.isSharedFiles","navigation.isPreview","repository.isMajorVersionAvailable","navigation.isDetails","navigation.isRecentFiles","navigation.isSearchResults","isPreview"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AAIH;;;AAGG;AACG,SAAU,SAAS,CAAC,OAAoB,EAAA;AAC5C,IAAA,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,GAAG,KAAK,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrG,CAAC;AAED;;;AAGG;AACG,SAAU,WAAW,CAAC,OAAoB,EAAA;AAC9C,IAAA,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;AACnC,IAAA,OAAO,CAAA,GAAG,KAAA,IAAA,IAAH,GAAG,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAH,GAAG,CAAE,UAAU,CAAC,YAAY,CAAC,KAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED;;;AAGG;AACI,M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navigation.rules.ts","../../../../projects/aca-shared/rules/src/repository.rules.ts","../../../../projects/aca-shared/rules/src/user.rules.ts","../../../../projects/aca-shared/rules/src/app.rules.ts","../../../../projects/aca-shared/rules/src/public-api.ts","../../../../projects/aca-shared/rules/src/alfresco-aca-shared-rules.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if a Preview route is activated.\n * JSON ref: `app.navigation.isPreview`\n */\nexport function isPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && (url.includes('/preview/') || url.includes('viewer:view') || url.includes('/view/'));\n}\n\n/**\n * Checks if a **Favorites** route is activated.\n * JSON ref: `app.navigation.isFavorites`\n */\nexport function isFavorites(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/favorites') && !isPreview(context);\n}\n\n/**\n * Checks if the activated route is not **Favorites**.\n * JSON ref: `app.navigation.isNotFavorites`\n */\nexport const isNotFavorites = (context: RuleContext): boolean => !isFavorites(context);\n\n/**\n * Checks if a **Shared Files** route is activated.\n * JSON ref: `app.navigation.isSharedFiles`\n */\nexport function isSharedFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/shared') && !isPreview(context);\n}\n\n/**\n * Checks if the activated route is not **Shared Files**.\n * JSON ref: `app.navigation.isNotSharedFiles`\n */\nexport const isNotSharedFiles = (context: RuleContext): boolean => !isSharedFiles(context);\n\n/**\n * Checks if a **Trashcan** route is activated.\n * JSON ref: `app.navigation.isTrashcan`\n */\nexport function isTrashcan(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/trashcan');\n}\n\n/**\n * Checks if the activated route is not **Trashcan**.\n * JSON ref: `app.navigation.isNotTrashcan`\n */\nexport const isNotTrashcan = (context: RuleContext): boolean => !isTrashcan(context);\n\n/**\n * Checks if a **Personal Files** route is activated.\n * JSON ref: `app.navigation.isPersonalFiles`\n */\nexport function isPersonalFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/personal-files');\n}\n\n/**\n * Checks if a **Library Files** route is activated.\n * JSON ref: `app.navigation.isLibraryFiles`\n */\nexport function isLibraryFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/libraries');\n}\n\n/**\n * Checks if a **Library Files** or **Library Search Result** route is activated.\n * JSON ref: `app.navigation.isLibraryFiles`\n */\nexport function isLibraries(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.endsWith('/libraries') || url?.startsWith('/search-libraries');\n}\n\nexport function isLibraryContent(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.endsWith('/libraries') || url?.includes('/libraries/') || url?.startsWith('/search-libraries');\n}\n\nexport function isDetails(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.includes('/details');\n}\n\n/**\n * Checks if the activated route is neither **Libraries** nor **Library Search Results**.\n * JSON ref: `app.navigation.isNotLibraries`\n */\nexport const isNotLibraries = (context: RuleContext): boolean => !isLibraries(context);\n\n/**\n * Checks if a **Recent Files** route is activated.\n * JSON ref: `app.navigation.isRecentFiles`\n */\nexport function isRecentFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/recent-files');\n}\n\n/**\n * Checks if the activated route is not **Recent Files**.\n * JSON ref: `app.navigation.isNotRecentFiles`\n */\nexport const isNotRecentFiles = (context: RuleContext): boolean => !isRecentFiles(context);\n\n/**\n * Checks if a **Search Results** route is activated.\n * JSON ref: `app.navigation.isSearchResults`\n */\nexport function isSearchResults(\n context: RuleContext\n // ...args: RuleParameter[]\n): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/search');\n}\n\n/**\n * Checks if the activated route is not **Search Results**.\n * JSON ref: `app.navigation.isNotSearchResults`\n */\nexport const isNotSearchResults = (context: RuleContext): boolean => !isSearchResults(context);\n\n/**\n * Checks if a **Shared Preview** route is activated.\n * JSON ref: `app.navigation.isSharedPreview`\n */\nexport function isSharedPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/shared/preview/') || (url?.startsWith('/shared') && url?.includes('viewer:view'));\n}\n\n/**\n * Checks if a **Favorites Preview** route is activated.\n * JSON ref: `app.navigation.isFavoritesPreview`\n */\nexport function isFavoritesPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/favorites/preview/') || (url?.startsWith('/favorites') && url?.includes('viewer:view'));\n}\n\n/**\n * Checks if a **Shared File Preview** route is activated.\n * JSON ref: `app.navigation.isFavoritesPreview`\n */\nexport function isSharedFileViewer(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url?.startsWith('/preview/s/');\n}\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if the quick share repository option is enabled or not.\n * JSON ref: `repository.isQuickShareEnabled`\n */\nexport const hasQuickShareEnabled = (context: RuleContext): boolean => context.repository.status.isQuickShareEnabled;\n\nexport function isMajorVersionAvailable(context: RuleContext, versionNumber: string): boolean {\n const majorVersion = context.repository.version?.major ? parseInt(context.repository.version.major, 10) : 0;\n return majorVersion >= parseInt(versionNumber, 10);\n}\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if user is admin.\n * JSON ref: `user.isAdmin`\n */\nexport const isAdmin = (context: RuleContext): boolean => context.profile.isAdmin;\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { AppConfigService } from '@alfresco/adf-core';\nimport { RuleContext } from '@alfresco/adf-extensions';\nimport * as navigation from './navigation.rules';\nimport * as repository from './repository.rules';\nimport { isAdmin } from './user.rules';\n\n/* cspell:disable */\nexport const supportedExtensions = {\n doc: 'ms-word',\n docx: 'ms-word',\n docm: 'ms-word',\n dot: 'ms-word',\n dotx: 'ms-word',\n dotm: 'ms-word',\n rtf: 'ms-word',\n xls: 'ms-excel',\n xlsx: 'ms-excel',\n xlsb: 'ms-excel',\n xlsm: 'ms-excel',\n xlt: 'ms-excel',\n xltx: 'ms-excel',\n xltm: 'ms-excel',\n xlam: 'ms-excel',\n ppt: 'ms-powerpoint',\n pptx: 'ms-powerpoint',\n pot: 'ms-powerpoint',\n potx: 'ms-powerpoint',\n potm: 'ms-powerpoint',\n pptm: 'ms-powerpoint',\n pps: 'ms-powerpoint',\n ppsx: 'ms-powerpoint',\n ppam: 'ms-powerpoint',\n ppsm: 'ms-powerpoint',\n sldx: 'ms-powerpoint',\n sldm: 'ms-powerpoint',\n vsd: 'ms-visio',\n vss: 'ms-visio',\n vst: 'ms-visio',\n vsdx: 'ms-visio',\n vsdm: 'ms-visio',\n vssx: 'ms-visio',\n vssm: 'ms-visio',\n vstx: 'ms-visio',\n vstm: 'ms-visio'\n};\n\n/* cspell:enable */\n\nexport function getFileExtension(fileName: string): string | null {\n if (fileName) {\n const match = fileName.toLowerCase().match(/\\.([^\\./\\?\\#]+)($|\\?|\\#)/);\n\n return match ? match[1] : null;\n }\n\n return null;\n}\n\nexport interface AcaRuleContext extends RuleContext {\n withCredentials: boolean;\n appConfig: AppConfigService;\n}\n\n/**\n * Checks if the content plugin is enabled.\n * JSON ref: `app.isContentServiceEnabled`\n */\nexport const isContentServiceEnabled = (context: AcaRuleContext): boolean => {\n const flag = context.appConfig.get<boolean | string>('plugins.contentService');\n return flag === true || flag === 'true';\n};\n\n/**\n * Checks if upload action is supported for the given context\n * JSON ref: `app.isUploadSupported`\n *\n * @param context Rule execution context\n */\nexport const isUploadSupported = (context: AcaRuleContext): boolean =>\n [isContentServiceEnabled(context), navigation.isPersonalFiles(context) || navigation.isLibraryContent(context), canUpload(context)].every(Boolean);\n/**\n * Checks if user can copy selected node.\n * JSON ref: `app.canCopyNode`\n *\n * @param context Rule execution context\n */\nexport const canCopyNode = (context: RuleContext): boolean =>\n [hasSelection(context), navigation.isNotTrashcan(context), navigation.isNotLibraries(context)].every(Boolean);\n\n/**\n * Checks if user can mark selected nodes as **Favorite**.\n * JSON ref: `app.selection.canAddFavorite`\n */\nexport function canAddFavorite(context: RuleContext): boolean {\n if (hasSelection(context)) {\n if (navigation.isFavorites(context) || navigation.isLibraries(context) || navigation.isTrashcan(context)) {\n return false;\n }\n return context.selection.nodes.some((node) => !node.entry.isFavorite);\n }\n return false;\n}\n\n/**\n * Checks if user can un-mark selected nodes as **Favorite**.\n * JSON ref: `app.selection.canRemoveFavorite`\n */\nexport function canRemoveFavorite(context: RuleContext): boolean {\n if (hasSelection(context) && !navigation.isTrashcan(context)) {\n if (navigation.isFavorites(context)) {\n return true;\n }\n return context.selection.nodes.every((node) => node.entry.isFavorite);\n }\n return false;\n}\n\n/**\n * Checks if user can share selected file.\n * JSON ref: `app.selection.file.canShare`\n */\nexport const canShareFile = (context: RuleContext): boolean =>\n [context.selection.file, navigation.isNotTrashcan(context), repository.hasQuickShareEnabled(context), !isShared(context)].every(Boolean);\n\n/**\n * Checks if user can perform \"Join\" or \"Cancel Join Request\" on a library.\n * JSON ref: `canToggleJoinLibrary`\n */\nexport const canToggleJoinLibrary = (context: RuleContext): boolean =>\n [hasLibrarySelected(context), !isPrivateLibrary(context), hasNoLibraryRole(context)].every(Boolean) ||\n [hasLibrarySelected(context), isPrivateLibrary(context), hasNoLibraryRole(context), isAdmin(context)].every(Boolean);\n\n/**\n * Checks if user can edit the selected folder.\n * JSON ref: `canEditFolder`\n *\n * @param context Rule execution context\n */\nexport const canEditFolder = (context: RuleContext): boolean => [canUpdateSelectedFolder(context), navigation.isNotTrashcan(context)].every(Boolean);\n\n/**\n * Checks if the selected file is already shared.\n * JSON ref: `app.selection.file.isShared`\n */\nexport function isShared(context: RuleContext): boolean {\n if (navigation.isSharedFiles(context) && context.selection.file) {\n return true;\n }\n\n if (navigation.isNotTrashcan(context) && hasSelection(context) && context.selection.file) {\n return !!context.selection.file.entry?.properties?.['qshare:sharedId'];\n }\n\n return false;\n}\n\n/**\n * Checks if user can delete selected nodes.\n * JSON ref: `app.selection.canDelete`\n */\nexport function canDeleteSelection(context: RuleContext): boolean {\n if (navigation.isNotTrashcan(context) && navigation.isNotLibraries(context) && hasSelection(context)) {\n if (hasLockedFiles(context)) {\n return false;\n }\n\n // temp workaround for Favorites api\n if (navigation.isFavorites(context)) {\n return true;\n }\n\n if (navigation.isPreview(context)) {\n return context.permissions.check(context.selection.nodes, ['delete']);\n }\n\n // workaround for Shared Files\n if (navigation.isSharedFiles(context)) {\n return context.permissions.check(context.selection.nodes, ['delete'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n\n return context.permissions.check(context.selection.nodes, ['delete']);\n }\n return false;\n}\n\n/**\n * Checks if user can un-share selected nodes.\n * JSON ref: `app.selection.canUnshare`\n */\nexport function canUnshareNodes(context: RuleContext): boolean {\n if (hasSelection(context)) {\n return context.permissions.check(context.selection.nodes, ['delete'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n return false;\n}\n\n/**\n * Checks if user selected anything.\n * JSON ref: `app.selection.notEmpty`\n */\nexport const hasSelection = (context: RuleContext): boolean => !context.selection.isEmpty;\n\n/**\n * Checks if user can create a new folder with current path.\n * JSON ref: `app.navigation.folder.canCreate`\n */\nexport function canCreateFolder(context: AcaRuleContext): boolean {\n if (isContentServiceEnabled(context) && (navigation.isPersonalFiles(context) || navigation.isLibraryContent(context))) {\n const { currentFolder } = context.navigation;\n\n if (currentFolder) {\n return context.permissions.check(currentFolder, ['create']);\n }\n }\n return false;\n}\n\n/**\n * Checks if user can create a Library\n * JSON ref: `app.canCreateLibrary`\n *\n * @param context Rule execution context\n */\nexport const canCreateLibrary = (context: AcaRuleContext): boolean =>\n [isContentServiceEnabled(context), navigation.isLibraries(context)].every(Boolean);\n\n/**\n * Checks if user can upload content to current folder.\n * JSON ref: `app.navigation.folder.canUpload`\n */\nexport function canUpload(context: AcaRuleContext): boolean {\n return canCreateFolder(context);\n}\n\n/**\n * Checks if user can download selected nodes (either files or folders).\n * JSON ref: `app.selection.canDownload`\n */\nexport function canDownloadSelection(context: RuleContext): boolean {\n if (hasSelection(context) && navigation.isNotTrashcan(context)) {\n return context.selection.nodes.every((node: any) => node.entry && (node.entry.isFile || node.entry.isFolder || !!node.entry.nodeId));\n }\n return false;\n}\n\n/**\n * Checks if user has selected a folder.\n * JSON ref: `app.selection.folder`\n */\nexport const hasFolderSelected = (context: RuleContext): boolean => !!context.selection.folder;\n\n/**\n * Checks if user has selected a library (site).\n * JSON ref: `app.selection.library`\n */\nexport const hasLibrarySelected = (context: RuleContext): boolean => !!context.selection.library;\n\n/**\n * Checks if user has selected a **private** library (site)\n * JSON ref: `app.selection.isPrivateLibrary`\n */\nexport function isPrivateLibrary(context: RuleContext): boolean {\n return context.selection.library?.entry?.visibility === 'PRIVATE';\n}\n\n/**\n * Checks if the selected library has a **role** property defined.\n * JSON ref: `app.selection.hasLibraryRole`\n */\nexport function hasLibraryRole(context: RuleContext): boolean {\n const library = context.selection.library;\n return library ? !!library.entry?.role : false;\n}\n\n/**\n * Checks if the selected library has no **role** property defined.\n * JSON ref: `app.selection.hasNoLibraryRole`\n */\nexport const hasNoLibraryRole = (context: RuleContext): boolean => !hasLibraryRole(context);\n\n/**\n * Checks if user has selected a file.\n * JSON ref: `app.selection.file`\n */\nexport const hasFileSelected = (context: RuleContext): boolean => !!context?.selection?.file;\n\n/**\n * Checks if user can update the first selected node.\n * JSON ref: `app.selection.first.canUpdate`\n */\nexport function canUpdateSelectedNode(context: RuleContext): boolean {\n if (context.selection && hasSelection(context)) {\n const node = context.selection.first;\n\n if (node?.entry.isFile && hasLockedFiles(context)) {\n return false;\n }\n\n return context.permissions.check(node, ['update']);\n }\n return false;\n}\n\nexport function isMultiselection(context: RuleContext): boolean {\n let isMultiNodeSelected = false;\n if (context.selection && hasSelection(context)) {\n isMultiNodeSelected = context.selection.count > 1;\n }\n return isMultiNodeSelected;\n}\n\n/**\n * Checks if user can update the first selected folder.\n * JSON ref: `app.selection.folder.canUpdate`\n */\nexport function canUpdateSelectedFolder(context: RuleContext): boolean {\n const { folder } = context.selection;\n if (folder) {\n return (\n // workaround for Favorites Api\n navigation.isFavorites(context) || context.permissions.check(folder.entry, ['update'])\n );\n }\n return false;\n}\n\n/**\n * Checks if user has selected a **locked** file node.\n * JSON ref: `app.selection.file.isLocked`\n */\nexport function hasLockedFiles(context: RuleContext): boolean {\n if (context?.selection?.nodes) {\n return context.selection.nodes.some((node) => {\n if (!node.entry.isFile) {\n return false;\n }\n\n return node.entry.isLocked || node.entry.properties?.['cm:lockType'] === 'READ_ONLY_LOCK';\n });\n }\n\n return false;\n}\n\n/**\n * Checks if the selected file has **write** or **read-only** locks specified.\n * JSON ref: `app.selection.file.isLocked`\n */\nexport const isWriteLocked = (context: RuleContext): boolean =>\n !!(\n context?.selection?.file?.entry?.properties?.['cm:lockType'] === 'WRITE_LOCK' ||\n context?.selection?.file?.entry?.properties?.['cm:lockType'] === 'READ_ONLY_LOCK'\n );\n\n/**\n * Checks if the selected file has **write** or **read-only** locks specified,\n * and that current user is the owner of the lock.\n * JSON ref: `app.selection.file.isLockOwner`\n */\nexport const isUserWriteLockOwner = (context: RuleContext): boolean =>\n isWriteLocked(context) &&\n context.selection.file?.entry.properties['cm:lockOwner'] &&\n context.selection.file?.entry.properties['cm:lockOwner'].id === context.profile.id;\n\n/**\n * Checks if user can lock selected file.\n * JSON ref: `app.selection.file.canLock`\n */\nexport const canLockFile = (context: RuleContext): boolean => !isWriteLocked(context) && canUpdateSelectedNode(context);\n\n/**\n * Checks if user can unlock selected file.\n * JSON ref: `app.selection.file.canUnlock`\n */\nexport function canUnlockFile(context: RuleContext): boolean {\n const { file } = context.selection;\n return isWriteLocked(context) && (context.permissions.check(file?.entry, ['delete']) || isUserWriteLockOwner(context));\n}\n\n/**\n * Checks if user can upload a new version of the file.\n * JSON ref: `app.selection.file.canUploadVersion`\n */\nexport function canUploadVersion(context: RuleContext): boolean {\n if (navigation.isFavorites(context) || navigation.isSharedFiles(context)) {\n return hasFileSelected(context);\n }\n\n return [\n hasFileSelected(context),\n navigation.isNotTrashcan(context),\n isWriteLocked(context) ? isUserWriteLockOwner(context) : canUpdateSelectedNode(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user has trashcan item selected.\n * JSON ref: `isTrashcanItemSelected`\n *\n * @param context Rule execution context\n */\nexport const isTrashcanItemSelected = (context: RuleContext): boolean => [navigation.isTrashcan(context), hasSelection(context)].every(Boolean);\n\n/**\n * Checks if user can view the file.\n * JSON ref: `canViewFile`\n *\n * @param context Rule execution context\n */\nexport const canViewFile = (context: RuleContext): boolean => [hasFileSelected(context), navigation.isNotTrashcan(context)].every(Boolean);\n\n/**\n * Checks if user can **Leave** selected library.\n * JSON ref: `canLeaveLibrary`\n *\n * @param context Rule execution context\n */\nexport const canLeaveLibrary = (context: RuleContext): boolean => [hasLibrarySelected(context), hasLibraryRole(context)].every(Boolean);\n\n/**\n * Checks if user can toggle shared link mode.\n * JSON ref: `canToggleSharedLink`\n *\n * @param context Rule execution context\n */\nexport const canToggleSharedLink = (context: RuleContext): boolean =>\n [hasFileSelected(context), [canShareFile(context), isShared(context)].some(Boolean)].every(Boolean);\n\n/**\n * Checks if user can show **Info Drawer** for the selected node.\n * JSON ref: `canShowInfoDrawer`\n *\n * @param context Rule execution context\n */\nexport const canShowInfoDrawer = (context: RuleContext): boolean =>\n [hasSelection(context), navigation.isNotLibraries(context), navigation.isNotTrashcan(context)].every(Boolean);\n\n/**\n * Checks if user can manage file versions for the selected node.\n * JSON ref: `canManageFileVersions`\n *\n * @param context Rule execution context\n */\nexport const canManageFileVersions = (context: RuleContext): boolean =>\n [hasFileSelected(context), navigation.isNotTrashcan(context), !hasLockedFiles(context)].every(Boolean);\n\n/**\n * Checks if user can edit aspects for the selected node.\n * JSON ref: `canEditAspects`\n *\n * @param context Rule execution context\n */\nexport const canEditAspects = (context: RuleContext): boolean =>\n [\n !isMultiselection(context),\n canUpdateSelectedNode(context),\n !isWriteLocked(context),\n navigation.isNotTrashcan(context),\n repository.isMajorVersionAvailable(context, '7')\n ].every(Boolean);\n\nexport const canShowExpand = (context: RuleContext): boolean => [!navigation.isLibraries(context), !navigation.isDetails(context)].every(Boolean);\n\n/**\n * Checks if user can manage permissions for the selected node.\n * JSON ref: `canManagePermissions`\n *\n * @param context Rule execution context\n */\nexport const canManagePermissions = (context: RuleContext): boolean =>\n [canUpdateSelectedNode(context), navigation.isNotTrashcan(context), !isSmartFolder(context), !isMultiselection(context)].every(Boolean);\n\n/**\n * Checks if user can toggle **Edit Offline** mode for selected node.\n * JSON ref: `canToggleEditOffline`\n *\n * @param context Rule execution context\n */\nexport const canToggleEditOffline = (context: RuleContext): boolean =>\n [hasFileSelected(context), navigation.isNotTrashcan(context), canLockFile(context) || canUnlockFile(context)].every(Boolean);\n\n/**\n * @deprecated Uses workarounds for for recent files and search api issues.\n * Checks if user can toggle **Favorite** state for a node.\n * @param context Rule execution context\n */\nexport const canToggleFavorite = (context: RuleContext): boolean =>\n [\n [canAddFavorite(context), canRemoveFavorite(context)].some(Boolean),\n [navigation.isRecentFiles(context), navigation.isSharedFiles(context), navigation.isSearchResults(context), navigation.isFavorites(context)].some(\n Boolean\n )\n ].every(Boolean);\n\n/**\n * Checks if application should render logout option.\n * JSON ref: `canShowLogout`\n *\n * @param context Rule execution context\n */\nexport const canShowLogout = (context: AcaRuleContext): boolean => !context.withCredentials;\n\n/**\n * Checks if user is library manager\n * JSON ref: `isLibraryManager`\n *\n * @param context Rule execution context\n */\nexport const isLibraryManager = (context: RuleContext): boolean =>\n hasLibrarySelected(context) && (context.selection.library?.entry.role === 'SiteManager' || isAdmin(context));\n\n/**\n * Checks if the preview button for search results can be showed\n * JSON ref: `canInfoPreview`\n *\n * @param context Rule execution context\n */\nexport const canInfoPreview = (context: RuleContext): boolean => {\n const isSearchResult = navigation.isSearchResults(context);\n const isNotMultiselect = !isMultiselection(context);\n const isFileSelected = !hasFolderSelected(context);\n const isPreview = !navigation.isPreview(context);\n\n return isSearchResult && isNotMultiselect && isFileSelected && isPreview;\n};\n\nexport const showInfoSelectionButton = (context: RuleContext): boolean => navigation.isSearchResults(context) && !navigation.isPreview(context);\n\n/**\n * Checks if the file can be opened with MS Office\n * JSON ref: `aos.canOpenWithOffice`\n *\n * @param context Rule execution context\n */\nexport function canOpenWithOffice(context: AcaRuleContext): boolean {\n const flag = `${context.appConfig.get<boolean | string>('plugins.aosPlugin', false)}`;\n\n if (flag !== 'true') {\n return false;\n }\n\n if (context.navigation?.url?.startsWith('/trashcan')) {\n return false;\n }\n\n if (!context?.selection) {\n return false;\n }\n\n const { file } = context.selection;\n\n if (!file?.entry) {\n return false;\n }\n\n const extension = getFileExtension(file.entry.name);\n if (!extension || !supportedExtensions[extension]) {\n return false;\n }\n\n if (!file.entry.properties) {\n return false;\n }\n\n if (file.entry.isLocked) {\n return false;\n }\n\n if (file.entry.properties['cm:lockType'] === 'WRITE_LOCK' || file.entry.properties['cm:lockType'] === 'READ_ONLY_LOCK') {\n return false;\n }\n\n const lockOwner = file.entry.properties['cm:lockOwner'];\n if (lockOwner && lockOwner.id !== context.profile.id) {\n return false;\n }\n\n // workaround for Shared files\n if (context.navigation?.url?.startsWith('/shared')) {\n // eslint-disable-next-line no-prototype-builtins\n if (file.entry.hasOwnProperty('allowableOperationsOnTarget')) {\n return context.permissions.check(file, ['update'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n }\n\n return context.permissions.check(file, ['update']);\n}\n\nexport function isSmartFolder(context: RuleContext): boolean {\n if (!context.selection?.isEmpty) {\n const node = context.selection.first;\n if (!node?.entry.isFolder) {\n return false;\n }\n const nodeAspects = node.entry?.aspectNames ?? [];\n return nodeAspects.includes('smf:customConfigSmartFolder') || nodeAspects.includes('smf:systemConfigSmartFolder');\n }\n return false;\n}\n\nexport const areTagsEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.tagsEnabled', true);\n\nexport const areCategoriesEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.categoriesEnabled', true);\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport * from './app.rules';\nexport * from './navigation.rules';\nexport * from './repository.rules';\nexport * from './user.rules';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["navigation.isPersonalFiles","navigation.isLibraryContent","navigation.isNotTrashcan","navigation.isNotLibraries","navigation.isFavorites","navigation.isLibraries","navigation.isTrashcan","repository.hasQuickShareEnabled","navigation.isSharedFiles","navigation.isPreview","repository.isMajorVersionAvailable","navigation.isDetails","navigation.isRecentFiles","navigation.isSearchResults","isPreview"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AAIH;;;AAGG;AACG,SAAU,SAAS,CAAC,OAAoB,EAAA;AAC5C,IAAA,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,GAAG,KAAK,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrG,CAAC;AAED;;;AAGG;AACG,SAAU,WAAW,CAAC,OAAoB,EAAA;AAC9C,IAAA,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;AACnC,IAAA,OAAO,CAAA,GAAG,KAAA,IAAA,IAAH,GAAG,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAH,GAAG,CAAE,UAAU,CAAC,YAAY,CAAC,KAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED;;;AAGG;AACI,MAAM,cAAc,GAAG,CAAC,OAAoB,KAAc,CAAC,WAAW,CAAC,OAAO,EAAE;AAEvF;;;AAGG;AACG,SAAU,aAAa,CAAC,OAAoB,EAAA;AAChD,IAAA,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;AACnC,IAAA,OAAO,CAAA,GAAG,KAAA,IAAA,IAAH,GAAG,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAH,GAAG,CAAE,UAAU,CAAC,SAAS,CAAC,KAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AAC3D,CAAC;A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,cAAc,GAAG,CAAC,OAAuB,KAAc,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,EAAE;AAE1G,MAAA,oBAAoB,GAAG,CAAC,OAAuB,KAAc,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,2BAA2B,EAAE,IAAI;;ACxnBjI;;;;;;;;;;;;;;;;;;;;;;AAsBG;;ACtBH;;AAEG;;;;"}
|
|
@@ -13,7 +13,7 @@ import { SnackbarContentComponent } from '@alfresco/adf-core';
|
|
|
13
13
|
import * as i3$1 from '@angular/material/snack-bar';
|
|
14
14
|
|
|
15
15
|
/*!
|
|
16
|
-
* Copyright © 2005-
|
|
16
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
17
17
|
*
|
|
18
18
|
* Alfresco Example Content Application
|
|
19
19
|
*
|
|
@@ -37,7 +37,6 @@ import * as i3$1 from '@angular/material/snack-bar';
|
|
|
37
37
|
*/
|
|
38
38
|
var AppActionTypes;
|
|
39
39
|
(function (AppActionTypes) {
|
|
40
|
-
AppActionTypes["SetInitialState"] = "SET_INITIAL_STATE";
|
|
41
40
|
AppActionTypes["SetCurrentFolder"] = "SET_CURRENT_FOLDER";
|
|
42
41
|
AppActionTypes["SetCurrentVersion"] = "SET_CURRENT_VERSION";
|
|
43
42
|
AppActionTypes["SetCurrentUrl"] = "SET_CURRENT_URL";
|
|
@@ -57,7 +56,7 @@ var AppActionTypes;
|
|
|
57
56
|
})(AppActionTypes || (AppActionTypes = {}));
|
|
58
57
|
|
|
59
58
|
/*!
|
|
60
|
-
* Copyright © 2005-
|
|
59
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
61
60
|
*
|
|
62
61
|
* Alfresco Example Content Application
|
|
63
62
|
*
|
|
@@ -85,7 +84,7 @@ var ContextMenuActionTypes;
|
|
|
85
84
|
})(ContextMenuActionTypes || (ContextMenuActionTypes = {}));
|
|
86
85
|
|
|
87
86
|
/*!
|
|
88
|
-
* Copyright © 2005-
|
|
87
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
89
88
|
*
|
|
90
89
|
* Alfresco Example Content Application
|
|
91
90
|
*
|
|
@@ -117,7 +116,7 @@ var RouterActionTypes;
|
|
|
117
116
|
})(RouterActionTypes || (RouterActionTypes = {}));
|
|
118
117
|
|
|
119
118
|
/*!
|
|
120
|
-
* Copyright © 2005-
|
|
119
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
121
120
|
*
|
|
122
121
|
* Alfresco Example Content Application
|
|
123
122
|
*
|
|
@@ -148,7 +147,7 @@ var TemplateActionTypes;
|
|
|
148
147
|
})(TemplateActionTypes || (TemplateActionTypes = {}));
|
|
149
148
|
|
|
150
149
|
/*!
|
|
151
|
-
* Copyright © 2005-
|
|
150
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
152
151
|
*
|
|
153
152
|
* Alfresco Example Content Application
|
|
154
153
|
*
|
|
@@ -170,12 +169,6 @@ var TemplateActionTypes;
|
|
|
170
169
|
* You should have received a copy of the GNU Lesser General Public License
|
|
171
170
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
172
171
|
*/
|
|
173
|
-
class SetInitialStateAction {
|
|
174
|
-
constructor(payload) {
|
|
175
|
-
this.payload = payload;
|
|
176
|
-
this.type = AppActionTypes.SetInitialState;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
172
|
class SetCurrentFolderAction {
|
|
180
173
|
constructor(payload) {
|
|
181
174
|
this.payload = payload;
|
|
@@ -264,7 +257,7 @@ class ShowLoaderAction {
|
|
|
264
257
|
}
|
|
265
258
|
|
|
266
259
|
/*!
|
|
267
|
-
* Copyright © 2005-
|
|
260
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
268
261
|
*
|
|
269
262
|
* Alfresco Example Content Application
|
|
270
263
|
*
|
|
@@ -327,7 +320,7 @@ class LeaveLibraryAction {
|
|
|
327
320
|
}
|
|
328
321
|
|
|
329
322
|
/*!
|
|
330
|
-
* Copyright © 2005-
|
|
323
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
331
324
|
*
|
|
332
325
|
* Alfresco Example Content Application
|
|
333
326
|
*
|
|
@@ -515,7 +508,7 @@ class ManageRulesAction {
|
|
|
515
508
|
}
|
|
516
509
|
|
|
517
510
|
/*!
|
|
518
|
-
* Copyright © 2005-
|
|
511
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
519
512
|
*
|
|
520
513
|
* Alfresco Example Content Application
|
|
521
514
|
*
|
|
@@ -568,7 +561,7 @@ class NavigateToPreviousPage {
|
|
|
568
561
|
}
|
|
569
562
|
|
|
570
563
|
/*!
|
|
571
|
-
* Copyright © 2005-
|
|
564
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
572
565
|
*
|
|
573
566
|
* Alfresco Example Content Application
|
|
574
567
|
*
|
|
@@ -609,7 +602,7 @@ class SearchByTermAction {
|
|
|
609
602
|
}
|
|
610
603
|
|
|
611
604
|
/*!
|
|
612
|
-
* Copyright © 2005-
|
|
605
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
613
606
|
*
|
|
614
607
|
* Alfresco Example Content Application
|
|
615
608
|
*
|
|
@@ -666,7 +659,7 @@ class SnackbarErrorAction {
|
|
|
666
659
|
}
|
|
667
660
|
|
|
668
661
|
/*!
|
|
669
|
-
* Copyright © 2005-
|
|
662
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
670
663
|
*
|
|
671
664
|
* Alfresco Example Content Application
|
|
672
665
|
*
|
|
@@ -715,7 +708,7 @@ class UploadFileVersionAction {
|
|
|
715
708
|
}
|
|
716
709
|
|
|
717
710
|
/*!
|
|
718
|
-
* Copyright © 2005-
|
|
711
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
719
712
|
*
|
|
720
713
|
* Alfresco Example Content Application
|
|
721
714
|
*
|
|
@@ -782,8 +775,8 @@ class ClosePreviewAction {
|
|
|
782
775
|
}
|
|
783
776
|
}
|
|
784
777
|
class RefreshPreviewAction {
|
|
785
|
-
constructor(
|
|
786
|
-
this.
|
|
778
|
+
constructor(node) {
|
|
779
|
+
this.node = node;
|
|
787
780
|
this.type = ViewerActionTypes.RefreshPreview;
|
|
788
781
|
}
|
|
789
782
|
}
|
|
@@ -796,7 +789,7 @@ class PluginPreviewAction {
|
|
|
796
789
|
}
|
|
797
790
|
|
|
798
791
|
/*!
|
|
799
|
-
* Copyright © 2005-
|
|
792
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
800
793
|
*
|
|
801
794
|
* Alfresco Example Content Application
|
|
802
795
|
*
|
|
@@ -827,7 +820,7 @@ class SetInfoDrawerMetadataAspectAction {
|
|
|
827
820
|
}
|
|
828
821
|
|
|
829
822
|
/*!
|
|
830
|
-
* Copyright © 2005-
|
|
823
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
831
824
|
*
|
|
832
825
|
* Alfresco Example Content Application
|
|
833
826
|
*
|
|
@@ -873,7 +866,7 @@ class CreateFromTemplateSuccess {
|
|
|
873
866
|
}
|
|
874
867
|
|
|
875
868
|
/*!
|
|
876
|
-
* Copyright © 2005-
|
|
869
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
877
870
|
*
|
|
878
871
|
* Alfresco Example Content Application
|
|
879
872
|
*
|
|
@@ -903,7 +896,7 @@ class ContextMenu {
|
|
|
903
896
|
}
|
|
904
897
|
|
|
905
898
|
/*!
|
|
906
|
-
* Copyright © 2005-
|
|
899
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
907
900
|
*
|
|
908
901
|
* Alfresco Example Content Application
|
|
909
902
|
*
|
|
@@ -939,7 +932,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
939
932
|
}], ctorParameters: function () { return [{ type: i2.Actions }, { type: i2$1.MatDialog }]; } });
|
|
940
933
|
|
|
941
934
|
/*!
|
|
942
|
-
* Copyright © 2005-
|
|
935
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
943
936
|
*
|
|
944
937
|
* Alfresco Example Content Application
|
|
945
938
|
*
|
|
@@ -1044,7 +1037,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
1044
1037
|
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.Actions }, { type: i3.Router }, { type: i4.Location }]; } });
|
|
1045
1038
|
|
|
1046
1039
|
/*!
|
|
1047
|
-
* Copyright © 2005-
|
|
1040
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1048
1041
|
*
|
|
1049
1042
|
* Alfresco Example Content Application
|
|
1050
1043
|
*
|
|
@@ -1113,7 +1106,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
1113
1106
|
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.Actions }, { type: i3$1.MatSnackBar }, { type: i4$1.TranslationService }]; } });
|
|
1114
1107
|
|
|
1115
1108
|
/*!
|
|
1116
|
-
* Copyright © 2005-
|
|
1109
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1117
1110
|
*
|
|
1118
1111
|
* Alfresco Example Content Application
|
|
1119
1112
|
*
|
|
@@ -1143,7 +1136,7 @@ var SearchOptionIds;
|
|
|
1143
1136
|
})(SearchOptionIds || (SearchOptionIds = {}));
|
|
1144
1137
|
|
|
1145
1138
|
/*!
|
|
1146
|
-
* Copyright © 2005-
|
|
1139
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1147
1140
|
*
|
|
1148
1141
|
* Alfresco Example Content Application
|
|
1149
1142
|
*
|
|
@@ -1165,22 +1158,18 @@ var SearchOptionIds;
|
|
|
1165
1158
|
* You should have received a copy of the GNU Lesser General Public License
|
|
1166
1159
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1167
1160
|
*/
|
|
1161
|
+
const HXI_CONNECTOR = 'alfresco-hxinsight-connector-prediction-applier-extension';
|
|
1168
1162
|
const selectApp = (state) => state.app;
|
|
1169
|
-
const getAppName = createSelector(selectApp, (state) => state.appName);
|
|
1170
|
-
const getLogoPath = createSelector(selectApp, (state) => state.logoPath);
|
|
1171
|
-
const getCustomCssPath = createSelector(selectApp, (state) => state.customCssPath);
|
|
1172
|
-
const getCustomWebFontPath = createSelector(selectApp, (state) => state.webFontPath);
|
|
1173
1163
|
const getUserProfile = createSelector(selectApp, (state) => state.user);
|
|
1174
1164
|
const getCurrentFolder = createSelector(selectApp, (state) => state.navigation.currentFolder);
|
|
1175
1165
|
const getCurrentVersion = createSelector(selectApp, (state) => state.currentNodeVersion);
|
|
1176
1166
|
const getAppSelection = createSelector(selectApp, (state) => state.selection);
|
|
1177
|
-
const getSharedUrl = createSelector(selectApp, (state) => state.sharedUrl);
|
|
1178
1167
|
const getNavigationState = createSelector(selectApp, (state) => state.navigation);
|
|
1179
1168
|
const isInfoDrawerOpened = createSelector(selectApp, (state) => state.infoDrawerOpened);
|
|
1180
1169
|
const infoDrawerPreview = createSelector(selectApp, (state) => state.infoDrawerPreview);
|
|
1181
|
-
const showFacetFilter = createSelector(selectApp, (state) => state.showFacetFilter);
|
|
1182
1170
|
const getRepositoryStatus = createSelector(selectApp, (state) => state.repository);
|
|
1183
1171
|
const isQuickShareEnabled = createSelector(getRepositoryStatus, (info) => info.status.isQuickShareEnabled);
|
|
1172
|
+
const isHXIConnectorEnabled = createSelector(getRepositoryStatus, (info) => { var _a; return !!((_a = info === null || info === void 0 ? void 0 : info.modules) === null || _a === void 0 ? void 0 : _a.find((module) => module.id === HXI_CONNECTOR)); });
|
|
1184
1173
|
const isAdmin = createSelector(selectApp, (state) => state.user.isAdmin);
|
|
1185
1174
|
const getFileUploadingDialog = createSelector(selectApp, (state) => state.fileUploadingDialog);
|
|
1186
1175
|
const showLoaderSelector = createSelector(selectApp, (state) => state.showLoader);
|
|
@@ -1197,7 +1186,7 @@ const getRuleContext = createSelector(getAppSelection, getNavigationState, getUs
|
|
|
1197
1186
|
const infoDrawerMetadataAspect = createSelector(selectApp, (state) => state.infoDrawerMetadataAspect);
|
|
1198
1187
|
|
|
1199
1188
|
/*!
|
|
1200
|
-
* Copyright © 2005-
|
|
1189
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1201
1190
|
*
|
|
1202
1191
|
* Alfresco Example Content Application
|
|
1203
1192
|
*
|
|
@@ -1219,10 +1208,43 @@ const infoDrawerMetadataAspect = createSelector(selectApp, (state) => state.info
|
|
|
1219
1208
|
* You should have received a copy of the GNU Lesser General Public License
|
|
1220
1209
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1221
1210
|
*/
|
|
1211
|
+
/** @deprecated no longer used */
|
|
1222
1212
|
const STORE_INITIAL_APP_DATA = new InjectionToken('STORE_INITIAL_APP_DATA');
|
|
1213
|
+
const INITIAL_APP_STATE = {
|
|
1214
|
+
user: {
|
|
1215
|
+
isAdmin: null,
|
|
1216
|
+
id: null,
|
|
1217
|
+
firstName: '',
|
|
1218
|
+
lastName: ''
|
|
1219
|
+
},
|
|
1220
|
+
selection: {
|
|
1221
|
+
nodes: [],
|
|
1222
|
+
libraries: [],
|
|
1223
|
+
isEmpty: true,
|
|
1224
|
+
count: 0
|
|
1225
|
+
},
|
|
1226
|
+
navigation: {
|
|
1227
|
+
currentFolder: null
|
|
1228
|
+
},
|
|
1229
|
+
currentNodeVersion: null,
|
|
1230
|
+
infoDrawerOpened: false,
|
|
1231
|
+
infoDrawerPreview: false,
|
|
1232
|
+
infoDrawerMetadataAspect: '',
|
|
1233
|
+
fileUploadingDialog: true,
|
|
1234
|
+
showLoader: false,
|
|
1235
|
+
repository: {
|
|
1236
|
+
status: {
|
|
1237
|
+
isQuickShareEnabled: true
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
/** @deprecated no longer used */
|
|
1242
|
+
const INITIAL_STATE = {
|
|
1243
|
+
app: INITIAL_APP_STATE
|
|
1244
|
+
};
|
|
1223
1245
|
|
|
1224
1246
|
/*!
|
|
1225
|
-
* Copyright © 2005-
|
|
1247
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1226
1248
|
*
|
|
1227
1249
|
* Alfresco Example Content Application
|
|
1228
1250
|
*
|
|
@@ -1257,7 +1279,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
1257
1279
|
}] });
|
|
1258
1280
|
|
|
1259
1281
|
/*!
|
|
1260
|
-
* Copyright © 2005-
|
|
1282
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1261
1283
|
*
|
|
1262
1284
|
* Alfresco Example Content Application
|
|
1263
1285
|
*
|
|
@@ -1284,5 +1306,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
1284
1306
|
* Generated bundle index. Do not edit.
|
|
1285
1307
|
*/
|
|
1286
1308
|
|
|
1287
|
-
export { AddFavoriteAction, AppActionTypes, CloseModalDialogsAction, ClosePreviewAction, ContextMenu, ContextMenuActionTypes, CopyNodesAction, CreateFolderAction, CreateFromTemplate, CreateFromTemplateSuccess, CreateLibraryAction, DeleteLibraryAction, DeleteNodesAction, DialogEffects, DownloadNodesAction, EditFolderAction, EditOfflineAction, ExpandInfoDrawerAction, FileFromTemplate, FolderFromTemplate, FullscreenViewerAction, LeaveLibraryAction, LibraryActionTypes, LogoutAction, ManageAspectsAction, ManagePermissionsAction, ManageRulesAction, ManageVersionsAction, MoveNodesAction, NavigateLibraryAction, NavigateRouteAction, NavigateToFolder, NavigateToParentFolder, NavigateToPreviousPage, NavigateUrlAction, NodeActionTypes, PluginPreviewAction, PrintFileAction, PurgeDeletedNodesAction, RefreshPreviewAction, ReloadDocumentListAction, RemoveFavoriteAction, ResetSelectionAction, RestoreDeletedNodesAction, RouterActionTypes, RouterEffects, SET_INFO_DRAWER_METADATA_ASPECT, STORE_INITIAL_APP_DATA, SearchAction, SearchActionTypes, SearchByTermAction, SearchOptionIds, SetCurrentFolderAction, SetCurrentNodeVersionAction, SetCurrentUrlAction, SetFileUploadingDialogAction, SetInfoDrawerMetadataAspectAction, SetInfoDrawerPreviewStateAction, SetInfoDrawerStateAction,
|
|
1309
|
+
export { AddFavoriteAction, AppActionTypes, CloseModalDialogsAction, ClosePreviewAction, ContextMenu, ContextMenuActionTypes, CopyNodesAction, CreateFolderAction, CreateFromTemplate, CreateFromTemplateSuccess, CreateLibraryAction, DeleteLibraryAction, DeleteNodesAction, DialogEffects, DownloadNodesAction, EditFolderAction, EditOfflineAction, ExpandInfoDrawerAction, FileFromTemplate, FolderFromTemplate, FullscreenViewerAction, INITIAL_APP_STATE, INITIAL_STATE, LeaveLibraryAction, LibraryActionTypes, LogoutAction, ManageAspectsAction, ManagePermissionsAction, ManageRulesAction, ManageVersionsAction, MoveNodesAction, NavigateLibraryAction, NavigateRouteAction, NavigateToFolder, NavigateToParentFolder, NavigateToPreviousPage, NavigateUrlAction, NodeActionTypes, PluginPreviewAction, PrintFileAction, PurgeDeletedNodesAction, RefreshPreviewAction, ReloadDocumentListAction, RemoveFavoriteAction, ResetSelectionAction, RestoreDeletedNodesAction, RouterActionTypes, RouterEffects, SET_INFO_DRAWER_METADATA_ASPECT, STORE_INITIAL_APP_DATA, SearchAction, SearchActionTypes, SearchByTermAction, SearchOptionIds, SetCurrentFolderAction, SetCurrentNodeVersionAction, SetCurrentUrlAction, SetFileUploadingDialogAction, SetInfoDrawerMetadataAspectAction, SetInfoDrawerPreviewStateAction, SetInfoDrawerStateAction, SetRepositoryInfoAction, SetSelectedNodesAction, SetUserProfileAction, ShareNodeAction, SharedStoreModule, ShowInfoDrawerPreviewAction, ShowLoaderAction, SnackbarActionTypes, SnackbarEffects, SnackbarErrorAction, SnackbarInfoAction, SnackbarUserAction, SnackbarWarningAction, TemplateActionTypes, ToggleInfoDrawerAction, UndoDeleteNodesAction, UnlockWriteAction, UnshareNodesAction, UpdateLibraryAction, UploadActionTypes, UploadFileVersionAction, UploadFilesAction, UploadFolderAction, ViewFileAction, ViewNodeAction, ViewNodeVersionAction, ViewerActionTypes, getAppSelection, getCurrentFolder, getCurrentVersion, getFileUploadingDialog, getNavigationState, getRepositoryStatus, getRuleContext, getSideNavState, getUserProfile, infoDrawerMetadataAspect, infoDrawerPreview, isAdmin, isHXIConnectorEnabled, isInfoDrawerOpened, isQuickShareEnabled, selectApp, showLoaderSelector };
|
|
1288
1310
|
//# sourceMappingURL=alfresco-aca-shared-store.mjs.map
|