@colijnit/corecomponents_v12 254.1.8 → 254.1.9

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.
@@ -11842,9 +11842,6 @@
11842
11842
  ListOfIconsComponent.prototype.showClass = function () {
11843
11843
  return true;
11844
11844
  };
11845
- ListOfIconsComponent.prototype.ngOnInit = function () {
11846
- this.activeItem = this.collection[0];
11847
- };
11848
11845
  ListOfIconsComponent.prototype.toggleMenu = function () {
11849
11846
  this.showMenu = !this.showMenu;
11850
11847
  };
@@ -11858,7 +11855,7 @@
11858
11855
  ListOfIconsComponent.decorators = [
11859
11856
  { type: i0.Component, args: [{
11860
11857
  selector: 'co-list-of-icons',
11861
- template: "\n <div class=\"icon-item active\" [class.menu-opened]=\"showMenu\" (click)=\"toggleMenu()\">\n <co-icon [iconData]=\"activeItem.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <co-icon class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.ArrowPointDown)\"></co-icon>\n </div>\n <div class=\"dropdown-menu\" *ngIf=\"showMenu\">\n <div class=\"icon-item\" *ngFor=\"let item of collection\" (click)=\"selectItem(item)\" [class.active]=\"item === activeItem\">\n <co-icon [iconData]=\"item.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <div class=\"label\">{{ item.label }}</div>\n </div>\n </div>\n ",
11858
+ template: "\n <div class=\"icon-item active\" [class.menu-opened]=\"showMenu\" (click)=\"toggleMenu()\">\n <co-icon [iconData]=\"activeItem.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <co-icon class=\"drop-arrow\" [iconData]=\"icons.getIcon(Icon.ArrowPointDown)\"></co-icon>\n </div>\n <div class=\"dropdown-menu\" *ngIf=\"showMenu\" (clickOutside)=\"showMenu = false\">\n <div class=\"icon-item\" *ngFor=\"let item of collection\" (click)=\"selectItem(item)\" [class.active]=\"item === activeItem\">\n <co-icon [iconData]=\"item.icon\" [style.width.px]=\"iconSize\" [style.height.px]=\"iconSize\"></co-icon>\n <div class=\"label\">{{ item.label }}</div>\n </div>\n </div>\n ",
11862
11859
  encapsulation: i0.ViewEncapsulation.None
11863
11860
  },] }
11864
11861
  ];
@@ -11868,6 +11865,7 @@
11868
11865
  ListOfIconsComponent.propDecorators = {
11869
11866
  collection: [{ type: i0.Input }],
11870
11867
  iconSize: [{ type: i0.Input }],
11868
+ activeItem: [{ type: i0.Input }],
11871
11869
  itemSelected: [{ type: i0.Output }],
11872
11870
  showClass: [{ type: i0.HostBinding, args: ['class.co-list-of-icons',] }]
11873
11871
  };
@@ -11882,7 +11880,8 @@
11882
11880
  imports: [
11883
11881
  common.CommonModule,
11884
11882
  forms.FormsModule,
11885
- IconModule
11883
+ IconModule,
11884
+ ClickoutsideModule
11886
11885
  ],
11887
11886
  declarations: [
11888
11887
  ListOfIconsComponent