@alfresco/aca-shared 5.1.1 → 6.0.0-11114941325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/esm2022/lib/components/document-base-page/document-base-page.component.mjs +210 -0
  2. package/esm2022/lib/components/generic-error/generic-error.component.mjs +42 -0
  3. package/esm2022/lib/components/info-drawer/info-drawer.component.mjs +141 -0
  4. package/esm2022/lib/components/locked-by/locked-by.component.mjs +57 -0
  5. package/esm2022/lib/components/open-in-app/open-in-app.component.mjs +73 -0
  6. package/esm2022/lib/components/page-layout/page-layout-content.component.mjs +49 -0
  7. package/esm2022/lib/components/page-layout/page-layout-error.component.mjs +43 -0
  8. package/esm2022/lib/components/page-layout/page-layout-header.component.mjs +43 -0
  9. package/esm2022/lib/components/page-layout/page-layout.component.mjs +64 -0
  10. package/esm2022/lib/components/page-layout/page-layout.module.mjs +43 -0
  11. package/esm2022/lib/components/toolbar/toolbar-action/toolbar-action.component.mjs +63 -0
  12. package/esm2022/lib/components/toolbar/toolbar-button/toolbar-button.component.mjs +79 -0
  13. package/esm2022/lib/components/toolbar/toolbar-menu/toolbar-menu.component.mjs +92 -0
  14. package/esm2022/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.mjs +76 -0
  15. package/esm2022/lib/components/toolbar/toolbar.component.mjs +46 -0
  16. package/esm2022/lib/deprecated/shared-toolbar.module.mjs +44 -0
  17. package/esm2022/lib/deprecated/shared.module.mjs +45 -0
  18. package/esm2022/lib/directives/contextmenu/contextmenu.directive.mjs +106 -0
  19. package/esm2022/lib/directives/pagination.directive.mjs +59 -0
  20. package/esm2022/lib/services/aca-mobile-app-switcher.service.mjs +130 -0
  21. package/esm2022/lib/services/app-hook.service.mjs +78 -0
  22. package/esm2022/lib/services/app-settings.service.mjs +139 -0
  23. package/esm2022/lib/services/app.extension.service.mjs +481 -0
  24. package/esm2022/lib/services/app.service.mjs +239 -0
  25. package/esm2022/lib/services/auto-download.service.mjs +59 -0
  26. package/esm2022/lib/services/content-api.service.mjs +281 -0
  27. package/esm2022/lib/services/node-permission.service.mjs +88 -0
  28. package/esm2022/lib/services/router.extension.service.mjs +108 -0
  29. package/esm2022/lib/services/user-profile.service.mjs +76 -0
  30. package/esm2022/lib/testing/lib-testing-module.mjs +163 -0
  31. package/esm2022/store/actions/app.actions.mjs +116 -0
  32. package/{esm2020/store/actions/search-ai.actions.mjs → esm2022/store/actions/contextmenu.actions.mjs} +7 -16
  33. package/esm2022/store/actions/library.actions.mjs +67 -0
  34. package/esm2022/store/actions/metadata-aspect.actions.mjs +32 -0
  35. package/esm2022/store/actions/node.actions.mjs +217 -0
  36. package/esm2022/store/actions/router.actions.mjs +56 -0
  37. package/esm2022/store/actions/search-ai.actions.mjs +43 -0
  38. package/esm2022/store/actions/search.actions.mjs +41 -0
  39. package/esm2022/store/actions/snackbar.actions.mjs +68 -0
  40. package/esm2022/store/actions/template.actions.mjs +45 -0
  41. package/esm2022/store/actions/upload.actions.mjs +53 -0
  42. package/esm2022/store/actions/viewer.actions.mjs +93 -0
  43. package/esm2022/store/effects/router.effects.mjs +110 -0
  44. package/esm2022/store/effects/snackbar.effects.mjs +80 -0
  45. package/{fesm2020 → fesm2022}/alfresco-aca-shared-store.mjs +205 -140
  46. package/fesm2022/alfresco-aca-shared-store.mjs.map +1 -0
  47. package/{fesm2020 → fesm2022}/alfresco-aca-shared.mjs +364 -289
  48. package/fesm2022/alfresco-aca-shared.mjs.map +1 -0
  49. package/lib/components/document-base-page/document-base-page.component.d.ts +1 -1
  50. package/lib/components/generic-error/generic-error.component.d.ts +1 -1
  51. package/lib/components/info-drawer/info-drawer.component.d.ts +1 -1
  52. package/lib/components/locked-by/locked-by.component.d.ts +1 -1
  53. package/lib/components/page-layout/page-layout-content.component.d.ts +1 -1
  54. package/lib/components/page-layout/page-layout.component.d.ts +1 -1
  55. package/lib/components/toolbar/toolbar-action/toolbar-action.component.d.ts +1 -1
  56. package/lib/components/toolbar/toolbar-button/toolbar-button.component.d.ts +1 -1
  57. package/lib/components/toolbar/toolbar-menu/toolbar-menu.component.d.ts +1 -1
  58. package/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.d.ts +1 -1
  59. package/lib/components/toolbar/toolbar.component.d.ts +1 -1
  60. package/lib/directives/contextmenu/contextmenu.directive.d.ts +1 -1
  61. package/lib/services/app-hook.service.d.ts +6 -6
  62. package/lib/services/app.service.d.ts +1 -1
  63. package/package.json +15 -25
  64. package/store/effects/router.effects.d.ts +1 -5
  65. package/store/effects/snackbar.effects.d.ts +0 -29
  66. package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +0 -206
  67. package/esm2020/lib/components/generic-error/generic-error.component.mjs +0 -43
  68. package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +0 -132
  69. package/esm2020/lib/components/locked-by/locked-by.component.mjs +0 -54
  70. package/esm2020/lib/components/open-in-app/open-in-app.component.mjs +0 -68
  71. package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +0 -50
  72. package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +0 -42
  73. package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +0 -42
  74. package/esm2020/lib/components/page-layout/page-layout.component.mjs +0 -61
  75. package/esm2020/lib/components/page-layout/page-layout.module.mjs +0 -42
  76. package/esm2020/lib/components/toolbar/toolbar-action/toolbar-action.component.mjs +0 -58
  77. package/esm2020/lib/components/toolbar/toolbar-button/toolbar-button.component.mjs +0 -74
  78. package/esm2020/lib/components/toolbar/toolbar-menu/toolbar-menu.component.mjs +0 -87
  79. package/esm2020/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.mjs +0 -71
  80. package/esm2020/lib/components/toolbar/toolbar.component.mjs +0 -44
  81. package/esm2020/lib/deprecated/shared-toolbar.module.mjs +0 -43
  82. package/esm2020/lib/deprecated/shared.module.mjs +0 -44
  83. package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +0 -104
  84. package/esm2020/lib/directives/pagination.directive.mjs +0 -55
  85. package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +0 -129
  86. package/esm2020/lib/services/app-hook.service.mjs +0 -79
  87. package/esm2020/lib/services/app-settings.service.mjs +0 -140
  88. package/esm2020/lib/services/app.extension.service.mjs +0 -462
  89. package/esm2020/lib/services/app.service.mjs +0 -221
  90. package/esm2020/lib/services/auto-download.service.mjs +0 -60
  91. package/esm2020/lib/services/content-api.service.mjs +0 -268
  92. package/esm2020/lib/services/node-permission.service.mjs +0 -89
  93. package/esm2020/lib/services/router.extension.service.mjs +0 -105
  94. package/esm2020/lib/services/user-profile.service.mjs +0 -77
  95. package/esm2020/lib/testing/lib-testing-module.mjs +0 -161
  96. package/esm2020/store/actions/app.actions.mjs +0 -108
  97. package/esm2020/store/actions/contextmenu.actions.mjs +0 -31
  98. package/esm2020/store/actions/library.actions.mjs +0 -63
  99. package/esm2020/store/actions/metadata-aspect.actions.mjs +0 -31
  100. package/esm2020/store/actions/node.actions.mjs +0 -188
  101. package/esm2020/store/actions/router.actions.mjs +0 -54
  102. package/esm2020/store/actions/search.actions.mjs +0 -41
  103. package/esm2020/store/actions/snackbar.actions.mjs +0 -57
  104. package/esm2020/store/actions/template.actions.mjs +0 -47
  105. package/esm2020/store/actions/upload.actions.mjs +0 -49
  106. package/esm2020/store/actions/viewer.actions.mjs +0 -81
  107. package/esm2020/store/effects/router.effects.mjs +0 -114
  108. package/esm2020/store/effects/snackbar.effects.mjs +0 -85
  109. package/fesm2015/alfresco-aca-shared-rules.mjs +0 -795
  110. package/fesm2015/alfresco-aca-shared-rules.mjs.map +0 -1
  111. package/fesm2015/alfresco-aca-shared-store.mjs +0 -1278
  112. package/fesm2015/alfresco-aca-shared-store.mjs.map +0 -1
  113. package/fesm2015/alfresco-aca-shared.mjs +0 -3278
  114. package/fesm2015/alfresco-aca-shared.mjs.map +0 -1
  115. package/fesm2020/alfresco-aca-shared-store.mjs.map +0 -1
  116. package/fesm2020/alfresco-aca-shared.mjs.map +0 -1
  117. /package/{esm2020 → esm2022}/alfresco-aca-shared.mjs +0 -0
  118. /package/{esm2020 → esm2022}/lib/adf-extensions/extensions-data-loader.guard.mjs +0 -0
  119. /package/{esm2020 → esm2022}/lib/components/document-base-page/document-base-page.service.mjs +0 -0
  120. /package/{esm2020 → esm2022}/lib/constants/index.mjs +0 -0
  121. /package/{esm2020 → esm2022}/lib/constants/mime-types.mjs +0 -0
  122. /package/{esm2020 → esm2022}/lib/models/types.mjs +0 -0
  123. /package/{esm2020 → esm2022}/lib/models/viewer.rules.mjs +0 -0
  124. /package/{esm2020 → esm2022}/lib/routing/plugin-enabled.guard.mjs +0 -0
  125. /package/{esm2020 → esm2022}/lib/routing/shared.guard.mjs +0 -0
  126. /package/{esm2020 → esm2022}/lib/utils/node.utils.mjs +0 -0
  127. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  128. /package/{esm2020 → esm2022}/rules/alfresco-aca-shared-rules.mjs +0 -0
  129. /package/{esm2020 → esm2022}/rules/app.rules.mjs +0 -0
  130. /package/{esm2020 → esm2022}/rules/navigation.rules.mjs +0 -0
  131. /package/{esm2020 → esm2022}/rules/public-api.mjs +0 -0
  132. /package/{esm2020 → esm2022}/rules/repository.rules.mjs +0 -0
  133. /package/{esm2020 → esm2022}/rules/user.rules.mjs +0 -0
  134. /package/{esm2020 → esm2022}/store/actions/app-action-types.mjs +0 -0
  135. /package/{esm2020 → esm2022}/store/actions/context-menu-action-types.mjs +0 -0
  136. /package/{esm2020 → esm2022}/store/actions/router-action-types.mjs +0 -0
  137. /package/{esm2020 → esm2022}/store/actions/template-action-types.mjs +0 -0
  138. /package/{esm2020 → esm2022}/store/alfresco-aca-shared-store.mjs +0 -0
  139. /package/{esm2020 → esm2022}/store/models/ai-search-by-term-payload.mjs +0 -0
  140. /package/{esm2020 → esm2022}/store/models/delete-status.model.mjs +0 -0
  141. /package/{esm2020 → esm2022}/store/models/deleted-node-info.model.mjs +0 -0
  142. /package/{esm2020 → esm2022}/store/models/modal-configuration.mjs +0 -0
  143. /package/{esm2020 → esm2022}/store/models/node-info.model.mjs +0 -0
  144. /package/{esm2020 → esm2022}/store/models/search-option.model.mjs +0 -0
  145. /package/{esm2020 → esm2022}/store/public-api.mjs +0 -0
  146. /package/{esm2020 → esm2022}/store/selectors/app.selectors.mjs +0 -0
  147. /package/{esm2020 → esm2022}/store/states/app.state.mjs +0 -0
  148. /package/{fesm2020 → fesm2022}/alfresco-aca-shared-rules.mjs +0 -0
  149. /package/{fesm2020 → fesm2022}/alfresco-aca-shared-rules.mjs.map +0 -0
@@ -1,15 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, Injectable, InjectionToken } from '@angular/core';
3
- import * as i2 from '@angular/router';
4
- import * as i1 from '@ngrx/effects';
5
- import { createEffect, ofType } from '@ngrx/effects';
3
+ import { Router } from '@angular/router';
4
+ import { Actions, createEffect, ofType } from '@ngrx/effects';
6
5
  import { map } from 'rxjs/operators';
7
- import * as i3 from '@angular/common';
8
- import * as i4 from '@alfresco/adf-core';
9
- import { NotificationService, SnackbarContentComponent } from '@alfresco/adf-core';
10
- import * as i3$1 from '@angular/material/snack-bar';
11
- import * as i1$1 from '@ngrx/store';
12
- import { createSelector } from '@ngrx/store';
6
+ import { Location } from '@angular/common';
7
+ import { NotificationService, TranslationService, SnackbarContentComponent } from '@alfresco/adf-core';
8
+ import { MatSnackBar } from '@angular/material/snack-bar';
9
+ import { Store, createSelector } from '@ngrx/store';
13
10
 
14
11
  /*!
15
12
  * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -168,86 +165,94 @@ var TemplateActionTypes;
168
165
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
169
166
  */
170
167
  class SetCurrentFolderAction {
168
+ payload;
169
+ type = AppActionTypes.SetCurrentFolder;
171
170
  constructor(payload) {
172
171
  this.payload = payload;
173
- this.type = AppActionTypes.SetCurrentFolder;
174
172
  }
175
173
  }
176
174
  class SetCurrentNodeVersionAction {
175
+ payload;
176
+ type = AppActionTypes.SetCurrentVersion;
177
177
  constructor(payload) {
178
178
  this.payload = payload;
179
- this.type = AppActionTypes.SetCurrentVersion;
180
179
  }
181
180
  }
182
181
  class SetCurrentUrlAction {
182
+ payload;
183
+ type = AppActionTypes.SetCurrentUrl;
183
184
  constructor(payload) {
184
185
  this.payload = payload;
185
- this.type = AppActionTypes.SetCurrentUrl;
186
186
  }
187
187
  }
188
188
  class SetUserProfileAction {
189
+ payload;
190
+ type = AppActionTypes.SetUserProfile;
189
191
  constructor(payload) {
190
192
  this.payload = payload;
191
- this.type = AppActionTypes.SetUserProfile;
192
193
  }
193
194
  }
194
195
  class ToggleInfoDrawerAction {
195
- constructor() {
196
- this.type = AppActionTypes.ToggleInfoDrawer;
197
- }
196
+ type = AppActionTypes.ToggleInfoDrawer;
198
197
  }
199
198
  /** @deprecated use @alfresco/adf-content-services/DocumentListService.reload() instead */
200
199
  class ReloadDocumentListAction {
200
+ payload;
201
+ type = AppActionTypes.ReloadDocumentList;
201
202
  constructor(payload) {
202
203
  this.payload = payload;
203
- this.type = AppActionTypes.ReloadDocumentList;
204
204
  }
205
205
  }
206
206
  class ResetSelectionAction {
207
+ payload;
208
+ type = AppActionTypes.ResetSelection;
207
209
  constructor(payload) {
208
210
  this.payload = payload;
209
- this.type = AppActionTypes.ResetSelection;
210
211
  }
211
212
  }
212
213
  class SetInfoDrawerStateAction {
214
+ payload;
215
+ type = AppActionTypes.SetInfoDrawerState;
213
216
  constructor(payload) {
214
217
  this.payload = payload;
215
- this.type = AppActionTypes.SetInfoDrawerState;
216
218
  }
217
219
  }
218
220
  class SetRepositoryInfoAction {
221
+ payload;
222
+ type = AppActionTypes.SetRepositoryInfo;
219
223
  constructor(payload) {
220
224
  this.payload = payload;
221
- this.type = AppActionTypes.SetRepositoryInfo;
222
225
  }
223
226
  }
224
227
  class SetFileUploadingDialogAction {
228
+ payload;
229
+ type = AppActionTypes.SetFileUploadingDialog;
225
230
  constructor(payload) {
226
231
  this.payload = payload;
227
- this.type = AppActionTypes.SetFileUploadingDialog;
228
232
  }
229
233
  }
230
234
  class ShowInfoDrawerPreviewAction {
231
- constructor() {
232
- this.type = AppActionTypes.ShowInfoDrawerPreview;
233
- }
235
+ type = AppActionTypes.ShowInfoDrawerPreview;
234
236
  }
235
237
  class SetInfoDrawerPreviewStateAction {
238
+ payload;
239
+ type = AppActionTypes.SetInfoDrawerPreviewState;
236
240
  constructor(payload) {
237
241
  this.payload = payload;
238
- this.type = AppActionTypes.SetInfoDrawerPreviewState;
239
242
  }
240
243
  }
241
244
  class ShowLoaderAction {
245
+ payload;
246
+ type = AppActionTypes.ShowLoaderAction;
242
247
  constructor(payload) {
243
248
  this.payload = payload;
244
- this.type = AppActionTypes.ShowLoaderAction;
245
249
  }
246
250
  }
247
251
  class SetSearchItemsTotalCountAction {
252
+ payload;
253
+ type = AppActionTypes.SetSearchItemsTotalCount;
248
254
  constructor(payload) {
249
255
  this.payload = payload;
250
- this.type = AppActionTypes.SetSearchItemsTotalCount;
251
256
  }
252
257
  }
253
258
 
@@ -283,34 +288,38 @@ var LibraryActionTypes;
283
288
  LibraryActionTypes["Leave"] = "LEAVE_LIBRARY";
284
289
  })(LibraryActionTypes || (LibraryActionTypes = {}));
285
290
  class DeleteLibraryAction {
291
+ payload;
292
+ type = LibraryActionTypes.Delete;
286
293
  constructor(payload) {
287
294
  this.payload = payload;
288
- this.type = LibraryActionTypes.Delete;
289
295
  }
290
296
  }
291
297
  class CreateLibraryAction {
292
- constructor() {
293
- this.type = LibraryActionTypes.Create;
294
- }
298
+ type = LibraryActionTypes.Create;
295
299
  }
296
300
  class NavigateLibraryAction {
301
+ payload;
302
+ route;
303
+ type = LibraryActionTypes.Navigate;
297
304
  constructor(payload, route) {
298
305
  this.payload = payload;
299
306
  this.route = route;
300
- this.type = LibraryActionTypes.Navigate;
301
307
  }
302
308
  }
303
309
  class UpdateLibraryAction {
310
+ payload;
311
+ type = LibraryActionTypes.Update;
304
312
  constructor(payload) {
305
313
  this.payload = payload;
306
- this.type = LibraryActionTypes.Update;
307
314
  }
308
315
  }
309
316
  class LeaveLibraryAction {
317
+ payload;
318
+ configuration;
319
+ type = LibraryActionTypes.Leave;
310
320
  constructor(payload, configuration) {
311
321
  this.payload = payload;
312
322
  this.configuration = configuration;
313
- this.type = LibraryActionTypes.Leave;
314
323
  }
315
324
  }
316
325
 
@@ -363,142 +372,171 @@ var NodeActionTypes;
363
372
  NodeActionTypes["ManageRules"] = "MANAGE_RULES";
364
373
  })(NodeActionTypes || (NodeActionTypes = {}));
365
374
  class SetSelectedNodesAction {
375
+ payload;
376
+ type = NodeActionTypes.SetSelection;
366
377
  constructor(payload = []) {
367
378
  this.payload = payload;
368
- this.type = NodeActionTypes.SetSelection;
369
379
  }
370
380
  }
371
381
  class DeleteNodesAction {
382
+ payload;
383
+ type = NodeActionTypes.Delete;
372
384
  constructor(payload = []) {
373
385
  this.payload = payload;
374
- this.type = NodeActionTypes.Delete;
375
386
  }
376
387
  }
377
388
  class UndoDeleteNodesAction {
389
+ payload;
390
+ type = NodeActionTypes.UndoDelete;
378
391
  constructor(payload = []) {
379
392
  this.payload = payload;
380
- this.type = NodeActionTypes.UndoDelete;
381
393
  }
382
394
  }
383
395
  class RestoreDeletedNodesAction {
396
+ payload;
397
+ type = NodeActionTypes.RestoreDeleted;
384
398
  constructor(payload) {
385
399
  this.payload = payload;
386
- this.type = NodeActionTypes.RestoreDeleted;
387
400
  }
388
401
  }
389
402
  class PurgeDeletedNodesAction {
403
+ payload;
404
+ type = NodeActionTypes.PurgeDeleted;
390
405
  constructor(payload) {
391
406
  this.payload = payload;
392
- this.type = NodeActionTypes.PurgeDeleted;
393
407
  }
394
408
  }
395
409
  class DownloadNodesAction {
410
+ payload;
411
+ configuration;
412
+ type = NodeActionTypes.Download;
396
413
  constructor(payload = [], configuration) {
397
414
  this.payload = payload;
398
415
  this.configuration = configuration;
399
- this.type = NodeActionTypes.Download;
400
416
  }
401
417
  }
402
418
  class CreateFolderAction {
419
+ payload;
420
+ type = NodeActionTypes.CreateFolder;
403
421
  constructor(payload) {
404
422
  this.payload = payload;
405
- this.type = NodeActionTypes.CreateFolder;
406
423
  }
407
424
  }
408
425
  class EditFolderAction {
426
+ payload;
427
+ configuration;
428
+ type = NodeActionTypes.EditFolder;
409
429
  constructor(payload, configuration) {
410
430
  this.payload = payload;
411
431
  this.configuration = configuration;
412
- this.type = NodeActionTypes.EditFolder;
413
432
  }
414
433
  }
415
434
  class ShareNodeAction {
435
+ payload;
436
+ configuration;
437
+ type = NodeActionTypes.Share;
416
438
  constructor(payload, configuration) {
417
439
  this.payload = payload;
418
440
  this.configuration = configuration;
419
- this.type = NodeActionTypes.Share;
420
441
  }
421
442
  }
422
443
  class UnshareNodesAction {
444
+ payload;
445
+ type = NodeActionTypes.Unshare;
423
446
  constructor(payload) {
424
447
  this.payload = payload;
425
- this.type = NodeActionTypes.Unshare;
426
448
  }
427
449
  }
428
450
  class CopyNodesAction {
451
+ payload;
452
+ configuration;
453
+ type = NodeActionTypes.Copy;
429
454
  constructor(payload, configuration) {
430
455
  this.payload = payload;
431
456
  this.configuration = configuration;
432
- this.type = NodeActionTypes.Copy;
433
457
  }
434
458
  }
435
459
  class MoveNodesAction {
460
+ payload;
461
+ configuration;
462
+ type = NodeActionTypes.Move;
436
463
  constructor(payload, configuration) {
437
464
  this.payload = payload;
438
465
  this.configuration = configuration;
439
- this.type = NodeActionTypes.Move;
440
466
  }
441
467
  }
442
468
  class ManagePermissionsAction {
469
+ payload;
470
+ type = NodeActionTypes.ManagePermissions;
443
471
  constructor(payload) {
444
472
  this.payload = payload;
445
- this.type = NodeActionTypes.ManagePermissions;
446
473
  }
447
474
  }
448
475
  class ExpandInfoDrawerAction {
476
+ payload;
477
+ type = NodeActionTypes.ExpandInfoDrawer;
449
478
  constructor(payload) {
450
479
  this.payload = payload;
451
- this.type = NodeActionTypes.ExpandInfoDrawer;
452
480
  }
453
481
  }
454
482
  class PrintFileAction {
483
+ payload;
484
+ type = NodeActionTypes.PrintFile;
455
485
  constructor(payload) {
456
486
  this.payload = payload;
457
- this.type = NodeActionTypes.PrintFile;
458
487
  }
459
488
  }
460
489
  class ManageVersionsAction {
490
+ payload;
491
+ configuration;
492
+ type = NodeActionTypes.ManageVersions;
461
493
  constructor(payload, configuration) {
462
494
  this.payload = payload;
463
495
  this.configuration = configuration;
464
- this.type = NodeActionTypes.ManageVersions;
465
496
  }
466
497
  }
467
498
  class EditOfflineAction {
499
+ payload;
500
+ type = NodeActionTypes.EditOffline;
468
501
  constructor(payload) {
469
502
  this.payload = payload;
470
- this.type = NodeActionTypes.EditOffline;
471
503
  }
472
504
  }
473
505
  class UnlockWriteAction {
506
+ payload;
507
+ type = NodeActionTypes.UnlockForWriting;
474
508
  constructor(payload) {
475
509
  this.payload = payload;
476
- this.type = NodeActionTypes.UnlockForWriting;
477
510
  }
478
511
  }
479
512
  class AddFavoriteAction {
513
+ payload;
514
+ type = NodeActionTypes.AddFavorite;
480
515
  constructor(payload) {
481
516
  this.payload = payload;
482
- this.type = NodeActionTypes.AddFavorite;
483
517
  }
484
518
  }
485
519
  class RemoveFavoriteAction {
520
+ payload;
521
+ type = NodeActionTypes.RemoveFavorite;
486
522
  constructor(payload) {
487
523
  this.payload = payload;
488
- this.type = NodeActionTypes.RemoveFavorite;
489
524
  }
490
525
  }
491
526
  class ManageAspectsAction {
527
+ payload;
528
+ configuration;
529
+ type = NodeActionTypes.ChangeAspects;
492
530
  constructor(payload, configuration) {
493
531
  this.payload = payload;
494
532
  this.configuration = configuration;
495
- this.type = NodeActionTypes.ChangeAspects;
496
533
  }
497
534
  }
498
535
  class ManageRulesAction {
536
+ payload;
537
+ type = NodeActionTypes.ManageRules;
499
538
  constructor(payload) {
500
539
  this.payload = payload;
501
- this.type = NodeActionTypes.ManageRules;
502
540
  }
503
541
  }
504
542
 
@@ -526,33 +564,35 @@ class ManageRulesAction {
526
564
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
527
565
  */
528
566
  class NavigateUrlAction {
567
+ payload;
568
+ type = RouterActionTypes.NavigateUrl;
529
569
  constructor(payload) {
530
570
  this.payload = payload;
531
- this.type = RouterActionTypes.NavigateUrl;
532
571
  }
533
572
  }
534
573
  class NavigateRouteAction {
574
+ payload;
575
+ type = RouterActionTypes.NavigateRoute;
535
576
  constructor(payload) {
536
577
  this.payload = payload;
537
- this.type = RouterActionTypes.NavigateRoute;
538
578
  }
539
579
  }
540
580
  class NavigateToFolder {
581
+ payload;
582
+ type = RouterActionTypes.NavigateFolder;
541
583
  constructor(payload) {
542
584
  this.payload = payload;
543
- this.type = RouterActionTypes.NavigateFolder;
544
585
  }
545
586
  }
546
587
  class NavigateToParentFolder {
588
+ payload;
589
+ type = RouterActionTypes.NavigateParentFolder;
547
590
  constructor(payload) {
548
591
  this.payload = payload;
549
- this.type = RouterActionTypes.NavigateParentFolder;
550
592
  }
551
593
  }
552
594
  class NavigateToPreviousPage {
553
- constructor() {
554
- this.type = RouterActionTypes.NavigateToPreviousPage;
555
- }
595
+ type = RouterActionTypes.NavigateToPreviousPage;
556
596
  }
557
597
 
558
598
  /*!
@@ -584,15 +624,15 @@ var SearchActionTypes;
584
624
  SearchActionTypes["SearchByTerm"] = "SEARCH_BY_TERM";
585
625
  })(SearchActionTypes || (SearchActionTypes = {}));
586
626
  class SearchAction {
587
- constructor() {
588
- this.type = SearchActionTypes.Search;
589
- }
627
+ type = SearchActionTypes.Search;
590
628
  }
591
629
  class SearchByTermAction {
630
+ payload;
631
+ searchOptions;
632
+ type = SearchActionTypes.SearchByTerm;
592
633
  constructor(payload, searchOptions) {
593
634
  this.payload = payload;
594
635
  this.searchOptions = searchOptions;
595
- this.type = SearchActionTypes.SearchByTerm;
596
636
  }
597
637
  }
598
638
 
@@ -626,30 +666,41 @@ var SnackbarActionTypes;
626
666
  SnackbarActionTypes["Error"] = "SNACKBAR_ERROR";
627
667
  })(SnackbarActionTypes || (SnackbarActionTypes = {}));
628
668
  class SnackbarUserAction {
669
+ title;
670
+ action;
629
671
  constructor(title, action) {
630
672
  this.title = title;
631
673
  this.action = action;
632
674
  }
633
675
  }
634
676
  class SnackbarInfoAction {
677
+ payload;
678
+ params;
679
+ type = SnackbarActionTypes.Info;
680
+ userAction;
635
681
  constructor(payload, params) {
636
682
  this.payload = payload;
637
683
  this.params = params;
638
- this.type = SnackbarActionTypes.Info;
639
684
  }
640
685
  }
641
686
  class SnackbarWarningAction {
687
+ payload;
688
+ params;
689
+ type = SnackbarActionTypes.Warning;
690
+ userAction;
642
691
  constructor(payload, params) {
643
692
  this.payload = payload;
644
693
  this.params = params;
645
- this.type = SnackbarActionTypes.Warning;
646
694
  }
647
695
  }
648
696
  class SnackbarErrorAction {
697
+ payload;
698
+ params;
699
+ type = SnackbarActionTypes.Error;
700
+ userAction;
649
701
  constructor(payload, params) {
650
702
  this.payload = payload;
651
703
  this.params = params;
652
- this.type = SnackbarActionTypes.Error;
653
704
  }
654
705
  }
655
706
 
@@ -683,22 +734,26 @@ var UploadActionTypes;
683
734
  UploadActionTypes["UploadFileVersion"] = "UPLOAD_FILE_VERSION";
684
735
  })(UploadActionTypes || (UploadActionTypes = {}));
685
736
  class UploadFilesAction {
737
+ payload;
738
+ type = UploadActionTypes.UploadFiles;
686
739
  constructor(payload) {
687
740
  this.payload = payload;
688
- this.type = UploadActionTypes.UploadFiles;
689
741
  }
690
742
  }
691
743
  class UploadFolderAction {
744
+ payload;
745
+ type = UploadActionTypes.UploadFolder;
692
746
  constructor(payload) {
693
747
  this.payload = payload;
694
- this.type = UploadActionTypes.UploadFolder;
695
748
  }
696
749
  }
697
750
  class UploadFileVersionAction {
751
+ payload;
752
+ configuration;
753
+ type = UploadActionTypes.UploadFileVersion;
698
754
  constructor(payload, configuration) {
699
755
  this.payload = payload;
700
756
  this.configuration = configuration;
701
- this.type = UploadActionTypes.UploadFileVersion;
702
757
  }
703
758
  }
704
759
 
@@ -736,50 +791,62 @@ var ViewerActionTypes;
736
791
  ViewerActionTypes["PluginPreview"] = "PLUGIN_PREVIEW";
737
792
  })(ViewerActionTypes || (ViewerActionTypes = {}));
738
793
  class ViewFileAction {
794
+ payload;
795
+ parentId;
796
+ type = ViewerActionTypes.ViewFile;
739
797
  constructor(payload, parentId) {
740
798
  this.payload = payload;
741
799
  this.parentId = parentId;
742
- this.type = ViewerActionTypes.ViewFile;
743
800
  }
744
801
  }
745
802
  class ViewNodeAction {
803
+ nodeId;
804
+ viewNodeExtras;
805
+ type = ViewerActionTypes.ViewNode;
746
806
  constructor(nodeId, viewNodeExtras) {
747
807
  this.nodeId = nodeId;
748
808
  this.viewNodeExtras = viewNodeExtras;
749
- this.type = ViewerActionTypes.ViewNode;
750
809
  }
751
810
  }
752
811
  class ViewNodeVersionAction {
812
+ nodeId;
813
+ versionId;
814
+ viewNodeExtras;
815
+ type = ViewerActionTypes.ViewNodeVersion;
753
816
  constructor(nodeId, versionId, viewNodeExtras) {
754
817
  this.nodeId = nodeId;
755
818
  this.versionId = versionId;
756
819
  this.viewNodeExtras = viewNodeExtras;
757
- this.type = ViewerActionTypes.ViewNodeVersion;
758
820
  }
759
821
  }
760
822
  class FullscreenViewerAction {
823
+ payload;
824
+ type = ViewerActionTypes.FullScreen;
761
825
  constructor(payload) {
762
826
  this.payload = payload;
763
- this.type = ViewerActionTypes.FullScreen;
764
827
  }
765
828
  }
766
829
  class ClosePreviewAction {
830
+ payload;
831
+ type = ViewerActionTypes.ClosePreview;
767
832
  constructor(payload) {
768
833
  this.payload = payload;
769
- this.type = ViewerActionTypes.ClosePreview;
770
834
  }
771
835
  }
772
836
  class RefreshPreviewAction {
837
+ node;
838
+ type = ViewerActionTypes.RefreshPreview;
773
839
  constructor(node) {
774
840
  this.node = node;
775
- this.type = ViewerActionTypes.RefreshPreview;
776
841
  }
777
842
  }
778
843
  class PluginPreviewAction {
844
+ pluginRoute;
845
+ nodeId;
846
+ type = ViewerActionTypes.PluginPreview;
779
847
  constructor(pluginRoute, nodeId) {
780
848
  this.pluginRoute = pluginRoute;
781
849
  this.nodeId = nodeId;
782
- this.type = ViewerActionTypes.PluginPreview;
783
850
  }
784
851
  }
785
852
 
@@ -808,9 +875,10 @@ class PluginPreviewAction {
808
875
  */
809
876
  const SET_INFO_DRAWER_METADATA_ASPECT = 'SET_INFO_DRAWER_METADATA_ASPECT';
810
877
  class SetInfoDrawerMetadataAspectAction {
878
+ payload;
879
+ type = SET_INFO_DRAWER_METADATA_ASPECT;
811
880
  constructor(payload) {
812
881
  this.payload = payload;
813
- this.type = SET_INFO_DRAWER_METADATA_ASPECT;
814
882
  }
815
883
  }
816
884
 
@@ -838,25 +906,23 @@ class SetInfoDrawerMetadataAspectAction {
838
906
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
839
907
  */
840
908
  class FileFromTemplate {
841
- constructor() {
842
- this.type = TemplateActionTypes.FileFromTemplate;
843
- }
909
+ type = TemplateActionTypes.FileFromTemplate;
844
910
  }
845
911
  class FolderFromTemplate {
846
- constructor() {
847
- this.type = TemplateActionTypes.FolderFromTemplate;
848
- }
912
+ type = TemplateActionTypes.FolderFromTemplate;
849
913
  }
850
914
  class CreateFromTemplate {
915
+ payload;
916
+ type = TemplateActionTypes.CreateFromTemplate;
851
917
  constructor(payload) {
852
918
  this.payload = payload;
853
- this.type = TemplateActionTypes.CreateFromTemplate;
854
919
  }
855
920
  }
856
921
  class CreateFromTemplateSuccess {
922
+ node;
923
+ type = TemplateActionTypes.CreateFromTemplateSuccess;
857
924
  constructor(node) {
858
925
  this.node = node;
859
- this.type = TemplateActionTypes.CreateFromTemplateSuccess;
860
926
  }
861
927
  }
862
928
 
@@ -884,9 +950,10 @@ class CreateFromTemplateSuccess {
884
950
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
885
951
  */
886
952
  class ContextMenu {
953
+ event;
954
+ type = ContextMenuActionTypes.ContextMenu;
887
955
  constructor(event) {
888
956
  this.event = event;
889
- this.type = ContextMenuActionTypes.ContextMenu;
890
957
  }
891
958
  }
892
959
 
@@ -919,15 +986,17 @@ var SearchAiActionTypes;
919
986
  SearchAiActionTypes["ToggleAiSearchInput"] = "TOGGLE_AI_SEARCH_INPUT";
920
987
  })(SearchAiActionTypes || (SearchAiActionTypes = {}));
921
988
  class SearchByTermAiAction {
989
+ payload;
990
+ type = SearchAiActionTypes.SearchByTermAi;
922
991
  constructor(payload) {
923
992
  this.payload = payload;
924
- this.type = SearchAiActionTypes.SearchByTermAi;
925
993
  }
926
994
  }
927
995
  class ToggleAISearchInput {
996
+ agentId;
997
+ type = SearchAiActionTypes.ToggleAiSearchInput;
928
998
  constructor(agentId) {
929
999
  this.agentId = agentId;
930
- this.type = SearchAiActionTypes.ToggleAiSearchInput;
931
1000
  }
932
1001
  }
933
1002
 
@@ -955,31 +1024,29 @@ class ToggleAISearchInput {
955
1024
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
956
1025
  */
957
1026
  class RouterEffects {
958
- constructor(actions$, router, location) {
959
- this.actions$ = actions$;
960
- this.router = router;
961
- this.location = location;
962
- this.notificationService = inject(NotificationService);
963
- this.navigateUrl$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateUrl), map((action) => {
964
- if (action.payload) {
965
- this.router.navigateByUrl(action.payload);
966
- }
967
- })), { dispatch: false });
968
- this.navigateRoute$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateRoute), map((action) => {
969
- this.router.navigate(action.payload);
970
- })), { dispatch: false });
971
- this.navigateToFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateFolder), map((action) => {
972
- if (action.payload?.entry) {
973
- this.navigateToFolder(action.payload.entry);
974
- }
975
- })), { dispatch: false });
976
- this.navigateToParentFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateParentFolder), map((action) => {
977
- if (action.payload?.entry) {
978
- this.navigateToParentFolder(action.payload.entry);
979
- }
980
- })), { dispatch: false });
981
- this.navigateToPreviousPage$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateToPreviousPage), map(() => this.location.back())), { dispatch: false });
982
- }
1027
+ notificationService = inject(NotificationService);
1028
+ actions$ = inject(Actions);
1029
+ router = inject(Router);
1030
+ location = inject(Location);
1031
+ navigateUrl$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateUrl), map((action) => {
1032
+ if (action.payload) {
1033
+ this.router.navigateByUrl(action.payload);
1034
+ }
1035
+ })), { dispatch: false });
1036
+ navigateRoute$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateRoute), map((action) => {
1037
+ this.router.navigate(action.payload);
1038
+ })), { dispatch: false });
1039
+ navigateToFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateFolder), map((action) => {
1040
+ if (action.payload?.entry) {
1041
+ this.navigateToFolder(action.payload.entry);
1042
+ }
1043
+ })), { dispatch: false });
1044
+ navigateToParentFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateParentFolder), map((action) => {
1045
+ if (action.payload?.entry) {
1046
+ this.navigateToParentFolder(action.payload.entry);
1047
+ }
1048
+ })), { dispatch: false });
1049
+ navigateToPreviousPage$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateToPreviousPage), map(() => this.location.back())), { dispatch: false });
983
1050
  navigateToFolder(node) {
984
1051
  let link = null;
985
1052
  const { path, id } = node;
@@ -1027,12 +1094,12 @@ class RouterEffects {
1027
1094
  isLibraryContent(path) {
1028
1095
  return path && path.elements.length >= 2 && path.elements[1].name === 'Sites';
1029
1096
  }
1097
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: RouterEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1098
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: RouterEffects });
1030
1099
  }
1031
- RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RouterEffects, deps: [{ token: i1.Actions }, { token: i2.Router }, { token: i3.Location }], target: i0.ɵɵFactoryTarget.Injectable });
1032
- RouterEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RouterEffects });
1033
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RouterEffects, decorators: [{
1100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: RouterEffects, decorators: [{
1034
1101
  type: Injectable
1035
- }], ctorParameters: function () { return [{ type: i1.Actions }, { type: i2.Router }, { type: i3.Location }]; } });
1102
+ }] });
1036
1103
 
1037
1104
  /*!
1038
1105
  * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -1058,21 +1125,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1058
1125
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
1059
1126
  */
1060
1127
  class SnackbarEffects {
1061
- constructor(store, actions$, snackBar, translationService) {
1062
- this.store = store;
1063
- this.actions$ = actions$;
1064
- this.snackBar = snackBar;
1065
- this.translationService = translationService;
1066
- this.infoEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Info), map((action) => {
1067
- this.showSnackBar(action, 'adf-info-snackbar');
1068
- })), { dispatch: false });
1069
- this.warningEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Warning), map((action) => {
1070
- this.showSnackBar(action, 'adf-warning-snackbar');
1071
- })), { dispatch: false });
1072
- this.errorEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Error), map((action) => {
1073
- this.showSnackBar(action, 'adf-error-snackbar');
1074
- })), { dispatch: false });
1075
- }
1128
+ store = inject((Store));
1129
+ actions$ = inject(Actions);
1130
+ snackBar = inject(MatSnackBar);
1131
+ translationService = inject(TranslationService);
1132
+ infoEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Info), map((action) => {
1133
+ this.showSnackBar(action, 'adf-info-snackbar');
1134
+ })), { dispatch: false });
1135
+ warningEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Warning), map((action) => {
1136
+ this.showSnackBar(action, 'adf-warning-snackbar');
1137
+ })), { dispatch: false });
1138
+ errorEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Error), map((action) => {
1139
+ this.showSnackBar(action, 'adf-error-snackbar');
1140
+ })), { dispatch: false });
1076
1141
  showSnackBar(action, panelClass) {
1077
1142
  const message = this.translate(action.payload, action.params);
1078
1143
  let actionName = null;
@@ -1100,12 +1165,12 @@ class SnackbarEffects {
1100
1165
  translate(message, params) {
1101
1166
  return this.translationService.instant(message, params);
1102
1167
  }
1168
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SnackbarEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1169
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SnackbarEffects });
1103
1170
  }
1104
- SnackbarEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SnackbarEffects, deps: [{ token: i1$1.Store }, { token: i1.Actions }, { token: i3$1.MatSnackBar }, { token: i4.TranslationService }], target: i0.ɵɵFactoryTarget.Injectable });
1105
- SnackbarEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SnackbarEffects });
1106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SnackbarEffects, decorators: [{
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SnackbarEffects, decorators: [{
1107
1172
  type: Injectable
1108
- }], ctorParameters: function () { return [{ type: i1$1.Store }, { type: i1.Actions }, { type: i3$1.MatSnackBar }, { type: i4.TranslationService }]; } });
1173
+ }] });
1109
1174
 
1110
1175
  /*!
1111
1176
  * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.