@colijnit/corecomponents_v12 254.1.3 → 254.1.4

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.
@@ -11820,6 +11820,75 @@
11820
11820
  },] }
11821
11821
  ];
11822
11822
 
11823
+ var ListOfIconsComponent = /** @class */ (function () {
11824
+ function ListOfIconsComponent(icons) {
11825
+ this.icons = icons;
11826
+ this.Icon = exports.CoreComponentsIcon;
11827
+ this.showMenu = false;
11828
+ this._collection = [];
11829
+ }
11830
+ Object.defineProperty(ListOfIconsComponent.prototype, "collection", {
11831
+ get: function () {
11832
+ return this._collection;
11833
+ },
11834
+ set: function (value) {
11835
+ this._collection = value || [];
11836
+ },
11837
+ enumerable: false,
11838
+ configurable: true
11839
+ });
11840
+ ListOfIconsComponent.prototype.showClass = function () {
11841
+ return true;
11842
+ };
11843
+ ListOfIconsComponent.prototype.ngOnInit = function () {
11844
+ console.log(this.collection);
11845
+ this.activeItem = this.collection[0];
11846
+ };
11847
+ ListOfIconsComponent.prototype.toggleMenu = function () {
11848
+ this.showMenu = !this.showMenu;
11849
+ };
11850
+ ListOfIconsComponent.prototype.selectItem = function (item) {
11851
+ this.activeItem = item;
11852
+ this.showMenu = false;
11853
+ };
11854
+ return ListOfIconsComponent;
11855
+ }());
11856
+ ListOfIconsComponent.decorators = [
11857
+ { type: i0.Component, args: [{
11858
+ selector: 'co-list-of-icons',
11859
+ template: "\n <div class=\"icon-item active\" [class.menu-opened]=\"showMenu\" (click)=\"toggleMenu()\">\n <co-icon [iconData]=\"activeItem.icon\"></co-icon>\n <div class=\"label\">{{ activeItem.label }}</div>\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\"></co-icon>\n <div class=\"label\">{{ item.label }}</div>\n </div>\n </div>\n ",
11860
+ encapsulation: i0.ViewEncapsulation.None
11861
+ },] }
11862
+ ];
11863
+ ListOfIconsComponent.ctorParameters = function () { return [
11864
+ { type: IconCacheService }
11865
+ ]; };
11866
+ ListOfIconsComponent.propDecorators = {
11867
+ collection: [{ type: i0.Input }],
11868
+ showClass: [{ type: i0.HostBinding, args: ['class.co-list-of-icons',] }]
11869
+ };
11870
+
11871
+ var ListOfIconsModule = /** @class */ (function () {
11872
+ function ListOfIconsModule() {
11873
+ }
11874
+ return ListOfIconsModule;
11875
+ }());
11876
+ ListOfIconsModule.decorators = [
11877
+ { type: i0.NgModule, args: [{
11878
+ imports: [
11879
+ common.CommonModule,
11880
+ forms.FormsModule,
11881
+ IconModule
11882
+ ],
11883
+ declarations: [
11884
+ ListOfIconsComponent
11885
+ ],
11886
+ exports: [
11887
+ ListOfIconsComponent
11888
+ ]
11889
+ },] }
11890
+ ];
11891
+
11823
11892
  var ResponsiveTextComponent = /** @class */ (function () {
11824
11893
  function ResponsiveTextComponent() {
11825
11894
  }
@@ -14096,6 +14165,8 @@
14096
14165
  exports.InputTextareaModule = InputTextareaModule;
14097
14166
  exports.LevelIndicatorComponent = LevelIndicatorComponent;
14098
14167
  exports.LevelIndicatorModule = LevelIndicatorModule;
14168
+ exports.ListOfIconsComponent = ListOfIconsComponent;
14169
+ exports.ListOfIconsModule = ListOfIconsModule;
14099
14170
  exports.ListOfValuesComponent = ListOfValuesComponent;
14100
14171
  exports.ListOfValuesModule = ListOfValuesModule;
14101
14172
  exports.ListOfValuesPopupComponent = ListOfValuesPopupComponent;