@alfresco/aca-content 8.1.0-34198623639 → 8.1.0-34207320192
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/assets/app.extensions.json +51 -30
- package/assets/i18n/ar.json +1 -0
- package/assets/i18n/cs.json +1 -0
- package/assets/i18n/da.json +1 -0
- package/assets/i18n/de.json +1 -0
- package/assets/i18n/en-AU.json +1 -0
- package/assets/i18n/en.json +4 -1
- package/assets/i18n/es.json +1 -0
- package/assets/i18n/fi.json +1 -0
- package/assets/i18n/fr.json +1 -0
- package/assets/i18n/it.json +1 -0
- package/assets/i18n/ja.json +1 -0
- package/assets/i18n/nl.json +1 -0
- package/assets/i18n/no.json +1 -0
- package/assets/i18n/pl.json +1 -0
- package/assets/i18n/pt-BR.json +1 -0
- package/assets/i18n/ru.json +1 -0
- package/assets/i18n/sv.json +1 -0
- package/assets/i18n/zh-CN.json +1 -0
- package/fesm2022/alfresco-aca-content-viewer.mjs +19 -9
- package/fesm2022/alfresco-aca-content-viewer.mjs.map +1 -1
- package/fesm2022/alfresco-aca-content.mjs +178 -64
- package/fesm2022/alfresco-aca-content.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -537,8 +537,7 @@
|
|
|
537
537
|
"visible": [
|
|
538
538
|
"app.selection.file",
|
|
539
539
|
"!app.navigation.isTrashcan",
|
|
540
|
-
"canToggleFileLock"
|
|
541
|
-
"!app.selection.isCheckedOut"
|
|
540
|
+
"canToggleFileLock"
|
|
542
541
|
]
|
|
543
542
|
}
|
|
544
543
|
},
|
|
@@ -570,7 +569,8 @@
|
|
|
570
569
|
"app.selection.notEmpty",
|
|
571
570
|
"!app.navigation.isTrashcan",
|
|
572
571
|
"!app.navigation.isLibraries",
|
|
573
|
-
"!isMultiSelection"
|
|
572
|
+
"!isMultiSelection",
|
|
573
|
+
"!app.selection.isWorkingCopy"
|
|
574
574
|
]
|
|
575
575
|
}
|
|
576
576
|
},
|
|
@@ -708,7 +708,8 @@
|
|
|
708
708
|
"app.selection.notEmpty",
|
|
709
709
|
"!app.navigation.isTrashcan",
|
|
710
710
|
"!app.navigation.isLibraries",
|
|
711
|
-
"!app.selection.isNodeLink"
|
|
711
|
+
"!app.selection.isNodeLink",
|
|
712
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
712
713
|
]
|
|
713
714
|
}
|
|
714
715
|
},
|
|
@@ -725,14 +726,20 @@
|
|
|
725
726
|
"!app.navigation.isTrashcan",
|
|
726
727
|
"!app.navigation.isLibraries",
|
|
727
728
|
"app.selection.notEmpty",
|
|
728
|
-
"app.selection.canDelete"
|
|
729
|
+
"app.selection.canDelete",
|
|
730
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
729
731
|
]
|
|
730
732
|
}
|
|
731
733
|
},
|
|
734
|
+
{
|
|
735
|
+
"id": "app.create.separator.3",
|
|
736
|
+
"type": "separator",
|
|
737
|
+
"order": 900
|
|
738
|
+
},
|
|
732
739
|
{
|
|
733
740
|
"id": "app.context.menu.node-info",
|
|
734
741
|
"title": "APP.ACTIONS.NODE_INFO",
|
|
735
|
-
"order":
|
|
742
|
+
"order": 950,
|
|
736
743
|
"icon": "info",
|
|
737
744
|
"actions": {
|
|
738
745
|
"click": "NODE_INFORMATION"
|
|
@@ -747,11 +754,6 @@
|
|
|
747
754
|
]
|
|
748
755
|
}
|
|
749
756
|
},
|
|
750
|
-
{
|
|
751
|
-
"id": "app.create.separator.3",
|
|
752
|
-
"type": "separator",
|
|
753
|
-
"order": 900
|
|
754
|
-
},
|
|
755
757
|
{
|
|
756
758
|
"id": "app.toolbar.versions",
|
|
757
759
|
"order": 1100,
|
|
@@ -766,7 +768,8 @@
|
|
|
766
768
|
"app.selection.file.isVersionable",
|
|
767
769
|
"!app.navigation.isTrashcan",
|
|
768
770
|
"!app.selection.file.isLocked",
|
|
769
|
-
"!app.selection.isNodeLink"
|
|
771
|
+
"!app.selection.isNodeLink",
|
|
772
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
770
773
|
]
|
|
771
774
|
}
|
|
772
775
|
},
|
|
@@ -853,7 +856,8 @@
|
|
|
853
856
|
"app.selection.notEmpty",
|
|
854
857
|
"!app.navigation.isTrashcan",
|
|
855
858
|
"!app.navigation.isLibraries",
|
|
856
|
-
"!isMultiSelection"
|
|
859
|
+
"!isMultiSelection",
|
|
860
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
857
861
|
]
|
|
858
862
|
}
|
|
859
863
|
},
|
|
@@ -900,7 +904,8 @@
|
|
|
900
904
|
"rules": {
|
|
901
905
|
"visible": [
|
|
902
906
|
"app.selection.file",
|
|
903
|
-
"!app.navigation.isTrashcan"
|
|
907
|
+
"!app.navigation.isTrashcan",
|
|
908
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
904
909
|
]
|
|
905
910
|
}
|
|
906
911
|
},
|
|
@@ -918,8 +923,7 @@
|
|
|
918
923
|
"visible": [
|
|
919
924
|
"app.selection.file",
|
|
920
925
|
"!app.navigation.isTrashcan",
|
|
921
|
-
"canToggleFileLock"
|
|
922
|
-
"!app.selection.isCheckedOut"
|
|
926
|
+
"canToggleFileLock"
|
|
923
927
|
]
|
|
924
928
|
}
|
|
925
929
|
},
|
|
@@ -1075,7 +1079,8 @@
|
|
|
1075
1079
|
"app.selection.notEmpty",
|
|
1076
1080
|
"!app.navigation.isTrashcan",
|
|
1077
1081
|
"!app.navigation.isLibraries",
|
|
1078
|
-
"!app.selection.isNodeLink"
|
|
1082
|
+
"!app.selection.isNodeLink",
|
|
1083
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
1079
1084
|
]
|
|
1080
1085
|
}
|
|
1081
1086
|
},
|
|
@@ -1092,14 +1097,20 @@
|
|
|
1092
1097
|
"!app.navigation.isTrashcan",
|
|
1093
1098
|
"!app.navigation.isLibraries",
|
|
1094
1099
|
"app.selection.notEmpty",
|
|
1095
|
-
"app.selection.canDelete"
|
|
1100
|
+
"app.selection.canDelete",
|
|
1101
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
1096
1102
|
]
|
|
1097
1103
|
}
|
|
1098
1104
|
},
|
|
1105
|
+
{
|
|
1106
|
+
"id": "app.create.separator.3",
|
|
1107
|
+
"type": "separator",
|
|
1108
|
+
"order": 1300
|
|
1109
|
+
},
|
|
1099
1110
|
{
|
|
1100
1111
|
"id": "app.context.menu.node-info",
|
|
1101
1112
|
"title": "APP.ACTIONS.NODE_INFO",
|
|
1102
|
-
"order":
|
|
1113
|
+
"order": 1350,
|
|
1103
1114
|
"icon": "info",
|
|
1104
1115
|
"actions": {
|
|
1105
1116
|
"click": "NODE_INFORMATION"
|
|
@@ -1114,11 +1125,6 @@
|
|
|
1114
1125
|
]
|
|
1115
1126
|
}
|
|
1116
1127
|
},
|
|
1117
|
-
{
|
|
1118
|
-
"id": "app.create.separator.3",
|
|
1119
|
-
"type": "separator",
|
|
1120
|
-
"order": 1300
|
|
1121
|
-
},
|
|
1122
1128
|
{
|
|
1123
1129
|
"id": "app.context.menu.versions",
|
|
1124
1130
|
"title": "APP.ACTIONS.VERSIONS",
|
|
@@ -1133,7 +1139,8 @@
|
|
|
1133
1139
|
"app.selection.file.isVersionable",
|
|
1134
1140
|
"!app.navigation.isTrashcan",
|
|
1135
1141
|
"!app.selection.file.isLocked",
|
|
1136
|
-
"!app.selection.isNodeLink"
|
|
1142
|
+
"!app.selection.isNodeLink",
|
|
1143
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
1137
1144
|
]
|
|
1138
1145
|
}
|
|
1139
1146
|
},
|
|
@@ -1365,8 +1372,7 @@
|
|
|
1365
1372
|
"visible": [
|
|
1366
1373
|
"app.selection.file",
|
|
1367
1374
|
"!app.navigation.isTrashcan",
|
|
1368
|
-
"canToggleFileLock"
|
|
1369
|
-
"!app.selection.isCheckedOut"
|
|
1375
|
+
"canToggleFileLock"
|
|
1370
1376
|
]
|
|
1371
1377
|
}
|
|
1372
1378
|
},
|
|
@@ -1487,7 +1493,8 @@
|
|
|
1487
1493
|
"!app.navigation.isTrashcan",
|
|
1488
1494
|
"!app.navigation.isLibraries",
|
|
1489
1495
|
"app.selection.notEmpty",
|
|
1490
|
-
"app.selection.canDelete"
|
|
1496
|
+
"app.selection.canDelete",
|
|
1497
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
1491
1498
|
]
|
|
1492
1499
|
}
|
|
1493
1500
|
},
|
|
@@ -1510,7 +1517,8 @@
|
|
|
1510
1517
|
"app.selection.file.isVersionable",
|
|
1511
1518
|
"!app.navigation.isTrashcan",
|
|
1512
1519
|
"!app.selection.file.isLocked",
|
|
1513
|
-
"!app.selection.isNodeLink"
|
|
1520
|
+
"!app.selection.isNodeLink",
|
|
1521
|
+
"!app.selection.isLockedOrWorkingCopy"
|
|
1514
1522
|
]
|
|
1515
1523
|
}
|
|
1516
1524
|
},
|
|
@@ -3193,6 +3201,19 @@
|
|
|
3193
3201
|
}
|
|
3194
3202
|
}
|
|
3195
3203
|
]
|
|
3196
|
-
}
|
|
3204
|
+
},
|
|
3205
|
+
"badges": [
|
|
3206
|
+
{
|
|
3207
|
+
"id": "app.badge.lock",
|
|
3208
|
+
"icon": "lock",
|
|
3209
|
+
"tooltip": "",
|
|
3210
|
+
"component": "app.badge.lock",
|
|
3211
|
+
"rules": {
|
|
3212
|
+
"visible": [
|
|
3213
|
+
"app.selection.isLockedOrWorkingCopy"
|
|
3214
|
+
]
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
]
|
|
3197
3218
|
}
|
|
3198
3219
|
}
|
package/assets/i18n/ar.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "السريان",
|
|
226
226
|
"TITLE": "نتائج البحث",
|
|
227
227
|
"FILTER_SET": "مجموعة الفلاتر:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "فلاتر متقدمة:",
|
|
229
230
|
"RESET": "إعادة تعيين",
|
|
230
231
|
"RESET_ACTION": "إعادة تعيين عوامل تصفية البحث",
|
package/assets/i18n/cs.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Účinnost",
|
|
226
226
|
"TITLE": "Výsledky hledání",
|
|
227
227
|
"FILTER_SET": "Sada filtrů:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Pokročilé filtry:",
|
|
229
230
|
"RESET": "Resetovat",
|
|
230
231
|
"RESET_ACTION": "Resetovat filtry vyhledávání",
|
package/assets/i18n/da.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Gældende periode",
|
|
226
226
|
"TITLE": "Søgeresultater",
|
|
227
227
|
"FILTER_SET": "Filter indstillet:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Avancerede filtre:",
|
|
229
230
|
"RESET": "Nulstil",
|
|
230
231
|
"RESET_ACTION": "Nulstil søgefiltre",
|
package/assets/i18n/de.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Effektivität",
|
|
226
226
|
"TITLE": "Ergebnisse durchsuchen",
|
|
227
227
|
"FILTER_SET": "Filter-Satz:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Erweiterte Filter:",
|
|
229
230
|
"RESET": "Zurücksetzen",
|
|
230
231
|
"RESET_ACTION": "Suchfilter zurücksetzen",
|
package/assets/i18n/en-AU.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Effectivity",
|
|
226
226
|
"TITLE": "Search Results",
|
|
227
227
|
"FILTER_SET": "Filter Set:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Advanced Filters:",
|
|
229
230
|
"RESET": "Reset",
|
|
230
231
|
"RESET_ACTION": "Reset search filters",
|
package/assets/i18n/en.json
CHANGED
|
@@ -504,7 +504,9 @@
|
|
|
504
504
|
"COLLAPSE_SECTION": "Collapse section",
|
|
505
505
|
"EDIT": "Edit",
|
|
506
506
|
"CANCEL": "Cancel",
|
|
507
|
-
"SAVE": "Save"
|
|
507
|
+
"SAVE": "Save",
|
|
508
|
+
"LOCK_BADGE": "This document is locked by {{ owner }} for offline editing.",
|
|
509
|
+
"WORKING_COPY_BADGE": "Original document is locked by {{ owner }} for offline editing."
|
|
508
510
|
},
|
|
509
511
|
"NODE_INFO": {
|
|
510
512
|
"ICON": "Node Icon",
|
|
@@ -746,6 +748,7 @@
|
|
|
746
748
|
}
|
|
747
749
|
},
|
|
748
750
|
"CHECKOUT": {
|
|
751
|
+
"CHECKED_OUT_BY": "Original locked by: ",
|
|
749
752
|
"ERRORS": {
|
|
750
753
|
"CHECKOUT": {
|
|
751
754
|
"400": "This node cannot be checked out. It must be a content (cm:content) node.",
|
package/assets/i18n/es.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Efectividad",
|
|
226
226
|
"TITLE": "Resultados de la búsqueda",
|
|
227
227
|
"FILTER_SET": "Conjunto de filtros:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Filtros avanzados:",
|
|
229
230
|
"RESET": "Reiniciar",
|
|
230
231
|
"RESET_ACTION": "Restablecer los filtros de la búsqueda",
|
package/assets/i18n/fi.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Voimassaolo",
|
|
226
226
|
"TITLE": "Hakutulosta",
|
|
227
227
|
"FILTER_SET": "Asetettu suodatin:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Edistyneet suodattimet:",
|
|
229
230
|
"RESET": "Nollaa",
|
|
230
231
|
"RESET_ACTION": "Nollaa hakusuodattimet",
|
package/assets/i18n/fr.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Validité",
|
|
226
226
|
"TITLE": "Résultats de la recherche",
|
|
227
227
|
"FILTER_SET": "Ensemble de filtres :",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Filtres avancés :",
|
|
229
230
|
"RESET": "Réinitialiser",
|
|
230
231
|
"RESET_ACTION": "Réinitialiser les filtres de recherche",
|
package/assets/i18n/it.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Validità",
|
|
226
226
|
"TITLE": "Risultati della ricerca",
|
|
227
227
|
"FILTER_SET": "Set di filtri:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Filtri avanzati:",
|
|
229
230
|
"RESET": "Reimposta",
|
|
230
231
|
"RESET_ACTION": "Reimposta filtri di ricerca",
|
package/assets/i18n/ja.json
CHANGED
package/assets/i18n/nl.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Effectiviteit",
|
|
226
226
|
"TITLE": "Zoekresultaten",
|
|
227
227
|
"FILTER_SET": "Ingesteld filter:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Geavanceerde filters:",
|
|
229
230
|
"RESET": "Opnieuw instellen",
|
|
230
231
|
"RESET_ACTION": "Zoekfilters opnieuw instellen",
|
package/assets/i18n/no.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Effektivitet",
|
|
226
226
|
"TITLE": "Søk i resultater",
|
|
227
227
|
"FILTER_SET": "Filtersett:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Avanserte filtre:",
|
|
229
230
|
"RESET": "Tilbakestill",
|
|
230
231
|
"RESET_ACTION": "Tilbakestill søkefiltre",
|
package/assets/i18n/pl.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Obowiązywanie",
|
|
226
226
|
"TITLE": "Wyniki wyszukiwania",
|
|
227
227
|
"FILTER_SET": "Zestaw filtrów:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Zaawansowane filtry:",
|
|
229
230
|
"RESET": "Resetuj",
|
|
230
231
|
"RESET_ACTION": "Resetuj filtry wyszukiwania",
|
package/assets/i18n/pt-BR.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Efetividade",
|
|
226
226
|
"TITLE": "Resultados da pesquisa",
|
|
227
227
|
"FILTER_SET": "Conjunto de filtros:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Filtros avançados:",
|
|
229
230
|
"RESET": "Redefinir",
|
|
230
231
|
"RESET_ACTION": "Redefinir filtros de pesquisa",
|
package/assets/i18n/ru.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Эффективность",
|
|
226
226
|
"TITLE": "Результаты поиска",
|
|
227
227
|
"FILTER_SET": "Используется фильтр:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Дополнительные фильтры:",
|
|
229
230
|
"RESET": "Сброс",
|
|
230
231
|
"RESET_ACTION": "Сбросить фильтры поиска",
|
package/assets/i18n/sv.json
CHANGED
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"EFFECTIVITY": "Giltighet",
|
|
226
226
|
"TITLE": "Sökresultat",
|
|
227
227
|
"FILTER_SET": "Filteruppsättning:",
|
|
228
|
+
"LOADING": "Loading search results, please wait.",
|
|
228
229
|
"ADVANCED_FILTERS": "Avancerade filter:",
|
|
229
230
|
"RESET": "Återställ",
|
|
230
231
|
"RESET_ACTION": "Återställ sökfilter",
|
package/assets/i18n/zh-CN.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { ContentApiService, AppHookService, AppExtensionService, AppSettingsService, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarComponent, PageComponent } from '@alfresco/aca-shared';
|
|
3
|
-
import { isInfoDrawerOpened, getAppSelection, SetCurrentNodeVersionAction, ViewerActionTypes,
|
|
3
|
+
import { isInfoDrawerOpened, getAppSelection, SetCurrentNodeVersionAction, ViewerActionTypes, ViewNodeAction, SetSelectedNodesAction } from '@alfresco/aca-shared/store';
|
|
4
4
|
import { LazyApi, VersionsApi } from '@alfresco/js-api';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { inject, Injectable, DestroyRef, HostListener, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
@@ -114,13 +114,18 @@ class ViewerService {
|
|
|
114
114
|
return [];
|
|
115
115
|
}
|
|
116
116
|
const orderBy = isClient ? null : ['isFolder desc', `${sortKey} ${sortDirection}`];
|
|
117
|
-
|
|
117
|
+
const result = await this.contentApi
|
|
118
118
|
.getNodeChildren(folderId, {
|
|
119
119
|
orderBy: orderBy,
|
|
120
|
-
|
|
120
|
+
include: ['aspectNames'],
|
|
121
|
+
fields: [...this.getFields(sortKey, previousSortKey), 'aspectNames'],
|
|
121
122
|
where: '(isFile=true)'
|
|
122
123
|
})
|
|
123
124
|
.toPromise();
|
|
125
|
+
if (result) {
|
|
126
|
+
result.list.entries = result.list.entries.filter((e) => !e.entry.aspectNames?.includes('cm:checkedOut'));
|
|
127
|
+
}
|
|
128
|
+
nodes = result;
|
|
124
129
|
}
|
|
125
130
|
if (source === 'favorites') {
|
|
126
131
|
nodes = await this.contentApi
|
|
@@ -320,10 +325,15 @@ class AcaViewerComponent {
|
|
|
320
325
|
});
|
|
321
326
|
this.appHookService.nodesDeleted.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.navigateToFileLocation());
|
|
322
327
|
this.uploadService.fileUploadDeleted.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.navigateToFileLocation());
|
|
323
|
-
this.uploadService.fileUploadComplete.pipe(debounceTime(300), takeUntilDestroyed(this.destroyRef)).subscribe((
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
328
|
+
this.uploadService.fileUploadComplete.pipe(debounceTime(300), takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
329
|
+
const uploadedEntry = event.data.entry;
|
|
330
|
+
this.nodesApiService.nodeUpdated.next(uploadedEntry);
|
|
331
|
+
if (this.node?.aspectNames?.includes('cm:workingcopy') && event.file?.id === this.nodeId && uploadedEntry.id !== this.nodeId) {
|
|
332
|
+
const location = this.route.snapshot.queryParams['location'] || this.router.url;
|
|
333
|
+
this.store.dispatch(new ViewNodeAction(uploadedEntry.id, { location }));
|
|
334
|
+
}
|
|
335
|
+
else if (uploadedEntry.id === this.nodeId) {
|
|
336
|
+
void this.displayNode(uploadedEntry.id);
|
|
327
337
|
}
|
|
328
338
|
});
|
|
329
339
|
this.previewLocation = this.router.url.substring(0, this.router.url.indexOf('/', 1)).replace(/\//g, '');
|
|
@@ -405,7 +415,7 @@ class AcaViewerComponent {
|
|
|
405
415
|
return Array.from(list).some((className) => this.containersSkipNavigation.includes(className));
|
|
406
416
|
}
|
|
407
417
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: AcaViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
408
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.27", type: AcaViewerComponent, isStandalone: true, selector: "aca-viewer", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-viewer" }, ngImport: i0, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\" />\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate", "readOnly", "showToolbarDividers"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange"] }, { kind: "component", type: ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "component", type: ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
418
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.27", type: AcaViewerComponent, isStandalone: true, selector: "aca-viewer", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-viewer" }, ngImport: i0, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\" />\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate", "readOnly", "showToolbarDividers"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange"] }, { kind: "component", type: ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "component", type: ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
409
419
|
}
|
|
410
420
|
__decorate([
|
|
411
421
|
LazyApi((self) => new VersionsApi(self.apiService.getInstance())),
|
|
@@ -422,7 +432,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImpo
|
|
|
422
432
|
ViewerToolbarActionsComponent,
|
|
423
433
|
ViewerOpenWithComponent,
|
|
424
434
|
ViewerSidebarComponent
|
|
425
|
-
], selector: 'aca-viewer', encapsulation: ViewEncapsulation.None, host: { class: 'app-viewer' }, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\" />\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"] }]
|
|
435
|
+
], selector: 'aca-viewer', encapsulation: ViewEncapsulation.None, host: { class: 'app-viewer' }, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\" />\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"] }]
|
|
426
436
|
}], propDecorators: { versionsApi: [], handleKeyboardEvent: [{
|
|
427
437
|
type: HostListener,
|
|
428
438
|
args: ['document:keydown', ['$event']]
|