@colijnit/corecomponents_v12 254.1.2 → 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.
- package/bundles/colijnit-corecomponents_v12.umd.js +75 -1
- 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 +58 -0
- package/esm2015/lib/components/list-of-icons/list-of-icons.module.js +23 -0
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +33 -24
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +106 -24
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/list-of-icons/list-of-icons.component.d.ts +16 -0
- package/lib/components/list-of-icons/list-of-icons.module.d.ts +2 -0
- package/lib/components/list-of-icons/style/_layout.scss +71 -0
- package/lib/components/list-of-icons/style/_material-definition.scss +20 -0
- package/lib/components/list-of-icons/style/_theme.scss +5 -0
- package/lib/components/list-of-icons/style/material.scss +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -11370,6 +11370,9 @@
|
|
|
11370
11370
|
// for single select
|
|
11371
11371
|
ListOfValuesPopupComponent.prototype.selectOptionAndClosePopup = function () {
|
|
11372
11372
|
var _this = this;
|
|
11373
|
+
if (this.viewModels.length === 1) {
|
|
11374
|
+
this.selectNextOption();
|
|
11375
|
+
}
|
|
11373
11376
|
if (!this.model && this.searchTerm) {
|
|
11374
11377
|
var wishModel = this.viewModelsMain.find(function (vmm) { return vmm.model[_this.displayField] === _this.searchTerm; });
|
|
11375
11378
|
if (wishModel) {
|
|
@@ -11457,7 +11460,7 @@
|
|
|
11457
11460
|
ListOfValuesPopupComponent.decorators = [
|
|
11458
11461
|
{ type: i0.Component, args: [{
|
|
11459
11462
|
selector: 'co-list-of-values-popup',
|
|
11460
|
-
template: "\n
|
|
11463
|
+
template: "\n <div class=\"lov-options\" [overlay]=\"parentForOverlay\" [inheritWidth]=\"true\" [ngClass]=\"customCssClass\"\n id=\"lov-popup\"\n role=\"listbox\" [tabindex]=\"-1\"\n (clickOutside)=\"closePopup.emit($event)\">\n <co-input-search *ngIf=\"multiselect\"\n tabindex=\"-1\"\n [(model)]=\"searchTerm\"\n [placeholder]=\"searchPlaceholder\"\n (keydown)=\"handleInputKeyDown($event)\"\n (modelChange)=\"filterViewModels()\"></co-input-search>\n <ul class=\"dropdown-list\" #dropDownList>\n <li\n #lovItem\n *ngFor=\"let viewModel of viewModels; let index = index\"\n [class.selected]=\"viewModel === highLightModel || viewModels.length === 1\"\n (click)=\"selectViewModel(viewModel, !multiselect)\"\n role=\"option\">\n <ng-container *ngIf=\"!multiselect\">\n <span class=\"lov-options-text\" [textContent]=\"viewModel.model[displayField]\"></span>\n </ng-container>\n <ng-container *ngIf=\"multiselect\">\n <co-input-checkbox [model]=\"viewModel.checked\"\n (modelChange)=\"selectViewModel(viewModel, false)\"></co-input-checkbox>\n <span class=\"lov-options-text\" [textContent]=\"viewModel.model[displayField]\"></span>\n </ng-container>\n </li>\n </ul>\n </div>\n ",
|
|
11461
11464
|
encapsulation: i0.ViewEncapsulation.None
|
|
11462
11465
|
},] }
|
|
11463
11466
|
];
|
|
@@ -11817,6 +11820,75 @@
|
|
|
11817
11820
|
},] }
|
|
11818
11821
|
];
|
|
11819
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
|
+
|
|
11820
11892
|
var ResponsiveTextComponent = /** @class */ (function () {
|
|
11821
11893
|
function ResponsiveTextComponent() {
|
|
11822
11894
|
}
|
|
@@ -14093,6 +14165,8 @@
|
|
|
14093
14165
|
exports.InputTextareaModule = InputTextareaModule;
|
|
14094
14166
|
exports.LevelIndicatorComponent = LevelIndicatorComponent;
|
|
14095
14167
|
exports.LevelIndicatorModule = LevelIndicatorModule;
|
|
14168
|
+
exports.ListOfIconsComponent = ListOfIconsComponent;
|
|
14169
|
+
exports.ListOfIconsModule = ListOfIconsModule;
|
|
14096
14170
|
exports.ListOfValuesComponent = ListOfValuesComponent;
|
|
14097
14171
|
exports.ListOfValuesModule = ListOfValuesModule;
|
|
14098
14172
|
exports.ListOfValuesPopupComponent = ListOfValuesPopupComponent;
|