@alfresco/aca-content 4.1.0 → 4.2.0-5542991658

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 (43) hide show
  1. package/assets/app.extensions.json +3 -3
  2. package/esm2020/lib/aca-content.module.mjs +2 -2
  3. package/esm2020/lib/aca-content.routes.mjs +27 -27
  4. package/esm2020/lib/extensions/core.extensions.module.mjs +2 -3
  5. package/esm2020/lib/services/node-template.service.mjs +1 -1
  6. package/esm2020/ms-office/aos-extension.module.mjs +7 -9
  7. package/esm2020/preview/alfresco-aca-content-preview.mjs +5 -0
  8. package/esm2020/preview/lib/components/preview.component.mjs +406 -0
  9. package/esm2020/preview/lib/preview.module.mjs +84 -0
  10. package/esm2020/preview/public-api.mjs +29 -0
  11. package/esm2020/viewer/alfresco-aca-content-viewer.mjs +5 -0
  12. package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +402 -0
  13. package/esm2020/viewer/lib/viewer.module.mjs +81 -0
  14. package/esm2020/viewer/public-api.mjs +29 -0
  15. package/fesm2015/alfresco-aca-content-ms-office.mjs +4 -5
  16. package/fesm2015/alfresco-aca-content-ms-office.mjs.map +1 -1
  17. package/fesm2015/alfresco-aca-content-preview.mjs +495 -0
  18. package/fesm2015/alfresco-aca-content-preview.mjs.map +1 -0
  19. package/fesm2015/alfresco-aca-content-viewer.mjs +491 -0
  20. package/fesm2015/alfresco-aca-content-viewer.mjs.map +1 -0
  21. package/fesm2015/alfresco-aca-content.mjs +28 -86
  22. package/fesm2015/alfresco-aca-content.mjs.map +1 -1
  23. package/fesm2020/alfresco-aca-content-ms-office.mjs +4 -5
  24. package/fesm2020/alfresco-aca-content-ms-office.mjs.map +1 -1
  25. package/fesm2020/alfresco-aca-content-preview.mjs +511 -0
  26. package/fesm2020/alfresco-aca-content-preview.mjs.map +1 -0
  27. package/fesm2020/alfresco-aca-content-viewer.mjs +504 -0
  28. package/fesm2020/alfresco-aca-content-viewer.mjs.map +1 -0
  29. package/fesm2020/alfresco-aca-content.mjs +28 -86
  30. package/fesm2020/alfresco-aca-content.mjs.map +1 -1
  31. package/lib/services/node-template.service.d.ts +1 -1
  32. package/ms-office/aos-extension.module.d.ts +1 -2
  33. package/package.json +21 -5
  34. package/preview/index.d.ts +5 -0
  35. package/preview/lib/components/preview.component.d.ts +115 -0
  36. package/preview/lib/preview.module.d.ts +13 -0
  37. package/preview/public-api.d.ts +25 -0
  38. package/viewer/index.d.ts +5 -0
  39. package/viewer/lib/components/viewer/viewer.component.d.ts +111 -0
  40. package/viewer/lib/viewer.module.d.ts +13 -0
  41. package/viewer/public-api.d.ts +25 -0
  42. package/esm2020/lib/services/content-service-extension.service.mjs +0 -63
  43. package/lib/services/content-service-extension.service.d.ts +0 -11
@@ -67,7 +67,7 @@ import * as i2$4 from '@angular/material/tooltip';
67
67
  import { MatTooltipModule } from '@angular/material/tooltip';
68
68
  import * as i8$3 from '@angular/material/tabs';
69
69
  import { MatTabsModule } from '@angular/material/tabs';
70
- import { PreviewComponent } from '@alfresco/aca-preview';
70
+ import { PreviewComponent } from '@alfresco/aca-content/preview';
71
71
  import { ShellLayoutComponent, SHELL_NAVBAR_MIN_WIDTH } from '@alfresco/adf-core/shell';
72
72
  import { AcaFolderRulesModule } from '@alfresco/aca-content/folder-rules';
73
73
 
@@ -4326,64 +4326,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
4326
4326
  }]
4327
4327
  }] });
4328
4328
 
4329
- /*!
4330
- * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
4331
- *
4332
- * Alfresco Example Content Application
4333
- *
4334
- * This file is part of the Alfresco Example Content Application.
4335
- * If the software was purchased under a paid Alfresco license, the terms of
4336
- * the paid license agreement will prevail. Otherwise, the software is
4337
- * provided under the following open source license terms:
4338
- *
4339
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
4340
- * it under the terms of the GNU Lesser General Public License as published by
4341
- * the Free Software Foundation, either version 3 of the License, or
4342
- * (at your option) any later version.
4343
- *
4344
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
4345
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
4346
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4347
- * GNU Lesser General Public License for more details.
4348
- *
4349
- * You should have received a copy of the GNU Lesser General Public License
4350
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
4351
- */
4352
- class ContentServiceExtensionService {
4353
- constructor(appConfigService) {
4354
- this.appConfigService = appConfigService;
4355
- this.updateContentServiceAvailability();
4356
- }
4357
- updateContentServiceAvailability() {
4358
- this.appConfigService.onLoad.pipe(take(1)).subscribe((config) => {
4359
- if (config.plugins && config.plugins.contentService === false) {
4360
- this.disableContentServices();
4361
- }
4362
- else {
4363
- this.enableContentServices();
4364
- }
4365
- });
4366
- }
4367
- disableContentServices() {
4368
- if (localStorage) {
4369
- localStorage.setItem('contentService', 'false');
4370
- }
4371
- }
4372
- enableContentServices() {
4373
- if (localStorage && localStorage.getItem('contentService') === 'false') {
4374
- localStorage.setItem('contentService', 'true');
4375
- }
4376
- }
4377
- }
4378
- ContentServiceExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentServiceExtensionService, deps: [{ token: i2.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
4379
- ContentServiceExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentServiceExtensionService, providedIn: 'root' });
4380
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentServiceExtensionService, decorators: [{
4381
- type: Injectable,
4382
- args: [{
4383
- providedIn: 'root'
4384
- }]
4385
- }], ctorParameters: function () { return [{ type: i2.AppConfigService }]; } });
4386
-
4387
4329
  /*!
4388
4330
  * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
4389
4331
  *
@@ -4418,7 +4360,7 @@ class CoreExtensionsModule {
4418
4360
  {
4419
4361
  provide: APP_INITIALIZER,
4420
4362
  useFactory: setupExtensions,
4421
- deps: [AppExtensionService, ContentServiceExtensionService],
4363
+ deps: [AppExtensionService],
4422
4364
  multi: true
4423
4365
  }
4424
4366
  ]
@@ -8478,7 +8420,7 @@ const CONTENT_ROUTES = [
8478
8420
  children: [
8479
8421
  {
8480
8422
  path: '',
8481
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8423
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8482
8424
  }
8483
8425
  ]
8484
8426
  }
@@ -8533,7 +8475,7 @@ const CONTENT_LAYOUT_ROUTES = {
8533
8475
  // deprecated, backwards compatibility with ACA 1.8
8534
8476
  {
8535
8477
  path: 'preview/:nodeId',
8536
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8478
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8537
8479
  data: {
8538
8480
  navigateSource: 'personal-files'
8539
8481
  }
@@ -8547,7 +8489,7 @@ const CONTENT_LAYOUT_ROUTES = {
8547
8489
  data: {
8548
8490
  navigateSource: 'personal-files'
8549
8491
  },
8550
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8492
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8551
8493
  }
8552
8494
  ]
8553
8495
  },
@@ -8560,7 +8502,7 @@ const CONTENT_LAYOUT_ROUTES = {
8560
8502
  data: {
8561
8503
  navigateSource: 'personal-files'
8562
8504
  },
8563
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8505
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8564
8506
  }
8565
8507
  ]
8566
8508
  }
@@ -8586,14 +8528,14 @@ const CONTENT_LAYOUT_ROUTES = {
8586
8528
  data: {
8587
8529
  navigateSource: 'personal-files'
8588
8530
  },
8589
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8531
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8590
8532
  }
8591
8533
  ]
8592
8534
  },
8593
8535
  // deprecated, backwards compatibility with ACA 1.8
8594
8536
  {
8595
8537
  path: 'preview/:nodeId',
8596
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8538
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8597
8539
  data: {
8598
8540
  navigateSource: 'personal-files'
8599
8541
  }
@@ -8601,7 +8543,7 @@ const CONTENT_LAYOUT_ROUTES = {
8601
8543
  // deprecated, backwards compatibility with ACA 1.8
8602
8544
  {
8603
8545
  path: ':folderId/preview/:nodeId',
8604
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8546
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8605
8547
  data: {
8606
8548
  navigateSource: 'personal-files'
8607
8549
  }
@@ -8615,7 +8557,7 @@ const CONTENT_LAYOUT_ROUTES = {
8615
8557
  data: {
8616
8558
  navigateSource: 'personal-files'
8617
8559
  },
8618
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8560
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8619
8561
  }
8620
8562
  ]
8621
8563
  }
@@ -8648,7 +8590,7 @@ const CONTENT_LAYOUT_ROUTES = {
8648
8590
  // deprecated, backwards compatibility with ACA 1.8
8649
8591
  {
8650
8592
  path: 'preview/:nodeId',
8651
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8593
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8652
8594
  data: {
8653
8595
  navigateSource: 'libraries'
8654
8596
  }
@@ -8662,7 +8604,7 @@ const CONTENT_LAYOUT_ROUTES = {
8662
8604
  data: {
8663
8605
  navigateSource: 'libraries'
8664
8606
  },
8665
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8607
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8666
8608
  }
8667
8609
  ],
8668
8610
  data: {
@@ -8678,7 +8620,7 @@ const CONTENT_LAYOUT_ROUTES = {
8678
8620
  data: {
8679
8621
  navigateSource: 'libraries'
8680
8622
  },
8681
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8623
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8682
8624
  }
8683
8625
  ]
8684
8626
  }
@@ -8722,7 +8664,7 @@ const CONTENT_LAYOUT_ROUTES = {
8722
8664
  data: {
8723
8665
  navigateSource: 'libraries'
8724
8666
  },
8725
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8667
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8726
8668
  }
8727
8669
  ]
8728
8670
  },
@@ -8735,7 +8677,7 @@ const CONTENT_LAYOUT_ROUTES = {
8735
8677
  data: {
8736
8678
  navigateSource: 'libraries'
8737
8679
  },
8738
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8680
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8739
8681
  }
8740
8682
  ]
8741
8683
  }
@@ -8760,7 +8702,7 @@ const CONTENT_LAYOUT_ROUTES = {
8760
8702
  // deprecated, backwards compatibility with ACA 1.8
8761
8703
  {
8762
8704
  path: 'preview/:nodeId',
8763
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8705
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8764
8706
  data: {
8765
8707
  navigateSource: 'favorites'
8766
8708
  }
@@ -8774,7 +8716,7 @@ const CONTENT_LAYOUT_ROUTES = {
8774
8716
  data: {
8775
8717
  navigateSource: 'favorites'
8776
8718
  },
8777
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8719
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8778
8720
  }
8779
8721
  ]
8780
8722
  },
@@ -8787,7 +8729,7 @@ const CONTENT_LAYOUT_ROUTES = {
8787
8729
  data: {
8788
8730
  navigateSource: 'favorites'
8789
8731
  },
8790
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8732
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8791
8733
  }
8792
8734
  ]
8793
8735
  }
@@ -8811,7 +8753,7 @@ const CONTENT_LAYOUT_ROUTES = {
8811
8753
  // deprecated, backwards compatibility with ACA 1.8
8812
8754
  {
8813
8755
  path: 'preview/:nodeId',
8814
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8756
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8815
8757
  data: {
8816
8758
  navigateSource: 'recent-files'
8817
8759
  }
@@ -8825,7 +8767,7 @@ const CONTENT_LAYOUT_ROUTES = {
8825
8767
  data: {
8826
8768
  navigateSource: 'recent-files'
8827
8769
  },
8828
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8770
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8829
8771
  }
8830
8772
  ]
8831
8773
  },
@@ -8838,7 +8780,7 @@ const CONTENT_LAYOUT_ROUTES = {
8838
8780
  data: {
8839
8781
  navigateSource: 'recent-files'
8840
8782
  },
8841
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8783
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8842
8784
  }
8843
8785
  ]
8844
8786
  }
@@ -8860,7 +8802,7 @@ const CONTENT_LAYOUT_ROUTES = {
8860
8802
  // deprecated, backwards compatibility with ACA 1.8
8861
8803
  {
8862
8804
  path: 'preview/:nodeId',
8863
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8805
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8864
8806
  data: {
8865
8807
  navigateSource: 'shared'
8866
8808
  }
@@ -8874,7 +8816,7 @@ const CONTENT_LAYOUT_ROUTES = {
8874
8816
  data: {
8875
8817
  navigateSource: 'shared'
8876
8818
  },
8877
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8819
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8878
8820
  }
8879
8821
  ]
8880
8822
  },
@@ -8887,7 +8829,7 @@ const CONTENT_LAYOUT_ROUTES = {
8887
8829
  data: {
8888
8830
  navigateSource: 'shared'
8889
8831
  },
8890
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8832
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8891
8833
  }
8892
8834
  ]
8893
8835
  }
@@ -8921,7 +8863,7 @@ const CONTENT_LAYOUT_ROUTES = {
8921
8863
  // deprecated, backwards compatibility with ACA 1.8
8922
8864
  {
8923
8865
  path: 'preview/:nodeId',
8924
- loadChildren: () => import('@alfresco/aca-preview').then((m) => m.PreviewModule),
8866
+ loadChildren: () => import('@alfresco/aca-content/preview').then((m) => m.PreviewModule),
8925
8867
  data: {
8926
8868
  navigateSource: 'search'
8927
8869
  }
@@ -8935,7 +8877,7 @@ const CONTENT_LAYOUT_ROUTES = {
8935
8877
  data: {
8936
8878
  navigateSource: 'search'
8937
8879
  },
8938
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8880
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8939
8881
  }
8940
8882
  ]
8941
8883
  },
@@ -8948,7 +8890,7 @@ const CONTENT_LAYOUT_ROUTES = {
8948
8890
  data: {
8949
8891
  navigateSource: 'search'
8950
8892
  },
8951
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8893
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8952
8894
  }
8953
8895
  ]
8954
8896
  }
@@ -8973,7 +8915,7 @@ const CONTENT_LAYOUT_ROUTES = {
8973
8915
  data: {
8974
8916
  navigateSource: 'search'
8975
8917
  },
8976
- loadChildren: () => import('@alfresco/aca-viewer').then((m) => m.AcaViewerModule)
8918
+ loadChildren: () => import('@alfresco/aca-content/viewer').then((m) => m.AcaViewerModule)
8977
8919
  }
8978
8920
  ]
8979
8921
  }