@colijnit/corecomponents_v12 254.1.8 → 254.1.10
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.
- package/bundles/colijnit-corecomponents_v12.umd.js +8 -4
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/list-of-icons/list-of-icons.component.js +7 -4
- package/esm2015/lib/components/list-of-icons/list-of-icons.module.js +4 -2
- package/fesm2015/colijnit-corecomponents_v12.js +8 -4
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/list-of-icons/list-of-icons.component.d.ts +1 -1
- package/lib/components/list-of-icons/style/_layout.scss +3 -1
- package/package.json +1 -1
- package/colijnit-corecomponents_v12-254.1.7.tgz +0 -0
|
@@ -11823,7 +11823,7 @@
|
|
|
11823
11823
|
var ListOfIconsComponent = /** @class */ (function () {
|
|
11824
11824
|
function ListOfIconsComponent(icons) {
|
|
11825
11825
|
this.icons = icons;
|
|
11826
|
-
this.iconSize =
|
|
11826
|
+
this.iconSize = 25;
|
|
11827
11827
|
this.itemSelected = new i0.EventEmitter();
|
|
11828
11828
|
this.Icon = exports.CoreComponentsIcon;
|
|
11829
11829
|
this.showMenu = false;
|
|
@@ -11843,7 +11843,9 @@
|
|
|
11843
11843
|
return true;
|
|
11844
11844
|
};
|
|
11845
11845
|
ListOfIconsComponent.prototype.ngOnInit = function () {
|
|
11846
|
-
this.activeItem
|
|
11846
|
+
if (this.activeItem === undefined) {
|
|
11847
|
+
this.activeItem = this.collection[0];
|
|
11848
|
+
}
|
|
11847
11849
|
};
|
|
11848
11850
|
ListOfIconsComponent.prototype.toggleMenu = function () {
|
|
11849
11851
|
this.showMenu = !this.showMenu;
|
|
@@ -11858,7 +11860,7 @@
|
|
|
11858
11860
|
ListOfIconsComponent.decorators = [
|
|
11859
11861
|
{ type: i0.Component, args: [{
|
|
11860
11862
|
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 ",
|
|
11863
|
+
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
11864
|
encapsulation: i0.ViewEncapsulation.None
|
|
11863
11865
|
},] }
|
|
11864
11866
|
];
|
|
@@ -11868,6 +11870,7 @@
|
|
|
11868
11870
|
ListOfIconsComponent.propDecorators = {
|
|
11869
11871
|
collection: [{ type: i0.Input }],
|
|
11870
11872
|
iconSize: [{ type: i0.Input }],
|
|
11873
|
+
activeItem: [{ type: i0.Input }],
|
|
11871
11874
|
itemSelected: [{ type: i0.Output }],
|
|
11872
11875
|
showClass: [{ type: i0.HostBinding, args: ['class.co-list-of-icons',] }]
|
|
11873
11876
|
};
|
|
@@ -11882,7 +11885,8 @@
|
|
|
11882
11885
|
imports: [
|
|
11883
11886
|
common.CommonModule,
|
|
11884
11887
|
forms.FormsModule,
|
|
11885
|
-
IconModule
|
|
11888
|
+
IconModule,
|
|
11889
|
+
ClickoutsideModule
|
|
11886
11890
|
],
|
|
11887
11891
|
declarations: [
|
|
11888
11892
|
ListOfIconsComponent
|