@colijnit/corecomponents_v12 12.0.104 → 12.0.106
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 +129 -113
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12-12.0.106.tgz +0 -0
- package/colijnit-corecomponents_v12.d.ts +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +2 -2
- package/esm2015/lib/components/base/base-input.component.js +3 -1
- package/esm2015/lib/components/input-text/input-text.component.js +7 -1
- package/esm2015/lib/components/list-of-values/list-of-values-multiselect-popup.component.js +112 -0
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +2 -2
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +25 -8
- package/esm2015/lib/components/list-of-values/list-of-values.module.js +6 -4
- package/esm2015/public-api.js +2 -3
- package/fesm2015/colijnit-corecomponents_v12.js +144 -128
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +1 -0
- package/lib/components/base-input-date-picker/style/_layout.scss +56 -6
- package/lib/components/co-input-date-picker/style/_layout.scss +3 -0
- package/lib/components/co-input-date-range-picker/style/_layout.scss +1 -1
- package/lib/components/filter-item/style/_material-definition.scss +1 -0
- package/lib/components/filter-item/style/_theme.scss +3 -1
- package/lib/components/input-text/input-text.component.d.ts +1 -0
- package/lib/components/input-text/style/_layout.scss +6 -1
- package/lib/components/{list-of-values-multiselect-search/list-of-values-multiselect-search.component.d.ts → list-of-values/list-of-values-multiselect-popup.component.d.ts} +9 -5
- package/lib/components/list-of-values/style/_layout.scss +68 -0
- package/lib/components/list-of-values/style/_material-definition.scss +11 -0
- package/lib/components/simple-grid/style/_layout.scss +0 -20
- package/lib/style/_variables.scss +1 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/esm2015/lib/components/list-of-values-multiselect-search/list-of-values-multiselect-search.component.js +0 -101
- package/esm2015/lib/components/list-of-values-multiselect-search/list-of-values-multiselect-search.module.js +0 -25
- package/lib/components/list-of-values-multiselect-search/list-of-values-multiselect-search.module.d.ts +0 -2
- package/lib/components/list-of-values-multiselect-search/style/_layout.scss +0 -69
- package/lib/components/list-of-values-multiselect-search/style/_material-definition.scss +0 -8
- package/lib/components/list-of-values-multiselect-search/style/_theme.scss +0 -0
- package/lib/components/list-of-values-multiselect-search/style/material.scss +0 -4
|
@@ -4381,6 +4381,7 @@
|
|
|
4381
4381
|
this.formUserChangeListener = formUserChangeListener;
|
|
4382
4382
|
this.ngZoneWrapper = ngZoneWrapper;
|
|
4383
4383
|
this.elementRef = elementRef;
|
|
4384
|
+
this.icons = exports.CoreComponentsIcon;
|
|
4384
4385
|
this.showSaveCancel = false;
|
|
4385
4386
|
this.noValidation = false;
|
|
4386
4387
|
this.forceRequired = false; // a force outside of [cfgName]'s influence
|
|
@@ -7944,12 +7945,15 @@
|
|
|
7944
7945
|
event.stopPropagation();
|
|
7945
7946
|
this.rightIconClick.emit(event);
|
|
7946
7947
|
};
|
|
7948
|
+
InputTextComponent.prototype.clearInput = function () {
|
|
7949
|
+
this.model = null;
|
|
7950
|
+
};
|
|
7947
7951
|
return InputTextComponent;
|
|
7948
7952
|
}(BaseInputComponent));
|
|
7949
7953
|
InputTextComponent.decorators = [
|
|
7950
7954
|
{ type: i0.Component, args: [{
|
|
7951
7955
|
selector: 'co-input-text',
|
|
7952
|
-
template: "\n <div class=\"input-text-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\"\n (click)=\"handleLeftIconClick($event)\"></co-icon>\n <div *ngIf=\"leftIcon\" class=\"spacer\"></div>\n <div class=\"input-wrapper\">\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <input #input\n [type]=\"digitsOnly ? 'number' : type\"\n [ngModel]=\"model\"\n [min]=\"type === 'number' && this.min ? this.min : undefined\"\n [max]=\"type === 'number' && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n </div>\n <div *ngIf=\"rightIcon\" class=\"spacer\"></div>\n <co-icon *ngIf=\"rightIcon\" class=\"input-text-right-icon\" [icon]=\"rightIcon\" [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\"></co-icon>\n </div>\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n ",
|
|
7956
|
+
template: "\n <div class=\"input-text-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\"\n (click)=\"handleLeftIconClick($event)\"></co-icon>\n <div *ngIf=\"leftIcon\" class=\"spacer\"></div>\n <div class=\"input-wrapper\">\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <input #input\n [type]=\"digitsOnly ? 'number' : type\"\n [ngModel]=\"model\"\n [min]=\"type === 'number' && this.min ? this.min : undefined\"\n [max]=\"type === 'number' && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n <div *ngIf=\"showClearButton && model\" class=\"input-text-clear-button\" (click)=\"clearInput()\">\n <co-icon [icon]=\"icons.CrossSkinny\"></co-icon>\n </div>\n </div>\n <div *ngIf=\"rightIcon\" class=\"spacer\"></div>\n <co-icon *ngIf=\"rightIcon\" class=\"input-text-right-icon\" [icon]=\"rightIcon\" [iconData]=\"rightIconData\"\n (click)=\"handleRightIconClick($event)\"></co-icon>\n </div>\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n ",
|
|
7953
7957
|
providers: [
|
|
7954
7958
|
OverlayService, {
|
|
7955
7959
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
@@ -11284,7 +11288,7 @@
|
|
|
11284
11288
|
ListOfValuesPopupComponent.decorators = [
|
|
11285
11289
|
{ type: i0.Component, args: [{
|
|
11286
11290
|
selector: "co-list-of-values-popup",
|
|
11287
|
-
template: "\n <div class=\"lov-options\" [overlay]=\"parentForOverlay\" [inheritWidth]=\"true\" [ngClass]=\"customCssClass\" (clickOutside)=\"optionClicked()\">\n <co-input-text *ngIf=\"!searchDisabled\" [(model)]=\"searchTerm\" [placeholder]=\"searchPlaceholder\" (modelChange)=\"filterOptions()\"></co-input-text>\n <ul>\n <li *ngFor=\"let option of filteredOptions\" [class.selected]=\"option === model\" (click)=\"onOptionClick(option)\">\n <span [textContent]=\"option[displayField]\"></span>\n </li>\n </ul>\n </div>\n\n ",
|
|
11291
|
+
template: "\n <div class=\"lov-options\" [overlay]=\"parentForOverlay\" [inheritWidth]=\"true\" [ngClass]=\"customCssClass\" (clickOutside)=\"optionClicked()\">\n <co-input-text *ngIf=\"!searchDisabled\" [(model)]=\"searchTerm\" [placeholder]=\"searchPlaceholder\" (modelChange)=\"filterOptions()\"></co-input-text>\n <ul>\n <li *ngFor=\"let option of filteredOptions\" [class.selected]=\"option === model\" (click)=\"onOptionClick(option)\">\n <span class=\"lov-options-text\" [textContent]=\"option[displayField]\"></span>\n </li>\n </ul>\n </div>\n\n ",
|
|
11288
11292
|
providers: [
|
|
11289
11293
|
OverlayService
|
|
11290
11294
|
],
|
|
@@ -11303,6 +11307,104 @@
|
|
|
11303
11307
|
collection: [{ type: i0.Input }]
|
|
11304
11308
|
};
|
|
11305
11309
|
|
|
11310
|
+
var ListOfValuesMultiselectPopupComponent = /** @class */ (function (_super) {
|
|
11311
|
+
__extends(ListOfValuesMultiselectPopupComponent, _super);
|
|
11312
|
+
function ListOfValuesMultiselectPopupComponent() {
|
|
11313
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
11314
|
+
_this.icons = exports.CoreComponentsIcon;
|
|
11315
|
+
_this.chosenCollection = new i0.EventEmitter();
|
|
11316
|
+
_this.closePopup = new i0.EventEmitter();
|
|
11317
|
+
_this.displayField = 'description';
|
|
11318
|
+
_this.selectedCollection = [];
|
|
11319
|
+
_this.selectedOptions = [];
|
|
11320
|
+
_this.allOptionsSelected = false;
|
|
11321
|
+
_this.searchTerm = '';
|
|
11322
|
+
_this._collection = [];
|
|
11323
|
+
return _this;
|
|
11324
|
+
}
|
|
11325
|
+
ListOfValuesMultiselectPopupComponent.prototype.showClass = function () {
|
|
11326
|
+
return true;
|
|
11327
|
+
};
|
|
11328
|
+
Object.defineProperty(ListOfValuesMultiselectPopupComponent.prototype, "collection", {
|
|
11329
|
+
get: function () {
|
|
11330
|
+
return this._collection;
|
|
11331
|
+
},
|
|
11332
|
+
set: function (value) {
|
|
11333
|
+
this._collection = value || [];
|
|
11334
|
+
this.searchCollection();
|
|
11335
|
+
},
|
|
11336
|
+
enumerable: false,
|
|
11337
|
+
configurable: true
|
|
11338
|
+
});
|
|
11339
|
+
Object.defineProperty(ListOfValuesMultiselectPopupComponent.prototype, "filteredCollection", {
|
|
11340
|
+
get: function () {
|
|
11341
|
+
var _this = this;
|
|
11342
|
+
if (this.searchTerm.trim() === '') {
|
|
11343
|
+
return this.collection;
|
|
11344
|
+
}
|
|
11345
|
+
return this.collection.filter(function (option) { return option.label.toLowerCase().includes(_this.searchTerm.toLowerCase()); });
|
|
11346
|
+
},
|
|
11347
|
+
enumerable: false,
|
|
11348
|
+
configurable: true
|
|
11349
|
+
});
|
|
11350
|
+
ListOfValuesMultiselectPopupComponent.prototype.ngOnInit = function () {
|
|
11351
|
+
if (this.returnChosenCollection) {
|
|
11352
|
+
this.selectedCollection = this.returnChosenCollection;
|
|
11353
|
+
}
|
|
11354
|
+
};
|
|
11355
|
+
ListOfValuesMultiselectPopupComponent.prototype.onOptionClick = function (option) {
|
|
11356
|
+
var index = this.selectedCollection.findIndex(function (selectedOption) { return selectedOption.value === option.value; });
|
|
11357
|
+
if (index !== -1) {
|
|
11358
|
+
this.selectedCollection.splice(index, 1);
|
|
11359
|
+
}
|
|
11360
|
+
else {
|
|
11361
|
+
this.selectedCollection.push(option);
|
|
11362
|
+
}
|
|
11363
|
+
};
|
|
11364
|
+
ListOfValuesMultiselectPopupComponent.prototype.okClicked = function () {
|
|
11365
|
+
this.chosenCollection.emit(this.selectedCollection);
|
|
11366
|
+
this.closePopup.emit();
|
|
11367
|
+
};
|
|
11368
|
+
ListOfValuesMultiselectPopupComponent.prototype.onToggleSelectAll = function () {
|
|
11369
|
+
if (this.allOptionsSelected) {
|
|
11370
|
+
this.selectedCollection = [];
|
|
11371
|
+
this.allOptionsSelected = false;
|
|
11372
|
+
}
|
|
11373
|
+
else {
|
|
11374
|
+
this.selectedCollection = __spreadArray([], __read(this.collection));
|
|
11375
|
+
this.allOptionsSelected = true;
|
|
11376
|
+
}
|
|
11377
|
+
};
|
|
11378
|
+
ListOfValuesMultiselectPopupComponent.prototype.searchCollection = function () {
|
|
11379
|
+
var _this = this;
|
|
11380
|
+
this.selectedOptions = this.selectedOptions.filter(function (option) {
|
|
11381
|
+
if (_this.collection) {
|
|
11382
|
+
return _this.searchTerm.includes(option.label);
|
|
11383
|
+
}
|
|
11384
|
+
else {
|
|
11385
|
+
return _this.searchTerm.includes(option.value);
|
|
11386
|
+
}
|
|
11387
|
+
});
|
|
11388
|
+
};
|
|
11389
|
+
return ListOfValuesMultiselectPopupComponent;
|
|
11390
|
+
}(BaseInputComponent));
|
|
11391
|
+
ListOfValuesMultiselectPopupComponent.decorators = [
|
|
11392
|
+
{ type: i0.Component, args: [{
|
|
11393
|
+
selector: "co-list-of-values-multiselect-popup",
|
|
11394
|
+
template: "\n <div class=\"co-list-of-values-multiselect-popup\" [overlay]=\"parentForOverlay\" [inheritWidth]=\"true\">\n <div class=\"list-of-values-multiselect-search-input-text\">\n <co-input-text [placeholder]=\"'Zoeken...'\" [(model)]=\"searchTerm\" (input)=\"searchCollection()\"></co-input-text>\n </div>\n <div class=\"list-of-values-multiselect-options\">\n <div class=\"list-of-values-multiselect-search-deselect\" (click)=\"onToggleSelectAll()\">\n <span [textContent]=\"'(De)selecteer alles'\"></span>\n <co-icon [icon]=\"icons.CheckRound\"></co-icon>\n </div>\n <div class=\"list-of-values-multiselect-list\">\n <ul>\n <li *ngFor=\"let option of filteredCollection\" (click)=\"onOptionClick(option)\">\n <co-input-checkbox class=\"lov-options-checkbox\" (modelChange)=\"onOptionClick(option)\" [model]=\"selectedCollection.includes(option)\"></co-input-checkbox>\n <span>{{ option[displayField] }}</span>\n </li>\n </ul>\n </div>\n <div class=\"list-of-values-multiselect-ok-button\" (click)=\"okClicked()\">\n <span [textContent]=\"'Ok'\"></span>\n <co-icon [icon]=\"icons.Check\"></co-icon>\n </div>\n </div>\n </div>\n ",
|
|
11395
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11396
|
+
},] }
|
|
11397
|
+
];
|
|
11398
|
+
ListOfValuesMultiselectPopupComponent.propDecorators = {
|
|
11399
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-list-of-values-multiselect-popup",] }],
|
|
11400
|
+
chosenCollection: [{ type: i0.Output }],
|
|
11401
|
+
closePopup: [{ type: i0.Output }],
|
|
11402
|
+
returnChosenCollection: [{ type: i0.Input }],
|
|
11403
|
+
parentForOverlay: [{ type: i0.Input }],
|
|
11404
|
+
displayField: [{ type: i0.Input }],
|
|
11405
|
+
collection: [{ type: i0.Input }]
|
|
11406
|
+
};
|
|
11407
|
+
|
|
11306
11408
|
var ListOfValuesComponent = /** @class */ (function (_super) {
|
|
11307
11409
|
__extends(ListOfValuesComponent, _super);
|
|
11308
11410
|
function ListOfValuesComponent() {
|
|
@@ -11405,10 +11507,29 @@
|
|
|
11405
11507
|
this.multiselectTags = tags;
|
|
11406
11508
|
};
|
|
11407
11509
|
ListOfValuesComponent.prototype.openMultiselectSearch = function () {
|
|
11510
|
+
var _this = this;
|
|
11408
11511
|
this.searchClicked = true;
|
|
11512
|
+
if (this.searchClicked) {
|
|
11513
|
+
this.overlayService.createComponent(ListOfValuesMultiselectPopupComponent, {
|
|
11514
|
+
parentForOverlay: this.parentForOverlay,
|
|
11515
|
+
customCssClass: this.customCssClass,
|
|
11516
|
+
searchDisabled: this.searchDisabled,
|
|
11517
|
+
searchPlaceholder: this.searchPlaceholder,
|
|
11518
|
+
displayField: this.displayField,
|
|
11519
|
+
collection: this.collection
|
|
11520
|
+
}, {
|
|
11521
|
+
chosenCollection: function (value) { return _this.optionChosen(value); },
|
|
11522
|
+
closePopup: function () { return _this.closePopup(); }
|
|
11523
|
+
});
|
|
11524
|
+
}
|
|
11525
|
+
else {
|
|
11526
|
+
this.overlayService.removeComponent();
|
|
11527
|
+
}
|
|
11409
11528
|
};
|
|
11410
11529
|
ListOfValuesComponent.prototype.optionChosen = function (option) {
|
|
11411
11530
|
this.selectedModel = option[this.displayField];
|
|
11531
|
+
this.model = option;
|
|
11532
|
+
this.modelChange.emit(this.model);
|
|
11412
11533
|
};
|
|
11413
11534
|
ListOfValuesComponent.prototype.closePopup = function () {
|
|
11414
11535
|
this.overlayService.removeComponent();
|
|
@@ -11418,7 +11539,7 @@
|
|
|
11418
11539
|
ListOfValuesComponent.decorators = [
|
|
11419
11540
|
{ type: i0.Component, args: [{
|
|
11420
11541
|
selector: "co-list-of-values",
|
|
11421
|
-
template: "\n <div class=\"lov-container\">\n <div class=\"lov-container-child\" *ngIf=\"!multiselect\">\n <div class=\"search-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-input-text class=\"lov-search no-focus-line\"\n type=\"text\"\n [model]=\"selectedModel\"\n [placeholder]=\"label\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [rightIcon]=\"icons.ArrowPointDown\"\n (click)=\"toggleSelect()\"\n (rightIconClick)=\"toggleSelect()\"\n ></co-input-text>\n </div>\n
|
|
11542
|
+
template: "\n<!--Single select component-->\n <div class=\"lov-container\">\n <div class=\"lov-container-child\" *ngIf=\"!multiselect\">\n <div class=\"search-wrapper\" overlayParent #parentForOverlay=\"overlayParent\">\n <co-input-text class=\"lov-search no-focus-line\"\n type=\"text\"\n [model]=\"selectedModel\"\n [placeholder]=\"label\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [rightIcon]=\"icons.ArrowPointDown\"\n (click)=\"toggleSelect()\"\n (rightIconClick)=\"toggleSelect()\"\n [showClearButton]=\"true\"\n ></co-input-text>\n </div>\n </div>\n\n<!--Multiselect component-->\n <div *ngIf=\"multiselect\">\n <div class=\"search-wrapper-multiselect\" (click)=\"openMultiselectSearch()\" overlayParent #parentForOverlay=\"overlayParent\">\n <div class=\"tag-wrapper\">\n <ul class=\"tag-ul-wrapper\">\n <li class=\"tag\" *ngFor=\"let tags of multiselectTags\">\n <span [textContent]=\"tags.label\"></span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
11422
11543
|
providers: [
|
|
11423
11544
|
OverlayService
|
|
11424
11545
|
],
|
|
@@ -11675,111 +11796,6 @@
|
|
|
11675
11796
|
},] }
|
|
11676
11797
|
];
|
|
11677
11798
|
|
|
11678
|
-
var ListOfValuesMultiselectSearch = /** @class */ (function (_super) {
|
|
11679
|
-
__extends(ListOfValuesMultiselectSearch, _super);
|
|
11680
|
-
function ListOfValuesMultiselectSearch() {
|
|
11681
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
11682
|
-
_this.icons = exports.CoreComponentsIcon;
|
|
11683
|
-
_this.chosenCollection = new i0.EventEmitter();
|
|
11684
|
-
_this.okButtonClicked = new i0.EventEmitter();
|
|
11685
|
-
_this.selectedCollection = [];
|
|
11686
|
-
_this.selectedOptions = [];
|
|
11687
|
-
_this.allOptionsSelected = false;
|
|
11688
|
-
_this.searchTerm = '';
|
|
11689
|
-
return _this;
|
|
11690
|
-
}
|
|
11691
|
-
ListOfValuesMultiselectSearch.prototype.showClass = function () {
|
|
11692
|
-
return true;
|
|
11693
|
-
};
|
|
11694
|
-
Object.defineProperty(ListOfValuesMultiselectSearch.prototype, "filteredCollection", {
|
|
11695
|
-
get: function () {
|
|
11696
|
-
var _this = this;
|
|
11697
|
-
if (this.searchTerm.trim() === '') {
|
|
11698
|
-
return this.collection;
|
|
11699
|
-
}
|
|
11700
|
-
return this.collection.filter(function (option) { return option.label.toLowerCase().includes(_this.searchTerm.toLowerCase()); });
|
|
11701
|
-
},
|
|
11702
|
-
enumerable: false,
|
|
11703
|
-
configurable: true
|
|
11704
|
-
});
|
|
11705
|
-
ListOfValuesMultiselectSearch.prototype.ngOnInit = function () {
|
|
11706
|
-
if (this.returnChosenCollection) {
|
|
11707
|
-
this.selectedCollection = this.returnChosenCollection;
|
|
11708
|
-
}
|
|
11709
|
-
};
|
|
11710
|
-
ListOfValuesMultiselectSearch.prototype.onOptionClick = function (option) {
|
|
11711
|
-
var index = this.selectedCollection.findIndex(function (selectedOption) { return selectedOption.value === option.value; });
|
|
11712
|
-
if (index !== -1) {
|
|
11713
|
-
this.selectedCollection.splice(index, 1);
|
|
11714
|
-
}
|
|
11715
|
-
else {
|
|
11716
|
-
this.selectedCollection.push(option);
|
|
11717
|
-
}
|
|
11718
|
-
};
|
|
11719
|
-
ListOfValuesMultiselectSearch.prototype.okClicked = function () {
|
|
11720
|
-
this.chosenCollection.emit(this.selectedCollection);
|
|
11721
|
-
this.okButtonClicked.emit();
|
|
11722
|
-
};
|
|
11723
|
-
ListOfValuesMultiselectSearch.prototype.onToggleSelectAll = function () {
|
|
11724
|
-
if (this.allOptionsSelected) {
|
|
11725
|
-
this.selectedCollection = [];
|
|
11726
|
-
this.allOptionsSelected = false;
|
|
11727
|
-
}
|
|
11728
|
-
else {
|
|
11729
|
-
this.selectedCollection = __spreadArray([], __read(this.collection));
|
|
11730
|
-
this.allOptionsSelected = true;
|
|
11731
|
-
}
|
|
11732
|
-
};
|
|
11733
|
-
ListOfValuesMultiselectSearch.prototype.searchCollection = function () {
|
|
11734
|
-
var _this = this;
|
|
11735
|
-
this.selectedOptions = this.selectedOptions.filter(function (option) {
|
|
11736
|
-
if (_this.collection) {
|
|
11737
|
-
return _this.searchTerm.includes(option.label);
|
|
11738
|
-
}
|
|
11739
|
-
else {
|
|
11740
|
-
return _this.searchTerm.includes(option.value);
|
|
11741
|
-
}
|
|
11742
|
-
});
|
|
11743
|
-
};
|
|
11744
|
-
return ListOfValuesMultiselectSearch;
|
|
11745
|
-
}(BaseInputComponent));
|
|
11746
|
-
ListOfValuesMultiselectSearch.decorators = [
|
|
11747
|
-
{ type: i0.Component, args: [{
|
|
11748
|
-
selector: "co-list-of-values-multiselect-search",
|
|
11749
|
-
template: "\n <div class=\"co-list-of-values-multiselect-search\">\n <div class=\"list-of-values-multiselect-search-input-text\">\n <co-input-text [placeholder]=\"'Zoeken...'\" [(model)]=\"searchTerm\" (input)=\"searchCollection()\"></co-input-text>\n </div>\n <div class=\"list-of-values-multiselect-options\">\n <div class=\"list-of-values-multiselect-search-deselect\" (click)=\"onToggleSelectAll()\">\n <span [textContent]=\"'(De)selecteer alles'\"></span>\n <co-icon [icon]=\"icons.CheckRound\"></co-icon>\n </div>\n <div class=\"list-of-values-multiselect-list\">\n <ul>\n <li *ngFor=\"let option of filteredCollection\" (click)=\"onOptionClick(option)\">\n <co-input-checkbox class=\"lov-options-checkbox\" (modelChange)=\"onOptionClick(option)\" [model]=\"selectedCollection.includes(option)\"></co-input-checkbox>\n <span>{{ option.label }}</span>\n </li>\n </ul>\n </div>\n <div class=\"list-of-values-multiselect-ok-button\" (click)=\"okClicked()\">\n <span [textContent]=\"'Ok'\"></span>\n <co-icon [icon]=\"icons.Check\"></co-icon>\n </div>\n </div>\n </div>\n ",
|
|
11750
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
11751
|
-
},] }
|
|
11752
|
-
];
|
|
11753
|
-
ListOfValuesMultiselectSearch.propDecorators = {
|
|
11754
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-list-of-values-multiselect-search",] }],
|
|
11755
|
-
collection: [{ type: i0.Input }],
|
|
11756
|
-
returnChosenCollection: [{ type: i0.Input }],
|
|
11757
|
-
chosenCollection: [{ type: i0.Output }],
|
|
11758
|
-
okButtonClicked: [{ type: i0.Output }]
|
|
11759
|
-
};
|
|
11760
|
-
|
|
11761
|
-
var ListOfValuesMultiselectSearchModule = /** @class */ (function () {
|
|
11762
|
-
function ListOfValuesMultiselectSearchModule() {
|
|
11763
|
-
}
|
|
11764
|
-
return ListOfValuesMultiselectSearchModule;
|
|
11765
|
-
}());
|
|
11766
|
-
ListOfValuesMultiselectSearchModule.decorators = [
|
|
11767
|
-
{ type: i0.NgModule, args: [{
|
|
11768
|
-
imports: [
|
|
11769
|
-
common.CommonModule,
|
|
11770
|
-
InputTextModule,
|
|
11771
|
-
IconModule,
|
|
11772
|
-
InputCheckboxModule,
|
|
11773
|
-
],
|
|
11774
|
-
declarations: [
|
|
11775
|
-
ListOfValuesMultiselectSearch
|
|
11776
|
-
],
|
|
11777
|
-
exports: [
|
|
11778
|
-
ListOfValuesMultiselectSearch
|
|
11779
|
-
]
|
|
11780
|
-
},] }
|
|
11781
|
-
];
|
|
11782
|
-
|
|
11783
11799
|
var ListOfValuesModule = /** @class */ (function () {
|
|
11784
11800
|
function ListOfValuesModule() {
|
|
11785
11801
|
}
|
|
@@ -11794,11 +11810,12 @@
|
|
|
11794
11810
|
InputCheckboxModule,
|
|
11795
11811
|
OverlayModule,
|
|
11796
11812
|
ClickoutsideModule,
|
|
11797
|
-
|
|
11813
|
+
IconModule
|
|
11798
11814
|
],
|
|
11799
11815
|
declarations: [
|
|
11800
11816
|
ListOfValuesComponent,
|
|
11801
|
-
ListOfValuesPopupComponent
|
|
11817
|
+
ListOfValuesPopupComponent,
|
|
11818
|
+
ListOfValuesMultiselectPopupComponent
|
|
11802
11819
|
],
|
|
11803
11820
|
exports: [
|
|
11804
11821
|
ListOfValuesComponent
|
|
@@ -12619,8 +12636,7 @@
|
|
|
12619
12636
|
exports.LevelIndicatorModule = LevelIndicatorModule;
|
|
12620
12637
|
exports.ListOfValuesComponent = ListOfValuesComponent;
|
|
12621
12638
|
exports.ListOfValuesModule = ListOfValuesModule;
|
|
12622
|
-
exports.
|
|
12623
|
-
exports.ListOfValuesMultiselectSearchModule = ListOfValuesMultiselectSearchModule;
|
|
12639
|
+
exports.ListOfValuesPopupComponent = ListOfValuesPopupComponent;
|
|
12624
12640
|
exports.MultiSelectListComponent = MultiSelectListComponent;
|
|
12625
12641
|
exports.MultiSelectListModule = MultiSelectListModule;
|
|
12626
12642
|
exports.ObserveVisibilityModule = ObserveVisibilityModule;
|
|
@@ -12659,7 +12675,7 @@
|
|
|
12659
12675
|
exports["ɵbe"] = SimpleGridCellComponent;
|
|
12660
12676
|
exports["ɵbf"] = ClickOutsideDirective;
|
|
12661
12677
|
exports["ɵbg"] = ClickOutsideMasterService;
|
|
12662
|
-
exports["ɵbh"] =
|
|
12678
|
+
exports["ɵbh"] = ListOfValuesMultiselectPopupComponent;
|
|
12663
12679
|
exports["ɵbi"] = PrependPipeModule;
|
|
12664
12680
|
exports["ɵbj"] = PrependPipe;
|
|
12665
12681
|
exports["ɵbk"] = TooltipModule;
|