@alfresco/adf-extensions 9.2.0-30294010949 → 9.2.0-30345919006

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.
@@ -6,7 +6,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
6
 
7
7
  /*!
8
8
  * @license
9
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
9
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
10
10
  *
11
11
  * Licensed under the Apache License, Version 2.0 (the "License");
12
12
  * you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ const ContentActionType = {
30
30
 
31
31
  /*!
32
32
  * @license
33
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
33
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
34
34
  *
35
35
  * Licensed under the Apache License, Version 2.0 (the "License");
36
36
  * you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ const ContentActionType = {
47
47
 
48
48
  /*!
49
49
  * @license
50
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
50
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
51
51
  *
52
52
  * Licensed under the Apache License, Version 2.0 (the "License");
53
53
  * you may not use this file except in compliance with the License.
@@ -64,7 +64,7 @@ const ContentActionType = {
64
64
 
65
65
  /*!
66
66
  * @license
67
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
67
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
68
68
  *
69
69
  * Licensed under the Apache License, Version 2.0 (the "License");
70
70
  * you may not use this file except in compliance with the License.
@@ -197,7 +197,7 @@ const mergeArrays = (left, right) => {
197
197
 
198
198
  /*!
199
199
  * @license
200
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
200
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
201
201
  *
202
202
  * Licensed under the Apache License, Version 2.0 (the "License");
203
203
  * you may not use this file except in compliance with the License.
@@ -214,7 +214,7 @@ const mergeArrays = (left, right) => {
214
214
 
215
215
  /*!
216
216
  * @license
217
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
217
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
218
218
  *
219
219
  * Licensed under the Apache License, Version 2.0 (the "License");
220
220
  * you may not use this file except in compliance with the License.
@@ -231,7 +231,7 @@ const mergeArrays = (left, right) => {
231
231
 
232
232
  /*!
233
233
  * @license
234
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
234
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
235
235
  *
236
236
  * Licensed under the Apache License, Version 2.0 (the "License");
237
237
  * you may not use this file except in compliance with the License.
@@ -248,7 +248,7 @@ const mergeArrays = (left, right) => {
248
248
 
249
249
  /*!
250
250
  * @license
251
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
251
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
252
252
  *
253
253
  * Licensed under the Apache License, Version 2.0 (the "License");
254
254
  * you may not use this file except in compliance with the License.
@@ -265,7 +265,7 @@ const mergeArrays = (left, right) => {
265
265
 
266
266
  /*!
267
267
  * @license
268
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
268
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
269
269
  *
270
270
  * Licensed under the Apache License, Version 2.0 (the "License");
271
271
  * you may not use this file except in compliance with the License.
@@ -282,7 +282,7 @@ const mergeArrays = (left, right) => {
282
282
 
283
283
  /*!
284
284
  * @license
285
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
285
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
286
286
  *
287
287
  * Licensed under the Apache License, Version 2.0 (the "License");
288
288
  * you may not use this file except in compliance with the License.
@@ -301,7 +301,7 @@ class RuleRef {
301
301
 
302
302
  /*!
303
303
  * @license
304
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
304
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
305
305
  *
306
306
  * Licensed under the Apache License, Version 2.0 (the "License");
307
307
  * you may not use this file except in compliance with the License.
@@ -318,7 +318,7 @@ class RuleRef {
318
318
 
319
319
  /*!
320
320
  * @license
321
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
321
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
322
322
  *
323
323
  * Licensed under the Apache License, Version 2.0 (the "License");
324
324
  * you may not use this file except in compliance with the License.
@@ -335,7 +335,7 @@ class RuleRef {
335
335
 
336
336
  /*!
337
337
  * @license
338
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
338
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
339
339
  *
340
340
  * Licensed under the Apache License, Version 2.0 (the "License");
341
341
  * you may not use this file except in compliance with the License.
@@ -483,7 +483,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
483
483
 
484
484
  /*!
485
485
  * @license
486
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
486
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
487
487
  *
488
488
  * Licensed under the Apache License, Version 2.0 (the "License");
489
489
  * you may not use this file except in compliance with the License.
@@ -542,7 +542,7 @@ const some = (context, ...args) => {
542
542
 
543
543
  /*!
544
544
  * @license
545
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
545
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
546
546
  *
547
547
  * Licensed under the Apache License, Version 2.0 (the "License");
548
548
  * you may not use this file except in compliance with the License.
@@ -581,7 +581,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
581
581
 
582
582
  /*!
583
583
  * @license
584
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
584
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
585
585
  *
586
586
  * Licensed under the Apache License, Version 2.0 (the "License");
587
587
  * you may not use this file except in compliance with the License.
@@ -669,7 +669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
669
669
 
670
670
  /*!
671
671
  * @license
672
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
672
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
673
673
  *
674
674
  * Licensed under the Apache License, Version 2.0 (the "License");
675
675
  * you may not use this file except in compliance with the License.
@@ -903,7 +903,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
903
903
 
904
904
  /*!
905
905
  * @license
906
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
906
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
907
907
  *
908
908
  * Licensed under the Apache License, Version 2.0 (the "License");
909
909
  * you may not use this file except in compliance with the License.
@@ -976,7 +976,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
976
976
 
977
977
  /*!
978
978
  * @license
979
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
979
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
980
980
  *
981
981
  * Licensed under the Apache License, Version 2.0 (the "License");
982
982
  * you may not use this file except in compliance with the License.
@@ -993,7 +993,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
993
993
 
994
994
  /*!
995
995
  * @license
996
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
996
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
997
997
  *
998
998
  * Licensed under the Apache License, Version 2.0 (the "License");
999
999
  * you may not use this file except in compliance with the License.
@@ -1010,7 +1010,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1010
1010
 
1011
1011
  /*!
1012
1012
  * @license
1013
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1013
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1014
1014
  *
1015
1015
  * Licensed under the Apache License, Version 2.0 (the "License");
1016
1016
  * you may not use this file except in compliance with the License.
@@ -1027,7 +1027,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1027
1027
 
1028
1028
  /*!
1029
1029
  * @license
1030
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1030
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1031
1031
  *
1032
1032
  * Licensed under the Apache License, Version 2.0 (the "License");
1033
1033
  * you may not use this file except in compliance with the License.
@@ -1044,7 +1044,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1044
1044
 
1045
1045
  /*!
1046
1046
  * @license
1047
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1047
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1048
1048
  *
1049
1049
  * Licensed under the Apache License, Version 2.0 (the "License");
1050
1050
  * you may not use this file except in compliance with the License.
@@ -1061,7 +1061,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1061
1061
 
1062
1062
  /*!
1063
1063
  * @license
1064
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1064
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1065
1065
  *
1066
1066
  * Licensed under the Apache License, Version 2.0 (the "License");
1067
1067
  * you may not use this file except in compliance with the License.
@@ -1141,7 +1141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1141
1141
 
1142
1142
  /*!
1143
1143
  * @license
1144
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1144
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1145
1145
  *
1146
1146
  * Licensed under the Apache License, Version 2.0 (the "License");
1147
1147
  * you may not use this file except in compliance with the License.
@@ -1200,7 +1200,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1200
1200
 
1201
1201
  /*!
1202
1202
  * @license
1203
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1203
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1204
1204
  *
1205
1205
  * Licensed under the Apache License, Version 2.0 (the "License");
1206
1206
  * you may not use this file except in compliance with the License.
@@ -1284,7 +1284,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1284
1284
 
1285
1285
  /*!
1286
1286
  * @license
1287
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1287
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1288
1288
  *
1289
1289
  * Licensed under the Apache License, Version 2.0 (the "License");
1290
1290
  * you may not use this file except in compliance with the License.
@@ -1346,7 +1346,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1346
1346
 
1347
1347
  /*!
1348
1348
  * @license
1349
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1349
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1350
1350
  *
1351
1351
  * Licensed under the Apache License, Version 2.0 (the "License");
1352
1352
  * you may not use this file except in compliance with the License.
@@ -1363,7 +1363,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1363
1363
 
1364
1364
  /*!
1365
1365
  * @license
1366
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1366
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1367
1367
  *
1368
1368
  * Licensed under the Apache License, Version 2.0 (the "License");
1369
1369
  * you may not use this file except in compliance with the License.
@@ -1409,7 +1409,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
1409
1409
 
1410
1410
  /*!
1411
1411
  * @license
1412
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1412
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1413
1413
  *
1414
1414
  * Licensed under the Apache License, Version 2.0 (the "License");
1415
1415
  * you may not use this file except in compliance with the License.
@@ -1484,7 +1484,7 @@ function provideExtensions(params) {
1484
1484
 
1485
1485
  /*!
1486
1486
  * @license
1487
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
1487
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
1488
1488
  *
1489
1489
  * Licensed under the Apache License, Version 2.0 (the "License");
1490
1490
  * you may not use this file except in compliance with the License.
@@ -1 +1 @@
1
- {"version":3,"file":"adf-extensions.mjs","sources":["../../../../lib/extensions/src/lib/config/action.extensions.ts","../../../../lib/extensions/src/lib/config/document-list.extensions.ts","../../../../lib/extensions/src/lib/config/extension-element.ts","../../../../lib/extensions/src/lib/config/extension-utils.ts","../../../../lib/extensions/src/lib/config/extension.config.ts","../../../../lib/extensions/src/lib/config/icon.extensions.ts","../../../../lib/extensions/src/lib/config/navbar.extensions.ts","../../../../lib/extensions/src/lib/config/permission.extensions.ts","../../../../lib/extensions/src/lib/config/routing.extensions.ts","../../../../lib/extensions/src/lib/config/rule.extensions.ts","../../../../lib/extensions/src/lib/config/sidebar.extensions.ts","../../../../lib/extensions/src/lib/config/viewer.extensions.ts","../../../../lib/extensions/src/lib/services/extension-loader.service.ts","../../../../lib/extensions/src/lib/evaluators/core.evaluators.ts","../../../../lib/extensions/src/lib/services/component-register.service.ts","../../../../lib/extensions/src/lib/services/rule.service.ts","../../../../lib/extensions/src/lib/services/extension.service.ts","../../../../lib/extensions/src/lib/services/app-extension.service.ts","../../../../lib/extensions/src/lib/store/states/navigation.state.ts","../../../../lib/extensions/src/lib/store/states/profile.state.ts","../../../../lib/extensions/src/lib/store/states/selection.state.ts","../../../../lib/extensions/src/lib/store/states/repository.state.ts","../../../../lib/extensions/src/lib/components/viewer/viewer-extension.interface.ts","../../../../lib/extensions/src/lib/components/viewer/preview-extension.component.ts","../../../../lib/extensions/src/lib/components/dynamic-column/dynamic-column.component.ts","../../../../lib/extensions/src/lib/components/dynamic-component/dynamic.component.ts","../../../../lib/extensions/src/lib/components/dynamic-tab/dynamic-tab.component.ts","../../../../lib/extensions/src/lib/components/public-api.ts","../../../../lib/extensions/src/lib/extensions.module.ts","../../../../lib/extensions/src/lib/providers.ts","../../../../lib/extensions/src/public-api.ts","../../../../lib/extensions/src/adf-extensions.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport const ContentActionType = {\n default: 'default',\n button: 'button',\n separator: 'separator',\n menu: 'menu',\n custom: 'custom'\n} as const;\n\nexport type ContentActionType = (typeof ContentActionType)[keyof typeof ContentActionType];\n\nexport interface ContentActionRef extends ExtensionElement {\n type: ContentActionType;\n\n title?: string;\n tooltip?: string;\n description?: string;\n icon?: string;\n children?: Array<ContentActionRef>;\n component?: string;\n data?: any;\n color?: string;\n actions?: {\n [key: string]: string;\n click?: string;\n };\n rules?: {\n [key: string]: string;\n enabled?: string;\n visible?: string;\n };\n}\n\nexport interface ActionRef {\n id: string;\n type: string;\n payload?: any;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable id-blacklist */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface DataColumnTypes {\n text: string;\n image: string;\n date: string;\n json: string;\n icon: string;\n fileSize: string;\n location: string;\n boolean: string;\n amount: string;\n number: string;\n}\n\nexport type DataColumnType = keyof DataColumnTypes;\n\nexport interface DocumentListPresetRef extends ExtensionElement {\n key: string;\n type: DataColumnType;\n title?: string;\n format?: string;\n class?: string;\n sortable: boolean;\n template: string;\n desktopOnly: boolean;\n sortingKey: string;\n isHidden?: boolean;\n rules?: {\n [key: string]: string;\n visible?: string;\n };\n draggable?: boolean;\n resizable?: boolean;\n maxTextLength?: number;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface ExtensionElement {\n id: string;\n\n order?: number;\n disabled?: boolean;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ContentActionRef, ContentActionType } from './action.extensions';\n\nexport const getValue = (target: any, key: string): any => {\n if (!target) {\n return undefined;\n }\n\n const keys = key.split('.');\n key = '';\n\n do {\n key += keys.shift();\n const value = target[key];\n if (\n value !== undefined &&\n (typeof value === 'object' || !keys.length)\n ) {\n target = value;\n key = '';\n } else if (!keys.length) {\n target = undefined;\n } else {\n key += '.';\n }\n } while (keys.length);\n\n return target;\n};\n\nexport const filterEnabled = (entry: { disabled?: boolean }): boolean => !entry.disabled;\n\nexport const sortByOrder = (\n a: { order?: number | undefined },\n b: { order?: number | undefined }\n) => {\n const left = a.order === undefined ? Number.MAX_SAFE_INTEGER : a.order;\n const right = b.order === undefined ? Number.MAX_SAFE_INTEGER : b.order;\n return left - right;\n};\n\nexport const reduceSeparators = (\n acc: ContentActionRef[],\n el: ContentActionRef,\n i: number,\n arr: ContentActionRef[]\n): ContentActionRef[] => {\n // remove leading separator\n if (i === 0) {\n if (arr[i].type === ContentActionType.separator) {\n return acc;\n }\n }\n // remove duplicate separators\n if (i > 0) {\n const prev = arr[i - 1];\n if (\n prev.type === ContentActionType.separator &&\n el.type === ContentActionType.separator\n ) {\n return acc;\n }\n\n // remove trailing separator\n if (i === arr.length - 1) {\n if (el.type === ContentActionType.separator) {\n return acc;\n }\n }\n }\n\n return acc.concat(el);\n};\n\nexport const reduceEmptyMenus = (\n acc: ContentActionRef[],\n el: ContentActionRef\n): ContentActionRef[] => {\n if (el.type === ContentActionType.menu) {\n if ((el.children || []).length === 0) {\n return acc;\n }\n }\n return acc.concat(el);\n};\n\nexport const mergeObjects = (...objects: any[]): any => {\n const result = {};\n\n objects.forEach((source) => {\n Object.keys(source).forEach((prop) => {\n let replace = false;\n\n if (prop.endsWith('.$replace')) {\n replace = true;\n prop = prop.replace('.$replace', '');\n }\n\n if (!prop.startsWith('$')) {\n if (replace) {\n result[prop] = source[`${prop}.$replace`];\n } else if (prop in result && Array.isArray(result[prop])) {\n if (Array.isArray(source[prop])) {\n result[prop] = mergeArrays(result[prop], source[prop]);\n } else {\n result[prop] = [...result[prop], source[prop]];\n }\n } else if (prop in result && typeof result[prop] === 'object') {\n result[prop] = mergeObjects(result[prop], source[prop]);\n } else {\n result[prop] = source[prop];\n }\n }\n });\n });\n\n return result;\n};\n\nexport const mergeArrays = (left: any[], right: any[]): any[] => {\n const result = [];\n const map = {};\n\n (left || []).forEach((entry) => {\n const element = entry;\n if (element && Object.prototype.hasOwnProperty.call(element, 'id')) {\n map[element.id] = element;\n } else {\n result.push(element);\n }\n });\n\n (right || []).forEach((entry) => {\n const element = entry;\n if (element && Object.prototype.hasOwnProperty.call(element, 'id') && map[element.id]) {\n const merged = mergeObjects(map[element.id], element);\n map[element.id] = merged;\n } else {\n result.push(element);\n }\n });\n\n return Object.keys(map).map((key) => map[key]).concat(result);\n};\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RouteRef } from './routing.extensions';\nimport { RuleRef } from './rule.extensions';\nimport { ActionRef } from './action.extensions';\n\nexport interface ExtensionRef {\n $id: string;\n $name: string;\n $version: string;\n $vendor: string;\n $license: string;\n $runtime?: string;\n $description?: string;\n $dependencies?: Array<string>;\n\n appConfig?: any;\n rules?: Array<RuleRef>;\n routes?: Array<RouteRef>;\n actions?: Array<ActionRef>;\n\n features?: {\n [key: string]: any;\n };\n}\n\nexport interface ExtensionConfig extends ExtensionRef {\n $references?: Array<string | ExtensionRef>;\n $ignoreReferenceList?: Array<string>;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface IconRef extends ExtensionElement {\n value: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface NavBarRules {\n [ruleId: string]: string;\n}\n\nexport interface NavBarGroupRef extends ExtensionElement {\n items: Array<NavBarLinkRef>;\n rules?: NavBarRules;\n}\n\nexport interface NavBarLinkRef extends ExtensionElement {\n icon: string;\n title: string;\n route: string;\n\n provider?: string;\n component?: string;\n url?: string; // evaluated at runtime based on route ref\n description?: string;\n children?: Array<NavBarLinkRef>;\n rules?: NavBarRules;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface NodePermissions {\n check(source: any, permissions: string[], options?: any): boolean;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface RouteRef {\n id: string;\n path: string;\n component: string;\n parentRoute?: string;\n layout?: string;\n auth?: string[];\n data?: { [key: string]: string };\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SelectionState } from '../store/states/selection.state';\nimport { NavigationState } from '../store/states/navigation.state';\nimport { NodePermissions } from './permission.extensions';\nimport { ProfileState } from '../store/states/profile.state';\nimport { RepositoryInfo } from '@alfresco/js-api';\n\nexport type RuleEvaluator = (context: RuleContext, ...args: any[]) => boolean;\n\nexport interface RuleContext {\n repository: RepositoryInfo;\n auth: any;\n selection: SelectionState;\n navigation: NavigationState;\n profile: ProfileState;\n permissions: NodePermissions;\n\n getEvaluator(key: string): RuleEvaluator;\n}\n\nexport class RuleRef {\n type: string;\n id?: string;\n parameters?: Array<RuleParameter>;\n}\n\nexport interface RuleParameter {\n type: string;\n value: any;\n parameters?: Array<RuleParameter>;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface SidebarTabRef extends ExtensionElement {\n title: string;\n component: string;\n\n icon?: string;\n rules?: {\n [key: string]: string;\n visible?: string;\n };\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface ViewerExtensionRef extends ExtensionElement {\n fileExtension: string;\n component: string;\n\n rules?: {\n [key: string]: string;\n visible?: string;\n };\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { ActionRef, ContentActionRef, ContentActionType } from '../config/action.extensions';\nimport { ExtensionElement } from '../config/extension-element';\nimport { filterEnabled, getValue, mergeObjects, sortByOrder } from '../config/extension-utils';\nimport { ExtensionConfig, ExtensionRef } from '../config/extension.config';\nimport { RouteRef } from '../config/routing.extensions';\nimport { RuleRef } from '../config/rule.extensions';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ExtensionLoaderService {\n private readonly http = inject(HttpClient);\n\n load(configPath: string, pluginsPath: string, extensions?: string[], extensionValues?: ExtensionConfig[]): Promise<ExtensionConfig> {\n return new Promise<any>((resolve) => {\n this.loadConfig(configPath, 0).then((result) => {\n if (result) {\n let config = result.config;\n\n const override = sessionStorage.getItem('app.extension.config');\n if (override) {\n config = JSON.parse(override);\n }\n\n if (!config.$references?.length) {\n config.$references = this.filterIgnoredExtensions(extensions || [], config.$ignoreReferenceList);\n } else {\n config.$references = this.filterIgnoredExtensions(config.$references, config.$ignoreReferenceList);\n }\n\n if (config.$references?.length > 0 || extensionValues) {\n const plugins = (config.$references ?? []).map((name, idx) => this.loadConfig(`${pluginsPath}/${name}`, idx));\n\n Promise.all(plugins).then((results) => {\n let configs = results\n .filter((entry) => entry)\n .sort(sortByOrder)\n .map((entry) => entry.config);\n\n if (extensionValues) {\n configs = [...configs, ...extensionValues];\n }\n\n if (configs.length > 0) {\n config = mergeObjects(config, ...configs);\n }\n\n config = {\n ...config,\n ...this.getMetadata(result.config),\n $references: configs.map((ext) => this.getMetadata(ext))\n };\n\n resolve(config);\n });\n } else {\n resolve(config);\n }\n }\n });\n });\n }\n\n /**\n * Retrieves configuration elements.\n * Filters element by **enabled** and **order** attributes.\n * Example:\n * `getElements<ViewerExtensionRef>(config, 'features.viewer.extensions')`\n * @param config configuration settings\n * @param key element key\n * @param fallback fallback array of values\n * @returns list of elements\n */\n getElements<T extends ExtensionElement>(config: ExtensionConfig, key: string, fallback: Array<T> = []): Array<T> {\n const values = getValue(config, key) || fallback || [];\n return values.filter(filterEnabled).sort(sortByOrder);\n }\n\n getContentActions(config: ExtensionConfig, key: string): Array<ContentActionRef> {\n return this.getElements(config, key).map(this.setActionDefaults);\n }\n\n getRules(config: ExtensionConfig): Array<RuleRef> {\n if (config?.rules) {\n return config.rules;\n }\n return [];\n }\n\n getRoutes(config: ExtensionConfig): Array<RouteRef> {\n if (config) {\n return config.routes || [];\n }\n return [];\n }\n\n getActions(config: ExtensionConfig): Array<ActionRef> {\n if (config) {\n return config.actions || [];\n }\n return [];\n }\n\n getFeatures(config: ExtensionConfig): any {\n if (config) {\n return config.features || [];\n }\n return [];\n }\n\n protected getMetadata(config: ExtensionConfig): ExtensionRef {\n const result: any = {};\n\n Object.keys(config)\n .filter((key) => key.startsWith('$'))\n .forEach((key) => {\n result[key] = config[key];\n });\n\n return result;\n }\n\n protected loadConfig(url: string, order: number): Promise<{ order: number; config: ExtensionConfig }> {\n return new Promise((resolve) => {\n this.http.get<ExtensionConfig>(url).subscribe(\n (config) => {\n resolve({\n order,\n config\n });\n },\n () => {\n resolve(null);\n }\n );\n });\n }\n\n protected setActionDefaults(action: ContentActionRef): ContentActionRef {\n if (action) {\n action.type = action.type || ContentActionType.default;\n action.icon = action.icon || 'extension';\n }\n return action;\n }\n\n private filterIgnoredExtensions(extensions: Array<string | ExtensionRef>, ignoreReferenceList: string[]): Array<string | ExtensionRef> {\n if (!ignoreReferenceList?.length) {\n return extensions;\n }\n\n return extensions.map((file: string) => file.match('(?!.*/).+')[0]).filter((fileName: string) => !ignoreReferenceList.includes(fileName));\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RuleContext, RuleParameter } from '../config/rule.extensions';\n\nexport const not = (context: RuleContext, ...args: RuleParameter[]): boolean => {\n if (!args || args.length === 0) {\n return false;\n }\n\n return args\n .every((arg) => {\n const evaluator = context.getEvaluator(arg.value);\n if (!evaluator) {\n console.warn('evaluator not found: ' + arg.value);\n return false;\n }\n return !evaluator(context, ...(arg.parameters || []));\n });\n};\n\nexport const every = (context: RuleContext, ...args: RuleParameter[]): boolean => {\n if (!args || args.length === 0) {\n return false;\n }\n\n return args\n .every((arg) => {\n const evaluator = context.getEvaluator(arg.value);\n if (!evaluator) {\n console.warn('evaluator not found: ' + arg.value);\n return false;\n }\n return evaluator(context, ...(arg.parameters || []));\n });\n};\n\nexport const some = (context: RuleContext, ...args: RuleParameter[]): boolean => {\n if (!args || args.length === 0) {\n return false;\n }\n\n return args\n .some((arg) => {\n const evaluator = context.getEvaluator(arg.value);\n if (!evaluator) {\n console.warn('evaluator not found: ' + arg.value);\n return false;\n }\n return evaluator(context, ...(arg.parameters || []));\n });\n};\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, Type } from '@angular/core';\nimport { MatMenuItem } from '@angular/material/menu';\n\nexport interface ExtensionComponent {\n data: any;\n menuItem?: MatMenuItem;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class ComponentRegisterService {\n components: Record<string, Type<any>> = {};\n\n setComponents(values: Record<string, Type<any>>) {\n if (values) {\n this.components = Object.assign({}, this.components, values);\n }\n }\n\n getComponentById<T>(id: string): Type<T> {\n return this.components[id];\n }\n\n hasComponentById(id: string): boolean {\n return !!this.getComponentById(id);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, inject } from '@angular/core';\nimport { RuleRef, RuleContext, RuleEvaluator, RuleParameter } from '../config/rule.extensions';\nimport { ExtensionConfig } from '../config/extension.config';\nimport { ExtensionLoaderService } from './extension-loader.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RuleService {\n protected loader = inject(ExtensionLoaderService);\n\n context: RuleContext = null;\n rules: Array<RuleRef> = [];\n evaluators: { [key: string]: RuleEvaluator } = {};\n\n setup(config: ExtensionConfig) {\n this.rules = this.loader.getRules(config);\n }\n\n /**\n * Adds one or more new rule evaluators to the existing set.\n * @param values The new evaluators to add\n */\n setEvaluators(values: Record<string, RuleEvaluator>) {\n if (values) {\n this.evaluators = Object.assign({}, this.evaluators, values);\n }\n }\n\n /**\n * Retrieves a rule using its ID value.\n * @param id The ID value to look for\n * @returns The rule or null if not found\n */\n getRuleById(id: string): RuleRef {\n return this.rules.find((ref) => ref.id === id);\n }\n\n /**\n * Retrieves a RuleEvaluator function using its key name.\n * @param key Key name to look for\n * @returns RuleEvaluator or null if not found\n */\n getEvaluator(key: string): RuleEvaluator {\n if (key?.startsWith('!')) {\n const fn = this.evaluators[key.substring(1)];\n return (context: RuleContext, ...args: RuleParameter[]): boolean => !fn(context, ...args);\n }\n return this.evaluators[key];\n }\n\n /**\n * Evaluates a rule.\n * @param ruleId ID of the rule to evaluate\n * @param context Custom rule execution context.\n * @returns True if the rule passed, false otherwise\n */\n evaluateRule(ruleId: string, context?: RuleContext): boolean {\n const ruleRef = this.getRuleById(ruleId);\n context = context || this.context;\n\n if (ruleRef) {\n const evaluator = this.getEvaluator(ruleRef.type);\n if (evaluator) {\n return evaluator(context, ...ruleRef.parameters);\n }\n } else {\n const evaluator = this.getEvaluator(ruleId);\n if (evaluator) {\n return evaluator(context);\n }\n }\n return false;\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, Type, InjectionToken, inject } from '@angular/core';\nimport { RuleEvaluator, RuleRef, RuleContext } from '../config/rule.extensions';\nimport { ExtensionConfig } from '../config/extension.config';\nimport { ExtensionLoaderService } from './extension-loader.service';\nimport { RouteRef } from '../config/routing.extensions';\nimport { ActionRef } from '../config/action.extensions';\nimport * as core from '../evaluators/core.evaluators';\nimport { ComponentRegisterService } from './component-register.service';\nimport { RuleService } from './rule.service';\nimport { ExtensionElement } from '../config/extension-element';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { CanActivateFn } from '@angular/router';\n\n/**\n * The default extensions factory\n * @returns the list of extension json files\n */\nexport function extensionJsonsFactory() {\n return [];\n}\n\nexport const EXTENSION_JSONS = new InjectionToken<string[][]>('extension-jsons', {\n providedIn: 'root',\n factory: extensionJsonsFactory\n});\n\nexport const EXTENSION_JSON_VALUES = new InjectionToken<string[][]>('extension-jsons-values', {\n providedIn: 'root',\n factory: extensionJsonsFactory\n});\n\n/**\n * Provides the extension json values for the angular modules\n * @param jsons files to provide\n * @returns a provider section\n */\nexport function provideExtensionConfig(jsons: string[]) {\n return {\n provide: EXTENSION_JSONS,\n useValue: jsons,\n multi: true\n };\n}\n\n/**\n * Provides the extension json raw values for the angular modules\n * @param extensionConfigValue config value\n * @returns a provider section\n */\nexport function provideExtensionConfigValues(extensionConfigValue: ExtensionConfig[]) {\n return {\n provide: EXTENSION_JSON_VALUES,\n useValue: extensionConfigValue,\n multi: true\n };\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ExtensionService {\n protected loader = inject(ExtensionLoaderService);\n protected componentRegister = inject(ComponentRegisterService);\n protected ruleService = inject(RuleService);\n protected extensionJsons = inject(EXTENSION_JSONS);\n protected extensionJsonValues = inject(EXTENSION_JSON_VALUES);\n\n configPath = 'assets/app.extensions.json';\n pluginsPath = 'assets/plugins';\n\n routes: Array<RouteRef> = [];\n actions: Array<ActionRef> = [];\n features: Array<any> = [];\n authGuards: Record<string, CanActivateFn> = {};\n\n setup$: Observable<ExtensionConfig>;\n\n protected config: ExtensionConfig = null;\n protected onSetup$ = new BehaviorSubject<ExtensionConfig>(this.config);\n\n constructor() {\n this.setup$ = this.onSetup$.asObservable();\n }\n\n /**\n * Loads and registers an extension config file and plugins (specified by path properties).\n * @returns The loaded config data\n */\n async load(): Promise<ExtensionConfig> {\n const config = await this.loader.load(this.configPath, this.pluginsPath, this.extensionJsons.flat(), this.extensionJsonValues.flat() as any);\n\n this.setup(config);\n return config;\n }\n\n /**\n * Registers extensions from a config object.\n * @param config Object with config data\n */\n setup(config: ExtensionConfig) {\n if (!config) {\n console.warn('Extension configuration not found');\n return;\n }\n\n this.config = config;\n\n this.setEvaluators({\n 'core.every': core.every,\n 'core.some': core.some,\n 'core.not': core.not\n });\n\n this.actions = this.loader.getActions(config);\n this.routes = this.loader.getRoutes(config);\n this.features = this.loader.getFeatures(config);\n\n this.ruleService.setup(config);\n this.onSetup$.next(config);\n }\n\n /**\n * Gets features by key.\n * @param key Key string using dot notation or array of strings\n * @param defaultValue Default value returned if feature is not found, default is empty array\n * @returns Feature found by key\n */\n getFeature<T = any[]>(key: string | string[], defaultValue: any = []): T {\n const properties: string[] = Array.isArray(key) ? key : key.split('.');\n return properties.reduce((prev, curr) => prev?.[curr], this.features) || defaultValue;\n }\n\n getElements<T extends ExtensionElement>(key: string, fallback: Array<T> = []): Array<T> {\n return this.loader.getElements(this.config, key, fallback);\n }\n\n /**\n * Adds one or more new rule evaluators to the existing set.\n * @param values The new evaluators to add\n */\n setEvaluators(values: Record<string, RuleEvaluator>) {\n this.ruleService.setEvaluators(values);\n }\n\n /**\n * Adds one or more new auth guards to the existing set.\n * @param values The new auth guards to add\n */\n setAuthGuards(values: Record<string, CanActivateFn>) {\n if (values) {\n this.authGuards = Object.assign({}, this.authGuards, values);\n }\n }\n\n /**\n * Adds one or more new components to the existing set.\n * @param values The new components to add\n */\n setComponents(values: Record<string, Type<any>>) {\n this.componentRegister.setComponents(values);\n }\n\n /**\n * Retrieves a route using its ID value.\n * @param id The ID value to look for\n * @returns The route or null if not found\n */\n getRouteById(id: string): RouteRef {\n return this.routes.find((route) => route.id === id);\n }\n\n /**\n * Retrieves one or more auth guards using an array of ID values.\n * @param ids Array of ID value to look for\n * @returns Array of auth guards or empty array if none were found\n */\n getAuthGuards(ids: string[]): Array<CanActivateFn> {\n return (ids || []).map((id) => this.authGuards[id]).filter((guard) => guard);\n }\n\n /**\n * Retrieves an action using its ID value.\n * @param id The ID value to look for\n * @returns Action or null if not found\n */\n getActionById(id: string): ActionRef {\n return this.actions.find((action) => action.id === id);\n }\n\n /**\n * Retrieves a RuleEvaluator function using its key name.\n * @param key Key name to look for\n * @returns RuleEvaluator or null if not found\n */\n getEvaluator(key: string): RuleEvaluator {\n return this.ruleService.getEvaluator(key);\n }\n\n /**\n * Evaluates a rule.\n * @param ruleId ID of the rule to evaluate\n * @param context Custom rule execution context.\n * @returns True if the rule passed, false otherwise\n */\n evaluateRule(ruleId: string, context?: RuleContext): boolean {\n return this.ruleService.evaluateRule(ruleId, context);\n }\n\n /**\n * Retrieves a registered extension component using its ID value.\n * @param id The ID value to look for\n * @returns The component or null if not found\n */\n getComponentById<T>(id: string) {\n return this.componentRegister.getComponentById<T>(id);\n }\n\n /**\n * Retrieves a rule using its ID value.\n * @param id The ID value to look for\n * @returns The rule or null if not found\n */\n getRuleById(id: string): RuleRef {\n return this.ruleService.getRuleById(id);\n }\n\n /**\n * Runs a lightweight expression stored in a string.\n * @param value String containing the expression or literal value\n * @param context Parameter object for the expression with details of app state\n * @returns Result of evaluated expression, if found, or the literal value otherwise\n */\n runExpression(value: string | any, context?: any) {\n if (typeof value === 'string') {\n return this.evaluateExpression(value, context);\n } else {\n const duplicate = Object.assign({}, value);\n Object.keys(duplicate).forEach((key) => {\n duplicate[key] = this.evaluateExpression(duplicate[key], context);\n });\n return duplicate;\n }\n }\n\n private evaluateExpression(value: string, context?: any): string {\n const pattern = new RegExp(/\\$\\((.*\\)?)\\)/g);\n const matches = pattern.exec(value);\n\n if (matches && matches.length > 1) {\n const expression = matches[1];\n const fn = new Function('context', `return ${expression}`);\n const result = fn(context);\n\n return result;\n }\n return value;\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, inject } from '@angular/core';\nimport { ExtensionConfig, ExtensionRef } from '../config/extension.config';\nimport { ExtensionService } from '../services/extension.service';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { ViewerExtensionRef } from '../config/viewer.extensions';\nimport { DocumentListPresetRef } from '../config/document-list.extensions';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppExtensionService {\n protected extensionService = inject(ExtensionService);\n\n references$: Observable<ExtensionRef[]>;\n private readonly _references = new BehaviorSubject<ExtensionRef[]>([]);\n\n constructor() {\n this.references$ = this._references.asObservable();\n }\n\n async load() {\n const config = await this.extensionService.load();\n this.setup(config);\n }\n\n setup(config: ExtensionConfig) {\n if (!config) {\n return;\n }\n\n const references = (config.$references || []).filter((entry) => typeof entry === 'object').map((entry) => entry as ExtensionRef);\n this._references.next(references);\n }\n\n /**\n * Provides a collection of document list columns for the particular preset.\n * The result is filtered by the **disabled** state.\n * @param key Preset key.\n * @returns list of document list presets\n */\n getDocumentListPreset(key: string): DocumentListPresetRef[] {\n return this.extensionService.getElements<DocumentListPresetRef>(`features.documentList.${key}`).filter((entry) => !entry.disabled);\n }\n\n /**\n * Provides a list of the Viewer content extensions,\n * filtered by **disabled** state and **rules**.\n * @returns list of viewer extension references\n */\n getViewerExtensions(): ViewerExtensionRef[] {\n return this.extensionService\n .getElements<ViewerExtensionRef>('features.viewer.extensions')\n .filter((extension) => !this.isViewerExtensionDisabled(extension));\n }\n\n protected isViewerExtensionDisabled(extension: ViewerExtensionRef): boolean {\n if (extension) {\n if (extension.disabled) {\n return true;\n }\n\n if (extension.rules?.disabled) {\n return this.extensionService.evaluateRule(extension.rules.disabled);\n }\n }\n\n return false;\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Node } from '@alfresco/js-api';\n\nexport interface NavigationState {\n currentFolder?: Node;\n url?: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Group } from '@alfresco/js-api';\n\nexport interface ProfileState {\n [key: string]: any;\n\n id: string;\n isAdmin: boolean;\n firstName: string;\n lastName: string;\n userName?: string;\n initials?: string;\n groups?: Group[];\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { NodeEntry, SiteEntry } from '@alfresco/js-api';\n\nexport interface SelectionState {\n count: number;\n nodes: NodeEntry[];\n libraries: SiteEntry[];\n isEmpty: boolean;\n first?: NodeEntry;\n last?: NodeEntry;\n folder?: NodeEntry;\n file?: NodeEntry;\n library?: SiteEntry;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface RepositoryState {\n isAuditEnabled?: boolean;\n isQuickShareEnabled?: boolean;\n isReadOnly?: boolean;\n isThumbnailGenerationEnabled?: boolean;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Node } from '@alfresco/js-api';\n\nexport interface ViewerExtensionInterface {\n url: string;\n nameFile: string;\n node: Node;\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n Input,\n ComponentRef,\n OnInit,\n ViewChild,\n ViewContainerRef,\n OnDestroy,\n OnChanges,\n EventEmitter,\n Output,\n DestroyRef,\n inject\n} from '@angular/core';\nimport { ExtensionService } from '../../services/extension.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'adf-preview-extension',\n template: `<div #content></div>`\n})\nexport class PreviewExtensionComponent implements OnInit, OnChanges, OnDestroy {\n private readonly extensionService = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n /** ID string of the component to preview. */\n @Input()\n id: string;\n\n /** Identifier of a node that is opened by the viewer. */\n @Input()\n nodeId: string = null;\n\n /** URL of the content in the repository. */\n @Input()\n url: string;\n\n /** File extension (.jpg, .png, etc) for the viewer. */\n @Input()\n extension: string;\n\n @Output()\n contentLoaded = new EventEmitter<void>();\n\n private readonly destroyRef = inject(DestroyRef);\n\n private componentRef: ComponentRef<any>;\n\n ngOnInit() {\n if (!this.id) {\n return;\n }\n\n const componentType = this.extensionService.getComponentById(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n this.updateInstance();\n }\n }\n\n ngOnChanges() {\n this.updateInstance();\n }\n\n ngOnDestroy() {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n private updateInstance() {\n if (this.componentRef?.instance) {\n this.componentRef.setInput('url', this.url);\n this.componentRef.setInput('extension', this.extension);\n this.componentRef.setInput('nodeId', this.nodeId);\n\n if (this.componentRef.instance?.contentLoaded) {\n this.componentRef.instance.contentLoaded.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.contentLoaded.emit();\n });\n }\n }\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n Input,\n OnInit,\n OnDestroy,\n ViewChild,\n ViewContainerRef,\n ComponentRef,\n OnChanges,\n SimpleChanges,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n inject\n} from '@angular/core';\nimport { ExtensionService } from '../../services/extension.service';\n\n@Component({\n selector: 'adf-dynamic-column',\n template: `<ng-container #content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'adf-dynamic-column' },\n styles: [\n `\n .adf-dynamic-column {\n display: flex;\n align-items: center;\n width: inherit;\n }\n `\n ]\n})\nexport class DynamicColumnComponent implements OnInit, OnChanges, OnDestroy {\n private readonly extensions = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n @Input()\n id: string;\n\n @Input()\n context: any;\n\n private componentRef: ComponentRef<any>;\n\n ngOnInit() {\n const componentType = this.extensions.getComponentById(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n this.updateInstance();\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.node) {\n this.updateInstance();\n }\n }\n\n ngOnDestroy() {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n private updateInstance() {\n if (this.componentRef?.instance) {\n this.componentRef.instance.context = this.context;\n }\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n Input,\n ComponentRef,\n ViewChild,\n ViewContainerRef,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n AfterViewInit,\n inject\n} from '@angular/core';\nimport { ExtensionService } from '../../services/extension.service';\nimport { ExtensionComponent } from '../../services/component-register.service';\nimport { MatMenuItem } from '@angular/material/menu';\n\n// cSpell:words lifecycle\n@Component({\n selector: 'adf-dynamic-component',\n template: `<div #content></div>`\n})\nexport class DynamicExtensionComponent implements OnChanges, OnDestroy, AfterViewInit {\n private readonly extensions = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n /** Unique ID string for the component to show. */\n @Input() id: string;\n\n /** Data for the dynamically-loaded component instance. */\n @Input() data: any;\n\n /** Provides the menu item of dynamically-loaded component instance. */\n menuItem: MatMenuItem;\n\n private componentRef: ComponentRef<ExtensionComponent>;\n private loaded: boolean = false;\n\n ngOnChanges(changes: SimpleChanges) {\n if (!this.loaded) {\n this.loadComponent();\n this.loaded = true;\n }\n\n if (changes.data) {\n this.data = changes.data.currentValue;\n }\n\n this.updateInstance();\n this.proxy('ngOnChanges', changes);\n }\n\n ngOnDestroy() {\n if (this.componentCreated()) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n ngAfterViewInit() {\n this.menuItem = this.componentRef?.instance?.menuItem;\n }\n\n private loadComponent() {\n const componentType = this.extensions.getComponentById<ExtensionComponent>(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n }\n }\n\n private updateInstance() {\n if (this.componentCreated()) {\n this.componentRef.instance.data = this.data;\n }\n }\n\n private proxy(lifecycleMethod: string, ...args: any[]) {\n if (this.componentCreated() && this.lifecycleHookIsImplemented(lifecycleMethod)) {\n // eslint-disable-next-line prefer-spread\n this.componentRef.instance[lifecycleMethod].apply(this.componentRef.instance, args);\n }\n }\n\n private componentCreated(): boolean {\n return !!this.componentRef && !!this.componentRef.instance;\n }\n\n private lifecycleHookIsImplemented(lifecycleMethod: string): boolean {\n return !!this.componentRef.instance[lifecycleMethod];\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Component, Input, OnInit, OnDestroy, ViewChild, ViewContainerRef, ComponentRef, OnChanges, SimpleChanges, inject } from '@angular/core';\nimport { Node } from '@alfresco/js-api';\nimport { ExtensionService } from '../../services/extension.service';\n\n@Component({\n selector: 'adf-dynamic-tab',\n template: `<div #content></div>`\n})\nexport class DynamicTabComponent implements OnInit, OnChanges, OnDestroy {\n private readonly extensions = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n /** Unique ID string for the component to show. */\n @Input()\n id: string;\n\n @Input()\n node: Node;\n\n private componentRef: ComponentRef<any>;\n\n ngOnInit() {\n const componentType = this.extensions.getComponentById(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n this.updateInstance();\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.node) {\n this.updateInstance();\n }\n }\n\n ngOnDestroy() {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n private updateInstance() {\n if (this.componentRef?.instance) {\n this.componentRef.instance.node = this.node;\n }\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './viewer/viewer-extension.interface';\nexport * from './viewer/preview-extension.component';\nexport * from './dynamic-column/dynamic-column.component';\nexport * from './dynamic-component/dynamic.component';\nexport * from './dynamic-tab/dynamic-tab.component';\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { NgModule, ModuleWithProviders, inject, provideAppInitializer } from '@angular/core';\nimport { AppExtensionService } from './services/app-extension.service';\n\n/** @deprecated use provideAppExtensions() api instead */\n@NgModule()\nexport class ExtensionsModule {\n static forRoot(): ModuleWithProviders<ExtensionsModule> {\n return {\n ngModule: ExtensionsModule,\n providers: [\n provideAppInitializer(() => {\n const appExtensionService = inject(AppExtensionService);\n return appExtensionService.load();\n })\n ]\n };\n }\n\n /**\n * @deprecated use provideAppExtensions() api instead\n * @returns Module with providers\n */\n static forChild(): ModuleWithProviders<ExtensionsModule> {\n return {\n ngModule: ExtensionsModule\n };\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { EnvironmentProviders, inject, provideAppInitializer, Provider, Type } from '@angular/core';\nimport { AppExtensionService } from './services/app-extension.service';\nimport { ExtensionService } from './services/extension.service';\nimport { RuleEvaluator } from './config/rule.extensions';\nimport { CanActivateFn } from '@angular/router';\n\n/**\n * Provides all necessary entries for the app extensibility\n * @returns list of providers\n */\nexport function provideAppExtensions(): (Provider | EnvironmentProviders)[] {\n return [\n provideAppInitializer(() => {\n const appExtensionService = inject(AppExtensionService);\n return appExtensionService.load();\n })\n ];\n}\n\n/**\n * Provides a way to register extension entities in a single API\n *\n * Example:\n * ```typescript\n * providers: [\n * provideExtensions({\n * authGuards: {\n * auth1: guard1,\n * auth2: guard2\n * },\n * evaluators: {\n * eval1: evaluator1,\n * eval2: evaluator2\n * },\n * components: {\n * component: component1\n * }\n * });\n * ]\n * ```\n * @param params Parameters for the api\n * @param params.authGuards Auth guards to register\n * @param params.evaluators Rule evaluators to register\n * @param params.components Components to register\n * @returns list of Angular providers\n */\nexport function provideExtensions(params: {\n authGuards?: Record<string, CanActivateFn>;\n evaluators?: Record<string, RuleEvaluator>;\n components?: Record<string, Type<any>>;\n}) {\n return [\n provideAppInitializer(() => {\n const service = inject(ExtensionService);\n\n if (params) {\n if (params.authGuards) {\n service.setAuthGuards(params.authGuards);\n }\n if (params.evaluators) {\n service.setEvaluators(params.evaluators);\n }\n if (params.components) {\n service.setComponents(params.components);\n }\n }\n\n return Promise.resolve();\n })\n ];\n}\n","/*!\n * @license\n * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/config/action.extensions';\nexport * from './lib/config/document-list.extensions';\nexport * from './lib/config/extension-element';\nexport * from './lib/config/extension-utils';\nexport * from './lib/config/extension.config';\nexport * from './lib/config/icon.extensions';\nexport * from './lib/config/navbar.extensions';\nexport * from './lib/config/permission.extensions';\nexport * from './lib/config/routing.extensions';\nexport * from './lib/config/rule.extensions';\nexport * from './lib/config/sidebar.extensions';\nexport * from './lib/config/viewer.extensions';\n\nexport * from './lib/services/extension-loader.service';\nexport * from './lib/services/extension.service';\nexport * from './lib/services/component-register.service';\nexport * from './lib/services/app-extension.service';\nexport * from './lib/services/rule.service';\n\nexport * from './lib/store/states/navigation.state';\nexport * from './lib/store/states/profile.state';\nexport * from './lib/store/states/selection.state';\nexport * from './lib/store/states/repository.state';\n\nexport * from './lib/components/public-api';\nexport * from './lib/extensions.module';\nexport * from './lib/providers';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["core.every","core.some","core.not"],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;AAeG;AAII,MAAM,iBAAiB,GAAG;AAC7B,IAAA,OAAO,EAAE,SA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,EAAE;SACb;IACL;+GArBS,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAhB,gBAAgB,EAAA,CAAA,CAAA;gHAAhB,gBAAgB,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B;;;ACrBD;;;;;;;;;;;;;;;AAeG;AAQH;;;AAGG;SACa,oBAAoB,GAAA;IAChC,OAAO;QACH,qBAAqB,CAAC,MAAK;AACvB,YAAA,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACvD,YAAA,OAAO,mBAAmB,CAAC,IAAI,EAAE;AACrC,QAAA,CAAC;KACJ;AACL;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BG;AACG,SAAU,iBAAiB,CAAC,MAIjC,EAAA;IACG,OAAO;QACH,qBAAqB,CAAC,MAAK;AACvB,YAAA,MAAM,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC;YAExC,IAAI,MAAM,EAAE;AACR,gBAAA,IAAI,MAAM,CAAC,UAAU,EAAE;AACnB,oBAAA,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5C;AACA,gBAAA,IAAI,MAAM,CAAC,UAAU,EAAE;AACnB,oBAAA,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5C;AACA,gBAAA,IAAI,MAAM,CAAC,UAAU,EAAE;AACnB,oBAAA,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5C;YACJ;AAEA,YAAA,OAAO,OAAO,CAAC,OAAO,EAAE;AAC5B,QAAA,CAAC;KACJ;AACL;;ACvFA;;;;;;;;;;;;;;;AAeG;;ACfH;;AAEG;;;;"}
1
+ {"version":3,"file":"adf-extensions.mjs","sources":["../../../../lib/extensions/src/lib/config/action.extensions.ts","../../../../lib/extensions/src/lib/config/document-list.extensions.ts","../../../../lib/extensions/src/lib/config/extension-element.ts","../../../../lib/extensions/src/lib/config/extension-utils.ts","../../../../lib/extensions/src/lib/config/extension.config.ts","../../../../lib/extensions/src/lib/config/icon.extensions.ts","../../../../lib/extensions/src/lib/config/navbar.extensions.ts","../../../../lib/extensions/src/lib/config/permission.extensions.ts","../../../../lib/extensions/src/lib/config/routing.extensions.ts","../../../../lib/extensions/src/lib/config/rule.extensions.ts","../../../../lib/extensions/src/lib/config/sidebar.extensions.ts","../../../../lib/extensions/src/lib/config/viewer.extensions.ts","../../../../lib/extensions/src/lib/services/extension-loader.service.ts","../../../../lib/extensions/src/lib/evaluators/core.evaluators.ts","../../../../lib/extensions/src/lib/services/component-register.service.ts","../../../../lib/extensions/src/lib/services/rule.service.ts","../../../../lib/extensions/src/lib/services/extension.service.ts","../../../../lib/extensions/src/lib/services/app-extension.service.ts","../../../../lib/extensions/src/lib/store/states/navigation.state.ts","../../../../lib/extensions/src/lib/store/states/profile.state.ts","../../../../lib/extensions/src/lib/store/states/selection.state.ts","../../../../lib/extensions/src/lib/store/states/repository.state.ts","../../../../lib/extensions/src/lib/components/viewer/viewer-extension.interface.ts","../../../../lib/extensions/src/lib/components/viewer/preview-extension.component.ts","../../../../lib/extensions/src/lib/components/dynamic-column/dynamic-column.component.ts","../../../../lib/extensions/src/lib/components/dynamic-component/dynamic.component.ts","../../../../lib/extensions/src/lib/components/dynamic-tab/dynamic-tab.component.ts","../../../../lib/extensions/src/lib/components/public-api.ts","../../../../lib/extensions/src/lib/extensions.module.ts","../../../../lib/extensions/src/lib/providers.ts","../../../../lib/extensions/src/public-api.ts","../../../../lib/extensions/src/adf-extensions.ts"],"sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport const ContentActionType = {\n default: 'default',\n button: 'button',\n separator: 'separator',\n menu: 'menu',\n custom: 'custom'\n} as const;\n\nexport type ContentActionType = (typeof ContentActionType)[keyof typeof ContentActionType];\n\nexport interface ContentActionRef extends ExtensionElement {\n type: ContentActionType;\n\n title?: string;\n tooltip?: string;\n description?: string;\n icon?: string;\n children?: Array<ContentActionRef>;\n component?: string;\n data?: any;\n color?: string;\n actions?: {\n [key: string]: string;\n click?: string;\n };\n rules?: {\n [key: string]: string;\n enabled?: string;\n visible?: string;\n };\n}\n\nexport interface ActionRef {\n id: string;\n type: string;\n payload?: any;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable id-blacklist */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface DataColumnTypes {\n text: string;\n image: string;\n date: string;\n json: string;\n icon: string;\n fileSize: string;\n location: string;\n boolean: string;\n amount: string;\n number: string;\n}\n\nexport type DataColumnType = keyof DataColumnTypes;\n\nexport interface DocumentListPresetRef extends ExtensionElement {\n key: string;\n type: DataColumnType;\n title?: string;\n format?: string;\n class?: string;\n sortable: boolean;\n template: string;\n desktopOnly: boolean;\n sortingKey: string;\n isHidden?: boolean;\n rules?: {\n [key: string]: string;\n visible?: string;\n };\n draggable?: boolean;\n resizable?: boolean;\n maxTextLength?: number;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface ExtensionElement {\n id: string;\n\n order?: number;\n disabled?: boolean;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ContentActionRef, ContentActionType } from './action.extensions';\n\nexport const getValue = (target: any, key: string): any => {\n if (!target) {\n return undefined;\n }\n\n const keys = key.split('.');\n key = '';\n\n do {\n key += keys.shift();\n const value = target[key];\n if (\n value !== undefined &&\n (typeof value === 'object' || !keys.length)\n ) {\n target = value;\n key = '';\n } else if (!keys.length) {\n target = undefined;\n } else {\n key += '.';\n }\n } while (keys.length);\n\n return target;\n};\n\nexport const filterEnabled = (entry: { disabled?: boolean }): boolean => !entry.disabled;\n\nexport const sortByOrder = (\n a: { order?: number | undefined },\n b: { order?: number | undefined }\n) => {\n const left = a.order === undefined ? Number.MAX_SAFE_INTEGER : a.order;\n const right = b.order === undefined ? Number.MAX_SAFE_INTEGER : b.order;\n return left - right;\n};\n\nexport const reduceSeparators = (\n acc: ContentActionRef[],\n el: ContentActionRef,\n i: number,\n arr: ContentActionRef[]\n): ContentActionRef[] => {\n // remove leading separator\n if (i === 0) {\n if (arr[i].type === ContentActionType.separator) {\n return acc;\n }\n }\n // remove duplicate separators\n if (i > 0) {\n const prev = arr[i - 1];\n if (\n prev.type === ContentActionType.separator &&\n el.type === ContentActionType.separator\n ) {\n return acc;\n }\n\n // remove trailing separator\n if (i === arr.length - 1) {\n if (el.type === ContentActionType.separator) {\n return acc;\n }\n }\n }\n\n return acc.concat(el);\n};\n\nexport const reduceEmptyMenus = (\n acc: ContentActionRef[],\n el: ContentActionRef\n): ContentActionRef[] => {\n if (el.type === ContentActionType.menu) {\n if ((el.children || []).length === 0) {\n return acc;\n }\n }\n return acc.concat(el);\n};\n\nexport const mergeObjects = (...objects: any[]): any => {\n const result = {};\n\n objects.forEach((source) => {\n Object.keys(source).forEach((prop) => {\n let replace = false;\n\n if (prop.endsWith('.$replace')) {\n replace = true;\n prop = prop.replace('.$replace', '');\n }\n\n if (!prop.startsWith('$')) {\n if (replace) {\n result[prop] = source[`${prop}.$replace`];\n } else if (prop in result && Array.isArray(result[prop])) {\n if (Array.isArray(source[prop])) {\n result[prop] = mergeArrays(result[prop], source[prop]);\n } else {\n result[prop] = [...result[prop], source[prop]];\n }\n } else if (prop in result && typeof result[prop] === 'object') {\n result[prop] = mergeObjects(result[prop], source[prop]);\n } else {\n result[prop] = source[prop];\n }\n }\n });\n });\n\n return result;\n};\n\nexport const mergeArrays = (left: any[], right: any[]): any[] => {\n const result = [];\n const map = {};\n\n (left || []).forEach((entry) => {\n const element = entry;\n if (element && Object.prototype.hasOwnProperty.call(element, 'id')) {\n map[element.id] = element;\n } else {\n result.push(element);\n }\n });\n\n (right || []).forEach((entry) => {\n const element = entry;\n if (element && Object.prototype.hasOwnProperty.call(element, 'id') && map[element.id]) {\n const merged = mergeObjects(map[element.id], element);\n map[element.id] = merged;\n } else {\n result.push(element);\n }\n });\n\n return Object.keys(map).map((key) => map[key]).concat(result);\n};\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RouteRef } from './routing.extensions';\nimport { RuleRef } from './rule.extensions';\nimport { ActionRef } from './action.extensions';\n\nexport interface ExtensionRef {\n $id: string;\n $name: string;\n $version: string;\n $vendor: string;\n $license: string;\n $runtime?: string;\n $description?: string;\n $dependencies?: Array<string>;\n\n appConfig?: any;\n rules?: Array<RuleRef>;\n routes?: Array<RouteRef>;\n actions?: Array<ActionRef>;\n\n features?: {\n [key: string]: any;\n };\n}\n\nexport interface ExtensionConfig extends ExtensionRef {\n $references?: Array<string | ExtensionRef>;\n $ignoreReferenceList?: Array<string>;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface IconRef extends ExtensionElement {\n value: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface NavBarRules {\n [ruleId: string]: string;\n}\n\nexport interface NavBarGroupRef extends ExtensionElement {\n items: Array<NavBarLinkRef>;\n rules?: NavBarRules;\n}\n\nexport interface NavBarLinkRef extends ExtensionElement {\n icon: string;\n title: string;\n route: string;\n\n provider?: string;\n component?: string;\n url?: string; // evaluated at runtime based on route ref\n description?: string;\n children?: Array<NavBarLinkRef>;\n rules?: NavBarRules;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface NodePermissions {\n check(source: any, permissions: string[], options?: any): boolean;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface RouteRef {\n id: string;\n path: string;\n component: string;\n parentRoute?: string;\n layout?: string;\n auth?: string[];\n data?: { [key: string]: string };\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SelectionState } from '../store/states/selection.state';\nimport { NavigationState } from '../store/states/navigation.state';\nimport { NodePermissions } from './permission.extensions';\nimport { ProfileState } from '../store/states/profile.state';\nimport { RepositoryInfo } from '@alfresco/js-api';\n\nexport type RuleEvaluator = (context: RuleContext, ...args: any[]) => boolean;\n\nexport interface RuleContext {\n repository: RepositoryInfo;\n auth: any;\n selection: SelectionState;\n navigation: NavigationState;\n profile: ProfileState;\n permissions: NodePermissions;\n\n getEvaluator(key: string): RuleEvaluator;\n}\n\nexport class RuleRef {\n type: string;\n id?: string;\n parameters?: Array<RuleParameter>;\n}\n\nexport interface RuleParameter {\n type: string;\n value: any;\n parameters?: Array<RuleParameter>;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface SidebarTabRef extends ExtensionElement {\n title: string;\n component: string;\n\n icon?: string;\n rules?: {\n [key: string]: string;\n visible?: string;\n };\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ExtensionElement } from './extension-element';\n\nexport interface ViewerExtensionRef extends ExtensionElement {\n fileExtension: string;\n component: string;\n\n rules?: {\n [key: string]: string;\n visible?: string;\n };\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { ActionRef, ContentActionRef, ContentActionType } from '../config/action.extensions';\nimport { ExtensionElement } from '../config/extension-element';\nimport { filterEnabled, getValue, mergeObjects, sortByOrder } from '../config/extension-utils';\nimport { ExtensionConfig, ExtensionRef } from '../config/extension.config';\nimport { RouteRef } from '../config/routing.extensions';\nimport { RuleRef } from '../config/rule.extensions';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ExtensionLoaderService {\n private readonly http = inject(HttpClient);\n\n load(configPath: string, pluginsPath: string, extensions?: string[], extensionValues?: ExtensionConfig[]): Promise<ExtensionConfig> {\n return new Promise<any>((resolve) => {\n this.loadConfig(configPath, 0).then((result) => {\n if (result) {\n let config = result.config;\n\n const override = sessionStorage.getItem('app.extension.config');\n if (override) {\n config = JSON.parse(override);\n }\n\n if (!config.$references?.length) {\n config.$references = this.filterIgnoredExtensions(extensions || [], config.$ignoreReferenceList);\n } else {\n config.$references = this.filterIgnoredExtensions(config.$references, config.$ignoreReferenceList);\n }\n\n if (config.$references?.length > 0 || extensionValues) {\n const plugins = (config.$references ?? []).map((name, idx) => this.loadConfig(`${pluginsPath}/${name}`, idx));\n\n Promise.all(plugins).then((results) => {\n let configs = results\n .filter((entry) => entry)\n .sort(sortByOrder)\n .map((entry) => entry.config);\n\n if (extensionValues) {\n configs = [...configs, ...extensionValues];\n }\n\n if (configs.length > 0) {\n config = mergeObjects(config, ...configs);\n }\n\n config = {\n ...config,\n ...this.getMetadata(result.config),\n $references: configs.map((ext) => this.getMetadata(ext))\n };\n\n resolve(config);\n });\n } else {\n resolve(config);\n }\n }\n });\n });\n }\n\n /**\n * Retrieves configuration elements.\n * Filters element by **enabled** and **order** attributes.\n * Example:\n * `getElements<ViewerExtensionRef>(config, 'features.viewer.extensions')`\n * @param config configuration settings\n * @param key element key\n * @param fallback fallback array of values\n * @returns list of elements\n */\n getElements<T extends ExtensionElement>(config: ExtensionConfig, key: string, fallback: Array<T> = []): Array<T> {\n const values = getValue(config, key) || fallback || [];\n return values.filter(filterEnabled).sort(sortByOrder);\n }\n\n getContentActions(config: ExtensionConfig, key: string): Array<ContentActionRef> {\n return this.getElements(config, key).map(this.setActionDefaults);\n }\n\n getRules(config: ExtensionConfig): Array<RuleRef> {\n if (config?.rules) {\n return config.rules;\n }\n return [];\n }\n\n getRoutes(config: ExtensionConfig): Array<RouteRef> {\n if (config) {\n return config.routes || [];\n }\n return [];\n }\n\n getActions(config: ExtensionConfig): Array<ActionRef> {\n if (config) {\n return config.actions || [];\n }\n return [];\n }\n\n getFeatures(config: ExtensionConfig): any {\n if (config) {\n return config.features || [];\n }\n return [];\n }\n\n protected getMetadata(config: ExtensionConfig): ExtensionRef {\n const result: any = {};\n\n Object.keys(config)\n .filter((key) => key.startsWith('$'))\n .forEach((key) => {\n result[key] = config[key];\n });\n\n return result;\n }\n\n protected loadConfig(url: string, order: number): Promise<{ order: number; config: ExtensionConfig }> {\n return new Promise((resolve) => {\n this.http.get<ExtensionConfig>(url).subscribe(\n (config) => {\n resolve({\n order,\n config\n });\n },\n () => {\n resolve(null);\n }\n );\n });\n }\n\n protected setActionDefaults(action: ContentActionRef): ContentActionRef {\n if (action) {\n action.type = action.type || ContentActionType.default;\n action.icon = action.icon || 'extension';\n }\n return action;\n }\n\n private filterIgnoredExtensions(extensions: Array<string | ExtensionRef>, ignoreReferenceList: string[]): Array<string | ExtensionRef> {\n if (!ignoreReferenceList?.length) {\n return extensions;\n }\n\n return extensions.map((file: string) => file.match('(?!.*/).+')[0]).filter((fileName: string) => !ignoreReferenceList.includes(fileName));\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RuleContext, RuleParameter } from '../config/rule.extensions';\n\nexport const not = (context: RuleContext, ...args: RuleParameter[]): boolean => {\n if (!args || args.length === 0) {\n return false;\n }\n\n return args\n .every((arg) => {\n const evaluator = context.getEvaluator(arg.value);\n if (!evaluator) {\n console.warn('evaluator not found: ' + arg.value);\n return false;\n }\n return !evaluator(context, ...(arg.parameters || []));\n });\n};\n\nexport const every = (context: RuleContext, ...args: RuleParameter[]): boolean => {\n if (!args || args.length === 0) {\n return false;\n }\n\n return args\n .every((arg) => {\n const evaluator = context.getEvaluator(arg.value);\n if (!evaluator) {\n console.warn('evaluator not found: ' + arg.value);\n return false;\n }\n return evaluator(context, ...(arg.parameters || []));\n });\n};\n\nexport const some = (context: RuleContext, ...args: RuleParameter[]): boolean => {\n if (!args || args.length === 0) {\n return false;\n }\n\n return args\n .some((arg) => {\n const evaluator = context.getEvaluator(arg.value);\n if (!evaluator) {\n console.warn('evaluator not found: ' + arg.value);\n return false;\n }\n return evaluator(context, ...(arg.parameters || []));\n });\n};\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, Type } from '@angular/core';\nimport { MatMenuItem } from '@angular/material/menu';\n\nexport interface ExtensionComponent {\n data: any;\n menuItem?: MatMenuItem;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class ComponentRegisterService {\n components: Record<string, Type<any>> = {};\n\n setComponents(values: Record<string, Type<any>>) {\n if (values) {\n this.components = Object.assign({}, this.components, values);\n }\n }\n\n getComponentById<T>(id: string): Type<T> {\n return this.components[id];\n }\n\n hasComponentById(id: string): boolean {\n return !!this.getComponentById(id);\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, inject } from '@angular/core';\nimport { RuleRef, RuleContext, RuleEvaluator, RuleParameter } from '../config/rule.extensions';\nimport { ExtensionConfig } from '../config/extension.config';\nimport { ExtensionLoaderService } from './extension-loader.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RuleService {\n protected loader = inject(ExtensionLoaderService);\n\n context: RuleContext = null;\n rules: Array<RuleRef> = [];\n evaluators: { [key: string]: RuleEvaluator } = {};\n\n setup(config: ExtensionConfig) {\n this.rules = this.loader.getRules(config);\n }\n\n /**\n * Adds one or more new rule evaluators to the existing set.\n * @param values The new evaluators to add\n */\n setEvaluators(values: Record<string, RuleEvaluator>) {\n if (values) {\n this.evaluators = Object.assign({}, this.evaluators, values);\n }\n }\n\n /**\n * Retrieves a rule using its ID value.\n * @param id The ID value to look for\n * @returns The rule or null if not found\n */\n getRuleById(id: string): RuleRef {\n return this.rules.find((ref) => ref.id === id);\n }\n\n /**\n * Retrieves a RuleEvaluator function using its key name.\n * @param key Key name to look for\n * @returns RuleEvaluator or null if not found\n */\n getEvaluator(key: string): RuleEvaluator {\n if (key?.startsWith('!')) {\n const fn = this.evaluators[key.substring(1)];\n return (context: RuleContext, ...args: RuleParameter[]): boolean => !fn(context, ...args);\n }\n return this.evaluators[key];\n }\n\n /**\n * Evaluates a rule.\n * @param ruleId ID of the rule to evaluate\n * @param context Custom rule execution context.\n * @returns True if the rule passed, false otherwise\n */\n evaluateRule(ruleId: string, context?: RuleContext): boolean {\n const ruleRef = this.getRuleById(ruleId);\n context = context || this.context;\n\n if (ruleRef) {\n const evaluator = this.getEvaluator(ruleRef.type);\n if (evaluator) {\n return evaluator(context, ...ruleRef.parameters);\n }\n } else {\n const evaluator = this.getEvaluator(ruleId);\n if (evaluator) {\n return evaluator(context);\n }\n }\n return false;\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, Type, InjectionToken, inject } from '@angular/core';\nimport { RuleEvaluator, RuleRef, RuleContext } from '../config/rule.extensions';\nimport { ExtensionConfig } from '../config/extension.config';\nimport { ExtensionLoaderService } from './extension-loader.service';\nimport { RouteRef } from '../config/routing.extensions';\nimport { ActionRef } from '../config/action.extensions';\nimport * as core from '../evaluators/core.evaluators';\nimport { ComponentRegisterService } from './component-register.service';\nimport { RuleService } from './rule.service';\nimport { ExtensionElement } from '../config/extension-element';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { CanActivateFn } from '@angular/router';\n\n/**\n * The default extensions factory\n * @returns the list of extension json files\n */\nexport function extensionJsonsFactory() {\n return [];\n}\n\nexport const EXTENSION_JSONS = new InjectionToken<string[][]>('extension-jsons', {\n providedIn: 'root',\n factory: extensionJsonsFactory\n});\n\nexport const EXTENSION_JSON_VALUES = new InjectionToken<string[][]>('extension-jsons-values', {\n providedIn: 'root',\n factory: extensionJsonsFactory\n});\n\n/**\n * Provides the extension json values for the angular modules\n * @param jsons files to provide\n * @returns a provider section\n */\nexport function provideExtensionConfig(jsons: string[]) {\n return {\n provide: EXTENSION_JSONS,\n useValue: jsons,\n multi: true\n };\n}\n\n/**\n * Provides the extension json raw values for the angular modules\n * @param extensionConfigValue config value\n * @returns a provider section\n */\nexport function provideExtensionConfigValues(extensionConfigValue: ExtensionConfig[]) {\n return {\n provide: EXTENSION_JSON_VALUES,\n useValue: extensionConfigValue,\n multi: true\n };\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ExtensionService {\n protected loader = inject(ExtensionLoaderService);\n protected componentRegister = inject(ComponentRegisterService);\n protected ruleService = inject(RuleService);\n protected extensionJsons = inject(EXTENSION_JSONS);\n protected extensionJsonValues = inject(EXTENSION_JSON_VALUES);\n\n configPath = 'assets/app.extensions.json';\n pluginsPath = 'assets/plugins';\n\n routes: Array<RouteRef> = [];\n actions: Array<ActionRef> = [];\n features: Array<any> = [];\n authGuards: Record<string, CanActivateFn> = {};\n\n setup$: Observable<ExtensionConfig>;\n\n protected config: ExtensionConfig = null;\n protected onSetup$ = new BehaviorSubject<ExtensionConfig>(this.config);\n\n constructor() {\n this.setup$ = this.onSetup$.asObservable();\n }\n\n /**\n * Loads and registers an extension config file and plugins (specified by path properties).\n * @returns The loaded config data\n */\n async load(): Promise<ExtensionConfig> {\n const config = await this.loader.load(this.configPath, this.pluginsPath, this.extensionJsons.flat(), this.extensionJsonValues.flat() as any);\n\n this.setup(config);\n return config;\n }\n\n /**\n * Registers extensions from a config object.\n * @param config Object with config data\n */\n setup(config: ExtensionConfig) {\n if (!config) {\n console.warn('Extension configuration not found');\n return;\n }\n\n this.config = config;\n\n this.setEvaluators({\n 'core.every': core.every,\n 'core.some': core.some,\n 'core.not': core.not\n });\n\n this.actions = this.loader.getActions(config);\n this.routes = this.loader.getRoutes(config);\n this.features = this.loader.getFeatures(config);\n\n this.ruleService.setup(config);\n this.onSetup$.next(config);\n }\n\n /**\n * Gets features by key.\n * @param key Key string using dot notation or array of strings\n * @param defaultValue Default value returned if feature is not found, default is empty array\n * @returns Feature found by key\n */\n getFeature<T = any[]>(key: string | string[], defaultValue: any = []): T {\n const properties: string[] = Array.isArray(key) ? key : key.split('.');\n return properties.reduce((prev, curr) => prev?.[curr], this.features) || defaultValue;\n }\n\n getElements<T extends ExtensionElement>(key: string, fallback: Array<T> = []): Array<T> {\n return this.loader.getElements(this.config, key, fallback);\n }\n\n /**\n * Adds one or more new rule evaluators to the existing set.\n * @param values The new evaluators to add\n */\n setEvaluators(values: Record<string, RuleEvaluator>) {\n this.ruleService.setEvaluators(values);\n }\n\n /**\n * Adds one or more new auth guards to the existing set.\n * @param values The new auth guards to add\n */\n setAuthGuards(values: Record<string, CanActivateFn>) {\n if (values) {\n this.authGuards = Object.assign({}, this.authGuards, values);\n }\n }\n\n /**\n * Adds one or more new components to the existing set.\n * @param values The new components to add\n */\n setComponents(values: Record<string, Type<any>>) {\n this.componentRegister.setComponents(values);\n }\n\n /**\n * Retrieves a route using its ID value.\n * @param id The ID value to look for\n * @returns The route or null if not found\n */\n getRouteById(id: string): RouteRef {\n return this.routes.find((route) => route.id === id);\n }\n\n /**\n * Retrieves one or more auth guards using an array of ID values.\n * @param ids Array of ID value to look for\n * @returns Array of auth guards or empty array if none were found\n */\n getAuthGuards(ids: string[]): Array<CanActivateFn> {\n return (ids || []).map((id) => this.authGuards[id]).filter((guard) => guard);\n }\n\n /**\n * Retrieves an action using its ID value.\n * @param id The ID value to look for\n * @returns Action or null if not found\n */\n getActionById(id: string): ActionRef {\n return this.actions.find((action) => action.id === id);\n }\n\n /**\n * Retrieves a RuleEvaluator function using its key name.\n * @param key Key name to look for\n * @returns RuleEvaluator or null if not found\n */\n getEvaluator(key: string): RuleEvaluator {\n return this.ruleService.getEvaluator(key);\n }\n\n /**\n * Evaluates a rule.\n * @param ruleId ID of the rule to evaluate\n * @param context Custom rule execution context.\n * @returns True if the rule passed, false otherwise\n */\n evaluateRule(ruleId: string, context?: RuleContext): boolean {\n return this.ruleService.evaluateRule(ruleId, context);\n }\n\n /**\n * Retrieves a registered extension component using its ID value.\n * @param id The ID value to look for\n * @returns The component or null if not found\n */\n getComponentById<T>(id: string) {\n return this.componentRegister.getComponentById<T>(id);\n }\n\n /**\n * Retrieves a rule using its ID value.\n * @param id The ID value to look for\n * @returns The rule or null if not found\n */\n getRuleById(id: string): RuleRef {\n return this.ruleService.getRuleById(id);\n }\n\n /**\n * Runs a lightweight expression stored in a string.\n * @param value String containing the expression or literal value\n * @param context Parameter object for the expression with details of app state\n * @returns Result of evaluated expression, if found, or the literal value otherwise\n */\n runExpression(value: string | any, context?: any) {\n if (typeof value === 'string') {\n return this.evaluateExpression(value, context);\n } else {\n const duplicate = Object.assign({}, value);\n Object.keys(duplicate).forEach((key) => {\n duplicate[key] = this.evaluateExpression(duplicate[key], context);\n });\n return duplicate;\n }\n }\n\n private evaluateExpression(value: string, context?: any): string {\n const pattern = new RegExp(/\\$\\((.*\\)?)\\)/g);\n const matches = pattern.exec(value);\n\n if (matches && matches.length > 1) {\n const expression = matches[1];\n const fn = new Function('context', `return ${expression}`);\n const result = fn(context);\n\n return result;\n }\n return value;\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Injectable, inject } from '@angular/core';\nimport { ExtensionConfig, ExtensionRef } from '../config/extension.config';\nimport { ExtensionService } from '../services/extension.service';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { ViewerExtensionRef } from '../config/viewer.extensions';\nimport { DocumentListPresetRef } from '../config/document-list.extensions';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppExtensionService {\n protected extensionService = inject(ExtensionService);\n\n references$: Observable<ExtensionRef[]>;\n private readonly _references = new BehaviorSubject<ExtensionRef[]>([]);\n\n constructor() {\n this.references$ = this._references.asObservable();\n }\n\n async load() {\n const config = await this.extensionService.load();\n this.setup(config);\n }\n\n setup(config: ExtensionConfig) {\n if (!config) {\n return;\n }\n\n const references = (config.$references || []).filter((entry) => typeof entry === 'object').map((entry) => entry as ExtensionRef);\n this._references.next(references);\n }\n\n /**\n * Provides a collection of document list columns for the particular preset.\n * The result is filtered by the **disabled** state.\n * @param key Preset key.\n * @returns list of document list presets\n */\n getDocumentListPreset(key: string): DocumentListPresetRef[] {\n return this.extensionService.getElements<DocumentListPresetRef>(`features.documentList.${key}`).filter((entry) => !entry.disabled);\n }\n\n /**\n * Provides a list of the Viewer content extensions,\n * filtered by **disabled** state and **rules**.\n * @returns list of viewer extension references\n */\n getViewerExtensions(): ViewerExtensionRef[] {\n return this.extensionService\n .getElements<ViewerExtensionRef>('features.viewer.extensions')\n .filter((extension) => !this.isViewerExtensionDisabled(extension));\n }\n\n protected isViewerExtensionDisabled(extension: ViewerExtensionRef): boolean {\n if (extension) {\n if (extension.disabled) {\n return true;\n }\n\n if (extension.rules?.disabled) {\n return this.extensionService.evaluateRule(extension.rules.disabled);\n }\n }\n\n return false;\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Node } from '@alfresco/js-api';\n\nexport interface NavigationState {\n currentFolder?: Node;\n url?: string;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Group } from '@alfresco/js-api';\n\nexport interface ProfileState {\n [key: string]: any;\n\n id: string;\n isAdmin: boolean;\n firstName: string;\n lastName: string;\n userName?: string;\n initials?: string;\n groups?: Group[];\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { NodeEntry, SiteEntry } from '@alfresco/js-api';\n\nexport interface SelectionState {\n count: number;\n nodes: NodeEntry[];\n libraries: SiteEntry[];\n isEmpty: boolean;\n first?: NodeEntry;\n last?: NodeEntry;\n folder?: NodeEntry;\n file?: NodeEntry;\n library?: SiteEntry;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface RepositoryState {\n isAuditEnabled?: boolean;\n isQuickShareEnabled?: boolean;\n isReadOnly?: boolean;\n isThumbnailGenerationEnabled?: boolean;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Node } from '@alfresco/js-api';\n\nexport interface ViewerExtensionInterface {\n url: string;\n nameFile: string;\n node: Node;\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n Input,\n ComponentRef,\n OnInit,\n ViewChild,\n ViewContainerRef,\n OnDestroy,\n OnChanges,\n EventEmitter,\n Output,\n DestroyRef,\n inject\n} from '@angular/core';\nimport { ExtensionService } from '../../services/extension.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'adf-preview-extension',\n template: `<div #content></div>`\n})\nexport class PreviewExtensionComponent implements OnInit, OnChanges, OnDestroy {\n private readonly extensionService = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n /** ID string of the component to preview. */\n @Input()\n id: string;\n\n /** Identifier of a node that is opened by the viewer. */\n @Input()\n nodeId: string = null;\n\n /** URL of the content in the repository. */\n @Input()\n url: string;\n\n /** File extension (.jpg, .png, etc) for the viewer. */\n @Input()\n extension: string;\n\n @Output()\n contentLoaded = new EventEmitter<void>();\n\n private readonly destroyRef = inject(DestroyRef);\n\n private componentRef: ComponentRef<any>;\n\n ngOnInit() {\n if (!this.id) {\n return;\n }\n\n const componentType = this.extensionService.getComponentById(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n this.updateInstance();\n }\n }\n\n ngOnChanges() {\n this.updateInstance();\n }\n\n ngOnDestroy() {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n private updateInstance() {\n if (this.componentRef?.instance) {\n this.componentRef.setInput('url', this.url);\n this.componentRef.setInput('extension', this.extension);\n this.componentRef.setInput('nodeId', this.nodeId);\n\n if (this.componentRef.instance?.contentLoaded) {\n this.componentRef.instance.contentLoaded.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.contentLoaded.emit();\n });\n }\n }\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n Input,\n OnInit,\n OnDestroy,\n ViewChild,\n ViewContainerRef,\n ComponentRef,\n OnChanges,\n SimpleChanges,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n inject\n} from '@angular/core';\nimport { ExtensionService } from '../../services/extension.service';\n\n@Component({\n selector: 'adf-dynamic-column',\n template: `<ng-container #content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'adf-dynamic-column' },\n styles: [\n `\n .adf-dynamic-column {\n display: flex;\n align-items: center;\n width: inherit;\n }\n `\n ]\n})\nexport class DynamicColumnComponent implements OnInit, OnChanges, OnDestroy {\n private readonly extensions = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n @Input()\n id: string;\n\n @Input()\n context: any;\n\n private componentRef: ComponentRef<any>;\n\n ngOnInit() {\n const componentType = this.extensions.getComponentById(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n this.updateInstance();\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.node) {\n this.updateInstance();\n }\n }\n\n ngOnDestroy() {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n private updateInstance() {\n if (this.componentRef?.instance) {\n this.componentRef.instance.context = this.context;\n }\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n Input,\n ComponentRef,\n ViewChild,\n ViewContainerRef,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n AfterViewInit,\n inject\n} from '@angular/core';\nimport { ExtensionService } from '../../services/extension.service';\nimport { ExtensionComponent } from '../../services/component-register.service';\nimport { MatMenuItem } from '@angular/material/menu';\n\n// cSpell:words lifecycle\n@Component({\n selector: 'adf-dynamic-component',\n template: `<div #content></div>`\n})\nexport class DynamicExtensionComponent implements OnChanges, OnDestroy, AfterViewInit {\n private readonly extensions = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n /** Unique ID string for the component to show. */\n @Input() id: string;\n\n /** Data for the dynamically-loaded component instance. */\n @Input() data: any;\n\n /** Provides the menu item of dynamically-loaded component instance. */\n menuItem: MatMenuItem;\n\n private componentRef: ComponentRef<ExtensionComponent>;\n private loaded: boolean = false;\n\n ngOnChanges(changes: SimpleChanges) {\n if (!this.loaded) {\n this.loadComponent();\n this.loaded = true;\n }\n\n if (changes.data) {\n this.data = changes.data.currentValue;\n }\n\n this.updateInstance();\n this.proxy('ngOnChanges', changes);\n }\n\n ngOnDestroy() {\n if (this.componentCreated()) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n ngAfterViewInit() {\n this.menuItem = this.componentRef?.instance?.menuItem;\n }\n\n private loadComponent() {\n const componentType = this.extensions.getComponentById<ExtensionComponent>(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n }\n }\n\n private updateInstance() {\n if (this.componentCreated()) {\n this.componentRef.instance.data = this.data;\n }\n }\n\n private proxy(lifecycleMethod: string, ...args: any[]) {\n if (this.componentCreated() && this.lifecycleHookIsImplemented(lifecycleMethod)) {\n // eslint-disable-next-line prefer-spread\n this.componentRef.instance[lifecycleMethod].apply(this.componentRef.instance, args);\n }\n }\n\n private componentCreated(): boolean {\n return !!this.componentRef && !!this.componentRef.instance;\n }\n\n private lifecycleHookIsImplemented(lifecycleMethod: string): boolean {\n return !!this.componentRef.instance[lifecycleMethod];\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Component, Input, OnInit, OnDestroy, ViewChild, ViewContainerRef, ComponentRef, OnChanges, SimpleChanges, inject } from '@angular/core';\nimport { Node } from '@alfresco/js-api';\nimport { ExtensionService } from '../../services/extension.service';\n\n@Component({\n selector: 'adf-dynamic-tab',\n template: `<div #content></div>`\n})\nexport class DynamicTabComponent implements OnInit, OnChanges, OnDestroy {\n private readonly extensions = inject(ExtensionService);\n\n @ViewChild('content', { read: ViewContainerRef, static: true })\n content: ViewContainerRef;\n\n /** Unique ID string for the component to show. */\n @Input()\n id: string;\n\n @Input()\n node: Node;\n\n private componentRef: ComponentRef<any>;\n\n ngOnInit() {\n const componentType = this.extensions.getComponentById(this.id);\n if (componentType) {\n this.content.clear();\n this.componentRef = this.content.createComponent(componentType, { index: 0 });\n this.updateInstance();\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.node) {\n this.updateInstance();\n }\n }\n\n ngOnDestroy() {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = null;\n }\n }\n\n private updateInstance() {\n if (this.componentRef?.instance) {\n this.componentRef.instance.node = this.node;\n }\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './viewer/viewer-extension.interface';\nexport * from './viewer/preview-extension.component';\nexport * from './dynamic-column/dynamic-column.component';\nexport * from './dynamic-component/dynamic.component';\nexport * from './dynamic-tab/dynamic-tab.component';\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { NgModule, ModuleWithProviders, inject, provideAppInitializer } from '@angular/core';\nimport { AppExtensionService } from './services/app-extension.service';\n\n/** @deprecated use provideAppExtensions() api instead */\n@NgModule()\nexport class ExtensionsModule {\n static forRoot(): ModuleWithProviders<ExtensionsModule> {\n return {\n ngModule: ExtensionsModule,\n providers: [\n provideAppInitializer(() => {\n const appExtensionService = inject(AppExtensionService);\n return appExtensionService.load();\n })\n ]\n };\n }\n\n /**\n * @deprecated use provideAppExtensions() api instead\n * @returns Module with providers\n */\n static forChild(): ModuleWithProviders<ExtensionsModule> {\n return {\n ngModule: ExtensionsModule\n };\n }\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { EnvironmentProviders, inject, provideAppInitializer, Provider, Type } from '@angular/core';\nimport { AppExtensionService } from './services/app-extension.service';\nimport { ExtensionService } from './services/extension.service';\nimport { RuleEvaluator } from './config/rule.extensions';\nimport { CanActivateFn } from '@angular/router';\n\n/**\n * Provides all necessary entries for the app extensibility\n * @returns list of providers\n */\nexport function provideAppExtensions(): (Provider | EnvironmentProviders)[] {\n return [\n provideAppInitializer(() => {\n const appExtensionService = inject(AppExtensionService);\n return appExtensionService.load();\n })\n ];\n}\n\n/**\n * Provides a way to register extension entities in a single API\n *\n * Example:\n * ```typescript\n * providers: [\n * provideExtensions({\n * authGuards: {\n * auth1: guard1,\n * auth2: guard2\n * },\n * evaluators: {\n * eval1: evaluator1,\n * eval2: evaluator2\n * },\n * components: {\n * component: component1\n * }\n * });\n * ]\n * ```\n * @param params Parameters for the api\n * @param params.authGuards Auth guards to register\n * @param params.evaluators Rule evaluators to register\n * @param params.components Components to register\n * @returns list of Angular providers\n */\nexport function provideExtensions(params: {\n authGuards?: Record<string, CanActivateFn>;\n evaluators?: Record<string, RuleEvaluator>;\n components?: Record<string, Type<any>>;\n}) {\n return [\n provideAppInitializer(() => {\n const service = inject(ExtensionService);\n\n if (params) {\n if (params.authGuards) {\n service.setAuthGuards(params.authGuards);\n }\n if (params.evaluators) {\n service.setEvaluators(params.evaluators);\n }\n if (params.components) {\n service.setComponents(params.components);\n }\n }\n\n return Promise.resolve();\n })\n ];\n}\n","/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './lib/config/action.extensions';\nexport * from './lib/config/document-list.extensions';\nexport * from './lib/config/extension-element';\nexport * from './lib/config/extension-utils';\nexport * from './lib/config/extension.config';\nexport * from './lib/config/icon.extensions';\nexport * from './lib/config/navbar.extensions';\nexport * from './lib/config/permission.extensions';\nexport * from './lib/config/routing.extensions';\nexport * from './lib/config/rule.extensions';\nexport * from './lib/config/sidebar.extensions';\nexport * from './lib/config/viewer.extensions';\n\nexport * from './lib/services/extension-loader.service';\nexport * from './lib/services/extension.service';\nexport * from './lib/services/component-register.service';\nexport * from './lib/services/app-extension.service';\nexport * from './lib/services/rule.service';\n\nexport * from './lib/store/states/navigation.state';\nexport * from './lib/store/states/profile.state';\nexport * from './lib/store/states/selection.state';\nexport * from './lib/store/states/repository.state';\n\nexport * from './lib/components/public-api';\nexport * from './lib/extensions.module';\nexport * from './lib/providers';\n","/**\n * Generated bund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ACJ;AACL;;ACvFA;;;;;;;;;;;;;;;AAeG;;ACfH;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { CanActivateFn } from '@angular/router';
7
7
 
8
8
  /*!
9
9
  * @license
10
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
10
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
11
11
  *
12
12
  * Licensed under the Apache License, Version 2.0 (the "License");
13
13
  * you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ interface ExtensionElement {
29
29
 
30
30
  /*!
31
31
  * @license
32
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
32
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
33
33
  *
34
34
  * Licensed under the Apache License, Version 2.0 (the "License");
35
35
  * you may not use this file except in compliance with the License.
@@ -80,7 +80,7 @@ interface ActionRef {
80
80
 
81
81
  /*!
82
82
  * @license
83
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
83
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
84
84
  *
85
85
  * Licensed under the Apache License, Version 2.0 (the "License");
86
86
  * you may not use this file except in compliance with the License.
@@ -130,7 +130,7 @@ interface DocumentListPresetRef extends ExtensionElement {
130
130
 
131
131
  /*!
132
132
  * @license
133
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
133
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
134
134
  *
135
135
  * Licensed under the Apache License, Version 2.0 (the "License");
136
136
  * you may not use this file except in compliance with the License.
@@ -161,7 +161,7 @@ declare const mergeArrays: (left: any[], right: any[]) => any[];
161
161
 
162
162
  /*!
163
163
  * @license
164
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
164
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
165
165
  *
166
166
  * Licensed under the Apache License, Version 2.0 (the "License");
167
167
  * you may not use this file except in compliance with the License.
@@ -189,7 +189,7 @@ interface RouteRef {
189
189
 
190
190
  /*!
191
191
  * @license
192
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
192
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
193
193
  *
194
194
  * Licensed under the Apache License, Version 2.0 (the "License");
195
195
  * you may not use this file except in compliance with the License.
@@ -218,7 +218,7 @@ interface SelectionState {
218
218
 
219
219
  /*!
220
220
  * @license
221
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
221
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
222
222
  *
223
223
  * Licensed under the Apache License, Version 2.0 (the "License");
224
224
  * you may not use this file except in compliance with the License.
@@ -240,7 +240,7 @@ interface NavigationState {
240
240
 
241
241
  /*!
242
242
  * @license
243
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
243
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
244
244
  *
245
245
  * Licensed under the Apache License, Version 2.0 (the "License");
246
246
  * you may not use this file except in compliance with the License.
@@ -260,7 +260,7 @@ interface NodePermissions {
260
260
 
261
261
  /*!
262
262
  * @license
263
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
263
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
264
264
  *
265
265
  * Licensed under the Apache License, Version 2.0 (the "License");
266
266
  * you may not use this file except in compliance with the License.
@@ -288,7 +288,7 @@ interface ProfileState {
288
288
 
289
289
  /*!
290
290
  * @license
291
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
291
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
292
292
  *
293
293
  * Licensed under the Apache License, Version 2.0 (the "License");
294
294
  * you may not use this file except in compliance with the License.
@@ -326,7 +326,7 @@ interface RuleParameter {
326
326
 
327
327
  /*!
328
328
  * @license
329
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
329
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
330
330
  *
331
331
  * Licensed under the Apache License, Version 2.0 (the "License");
332
332
  * you may not use this file except in compliance with the License.
@@ -365,7 +365,7 @@ interface ExtensionConfig extends ExtensionRef {
365
365
 
366
366
  /*!
367
367
  * @license
368
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
368
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
369
369
  *
370
370
  * Licensed under the Apache License, Version 2.0 (the "License");
371
371
  * you may not use this file except in compliance with the License.
@@ -386,7 +386,7 @@ interface IconRef extends ExtensionElement {
386
386
 
387
387
  /*!
388
388
  * @license
389
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
389
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
390
390
  *
391
391
  * Licensed under the Apache License, Version 2.0 (the "License");
392
392
  * you may not use this file except in compliance with the License.
@@ -422,7 +422,7 @@ interface NavBarLinkRef extends ExtensionElement {
422
422
 
423
423
  /*!
424
424
  * @license
425
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
425
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
426
426
  *
427
427
  * Licensed under the Apache License, Version 2.0 (the "License");
428
428
  * you may not use this file except in compliance with the License.
@@ -449,7 +449,7 @@ interface SidebarTabRef extends ExtensionElement {
449
449
 
450
450
  /*!
451
451
  * @license
452
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
452
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
453
453
  *
454
454
  * Licensed under the Apache License, Version 2.0 (the "License");
455
455
  * you may not use this file except in compliance with the License.
@@ -505,7 +505,7 @@ declare class ExtensionLoaderService {
505
505
 
506
506
  /*!
507
507
  * @license
508
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
508
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
509
509
  *
510
510
  * Licensed under the Apache License, Version 2.0 (the "License");
511
511
  * you may not use this file except in compliance with the License.
@@ -571,7 +571,7 @@ declare class RuleService {
571
571
 
572
572
  /*!
573
573
  * @license
574
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
574
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
575
575
  *
576
576
  * Licensed under the Apache License, Version 2.0 (the "License");
577
577
  * you may not use this file except in compliance with the License.
@@ -744,7 +744,7 @@ declare class AppExtensionService {
744
744
 
745
745
  /*!
746
746
  * @license
747
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
747
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
748
748
  *
749
749
  * Licensed under the Apache License, Version 2.0 (the "License");
750
750
  * you may not use this file except in compliance with the License.
@@ -767,7 +767,7 @@ interface RepositoryState {
767
767
 
768
768
  /*!
769
769
  * @license
770
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
770
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
771
771
  *
772
772
  * Licensed under the Apache License, Version 2.0 (the "License");
773
773
  * you may not use this file except in compliance with the License.
@@ -790,7 +790,7 @@ interface ViewerExtensionInterface {
790
790
 
791
791
  /*!
792
792
  * @license
793
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
793
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
794
794
  *
795
795
  * Licensed under the Apache License, Version 2.0 (the "License");
796
796
  * you may not use this file except in compliance with the License.
@@ -829,7 +829,7 @@ declare class PreviewExtensionComponent implements OnInit, OnChanges, OnDestroy
829
829
 
830
830
  /*!
831
831
  * @license
832
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
832
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
833
833
  *
834
834
  * Licensed under the Apache License, Version 2.0 (the "License");
835
835
  * you may not use this file except in compliance with the License.
@@ -860,7 +860,7 @@ declare class DynamicColumnComponent implements OnInit, OnChanges, OnDestroy {
860
860
 
861
861
  /*!
862
862
  * @license
863
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
863
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
864
864
  *
865
865
  * Licensed under the Apache License, Version 2.0 (the "License");
866
866
  * you may not use this file except in compliance with the License.
@@ -900,7 +900,7 @@ declare class DynamicExtensionComponent implements OnChanges, OnDestroy, AfterVi
900
900
 
901
901
  /*!
902
902
  * @license
903
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
903
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
904
904
  *
905
905
  * Licensed under the Apache License, Version 2.0 (the "License");
906
906
  * you may not use this file except in compliance with the License.
@@ -932,7 +932,7 @@ declare class DynamicTabComponent implements OnInit, OnChanges, OnDestroy {
932
932
 
933
933
  /*!
934
934
  * @license
935
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
935
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
936
936
  *
937
937
  * Licensed under the Apache License, Version 2.0 (the "License");
938
938
  * you may not use this file except in compliance with the License.
@@ -962,7 +962,7 @@ declare class ExtensionsModule {
962
962
 
963
963
  /*!
964
964
  * @license
965
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
965
+ * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.
966
966
  *
967
967
  * Licensed under the Apache License, Version 2.0 (the "License");
968
968
  * you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-extensions",
3
3
  "description": "Provides extensibility support for ADF applications.",
4
- "version": "9.2.0-30294010949",
4
+ "version": "9.2.0-30345919006",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Hyland Software, Inc. and its affiliates",
7
7
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "peerDependencies": {
15
15
  "@angular/common": ">=20.3.25",
16
16
  "@angular/core": ">=20.3.25",
17
- "@alfresco/js-api": ">=10.2.0-30294010949"
17
+ "@alfresco/js-api": ">=10.2.0-30345919006"
18
18
  },
19
19
  "keywords": [
20
20
  "extensions",