@alfresco/aca-shared 8.1.0-39437794237 → 8.1.0-39555329175

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.
@@ -2700,6 +2700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
2700
2700
  * You should have received a copy of the GNU Lesser General Public License
2701
2701
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
2702
2702
  */
2703
+ const LIBRARY_ICON = './assets/images/ft_ic_library.svg';
2703
2704
  class InfoDrawerComponent {
2704
2705
  constructor() {
2705
2706
  this.store = inject(Store);
@@ -2743,7 +2744,9 @@ class InfoDrawerComponent {
2743
2744
  ngOnChanges() {
2744
2745
  if (this.node) {
2745
2746
  if (this.node['isLibrary']) {
2746
- return this.setDisplayNode(this.node);
2747
+ this.displayNode = this.node;
2748
+ this.icon = LIBRARY_ICON;
2749
+ return;
2747
2750
  }
2748
2751
  const entry = this.node.entry;
2749
2752
  const id = entry.nodeId || entry.id;
@@ -2765,7 +2768,7 @@ class InfoDrawerComponent {
2765
2768
  }
2766
2769
  setDisplayNode(node) {
2767
2770
  this.displayNode = node;
2768
- this.icon = this.contentService.getNodeIcon(node);
2771
+ this.icon = isLibrary({ entry: node }) ? LIBRARY_ICON : this.contentService.getNodeIcon(node);
2769
2772
  }
2770
2773
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: InfoDrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2771
2774
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: InfoDrawerComponent, isStandalone: true, selector: "aca-info-drawer", inputs: { nodeId: "nodeId", node: "node" }, host: { listeners: { "keydown.escape": "onEscapeKeyboardEvent()" } }, usesOnChanges: true, ngImport: i0, template: "@if (isLoading) {\n <div>\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\" />\n </div>\n}\n@if (!isLoading && !!displayNode) {\n <adf-info-drawer class=\"aca-info-drawer\" [icon]=\"icon\" [title]=\"node?.entry?.name || 'APP.INFO_DRAWER.TITLE'\" cdkTrapFocusAutoCapture>\n <aca-toolbar [items]=\"actions\" info-drawer-buttons />\n @for (tab of tabs; track tab.component) {\n <adf-info-drawer-tab [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\" />\n </adf-info-drawer-tab>\n }\n </adf-info-drawer>\n}\n", dependencies: [{ kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$3.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: InfoDrawerComponent$1, selector: "adf-info-drawer", inputs: ["title", "icon", "selectedIndex", "showHeader"], outputs: ["currentTab"] }, { kind: "ngmodule", type: A11yModule }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: DynamicTabComponent, selector: "adf-dynamic-tab", inputs: ["id", "node"] }, { kind: "component", type: InfoDrawerTabComponent, selector: "adf-info-drawer-tab", inputs: ["label", "icon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }